]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* Makefile.util.def (grub-install): Use util/grub-install.in on all
[grub2.git] / ChangeLog
CommitLineData
75831c34
CW
12010-09-19 Colin Watson <cjwatson@ubuntu.com>
22010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
3
4 * Makefile.util.def (grub-install): Use util/grub-install.in on all
5 platforms.
6 * util/grub-install.in: Add EFI and IEEE1275 support.
7 * util/i386/efi/grub-install.in: Removed.
8 * util/ieee1275/grub-install.in: Likewise.
9
eaf41b25
VS
102010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
13 (grub_cmd_cmosclean): Likewise.
14 (GRUB_MOD_INIT): Register command cmosclean.
15 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
17
1a9130dd
CPE
182010-09-18 Carles Pina i Estany <carles@pina.cat>
192010-09-18 Aleš Nesrsta <starous@volny.cz>
202010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
21
22 Add keyboard layouts support.
23
24 * Makefile.util.def (grub-mklayout): New file.
25 (grub-kbdcomp): New script.
26 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
27 Add keyboard_layouts.h.
28 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
29 commands/boot.c on yeeloong.
30 (keylayouts): New module.
31 * grub-core/bus/usb/ohci.c
32 * grub-core/bus/usb/uhci.c
33 * grub-core/bus/usb/usbhub.c (rescan): New variable.
34 (grub_usb_add_hub): Poll interrupt pipe for device handling.
35 (attach_root_port): Likewise.
36 (poll_nonroot_hub): Likewise.
37 (grub_usb_poll_devices): Likewise.
38 (detach_device): Close transfer.
39 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
40 function.
41 (grub_usb_bulk_setup_readwrite): Likewise.
42 (grub_usb_bulk_finish_readwrite): Likewise.
43 * grub-core/commands/keylayouts.c: New file.
44 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
45 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
46 aliases.
47 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
48 support scancode 2.
49 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
50 * include/grub/keyboard_layouts.h: New file.
51 * util/grub-mklayout.c: New file.
52 * util/grub-kbdcomp.in: Likewise.
53
a1d84a5e
VS
542010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
55
56 Unify memory types.
57
58 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
59 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
60 types.
61 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
62 (grub_upper_mem): Likewise.
63 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
64 * include/grub/memory.h (grub_memory_type_t): New enum.
65 All users updated.
66
9696382e
VS
672010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
68
69 * grub-core/Makefile.core.def (lsapm): New module.
70 * grub-core/commands/i386/pc/lsapm.c: New file.
71 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
72 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
73 Likewise.
74 * include/grub/i386/pc/apm.h: New file.
75 * include/multiboot.h (multiboot_apm_info): New struct.
76
772010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
78
79 GRUB-legacy configuration file support.
80
81 * Makefile.util.def (grub-menulst2cfg): New util.
82 * docs/man/grub-menulst2cfg.h2m: New file.
83 * grub-core/Makefile.core.def (legacycfg): New module.
84 * grub-core/commands/legacycfg.c: New file.
85 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
86 (grub_normal_add_menu_entry): ... this.
87 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
88 (grub_normal_set_password): ...this.
89 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
90 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
91 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
92 * grub-core/lib/legacy_parse.c: New file.
93 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
94 * include/grub/i386/pc/vesa_modes_table.h: New file.
95 * include/grub/legacy_parse.h: Likewise.
96 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
97 * util/grub-menulst2cfg.c: New file.
98
bf8d1338
CW
992010-09-17 Colin Watson <cjwatson@ubuntu.com>
100
101 * grub-core/kern/emu/hostdisk.c
102 (convert_system_partition_to_system_disk): Initialise node.
103
9c0bad2e
CW
1042010-09-17 Colin Watson <cjwatson@ubuntu.com>
105
106 * grub-core/kern/emu/hostdisk.c
107 (convert_system_partition_to_system_disk): Fix devmapper memory pool
108 leak.
109 Reported and based on patch by: Modestas Vainius.
110
a939d135
CW
1112010-09-17 Colin Watson <cjwatson@ubuntu.com>
112
113 Fix DM-RAID probing with recent versions of device-mapper udev
114 rules.
115
116 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
117 canonicalise device paths under /dev/mapper/.
118 (convert_system_partition_to_system_disk): Compare the
119 uncanonicalised path to /dev/mapper/ rather than the canonicalised
120 path, since device nodes under /dev/mapper/ are often symlinks.
121
0f7ee3c9
YB
1222010-09-17 Yves Blusseau <blusseau@zetam.org>
123
124 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
125
10854d0d
YB
1262010-09-16 Yves Blusseau <blusseau@zetam.org>
127
128 * configure.ac: Avoid some annoying error messages if freetype-config
129 program is not found.
130
108538d8
CW
1312010-09-16 Colin Watson <cjwatson@ubuntu.com>
132
133 Support RAID on virtio devices, and others.
134
135 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
136 Rename to ...
137 [__MINGW32__] (grub_find_device): ... this.
138 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
139 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
140 reasonable default if dir is NULL.
141 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
142 ...
143 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
144 (grub_guess_root_device): Update callers.
145 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
146
147 * util/raid.c (grub_util_getdiskname): Remove.
148 (grub_util_raid_getmembers): Use grub_find_device rather than
149 grub_util_getdiskname.
150
e5bfc130
CW
1512010-09-16 Colin Watson <cjwatson@ubuntu.com>
152
153 * docs/grub.texi (serial): Remove obsolete comment about GRUB
154 needing to be compiled with serial support.
155 (ls): Indicate that multiple files are accepted.
156 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
157 indicate that multiple files are accepted.
158
be458ae2
CW
1592010-09-16 Colin Watson <cjwatson@ubuntu.com>
160
161 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
162 libgrub_a_init.c, and util/bash-completion.d/grub.
163
cb731b5e
VS
1642010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * util/grub-setup.c (setup): Fix incorrect container semantics.
167
35139e8a
VS
1682010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
171 misusage.
172 Reported by: J. Nick Terry
173
e50fca4a
VS
1742010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
175
176 Move embedding routines to partmap sources files.
177
178 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
179 [GRUB_UTIL]: New variable.
180 (gpt_partition_map_iterate): Set part.parent.
181 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
182 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
183 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
184 New function.
185 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
186 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
187 (grub_partition_map) [GRUB_UTIL]: New field embed.
188 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
189 (setup): Use ->embed.
190
f00478b7
VS
1912010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
194 function.
195 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
196 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
197
2b94e3ff
YB
1982010-09-15 Yves Blusseau <blusseau@zetam.org>
199
200 Add function to get completions from usage.
201
202 * util/bash-completion.d/grub-completion.bash.in: Add function to get
203 completions from usage. Use LC_ALL=C to get options properly.
204
2e04a006
VS
2052010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * grub-core/gnulib/basename-lgpl.c: Imported.
208 * grub-core/gnulib/basename.c: Likewise.
209 * grub-core/gnulib/dirname-lgpl.c: Likewise.
210 * grub-core/gnulib/dirname.c: Likewise.
211 * grub-core/gnulib/dirname.h: Likewise.
212 * grub-core/gnulib/stripslash.c: Likewise.
213
5dcdf93a
VS
2142010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * grub-core/gnulib/error.c: Resynced.
217 * grub-core/gnulib/getopt.c: Likewise.
218 * grub-core/gnulib/getopt_int.h: Likewise.
219 * grub-core/gnulib/regex.h: Likewise.
220 * grub-core/gnulib/regex_internal.c: Likewise.
221 * grub-core/gnulib/regex_internal.h: Likewise.
222
014f47b7
SJ
2232010-09-15 Szymon Janc <szymon@janc.net.pl>
224
225 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
226 CRC calculations and validity checks.
227 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
228 calculations.
229
dd521a4a
SJ
2302010-09-15 Szymon Janc <szymon@janc.net.pl>
231
232 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
233
79c4eeb9
VS
2342010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
235
236 Fix incorrect echo options handling.
237 Reported by: Yves Blusseau.
238
239 * include/grub/command.h (grub_command_flags_t): New flags
240 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
241 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
242 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
243
ed80f7d5
VS
2442010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
247 users updated.
248 (GRUB_COMMAND_FLAG_MENU): Likewise.
249 (GRUB_COMMAND_FLAG_BOTH): Likewise.
250 (GRUB_COMMAND_FLAG_TITLE): Removed.
251 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
252 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
253 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
254 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
255 (grub_command_flags_t): New enum. All users updated.
256
5fe7620a
SG
2572010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
258
259 Fix solaris compilation.
260
261 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
262 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
263 (grub-emu-list): Likewise.
264
545b752f
VS
2652010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
266
267 Remove deprecated root command.
268
269 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
270 updated.
271
6c1a338c
VS
2722010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
273
274 * util/i386/pc/grub-setup.c: Merge this ...
275 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
276 * util/grub-setup.c: ... into this.
277 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
278 New struct.
279
2802010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
283 possible.
284
d2ea4551
VS
2852010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
288 allocate p.
289
3c3b5040
VS
2902010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
293 explicit root argument to set to prevent UUID to be interpreted as
294 argument to set.
295
b71c3fae
VS
2962010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
299
275433e6
VS
3002010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
301
302 Don't export grub_gate_a20.
303
304 * grub-core/kern/i386/pc/init.c: Remove leftovers.
305 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
306 to ...
307 (grub_gate_a20): ... this. All users updated.
308 * include/grub/i386/pc/init.h: Removed. All users updated.
309
a5dbb1f1
VS
3102010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
311
312 Create euro.pf2 which supports most European languages.
313
314 * Makefile.am (grubdata_DATA): Add euro.pf2.
315 (euro.pf2): New target.
316 (CLEANFILES): Add euro.pf2.
317
62a747cb
VS
3182010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * configure.ac: Disable emu-usb by default to prevent inadvertent
321 device takeover.
322
608e43b1
VS
3232010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
324
325 Disable usbserial on grub-emu since our libusb code isn't good enough
326 yet.
327
328 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
329 (usbserial_pl2303): Likewise.
330 (usbserial_ftdi): Likewise.
331
94564f81
VS
3322010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * include/grub/disk.h (grub_disk): Remove has_partitions.
335 All users updated.
336 * disk/loopback.c (grub_loopback): Remove has_partitions.
337 All users updated.
338 (options): Remove partitions. All users updated.
339 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
340 * util/i386/pc/grub-setup.c (setup): copy partition table only when
341 actual partition table is found.
342
3352800b
VS
3432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
344
345 Remove readability checks (too many false negatives).
346
347 * util/grub-install.in: Remove readability checks.
348 * util/grub-mkconfig.in: Likewise.
349 * util/grub.d/10_hurd.in: Likewise.
350 * util/grub.d/10_kfreebsd.in: Likewise.
351 * util/grub.d/10_linux.in: Likewise.
352 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
353 way.
354
2419f17a
VS
3552010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
356
357 Enable acpi shutdown on all ACPI platforms.
358
359 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
360 on coreboo, multiboot and EFI.
361 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
362 (grub_acpi_halt): Likewise.
363 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
364 (grub_cmd_halt): Don't call grub_acpi_halt directly.
365 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
366 * grub-core/lib/i386/halt.c (grub_halt)
367 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
368
0575c7c3
VS
3692010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
372 context.
373
54ac3cd1
VS
3742010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * grub-core/video/efi_gop.c: Fix over-80-chars line.
377 * grub-core/video/efi_uga.c: Likewise.
378
b2a30ac5
VS
3792010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
380
381 Filter devaliases and never open same device twice.
382
383 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
384 (last_ihandle): Likewise.
385 (ofdisk_hash_ent): New member shortest.
386 (ofdisk_hash_add): Add canonical path too.
387 (scan): New function.
388 (grub_ofdisk_iterate): Iterate over hashed entries.
389 (compute_dev_path): Don't add :0.
390 (grub_ofdisk_open): Don't really open the disk.
391 (grub_ofdisk_close): Avoid closing unrelated disk.
392 (grub_ofdisk_read): Implement reopen logic.
393 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
394 New function.
395 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
396 New proto.
397
fb53b340
VS
3982010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
399
400 Fix sparc64.
401
402 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
403 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
404 right address. Add sparc64_ieee1275_ldflags.
405 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
406 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
407 to grub_host_to_target_addr
408 (load_image): Likewise.
409
f452b040
VS
4102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/normal/completion.c (complete_file): Handle device
413 containing slash.
414 Fix based on patch by Doug Nazar.
415
9b5b2541
VS
4162010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
417
418 grub-mknetdir script.
419
420 * Makefile.util.def (grub-mknetdir): New module.
421 * tests/util/grub-shell.in: Support boot=net
422 * util/grub-mknetdir.in: New file.
423
9d2be652
VS
4242010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
425
426 videoinfo on non-vbe.
427
428 * grub-core/Makefile.core.def (vbeinfo): Removed.
429 (vbetest): Removed.
430 (videoinfo): New module.
431 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
432 * grub-core/commands/i386/pc/vbetest.c: Removed.
433 * grub-core/commands/videoinfo.c: New file.
434 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
435 specification.
436 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
437 as vbetest.
438 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
439 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
440 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
441 mode_number. New parameter mode. All users updated.
442 (grub_video_gop_iterate): New function.
443 (grub_video_efi_gop): New member iterate.
444 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
445 (grub_vbe_set_video_mode): Remove setting useless fields.
446 (vbe2videoinfo): New function.
447 (grub_video_vbe_iterate): Likewise.
448 (grub_video_vbe_setup): Use vbe2videoinfo.
449 (grub_video_vbe_print_adapter_specific_info): New function.
450 (grub_video_vbe_adapter): New fields iterate and
451 print_adapter_specific_info.
452 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
453 All users updated.
454 (grub_video_mode_info): New field mode_number.
455 (grub_video_adapter): New fields iterate and
456 print_adapter_specific_info.
457
179503f5
TG
4582010-09-13 Tristan Gingold <gingold@free.fr>
4592010-09-13 Robert Millan <rmh.grub@aybabtu.com>
4602010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * grub-core/commands/efi/lsefisystab.c: New file.
463 * grub-core/commands/efi/lssal.c: Likewise.
464 * grub-core/Makefile.core.def (lsacpi): New module.
465 (lsefisystab): Likewise.
466 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
467 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
468 (grub_efi_sal_system_table): New struct.
469 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
470 (grub_efi_sal_system_table_memory_descriptor): Likewise.
471 (grub_efi_sal_system_table_platform_features): Likewise.
472 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
473 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
474 (grub_efi_sal_system_table_ap_wakeup): Likewise.
475 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
476
cf9827de
VS
4772010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
478
479 Support explicit user claim that a device is BIOS-visible.
480
481 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
482 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
483 * grub-core/kern/emu/hostdisk.c
484 (convert_system_partition_to_system_disk): Support mdX.
485 (find_system_device): New parameter add. All users updated.
486 (grub_util_biosdisk_is_present): New function.
487 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
488 proto.
489
53f0eb1f
VS
4902010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
491
492 Search hints support.
493
494 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
495 All users updated.
496
b23ffd70
YB
4972010-09-13 Yves Blusseau <blusseau@zetam.org>
498
499 Bash completion script for util commands
500
501 * Makefile.am: Add util/bash-completion.d directory
502 * configure.ac: Likewise.
503 * util/bash-completion.d/Makefile.am: New file.
504 * util/bash-completion.d/grub-completion.bash.in: Likewise.
505
d547dc28
VS
5062010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
507
508 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
509 (print_backlog): set backlog_ucs4 and backlog_glyphs.
510 Reported by: Yves Blusseau.
511
2fc8ccb9
VS
5122010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
515 partition size and offset.
516
d8a84076
VS
5172010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
520
84fb3b3d
VS
5212010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
524
768ec2e2
VS
5252010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
528 (grub_xvasprintf): Likewise.
529
4870900f
VS
5302010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
531
532 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
533
faca6bec
VS
5342010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
537 args ending with NULL.
538
5392010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
540
541 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
542 pointer.
543
3c70f225
SJ
5442010-09-11 Szymon Janc <szymon@janc.net.pl>
545
546 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
547
4df7996d
VS
5482010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
549
550 Shutdown using ACPI.
551
552 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
553 * grub-core/commands/acpihalt.c: New file.
554 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
555 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
556 (grub_acpi_halt): New proto.
557 (GRUB_ACPI_SLP_EN): New const.
558 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
559 (GRUB_ACPI_OPCODE_*): New enum.
560 (GRUB_ACPI_EXTOPCODE_*): Likewise.
561
126b4c32
TG
5622010-09-11 Tristan Gingold <gingold@free.fr>
5632010-09-11 Robert Millan <rmh.grub@aybabtu.com>
5642010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
565
566 * commands/lsacpi.c: New file.
567 * grub-core/Makefile.core.def (lsacpi): New module.
568 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
569 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
570 (grub_acpi_madt_entry_header): New struct.
571 (grub_acpi_madt): Likewise.
572 (grub_acpi_madt_entry_interrupt_override): Likewise.
573 (grub_acpi_madt_entry_sapic): Likewise.
574 (grub_acpi_madt_entry_lsapic): Likewise.
575 (grub_acpi_madt_entry_platform_int_source): Likewise.
576 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
577 (PRIuGRUB_UINT32_T): Likewise.
578 (PRIxGRUB_UINT64_T): Likewise.
579
1aa4fe88
VS
5802010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
581
582 Implement loading palette on ieee1275_fb.
583
584 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
585 (have_setcolors): Likewise.
586 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
587 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
588 (grub_video_ieee1275_set_palette): Implement.
589
25761e13
VS
5902010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5912010-09-11 Colin Watson <cjwatson@ubuntu.com>
592
593 * util/grub-install.in (grub_partition): New variable.
594 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
595 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
596 Fixes a bug reported by Yves Blusseau.
597
050abaea
VS
5982010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
599
600 Fix emu on mipsel.
601
602 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
603 =grub_cpu_flush_cache on all mips and not only yeeloong.
604 * configure.ac (COND_mips): New conditional.
605 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
606 platforms.
607 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
608 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
609 [GRUB_LINKER_HAVE_INIT]: New function.
610 (grub_emu_post_init): Likewise.
611 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
612 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
613 * include/grub/cache.h (_mips): Include mips/cache.h.
614 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
615 LVM and RAID prototypes.
616 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
617 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
618 function.
619
5ed7d816
CW
6202010-09-10 Colin Watson <cjwatson@ubuntu.com>
621
622 * util/grub-install.in: Don't try to verify core.img until after
623 running grub-mkimage to create it.
624
90367e04
RM
6252010-09-10 Robert Millan <rmh@gnu.org>
626
627 * util/grub.d/10_hurd.in: Add misc readability checks.
628 * util/grub.d/10_kfreebsd.in: Likewise.
629 * util/grub.d/10_linux.in: Likewise.
630
c452fa66
CW
6312010-09-10 Colin Watson <cjwatson@ubuntu.com>
632
633 * util/grub-install.in: ${imgext} won't be defined here until the
634 install branch is merged. For the meantime, only verify core.img on
635 i386-pc and sparc64-ieee1275 platforms.
636
c38fe9f4
RM
6372010-09-10 Robert Millan <rmh@gnu.org>
638
639 Solaris support in grub_find_zpool_from_dir(). Thanks
640 Seth Goldberg for referring to getextmntent() facility.
641
642 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
643 `sys/mkdev.h'.
644 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
645 `<sys/mnttab.h>'.
646 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
647 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
648 method for finding zpool name.
649
905f7773
CW
6502010-09-10 Colin Watson <cjwatson@ubuntu.com>
651
652 grub-fstest needs the host and hostfs modules while other utilities
653 actively require those modules to be absent, so grub-fstest needs
654 its own initialisation and finalisation code.
655
656 * Makefile.am (grub_fstest.pp): New target.
657 (grub_fstest_init.lst): Likewise.
658 (grub_fstest_init.c): Likewise.
659 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
660
fb90b546
RM
6612010-09-10 Robert Millan <rmh@gnu.org>
662
663 * configure.ac: Check for `struct statfs.f_fstypename' and
664 `struct statfs.f_mntfromname'.
665
666 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
667 kFreeBSD-specific code.
668
66d4bea5
RM
6692010-09-10 Robert Millan <rmh@gnu.org>
670
671 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
672 on ZFS. Now non-main filesystems are supported as / too.
673
b6a690ee
CW
6742010-09-09 Colin Watson <cjwatson@ubuntu.com>
675
676 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
677 and grub-core/disk/host.c to ...
678 (grub-fstest): ... here. Having the host disk implementation
679 present confuses grub-probe and other utility programs.
680
681 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
682 when writing to a file, not when writing to stdout.
683
8901b00c 6842010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
685
686 * tests/partmap_test.in: New test for partitions.
687 * Makefile.util.def: Rules for new test.
688
7bf45fdd
RM
6892010-09-09 Robert Millan <rmh@gnu.org>
690
691 * util/grub-probe.c (probe): Fix a pair of unhandled error
692 conditions.
693
4dfbc574
RM
6942010-09-09 Robert Millan <rmh@gnu.org>
695
696 Basic Btrfs support (detection and UUID).
697
698 * grub-core/fs/btrfs.c: New file.
699 * Makefile.util.def (library): Register btrfs.c.
700 * grub-core/Makefile.core.def: Likewise.
701
6b8e78ae
RM
7022010-09-08 Robert Millan <rmh@gnu.org>
703
704 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
705 with (optional) parameters to specify device and relative path.
706 * util/grub-install.in: Use is_path_readable_by_grub() to
707 verify readability of a few critical files.
708 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
709 verify readability of grub.cfg.new.
710
27f21a8b
VS
7112010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
712
713 Split minix.mod into minix.mod and minix2.mod.
714
715 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
716 * grub-core/Makefile.core.def (minix2): New module.
717 * grub-core/fs/minix.c: Use definitions instead of runtime version
718 checking.
719 * grub-core/fs/minix2.c: New file.
720
c0e53ea5
YB
7212010-09-08 Yves Blusseau <blusseau@zetam.org>
722
723 Add new --boot-directory option to replace --root-directory
724
725 * util/grub-install.in: Add new --boot-directory option
726 * util/grub-reboot.in: Likewise.
727 * util/grub-set-default.in: Likewise.
728
b9fe6ea2
YB
7292010-09-08 Yves Blusseau <blusseau@zetam.org>
730
731 * util/grub-mkconfig.in: Use new variable.
732
d87aedff
YB
7332010-09-08 Yves Blusseau <blusseau@zetam.org>
734
735 * configure.ac: Define some useful variables.
736
e55e8495
VS
7372010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
738
739 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
740 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
741 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
742 Use terminfo and don't use cursor-on/cursor-off unless it's known
743 to work.
744 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
745 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
746
6fa6d675
CW
7472010-09-08 Colin Watson <cjwatson@ubuntu.com>
748
749 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
750 starts with "(,", fill the drive containing the loaded image in
751 between those two characters, but expect that a full partition
752 specification including partition map names will follow.
753
92f2aef0
RM
7542010-09-08 Robert Millan <rmh@gnu.org>
755
756 * configure.ac: Remove `--enable-grub-fstest' option.
757 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
758
759 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
760 `grub-fstest' instead of `grub-probe' for readability verification.
761 * util/grub-probe.c (probe): Remove readability verification kludge.
762
99fd620d
RM
7632010-09-08 Robert Millan <rmh@gnu.org>
764
765 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
766 initializing `GRUB_FS'.
767
058e30ac 7682010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
769
770 Not command (!) support to GRUB script.
771
772 * tests/grub_script_not.in: New test.
773 * Makefile.util.def: Rules for new test.
774
775 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
776 ! command as a special case.
777 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
778
b61d05ed 7792010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
780
058e30ac 781 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
782 grub_free.
b61d05ed 783
4d69c786 7842010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
785
786 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
787
aa3119c4 7882010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
789
790 * docs/grub.texi (Shell-like scripting): Documentation for break,
791 continue, shift and return commands.
792
db0f7e3d
VS
7932010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
794
795 Rename CD-ROM to cd on BIOS.
796
797 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
798 "cd".
799 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
800
88b87c93
VS
8012010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
802
803 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
804 * util/grub-probe.c (main): Likewise.
805 * util/i386/pc/grub-setup.c (main): Likewise.
806 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
807 Reported and debugged by: alexxy
808
294f324d
VS
8092010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
810
811 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
812 diagnostic info.
813
d7ee3441
JS
8142010-09-05 Jo Shields <directhex@apebox.org>
815
816 * util/grub.d/30_os-prober.in: Add missing classes.
817
d7e06c1f
VS
8182010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * docs/grub.texi (Theme file format): Document new position format.
821
fc157e53
VS
8222010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
825 a table. Use @code instead of @verbatim.
826
506e9a1c
CB
8272010-09-05 Colin D Bennett <colin@gibibit.com>
828
829 Gfxmenu documentation.
830
831 * docs/grub.texi (Theme file format): New chapter.
832
f0aff67c
SJ
8332010-09-05 Szymon Janc <szymon@janc.net.pl>
834
835 * grub-core/Makefile.core.def (xzio): New module.
836 * grub-core/io/xzio.c: New file.
837 * grub-core/lib/xzembed/xz.h: New file (from xembed).
838 * grub-core/lib/xzembed/xz_config.h: Likewise.
839 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
840 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
841 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
842 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
843 * grub-core/lib/xzembed/xz_private.h: Likewise.
844 * grub-core/lib/xzembed/xz_stream.h: Likewise.
845 * include/grub/file.h (grub_file_filter_id): New compression filter
846 GRUB_FILE_FILTER_XZIO.
847
82a85062
VS
8482010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
849
850 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
851 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
852 size.
853
3579415d
VS
8542010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
857 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
858
5124ae6d
VS
8592010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
860
861 Uncompressed checksum support.
862
863 * grub-core/commands/hashsum.c (options): Add option --uncompress.
864 (check_list): New parameter uncompress.
865 (grub_cmd_hashsum): Handle --uncompress.
866
9aadb3d1
VS
8672010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
868
869 Reintroduce testload.
870
871 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
872 from here ...
873 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
874 (GRUB_MOD_INIT): New function.
875 (GRUB_MOD_FINI): Likewise.
876 * grub-core/Makefile.core.def (testload): New module.
877
a17792c3
SJ
8782010-09-05 Szymon Janc <szymon@janc.net.pl>
879
880 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
881 (uint8_t): New type.
882 (uint16_t): Likewise.
883 (uint32_t): Likewise.
884 (uint64_t): Likewise.
885
b81e40a3
SJ
8862010-09-05 Szymon Janc <szymon@janc.net.pl>
887
888 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
889
fc2ef117
VS
8902010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
891
892 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
893 Made static.
894 (grub_gzfile_open): Removed. All users updated.
895 (GRUB_MOD_INIT): New function.
896 (GRUB_MOD_FINI): Likewise.
897 * grub-core/kern/file.c (grub_file_filters_all): New variable.
898 (grub_file_filters_enabled): Likewise.
899 (grub_file_open): Handle filters.
900 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
901 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
902 * include/grub/file.h (grub_file_filter_id_t): New type.
903 (grub_file_filter_t): Likewise.
904 (grub_file_filters_all): New extern variable.
905 (grub_file_filters_enabled): Likewise.
906 (grub_file_filter_register): New inline function.
907 (grub_file_filter_unregister): Likewise.
908 (grub_file_filter_disable): Likewise.
909 (grub_file_filter_disable_compression): Likewise.
910 * include/grub/gzio.h: Removed.
911
35ee15e0
BC
9122010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
913
914 Filename expansion support for wildcards in GRUB script.
915
916 * tests/grub_script_expansion.in: New test.
917 * Makefile.util.def: Rule for new test.
918
919 * grub-core/commands/wildcard.c: New file, implements filename
920 expansion support for GRUB script.
921 * grub-core/Makefile.core.def: Rule update for regexp.mod.
922 * grub-core/script/argv.c: Cosmetic changes.
923 * grub-core/script/execute.c (grub_script_arglist_to_argv):
924 Refactored to perform wildcard expansion on arguments.
925 * include/grub/script_sh.h (grub_script_wildcard_translator): New
926 struct.
927
928 * tests/util/grub-shell.in: Fix quoting for read input.
929
5f0c4aca
BC
9302010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
931
932 Support for updating environment variables with matched substrings
933 of regexp.
934
935 * tests/grub_cmd_regexp.in: New test.
936 * Makefile.util.def: Rule for new test.
937
938 * grub-core/commands/regexp.c: New option -s to update environment
939 variables with regexp matches.
940
3759a35f
SJ
9412010-09-04 Szymon Janc <szymon@janc.net.pl>
942
943 * include/grub/file.h (grub_file): New member not_easly_seekable.
944 (grub_file_seekable): New inline function.
945 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
946 easily seekable.
947 (grub_gzio_open): Set not_easly_seekable.
948 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
949 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
950
ed8c6dec
BC
9512010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
952
953 Support for options to appear multiple times on cmdline.
954
955 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
956 * grub-core/commands/extcmd.c: Support for repeatable option.
957 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
958 repeatable option support.
959
960 Refactor menuentry into a regular command.
961
962 * grub-core/commands/menuentry.c: New file, menuentry command
963 implementation.
964 * grub-core/Makefile.core.def: Rule update for normal.mod.
965 * grub-core/normal/main.c: Moved menuentry creation to
966 grub-core/commands/menuentry.c.
967 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
968 (grub_menu_execute_entry_real): Removed.
969 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
970 function.
971 (grub_script_execute_menuentry): Removed.
972 * grub-core/script/parser.y (menuentry): Removed.
973 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
974 * grub-core/script/yylex.l (menuentry): Removed.
975 * include/grub/menu.h (grub_menu_init): New prototype.
976 (grub_menu_fini): New prototype.
977 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
978 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
979 (grub_script_execute_sourcecode): New prototype.
980
dacd0cf0
BC
9812010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
982
983 "return" command for GRUB script functions.
984
985 * tests/grub_script_return.in: New test.
986 * Makefile.util.def: Rules for new test.
987
988 * grub-core/script/execute.c (grub_script_return): New function.
989 * grub-core/script/main.c: Register/unregister return commaond.
990 * include/grub/script_sh.h (grub_script_return): New prototype.
991
52e72f9d
BC
9922010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
993
994 "setparams" command to update positional parameters.
995
996 * tests/grub_script_setparams.in: New test.
997 * Makefile.util.def: Rules for new test.
998
999 * grub-core/script/argv.c (grub_script_argv_make): New function.
1000 * grub-core/script/execute.c (replace_scope): New function.
1001 (grub_script_setparams): New function.
1002 * grub-core/script/lexer.c: Remove unused variables.
1003 * grub-core/script/main.c: Register/unregister setparams command.
1004 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
1005 (grub_script_setparams): New prototype.
1006
25b60c91
BC
10072010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1008
1009 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
1010 grub_free order.
1011
37e7bf68
BC
10122010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1013
1014 Support for passing block of commands as an argument to extcmds.
1015
1016 * Makefile.util.def: Rules for new test.
1017 * tests/grub_script_blockarg.in: New test.
1018 * grub-core/tests/test_blockarg.c: New file, block argument
1019 command used in the test.
1020
1021 * include/grub/extcmd.h (grub_extcmd_context): New struct.
1022 (grub_register_extcmd_prio): New function prototype.
1023 (grub_extcmd_dispatcher): New function prototype.
1024 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
1025 type.
1026 * include/grub/script_sh.h (struct grub_script): New members
1027 `children', `next_siblings' and `refcnt' for block arguments and
1028 reference counting.
1029 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
1030 (grub_script_arg): New member `script' for block argument.
1031 (grub_script_argv): New member `script' for block argument.
1032 (grub_parser_param): New member `scripts' for block argument.
1033 (grub_script_mem_free): New extern function prototype.
1034 (grub_script_ref): New function prototype.
1035 (grub_script_unref): New function prototype.
1036
1037 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
1038 extcmd form to support block arguments.
1039 * grub-core/script/argv.c: Block arguments support.
1040 * grub-core/script/execute.c: Likewise.
1041 * grub-core/script/lexer.c: Likewise.
1042 * grub-core/script/main.c: Likewise.
1043 * grub-core/script/script.c: Likewise.
1044 * grub-core/script/parser.y: Likewise. New `block' and `block0'
1045 non-terminals.
1046
1047 * grub-core/commands/acpi.c: Update extcmd implementations with
1048 grub_extcmd_context_t.
1049 * grub-core/commands/cat.c: Likewise.
1050 * grub-core/commands/echo.c: Likewise.
1051 * grub-core/commands/extcmd.c: Likewise.
1052 * grub-core/commands/hashsum.c: Likewise.
1053 * grub-core/commands/hdparm.c: Likewise.
1054 * grub-core/commands/help.c: Likewise.
1055 * grub-core/commands/hexdump.c: Likewise.
1056 * grub-core/commands/i386/cpuid.c: Likewise.
1057 * grub-core/commands/i386/pc/drivemap.c: Likewise.
1058 * grub-core/commands/i386/pc/halt.c: Likewise.
1059 * grub-core/commands/i386/pc/sendkey.c: Likewise.
1060 * grub-core/commands/iorw.c: Likewise.
1061 * grub-core/commands/keystatus.c: Likewise.
1062 * grub-core/commands/loadenv.c: Likewise.
1063 * grub-core/commands/ls.c: Likewise.
1064 * grub-core/commands/lspci.c: Likewise.
1065 * grub-core/commands/memrw.c: Likewise.
1066 * grub-core/commands/probe.c: Likewise.
1067 * grub-core/commands/search_wrap.c: Likewise.
1068 * grub-core/commands/setpci.c: Likewise.
1069 * grub-core/commands/sleep.c: Likewise.
1070 * grub-core/disk/loopback.c: Likewise.
1071 * grub-core/hello/hello.c: Likewise.
1072 * grub-core/loader/i386/bsd.c: Likewise.
1073 * grub-core/loader/xnu.c: Likewise.
1074 * grub-core/term/gfxterm.c: Likewise.
1075 * grub-core/term/serial.c: Likewise.
1076 * grub-core/tests/lib/functional_test.c: Likewise.
1077
888d1500
BC
10782010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1079
1080 Multi-line quoted strings support.
1081
1082 * grub-core/script/lexer.c (append_newline): Removed.
1083 (grub_script_lexer_yywrap): Refactored.
1084 (grub_script_lexer_init): Refactored.
1085 * grub-core/script/yylex.l (yywrap): New function.
1086 (grub_lexer_resplit): New function.
1087 (grub_lexer_unput): New function.
1088 * include/grub/script_sh.h (grub_lexer_param): New members, unput
1089 and resplit.
1090 * tests/grub_script_echo1.in: Added few more testcases.
1091
dda060dd
VS
10922010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 * grub-core/kern/misc.c: Don't add abort alias in utils.
1095 Reported by: echoline.
1096
6556eba9
BC
10972010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
1098
1099 Add missing files into "make dist" tarball for other platforms.
1100
1101 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
1102 * conf/Makefile.common (dist_noinst_DATA): New variable.
1103 * conf/Makefile.extra-dist: Added missing make dist files.
1104 * grub-core/Makefile.core.def: Likewise.
1105
c8e7bf5f
VS
11062010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 Compress grub_prefix.
1109
1110 * grub-core/boot/i386/pc/lnxboot.S: Use
1111 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
1112 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
1113 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
1114 GRUB_MACHINE_PREFIX_END. All users updated.
1115 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
1116 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
1117 + 0x40.
1118 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
1119 * util/grub-mkimage.c (image_target_desc): Change data_end to
1120 prefix_end. All users updated.
1121
a7c00cdb
VS
11222010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
1125 value.
1126 (grub_openbsd_boot): Likewise.
1127 (grub_netbsd_boot): Likewise.
1128 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
1129 (grub_xnu_boot): Likewise.
1130
9f915872
VS
11312010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * configure.ac: Clean LIBS variable after tests.
1134
efa1bee7
CW
11352010-09-02 Colin Watson <cjwatson@ubuntu.com>
1136
1137 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
1138
61d720e5
VS
11392010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1140
1141 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
1142 echo if libdevmapper will be used.
1143
ef8e0ec8
IT
11442010-09-02 Ian Turner <Ian.Turner@deshaw.com>
1145
1146 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
1147 constant for the same file.
1148
03e261d8
VS
11492010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
1152
c2a4eba6
CW
11532010-09-02 Colin Watson <cjwatson@ubuntu.com>
1154
1155 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
1156 grub-core/*.pp.
1157
9056cbf3
CW
11582010-09-02 Colin Watson <cjwatson@ubuntu.com>
1159
1160 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
1161 required by the boot protocol.
1162
1163 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
1164 ebp and edi members.
1165 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
1166 state.ebp and state.edi.
1167 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
1168 %ebp and %edi according to grub_relocator32_ebp and
1169 grub_relocator32_edi respectively.
1170 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
1171 and state.edi.
1172
529cc99a
VS
11732010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 Add i386-pc-pxe image target.
1176
1177 * util/grub-mkimage.c (image_target_desc): New enum value
1178 IMAGE_I386_PC_PXE.
1179 (image_targets): New target i386-pc-pxe.
1180 (generate_image): Handle i386-pc-pxe image.
1181
9a093920
VS
11822010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 Fix grub_pxe_scan.
1185
1186 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
1187 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
1188 All users updated.
1189 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
1190 (grub_pxe_pxenv): Correct type.
1191
f9cefc4e
CW
11922010-09-01 Colin Watson <cjwatson@ubuntu.com>
1193
1194 * NEWS: Document most of the important changes since 1.98.
1195
4066f57f
CW
11962010-09-01 Colin Watson <cjwatson@ubuntu.com>
1197
1198 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
1199 generated manual page) a little.
1200
da2891f9
CW
12012010-09-01 Colin Watson <cjwatson@ubuntu.com>
1202
1203 * docs/grub.texi: Add myself as an author.
1204
ad717fae
VS
12052010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 * Makefile.util.def (libgrub.a): Add missing sunpc.
1208 Reported by: Seth Goldberg.
1209
eefe8abd
VS
12102010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Interrupt wrapping and code simplifications.
1213
9494ef9a
VS
1214 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
1215 x86_noieee1275 which are functionaly equivalent in this case.
1216 (grub-install): Make source on each platform explicit. Enable on
1217 all noemu.
1218 * gentpl.py (x86_efi_pc): Removed group.
1219 (x86_noefi): Likewise.
1220 (i386_noefi): Likewise.
1221 (x86_noieee1275): Likewise.
1222 (i386_noieee1275): Likewise.
1223 (i386_noefi_noieee1275): Likewise.
1224 (i386_pc_qemu_coreboot): Likewise.
1225 (i386_coreboot_multiboot): Likewise.
1226 (i386_pc_coreboot_multiboot_qemu): Likewise.
1227 (x86_noefi_mips): Likewise.
1228 (noieee1275): Likewise.
1229 (ieee1275_mips): Likewise.
1230 (noemu_noieee1275): Likewise.
1231 (cmos): New group.
1232 (usb): Likewise.
1233 (videoinkernel): Likewise.
1234 (videomodules): Likewise.
eefe8abd 1235 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
1236 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
1237 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
1238 include/grub/loader.h, include/grub/msdos_partition.h,
1239 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
1240 include/grub/machine/console.h, include/grub/machine/vga.h,
1241 include/grub/machine/vbe.h, include/grub/machine/init.h,
1242 include/grub/machine/kernel.h, include/grub/cpu/time.h,
1243 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 1244 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
1245 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
1246 * grub-core/Makefile.core.def (kernel): Explicit the source for
1247 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
1248 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
1249 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
1250 Use videoinkernel tag.
1251 (usb): Enable on all usb.
1252 (usbserial_common): Likewise.
1253 (usbserial_pl2303): Likewise.
1254 (usbserial_ftdi): Likewise.
1255 (uhci): Enable on all x86.
1256 (ohci): Enable on all pci.
1257 (cmostest): Enable on all CMOS.
1258 (acpi): Include commands/acpi.c on all platforms.
1259 (halt): Add relevant lib/*/halt.c.
1260 (hdparm): Enable on all pci.
1261 (lspci): Likewise.
1262 (usbtest): Enable on all usb.
1263 (ata): Enable on all pci.
1264 (ata_pthru): Likewise.
1265 (usbms): Enable on all usb.
1266 (usb_keyboard): Likewise.
1267 (font): Use tag videomodules.
1268 (bufio): Likewise.
1269 (datetime): Use tag cmos. Enable on all noemu.
1270 (mmap): Use tags common and x86.
1271 (gfxterm): Use tag videomodules.
1272 (bitmap): Likewise.
1273 (bitmap_scale): Likewise.
1274 (video_fb): Likewise.
1275 (video): Likewise.
1276 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
1277 adjust padding accordingly. All users updated.
1278 (grub_ohci_transaction): Fix bad format specification.
1279 (GRUB_MOD_INIT): Add asserts for struct size.
1280 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
1281 (grub_alloc_td): Likewise.
1282 (grub_free_queue): Likewise.
1283 (grub_uhci_transfer): Likewise.
1284 (grub_uhci_transaction): Fix bad format specification.
1285 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1286 (grub_usb_bulk_readwrite): Likewise.
1287 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
1288 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
1289 Made static.
1290 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
1291 Made static.
1292 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
1293 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
1294 Transformed into C.
1295 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
1296 Moved from here ...
1297 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
1298 ... here. Transformed into C. Made static.
1299 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
1300 Moved from here ...
1301 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
1302 ... here. Transformed into C. Made static.
1303 * grub-core/kern/i386/pc/startup.S
1304 (grub_biosdisk_check_int13_extensions): Moved from here ...
1305 * grub-core/disk/i386/pc/biosdisk.c
1306 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
1307 Made static.
1308 * grub-core/kern/i386/pc/startup.S
1309 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
1310 * grub-core/disk/i386/pc/biosdisk.c
1311 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
1312 Transformed into C. Made static.
1313 * grub-core/kern/i386/pc/startup.S
1314 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
1315 * grub-core/disk/i386/pc/biosdisk.c
1316 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
1317 Transformed into C. Made static.
1318 * grub-core/kern/i386/pc/startup.S
1319 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
1320 * grub-core/disk/i386/pc/biosdisk.c
1321 (grub_biosdisk_get_diskinfo_standard): ... here.
1322 Transformed into C. Made static.
1323 * grub-core/kern/i386/pc/startup.S
1324 (grub_biosdisk_get_num_floppies): Moved from here ...
1325 * grub-core/disk/i386/pc/biosdisk.c
1326 (grub_biosdisk_get_num_floppies): ... here.
1327 Transformed into C. Made static.
1328 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
1329 New function.
1330 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
1331 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
1332 Transformed into C. Made static.
1333 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
1334 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
1335 Transformed into C. Made static.
1336 * grub-core/kern/i386/ieee1275/init.c: Removed.
1337 * grub-core/kern/i386/misc.S: Likewise.
1338 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
1339 Splitted from here ...
1340 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
1341 Transformed into C. Made static. All users updated.
1342 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
1343 Transformed into C. Made static. All users updated.
1344 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
1345 Moved from here...
1346 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
1347 Transformed into C. Made static. All users updated.
1348 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
1349 Moved from here...
1350 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
1351 Transformed into C. Made static. All users updated.
1352 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
1353 Removed (replaced by C version).
1354 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
1355 Moved from here...
1356 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
1357 Transformed into C. Made static.
1358 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
1359 Moved from here...
1360 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
1361 ... here. Transformed into C.
1362 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
1363 Moved from here...
1364 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
1365 ... here. Transformed into C.
1366 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
1367 Moved from here...
1368 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
1369 ... here. Transformed into C. Made static.
1370 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
1371 Moved from here...
1372 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
1373 ... here. Transformed into C.
21ed554b
VS
1374 * grub-core/kern/i386/pc/startup.S
1375 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
1376 * grub-core/video/i386/pc/vbe.c
1377 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
1378 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
1379 Moved from here...
1380 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
1381 ... here. Transformed into C.
1382 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
1383 Moved from here...
1384 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
1385 ... here. Transformed into C.
1386 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
1387 Moved from here...
1388 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
1389 ... here. Transformed into C.
1390 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
1391 Moved from here...
1392 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
1393 ... here. Transformed into C.
1394 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
1395 Moved from here...
1396 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
1397 ... here. Transformed into C. Made static.
1398 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
1399 Moved from here...
1400 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
1401 ... here. Transformed into C. Made static.
1402 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
1403 Moved from here...
1404 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
1405 ... here. Transformed into C. Made static.
1406 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
1407 pxe_rm_entry as third argument.
1408 (grub_bios_interrupt): New function.
1409 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
1410 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
1411 of calling grub_stop.
1412 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
1413 * grub-core/lib/efi/halt.c (grub_halt): ...here.
1414 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
1415 * grub-core/lib/emu/halt.c (grub_halt): ... here.
1416 * grub-core/lib/i386/halt.c: Moved from here ...
1417 * grub-core/lib/i386/halt.c: ... here.
1418 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
1419 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
1420 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
1421 grub_stop_floppy.
1422 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
1423 * include/grub/i386/coreboot/init.h: Removed.
1424 * include/grub/i386/multiboot/init.h: Likewise.
1425 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
1426 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
1427 * include/grub/i386/pc/int.h: New file.
1428 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
1429 (grub_pxe_scan): Removed.
1430 (grub_pxe_call): Update prototype.
1431 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
1432 prototypes.
1433 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
1434 * include/grub/i386/qemu/init.h: Removed.
1435 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
1436 noreturn.
1437 (grub_halt): Likewise.
1438 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
1439 (grub_reboot): Likewise.
1440 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
1441 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
1442 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
1443
215dd471
RM
14442010-08-30 Robert Millan <rmh@gnu.org>
1445
1446 * NEWS: Document addition of ZFS support in `grub-install' and
1447 `grub-mkconfig'.
1448
ebd65b82
BC
14492010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
1450
1451 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
1452 dprintf output.
1453
11721d19
VS
14542010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 Remove leftover embedding of font objects.
1457
1458 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
1459 * util/grub-install.in (font): Removed.
1460 * util/grub-mkimage.c (generate_image): Remove font support. All users
1461 updated.
1462
37837d4e
VS
14632010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 Remove leftover embedding of font objects.
1466
1467 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
1468 * util/grub-install.in (font): Removed.
1469 * util/grub-mkimage.c (generate_image): Remove font support. All users
1470 updated.
1471
b4c1aae0
VS
14722010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 1475 Reported by: Ian Turner
b4c1aae0 1476
8920a08d
VS
14772010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
1480 timeout to avoid indefinite boot stalling.
1481
f21db033
VS
14822010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
1485 (grub_env_write_color_highlight): Likewise.
1486
9a9de209
VS
14872010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 * grub-core/normal/term.c (print_more): Return to normal and not
1490 to standard state after printing "---MORE---".
1491
3dca01d7
VS
14922010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
1495 Mask out the bit 0x80 since it has other meaning that specifiing color.
1496
0b986c40
VS
14972010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 New relocator. Allows for more kernel support and more straightforward
1500 loader writing.
1501
1502 * Makefile.am (BOOTTARGET): New variable.
1503 (QEMU32): Likewise.
1504 (linux.init.x86_64): New target.
1505 (linux.init.i386): Likewise.
1506 (multiboot.elf): Likewise.
1507 (kfreebsd.elf): Likewise.
1508 (kfreebsd.aout): Likewise.
1509 (pc-chainloader.elf): Likewise.
1510 (pc-chainloader.bin): Likewise.
1511 (ntldr.elf): Likewise.
1512 (ntldr.bin): Likewise.
1513 (multiboot2.elf): Likewise.
1514 (kfreebsd.init.x86_64): Likewise.
1515 (kfreebsd.init.i386): Likewise.
1516 (knetbsd.init.i386): Likewise.
1517 (kopenbsd.init.i386): Likewise.
1518 (knetbsd.init.x86_64): Likewise.
1519 (kopenbsd.init.x86_64): Likewise.
1520 (linux-initramfs.i386): Likewise.
1521 (linux-initramfs.x86_64): Likewise.
1522 (kfreebsd-mfsroot.i386.img): Likewise.
1523 (knetbsd.image.i386): Likewise.
1524 (kopenbsd.image.i386): Likewise.
1525 (kopenbsd.image.x86_64): Likewise.
1526 (knetbsd.miniroot-image.i386.img): Likewise.
1527 (kfreebsd-mfsroot.x86_64.img): Likewise.
1528 (knetbsd.image.x86_64): Likewise.
1529 (knetbsd.miniroot-image.x86_64.img): Likewise.
1530 (kfreebsd-mfsroot.i386.gz): Likewise.
1531 (bootcheck-kfreebsd-i386): Likewise.
1532 (kfreebsd-mfsroot.x86_64.gz): Likewise.
1533 (bootcheck-kfreebsd-x86_64): Likewise.
1534 (knetbsd.miniroot-image.i386.gz): Likewise.
1535 (bootcheck-knetbsd-i386): Likewise.
1536 (bootcheck-kopenbsd-i386): Likewise.
1537 (bootcheck-kopenbsd-x86_64): Likewise.
1538 (knetbsd.miniroot-image.x86_64.gz): Likewise.
1539 (bootcheck-knetbsd-x86_64): Likewise.
1540 (bootcheck-linux-i386): Likewise.
1541 (bootcheck-linux-x86_64): Likewise.
1542 (bootcheck-linux16-i386): Likewise.
1543 (bootcheck-linux16-x86_64): Likewise.
1544 (bootcheck-multiboot): Likewise.
1545 (bootcheck-multiboot2): Likewise.
1546 (bootcheck-kfreebsd-aout): Likewise.
1547 (bootcheck-pc-chainloader): Likewise.
1548 (bootcheck-ntldr): Likewise.
1549 (CLEANFILES): Add new targets.
1550 (BOOTCHECKS): New variable.
1551 (.PHONY): Add bootchecks.
1552 (SUCCESSFUL_BOOT_STRING): New variable.
1553 (BOOTCHECK_TIMEOUT): Likewise.
1554 (bootcheck): New target
1555 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
1556 * configure.ac: Correct efiemu excuse.
1557 * docs/grub.texi (Supported kernels): New chapter.
1558 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
1559 include/grub/mm_private.h. Simplify inclusion of
1560 include/grub/boot.h, include/grub/loader.h
1561 and include/grub/msdos_partition.h
1562 (KERNEL_HEADER_FILES) [i386_coreboot]:
1563 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
1564 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
1565 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
1566 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
1567 include/grub/machine/loader.h.
1568 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
1569 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
1570 extra_dist.
1571 (pci.mod): Enable on i386-multiboot.
1572 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
1573 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
1574 i386-qemu.
1575 (relocator.mod): Rewritten.
1576 (aout.mod): Enable on all x86.
1577 (bsd.mod): Likewise.
1578 (ntldr.mod): New module.
1579 (linux.mod): Use loader/i386/linux.c on all x86.
1580 (xnu.mod): Enable on all x86.
1581 (vga_text.mod): disable on EFI and QEMU.
1582 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
1583 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
1584 * grub-core/efiemu/loadcore.c: Likewise.
1585 * grub-core/efiemu/main.c: Likewise.
1586 (grub_efiemu_exit_boot_services): Removed.
1587 (grub_efiemu_finish_boot_services): Likewise.
1588 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
1589 function.
1590 * grub-core/efiemu/i386/nocfgtables.c: New file.
1591 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
1592 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
1593 (grub_efi_finish_boot_services): Moved from here ...
1594 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
1595 Fille finish memory map and related data.
1596 (finish_mmap_buf): New variable.
1597 (grub_efi_uintn_t finish_mmap_size): Likewise.
1598 (grub_efi_uintn_t finish_key): Likewise.
1599 (grub_efi_uintn_t finish_desc_size): Likewise.
1600 (grub_efi_uint32_t finish_desc_version): Likewise.
1601 (grub_efi_is_finished): Likewise.
1602 (grub_efi_get_memory_map): Use saved memory map if EFI is already
1603 finished.
1604 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
1605 (grub_elf64_phdr_iterate): Likewise.
1606 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
1607 (grub_os_area_size): Likewise.
1608 (grub_machine_init): Don't reserve os area.
1609 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
1610 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
1611 * grub-core/kern/i386/loader.S: Removed.
1612 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
1613 (grub_os_area_size): Likewise.
1614 (grub_machine_init): Don't reserve os area.
1615 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
1616 Don't call grub_dl_unload_all.
1617 Don't include loader.S.
1618 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1619 Declare the memory after _end as available.
1620 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 1621 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 1622 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
1623 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
1624 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
1625 * include/grub/mm_private.h (grub_mm_header): ... here.
1626 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
1627 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
1628 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
1629 (grub_mm_region): ..here. Removed addr. Added pre_size.
1630 All users updated.
1631 * grub-core/kern/mm.c (base): Renamed to ...
1632 (grub_mm_base): ... this. Made global.
1633 (grub_real_malloc): Alloc from end of region.
1634 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
1635 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
1636 * grub-core/kern/powerpc/cache_flush.S: ... here.
1637 * grub-core/lib/efi/relocator.c: New file.
1638 * grub-core/lib/i386/relocator.c: Rewritten.
1639 * grub-core/lib/i386/relocator16.S: New file.
1640 * grub-core/lib/i386/relocator32.S: Likewise.
1641 * grub-core/lib/i386/relocator64.S: Likewise.
1642 * grub-core/lib/i386/relocator_asm.S: Rewritten.
1643 * grub-core/lib/i386/relocator_common.S: New file.
1644 * grub-core/lib/ieee1275/relocator.c: Likewise.
1645 * grub-core/lib/mips/relocator.c: Rewritten.
1646 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
1647 stylistic adjustments.
1648 * grub-core/lib/powerpc/relocator.c: New file.
1649 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
1650 * grub-core/lib/relocator.c: Rewritten.
1651 * grub-core/lib/x86_64/relocator_asm.S: New file.
1652 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
1653 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
1654 (bsd_tag): New struct.
1655 (tags): New variable.
1656 (tags_last): Likewise.
1657 (netbsd_module): New struct.
1658 (netbsd_mods): New variable.
1659 (netbsd_mods_last): Likewise.
1660 (openbsd_opts): New parameter "serial".
1661 (OPENBSD_SERIAL_ARG): New definition.
1662 (netbsd_opts): New parameter "serial".
1663 (NETBSD_SERIAL_ARG): New definition.
1664 (grub_freebsd_add_meta): Reorganised into ...
1665 (grub_bsd_add_meta): ...this. All users updated.
1666 (grub_freebsd_add_mmap): Reorganised into ...
1667 (generate_e820_mmap): ...this...
1668 (grub_bsd_add_mmap): ...and this. All users updated.
1669 (grub_freebsd_list_modules): Use tags.
1670 (grub_netbsd_add_meta_module): New function.
1671 (grub_netbsd_list_modules): Likewise.
1672 (grub_freebsd_boot): Use relocator and finish EFI.
1673 (grub_openbsd_boot): Likewise.
1674 (grub_netbsd_setup_video): New function.
1675 (grub_netbsd_add_modules): Likewise.
1676 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
1677 and finish EFI.
1678 (grub_bsd_unload): Unload tags.
1679 (grub_bsd_load_aout): Use relocator.
1680 (grub_bsd_elf32_size_hook): New function.
1681 (grub_bsd_elf32_hook): Use relocator.
1682 (grub_bsd_elf64_size_hook): New function.
1683 (grub_bsd_elf64_hook): Use relocator.
1684 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
1685 (grub_bsd_load): Zero-out openbsd_ramdisk.
1686 (grub_bsd_load): Use relocator.
1687 (grub_cmd_openbsd): Support serial.
1688 (grub_cmd_netbsd): Support modules.
1689 (grub_cmd_freebsd_module): Use relocator.
1690 (grub_netbsd_module_load): New function.
1691 (grub_cmd_netbsd_module): Likewise.
1692 (grub_cmd_openbsd_ramdisk): Likewise.
1693 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
1694 kopenbsd_ramdisk.
1695 (GRUB_MOD_FINI): Unregister new commands.
1696 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
1697 (grub_freebsd_load_elfmodule_obj): Use relocator.
1698 (grub_freebsd_load_elfmodule): Likewise.
1699 (grub_freebsd_load_elf_meta): Likewise.
1700 (grub_netbsd_load_elf_meta): New function.
1701 (grub_openbsd_find_ramdisk): Likewise.
1702 * grub-core/loader/i386/bsd_helper.S: Removed.
1703 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
1704 * grub-core/loader/i386/bsd_trampoline.S: Removed.
1705 * grub-core/loader/i386/efi/linux.c: Likewise.
1706 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
1707 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
1708 (DEFAULT_VIDEO_MODE): Likewise.
1709 (real_mode_target): New variable.
1710 (prot_mode_target): Likewise.
1711 (initrd_mem_target): Likewise.
1712 (relocator): Likewise.
1713 (efi_mmap_buf): Likewise.
1714 (efi_mmap_size): Likewise.
1715 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
1716 (free_pages): Use relocator.
1717 (allocate_pages): Account for efi_mmap and use relocator. Return error.
1718 (grub_linux_setup_video): Return error.
1719 (grub_linux_trampoline_start): Removed.
1720 (grub_linux_trampoline_end): Likewise.
1721 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
1722 andd video parameters depending on firmware.
1723 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
1724 [GRUB_MACHINE_EFI]: Pass EFI parameters.
1725 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
1726 (grub_cmd_initrd): Use relocator.
1727 * grub-core/loader/i386/linux_trampoline.S: Removed.
1728 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
1729 (elf_sec_entsize): Likewise.
1730 (elf_sec_shstrndx): Likewise.
1731 (elf_sections): Likewise.
1732 (grub_multiboot_load): Use relocator.
1733 (grub_multiboot_get_mbi_size): Account for sections.
1734 (grub_multiboot_make_mbi): Use relocator and support sections.
1735 (grub_multiboot_add_elfsyms): New function.
1736 (grub_multiboot_free_mbi): Free sections.
1737 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
1738 (grub_linux_real_target): Likewise.
1739 (grub_linux_real_chunk): Likewise.
1740 (grub_linux16_prot_size): Likewise.
1741 (grub_linux16_boot): Use relocator.
1742 (grub_linux_unload): Unload relocator.
1743 (grub_cmd_linux): Use relocator.
1744 (grub_cmd_initrd): Likewise.
1745 * grub-core/loader/i386/pc/ntldr.c: New file.
1746 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
1747 Don't try to guess CPU frequency.
1748 (grub_xnu_set_video): Stretch bitmap.
1749 (grub_xnu_boot): Use relocator.
1750 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
1751 (grub_linux_unload): Free relocator.
1752 (grub_linux_load32): Use relocator.
1753 (grub_linux_load64): Likewise.
1754 (grub_cmd_initrd): Likewise.
1755 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
1756 (grub_multiboot_unload): Unload relocator.
1757 (grub_cmd_multiboot): Use relocator.
1758 (grub_cmd_module): Likewise.
1759 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
1760 Use relocator and support sections.
1761 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
1762 (elf_sec_entsize): Likewise.
1763 (elf_sec_shstrndx): Likewise.
1764 (elf_sections): Likewise.
1765 (grub_multiboot_load): Use relocator.
1766 (grub_multiboot_get_mbi_size): Account for sections.
1767 (grub_multiboot_make_mbi): Use relocator and support sections.
1768 (grub_multiboot_add_elfsyms): New function.
1769 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
1770 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
1771 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
1772 Prototype changed. All users updated.
1773 (grub_xnu_align_heap): Simplified.
1774 (grub_xnu_writetree_toheap): Likewise.
1775 (grub_xnu_unload): Unload relocator.
1776 (grub_cmd_xnu_kernel): Use relocator.
1777 (grub_cmd_xnu_kernel64): Likewise.
1778 (grub_xnu_register_memory): Simplified.
1779 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
1780 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
1781 EFI is finished.
1782 (grub_console_checkkey): Likewise.
1783 (grub_console_getkey): Likewise.
1784 (grub_console_getwh): Likewise.
1785 (grub_console_getxy): Likewise.
1786 (grub_console_gotoxy): Likewise.
1787 (grub_console_cls): Likewise.
1788 (grub_console_setcolorstate): Likewise.
1789 (grub_console_setcursor): Likewise.
1790 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
1791 * grub-core/tests/boot/kbsd.init-i386.S: New file.
1792 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
1793 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
1794 * grub-core/tests/boot/kernel-8086.S: Likewise.
1795 * grub-core/tests/boot/kernel-i386.S: Likewise.
1796 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
1797 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
1798 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
1799 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
1800 * grub-core/tests/boot/knetbsd.cfg: Likewise.
1801 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
1802 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
1803 * grub-core/tests/boot/linux.cfg: Likewise.
1804 * grub-core/tests/boot/linux.init-i386.S: Likewise.
1805 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
1806 * grub-core/tests/boot/linux16.cfg: Likewise.
1807 * grub-core/tests/boot/multiboot.cfg: Likewise.
1808 * grub-core/tests/boot/multiboot2.cfg: Likewise.
1809 * grub-core/tests/boot/ntldr.cfg: Likewise.
1810 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
1811 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
1812 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
1813 New definition.
1814 * include/grub/dl.h (grub_dl_unload_all): Removed.
1815 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
1816 (grub_efi_finish_boot_services): Change prototype.
1817 (grub_efi_is_finished): New variable.
1818 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
1819 Changed prototype.
1820 (grub_efiemu_finish_boot_services): Removed.
1821 (grub_machine_efiemu_init_tables): New prototype.
1822 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
1823 (grub_elf64_phdr_iterate): Likewise.
1824 * include/grub/i386/bsd.h: Include relocator.h.
1825 (freebsd_tag_header): New struct.
1826 (grub_openbsd_bios_mmap): Removed.
1827 (grub_unix_real_boot): Removed.
1828 (grub_freebsd_load_elfmodule32): Changed prototype.
1829 (grub_freebsd_load_elfmodule_obj64): Likewise.
1830 (grub_freebsd_load_elf_meta32): Likewise.
1831 (grub_freebsd_load_elf_meta64): Likewise.
1832 (grub_freebsd_add_meta): Removed.
1833 (grub_netbsd_load_elf_meta32): New prototype.
1834 (grub_netbsd_load_elf_meta64): Likewise.
1835 (grub_bsd_add_meta): Likewise.
1836 (grub_openbsd_ramdisk_descriptor): New struct.
1837 (grub_openbsd_find_ramdisk32): New prototype.
1838 (grub_openbsd_find_ramdisk64): Likewise.
1839 * include/grub/i386/coreboot/loader.h: Removed.
1840 * include/grub/i386/efi/loader.h: Likewise.
1841 * include/grub/i386/ieee1275/loader.h: Likewise.
1842 * include/grub/i386/linux.h (linux_kernel_header): Change void *
1843 to grub_uint32_t.
1844 * include/grub/i386/loader.h: Removed.
1845 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
1846 value.
1847 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
1848 (grub_phys_addr_t): New type.
1849 (grub_vtop): New inline function.
1850 (grub_map_memory): Likewise.
1851 (grub_unmap_memory): Likewise.
1852 * include/grub/i386/multiboot/loader.h: Removed.
1853 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
1854 (NETBSD_BTINFO_CONSOLE): New definition.
1855 (NETBSD_BTINFO_SYMTAB): Likewise.
1856 (NETBSD_BTINFO_MODULES): Likewise.
1857 (NETBSD_BTINFO_FRAMEBUF): Likewise.
1858 (grub_netbsd_bootinfo): New struct.
1859 (grub_netbsd_btinfo_common): Use explicit bitsize.
1860 (grub_netbsd_btinfo_mmap_entry): Removed.
1861 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
1862 (grub_netbsd_btinfo_bootdisk): New struct.
1863 (grub_netbsd_btinfo_symtab): Likewise.
1864 (grub_netbsd_btinfo_serial): Likewise.
1865 (grub_netbsd_btinfo_modules): Likewise.
1866 (grub_netbsd_btinfo_framebuf): Likewise.
1867 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
1868 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
1869 Likewise.
1870 (grub_openbsd_bootargs): Use explicit bitsize.
1871 (grub_openbsd_bootarg_console): New struct.
1872 (GRUB_OPENBSD_COM_MAJOR): New definition.
1873 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
1874 * include/grub/i386/pc/efiemu.h: Removed.
1875 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
1876 * include/grub/i386/qemu/loader.h: Removed.
1877 * include/grub/i386/relocator.h: Rewritten.
1878 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
1879 * include/grub/mips/memory.h: New file.
1880 * include/grub/mips/multiboot.h: Rewritten.
1881 * include/grub/mips/relocator.h: Rewritten.
1882 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
1883 (grub_vtop): New function.
1884 (grub_map_memory): Likewise.
1885 (grub_unmap_memory): Likewise.
1886 * include/grub/misc.h (ALIGN_DOWN): New definition.
1887 * include/grub/mm.h (grub_mm_check_real): New proto.
1888 (GRUB_MM_CHECK): New definition.
1889 * include/grub/mm_private.h: New file.
1890 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
1891 (grub_multiboot_get_mbi_size): Removed.
1892 (grub_multiboot_make_mbi): Change prottype.
1893 (grub_multiboot_set_accepts_video): New proto.
1894 (grub_multiboot_add_elfsyms): Likewise.
1895 (grub_multiboot_payload_eip): New variable.
1896 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
1897 New prototype.
1898 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
1899 New definition.
1900 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
1901 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
1902 * include/grub/powerpc/ieee1275/loader.h: Removed.
1903 * include/grub/powerpc/memory.h: New file.
1904 * include/grub/powerpc/relocator.h: Likewise.
1905 * include/grub/relocator.h: Likewise.
1906 * include/grub/relocator_private.h: Likewise.
1907 * include/grub/sparc64/ieee1275/loader.h: Removed.
1908 * include/grub/x86_64/memory.h: New file.
1909 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
1910 (grub_xnu_heap_malloc): Likewise.
1911 (grub_xnu_heap_real_start): Removed.
1912 (grub_xnu_heap_start): Likewise.
1913 (grub_xnu_relocator): New variable.
1914 (grub_xnu_heap_target_start): Likewise.
1915 * tests/util/grub-shell.in: Support non-pc.
1916 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 1917
5303b85d
VS
19182010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
1921 on malloc error.
1922 (grub_bidi_logical_to_visual): Check that malloc succeded.
1923 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
1924 puts.
1925 (grub_xputs_normal): Likewise.
1926
d768d159
VS
19272010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
1930 extra_dist.
1931
19322010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1933
1934 * grub-core/efiemu/runtime/efiemu.sh: Removed.
1935
5bf84df4
VS
19362010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
1939
3626810e
VS
19402010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
1941
1942 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
1943 dprintf.
1944
a7363f53
BC
19452010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
1946
1947 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
1948
902f75f6
VS
19492010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 * grub-core/normal/term.c (print_more): Fix a memory leak.
1952 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
1953 (grub_xputs_normal): Likewise.
1954
3c707967
VS
19552010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
1958 the begining of the string
1959
2053cc07
VS
19602010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1961
1962 * grub-core/script/script.c (grub_script_parse): Free parsed on
1963 failure.
1964
46422ebf
VS
19652010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
1968 on failure.
1969
9e0fa3f6
VS
19702010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
1973 return.
1974
3393cf16
VS
19752010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
1978 (scroll_up): Fix a memory leak.
1979
b17540cb
VS
19802010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
1983 errors.
1984
67140446
VS
19852010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 Handle USB pendrives exposed as floppies.
1988
1989 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
1990 floppy.
1991 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
1992 Check for partitions on all devices.
1993
e35e46fc
VS
19942010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
1997 (readkey): Likewise.
1998
d24c6190
BC
19992010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
2000
2001 Multiple variable names support to "export" command.
2002
2003 * normal/context.c (grub_cmd_export): "export" command supports
2004 multiple variable names.
2005
04ddcc6a
ST
20062010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
2007
2008 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
2009 --target=drive output to Mach device name.
2010
0c8b61d8
BC
20112010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
2012
2013 New Automake based build system for GRUB.
2014
2015 * ABOUT-NLS: New file.
2016 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
2017 in Makefile.util.def file.
2018 * Makefile.util.def: New file. Autogen build definitions file for
2019 GRUB host utils.
2020 * conf/Makefile.common: New file. Common variables for GRUB host
2021 utils and target modules.
2022 * conf/Makefile.extra-dist: New file. Extra files for make dist.
2023 * docs/Makefile.am: New file. Automake file for docs.
2024 * gentpl.py: New file. Python script to generate Autogen
2025 template.
2026 * grub-core/Makefile.am: New file. GRUB target modules' rules
2027 that doesn't fit in Makefile.core.def file.
2028 * grub-core/Makefile.core.def: New file. Autogen build
2029 definitions file for GRUB target modules.
2030 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
2031 specific setjmp.S file.
2032 * po/Makefile.am: New file.
2033
2034 * .bzrignore: New ignores.
2035 * INSTALL: New requirements, without Ruby.
2036 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
2037 * autogen.sh: Updated to invoke autogen as necessary.
2038 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
2039 and defines for Automake conditionals.
2040 * geninit.sh: Refactoring.
2041
2042 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
2043 necessary.
2044 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
2045 New prototype.
2046
2047 * include/grub/test.h: Fix functional test modules' naming.
2048 * grub-core/tests/example_functional_test.c: Fix test module name.
2049
2050 * util/misc.c: Hosted versions' of grub functions for libgrub.a
2051 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
2052 * util/grub-editenv.c: Likewise.
2053 * util/grub-fstest.c: Likewise.
2054 * util/grub-mkdevicemap.c: Likewise.
2055 * util/grub-mkfont.c: Likewise.
2056 * util/grub-mkimage.c: Likewise.
2057 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2058 * util/grub-probe.c: Likewise.
2059 * util/grub-script-check.c: Likewise.
2060 * util/i386/pc/grub-setup.c: Likewise.
2061 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2062
2063 * tests/util/grub-shell.in: Fix override directory path.
2064 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
2065 * util/import_gcry.py: Create Makefile.gcry.def file instead.
2066
2067 * util/lvm.c: Update #includes.
2068 * util/raid.c: Likewise.
2069 * util/resolve.c: Likewise.
2070 * grub-core/bus/emu/pci.c: Likewise.
2071 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
2072 * grub-core/lib/posix_wrap/string.h: Likewise.
2073 * grub-core/kern/emu/main.c: Likewise.
2074
2075 * grub-core/gensymlist.sh: New file. Script for generating kernel
2076 symbols file.
2077 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
2078
2079 * grub-core/gentrigtables.c: Fix unused variable warnings.
2080
2081 * Makefile.in: Removed.
2082 * conf/any-emu.rmk: Removed.
2083 * conf/common.rmk: Removed.
2084 * conf/i386-coreboot.rmk: Removed.
2085 * conf/i386-efi.rmk: Removed.
2086 * conf/i386-ieee1275.rmk: Removed.
2087 * conf/i386-multiboot.rmk: Removed.
2088 * conf/i386-pc.rmk: Removed.
2089 * conf/i386-qemu.rmk: Removed.
2090 * conf/i386.rmk: Removed.
2091 * conf/mips-yeeloong.rmk: Removed.
2092 * conf/mips.rmk: Removed.
2093 * conf/powerpc-ieee1275.rmk: Removed.
2094 * conf/sparc64-ieee1275.rmk: Removed.
2095 * conf/tests.rmk: Removed.
2096 * conf/x86-efi.rmk: Removed.
2097 * conf/x86_64-efi.rmk: Removed.
2098 * gendistlist.sh: Removed.
2099 * geninitheader.sh: Removed.
2100 * genkernsyms.sh.in: Removed.
2101 * genmk.rb: Removed.
2102 * gensymlist.sh.in: Removed.
2103 * mkinstalldirs: Removed.
2104 * boot: Moved ...
2105 * grub-core/boot: ... to here.
2106 * bus: Moved ...
2107 * grub-core/bus: ... to here.
2108 * commands: Moved ...
2109 * grub-core/commands: ... to here.
2110 * disk: Moved ...
2111 * grub-core/disk: ... to here.
2112 * efiemu: Moved ...
2113 * grub-core/efiemu: ... to here.
2114 * font: Moved ...
2115 * grub-core/font: ... to here.
2116 * fs: Moved ...
2117 * grub-core/fs: ... to here.
2118 * gencmdlist.sh: Moved ...
2119 * grub-core/gencmdlist.sh: ... to here.
2120 * genemuinit.sh: Moved ...
2121 * grub-core/genemuinit.sh: ... to here.
2122 * genemuinitheader.sh: Moved ...
2123 * grub-core/genemuinitheader.sh: ... to here.
2124 * genfslist.sh: Moved ...
2125 * grub-core/genfslist.sh: ... to here.
2126 * genhandlerlist.sh: Moved ...
2127 * grub-core/genhandlerlist.sh: ... to here.
2128 * genmoddep.awk: Moved ...
2129 * grub-core/genmoddep.awk: ... to here.
2130 * genmodsrc.sh: Moved ...
2131 * grub-core/genmodsrc.sh: ... to here.
2132 * genpartmaplist.sh: Moved ...
2133 * grub-core/genpartmaplist.sh: ... to here.
2134 * genparttoollist.sh: Moved ...
2135 * grub-core/genparttoollist.sh: ... to here.
2136 * genterminallist.sh: Moved ...
2137 * grub-core/genterminallist.sh: ... to here.
2138 * gentrigtables.c: Moved ...
2139 * grub-core/gentrigtables.c: ... to here.
2140 * genvideolist.sh: Moved ...
2141 * grub-core/genvideolist.sh: ... to here.
2142 * gettext: Moved ...
2143 * grub-core/gettext: ... to here.
2144 * gfxmenu: Moved ...
2145 * grub-core/gfxmenu: ... to here.
2146 * gnulib: Moved ...
2147 * grub-core/gnulib: ... to here.
2148 * hello: Moved ...
2149 * grub-core/hello: ... to here.
2150 * hook: Moved ...
2151 * grub-core/hook: ... to here.
2152 * io: Moved ...
2153 * grub-core/io: ... to here.
2154 * kern: Moved ...
2155 * grub-core/kern: ... to here.
2156 * lib: Moved ...
2157 * grub-core/lib: ... to here.
2158 * loader: Moved ...
2159 * grub-core/loader: ... to here.
2160 * mmap: Moved ...
2161 * grub-core/mmap: ... to here.
2162 * normal: Moved ...
2163 * grub-core/normal: ... to here.
2164 * partmap: Moved ...
2165 * grub-core/partmap: ... to here.
2166 * parttool: Moved ...
2167 * grub-core/parttool: ... to here.
2168 * script: Moved ...
2169 * grub-core/script: ... to here.
2170 * term: Moved ...
2171 * grub-core/term: ... to here
2172 * tests/example_functional_test.c: Moved ...
2173 * grub-core/tests/example_functional_test.c: ... to here.
2174 * tests/lib/functional_test.c: Moved ...
2175 * grub-core/tests/lib/functional_test.c: ... to here.
2176 * tests/lib/test.c: Moved ...
2177 * grub-core/tests/lib/test.c: ... to here.
2178 * video: Moved ...
2179 * grub-core/video: ... to here.
2180
645586e6
BC
21812010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
2182
2183 Replace --enable-grub-emu-modules with grub-emu-lite.
2184
2185 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
2186 cache.S.
2187
2188 * include/grub/emu/misc.h (grub_emu_init): New prototype.
2189 * kern/emu/full.c: New file. For grub-emu specific initialization.
2190 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
2191 * kern/emu/main.c: Call initialization function grub_emu_init.
2192
2193 * Makefile.in: Include grub-emu-lite in install.
2194 * commands/parttool.c: Use grub_no_autoload to differentiate
2195 between grub-emu and grub-emu-lite.
2196 * include/grub/misc.h: New variable grub_no_autoload.
2197
2198 * conf/any-emu.rmk: New rules for grub-emu-lite.
2199 * configure.ac: Remove --enable-grub-emu-modules.
2200 * genmk.rb: Cleanup unnecessary rules.
2201 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
2202
2203 * normal/main.c: Don't load list files on grub-emu-lite.
2204 * util/misc.c (grub_arch_sync_caches): Removed.
2205
f86a4030
CW
22062010-08-23 Colin Watson <cjwatson@ubuntu.com>
2207
2208 * kern/mips/startup.S (grub_prefix): Update comment to refer to
2209 grub-mkimage rather than grub-mkelfimage.
2210 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
2211
06776944
VS
22122010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
2215 a key after CapsLock or NumLock. It's just a qemu bug.
2216
df262419
VS
22172010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
2220 needed by libusb wrapper.
2221
b40ea81b
ST
22222010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2223
2224 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
2225
dee50575
VS
22262010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
2229 --nounzip is passed.
2230
fb1d7b79
VS
22312010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 USB hotunplugging and USB serial support.
2234
2235 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
2236 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
2237 (grub_uhci_transfer): Respect timeout and set *actual.
2238 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
2239 non-standard length.
2240 (grub_usb_device_attach): Autoload modules.
2241 (GRUB_MOD_INIT): Set grub_term_poll_usb.
2242 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
2243 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
2244 users updated.
2245 (grub_usb_add_hub): Fill nports and children.
2246 (attach_root_port): Receive hub instead of controller.
2247 All users updated. Fill hub->devices.
2248 (grub_usb_root_hub): Allocate hub->devices.
2249 (detach_device): New function.
2250 (poll_nonroot_hub): Fill children and detach devices.
2251 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
2252 actual arguments. All users updated.
2253 (grub_usb_bulk_read_extended): New function.
2254 * bus/usb/serial/common.c: New file.
2255 * bus/usb/serial/ftdi.c: Likewise.
2256 * bus/usb/serial/pl2303.c: Likewise.
2257 * commands/terminal.c (handle_command): Support wildcard.
2258 * commands/usbtest.c: Output "Unknown" instead of empty string.
2259 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
2260 (usbserial_common_mod_SOURCES): New variable.
2261 (usbserial_common_mod_CFLAGS): Likewise.
2262 (usbserial_common_mod_LDFLAGS): Likewise.
2263 (pkglib_MODULES): Add usbserial_pl2303.mod.
2264 (usbserial_pl2303_mod_SOURCES): New variable.
2265 (usbserial_pl2303_mod_CFLAGS): Likewise.
2266 (usbserial_pl2303_mod_LDFLAGS): Likewise.
2267 (pkglib_MODULES): Add usbserial_ftdi.mod.
2268 (usbserial_ftdi_mod_SOURCES): New variable.
2269 (usbserial_ftdi_mod_CFLAGS): Likewise.
2270 (usbserial_ftdi_mod_LDFLAGS): Likewise.
2271 (pkglib_MODULES): Add serial.mod.
2272 (serial_mod_SOURCES): New variable.
2273 (serial_mod_CFLAGS): Likewise.
2274 (serial_mod_LDFLAGS): Likewise.
2275 * conf/i386-pc.rmk: Likewise.
2276 * conf/mips-yeeloong.rmk: Likewise.
2277 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
2278 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
2279 * disk/usbms.c (first_available_slot): New variable.
2280 (grub_usbms_attach): Don't reuse free slots due to potential cache
2281 problems.
2282 * include/grub/serial.h: Moved to ..
2283 * include/grub/ns8250.h: ...this.
2284 * include/grub/serial.h: New file.
2285 * include/grub/term.h (grub_term_poll_usb): New variable.
2286 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
2287 readkey. All users updated.
2288 (grub_terminfo_output_state): Pass term to put.
2289 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
2290 (grub_usb_controller_dev): Add timeout and actual arguments to
2291 transfer. All users updated.
2292 (grub_usb_interface): New field detach_data.
2293 (grub_usb_device): New fields children and nports.
2294 (grub_usb_ep_type_t): New type.
2295 (grub_usb_get_ep_type): New function.
2296 (grub_usb_bulk_read_extended): Likewise.
2297 * include/grub/usbdesc.h (grub_usb_desc): New type.
2298 * include/grub/usbserial.h: New file.
2299 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
2300 * kern/term.c (grub_term_poll_usb): New variable.
2301 (grub_getkey): Call grub_term_poll_usb if set.
2302 (grub_checkkey): Likewise.
2303 (grub_getkeystatus): Likewise.
2304 * term/serial.c: Moved controller-specific parts to ...
2305 * term/ns8250.c: ... here.
2306 * term/serial.c: Mostly rewritten.
2307 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
2308 according to spec.
2309
21a313de
RM
23102010-08-20 Robert Millan <rmh@gnu.org>
2311
2312 Make kFreeBSD code more generic to support ext2fs as root, ufs as
2313 a separate module and maybe other interesting combinations.
2314
2315 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
2316 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
2317 (kfreebsd_entry): Add generic filesystem module load routine.
2318 Map GRUB `ext2' to kFreeBSD `ext2fs'.
2319
63c734a6
CW
23202010-08-20 Colin Watson <cjwatson@ubuntu.com>
2321
2322 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
2323 "numcenter" (I misunderstood the purpose of this entry).
2324 * docs/grub.texi (sendkey): Likewise.
2325
c4d16542
CW
23262010-08-20 Colin Watson <cjwatson@ubuntu.com>
2327
2328 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
2329 status flag options; simply omitting the option is equivalent and
2330 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
2331 (keysym_table): Rename "num5numlock" to "numlock".
2332 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
2333 can uniformly say that only the last of multiple `sendkey'
2334 invocations has any effect.
2335 * docs/grub.texi (sendkey): New section.
2336
93541d66
CW
23372010-08-19 Colin Watson <cjwatson@ubuntu.com>
2338
2339 * commands/i386/pc/sendkey.c (options): Fix three typos.
2340
b4ece5e1
VS
23412010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 Implement sendkey support.
2344
2345 * commands/i386/pc/sendkey.c: New file.
2346 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
2347 (sendkey_mod_SOURCES): New variable.
2348 (sendkey_mod_CFLAGS): Likewise.
2349 (sendkey_mod_LDFLAGS): Likewise.
2350
51f1f5af
CW
23512010-08-18 Colin Watson <cjwatson@ubuntu.com>
2352
2353 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
2354 fix warnings from Autoconf.
2355
9da94e05
CW
23562010-08-18 Colin Watson <cjwatson@ubuntu.com>
2357
2358 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
2359 to avoid false positives with some assemblers that output things
2360 like "someprefix_func" as part of their output.
2361
729a0f2e
RM
23622010-08-15 Robert Millan <rmh@gnu.org>
2363
2364 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
2365 errors.
2366 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
2367 grub_get_libzfs_handle() errors.
2368
f3710e08
RM
23692010-08-14 Robert Millan <rmh@gnu.org>
2370
2371 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
2372 filesystem is not ZFS.
2373
7a3c13de
BC
23742010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
2375
2376 Fix for misspelled color names defaulting to black/black (bug
2377 reported by Doug Nazar)
2378
2379 * include/grub/normal.h (grub_parse_color_name_pair): Add return
2380 status to prototype.
2381 * normal/color.c (grub_parse_color_name_pair): Return failure
2382 status.
2383 (grub_env_write_color_normal): Ignore bad color names.
2384 (grub_env_write_color_highlight): Likewise.
2385 * normal/main.c (GRUB_MOD_INIT): Set default color names.
2386
ab8ba50d
BC
23872010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
2388
2389 "shift" command support to GRUB script.
2390
2391 * include/grub/script_sh.h (grub_script_shift): New prototype.
2392 * script/execute.c (grub_script_shift): New function.
2393 * script/main.c (grub_script_init): Register shift command.
2394 (grub_script_fini): Unregister shift command.
2395 * util/grub-script-check.c (grub_script_cmd_shift): New function.
2396
2397 * tests/grub_script_shift.in: New testcase.
2398 * conf/tests.rmk: Rules for new testcase.
2399
4d61999e
BC
24002010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
2401
2402 "continue" command support to GRUB script.
2403
2404 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
2405 (grub_script_break): Continue support.
2406 * script/main.c (grub_script_init): Register continue command.
2407 (grub_script_fini): Unregister continue command.
2408
2409 * tests/grub_script_continue.in: New testcase.
2410 * conf/tests.rmk: Rules for new testcase.
2411
4df51e00
BC
24122010-08-12 BVK Chaitanya <bvk@dbook>
2413
2414 "break" command support to GRUB script.
2415
2416 * conf/common.rmk: Rule updates to grub-script-check.
2417 * include/grub/misc.h (grub_min): New function.
2418 * include/grub/script_sh.h (grub_script_init): New prototype.
2419 (grub_script_fini): New prototype.
2420 (grub_script_break): New prototype.
2421 * script/main.c (grub_script_init): New function.
2422 (grub_script_fini): New function.
2423 * script/execute.c (grub_script_break): New function.
2424 * normal/main.c: Calls to grub_script_{init,fini}.
2425 * util/grub-script-check.c (grub_script_break): New function.
2426
2427 * tests/grub_script_break.in: New testcase.
2428 * conf/tests.rmk: Rules for new test case.
2429
f12c8420
BC
24302010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
2431
2432 Function parameters support to GRUB script.
2433
2434 * script/yylex.l (VARIABLE): Regular expression update.
2435 * script/function.c (grub_script_function_call): Moved ...
2436 * script/execute.c (grub_script_function_call): ... to here.
2437 (grub_script_execute_arglist_to_argv): Removed.
2438 (grub_script_arglist_to_argv): New function.
2439 * script/argv.c: New file.
2440 (grub_script_argv_free): New function.
2441 (grub_script_argv_next): Likewise.
2442 (grub_script_argv_append): Likewise.
2443 (grub_script_argv_split_append): Likewise.
2444 * include/grub/script_sh.h (grub_script_argv): New struct.
2445 (grub_script_argv_free): New function.
2446 (grub_script_argv_next): Likewise.
2447 (grub_script_argv_append): Likewise.
2448 (grub_script_argv_split_append): Likewise.
2449
2450 * conf/common.rmk (normal.mod): New source script/argv.c.
2451
2452 * tests/grub_script_echo1.in: More tests.
2453 * tests/grub_script_vars1.in: Likewise.
2454 * tests/grub_script_functions.in: New test case.
2455 * conf/tests.rmk: Rules for new testcase.
2456
8022b748
BC
24572010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
2458
2459 Remove grub_script_cmdblock struct.
2460
2461 * include/grub/script_sh.h: Remove grub_script_cmdblock.
2462 * script/parser.y: Likewise.
2463 * script/execute.c: Rename cmdblock suffix to cmdlist.
2464 * script/script.c: Likewise.
2465 * util/grub-script-check.c: Likewise.
2466
79a6ba61
YB
24672010-08-11 Yves Blusseau <blusseau@zetam.org>
2468
2469 * .bzrignore: add grub-macho2img
2470
d04b9414
VS
24712010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
2472
2473 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
2474
f947ab49
VS
24752010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 Remove the dump of sm712 initialisation sequence.
2478
2479 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
2480 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
2481 (GRUB_VGA_IO_MISC_WRITE): Likewise.
2482 (GRUB_VGA_CR_*): Added many registers.
2483 (GRUB_VGA_SR_*): Likewise.
2484 (GRUB_VGA_GR_*): Likewise.
2485 (grub_vga_write_arx): New function.
2486 (grub_video_hw_config): New struct.
2487 (grub_vga_set_geometry): New function.
2488 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
2489 GRUB_PCI_CLASS_SUBCLASS_VGA.
2490 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
2491 * video/sm712.c (grub_sm712_write_reg): New function
2492 (grub_sm712_read_reg): Likewise.
2493 (grub_sm712_sr_write): Likewise.
2494 (grub_sm712_gr_write): Likewise.
2495 (grub_sm712_cr_write): Likewise.
2496 (grub_sm712_write_arx): Likewise.
2497 (grub_sm712_cr_shadow_write): Likewise.
2498 (grub_sm712_write_dda_lookup): Likewise.
2499 (grub_video_sm712_setup): Initialise the video rather then
2500 blindly replay the dump.
2501 (main) [TEST]: Add a routine to be able to compile as standalone for
2502 tests.
2503 * video/sm712_init.c (sm712_init): Removed.
2504 (sm712_sr_seq1): New array.
2505 (sm712_sr_seq2): Likewise.
2506
f0206638
VS
25072010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * include/grub/vga.h: Add missing grub/pci.h include.
2510
2764da3b
YB
25112010-08-10 Yves Blusseau <blusseau@zetam.org>
2512
2513 * util/grub-macho2img.c (main): fix typo
2514
cf0c775e
VS
25152010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
2518 (grub_vga_gr_read): Likewise.
2519 (grub_vga_cr_write): Likewise.
2520 (grub_vga_cr_read): Likewise.
2521 (grub_vga_sr_write): Likewise.
2522 (grub_vga_sr_read): Likewise.
2523 (grub_vga_palette_read): Likewise.
2524 (grub_vga_palette_write): Likewise.
2525 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
2526 (grub_sm712_sr_read): New function.
2527 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
2528 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
2529
07f360e9
RM
25302010-08-09 Robert Millan <rmh@gnu.org>
2531
2532 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
2533 out unused variables on non-ZFS build.
2534
346c2072
RM
25352010-08-08 Robert Millan <rmh@gnu.org>
2536
2537 Fix path generation for sub-filesystems in ZFS.
2538
2539 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
2540 missing slash.
2541
71175420
RM
25422010-08-08 Robert Millan <rmh@gnu.org>
2543
2544 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
2545
0d8286f3
RM
25462010-08-08 Robert Millan <rmh@gnu.org>
2547
2548 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
2549 exist, issue a proper error message (rely on `ls' for translated
2550 strings).
2551
55dd2924
RM
25522010-08-08 Robert Millan <rmh@gnu.org>
2553
2554 Fix grub-probe invocation.
2555
2556 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
2557
d3dd9e80
RM
25582010-08-04 Robert Millan <rmh@gnu.org>
2559
2560 * configure.ac: Remove checks for getfsstat() and getmntany().
2561 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
2562 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
2563 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
2564 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
2565 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
2566 function.
2567 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
2568 via find_mount_point_from_dir() and getfsstat() / getmntany().
2569
0de22aa9
RM
25702010-08-04 Robert Millan <rmh@gnu.org>
2571
2572 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
2573 (grub_find_zpool_from_mount_point): Merge into ...
2574 (grub_find_zpool_from_dir): ... this.
2575 * kern/emu/misc.c: Likewise.
2576
2577 * kern/emu/misc.c
2578 (grub_make_system_path_relative_to_its_root): Replace
2579 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
2580 with grub_find_zpool_from_dir().
2581 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
2582
62858144
RM
25832010-08-04 Robert Millan <rmh@gnu.org>
2584
2585 Support OpenSolaris in ZFS device resolution.
2586
2587 * configure.ac: Check for getmntany().
2588 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
2589 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
2590 support.
2591
9dd6fd50
RM
25922010-08-03 Robert Millan <rmh@gnu.org>
2593
2594 Fix grub-emu build.
2595
2596 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
2597 * include/grub/emu/misc.h: ... here.
2598
2599 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
2600 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
2601
2602 * util/misc.c: Remove `<grub/util/libzfs.h>'.
2603 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
2604 (grub_get_libzfs_handle): Move to ...
2605 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
2606 (grub_get_libzfs_handle): ... here.
2607
c9f7ff97
BC
26082010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
2609
2610 * script/execute.c (grub_script_execute_cmdline): Check for NULL
2611 as command name case.
2612
a870a783
CW
26132010-08-02 Colin Watson <cjwatson@ubuntu.com>
2614
2615 * disk/raid.c (insert_array): Select unique numbers for named arrays
2616 as well, for use as keys in the disk cache.
2617
c7db243b
RM
26182010-08-01 Robert Millan <rmh@gnu.org>
2619
2620 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
2621 kFreeBSD device name, except on ZFS where the filesystem label is
2622 used.
2623 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
2624 `/boot/zfs/zpool.cache'.
2625 Set mountfrom kernel variable using ${kfreebsd_device}.
2626
f7abdefb
RM
26272010-08-01 Robert Millan <rmh@gnu.org>
2628
2629 Make it even harder to use uninitialized `libzfs_handle' (and
2630 make the interface a bit simpler).
2631
2632 * include/grub/util/misc.h (grub_util_init_libzfs)
2633 (libzfs_handle): Remove.
2634 (grub_get_libzfs_handle): New prototype.
2635
2636 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
2637 attribute.
2638 (grub_util_init_libzfs): Remove.
2639 (grub_get_libzfs_handle): New function.
2640
2641 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
2642 grub_get_libzfs_handle() to obtain a libzfs handle instead of
2643 accessing `libzfs_handle' directly.
2644
c882acc0
RM
26452010-08-01 Robert Millan <rmh@gnu.org>
2646
2647 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
2648 (grub_find_zpool_from_mount_point): New function prototypes.
2649
2650 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
2651 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
2652
2653 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
2654 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
2655 `static' attribute.
2656
2657 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
2658 finding zpool from mount point into ...
2659 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
2660
2661 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
2662 requested path is part of a ZFS pool, use
2663 grub_find_zpool_from_mount_point() to detect its filesystem name,
2664 and generate a path with `/fsname@path' syntax.
2665
8bfe31d8
CW
26662010-08-01 Colin Watson <cjwatson@ubuntu.com>
2667
2668 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
2669 (void) rather than () so that this is a proper prototype.
2670
553df63d
VS
26712010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
2674
8687cf07
VS
26752010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
2678 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
2679
ea9be8ea
CW
26802010-08-01 Colin Watson <cjwatson@ubuntu.com>
2681
2682 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
2683
6eea041a
CW
26842010-08-01 Colin Watson <cjwatson@ubuntu.com>
2685
2686 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
2687
2cfb45df
CW
26882010-08-01 Colin Watson <cjwatson@ubuntu.com>
2689
2690 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
2691 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
2692 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
2693 disable gfxpayload.
2694 (Shell-like scripting): Add real content.
2695 (Serial terminal): Suggest `terminal_input serial; terminal_output
2696 serial' rather than putting the two commands on separate lines,
2697 since console input will be inoperative after the first command.
2698 (menuentry): Document --class, --users, and --hotkey options.
2699 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
2700 Vladimir Serbinenko).
2701
7decd202
VS
27022010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
27032010-08-01 Colin Watson <cjwatson@ubuntu.com>
2704
2705 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
2706
c882acc0
RM
27072010-08-01 Robert Millan <rmh@gnu.org>
2708
2709 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
2710 (grub_find_zpool_from_mount_point): New function prototypes.
2711
2712 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
2713 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
2714
2715 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
2716 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
2717 `static' attribute.
2718
2719 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
2720 finding zpool from mount point into ...
2721 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
2722
2723 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
2724 requested path is part of a ZFS pool, use
2725 grub_find_zpool_from_mount_point() to detect its filesystem name,
2726 and generate a path with `/fsname@path' syntax.
2727
deb0caa3
RM
27282010-08-01 Robert Millan <rmh@gnu.org>
2729
2730 Prevent accidental use of uninitialized libzfs_handle.
2731
2732 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
2733 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
2734 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
2735
ce04ef47
CW
27362010-08-01 Colin Watson <cjwatson@ubuntu.com>
2737
2738 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
2739 util/grub.d/10_linux.in). Fixes Debian bug #591093.
2740
ebf53056
RM
27412010-08-01 Robert Millan <rmh@gnu.org>
2742
2743 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 2744
3710bb6b
RM
27452010-07-31 Robert Millan <rmh@gnu.org>
2746
2747 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
2748
8072efeb
RM
27492010-07-31 Robert Millan <rmh@gnu.org>
2750
2751 * kern/emu/misc.c: Add missing license header.
2752
3169f4c7
RM
27532010-07-31 Robert Millan <rmh@gnu.org>
2754
2755 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
2756
2757 * include/grub/util/libnvpair.h: Include `<config.h>'.
2758 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
2759 declaring libnvpair prototypes ourselves.
2760 * include/grub/util/libzfs.h: Include `<config.h>'.
2761 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
2762 declaring libzfs prototypes ourselves.
2763
2764 (libzfs_handle): Moved to ...
2765 * include/grub/util/misc.h (libzfs_handle): ... here.
2766 Include `<grub/util/libzfs.h>'.
2767
c9a00aee
RM
27682010-07-30 Robert Millan <rmh@gnu.org>
2769
2770 * include/grub/emu/misc.h: Add missing license header.
2771
a184f9c8
RM
27722010-07-30 Robert Millan <rmh@gnu.org>
2773
2774 Enable `grub-probe -t device' resolution on ZFS.
2775
2776 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
2777 * include/grub/util/libnvpair.h: New file.
2778 * include/grub/util/libzfs.h: New file.
2779
2780 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
2781 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
2782 `<grub/util/libnvpair.h>'.
2783 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
2784
2785 (find_mount_point_from_dir): New static function.
2786 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
2787 function.
2788 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
2789 find_root_device_from_libzfs() before ressorting to find_root_device().
2790
2791 * include/grub/util/misc.h (grub_util_init_libzfs): New function
2792 prototype.
2793 * util/misc.c: Include `<grub/util/libzfs.h>'.
2794 (grub_util_init_libzfs): New function.
2795 [HAVE_LIBZFS] (libzfs_handle): New global variable.
2796 [HAVE_LIBZFS] (fini_libzfs): New static function.
2797 (grub_util_init_libzfs): New function.
2798 * util/grub-probe.c (main): Call grub_util_init_libzfs().
2799
f7790cdd
RM
28002010-07-30 Robert Millan <rmh@gnu.org>
2801
2802 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
2803 (xmalloc, xrealloc, xstrdup, xasprintf): Add
2804 `warn_unused_result' attribute.
2805 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
2806 (grub_xasprintf, grub_xvasprintf): Likewise.
2807 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
2808
0806b63c
RM
28092010-07-29 Robert Millan <rmh@gnu.org>
2810
2811 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
2812 (probe): Handle `PRINT_FS_LABEL'.
2813 (main): Handle `-t fs_label'.
2814
9f841f5c
RM
28152010-07-29 Robert Millan <rmh@gnu.org>
2816
2817 * configure.ac: Remove grub-mkisofs checks.
2818
46371121
VS
28192010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * util/ieee1275/grub-install.in: Don't use empty grub_device.
2822 Reported by: Lennart Sorensen.
2823
28242010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
2827 prior to terminal_input/terminal_output separation. It's been over 1.5
2828 years and those versions weren't widely deployed.
2829
a9600892
CW
28302010-07-22 Colin Watson <cjwatson@ubuntu.com>
2831
2832 * disk/raid.c (insert_array): Don't count named arrays when looking
2833 for unused array numbers.
697e053c 2834 Reported and tested by: Michael Guntsche.
a9600892 2835
c03507df
CW
28362010-07-20 Colin Watson <cjwatson@ubuntu.com>
2837
2838 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
2839 implementation of this so that grub-emu links again, with a note
2840 that this should support hotplugging in the future.
2841
b26f1c11
CW
28422010-07-20 Colin Watson <cjwatson@ubuntu.com>
2843
2844 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
2845
efc9d7f1
CW
28462010-07-20 Colin Watson <cjwatson@ubuntu.com>
2847
2848 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
2849 handle on failure.
2850 (grub_loopback_close): Remove empty function.
2851 (grub_loopback_dev): Remove close method.
2852
dd8ff5c9
CW
28532010-07-20 Colin Watson <cjwatson@ubuntu.com>
2854
2855 Disable EFI cursor when the EFI console becomes inactive.
2856
2857 * term/efi/console.c (grub_efi_console_init): New function.
2858 (grub_efi_console_fini): New function.
2859 (grub_console_term_output): Register init and fini methods.
2860
5e3bec67
VS
28612010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2862
2863 * tests/util/grub-shell-tester.in: Remove bashism and declare as
2864 sh script.
2865
afaec079
VS
28662010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * disk/loopback.c (grub_loopback): Replace filename with file.
2869 (delete_loopback): Handle new semantics.
2870 (grub_cmd_loopback): Likewise.
2871 (grub_loopback_iterate): Likewise.
2872 (grub_loopback_close): Likewise.
2873
a6a11f3c
VS
28742010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2875
2876 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
2877 with -p "".
2878 Reported by: Tito Keitel.
2879
64a638b0
VS
28802010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * docs/grub.texi (Naming convention): Document new naming convention.
2883
ab8ba957
VS
28842010-07-20 Vadim Solomin <vadic052@gmail.com>
28852010-07-20 Colin Watson <cjwatson@ubuntu.com>
2886
2887 Generate device.map in something closer to the old ordering.
2888
2889 * util/deviceiter.c (struct device): New declaration.
2890 (compare_file_names): Rename to ...
2891 (compare_devices): ... this. Sort by kernel name in preference to
2892 the stable by-id name, but keep the latter as a fallback comparison.
2893 Update header comment.
2894 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
2895 of `struct device' rather than of plain file names.
2896
a29d6a4b
TF
28972010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
2898
2899 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
2900 on i386.
2901
39d824e8
VS
29022010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * commands/acpi.c (setup_common_tables): Use sizeof instead of
2905 hardcoding size.
2906 (setv1table): Likewise.
2907
f058276b
FZ
29082010-07-20 Colin Watson <cjwatson@ubuntu.com>
2909
2910 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
2911 removing the homehost if present.
2912 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
2913 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
2914 removing the homehost if present.
2915 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
2916 if possible.
2917 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
2918
2919 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
2920 parameter. Set its pointer target to 0.
2921 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
2922 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
2923 `data_offset' value from the superblock for 1.x metadata.
2924 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
2925 data on the device.
2926 (insert_array): Record the start sector of data on the device.
2927 (grub_raid_register): Pass start_sector parameters to
2928 grub_raid_list->detect and insert_array.
2929 * include/grub/raid.h (struct grub_raid_array): Add start_sector
2930 member.
2931 (struct grub_raid): Add start_sector parameter to `detect'.
2932
2933 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
2934 __attribute__ ((packed)), leaving a comment.
2935 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
2936 (grub_mdraid_detect_09): ... here and ...
2937 (grub_mdraid_detect_1x): ... here.
2938
29392010-07-20 Peter Henn <peter.henn@web.de>
2940
2941 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
2942 chunk size and disk size, which are already given as sector counts
2943 as distinct from the 0.90 units. Fetch the correct device number
2944 from the role table instead of using the table index.
2945
29462010-07-20 Felix Zielcke <fzielcke@z-51.de>
2947
2948 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
2949 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
2950 (WriteMostly1): New macro.
2951 Set array->name to NULL for metadata format 0.90. Add support for
2952 metadata 1.x. Fix some comments.
2953 * disk/raid.c (): Add support for name based RAID arrays. Fix a
2954 few comments.
2955 * util/getroot.c (grub_util_get_grub_dev): Add support for
2956 /dev/md/name style devices.
2957
4b761da9
CW
29582010-07-20 Colin Watson <cjwatson@ubuntu.com>
2959
2960 * .bzrignore: Ignore 20_linux_xen.
2961
5771289a
CW
29622010-07-17 Colin Watson <cjwatson@ubuntu.com>
2963
2964 * util/import_unicode.py: Remove unnecessary imports.
2965
5dab68df
AN
29662010-07-17 Aleš Nesrsta <starous@volny.cz>
2967
2968 Hotplugging and USB hub support.
2969
2970 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
2971 (grub_ohci): Likewise.
2972 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
2973 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
2974 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
2975 (GRUB_OHCI_CTRL_EDS): Likewise.
2976 (GRUB_OHCI_BULK_EDS): Likewise.
2977 (GRUB_OHCI_TDS): Likewise.
2978 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
2979 (grub_ohci_ed_phys2virt): New function.
2980 (grub_ohci_virt_to_phys): Likewise.
2981 (grub_ohci_td_phys2virt): Likewise.
2982 (grub_ohci_td_virt2phys): Likewise.
2983 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
2984 attachment.
2985 (grub_ohci_find_ed): New function.
2986 (grub_ohci_alloc_td): Likewise.
2987 (grub_ohci_free_td): Likewise.
2988 (grub_ohci_free_tds): Likewise.
2989 (grub_ohci_transfer): Use previously allocated memory.
2990 (grub_ohci_portstatus): Reset status changed bit.
2991 (grub_ohci_detect_dev): Supply status changed.
2992 (grub_ohci_fini_hw): Free memory.
2993 (grub_ohci_restore_hw): Reallocate memory.
2994 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
2995 Reset status change.
2996 (grub_uhci_detect_dev): Supply status_change.
2997 * bus/usb/usb.c (attach_hooks): New var.
2998 (grub_usb_device_attach): New function.
2999 (grub_usb_register_attach_hook_class): Likewise.
3000 (grub_usb_unregister_attach_hook_class): Likewise.
3001 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
3002 (grub_usb_add_hub): Reset connection changed bit.
3003 (attach_root_port): New function.
3004 (grub_usb_root_hub): Likewise.
3005 (poll_nonroot_hub): Likewise.
3006 (grub_usb_poll_devices): Likewise.
3007 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
3008 * disk/usbms.c (grub_usbms_open): Use device hooks.
3009 (grub_usbms_iterate) :Poll devices.
3010 (grub_usbms_finddevs): Split into ...
3011 (grub_usbms_attach): ... this ...
3012 (grub_usbms_attach): ... and this.
3013 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
3014 in detect_dev.
3015 (grub_usb_interface): New fields attached and detach_hook.
3016 (grub_usb_attach_hook_class): New type.
3017 (grub_usb_attach_desc): New struct.
3018 (grub_usb_register_attach_hook_class): New function.
3019 (grub_usb_unregister_attach_hook_class): Likewise.
3020 (grub_usb_poll_devices): Likewise.
3021 (grub_usb_device_attach): Likewise.
3022 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
3023 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
3024
3222efaf
VS
30252010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
3028 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
3029 delta determination style. Works with most NetBSD partitions too.
3030
139b714a
VS
30312010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
3034 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
3035
986aad56
VS
30362010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
3039
99be513c
AB
30402010-07-14 Anton Blanchard <anton@samba.org>
3041
3042 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
3043 ET_DYN files.
3044
18075f62
GS
30452010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3046
3047 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
3048
8d9a5b15
GS
30492010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3050
3051 * kern/partition.c (grub_partition_check_containment): New function to
3052 check that a partition is physically contained in a parent. Since
3053 offsets are relative (and non-negative), this reduces to checking that
3054 the partition ends before its parent.
3055 (grub_partition_map_probe): Discard out-of-range sub-partitions.
3056 (grub_partition_iterate): Likewise.
3057 * include/grub/partition.h (grub_partition_map): Slightly more detailed
3058 comments.
3059 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
3060 partitions that start before their parent, and add debug printfs.
3061
19563c25
CW
30622010-07-13 Colin Watson <cjwatson@ubuntu.com>
3063
3064 * Makefile.in (.SUFFIX): Spell correctly, as ...
3065 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
3066 bare module name without `.mod', e.g. `test') tried to invoke a
3067 Modula-2 compiler.
3068
1a1f1e67
CW
30692010-07-13 Colin Watson <cjwatson@ubuntu.com>
3070
3071 * README: Point to the Info manual.
3072
811b0dca
JS
30732010-07-13 Jiro SEKIBA <jir@unicus.jp>
3074
3075 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
3076 2nd superblock position from partition size.
3077
e4f4eafc
CW
30782010-07-10 Colin Watson <cjwatson@ubuntu.com>
3079
3080 * Makefile.in (MAINTAINER_CLEANFILES): Remove
3081 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
3082 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
3083 outputs.
3084
4274c30f
VS
30852010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3086
3087 Restructure SCSI .id handling.
3088 Reported and tested by: Aleš Nesrsta.
3089
3090 * disk/ata.c (grub_atapi_close): Removed. All users updated.
3091 (grub_atapi_dev): Changed .name to "ata". New field .id.
3092 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
3093 (grub_usbms_dev): New field .id.
3094 * disk/scsi.c (grub_scsi_iterate): Generate name.
3095 (grub_scsi_open): Parse name.
3096 * include/grub/scsi.h (grub_make_scsi_id): New function.
3097 (grub_scsi_dev): Change iterate and open to number instead of naming
3098 busses. All users updated.
3099 (grub_scsi): Remove name. Add .bus.
3100
5bc24388
VS
31012010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * commands/help.c (grub_cmd_help): Fix a typo.
3104
249975ba
VS
31052010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
3108 Reported and tested by: Colin Watson.
3109
3eaac1a1
VS
31102010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
3113 in this context.
3114
becce1b1
VS
31152010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
3118
f7bf0918
CW
31192010-07-07 Colin Watson <cjwatson@ubuntu.com>
3120
3121 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
3122 indentation.
3123
0b0f9620
CW
31242010-07-06 Colin Watson <cjwatson@ubuntu.com>
3125
3126 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
3127 and disk/raid6_recover.c.
3128 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3129 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3130
1e545469
CW
31312010-07-06 Colin Watson <cjwatson@ubuntu.com>
3132
3133 * term/gfxterm.c (repaint_schedulded): Rename to ...
3134 (repaint_scheduled): ... this. Update all callers.
3135 (repaint_was_schedulded): Rename to ...
3136 (repaint_was_scheduled): ... this. Update all callers.
3137
5357687a
CW
31382010-07-06 Colin Watson <cjwatson@ubuntu.com>
3139
3140 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
3141 which we expect to be handled by upper layers.
3142
29d7e783
BC
31432010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
3144
3145 * bus/usb/usbhub.c: #include time.h header.
3146
37582066
CW
31472010-07-06 Colin Watson <cjwatson@ubuntu.com>
3148
3149 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
3150 entry_name also for entries without stat blocks (e.g. ".."); fixes
3151 corruption of the first entry in a directory.
3152
c8c06953
CW
31532010-07-06 Colin Watson <cjwatson@ubuntu.com>
3154
3155 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
3156 after setting gfxterm as the active terminal. GRUB_BACKGROUND
3157 doesn't work otherwise.
3158
e75056f1
CW
31592010-07-05 Colin Watson <cjwatson@ubuntu.com>
3160
3161 * docs/grub.texi (Features): Update list of supported file systems.
3162 (GNU/Linux): Update for GRUB 2.
3163 (Serial terminal): Remove mention of --disable-serial, which was a
3164 GRUB Legacy configure option. Update instructions to use
3165 `terminal_input' and `terminal_output' rather than `terminal'.
3166 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
3167 configuration' and `Installing GRUB using grub-install'.
3168 (Menu entry editor): Update for GRUB 2.
3169 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
3170 Document new -a, -u, and -v options.
3171 (initrd): New section.
3172 (initrd16): New section.
3173 (linux): New section.
3174 (linux16): New section.
3175 (search): The `var' argument to `--set' is optional.
3176 (GRUB only offers a rescue shell): Go into a little more detail on
3177 drive ordering.
3178
5cf69151
CW
31792010-07-05 Colin Watson <cjwatson@ubuntu.com>
3180
3181 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
3182
e3f90044
CW
31832010-07-05 Colin Watson <cjwatson@ubuntu.com>
3184
3185 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
3186 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
3187
38d8f4f3
CW
31882010-07-05 Colin Watson <cjwatson@ubuntu.com>
3189
3190 * util/i386/pc/grub-setup.c (setup): Rename prefix to
3191 install_prefix, in line with install_dos_part and install_bsd_part.
3192 Add new prefix variable, which is copied to install_prefix after
3193 comparing core.img in memory with the one read from disk in the
3194 no-embedding case, and use that rather than overwriting
3195 install_prefix immediately when installing to a partition.
3196 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
3197 Bicakci.
3198
57ebd41e
GS
31992010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
3200
3201 * configure.ac: Avoid == in test command, it's not portable.
3202 * util/grub.d/30_os-prober.in: Likewise.
3203
cb7f64b2
CW
32042010-07-04 Colin Watson <cjwatson@ubuntu.com>
3205
3206 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
3207
6b654bb0
GS
32082010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
3209
3210 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
3211 multiple (top-level) partmaps.
3212
72a2026d
VS
32132010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 3216 Reported by: Tino Keitel.
72a2026d 3217
df3eb88f
VS
32182010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 Bidi and diacritics support.
3221
3222 * Makefile.in (widthspec.bin): New target.
3223 (widthspec.h): Likewise.
3224 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
3225 * autogen.sh: Generate unidata.c.
3226 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
3227 * commands/ls.c (grub_ls_list_devices): Likewise.
3228 (grub_ls_list_files): Likewise.
3229 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
3230 (grub_mini_cmd_lsmod): Likewise.
3231 * commands/read.c: Likewise.
3232 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
3233 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
3234 * lib/arg.c (grub_arg_show_help): Likewise.
3235 * lib/crypto.c (grub_password_get): Likewise.
3236 * normal/auth.c (grub_username_get): Likewise.
3237 * normal/misc.c (grub_normal_print_device_info): Likewise.
3238 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
3239 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
3240 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
3241 (normal/charset.c_DEPENDENCIES): New variable.
3242 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
3243 (pkglib_MODULES): Remove charset.mod.
3244 (charset_mod_SOURCES): Removed.
3245 (charset_mod_CFLAGS): Likewise.
3246 (charset_mod_LDFLAGS): Likewise.
3247 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
3248 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
3249 and term/tparm.c.
3250 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3251 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
3252 (kernel_img_HEADERS): Add terminfo.h.
3253 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
3254 Fill ->font. Reverse ascii bitmaps.
3255 (grub_font_get_xheight): New function.
3256 * font/font.c (grub_font_get_string_width): Moved from here ...
3257 * gfxmenu/font.c (grub_font_get_string_width): ... here.
3258 * font/font.c (grub_font_draw_string): Moved from here ...
3259 * gfxmenu/font.c (grub_font_draw_string): ... here.
3260 * font/font.c (grub_font_dup_glyph): New function.
3261 (grub_font_blit_glyph): Likewise.
3262 (grub_font_blit_glyph_mirror): Likewise.
3263 (blit_comb): Likewise.
3264 (grub_font_construct_dry_run): Likewise.
3265 (grub_font_get_constructed_device_width): Likewise.
3266 (grub_font_construct_glyph): Likewise.
3267 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
3268 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
3269 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
3270 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
3271 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
3272 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
3273 (grub_font_get_xheight): New proto.
3274 (grub_font_get_constructed_device_width): Likewise.
3275 (grub_font_construct_glyph): Likewise.
3276 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
3277 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
3278 * include/grub/font.h (grub_font_draw_string): Moved from here ...
3279 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
3280 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
3281 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
3282 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
3283 (grub_console_getcharwidth): Likewise.
3284 * include/grub/misc.h (grub_xputs): New proto.
3285 (grub_puts): Inlined.
3286 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
3287 (grub_normal_get_line_counter): Removed.
3288 (grub_install_newline_hook): Likewise.
3289 (grub_normal_get_char_counter): New proto.
3290 (grub_normal_reset_more): Likewise.
3291 (grub_xputs_normal): Likewise.
3292 * include/grub/powerpc/ieee1275/console.h: Removed.
3293 * include/grub/sparc64/ieee1275/console.h: Likewise.
3294 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
3295 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
3296 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
3297 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
3298 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
3299 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
3300 (grub_term_input): Pass reference to self. All users updated.
3301 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
3302 Pass reference to self. New fields normal_color, highlight_color and
3303 data. All users updated.
3304 (grub_putchar): Removed.
3305 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
3306 (grub_unicode_estimate_width): New function.
3307 (grub_term_getcharwidth): Add defaults.
3308 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
3309 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
3310 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
3311 (grub_cls): Remove EXPORT_FUNC.
3312 (grub_setcolorstate): Inline.
3313 (grub_newline_hook): Removed.
3314 * include/grub/terminfo.h: Rewritten. All users updated.
3315 * include/grub/unicode.h: New file.
3316 * include/grub/video.h (grub_video_signed_rect): New type.
3317 * kern/emu/console.c (grub_console_highlight_color): Removed.
3318 (grub_console_normal_color): Likewise.
3319 (grub_console_standard_color): Made static.
3320 (grub_ncurses_putchar): Remove mapping.
3321 (grub_ncurses_getcharwidth): Removed.
3322 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
3323 (grub_ncurses_setcolor): Removed.
3324 (grub_ncurses_getcolor): Likewise.
3325 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
3326 (grub_console_putchar): ... this.
3327 (grub_console_putchar): Handle argument difference.
3328 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
3329 console_init_early and console_init_lately.
3330 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
3331 * kern/misc.c (grub_puts): Removed.
3332 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
3333 (grub_vsnprintf_real): Remove str = NULL support.
3334 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
3335 * normal/charset.c (grub_utf8_to_ucs4): ... here.
3336 * kern/term.c (grub_putcode): Renamed to ...
3337 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
3338 (grub_putchar): Removed.
3339 (grub_xputs_dumb): New function.
3340 (grub_xputs): New variable.
3341 * lib/charset.c: Move from here ...
3342 * normal/charset.c: ... to here.
3343 (grub_ucs4_to_utf8): New function.
3344 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
3345 (join_types): New variable.
3346 (unpack_join): New function.
3347 (bidi_types): New variable.
3348 (unpack_bidi): New function.
3349 (get_bidi_type): Likewise.
3350 (get_join_type): Likewise.
3351 (is_mirrored): Likewise.
3352 (grub_unicode_get_comb_type): Likewise.
3353 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
3354 (is_type_after): Likewise.
3355 (grub_unicode_aglomerate_comb): Likewise.
3356 (bidi_line_wrap): Likewise.
3357 (grub_bidi_line_logical_to_visual): Likewise.
3358 (grub_bidi_logical_to_visual): Likewise.
3359 (grub_unicode_mirror_code): Likewise.
3360 (grub_unicode_shape_code): Likewise.
3361 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
3362 Don't use grub_putchar.
3363 * normal/main.c (grub_normal_init_page): Use grub_putcode.
3364 (grub_normal_reader_init): Likewise.
3365 (grub_xputs_saved): New variable.
3366 (GRUB_MOD_INIT): Set grub_xputs.
3367 (GRUB_MOD_FINI): Restore grub_xputs.
3368 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
3369 (menu_init): Avoid printing gfxmenu error.
3370 (show_menu): Use grub_normal_get_char_counter.
3371 * normal/menu_entry.c (update_screen): Fix out-of-array.
3372 (complete): Avoid NULL dereferencing.
3373 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
3374 * normal/menu_text.c (print_spaces): Removed.
3375 (grub_print_ucs4): Likewise.
3376 (grub_print_message_indented): Use grub_print_ucs4.
3377 (print_message): Use grub_putcode.
3378 (print_entry): Hanlde diacritics.
3379 * normal/term.c (term_state): New type.
3380 (grub_more_lines): Removed.
3381 (term_states): New variable.
3382 (grub_normal_line_counter): Renamed to ..
3383 (grub_normal_char_counter): ...this. All users updated.
3384 (grub_normal_get_line_counter): Renamed to ...
3385 (grub_normal_get_char_counter): ... this.
3386 (grub_normal_reset_more): New function.
3387 (process_newline): Removed.
3388 (print_more): New function.
3389 (grub_install_newline_hook): Removed.
3390 (map_code): New function.
3391 (grub_puts_terminal): Use grub_print_ucs4.
3392 (putglyph): New function.
3393 (putcode_real): Likewise.
3394 (grub_putcode): Use putcode_real.
3395 (get_maxwidth): New function.
3396 (get_startwidth): Likewise.
3397 (print_ucs4_terminal): Likewise.
3398 (find_term_state): Likewise.
3399 (put_glyphs_terminal): Likewise.
3400 (print_backlog): Likewise.
3401 (print_ucs4_real): Likewise.
3402 (grub_print_ucs4): Likewise.
3403 (grub_xputs_normal): Likewise.
3404 * term/efi/console.c (grub_console_putchar): Output diacritics.
3405 (grub_console_getcharwidth): Removed.
3406 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
3407 * term/gfxterm.c (clear_char): Free chars.
3408 (scroll_up): Avoid leaking memory.
3409 (grub_gfxterm_putchar): Support diacritics.
3410 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
3411 * term/i386/pc/console.c (grub_console_term_output): Declare as
3412 GRUB_TERM_CODE_TYPE_VGA.
3413 * term/i386/pc/vga.c (grub_vga_term): Declare as
3414 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
3415 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
3416 GRUB_TERM_CODE_TYPE_VGA.
3417 * term/i386/vga_common.c (map_char): Removed.
3418 (grub_console_putchar): Likewise.
3419 (grub_console_getcharwidth): Likewise.
3420 * term/ieee1275/ofconsole.c: Simplify using terminfo.
3421 (colors): Reordered to match terminfo.
3422 (grub_ofconsole_normal_color): Removed.
3423 (grub_ofconsole_writeesc): Likewise.
3424 (grub_ofconsole_highlight_color): Likewise.
3425 (grub_ofconsole_getcharwidth): Likewise.
3426 (grub_ofconsole_setcolorstate): Likewise.
3427 (grub_ofconsole_setcolor): Likewise.
3428 (grub_ofconsole_getcolor): Likewise.
3429 (grub_ofconsole_readkey): Renamed to ...
3430 (readkey): ... this. Remove escape sequence handling. Return -1 on no
3431 key.
3432 (grub_ofconsole_checkkey): Removed.
3433 (grub_ofconsole_getkey): Likewise.
3434 (grub_ofconsole_getxy): Likewise.
3435 (grub_ofconsole_gotoxy): Likewise.
3436 (grub_ofconsole_cls): Likewise.
3437 (grub_ofconsole_refresh): Likewise.
3438 (grub_ofconsole_terminfo_input): New struct.
3439 (grub_ofconsole_terminfo_output): Likewise.
3440 (grub_ofconsole_term_input): Use terminfo.
3441 (grub_ofconsole_term_output): Likewise.
3442 (grub_console_init): Split into ...
3443 (grub_console_init_early): ...this and ...
3444 (grub_console_init_lately): ...this. Use terminfo.
3445 (grub_ofconsole_putchar): Renamed to ...
3446 (put): ... this. Remove mapping.
3447 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
3448 * term/serial.c: Simplify using terminfo.
3449 (xpos): Removed.
3450 (ypos): Likewise.
3451 (keep_track): Likewise.
3452 (registered): Likewise.
3453 (input_buf): Likewise.
3454 (npending): Likewise.
3455 (serial_translate_key_sequence): Likewise.
3456 (fill_input_buf): Likewise.
3457 (grub_serial_checkkey): Likewise.
3458 (grub_serial_getkey): Likewise.
3459 (grub_serial_getxy): Likewise.
3460 (grub_serial_gotoxy): Likewise.
3461 (grub_serial_putchar): Likewise.
3462 (grub_serial_cls): Likewise.
3463 (grub_serial_setcolorstate): Likewise.
3464 (grub_serial_setcursor): Likewise.
3465 (serial_hw_init): Use serial_hw_fetch.
3466 (grub_serial_terminfo_input): New variable.
3467 (grub_serial_terminfo_output): Likewise.
3468 (grub_serial_term_input): Use terminfo.
3469 (grub_serial_term_output): Likewise.
3470 * term/terminfo.c (putstr): Use put.
3471 (grub_terminfo_all_free): New function
3472 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
3473 (grub_terminfo_output_register): New function.
3474 (grub_terminfo_output_unregister): Likewise.
3475 (grub_terminfo_getxy): Likewise.
3476 (grub_terminfo_readkey): Likewise.
3477 (grub_terminfo_checkkey): Likewise.
3478 (grub_terminfo_getkey): Likewise.
3479 (grub_terminfo_input_init): Likewise.
3480 (print_terminfo): Likewise.
3481 (grub_cmd_terminfo): Handle encoding.
3482 (grub_terminfo_gotoxy): Track position.
3483 (grub_terminfo_cls): Likewise.
3484 (grub_terminfo_putchar): Likewise.
3485 (grub_terminfo_setcolorstate): Handle colors
3486 (grub_terminfo_cursor_on): This ...
3487 (grub_terminfo_cursor_off): ... and this merged into ...
3488 (grub_terminfo_setcursor): ... this.
3489 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
3490 * unicode/ArabicShaping.txt: New file (imported from Unicode).
3491 * unicode/BidiMirroring.txt: Likewise.
3492 * unicode/UnicodeData.txt: Likewise.
3493 * unicode/COPYING: Likewise.
3494 * util/grub-editenv.c (grub_putchar): Removed.
3495 (grub_xputs_real): New function.
3496 (grub_xputs): New variable.
3497 * util/grub-fstest.c (grub_putchar): Removed.
3498 (grub_xputs_real): New function.
3499 (grub_xputs): New variable.
3500 * util/grub-mkdevicemap.c (grub_putchar): Removed.
3501 (grub_xputs_real): New function.
3502 (grub_xputs): New variable.
3503 * util/grub-probe.c (grub_putchar): Removed.
3504 (grub_xputs_real): New function.
3505 (grub_xputs): New variable.
3506 * util/grub-script-check.c (grub_putchar): Removed.
3507 (grub_xputs_real): New function.
3508 (grub_xputs): New variable.
3509 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
3510 (grub_xputs_real): New function.
3511 (grub_xputs): New variable.
3512 * util/import_unicode.py: New file.
3513 * util/grub-mkfont.c (ft_errmsgs): New array.
3514 (grub_glyph_info): Make bitmap a pointer.
3515 (file_formats): New type WIDTH_SPEC.
3516 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
3517 (options): Add width-spec.
3518 (help): Likewise.
3519 (add_char): Renamed to ...
3520 (add_glyph): ... this.
3521 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
3522 (glyph_replace): New type.
3523 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
3524 (add_char): New function.
3525 (add_subst): Likewise.
3526 (process_cursive): Likewise.
3527 (add_font): Handle GSUB.
3528 (write_font_width_spec): New function.
3529 (main): Sort glyphs.
3530 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
3531 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
3532 * kern/term.c (grub_cls): Moved from here...
3533 * normal/term.c (grub_cls): ... here.
3534
50f0bcda
CW
35352010-07-02 Colin Watson <cjwatson@ubuntu.com>
3536
3537 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
3538 suitable for using within the format argument of printf when
3539 converting grub_size_t.
3540 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
3541 "x" to convert grub_size_t arguments.
3542
40372103
VS
35432010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
3546 too long captions.
3547 (list_get_minimal_size): Take selection box into account.
3548
942a10c7
VS
35492010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
3552 NULL font.
3553
2bdb2892
CW
35542010-07-02 Colin Watson <cjwatson@ubuntu.com>
3555
3556 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
3557 devices when iterating over /dev/disk/by-id; they will be handled
3558 later if appropriate, which they aren't always (e.g. LVM).
3559
e03ed6c1
CW
35602010-07-02 Colin Watson <cjwatson@ubuntu.com>
3561
3562 * include/grub/misc.h (grub_reboot): Declare as noreturn.
3563 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
3564 fails.
3565 (grub_halt): Likewise.
3566 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
3567 reset-all fails.
3568 (grub_halt): Don't return, even if all of shut-down, power-off, and
3569 poweroff fail.
3570
47695765
CW
35712010-07-02 Colin Watson <cjwatson@ubuntu.com>
3572
3573 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
3574 arguments, not three.
3575
507736c8
CW
35762010-07-02 Colin Watson <cjwatson@ubuntu.com>
3577
3578 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
3579 * util/grub.d/10_linux.in: Use it to check for LVM, so that
3580 LVM-on-RAID is handled correctly.
3581
e3c8cd37
CW
35822010-07-02 Colin Watson <cjwatson@ubuntu.com>
3583
3584 * docs/grub.texi (Changes from GRUB Legacy): New section.
3585 (Future): Fix typo.
3586
8d4a2fec
CW
35872010-07-02 Colin Watson <cjwatson@ubuntu.com>
3588
3589 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
3590 grub.d/README accidentally ends up executable for one reason or
3591 another. Ignore it.
3592
1c4827be
VS
35932010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
3596 (gpt_partition_map_iterate): Support non-512B sectors.
3597
d9a0c941
VS
35982010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * kern/efi/init.c (grub_efi_init): Disable watchdog.
3601 Tested by: Seth Goldberg.
3602
48f27e87
VS
36032010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
3606 Properly align mbi.
3607 Reported by: Seth Goldberg.
3608
b0c4f956
VS
36092010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 * util/grub-mkrescue.in: Avoid module duplication.
3612
105a2e8c
SF
36132010-07-01 Sean Finney <seanius@seanius.net>
3614
3615 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
3616
5944958c
SF
36172010-07-01 Sean Finney <seanius@seanius.net>
3618
3619 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
3620
36212010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * disk/lvm.c (grub_lvm_checkvalue): New function.
3624 (grub_lvm_check_flag): Likewise.
3625
b79889ba
RM
36262010-07-01 Robert Millan <rmh@gnu.org>
3627
3628 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
3629 Support 'p' as partition separator on kernel of FreeBSD (used
3630 with GPT labels).
3631 (grub_util_biosdisk_get_grub_dev): Likewise.
3632
ec1d04f1
VS
36332010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 Yeeloong firmware port.
3636
3637 * boot/mips/yeeloong/fwstart.S: New file.
3638 * bus/cs5536.c (gpiodump): New const.
3639 (set_io_space): New function.
3640 (set_iod): Likewise.
3641 (set_p2d): Likewise.
3642 (grub_cs5536_init_geode): Likewise.
3643 * commands/mips/yeeloong/lsspd.c: New file.
3644 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
3645 (serial_mod_SOURCES): New variable.
3646 (serial_mod_CFLAGS): Likewise.
3647 (serial_mod_LDFLAGS): Likewise.
3648 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
3649 term/terminfo.c and term/tparm.c.
3650 (pkglib_IMAGES): Add fwstart.img.
3651 (fwstart_img_SOURCES): New variable.
3652 (fwstart_img_CFLAGS): Likewise.
3653 (fwstart_img_ASFLAGS): Likewise.
3654 (fwstart_img_LDFLAGS): Likewise.
3655 (fwstart_img_FORMAT): Likewise.
3656 (pkglib_MODULES): Add lsspd.mod.
3657 (lsspd_mod_SOURCES): New variable.
3658 (lsspd_mod_CFLAGS): Likewise.
3659 (lsspd_mod_LDFLAGS): Likewise.
3660 (pkglib_MODULES): Add halt.mod.
3661 (halt_mod_SOURCES): New variable.
3662 (halt_mod_CFLAGS): Likewise.
3663 (halt_mod_LDFLAGS): Likewise.
3664 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
3665 (serial_mod_SOURCES): Removed.
3666 (serial_mod_CFLAGS): Likewise.
3667 (serial_mod_LDFLAGS): Likewise.
3668 * disk/ata.c (check_device): New function.
3669 (grub_ata_device_initialize): Use check_device.
3670 (grub_ata_iterate): Recheck devices.
3671 (grub_ata_open): Likewise.
3672 (grub_atapi_iterate): Likewise.
3673 (grub_atapi_open): Likewise.
3674 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
3675 (GRUB_ATA_CH1_PORT1): Likewise.
3676 (GRUB_ATA_CH0_PORT2): Likewise.
3677 (GRUB_ATA_CH1_PORT2): Likewise.
3678 * include/grub/mips/loongson.h: New file.
3679 * include/grub/mips/yeeloong/ec.h: Likewise.
3680 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
3681 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
3682 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
3683 * include/grub/misc.h (grub_halt): Declare as noreturn.
3684 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
3685 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
3686 (UART_ENABLE_FIFO_TRIGGER1): New definition.
3687 (UART_ENABLE_DTRRTS): Likewise.
3688 (UART_ENABLE_MODEM): Removed.
3689 (UART_ENABLE_OUT2): New const.
3690 * include/grub/term.h (grub_term_register_input_active): New function.
3691 (grub_term_register_output_active): Likewise.
3692 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
3693 argument.
3694 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
3695 (init_pci): New function.
3696 (grub_machine_init): Execute platform init when firmware. Init serial.
3697 (grub_halt): Implement.
3698 (grub_exit): Likewise.
3699 (grub_reboot): Likewise.
3700 * term/serial.c (serial_hw_init): Update macros.
3701 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
3702 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
3703 (image_targets): New target mipsel-yeeloong-flash.
3704 (generate_image): Support IMAGE_YEELOONG_FLASH.
3705 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
3706 (grub_video_sm712_setup): Init card.
3707 (grub_video_sm712_set_palette): Removed.
3708 * video/sm712_init.c: New file.
3709
ff4a70d2
CW
37102010-06-30 Colin Watson <cjwatson@ubuntu.com>
3711
3712 * Makefile.in (install-local): Temporarily prepend $(builddir) to
3713 PATH when running help2man and then run it on the unadorned
3714 executable names, rather than passing $(builddir)/* paths to
3715 help2man. This avoids the build directory ending up in generated
3716 manual pages.
3717
1246efeb
CW
37182010-06-29 Colin Watson <cjwatson@ubuntu.com>
3719
3720 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
3721 to avoid accidents when debugging with 'sh -x'.
3722 * util/grub-mkrescue.in: Likewise.
3723 * util/grub.d/00_header.in: Likewise.
3724 * util/grub.d/10_hurd.in: Likewise.
3725 * util/grub.d/10_kfreebsd.in: Likewise.
3726 * util/grub.d/10_linux.in: Likewise.
3727 * util/grub.d/10_netbsd.in: Likewise.
3728 * util/grub.d/10_windows.in: Likewise.
3729 * util/grub.d/20_linux_xen.in: Likewise.
3730 * util/grub.d/30_os-prober.in: Likewise.
3731 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3732
1ba9b889
CW
37332010-06-29 Colin Watson <cjwatson@ubuntu.com>
3734
3735 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
3736 last character in the buffer.
3737 Reported by: Vladimir Serbinenko.
3738
dccaf99d
RM
37392010-06-29 Robert Millan <rmh@gnu.org>
3740
3741 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
3742 (Command-line and menu entry commands): Document `badram' command.
3743
d500ed12
RM
37442010-06-28 Robert Millan <rmh@gnu.org>
3745
3746 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
3747 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
3748 command using ${GRUB_BADRAM} as parameter.
3749
20bc84a6
CW
37502010-06-28 Colin Watson <cjwatson@ubuntu.com>
3751
3752 * docs/grub.texi (Device map): New section.
3753 (Themes): New section (stub).
3754 * Makefile.in (docs/grub.info): The info documentation now builds
3755 without errors. Make sure it stays that way.
3756
4045dee1
VS
37572010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 Use normal parser for menu entries.
3760 Reported by: Thomas Frauendorfer
3761
3762 * include/grub/parser.h (grub_parser_execute): Don't export.
3763 * normal/menu.c (grub_menu_execute_entry_real): New function.
3764 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
3765
bca58c7b
CW
37662010-06-28 Colin Watson <cjwatson@ubuntu.com>
3767
3768 * docs/grub.texi (Embedded configuration): New section (replacing
3769 old "Preset Menu" stub).
3770 (Images): New section.
3771 (configfile): Note that any menu entries defined in `file' are shown
3772 immediately.
3773
dec53e63
JT
37742010-06-28 Josh Triplett <josh@joshtriplett.org>
3775
3776 * mmap/i386/pc/mmap_helper.S: Set CF on return.
3777
c06e40f7
CW
37782010-06-28 Colin Watson <cjwatson@ubuntu.com>
3779
3780 * util/grub-install.in: Add --debug-image= option.
3781
cb88052b
CW
37822010-06-28 Colin Watson <cjwatson@ubuntu.com>
3783
3784 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
3785 possible on Linux.
3786
3787 * util/deviceiter.c (check_device): Rename to ...
3788 (check_device_readable_unique): ... this. Update all callers.
3789 Maintain and check a list of which devices (by canonicalized name)
3790 have already been seen.
3791 (clear_seen_devices): New function.
3792 (compare_file_names) [__linux__]: New function.
3793 (grub_util_iterate_devices): Clear the list of seen devices on exit
3794 and (just in case) on entry.
3795 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
3796 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
3797 seen-devices list, superseded by general code in check_device.
3798
bbe34652
CW
37992010-06-28 Colin Watson <cjwatson@ubuntu.com>
3800
3801 * commands/cat.c (options): New variable.
3802 (grub_cmd_cat): Parse options. If the --dos option is given, print
3803 DOS-style "\r\n" line endings as simple newlines (Debian bug
3804 #586358).
3805 (GRUB_MOD_INIT): Use extcmd.
3806 (GRUB_MOD_FINI): Likewise.
3807 * docs/grub.texi (cat): Document --dos.
3808
412e09f3
VS
38092010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 XEN with Linux grub-mkconfig support.
3812
3813 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
3814 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
3815 GRUB_CMDLINE_XEN_DEFAULT.
3816 * util/grub.d/20_linux_xen.in: New file.
3817
53f3ef38 38182010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
3819
3820 Initialise VGA video on qemu ourselves.
3821
3822 * boot/i386/qemu/boot.S: Don't call 0xc000.
3823 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
3824 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
3825 (kernel_img_HEADERS): Add pci.h.
3826 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
3827 * configure.ac: Force unifont on qemu and yeeloong.
3828 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
3829 (grub_vga_palette_write): Use correct register.
3830 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
3831 Call grub_qemu_init_cirrus.
3832 * kern/i386/qemu/init.c: New file.
3833 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
3834
3835 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
3836
c75be4fb
PR
38372010-06-26 Pavel Roskin <proski@gnu.org>
3838
3839 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
3840 13.
3841
d8034603
CW
38422010-06-26 Colin Watson <cjwatson@ubuntu.com>
3843
3844 * docs/grub.texi (Simple configuration): Explain that
3845 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
3846 set to `true' to disable their respective recovery entries, not
3847 merely set.
3848
3fa06487
CW
38492010-06-26 Colin Watson <cjwatson@ubuntu.com>
3850
3851 Make the `source' command slightly faster.
3852
3853 * normal/main.c (grub_normal_execute): Don't re-read list files when
3854 nested.
3855
e9b29642
CW
38562010-06-23 Colin Watson <cjwatson@ubuntu.com>
3857
3858 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
3859 field position and mask size to red fields from mode_info, not
3860 green.
3861 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
3862 Remove redundant tag->common.framebuffer_type assignment.
3863 Reported by: Seth Goldberg.
3864
e726542f
CW
38652010-06-23 Colin Watson <cjwatson@ubuntu.com>
3866
3867 Sync up other versions of the Linux loader with Robert Millan's
3868 change of 2010-01-09, "Make loader output a bit more user-friendly".
3869
3870 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
3871 grub_dprintf().
3872 (grub_cmd_linux): Likewise.
3873 (grub_cmd_initrd): Likewise.
3874 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
3875 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3876
d6e98a17
CW
38772010-06-21 Colin Watson <cjwatson@ubuntu.com>
3878
3879 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
3880 larger than MEMORY_MAP_SIZE.
3881
14d3f08e
BC
38822010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
3883
3884 Fix parallel build.
3885
3886 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
3887 dependency.
3888 * script/parser.y: #include grub_script.tab.h header.
3889
4f9613a3
VS
38902010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 Support >3GiB and <16MiB RAM in i386-qemu.
3893
3894 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
3895 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
3896 (grub_lower_mem): Removed.
3897 (grub_upper_mem): Likewise.
3898 (mem_size): Made static.
3899 (above_4g): New variable.
3900 (grub_machine_mmap_init): Detect small mem_size and above_4g.
3901 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
3902 support.
3903
05e51879
VS
39042010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 Cirrus 5446 and Bochs video cards support.
3907
3908 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
3909 video_bochs.mod
3910 (video_cirrus_mod_SOURCES): New variable.
3911 (video_cirrus_mod_CFLAGS): Likewise.
3912 (video_cirrus_mod_LDFLAGS): Likewise.
3913 (video_bochs_mod_SOURCES): Likewise.
3914 (video_bochs_mod_CFLAGS): Likewise.
3915 (video_bochs_mod_LDFLAGS): Likewise.
3916 * include/grub/vga.h: New file.
3917 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
3918 (grub_video_fb_set_page_t): New type.
3919 (grub_video_fb_setup): New prototype.
3920 (grub_video_fb_swap_buffers): Likewise.
3921 (grub_video_fb_get_info_and_fini): Likewise.
3922 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
3923 (CRTC_DATA_PORT): Likewise.
3924 (CRTC_CURSOR): Likewise.
3925 (CRTC_CURSOR_ADDR_HIGH): Likewise.
3926 (CRTC_CURSOR_ADDR_LOW): Likewise.
3927 (CRTC_CURSOR_DISABLE): Likewise.
3928 (update_cursor): Use grub_vga_cr_write.
3929 (grub_vga_text_setcursor): Likewise.
3930 * video/bochs.c: New file.
3931 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
3932 (palette): Likewise.
3933 (palette_size): Likewise.
3934 (framebuffer): New variable.
3935 (grub_video_fb_init): Use 'framebuffer'.
3936 (grub_video_fb_fini): Likewise.
3937 (grub_video_fb_get_info): Likewise.
3938 (grub_video_fb_get_palette): Likewise.
3939 (grub_video_fb_set_palette): Likewise.
3940 (grub_video_fb_set_viewport): Likewise.
3941 (grub_video_fb_get_viewport): Likewise.
3942 (grub_video_fb_map_color): Likewise.
3943 (grub_video_fb_map_rgb): Likewise.
3944 (grub_video_fb_map_rgba): Likewise.
3945 (grub_video_fb_unmap_color): Likewise.
3946 (grub_video_fb_unmap_color_int): Likewise.
3947 (grub_video_fb_fill_rect): Likewise.
3948 (grub_video_fb_blit_bitmap): Likewise.
3949 (grub_video_fb_blit_render_target): Likewise.
3950 (grub_video_fb_scroll): Likewise.
3951 (grub_video_fb_create_render_target): Likewise.
3952 (grub_video_fb_doublebuf_blit_init): Likewise.
3953 (grub_video_fb_set_active_render_target): Handle doublebuffering.
3954 (doublebuf_pageflipping_update_screen): New function.
3955 (doublebuf_pageflipping_init): Likewise.
3956 (grub_video_fb_setup): Likewise.
3957 (grub_video_fb_swap_buffers): Likewise.
3958 (grub_video_fb_get_info_and_fini): Likewise.
3959 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
3960 All users updated.
3961 (doublebuf_pageflipping_commit): Restructured into ...
3962 (doublebuf_pageflipping_set_page): ... this.
3963 (doublebuf_pageflipping_update_screen): Removed.
3964 (doublebuf_pageflipping_init): Likewise.
3965 (double_buffering_init): Likewise.
3966 (grub_video_vbe_setup): Use grub_video_fb_setup.
3967 (grub_video_vbe_swap_buffers): Removed.
3968 (grub_video_vbe_set_active_render_target): Likewise.
3969 (grub_video_vbe_get_active_render_target): Likewise.
3970 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
3971 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
3972 grub_video_fb_set_active_render_target and
3973 grub_video_fb_get_active_render_target.
3974 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
3975 (SEQUENCER_DATA_PORT): Likewise.
3976 (MAP_MASK_REGISTER): Likewise.
3977 (CRTC_ADDR_PORT): Likewise.
3978 (CRTC_DATA_PORT): Likewise.
3979 (START_ADDR_HIGH_REGISTER): Likewise.
3980 (START_ADDR_LOW_REGISTER): Likewise.
3981 (GRAPHICS_ADDR_PORT): Likewise.
3982 (GRAPHICS_DATA_PORT): Likewise.
3983 (READ_MAP_REGISTER): Likewise.
3984 (INPUT_STATUS1_REGISTER): Likewise.
3985 (INPUT_STATUS1_VERTR_BIT): Likewise.
3986 (get_map_mask): Use grub_vga_sr_read.
3987 (set_map_mask): Use grub_vga_sr_write.
3988 (set_read_map): Use grub_vga_gr_write.
3989 (set_start_address): Use grub_vga_cr_write.
3990 * video/sm712.c (framebuffer): Remove leftover fields.
3991
4321c64a
CW
39922010-06-20 Colin Watson <cjwatson@ubuntu.com>
3993
3994 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
3995 setting GRUB_VIDEO_BACKEND. Make it available as a user override
3996 instead. Replace the gfxterm backend check with a check that
3997 ${GRUB_PREFIX}/video.lst is non-empty.
3998 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
3999 again.
4000 (load_video): New generated function. Call it before loading
4001 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
4002 * util/grub.d/10_linux.in (linux_entry): Call load_video.
4003 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
4004 * docs/grub.texi (Simple configuration): Document
4005 GRUB_VIDEO_BACKEND.
4006
40072010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 Use video functions in linux and xnu loaders.
4010
4011 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
4012 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
4013 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
4014 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
4015 loader/i386/pc/linux.c.
4016 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
4017 (find_line_len): Removed.
4018 (find_framebuf): Likewise.
4019 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
4020 * loader/i386/efi/xnu.c: Removed.
4021 * loader/i386/pc/xnu.c: Moved from here...
4022 * loader/i386/xnu.c: ...here.
4023
4024 Enable priorities in video drivers.
4025
4026 * include/grub/video.h (grub_video_adapter_prio_t): New type.
4027 (grub_video_adapter): New field prio.
4028 (grub_video_register): Respect prio when inserting.
4029 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
4030 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
4031 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
4032 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
4033 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
4034 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
4035 * video/sm712.c (grub_video_sm712_adapter): Likewise.
4036
4037 Fix SDL driver ID.
4038
4039 * include/grub/video.h (grub_video_driver_id_t): New value
4040 GRUB_VIDEO_DRIVER_SDL.
4041 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
4042
7d24e434
CW
40432010-06-17 Colin Watson <cjwatson@ubuntu.com>
4044
4045 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
4046 argument to printf.
4047 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4048
c88a83f6
CW
40492010-06-17 Colin Watson <cjwatson@ubuntu.com>
4050
4051 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
4052 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4053
094dfb69
CW
40542010-06-17 Colin Watson <cjwatson@ubuntu.com>
4055
4056 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
4057 directly, and recommend grub-install instead.
4058 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4059
2164da6b
CW
40602010-06-17 Colin Watson <cjwatson@ubuntu.com>
4061
4062 Fix i386-pc prefix handling with nested partitions (Debian bug
4063 #585068). Note that the case where the core image is booted using
4064 multiboot and relocated from its original location still requires
4065 more work.
4066
4067 * kern/i386/pc/init.c (make_install_device): If the prefix starts
4068 with "(,", fill the boot drive in between those two characters, but
4069 expect that a full partition specification including partition map
4070 names will follow.
4071 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
4072 specified, write a prefix without the drive name but including a
4073 full partition specification.
4074
044e2e60
CW
40752010-06-16 Colin Watson <cjwatson@ubuntu.com>
4076
4077 * util/grub-mkconfig.in: Ignore non-option arguments, for
4078 compatibility with older versions (before 2010-06-12) which did the
4079 same. In particular, this makes it easier to ship an update-grub
4080 wrapper which is compatible with that used with GRUB Legacy (Debian
4081 bug #586056).
4082
5591324f
GS
40832010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4084
4085 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
4086 for manual page generation.
4087
662e24d5
GS
40882010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4089
4090 * po/POTFILES: Remove leftover commands/handler.c.
4091
8d70754e
CW
40922010-06-14 Colin Watson <cjwatson@ubuntu.com>
4093
4094 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
4095 left this script non-functional.
4096
41160e2e
CW
40972010-06-14 Colin Watson <cjwatson@ubuntu.com>
4098
4099 * docs/man/grub-emu.h2m: New file.
4100
b5309cc1
CW
41012010-06-13 Colin Watson <cjwatson@ubuntu.com>
4102
4103 * docs/grub.texi (Commands): Document reduced command set in rescue
4104 mode.
4105 (cpuid): New section.
4106
fcb2d090
GS
41072010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
4108
4109 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
4110 new partition naming style.
4111 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
4112
96e5c556
BC
41132010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
4114
4115 Add "-o grub.iso" like cmdline options support.
4116
4117 * util/grub-install.in: Improve cmdline option parsing.
4118 * util/grub-mkconfig.in: Likewise.
4119 * util/grub-mkrescue.in: Likewise.
4120 * util/grub-reboot.in: Likewise.
4121 * util/grub-set-default.in: Likewise.
4122 * util/i386/efi/grub-install.in: Likewise.
4123 * util/ieee1275/grub-install.in: Likewise.
4124 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4125
c16be99b
CW
41262010-06-12 Colin Watson <cjwatson@ubuntu.com>
4127
4128 * .bzrignore: Ignore 41_custom.
4129
ce08a9fb
TS
41302010-06-12 Thomas Schmitt <scdbackup@gmx.net>
4131
4132 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
4133
7beac90c
CW
41342010-06-12 Colin Watson <cjwatson@ubuntu.com>
4135
4136 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
4137 prototype declarations.
4138
4139 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
4140 generating fs, partmap, and video lists.
4141 * include/grub/fs.h (grub_fs_register): Omit prototype if
4142 GRUB_LST_GENERATOR is defined.
4143 * include/grub/partition.h (grub_partition_map_register): Likewise.
4144 * include/grub/video.h (grub_video_register): Likewise.
4145
1c8f0f8d
JM
41462010-06-12 Javier Martín <lordhabbit@gmail.com>
4147
4148 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
4149
a6085973
TS
41502010-06-12 Thomas Schmitt <scdbackup@gmx.net>
4151
4152 * util/grub-mkrescue.in: Support --xorriso argument.
4153
25c56d29
VS
41542010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4155
4156 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
4157 Suggested by: Thomas Schmitt.
4158
e03e4b24
VS
41592010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
4162 Suggested by: Thomas Schmitt.
4163
57711df6
VS
41642010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 custom.cfg support.
4167
4168 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
4169 * util/grub.d/41_custom.in: New file.
4170
ee62c427
CW
41712010-06-12 Colin Watson <cjwatson@ubuntu.com>
4172
4173 * util/grub-mkrescue.in (make_image): Remove sh module, which has
4174 been merged back into normal.
4175
283af07a
CW
41762010-06-11 Colin Watson <cjwatson@ubuntu.com>
4177
4178 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
4179 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
4180
56a0d956
CW
41812010-06-11 Colin Watson <cjwatson@ubuntu.com>
4182
4183 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
4184 when generating manual pages.
4185 * docs/man/grub-bin2h.h2m: New file.
4186 * docs/man/grub-editenv.h2m: New file.
4187 * docs/man/grub-fstest.h2m: New file.
4188 * docs/man/grub-install.h2m: New file.
4189 * docs/man/grub-macho2img.h2m: New file.
4190 * docs/man/grub-mkconfig.h2m: New file.
4191 * docs/man/grub-mkdevicemap.h2m: New file.
4192 * docs/man/grub-mkfont.h2m: New file.
4193 * docs/man/grub-mkimage.h2m: New file.
4194 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
4195 * docs/man/grub-mkrelpath.h2m: New file.
4196 * docs/man/grub-mkrescue.h2m: New file.
4197 * docs/man/grub-ofpathname.h2m: New file.
4198 * docs/man/grub-pe2elf.h2m: New file.
4199 * docs/man/grub-probe.h2m: New file.
4200 * docs/man/grub-reboot.h2m: New file.
4201 * docs/man/grub-script-check.h2m: New file.
4202 * docs/man/grub-set-default.h2m: New file.
4203 * docs/man/grub-setup.h2m: New file.
4204
3a37e322
VS
42052010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 Use FOR_* macros instead of *_iterate whenever possible.
4208
4209 * commands/handler.c: Removed.
4210 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
4211 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
4212 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4213 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
4214 (grub_probe_SOURCES): Remove kern/parser.c.
4215 (util/grub-script-check.c_DEPENDENCIES): Removed.
4216 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
4217 and grub_script_check_init.c.
4218 (grub_script_check_init.lst): Removed.
4219 (grub_script_check_init.h): Likewise.
4220 (grub_script_check_init.c): Likewise.
4221 (pkglib_MODULES): Remove handler.mod and sh.mod.
4222 (handler_mod_SOURCES): Removed.
4223 (handler_mod_CFLAGS): Likewise.
4224 (handler_mod_LDFLAGS): Likewise.
4225 (normal_mod_SOURCES): Remove normal/handler.c.
4226 Add script/main.c, script/script.c, script/execute.c,
4227 script/function.c, script/lexer.c, grub_script.tab.c
4228 and grub_script.yy.c.
4229 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4230 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4231 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
4232 (grub_setup_SOURCES): Remove kern/parser.c.
4233 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4234 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
4235 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
4236 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4237 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4238 (grub_setup_SOURCES): Remove kern/parser.c.
4239 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4240 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
4241 * include/grub/command.h (grub_command_iterate): Removed.
4242 (FOR_COMMANDS): New macro.
4243 * include/grub/dl.h (grub_dl): New member next.
4244 (grub_dl_iterate): Removed.
4245 (grub_dl_head): New variable declaration.
4246 (FOR_DL_MODULES): New macro.
4247 * include/grub/fs.h: Include list.h.
4248 (grub_fs): Make next first element.
4249 (grub_fs_list): New variable declaration.
4250 (grub_fs_register): Make inline.
4251 (grub_fs_unregister): Likewise.
4252 (grub_fs_iterate): Removed.
4253 (FOR_FILESYSTEMS): New macro.
4254 * include/grub/handler.h: Removed.
4255 * include/grub/list.h (grub_list_hook_t): Removed.
4256 (grub_list_test_t): Likewise.
4257 (grub_list_pop): Likewise.
4258 (grub_list_iterate): Likewise.
4259 (grub_list_insert): Likewise.
4260 (FOR_LIST_ELEMENTS): New macro.
4261 * include/grub/parser.h (grub_parser_class): Removed.
4262 (grub_parser_register): Likewise.
4263 (grub_parser_unregister): Likewise.
4264 (grub_parser_get_current): Likewise.
4265 (grub_parser_set_current): Likewise.
4266 (grub_register_rescue_parser): Likewise.
4267 (grub_rescue_parse_line): New function.
4268 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
4269 * include/grub/script_sh.h (grub_script_function_list): New variable
4270 declaration.
4271 (FOR_SCRIPT_FUNCTIONS): New macro.
4272 (grub_script_function_iterate): Removed.
4273 (grub_normal_parse_line): New prototype.
4274 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
4275 (FOR_DISABLED_TERM_INPUTS): Likewise.
4276 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4277 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4278 * include/grub/video.h (grub_video_adapter): Move 'next' to first
4279 element.
4280 (grub_video_register): Inline.
4281 (grub_video_unregister): Likewise.
4282 (grub_video_adapter_list): New variable declaration.
4283 (grub_video_iterate): Removed.
4284 (FOR_VIDEO_ADAPTERS): New macro.
4285 * kern/dl.c (grub_dl_list): Removed. All users updated.
4286 (grub_dl_iterate): Removed.
4287 * kern/fs.c (grub_fs_list): Make global.
4288 (grub_fs_register): Removed.
4289 (grub_fs_unregister): Likewise.
4290 (grub_fs_iterate): Likewise.
4291 * kern/handler.c: Removed.
4292 * kern/list.c (grub_list_pop): Removed.
4293 (grub_list_iterate): Likewise.
4294 (grub_list_insert): Likewise.
4295 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
4296 (grub_prio_list_insert): Don't use grub_list_insert.
4297 * kern/main.c (grub_register_rescue_parser): Don't call
4298 grub_register_rescue_parser.
4299 * kern/parser.c (grub_parser_class): Removed.
4300 (grub_parser_execute): Use grub_rescue_parse_line.
4301 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
4302 (grub_rescue_parser): Removed.
4303 (grub_register_rescue_parser): Likewise.
4304 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
4305 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
4306 (grub_auth_check_authentication): Likewise.
4307 * normal/completion.c (iterate_command): Removed.
4308 (grub_normal_do_completion): Use FOR_COMMANDS.
4309 * normal/handler.c: Removed.
4310 * normal/main.c (read_config_file): Remove parser changing.
4311 (grub_normal_execute): Don't call read_handler_list.
4312 (grub_normal_read_line_real): Statically allocate prompt.
4313 (grub_cmdline_run): Use grub_normal_parse_line.
4314 (GRUB_MOD_FINI): Don't call free_handler_list.
4315 * normal/menu_entry.c (run): Likewise.
4316 * script/function.c (grub_script_function_list): Make global.
4317 (grub_script_function_iterate): Removed.
4318 * script/main.c (grub_normal_parse_line): Make global.
4319 (grub_sh_parser): Removed.
4320 (GRUB_MOD_INIT): Likewise.
4321 (GRUB_MOD_FINI): Likewise.
4322 * tests/lib/functional_test.c (grub_functional_test): Use
4323 FOR_LIST_ELEMENTS.
4324 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
4325 (grub_test_run): Use FOR_LIST_ELEMENTS.
4326 * tests/lib/unit_test.c (main): Likewise.
4327 * util/deviceiter.c (grub_util_iterate_devices): Don't use
4328 grub_list_pop.
4329 * util/grub-fstest.c (grub_term_input_class): Removed.
4330 (grub_term_output_class): Likewise.
4331 * util/grub-probe.c: Likewise.
4332 * util/i386/pc/grub-setup.c: Likewise.
4333 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4334 * util/grub-script-check.c (main): Don't call grub_init_all and
4335 grub_fini_all.
4336 * video/video.c (grub_video_adapter_list): Make global.
4337 (grub_video_register): Removed.
4338 (grub_video_unregister): Likewise.
4339 (grub_video_iterate): Likewise.
4340
6289c3a7
VS
43412010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4342
4343 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
4344 reported by Henrique Ferreiro.
4345
91460247
RM
43462010-06-09 Robert Millan <rmh@gnu.org>
4347
4348 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
4349 ones, when both are available.
4350
0ea7c4f9
GS
43512010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
4352
4353 Make --version uniform and avoid hard-coded program name.
4354
4355 * util/grub-mkimage.c (main): Use `program_name' instead of
4356 hard-coded string.
4357 * util/i386/pc/grub-setup.c (main): Likewise.
4358 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
4359 * util/grub-install.in: Save the basename of $0 in $self, and use the
4360 latter in informational messages. Use the same format for --version
4361 as the binary programs.
4362 * util/grub-mkconfig.in: Likewise.
4363 * util/grub-mkrescue.in: Likewise.
4364 * util/grub-reboot.in: Likewise.
4365 * util/grub-set-default.in: Likewise.
4366 * util/i386/efi/grub-install.in: Likewise.
4367 * util/ieee1275/grub-install.in: Likewise.
4368 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4369
e8a6f3b6
GS
43702010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
4371
4372 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
4373 embedding area. Use <= instead of == when checking for non-emptiness.
4374
f4d095d7
GS
43752010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
4376
4377 * configure.ac: Add `.' to the directories searched for unifont.
4378
50e532ca
CW
43792010-06-08 Colin Watson <cjwatson@ubuntu.com>
4380
4381 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
4382 grub_script.yy.h.
4383
d39f3dec
CW
43842010-06-08 Colin Watson <cjwatson@ubuntu.com>
4385
4386 * docs/grub.texi (History): Expand to cover GRUB 2.
4387 (Serial terminal): Refer to `terminal_input' and `terminal_output'
4388 commands, not `terminal'.
4389 (serial): Likewise.
4390 (terminal_input): New section.
4391 (terminal_output): New section.
4392 (uppermem): New section (stub).
4393 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
4394
6ef0ddb4
CW
43952010-06-08 Colin Watson <cjwatson@ubuntu.com>
4396
4397 * docs/grub.texi (Security): Menu entries are unrestricted by
4398 default, not restricted to superusers as I had previously thought.
4399 Reword to account for this.
4400
e0f4c438
CW
44012010-06-07 Colin Watson <cjwatson@ubuntu.com>
4402
4403 * kern/emu/misc.c (device_mapper_null_log): New function.
4404 (grub_device_mapper_supported): New function.
4405 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
4406 prototype.
4407 * kern/emu/hostdisk.c (find_partition_start): Check whether
4408 device-mapper is supported before trying to use it.
4409 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
4410
da908200
CW
44112010-06-07 Colin Watson <cjwatson@ubuntu.com>
4412
4413 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
4414 (File name syntax): Likewise.
4415 (help): --all is no longer supported in GRUB 2. Be more precise
4416 about pattern matching.
4417
fb55c3ac
CW
44182010-06-07 Colin Watson <cjwatson@ubuntu.com>
4419
4420 * normal/completion.c (grub_normal_do_completion): When completing
4421 arguments to "set" and the current word contains an equals sign,
4422 skip to after the equals sign before starting completion.
4423
258c2573
CW
44242010-06-07 Colin Watson <cjwatson@ubuntu.com>
4425
4426 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
4427
ee75515e
CW
44282010-06-07 Colin Watson <cjwatson@ubuntu.com>
4429
4430 * docs/grub.texi (Network): New section.
4431 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
4432 `(nd)' as in GRUB Legacy.
4433 (pxe_unload): New section.
4434
a6a700aa
CW
44352010-06-07 Colin Watson <cjwatson@ubuntu.com>
4436
4437 * docs/grub.texi (Troubleshooting): `echo' is not usually available
4438 in the rescue shell, so recommend using `set' instead. Thanks,
4439 Jordan Uggla.
4440
4003dd38
CW
44412010-06-07 Colin Watson <cjwatson@ubuntu.com>
4442
4443 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
4444 (password): New section.
4445 (password_pbkdf2): New section.
4446 (search): New section.
4447 (Security): New section.
4448 (Troubleshooting): New section, currently very incomplete.
4449 (Invoking grub-mkpasswd-pbkdf2): New section.
4450 (Internals): New section, currently very incomplete.
4451
e1cbcc40
CW
44522010-06-07 Colin Watson <cjwatson@ubuntu.com>
4453
4454 * util/grub.d/00_header.in: Add some more quoting (of
4455 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
4456 work again.
4457 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
4458
db8fa1ad
CW
44592010-06-07 Colin Watson <cjwatson@ubuntu.com>
4460
4461 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
4462 to `count', fixing variable shadowing that broke the -c option.
4463
44642010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
4465
4466 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
4467 in case they contain spaces.
4468
f28a9212
CW
44692010-06-04 Colin Watson <cjwatson@ubuntu.com>
4470
4471 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
4472 "part_" to partmap module names, in line with grub-install.
4473 Reported by: Jindřich Makovička (Debian bug #584426).
4474
9cdfe32f
CW
44752010-06-04 Colin Watson <cjwatson@ubuntu.com>
4476
4477 * util/grub-mkimage.c: Make target-related error messages slightly
4478 more helpful; -O talks about "format". Explicitly point to the use
4479 of -O if no target is specified.
4480 Reported by: Didier Raboud (Debian bug #584415).
4481
795b593a
CW
44822010-06-03 Colin Watson <cjwatson@ubuntu.com>
4483
4484 * INSTALL: Document several build requirements for optional features
4485 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
4486
9d9b5833
GS
44872010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
4488
4489 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
4490 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
4491 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
4492
0819fec8
CW
44932010-06-02 Colin Watson <cjwatson@ubuntu.com>
4494
4495 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
4496 Thanks to Jordan Uggla for spotting this.
4497
49396b4f
VS
44982010-06-02 Aleš Nesrsta <starous@volny.cz>
4499
4500 Finally make USB usable.
4501
4502 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
4503 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
4504 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
4505 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
4506 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
4507 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
4508 (GRUB_OHCI_FSMPS): Likewise.
4509 (GRUB_OHCI_PERIODIC_START): Likewise.
4510 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
4511 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
4512 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
4513 (GRUB_OHCI_SET_PORT_RESET): Likewise.
4514 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
4515 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
4516 (grub_ohci_transaction): Likewise.
4517 (grub_ohci_transfer): Improve condition detection algorithms.
4518 Handle toggle property. Program the transactions correctly.
4519 Improve error handling. Various important fixups.
4520 (grub_ohci_portstatus): Put register writes in right order.
4521 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
4522 (grub_uhci_transfer): Don't show "failed" message on success.
4523 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
4524 array.
4525 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
4526 determine its size.
4527 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
4528 before initialization is completed. Use IN direction for empty
4529 transfers. Use last_trans and compute toggle.
4530 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
4531 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
4532 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
4533 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
4534 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
4535 (grub_usb_device): Increase toggle to 256.
4536 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
4537 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
4538 GRUB_USBMS_SUBCLASS_SFF8070.
4539 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
4540 (grub_scsi_inquiry): New member page and alloc_length.
4541 (grub_scsi_request_sense): New structure.
4542 (grub_scsi_request_sense_data): Likewise.
4543 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
4544 control.
4545 * disk/scsi.c (grub_scsi_request_sense): New function.
4546 (grub_scsi_test_unit_ready): Likewise.
4547 (grub_scsi_inquiry): Fill new fields.
4548 (grub_scsi_read_capacity): Likewise.
4549 (grub_scsi_read10): Add request sense at the end.
4550 (grub_scsi_read12): Likewise.
4551 (grub_scsi_write10): Likewise.
4552 (grub_scsi_write12): Likewise.
4553 (grub_scsi_open): Add Test Unit Ready.
4554 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
4555 Support additional subclasses. Con't clear halt yet. Activate the
4556 proper config. Calculate LUNs correctly.
4557 (grub_usbms_transfer): Various important fixups.
4558
45592010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
4562 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
4563 (grub_ohci_fini_hw): New function.
4564 (grub_ohci_restore_hw): Likewise.
4565 (GRUB_MOD_INIT(ohci)): Register preboot hook.
4566 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
4567 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
4568
45692010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 Dedicated DMA allocations.
4572
4573 * bus/pci.c (grub_memalign_dma32): New function
4574 (grub_dma_free): Likewise.
4575 (grub_dma_get_virt): Likewise.
4576 (grub_dma_get_phys): Likewise.
4577 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
4578 (grub_ohci_pci_iter): Use dma32_alloc.
4579 (grub_ohci_transfer): Likewise.
4580 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
4581 (grub_usb_bulk_readwrite): Likewise.
4582 * include/grub/pci.h: Add declarations.
4583
45842010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 CS5536 support.
4587
4588 * bus/cs5536.c: New file.
4589 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
4590 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
4591 (cs5536_mod_SOURCES): New variable.
4592 (cs5536_mod_CFLAGS): Likewise.
4593 (cs5536_mod_LDFLAGS): Likewise.
4594 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
4595 machine/pci.h.
4596 (kernel_img_SOURCES): Add bus/cs5536.c.
4597 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
4598 usb_keyboard.mod.
4599 (usb_mod_SOURCES): New variable.
4600 (usb_mod_CFLAGS): New variable.
4601 (usb_mod_LDFLAGS): New variable.
4602 (usbtest_mod_SOURCES): New variable.
4603 (usbtest_mod_CFLAGS): New variable.
4604 (usbtest_mod_LDFLAGS): New variable.
4605 (ohci_mod_SOURCES): New variable.
4606 (ohci_mod_CFLAGS): New variable.
4607 (ohci_mod_LDFLAGS): New variable.
4608 (usbms_mod_SOURCES): New variable.
4609 (usbms_mod_CFLAGS): New variable.
4610 (usbms_mod_LDFLAGS): New variable.
4611 (usb_keyboard_mod_SOURCES): New variable.
4612 (usb_keyboard_mod_CFLAGS): New variable.
4613 (usb_keyboard_mod_LDFLAGS): New variable.
4614 * include/grub/smbus.h: New file.
4615 * include/grub/cs5536.h: New file.
4616
0b35b2a9
CW
46172010-06-02 Colin Watson <cjwatson@ubuntu.com>
4618
4619 * util/grub.d/00_header.in: Add safety check to make sure that
4620 ${locale_dir} exists before trying to probe it.
4621
ca0afd5b
CW
46222010-06-02 Colin Watson <cjwatson@ubuntu.com>
4623
4624 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
4625 per the GNU Coding Standards; this is now too obscure to be worth
4626 documenting.
4627 (QNX): Likewise.
4628 (chainloader): Remove cross-reference to `SCO UnixWare'.
4629
1c41aa78
CW
46302010-06-02 Colin Watson <cjwatson@ubuntu.com>
4631
4632 * docs/grub.texi (Chain-loading): New section.
4633 (DOS/Windows): New section, borrowed from GRUB Legacy with details
4634 adjusted for GRUB 2.
4635 (SCO UnixWare): Likewise.
4636 (QNX): Likewise.
4637 (chainloader): Add reference to `Block list syntax'.
4638 (drivemap): New section.
4639 (parttool): New section.
4640
bb8ea0f5
CW
46412010-06-02 Colin Watson <cjwatson@ubuntu.com>
4642
4643 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
4644 the grub shell'.
4645 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
4646 (Installing GRUB using grub-install): Remove reference to the grub
4647 shell; mention `grub-mkimage' and `grub-setup' instead.
4648 (Invoking grub-install): Likewise.
4649 (Interface): Add reference to `Menu entry editor'.
4650 (serial): Remove `--device' option.
4651
288dd6ed
CW
46522010-06-02 Colin Watson <cjwatson@ubuntu.com>
4653
4654 * docs/grub.texi (Configuration): New section, documenting
4655 configuration file generation using grub-mkconfig. I've left a slot
4656 for documenting the full shell scripting format but have not yet
4657 started on writing that up.
4658 (Invoking grub-mkconfig): New section.
4659
34c9f0e9
CW
46602010-06-02 Colin Watson <cjwatson@ubuntu.com>
4661
4662 * docs/grub.texi (direntry): Remove grub-terminfo reference.
4663 (GNU GRUB manual): Likewise.
4664 (General commands): Update description of `terminfo' for GRUB 2.
4665
9121567e
CW
46662010-06-02 Colin Watson <cjwatson@ubuntu.com>
4667
4668 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
4669 (GRUB_MOD_INIT): Fix capitalisation.
4670 * docs/grub.texi (Command-line and menu entry commands): Document
4671 gettext and gptsync commands.
4672
ab631611
CW
46732010-06-02 Colin Watson <cjwatson@ubuntu.com>
4674
4675 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
4676 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
4677
bde4a9ac
CW
46782010-06-01 Colin Watson <cjwatson@ubuntu.com>
4679
4680 Add btrfs probing support, currently only in the single-device case.
4681
4682 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
4683 function.
4684 (grub_guess_root_device): Call find_root_device_from_mountinfo
4685 before looking in /dev.
4686
b1d17e10
VS
46872010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
4690 GRUB_DISK_SIZE_UNKNOWN.
4691 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
4692
dfbfe004
JS
46932010-05-31 Jiro SEKIBA <jir@unicus.jp>
4694
4695 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
4696 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
4697 corrupted or not synced properly.
4698
c2ffc8e9
VS
46992010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
4702 Reported by: Seth Goldberg.
4703
56293166
VS
47042010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
4707 addition of dest.
4708 Reported by: Seth Goldberg.
4709
7620e7de
VS
47102010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
4713 Reported by: Seth Goldberg.
4714
c837af3f
VS
47152010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
4718 64-bit address as signed on MIPS.
4719
c7c75cf4
CW
47202010-05-28 Colin Watson <cjwatson@ubuntu.com>
4721
4722 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
4723 to the empty string.
4724
fa4b8490
BC
47252010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
4726
4727 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
4728
4729 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
4730 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
4731 * kern/misc.c (__enable_execute_stack): Disable on
4732 GRUB_MACHINE_EMU.
4733
a33075b9
CW
47342010-05-28 Colin Watson <cjwatson@ubuntu.com>
4735
4736 Make grub-probe work with symbolic links under /dev/mapper as well
4737 as with real block devices. The Linux world seems to be (at best)
4738 in transition here, and GRUB shouldn't get caught in the middle.
4739
4740 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
4741 /dev/mapper.
4742
d8708134
CW
47432010-05-27 Colin Watson <cjwatson@ubuntu.com>
4744
4745 * util/grub-script-check.c (main): Ensure defined behaviour on empty
4746 input files (in which case exit zero).
4747
db2102a0
CW
47482010-05-27 Colin Watson <cjwatson@ubuntu.com>
4749
4750 * kern/emu/misc.c (canonicalize_file_name): realpath can still
4751 return NULL for various reasons even if it has a maximum-length
4752 buffer: for example, there might be a symlink loop, or the path
4753 might exceed PATH_MAX. If this happens, return NULL.
4754
5fdba519
RM
47552010-05-27 Robert Millan <rmh@gnu.org>
4756
4757 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
4758 partmap module to handle cross-partmap setups.
4759 Reported by Orestes Mas. Gràcies!
4760
d1d368e4
CW
47612010-05-27 Colin Watson <cjwatson@ubuntu.com>
4762
4763 * util/grub-mkrescue.in: Initialise override_dir rather than
4764 assuming that it's unset or empty in the environment.
4765
95ac3c73
GS
47662010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4767
4768 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
4769 variable index into p_index to suppress a warning with -Wshadow.
4770
7d8c0213
BC
47712010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
4772
4773 * INSTALL: Added flex >= 2.5.35 requirement.
4774
db4d5813
VS
47752010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
4778
f24f4300
VS
47792010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 cmostest support.
4782
4783 * commands/i386/cmostest.c: New file.
4784 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
4785 (cmostest_mod_SOURCES): New variable.
4786 (cmostest_mod_CFLAGS): Likewise.
4787 (cmostest_mod_LDFLAGS): Likewise.
4788 * conf/i386-pc.rmk: Likewise.
4789 * docs/grub.texi (Vendor power-on keys): New section.
4790 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
4791 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
4792 and GRUB_BUTTON_CMOS_ADDRESS.
4793 * util/grub.d/00_header.in: Handle powering-on by separate button.
4794
ad603f61
VS
47952010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
4798 Removed drawing_scrollbar argument. All users updated
4799 Fixes #29792.
4800 Reported by Jo Shields
4801
3ecb080a
VS
48022010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4803
4804 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
4805 buffer since gfxterm handles double repaint.
4806
5f2316c1
VS
48072010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
4810 * term/gfxterm.c (real_scroll): Likewise.
4811
9a25f885
VS
48122010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
4815 before calling BIOS.
4816
39fbb79a
VS
48172010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * include/grub/i18n.h: Always enable grub_gettext.
4820
228cfa97
VS
48212010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
4824 partition naming style.
4825
21717c8f
CW
48262010-05-21 Colin Watson <cjwatson@ubuntu.com>
4827
4828 * util/grub-mkconfig.in: Fix handling of -o so that it works when
4829 not the first option.
4830
c0f48e65
CW
48312010-05-20 Colin Watson <cjwatson@ubuntu.com>
4832
4833 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
4834
96779aec
CW
48352010-05-20 Colin Watson <cjwatson@ubuntu.com>
4836
4837 * util/misc.c: Move inclusion of <limits.h> to ...
4838 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
4839
fa9d256e
GS
48402010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
4841
4842 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
4843 Fix merge error in NetBSD code.
4844 (find_partition_start) [__NetBSD__]: Likewise.
4845
123b7a85
BC
48462010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
4847
4848 Fix grub-mkrescue usage unit testing.
4849
4850 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
4851
74276c0d
CF
48522010-05-18 Christian Franke <franke@computer.org>
4853
4854 * util/grub.d/10_windows.in: Use path names instead of
4855 drive letters to prevent warning from Cygwin 1.7.
4856 Add drivemap command to menuentry if needed.
4857
c4f7b523
ST
48582010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
4859
4860 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
4861 gnumach and gnumach.gz.
4862
95b97950
VS
48632010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * include/grub/i18n.h (gettext): Inline instead of using #define.
4866 (grub_gettext): Likewise.
4867 (_): Likewise.
4868
01b8d2d7
VS
48692010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
4872 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
4873 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
4874 (main): Add a slash after pkglibdirroot.
4875
654e1d1e
VS
48762010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * util/grub-install.in: Add missing "in" keyword.
4879
26966aeb
VS
48802010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
4883 Reported by: Seth Goldberg.
4884
75006747
VS
48852010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
4888
74cbf5bd
CW
48892010-05-18 Colin Watson <cjwatson@ubuntu.com>
4890
4891 * configure.ac: Check for Linux device-mapper support.
4892
4893 * util/hostdisk.c (device_is_mapped): New function.
4894 (find_partition_start): New function, partly broken out from
4895 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
4896 device-mapper support added.
4897 (linux_find_partition): Use find_partition_start.
4898 (convert_system_partition_to_system_disk): Add `st' argument.
4899 Support Linux /dev/mapper/* devices if device-mapper support is
4900 available; only DM-RAID devices are understood at present.
4901 (find_system_device): Add `st' argument. Pass it to
4902 convert_system_partition_to_system_disk.
4903 (grub_util_biosdisk_get_grub_dev): Pass stat result to
4904 find_system_device and convert_system_partition_to_system_disk. Use
4905 find_partition_start.
4906
4907 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
4908 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
4909 * util/deviceiter.c [__linux__]: Define MINOR.
4910 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
4911 * util/mkdevicemap.c (grub_putchar): New function.
4912 (grub_getkey): New function.
4913 (grub_refresh): New function.
4914 (main): Set debug=all if -v -v is used.
4915
355b51e9
CW
49162010-05-18 Colin Watson <cjwatson@ubuntu.com>
4917
4918 Fix build with non-GNU libcs.
4919
4920 * util/misc.c (canonicalize_file_name): Move to ...
4921 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
4922 grub_make_system_path_relative_to_its_root.
4923
7fb5c25f
CW
49242010-05-18 Colin Watson <cjwatson@ubuntu.com>
4925
4926 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
4927 we handle finding grub-mkimage. Default to finding grub-mkimage in
4928 ${bindir} with program_transform_name applied, and provide a
4929 --grub-mkimage option to override this.
4930
1d3293d6
VS
49312010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 Remove grub-mkisofs.
4934
4935 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
4936 (grub_mkisofs_SOURCES): Removed.
4937 (grub_mkisofs_CFLAGS): Removed.
4938 * util/mkisofs/defaults.h: Removed.
4939 * util/mkisofs/eltorito.c: Likewise.
4940 * util/mkisofs/exclude.h: Likewise.
4941 * util/mkisofs/hash.c: Likewise.
4942 * util/mkisofs/include/: Likewise.
4943 * util/mkisofs/include/fctldefs.h: Likewise.
4944 * util/mkisofs/include/mconfig.h: Likewise.
4945 * util/mkisofs/include/prototyp.h: Likewise.
4946 * util/mkisofs/include/statdefs.h: Likewise.
4947 * util/mkisofs/iso9660.h: Likewise.
4948 * util/mkisofs/joliet.c: Likewise.
4949 * util/mkisofs/match.c: Likewise.
4950 * util/mkisofs/match.h: Likewise.
4951 * util/mkisofs/mkisofs.c: Likewise.
4952 * util/mkisofs/mkisofs.h: Likewise.
4953 * util/mkisofs/msdos_partition.h: Likewise.
4954 * util/mkisofs/multi.c: Likewise.
4955 * util/mkisofs/name.c: Likewise.
4956 * util/mkisofs/rock.c: Likewise.
4957 * util/mkisofs/tree.c: Likewise.
4958 * util/mkisofs/write.c: Likewise.
4959
5dde9afe
VS
49602010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 Unify grub-mkimage accross platforms.
4963
4964 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
4965 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
4966 (grub_mkelfimage_SOURCES): Removed.
4967 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
4968 (util/grub-mkimage.c_DEPENDENCIES): .. this.
4969 (bin_UTILITIES): Add grub-mkimage.
4970 (grub_mkimage_SOURCES): New variable.
4971 (kernel_img_HEADERS): Remove machine/kernel.h.
4972 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
4973 (pkglib_PROGRAMS): Add kernel.img.
4974 (kernel_img_HEADERS): Add machine/kernel.h.
4975 (kernel_img_FORMAT): Removed.
4976 (bin_UTILITIES): Remove grub-mkimage.
4977 (grub_mkimage_SOURCES): Removed.
4978 (grub_mkimage_CFLAGS): Likewise.
4979 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4980 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
4981 (pkglib_PROGRAMS): Add kernel.img.
4982 (bin_UTILITIES): Remove grub-mkimage.
4983 (grub_mkimage_SOURCES): Removed.
4984 (grub_mkimage_CFLAGS): Likewise.
4985 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4986 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
4987 (pkglib_PROGRAMS): Add kernel.img.
4988 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
4989 (pkglib_PROGRAMS): Add kernel.img.
4990 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
4991 (grub_mkimage_SOURCES): Removed.
4992 (grub_mkimage_CFLAGS): Likewise.
4993 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
4994 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
4995 (pkglib_PROGRAMS): Add kernel.img.
4996 (bin_UTILITIES): Remove grub-mkimage.
4997 (grub_mkimage_SOURCES): Removed.
4998 (grub_mkimage_CFLAGS): Likewise.
4999 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5000 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
5001 (grub_mkimage_SOURCES): Removed.
5002 (grub_mkimage_CFLAGS): Likewise.
5003 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5004 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
5005 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
5006 (grub_pe32_optional_header): ... this.
5007 (grub_pe64_optional_header): ... and this. All users updated.
5008 (GRUB_PE32_PE32_MAGIC): Split into ..
5009 (GRUB_PE32_PE32_MAGIC): .. this.
5010 (GRUB_PE32_PE64_MAGIC): .. and this.
5011 (GRUB_PE32_SIGNATURE_SIZE): New definition.
5012 * include/grub/elf.h (PT_GNU_STACK): New definition.
5013 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
5014 * include/grub/i386/efi/kernel.h: Likewise.
5015 * include/grub/i386/kernel.h: Likewise.
5016 * include/grub/i386/pc/kernel.h: Likewise.
5017 * include/grub/i386/qemu/boot.h: Likewise.
5018 * include/grub/mips/kernel.h: Likewise.
5019 * include/grub/mips/qemu-mips/kernel.h: Likewise.
5020 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
5021 * include/grub/powerpc/kernel.h: Likewise.
5022 * include/grub/sparc64/ieee1275/boot.h: Likewise.
5023 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
5024 * include/grub/sparc64/kernel.h: Likewise.
5025 * include/grub/x86_64/efi/kernel.h: Likewise.
5026 * include/grub/x86_64/kernel.h: Likewise.
5027 * include/grub/offsets.h: New file.
5028 * include/grub/kernel.h (grub_module_info): Split into ...
5029 (grub_module_info32): ... this.
5030 (grub_module_info64): ... and this.
5031 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
5032 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
5033 (grub_boot_blocklist): Moved from here ...
5034 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
5035 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
5036 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
5037 * include/grub/types.h (grub_target_to_host16): Removed.
5038 (grub_target_to_host32): Likewise.
5039 (grub_target_to_host64): Likewise.
5040 (grub_host_to_target16): Likewise.
5041 (grub_host_to_target32): Likewise.
5042 (grub_host_to_target64): Likewise.
5043 (grub_host_to_target_addr): Likewise.
5044
5045 Support grub-mkrescue for efi, coreboot and qemu.
5046
5047 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
5048 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
5049 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
5050 * util/grub-mkrawimage.c: Moved from here ...
5051 * util/grub-mkimage.c: ... here. All users updated.
5052 (ALIGN_ADDR): Use image_target.
5053 (TARGET_NO_FIELD): New const.
5054 (image_target_desc): New type.
5055 (image_targets): New array.
5056 (grub_target_to_host64): Use image_target.
5057 (grub_target_to_host32): Likewise.
5058 (grub_target_to_host16): Likewise.
5059 (grub_host_to_target64): Likewise.
5060 (grub_host_to_target32): Likewise.
5061 (grub_host_to_target16): Likewise.
5062 (grub_host_to_target_addr): Likewise.
5063 (generate_image): Handle multiimage.
5064 (main): Require -O parameter. All users updated.
5065 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
5066 util/efi/grub-mkimage.c
5067 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
5068 New option --rom-directory.
5069 Use xorriso.
5070 * util/i386/efi/grub-mkimage.c: Removed.
5071 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
5072 (grub_target_to_host32): Likewise.
5073 (grub_target_to_host64): Likewise.
5074 (grub_host_to_target16): Likewise.
5075 (grub_host_to_target32): Likewise.
5076 (grub_host_to_target64): Likewise.
5077 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
5078 (grub_target_to_host32): Likewise.
5079 (grub_target_to_host64): Likewise.
5080 (grub_host_to_target16): Likewise.
5081 (grub_host_to_target32): Likewise.
5082 (grub_host_to_target64): Likewise.
5083
f4fc97d0
BC
50842010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
5085
5086 Source tree is reorganized for emu build.
5087
5088 * include/grub/util/console.h: Move from here...
5089 * include/grub/emu/console.h: ...to here.
5090 * include/grub/util/getroot.h: Move from here...
5091 * include/grub/emu/getroot.h: ...to here.
5092 * include/grub/util/hostdisk.h: Move from here...
5093 * include/grub/emu/hostdisk.h: ...to here.
5094 * util/console.c: Move from here...
5095 * kern/emu/console.c: ...to here.
5096 * util/getroot.c: Move from here...
5097 * kern/emu/getroot.c: ...to here.
5098 * util/grub-emu.c: Move from here...
5099 * kern/emu/main.c: ...to here.
5100 * util/hostdisk.c: Move from here...
5101 * kern/emu/hostdisk.c: ...to here.
5102 * util/hostfs.c: Move from here...
5103 * kern/emu/hostfs.c: ...to here.
5104 * util/mm.c: Move from here...
5105 * kern/emu/mm.c: ...to here.
5106 * util/pci.c: Move from here...
5107 * bus/emu/pci.c: ...to here.
5108 * util/sdl.c: Move from here...
5109 * video/emu/sdl.c: ...to here.
5110 * util/time.c: Move from here...
5111 * kern/emu/time.c: ...to here.
5112 * util/usb.c: Move from here...
5113 * bus/usb/emu/usb.c: ...to here.
5114
5115 * include/grub/emu/misc.h: New header for grub-emu functions.
5116 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
5117
5118 * conf/any-emu.rmk: Rule updates for above renames.
5119 * conf/common.rmk: Likewise.
5120 * conf/i386-pc.rmk: Likewise.
5121 * conf/i386-qemu.rmk: Likewise.
5122 * conf/mips.rmk: Likewise.
5123 * conf/sparc64-ieee1275.rmk: Likewise.
5124 * conf/x86-efi.rmk: Likewise.
5125
5126 * disk/lvm.h: #include updates for above renames.
5127 * util/grub-mkrelpath.c: Likewise.
5128 * util/grub-probe.c: Likewise.
5129 * util/i386/pc/grub-setup.c: Likewise.
5130 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5131 * kern/emu/console.c: Likewise.
5132 * kern/emu/getroot.c: Likewise.
5133 * kern/emu/hostdisk.c: Likewise.
5134 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
5135
5136 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
5137 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
5138 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
5139 * util/misc.c: Remove grub-emu functions.
5140
cced9145
VS
51412010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 Fix gfxmenu crash.
5144 Reported by: Thorsten Grützmacher.
5145
5146 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
5147 timeout hook.
5148 (circprog_set_property): Register and unregister timeout hook.
5149 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
5150 (label_destroy): Free template. and unregister hook.
5151 (label_set_state): New function.
5152 (label_set_property): Handle templates and hooks.
5153 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
5154 timeout hook.
5155 (progress_bar_set_property): Register and unregister timeout hook.
5156 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
5157 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
5158 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
5159 (update_timeout_visit): Removed.
5160 (update_timeouts): New function.
5161 (redraw_timeouts): Likewise.
5162 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
5163 (grub_gfxmenu_clear_timeout): Likewise.
5164 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
5165 (grub_gfxmenu_timeout_notify): Likewise.
5166 (grub_gfxmenu_timeout_notifications): New external variable.
5167 (grub_gfxmenu_timeout_register): New function.
5168 (grub_gfxmenu_timeout_unregister): Likewise.
5169
c6e5caab
VS
51702010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5171
5172 Transform (broken) vga terminal into (working) vga video driver.
5173
5174 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
5175 video/i386/pc/vga.c.
5176 * include/grub/video.h (grub_video_driver_id):
5177 Add GRUB_VIDEO_DRIVER_VGA.
5178 * term/i386/pc/vga.c: Renamed to ...
5179 * video/i386/pc/vga.c: ...this
5180 (DEBUG_VGA): Removed.
5181 (CHAR_WIDTH): Likewise.
5182 (CHAR_HEIGHT): Likewise.
5183 (TEXT_WIDTH): Likewise.
5184 (TEXT_HEIGHT): Likewise.
5185 (DEFAULT_FG_COLOR): Likewise.
5186 (DEFAULT_BG_COLOR): Likewise.
5187 (colored_char): Likewise.
5188 (xpos): Likewise.
5189 (ypos): Likewise.
5190 (cursor_state): Likewise.
5191 (fg_color): Likewise.
5192 (bg_color): Likewise.
5193 (text_buf): Likewise.
5194 (page): Likewise.
5195 (font): Likewise.
5196 (framebuffer): New variable.
5197 (set_read_map): Disabled.
5198 (setup): New variable.
5199 (is_target): Likewise.
5200 (grub_vga_mod_init): Likewise.
5201 (grub_vga_mod_fini): Likewise.
5202 (check_vga_mem): Likewise.
5203 (write_char): Likewise.
5204 (write_cursor): Likewise.
5205 (scroll_up): Likewise.
5206 (grub_vga_putchar): Likewise.
5207 (grub_vga_getcharwidth): Likewise.
5208 (grub_vga_getwh): Likewise.
5209 (grub_vga_getxy): Likewise.
5210 (grub_vga_gotoxy): Likewise.
5211 (grub_vga_cls): Likewise.
5212 (grub_vga_setcolorstate): Likewise.
5213 (grub_vga_setcursor): Likewise.
5214 (grub_video_vga_init): New function.
5215 (grub_video_vga_setup): Likewise.
5216 (grub_video_vga_fini): Likewise.
5217 (update_target): Likewise.
5218 (grub_video_vga_blit_bitmap): Likewise.
5219 (grub_video_vga_blit_render_target): Likewise.
5220 (grub_video_vga_set_active_render_target): Likewise.
5221 (grub_video_vga_get_active_render_target): Likewise.
5222 (grub_video_vga_swap_buffers): Likewise.
5223 (grub_video_vga_set_palette): Likewise.
5224 (grub_video_vga_get_info_and_fini): Likewise.
5225 (grub_vga_term): Removed.
5226 (grub_video_vga_adapter): New variable.
5227 (GRUB_MOD_INIT): Register a video driver instead of terminal.
5228 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
5229
2bf61a98
VS
52302010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5231
5232 * video/readers/jpeg.c: Indented.
5233
09ddcd11
VS
52342010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5235
5236 Various jpeg cleanups.
5237
5238 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
5239 (grub_jpeg_decode_quan_table): Use sizeof.
5240 (grub_jpeg_decode_du): Use ARRAY_SIZE.
5241
e5507505
PH
52422010-05-05 Peter Hurley <No e-mail available> (tiny change)
5243
5244 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
5245 tables. Ignore non-last ac bit.
5246 (grub_jpeg_decode_quan_table): Likewise.
5247
7e720a9b
VS
52482010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5249
5250 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5251 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
5252 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5253 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
5254 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
5255 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
5256
a7fc080b
VS
52572010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5258
5259 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
5260 error.
5261
2bf6012d
VS
52622010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
5265
265d68cd
VS
52662010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
5269 condition.
5270
52712010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
5272
5273 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
5274 part.
5275
265d68cd 52762010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
5277
5278 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
5279 pointers.
5280
265d68cd 52812010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
5282
5283 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
5284
d1b61374
CF
52852010-05-01 Christian Franke <franke@computer.org>
5286
5287 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
5288 Remove broken Cygwin path conversion.
5289 * util/misc.c: [__CYGWIN__] Add include and define.
5290 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
5291 for Cygwin 1.7.
5292 (make_system_path_relative_to_its_root): Simplify loop, replace early
5293 return by break.
5294 [__CYGWIN__] Add conversion to win32 path.
5295 Include "/" case in trailing slash removal.
5296
3558c6e9
VS
52972010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5298
5299 * kern/main.c (grub_load_config): Fix copy-pasted comment.
5300 Reported by: Seth Goldberg
5301
f5f3ff93
VS
53022010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 * commands/help.c (grub_cmd_help): Fix a typo.
5305 Reported by: Seth Goldberg
5306
d8b5cd40
VS
53072010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
5310 name and add N_.
5311 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
5312 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
5313 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
5314 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
5315 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
5316 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
5317 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5318 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5319 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5320 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5321 * normal/context.c (GRUB_MOD_INIT): Likewise.
5322 * normal/main.c (GRUB_MOD_INIT): Likewise.
5323 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5324 * term/serial.c (GRUB_MOD_INIT): Likewise.
5325 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5326
88c14915
VS
53272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5328
5329 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
5330 extra == 0.
5331
165134bc
VS
53322010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 * commands/iorw.c: New file.
5335 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
5336 (iorw_mod_SOURCES): New variable.
5337 (iorw_mod_CFLAGS): Likewise.
5338 (iorw_mod_LDFLAGS): Likewise.
5339
c5ac9b32
VS
53402010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 Hotkey support
5343
5344 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
5345 * normal/main.c (hotkey_aliases): New variable.
5346 (grub_normal_add_menu_entry): Parse "--hotkey".
5347 * normal/menu_text.c (run_menu): Handle hotkeys.
5348
ce60689c
VS
53492010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 * kern/i386/coreboot/init.c (grub_machine_init): Call
5352 grub_machine_mmap_init on qemu.
5353
0359d006
VS
53542010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * boot/i386/qemu/boot.S: Add a missing .code16.
5357
7819a456
VS
53582010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 Use LBIO on coreboot.
5361
5362 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
5363 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
5364 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
5365 New declaration.
5366 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
5367 grub_machine_mmap_init on coreboot.
5368 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
5369 GRUB_LINUXBIOS_MEMBER_LINK.
5370 (grub_machine_mmap_iterate): Fix declaration.
5371 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
5372
7210dca9
VS
53732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 Split coreboot and multiboot ports.
5376
5377 * conf/i386-multiboot.rmk: New file.
5378 * configure.ac: Add multiboot port.
5379 * include/grub/i386/multiboot/boot.h: New file.
5380 * include/grub/i386/multiboot/console.h: Likewise.
5381 * include/grub/i386/multiboot/init.h: Likewise.
5382 * include/grub/i386/multiboot/kernel.h: Likewise.
5383 * include/grub/i386/multiboot/loader.h: Likewise.
5384 * include/grub/i386/multiboot/memory.h: Likewise.
5385 * include/grub/i386/multiboot/serial.h: Likewise.
5386 * include/grub/i386/multiboot/time.h: Likewise.
5387 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
5388 * loader/multiboot.c: Likewise.
5389 * loader/multiboot_mbi2.c: Likewise.
5390 * util/grub-mkrescue.in: Generate multiboot rescue.
5391
6f8aaf68
VS
53922010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5393
3080f7a7
VS
5394 * kern/parser.c (grub_parser_execute): Cope with read-only config.
5395
53962010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5397
5398 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
5399
5400 * commands/terminal.c (abstract_terminal): New struct.
5401 (handle_command): New function. Based on grub_cmd_terminal_input.
5402 (grub_cmd_terminal_input): Use handle_command.
5403 (grub_cmd_terminal_output): Use handle_command.
5404
a8ebb841
BC
54052010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
5406
5407 Fix comment handling.
5408
5409 * tests/grub_script_comments.in: New testcase.
5410 * conf/tests.rmk: Rules for new testcase.
5411 * script/yylex.l: Updated flex rules.
5412
bb06ba08
ST
54132010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5414
5415 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
5416 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
5417 if argc is 1.
bb06ba08 5418
cc9d2425
VS
54192010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
5422 autogen issues.
5423
460d8402
CF
54242010-04-26 Christian Franke <franke@computer.org>
5425
5426 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
5427 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
5428 (grub_get_prefix): Remove function.
5429 * util/grub-emu.c (main): Replace grub_get_prefix () call by
5430 make_system_path_relative_to_its_root ().
5431 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
5432
553c01f9
CF
54332010-04-24 Christian Franke <franke@computer.org>
5434
5435 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
5436 (kernel_img_LDFLAGS): Remove -static-libgcc.
5437
2aec1692
CF
54382010-04-24 Christian Franke <franke@computer.org>
5439
5440 * configure.ac: Do not CHECK_BSS_START_SYMBOL
5441 and CHECK_END_SYMBOL if grub-emu is built.
5442 Unset TARGET_OBJ2ELF if grub-emu is built
5443 without module support.
5444
f67dc308
JS
54452010-04-24 Jiro SEKIBA <jir@unicus.jp>
5446
5447 Nilfs2 support.
5448
5449 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
5450 (grub_fstest_SOURCES): Likewise.
5451 (pkglib_MODULES): Add nilfs2.mod.
5452 (nilfs2_mod_SOURCES): New variable.
5453 (nilfs2_mod_CFLAGS): Likewise.
5454 (nilfs2_mod_LDFLAGS): Likewise.
5455 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
5456 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
5457 * fs/nilfs2.c: New file.
5458
4ba8d354
VS
54592010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
5462 is not supported.
5463
0d2c20c6
GS
54642010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
5465
5466 Add grub-mkconfig support for NetBSD.
5467
5468 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
5469 * util/grub-mkconfig.in: export new NetBSD specific variables.
5470 * po/POTFILES-shell: added 10_netbsd.in.
5471 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
5472
bc4a2d83
BC
54732010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
5474
5475 Fix emu build with grub-emu-pci and grub-emu-modules.
5476
5477 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
5478 functions.
5479 * include/grub/libpciaccess.h: New file.
5480 * conf/any-emu.rmk: Update kernel headers for emu build.
5481
f48c87aa
VS
54822010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
5485
18959385
VS
54862010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
5489
0037de3f
VS
54902010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
5493 Retrieve chosen/bootpath if bootpath isn't hardcoded.
5494 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
5495 util/ieee1275/ofpath.c.
5496 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
5497 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
5498 * include/grub/sparc64/ieee1275/boot.h
5499 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
5500 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
5501 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
5502 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
5503 const char *.
5504 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
5505 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
5506 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
5507 install.
5508
38e55e90
GS
55092010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
5510
5511 * util/grub-mkconfig.in: Corrected two == equality tests.
5512 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
5513 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
5514 expect a number appended to it.
5515 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
5516 expects a number appended to it.
5517
a9e6ff28
VS
55182010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
5521
0b830b8f
VS
55222010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * util/hostdisk.c (make_device_name): Change to new partition naming.
5525
0973daeb
VS
55262010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
5529
460d8402 55302010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
5531
5532 * Makefile.in: Add missing localedir setting.
5533
0b456309
CW
55342010-04-14 Colin Watson <cjwatson@ubuntu.com>
5535
5536 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
5537 mistake in r2156. Noticed by Anthony Fok.
5538
5539 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
5540 @localedir@.
5541 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
5542
08f46d62
BC
55432010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
5544
5545 Fix a spurious, uninitialized variable warning.
5546
5547 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
5548 Initialize variable, shdr.
5549 (grub_freebsd_load_elfmodule): Likewise.
5550 (grub_freebsd_load_elf_meta): Likewise.
5551
8c4a72d4
BC
55522010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
5553
5554 Fix for escaped dollar in double quoted strings.
5555
5556 * script/yylex.l: Updated flex rules.
5557 * conf/tests.rmk: Rule for new testcase.
5558 * tests/grub_script_dollar.in: New testcase.
5559
ce44826e
CPE
55602010-04-13 Carles Pina i Estany <carles@pina.cat>
55612010-04-13 Colin Watson <cjwatson@ubuntu.com>
5562
5563 Enclose all translated strings in grub.cfg in single quotes, and
5564 escape them appropriately (Ubuntu bug #552921).
5565
5566 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
5567 * util/grub.d/10_hurd.in: Use it.
5568 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
5569 * util/grub.d/10_linux.in (linux_entry): Likewise.
5570
4b0cd8f8
VS
55712010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5572
5573 Fix cygwin compilation.
5574
5575 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
5576 * include/grub/misc.h (__register_frame_info)
5577 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
5578 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
5579 * kern/misc.c (__register_frame_info)
5580 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
5581 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
5582
01fcf061
VS
55832010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
5586
5d04b11e
VS
55872010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 Unify libgcc processing.
5590
5591 * Makefile.in (kernel_img_LDFLAGS): New variable.
5592 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
5593 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
5594 overwriting.
5595 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
5596 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
5597 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
5598 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
5599 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
5600 overwriting. Remove -lgcc and -static-libgcc
5601 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
5602 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
5603 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
5604 (kernel_img_LDFLAGS): Append instead of overwriting.
5605 Remove -lgcc and -static-libgcc
5606 * conf/sparc64-ieee1275.rmk: Likewise.
5607 * include/grub/powerpc/libgcc.h: Move to ...
5608 * include/grub/libgcc.h: .. this.
5609 * include/grub/libgcc.h: Don't export most of the function on x86.
5610 (__bswapsi2): New export.
5611 (__bswapdi2): Likewise.
5612 * include/grub/mips/libgcc.h: Removed.
5613 * include/grub/sparc64/libgcc.h: Likewise.
5614
b7f3ac29
VS
56152010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
5618 disk_info_msg (conflicts with gettexting into languages with cases).
5619
2c7031b1
GS
56202010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5621
5622 Add grub-probe support for NetBSD.
5623
5624 * util/getroot.c (find_root_device): Convert block device to
5625 character device on NetBSD.
5626 * util/probe.c (probe): Require character device on NetBSD.
5627 * util/hostdisk.c: NetBSD specific headers.
5628 (configure_device_driver): new function to tune device driver
5629 parameters (currently only for NetBSD floppy driver).
5630 (grub_util_biosdisk_open): NetBSD specific code (get disk size
5631 via disklabel ioctl).
5632 (open_device): call configure_device_driver on NetBSD.
5633 (convert_system_partition_to_system_disk): NetBSD specific code.
5634 (device_is_wholedisk): Likewise.
5635 (grub_util_biosdisk_get_grub_dev): Likewise.
5636 (make_device_name): Fixed a typo in bsd_part_str.
5637 * configure.ac: check for opendisk() and getrawpartition() on
5638 NetBSD and set LIBUTIL.
5639 * Makefile.in: add LIBUTIL to LIBS.
5640
f516290c
BC
56412010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
5642
5643 Documentation fix.
5644
5645 * util/grub-script-check.c: Better help message.
5646
d8dcc0df
BC
56472010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
5648
5649 Fix FreeBSD build.
5650
5651 * configure.ac: Flex version check.
5652 * conf/common.rmk: Add -Wno-error to sh.mod.
5653 * script/yylex.l: Remove all #pragma.
5654
6734334a
VS
56552010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 * include/grub/util/misc.h (canonicalise_file_name): Add missing
5658 prototype.
5659 Reported by: Seth Goldberg.
5660
daea6abd
VS
56612010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
5664 Rename "module" to "module2".
5665 Reported by: Seth Goldberg.
5666
f2fd9d2b
VS
56672010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
5670 EXPORT_FUNC.
5671 Reported by: Seth Goldberg.
5672
be124579
VS
56732010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * lib/posix_wrap/locale.h: Add missing file.
5676 Reported by: Seth Goldberg.
5677
ef5da797
VS
56782010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
5679
5680 grub-emu module load support.
5681
5682 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
5683 NO_DYNAMIC_MODULES switched to this.
5684 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
5685 (CFLAGS): Likewise.
5686 * conf/any-emu.rmk: Generate symlist.
5687 (kernel_img_HEADERS): Add util/datetime.h.
5688 (kernel_img_HEADERS) [sdl]: Add sdl.h.
5689 (kernel_img_HEADERS) [libusb]: Add libusb.h.
5690 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
5691 kern/$(target_cpu)/cache.S.
5692 * configure.ac (grub-emu-modules): New option.
5693 * genmk.rb: Handle multiple source lists.
5694 * include/grub/sdl.h: New file.
5695 * include/grub/libusb.h: Likewise.
5696 * util/grub-emu.c (main): Hanle (host) root.
5697 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
5698 GRUB_ERR_UNKNOWN_DEVICE.
5699 * util/misc.c: Move mm functions to ...
5700 * util/mm.c: ... here. All users updated.
5701
47822096
VS
57022010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
5705 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
5706 missing files.
5707 (maintainer-clean): Remove libgcrypt-grub.
5708
5d7e7445
VS
57092010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
5712
25f4e252
EC
57132010-04-09 EFI Coder <eficoder@hotmail.com>
5714
5715 * normal/menu_text.c (print_message): Clean up the message and show
5716 the Fn information when on EFI
5717 * term/efi/console.c (grub_console_checkkey): Add F4 support.
5718
027de555
VS
57192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
5722 All users updated.
5723 * normal/crypto.c (read_crypto_list): Likewise.
5724 * normal/dyncmd.c (read_command_list): Likewise.
5725 * normal/term.c (read_terminal_list): Likewise.
5726 * normal/main.c (read_lists): Use explicit prefix.
5727 (read_lists_hook): Use read_lists.
5728 (grub_normal_execute): Likewise.
5729
47779711
VS
57302010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
5733 Reported by: Thomas Schmitt.
5734 Add -no-emul-boot to grub-mkisofs parameters.
5735
1118c32e
VS
57362010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * font/font.c: Indented.
5739
7d652447
BC
57402010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
5741
5742 Elif support to GRUB script (by Deepak Vankadaru).
5743
5744 * tests/grub_script_if.in: New testcase.
5745 * conf/tests.rmk: Rule for new testcase.
5746 * script/parser.y: Grammar rules for elif.
5747
34bb22df
BC
57482010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
5749
5750 While and until loops support to GRUB script.
5751
5752 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
5753 (grub_script_create_cmdwhile): New function prototype.
5754 (grub_script_execute_cmdwhile): New function prototype.
5755 * script/execute.c (grub_script_execute_cmdwhile): New function.
5756 * script/parser.y (command): New commands.
5757 (whilecmd): New grammar rule.
5758 (untilcmd): New grammar rule.
5759 * script/script.c (grub_script_create_cmdwhile): New function.
5760 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
5761 function.
5762
5763 * tests/grub_script_while1.in: New testcase.
5764 * conf/tests.rmk: Rule for new testcase.
5765
e215d8e0
VS
57662010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
5769 as *.jpg.
5770
d7c43ba1
MV
57712010-04-09 Mario Vazquez <mariovazq@gmail.com>
5772
5773 GRUB_BACKGROUND support.
5774
5775 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
5776 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
5777
d64795c0
VS
57782010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5779
5780 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 5781 Idea by: Mario Vazquez
d64795c0
VS
5782
5783 * util/grub.d/00_header.in: Load pf2 and image modules.
5784
f267f83a
VS
57852010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5786
5787 grub-mkconfig multiple terminal support.
5788
5789 * util/grub-mkconfig.in: Handle multiple terminals correctly.
5790 * util/grub.d/00_header.in: Likewise.
5791
b7841ceb
VS
57922010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * Makefile.in: Specify files explicitly instead of using $< and $@ since
5795 we use cd $(srcdir).
5796
df60998c
CW
57972010-04-08 Colin Watson <cjwatson@ubuntu.com>
5798
5799 * util/grub.d/10_linux.in: Only use the first word of
5800 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
5801 spaces in GRUB_DISTRIBUTOR.
5802 * util/grub.d/10_kfreebsd.in: Likewise.
5803 * util/grub.d/10_hurd.in: Likewise.
5804
fa09c82e
BC
58052010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
5806
14e18ae3 5807 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
5808
5809 * tests/util/grub-shell.in: Remove -serial stdio option.
5810
daf892b3
BC
58112010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 POSIX header file wrappers.
5814
5815 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
5816 equivalents.
5817 * lib/posix_wrap/ctype.h: Likewise.
5818 * lib/posix_wrap/errno.h: Likewise.
5819 * lib/posix_wrap/langinfo.h: Likewise.
5820 * lib/posix_wrap/limits.h: Likewise.
5821 * lib/posix_wrap/localcharset.h: Likewise.
5822 * lib/posix_wrap/stdint.h: Likewise.
5823 * lib/posix_wrap/stdio.h: Likewise.
5824 * lib/posix_wrap/stdlib.h: Likewise.
5825 * lib/posix_wrap/string.h: Likewise.
5826 * lib/posix_wrap/sys/types.h: Likewise.
5827 * lib/posix_wrap/unistd.h: Likewise.
5828 * lib/posix_wrap/wchar.h: Likewise.
5829 * lib/posix_wrap/wctype.h: Likewise.
5830 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
5831 (grub_script.yy.h): Likewise.
5832 * script/yylex.l: Remove POSIX emulation #defines.
5833 * Makefile.in (POSIX_CFLAGS): New variable.
5834 (GNULIB_UTIL_CFLAGS): Likewise.
5835
5836 Regexp support.
5837
5838 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
5839 (regexp_mod_SOURCES): New variable.
5840 (regexp_mod_CFLAGS): Likewise.
5841 (regexp_mod_LDFLAGS): Likewise.
5842 * commands/regexp.c: New file.
5843 * gnulib/regcomp.c: New file. Imported from gnulib.
5844 * gnulib/regex.c: Likewise.
5845 * gnulib/regex_internal.c: Likewise.
5846 * gnulib/regex_internal.h: Likewise.
5847 * gnulib/regexec.c: Likewise.
5848 * gnulib/regex.h: Likewise.
5849
974ac4f7
VS
58502010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5851
5852 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
5853 unsupported video mode types.
5854
2622c3ff
VS
58552010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5856
5857 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
5858
064cb524
VS
58592010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
5862 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
5863
a8c3b552
VS
58642010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 Remove unused grub_vga_get_font.
5867
5868 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
5869 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
5870
187bbe3d
GS
58712010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5872
5873 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
5874 * include/grub/misc.h: Likewise.
5875
b9396631
GS
58762010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5877
5878 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
5879 for which failure is fatal.
5880
50479feb
GS
58812010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5882
5883 * util/grub-install.in: Use mkdir -p to create grub directory.
5884 * util/i386/efi/grub-install.in: Likewise.
5885 * util/ieee1275/grub-install.in: Likewise.
5886
b1654fdf
GS
58872010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5888
5889 * Makefile.in (LEX): new variable.
5890
bd5a6415
GS
58912010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
5892
5893 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
5894 `=' and added double quotes on operands of this equality test.
5895
3db3a82b
VS
58962010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5897
5898 * Makefile.in (uninstall): Remove a leftover debug echo.
5899 Reported by: Grégoire Sutre
5900
38023412
VS
59012010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 MIPS multiboot2 support.
5904
5905 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
5906 (multiboot2_mod_SOURCES): New variable.
5907 (multiboot2_mod_CFLAGS): Likewise.
5908 (multiboot2_mod_LDFLAGS): Likewise.
5909 (multiboot2_mod_ASFLAGS): Likewise.
5910 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
5911 definition.
5912 (MULTIBOOT_ENTRY_REGISTER): Likewise.
5913 (MULTIBOOT_MBI_REGISTER): Likewise.
5914 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
5915 (MULTIBOOT_ELF32_MACHINE): Likewise.
5916 (MULTIBOOT_ELF64_MACHINE): Likewise.
5917 * include/grub/mips/multiboot.h: New file.
5918 * include/grub/video.h (grub_video_driver_id): New type
5919 GRUB_VIDEO_DRIVER_SM712.
5920 (grub_video_get_info_and_fini): Export.
5921 (grub_video_get_palette): Likewise.
5922 (grub_video_get_driver_id): Likewise.
5923 * include/multiboot2.h: Resynced with spec.
5924 * loader/i386/multiboot.c: Moved from here ...
5925 * loader/multiboot.c: ... here. All users updated.
5926 (grub_multiboot_boot): Use platform-specific macros.
5927 * loader/i386/multiboot_elfxx.c: Moved from here ...
5928 * loader/multiboot_elfxx.c: ... here. All users updated.
5929 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
5930 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
5931 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
5932
47674667
VS
59332010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
5934
5935 Import gnulib argp module.
5936
5937 * gnulib/argp-ba.c: New file.
5938 * gnulib/argp-eexst.c: Likewise.
5939 * gnulib/argp-fmtstream.c: Likewise.
5940 * gnulib/argp-fmtstream.h: Likewise.
5941 * gnulib/argp-fs-xinl.c: Likewise.
5942 * gnulib/argp-help.c: Likewise.
5943 * gnulib/argp-namefrob.h: Likewise.
5944 * gnulib/argp-parse.c: Likewise.
5945 * gnulib/argp-pin.c: Likewise.
5946 * gnulib/argp-pv.c: Likewise.
5947 * gnulib/argp-pvh.c: Likewise.
5948 * gnulib/argp-version-etc.c: Likewise.
5949 * gnulib/argp-version-etc.h: Likewise.
5950 * gnulib/argp-xinl.c: Likewise.
5951 * gnulib/argp.h: Likewise.
5952
495442ed
VS
59532010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * kern/device.c (grub_device_iterate): Clear errors after failed
5956 opening device.
5957
f9fd65df
VS
59582010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
5961 returned by firmware.
5962
af09641e
VS
59632010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
5966 compilation on coreboot and qemu
5967
016883a5
VS
59682010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * include/multiboot2.h: Resync with spec.
5971
f97e1f7d
VS
59722010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 Multiboot2 tag support
5975
5976 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
5977 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
5978 Remove loader/multiboot_loader.c.
5979 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
5980 (grub_multiboot2_real_boot): Likewise.
5981 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
5982 (grub_get_multiboot_mmap_count): New proto.
5983 (grub_fill_multiboot_mmap): Likewise.
5984 (grub_multiboot_set_video_mode): Likewise.
5985 (grub_multiboot_set_console): Likewise.
5986 (grub_multiboot_load): Likewise.
5987 (grub_multiboot_load_elf): Likewise.
5988 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
5989 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
5990 * include/multiboot.h: Resynced with specification.
5991 * include/multiboot2.h: Resynced with specification.
5992 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
5993 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
5994 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
5995 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
5996 users updated.
5997 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
5998 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
5999 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
6000 Removed.
6001 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
6002 Moved from here...
6003 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
6004 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
6005 Moved from here...
6006 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
6007 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
6008 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
6009 All users updated.
6010 * loader/i386/multiboot_mbi2.c: New file.
6011
3506b90b
VS
60122010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 Resync with gnulib.
6015
6016 * Makefile.in (GNULIB_CFLAGS): New variable.
6017 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
6018 (grub_script_check_CFLAGS): New variable.
6019 * gnulib/alloca.h: Resync with gnulib.
6020 * gnulib/error.c: Likewise.
6021 * gnulib/error.h: Likewise.
6022 * gnulib/fnmatch.c: Likewise.
6023 * gnulib/fnmatch_loop.c: Likewise.
6024 * gnulib/getdelim.c: Likewise.
6025 * gnulib/getline.c: Likewise.
6026 * gnulib/getopt.c: Likewise.
6027 * gnulib/getopt1.c: Likewise.
6028 * gnulib/getopt_int.h: Likewise.
6029 * gnulib/gettext.h: Likewise.
6030 * gnulib/progname.c: Likewise.
6031 * gnulib/progname.h: Likewise.
6032
394a3120
GS
60332010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
6034
6035 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
6036 which is the case with --disabled-nls.
6037
6038 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
6039 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
6040 * util/misc.c: Likewise.
6041 * util/mkisofs/mkisofs.c: Likewise.
6042 * util/mkisofs/mkisofs.h: Likewise.
6043
969d1c78
VS
60442010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6045
6046 Simplify Apple CC support.
6047
6048 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
6049 Add 0 byte at the end not to have a symbol with empty target.
6050 * mmap/i386/pc/mmap_helper.S: Likewise.
6051 * genmk.rb: Ignore errors 2030 and 2050.
6052 * kern/i386/pc/startup.S: Use LOCAL when possible.
6053
8d2977bb
BC
60542010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
6055
6056 Testcase and the fix for final semicolon on cmdline.
6057
6058 * tests/grub_script_final_semicolon.in: New testcase.
6059 * conf/tests.rmk: Rules for the new testcase.
6060 * script/parser.y: Grammar fix.
6061
a7bd6915
BC
60622010-03-26 BVK Chaitanya <bvk@localhost>
6063
6064 Blank lines testcase for GRUB script.
6065
6066 * tests/grub_script_blanklines.in: New testcase.
6067 * conf/tests.rmk: Rules for the new testcase.
6068
e4ff6628
VS
60692010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 Don't use __FILE__.
6072
6073 * genmk.rb: Add -DGRUB_FILE to all C targets.
6074 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
6075 * include/grub/list.h: Likewise.
6076 * include/grub/misc.h: Likewise.
6077 * include/grub/mm.h: Likewise.
6078 * include/grub/test.h: Likewise.
6079 * kern/mm.c: Likewise.
6080 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
6081
6a5cf6b6
VS
60822010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 Sunpc partitions support.
6085
6086 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
6087 (grub_fstest_SOURCES): Likewise.
6088 (pkglib_MODULES): Add part_sunpc.mod.
6089 (part_sunpc_mod_SOURCES): New variable.
6090 (part_sunpc_mod_CFLAGS): Likewise.
6091 (part_sunpc_mod_LDFLAGS): Likewise.
6092 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
6093 * partmap/sunpc.c: New file.
6094
746d9045
BC
60952010-03-26 BVK Chaitanya <bvk@localhost>
6096
6097 For loop support to GRUB script.
6098
6099 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
6100 (grub_script_create_cmdfor): New function prototype.
6101 (grub_script_execute_cmdfor): New function prototype.
6102 * script/execute.c (grub_script_execute_cmdfor): New function.
6103 * script/parser.y (command): New for command.
6104 (forcmd): New grammar rule.
6105 * script/script.c (grub_script_create_cmdfor): New function.
6106 * util/grub-script-check.c (grub_script_execute_cmdfor): New
6107 function.
6108 * tests/grub_script_for1.in: New testcase.
6109 * conf/tests.rmk: Rules for new testcase.
6110
18486b18
VS
61112010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6112
6113 Nested partitions
6114
6115 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
6116 'partition' is NULL, grub_partition_get_start already does that.
6117 * commands/loadenv.c (check_blocklists): Likewise.
6118 (write_blocklists): Likewise.
6119 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
6120 (grub_fstest_SOURCES): Likewise.
6121 (pkglib_MODULES): Add part_bsd.mod.
6122 (part_bsd_mod_SOURCES): New variable.
6123 (part_bsd_mod_CFLAGS): Likewise.
6124 (part_bsd_mod_LDFLAGS): Likewise.
6125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
6126 (grub_emu_SOURCES): Likewise.
6127 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6128 * include/grub/bsdlabel.h: New file.
6129 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
6130 'get_name'.
6131 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
6132 (grub_partition_map_list): New variable.
6133 (grub_partition_map_register): Inline.
6134 (grub_partition_map_unregister): Likewise.
6135 (FOR_PARTITION_MAPS): New macro.
6136 (grub_partition_map_iterate): Removed.
6137 (grub_partition_get_start): Handle nested partitions.
6138 * include/grub/msdos_partition.h: Remove bsd-related entries.
6139 (grub_pc_partition): Remove.
6140 * kern/disk.c (grub_disk_close): Free partition data.
6141 (grub_disk_adjust_range): Handle nested partitions.
6142 * kern/partition.c (grub_partition_map_probe): New function.
6143 (grub_partition_probe): Parse name to number, handle subpartitions.
6144 (get_partmap): New function.
6145 (grub_partition_iterate): Handle subpartitions.
6146 (grub_partition_get_name): Likewise.
6147 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
6148 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
6149 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
6150 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
6151 Set 'number'.
6152 (acorn_partition_map_probe): Remove.
6153 (acorn_partition_map_get_name): Likewise.
6154 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
6155 Set 'number'.
6156 Set 'index' to 0 since there can be only one partition entry per sector.
6157 (amiga_partition_map_probe): Remove.
6158 (amiga_partition_map_get_name): Likewise.
6159 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
6160 Set 'number'.
6161 Set 'offset' and 'index' to real positions of partitions.
6162 (apple_partition_map_probe): Remove.
6163 (apple_partition_map_get_name): Likewise.
6164 * partmap/bsdlabel.c: New file.
6165 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
6166 Set 'number'.
6167 Allocate 'data' so it can be correctly freed.
6168 Set 'index' to offset inside sector.
6169 (gpt_partition_map_probe): Remove.
6170 (gpt_partition_map_get_name): Likewise.
6171 * partmap/msdos.c (grub_partition_parse): Remove.
6172 (pc_partition_map_iterate): Don't force raw access.
6173 Set 'number'.
6174 Make 'ext_offset' a local variable.
6175 (pc_partition_map_probe): Remove.
6176 (pc_partition_map_get_name): Remove.
6177 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
6178 Set 'number'.
6179 (sun_partition_map_probe): Remove.
6180 (sun_partition_map_get_name): Likewise.
6181 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
6182 (grub_pcpart_type): Likewise.
6183 * util/hostdisk.c (open_device): Handle new numbering scheme.
6184 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
6185 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
6186 * util/grub-probe.c (probe_partmap): Handle nested paritions.
6187 * util/grub-install.in: Insert all subpartition modules.
6188 * util/ieee1275/grub-install.in: Likewise.
6189
a3940f88
AG
61902010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
6191
6192 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
6193 grammar.
6194
21b99926 61952010-03-24 Colin Watson <cjwatson@ubuntu.com>
6196
6197 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
6198
bed1d352
CW
61992010-03-21 Colin Watson <cjwatson@ubuntu.com>
6200
6201 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
6202 match where 'make install' puts them.
6203 * util/i386/efi/grub-install.in: Likewise.
6204
c9f58427
CW
62052010-03-19 Colin Watson <cjwatson@ubuntu.com>
6206
6207 * .bzrignore: Add gentrigtables, grub-script-check,
6208 grub_script_check_init.c, grub_script_check_init.h, and
6209 trigtables.c.
6210
f84afb27
VS
62112010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
6212
6213 * kern/parser.c: Indented.
6214
ed0e3d30
VS
62152010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
6218
0ea81d98
VS
62192010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6220
6221 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
6222 alpha_mask_size == 0 case.
6223
0cdc2a09
BC
62242010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
6225
6226 GRUB shell lexer and parser improvements.
6227
6228 * conf/any-emu.rmk: Build rule updates.
6229 * conf/common.rmk: Likewise.
6230 * conf/i386-coreboot.rmk: Likewise.
6231 * conf/i386-efi.rmk: Likewise.
6232 * conf/i386-ieee1275.rmk: Likewise.
6233 * conf/i386-pc.rmk: Likewise.
6234 * conf/powerpc-ieee1275.rmk: Likewise.
6235 * conf/x86_64-efi.rmk: Likewise.
6236
6237 * configure.ac: Configure check for flex.
6238
6239 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
6240 types.
6241 (grub_lexer_param): Struct member updates.
6242 (grub_parser_param): Likewise.
6243 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
6244 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
6245 (grub_script_lexer_init): Prototype update.
6246 (grub_script_lexer_record_start): Likewise.
6247 (grub_script_lexer_record_stop): Likewise.
6248 (grub_script_lexer_yywrap): New function prototype.
6249 (grub_script_lexer_fini): Likewise.
6250 (grub_script_execute_argument_to_string): Removed by...
6251 (grub_script_execute_argument_to_argv): ...better version.
6252
6253 * script/execute.c (ROUND_UPTO): New macro.
6254 (grub_script_execute_cmdline): Out of memory fixes.
6255 (grub_script_execute_menuentry): Likewise.
6256 (grub_script_execute_argument_to_string): Removed. Update all
6257 users by...
6258 (grub_script_execute_argument_to_argv): ...better version.
6259 * script/function.c (grub_script_function_create): Use
6260 grub_script_execute_argument_to_argv instead of
6261 grub_script_execute_argument_to_string.
6262
6263 * script/lexer.c (check_varstate): Removed.
6264 (check_textstate): Removed.
6265 (grub_script_lexer_record_start): Likewise.
6266 (grub_script_lexer_record_stop): Likewise.
6267 (recordchar): Replaced with...
6268 (grub_script_lexer_record): ...new function.
6269 (nextchar): Removed.
6270 (grub_script_lexer_init): Rewritten.
6271 (grub_script_yylex): Rewritten.
6272 (append_newline): New function.
6273 (grub_script_lexer_yywrap): New function.
6274 (grub_script_lexer_fini): New function.
6275 (grub_script_yyerror): Sets error flag.
6276
6277 * script/yylex.l: New file.
6278 (grub_lexer_yyfree): Wrapper for flex yyffre.
6279 (grub_lexer_yyalloc): Likewise.
6280 (grub_lexer_yyrealloc): Likewise.
6281 * script/parser.y: Refactored.
6282
6283 * script/script.c (grub_script_arg_add): Out of memory fixes.
6284 (grub_script_add_arglist): Likewise.
6285 (grub_script_create_cmdline): Likewise.
6286 (grub_script_create_cmdmenu): Likewise.
6287 (grub_script_add_cmd): Likewise.
6288 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
6289 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
6290 unnecessary code.
6291
6292 * tests/grub_script_echo1.in: New testcase.
6293 * tests/grub_script_vars1.in: New testcase.
6294 * tests/grub_script_echo_keywords.in: New testcase.
6295
1d63a066
VS
62962010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 Remove some redundancy in build system.
6299
6300 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
6301 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
6302 (TARGET_LDFLAGS): Add -nostdlib.
6303 (TARGET_IMG_LDFLAGS): Likewise.
6304 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
6305 anything since mmap isn't available.
6306 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
6307 Add util/time.c.
6308 (pkglib_MODULES): Remove reboot.mod.
6309 (reboot_mod_SOURCES): Removed.
6310 (reboot_mod_CFLAGS): Likewise.
6311 (reboot_mod_LDFLAGS): Likewise.
6312 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
6313 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
6314 (DEFSYMFILES): Add kernel_syms.lst.
6315 (kernel_img_HEADERS): Add common headers.
6316 (symlist.c): New target.
6317 (kernel_syms.lst): Likewise.
6318 (pkglib_MODULES): Add memdisk.mod.
6319 (memdisk_mod_SOURCES): New variable.
6320 (memdisk_mod_CFLAGS): Likewise.
6321 (memdisk_mod_LDFLAGS): Likewise.
6322 (pkglib_MODULES): Add reboot.mod.
6323 (reboot_mod_SOURCES): New variable.
6324 (reboot_mod_CFLAGS): Likewise.
6325 (reboot_mod_LDFLAGS): Likewise.
6326 (pkglib_MODULES): Add date.mod.
6327 (date_mod_SOURCES): New variable.
6328 (date_mod_CFLAGS): Likewise.
6329 (date_mod_LDFLAGS): Likewise.
6330 (pkglib_MODULES): Add datehook.mod.
6331 (datehook_mod_SOURCES): New variable.
6332 (datehook_mod_CFLAGS): Likewise.
6333 (datehook_mod_LDFLAGS): Likewise.
6334 (pkglib_MODULES): Add lsmmap.mod.
6335 (lsmmap_mod_SOURCES): New variable.
6336 (lsmmap_mod_CFLAGS): Likewise.
6337 (lsmmap_mod_LDFLAGS): Likewise.
6338 (pkglib_MODULES): Add boot.mod.
6339 (boot_mod_SOURCES): New variable.
6340 (boot_mod_CFLAGS): Likewise.
6341 (boot_mod_LDFLAGS): Likewise.
6342 * conf/i386-coreboot.rmk: Removed redundant parts.
6343 * conf/i386-ieee1275.rmk: Likewise.
6344 * conf/i386-pc.rmk: Likewise.
6345 * conf/mips-yeeloong.rmk: Likewise.
6346 * conf/mips.rmk: Likewise.
6347 * conf/powerpc-ieee1275.rmk: Likewise.
6348 * conf/sparc64-ieee1275.rmk: Likewise.
6349 * conf/x86_64-efi.rmk: Likewise.
6350 * conf/i386-coreboot.rmk: Moved qemu parts ..
6351 * conf/i386-qemu.rmk: ... here
6352 * conf/i386-efi.rmk: Moved common parts to...
6353 * conf/x86-efi.rmk: ... here.
6354 * conf/i386.rmk: Added modules common to all x86 variants.
6355 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
6356 * disk/memdisk.c: Remove grub/machine/kernel.h.
6357 * gensymlist.sh.in: Include symbol.h.
6358 * hook/datehook.c: Correct module name.
6359 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
6360 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
6361 * include/grub/i386/efi/serial.h: New file.
6362 * include/grub/x86_64/efi/serial.h: Likewise.
6363 * util/time.c: Likewise.
6364 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
6365
463ac55f
CK
63662010-03-14 Colin King <colin.king@ubuntu.com>
63672010-03-14 Colin Watson <cjwatson@ubuntu.com>
6368
6369 Shrink the pre-partition-table part of boot.img by eight bytes.
6370
6371 * boot/i386/pc/boot.S (ERR): New macro.
6372 (chs_mode): Use ERR.
6373 (geometry_error): Likewise.
6374 (hd_probe_error): Remove. This is only used once, so we wrwite
6375 it inline instead.
6376 (read_error): Instead of printing read_error_string, just set up
6377 %si and fall through to ...
6378 (error_message): ... this new function, also used by ERR.
6379
08e46ede
CW
63802010-03-14 Colin Watson <cjwatson@ubuntu.com>
6381
6382 Speed up consecutive hostdisk operations on the same device.
6383
6384 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
6385 (grub_util_biosdisk_open): Initialise disk->data.
6386 (struct linux_partition_cache): New structure.
6387 (linux_find_partition): Cache partition start positions; these are
6388 expensive to compute on every read and write.
6389 (open_device): Cache open file descriptor in disk->data, so that we
6390 don't have to reopen it and flush the buffer cache for consecutive
6391 operations on the same device.
6392 (grub_util_biosdisk_close): New function.
6393 (grub_util_biosdisk_dev): Set `close' member.
6394
6395 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
6396 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
6397 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
6398 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
6399 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
6400
4a6d2d06
VS
64012010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
6402
6403 Compile parts of grub-emu as modules.
6404
6405 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
6406 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
6407 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
6408 (all-local): Add $(GRUB_EMU).
6409 (install-local): Install $(GRUB_EMU).
6410 (uninstall): Uninstall $(GRUB_EMU).
6411 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
6412 * kern/dl.c: Likewise.
6413 * commands/sleep.c: Not include machine/time.h.
6414 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
6415 (COMMON_CFLAGS): Likewise.
6416 (sbin_UTILITIES): Remove grub-emu.
6417 (grub_emu_SOURCES): Removed.
6418 (kernel_img_RELOCATABLE): New variable.
6419 (pkglib_PROGRAMS): Add kernel.img.
6420 (kernel_img_SOURCES): New variable
6421 (kernel_img_CFLAGS): Likewise.
6422 (kernel_img_LDFLAGS): Likewise.
6423 (TARGET_NO_STRIP): Likewise.
6424 (TARGET_NO_DYNAMIC_MODULES): Likewise.
6425 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
6426 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
6427 (grub-emu): New target.
6428 (GRUB_EMU): New variable.
6429 * configure.ac: Whitelist -emu as possible x86_64 architecture.
6430 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
6431 * loader/xnu.c: Likewise.
6432 * include/grub/pci.h: Likewise.
6433 * genemuinit.sh: New file.
6434 * genemuinitheader.sh: Likewise.
6435 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
6436 Support TARGET_NO_DYNAMIC_MODULES.
6437 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
6438 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
6439 * disk/loopback.c: Likewise.
6440 * font/font_cmd.c: Likewise.
6441 * partmap/acorn.c: Likewise.
6442 * partmap/amiga.c: Likewise.
6443 * partmap/apple.c: Likewise.
6444 * partmap/gpt.c: Likewise.
6445 * partmap/msdos.c: Likewise.
6446 * partmap/sun.c: Likewise.
6447 * parttool/msdospart.c: Likewise.
6448 * term/gfxterm.c: Likewise.
6449 * video/bitmap.c: Likewise.
6450 * video/readers/jpeg.c: Likewise.
6451 * video/readers/png.c: Likewise.
6452 * video/readers/tga.c: Likewise.
6453 * video/video.c: Likewise.
6454 * util/grub-emu.c (read_command_list): Removed.
6455 (main): Don't call util_init_nls.
6456 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
6457 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
6458
91fdd2ed
VS
64592010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
6462 date.mod, datehook.mod.
6463 (datetime_mod_SOURCES): New variable.
6464 (datetime_mod_CFLAGS): Likewise.
6465 (datetime_mod_LDFLAGS): Likewise.
6466 (date_mod_SOURCES): Likewise.
6467 (date_mod_CFLAGS): Likewise.
6468 (date_mod_LDFLAGS): Likewise.
6469 (datehook_mod_SOURCES): Likewise.
6470 (datehook_mod_CFLAGS): Likewise.
6471 (datehook_mod_LDFLAGS): Likewise.
6472 * conf/sparc64-ieee1275.rmk: Likewise.
6473 * lib/ieee1275/datetime.c: New file.
6474
873ccae6
VS
64752010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
6478 (ieee1275_fb_mod_SOURCES): New variable.
6479 (ieee1275_fb_mod_CFLAGS): Likewise.
6480 (ieee1275_fb_mod_LDFLAGS): Likewise.
6481 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
6482 New proto.
6483 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
6484 (HEAP_MAX_ADDR): Likewise.
6485 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
6486 type.
6487 Correct stop condition.
6488 (grub_ieee1275_devices_iterate): New function.
6489 * video/ieee1275.c: New file.
6490
601c97c0
VS
64912010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
6494
6495 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
6496 as scratch.
6497 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
6498 SCRATCH_PAD_DISKBOOT as scratch.
6499 (bootit): Pass Openfirmware pointer in %o4.
6500 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
6501 of 0x200000.
6502 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
6503 with util/grub-mkrawimage.c.
6504 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
6505 * include/grub/aout.h (AOUT_MID_SUN): New definition.
6506 (grub_aout_get_type) [GRUB_UTIL]: Removed.
6507 (grub_aout_load) [GRUB_UTIL]: Likewise.
6508 * include/grub/kernel.h (grub_modules_get_end): New proto.
6509 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
6510 (SCRATCH_PAD_BOOT): New definition.
6511 (SCRATCH_PAD_DISKBOOT): Likewise.
6512 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
6513 * include/grub/sparc64/ieee1275/ieee1275.h
6514 (grub_ieee1275_original_stack): New variable
6515 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
6516 New definition
6517 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
6518 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
6519 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
6520 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
6521 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
6522 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
6523 (grub_platform_image_format_t): New type.
6524 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
6525 * kern/main.c (grub_modules_get_end)
6526 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
6527 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
6528 (codestart): Switch stacks.
6529 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
6530 variable.
6531 (grub_heap_init): Use grub_modules_get_end.
6532 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
6533 stack.
6534 * util/grub-mkrawimage.c (generate_image): Support sparc64.
6535 (main): Likewise.
6536 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
6537
d68b491e
TG
65382010-03-14 Thorsten Glaser <tg@mirbsd.org>
6539
6540 * util/grub-mkrescue.in: Base ISO UUID on UTC.
6541
4e02ed50
MK
65422010-03-08 Matt Kraai <kraai@ftbfs.org>
6543
6544 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
6545 bug #559005).
6546
1f15fc1e
VS
65472010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * genmoddep.awk: Output all missing symbols and not only first.
6550
fce5d8ff
VS
65512010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6552
6553 * NEWS: Put the date of 1.98 release.
6554
d1e8a02f
VS
65552010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
6558 ft2build.h.
6559
696fd607
VS
65602010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
6563 completition in the middle of string.
6564
33e2e6f3
VS
65652010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6566
6567 * util/grub-mkrescue.in: Use mktemp with explicit template.
6568
b1f6d291
VS
65692010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
6572
2ac227c7
VS
65732010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
6576 right pointer.
6577
8f9a632b
VS
65782010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 Fix FreeBSD compilation.
6581
6582 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
6583 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
6584
60b03859
VS
65852010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
6588
48a5a769
VS
65892010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
6592
3ab4bd77
VS
65932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
6596
d116e0d8
RM
65972010-03-04 Robert Millan <rmh.grub@aybabtu.com>
6598
6599 Support relative image path in theme file.
6600
6601 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
6602 (image_set_property): Handle theme_dir and relative path.
6603
c7ef54aa
VS
66042010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * configure.ac: Alias amd64 to x86_64.
6607
fcee14ed
VS
66082010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * NEWS: mention multiboot on EFI.
6611
d0780363
VS
66122010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * kern/main.c (grub_load_modules): Handle errors from init functions of
6615 embeded modules.
6616
41168ea4
VS
66172010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * normal/autofs.c (autoload_fs_module): Handle errors.
6620
b54d93ac
VS
66212010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 Disable linux.mod on qemu-mips since it's not functional and leads
6624 to compilation failure.
6625
6626 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
6627 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
6628 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
6629 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
6630 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
6631 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
6632 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
6633 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
6634 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
6635 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
6636 Reported by: BVK Chaitanya
6637
fc8345da
JU
66382010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
6639
6640 * INSTALL: Add gettext as a dependency and add qemu to a new section
6641 "Prerequisites for make-check".
6642
4760f979
CF
66432010-03-04 Christian Franke <franke@computer.org>
6644
6645 * util/grub-pe2elf.c: Add missing include "progname.h".
6646
f209b5b2
VS
66472010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * normal/crypto.c (read_crypto_list): Fix a typo.
6650 Reported by: Seth Goldberg.
6651
b4b7be98
VS
66522010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 6655 Reported by: Seth Goldberg.
b4b7be98 6656
c0ee0385
VS
66572010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6658
6659 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
6660 ascii.bitmaps.
6661
a8efbf64
VS
66622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 6665 Reported by: Seth Goldberg.
a8efbf64 6666
08dcd913
VS
66672010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * util/i386/efi/grub-install.in: Copy gettext files.
6670
c4d0b332
VS
66712010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
6674
c6f2fe52
VS
66752010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 Wait for user entry basing on presence of output rather than on errors.
6678
6679 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
6680 (grub_install_newline_hook): Likewise.
6681 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
6682 * normal/menu.c (show_menu): Check line_counter to determine presence
6683 of output.
6684 * normal/term.c (grub_normal_line_counter): New variable.
6685 (grub_normal_get_line_counter): New function.
6686 (grub_install_newline_hook): Likewise.
6687
5382b1e4
VS
66882010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
6691
5519963b
VS
66922010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 * configure.ac: Update version to 1.98.
6695
72b28631
VS
66962010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6697
6698 * util/grub.d/10_linux.in (linux_entry): Don't default to
6699 gfxpayload=keep if Linux doesn't support video handover.
6700
c140a180
VS
67012010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 Don't compile video modules on yeeloong since video subsystem is part
6704 of kernel.
6705
6706 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
6707 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
6708 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
6709 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
6710 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
6711 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
6712 * include/grub/bitmap_scale.h: Likewise.
6713 * include/grub/bufio.h: Likewise.
6714 * include/grub/font.h: Likewise.
6715 * include/grub/gfxterm.h: Likewise.
6716 * include/grub/video.h: Likewise.
6717 * include/grub/vbe.h: Don't include video_fb.h.
6718 * video/i386/pc/vbe.c: Include video_fb.h.
6719 * commands/i386/pc/vbetest.c: Include video.h.
6720
a0ca21c2
CW
67212010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
6722
6723 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
6724 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
6725 default entry if GRUB_SAVEDEFAULT=true. This allows using
6726 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
6727 saving a new default on every boot.
6728
4a8a763c
VS
67292010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * normal/crypto.c (read_crypto_list): Fix a memory leak.
6732 * normal/term.c (read_terminal_list): Likewise.
6733 * normal/main.c (grub_normal_init_page): Likewise.
6734 (grub_normal_read_line_real): Likewise.
6735
607ffde2
VS
67362010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
6739 memory leak.
6740 Reported by: Seth Goldberg.
6741
2b8fa975
CW
67422010-02-24 Joey Korkames <joey+lists@kidfixit.com>
6743
6744 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
6745 duplicate declaration of `start'.
6746
618307dd
VS
67472010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
6748
6749 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
6750 filename.
6751 Reported by: Georgy Buranov
6752
7dd05b96 67532010-02-20 Carles Pina i Estany <carles@pina.cat>
6754
6755 * util/grub-mkrawimage.c (usage): Change string formatting to
6756 improve gettext.
6757
d1484a42
MRA
67582010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
6759
6760 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
6761 backspace keys.
6762
42b1d186
VS
67632010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
6766 Reported by: Michael Suchanek.
6767
67682010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
6769
6770 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
6771 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
6772
d9f31a41
VS
67732010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
6774
6775 Remove any reference to non-free fonts.
6776
6777 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
6778 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
6779 uses non-free components.
6780 * font/font.c (grub_font_get_name): Remove example name.
6781 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
6782 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
6783 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
6784 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
6785
2793c71e
GB
67862010-02-16 Georgy Buranov <gburanov@gmail.com>
6787
6788 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
6789
402e3779
VS
67902010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
6793 Double divisor.
6794 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
6795 features.
6796 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
6797
0dd1e0dd
VS
67982010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 * gensymlist.sh.in: Use TARGET_CC instead of CC.
6801
6fa7cfce
ST
68022010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6803
6804 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
6805 * docs/grub.texi (Command-line and menu entry commands): Document play
6806 command.
6807
37c8483b
ST
68082010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6809
6810 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
6811 parse arguments as inline tempo and notes. Move code for playing notes
6812 to...
6813 (play): ... new function.
6814
14da0fb7
ST
68152010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6816
6817 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
6818 grub_uint16_t instead of short.
6819 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
6820 disk from little endian to cpu endianness.
6821
04459e70
ST
68222010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6823
6824 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
6825 GRUB_TICKS_PER_SECOND instead of 120.
6826
a0876943
VS
68272010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
6830 escape sequence after \e.
6831
e29f95dc
VS
68322010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6833
6834 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
6835 non-ASCII characters.
6836
d27859b2
VS
68372010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
6840 set root in single quotes to prevent \, from being unescaped.
6841
bc028f2f
VS
68422010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 Prevent unknown commands from stopping menuentry execution.
6845
6846 * script/execute.c (grub_script_execute_cmdline): Print error after
6847 unknown command.
6848
095f5f82
VS
68492010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
6852 Reported by: Pavel Pisa.
6853
8c717950
VS
68542010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
6857
904935c3
VS
68582010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 Merge grub_ieee1275_map_physical into grub_map and rename to
6861 grub_ieee1275_map
6862
6863 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
6864 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
6865 Remove.
6866 * kern/ieee1275/openfw.c (grub_map): Rename to ...
6867 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
6868 necessary.
6869 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
6870
5b59a4e3
VS
68712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
6874 opening and not after.
6875
69e137e8
VS
68762010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
6879 constants.
6880
2c0fcc36
VS
68812010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
6884 (alloc_phys): Use ALIGN_UP instead of align_addr.
6885
8c6052ce
VS
68862010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
6889
17cec782
VS
68902010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6891
6892 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
6893
e0128bbd
VS
68942010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
6897 verbose dprintf.
6898
ca62070b
VS
68992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 Fix over-4GiB seek on sparc64.
6902
6903 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
6904 Replace pos_i and pos_lo with pos. All users updated.
6905 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
6906 New constant.
6907 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
6908 Likewise.
6909 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
6910 and pos_lo.
6911
bdca2607
VS
69122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 * util/grub-mkrawimage.c (main): Call set_program_name.
6915
da278c4d
VS
69162010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 Properly align 64-bit targets.
6919
6920 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
6921 (generate_image): Use ALIGN_ADDR.
6922
b274d734
VS
69232010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6924
6925 Properly create cross-endian images.
6926
6927 * include/grub/types.h (grub_host_to_target_addr): New macro
6928 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
6929
82da2062
VS
69302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
6933
7cae4377
VS
69342010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
6937
6938 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
6939 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
6940 (grub_linux_boot): Divide by 64K when on VESA.
6941
65a533e7
VS
69422010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 Support GRUB_GFXPAYLOAD_LINUX.
6945
6946 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
6947 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
6948
dd01d397
VS
69492010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
6952 to show messages instead of discarding them.
6953 Process errors after executing command and not before. Keep old method
6954 too as precaution.
6955
660960d6
VS
69562010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * configure.ac: Check for ft2build.h.
6959
62509f04
VS
69602010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
6963
473df63d
VS
69642010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * genkernsyms.sh.in: Use TARGET_CC.
6967
c98d2a13
CW
69682010-02-07 Colin Watson <cjwatson@ubuntu.com>
6969
6970 * NEWS: Update.
6971
6e14234c
VS
69722010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6973
6974 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
6975 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
6976 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 6977
b255e9cf
YB
69782010-02-07 Yves Blusseau <blusseau@zetam.org>
6979
6e14234c 6980 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 6981
98e6959d
VS
69822010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 Fix warnings in grub-emu when compiling with maximum warning options.
6985
6986 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
6987 (grub_arch_modules_addr): Return 0 and not NULL.
6988 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 6989 (xstrdup): Use newstr instead of dup.
f88d801b
VS
6990 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
6991 of disk to dsk to avoid shadowing.
74e4934e
VS
6992 (find_free_slot): Fix prototype.
6993 * util/getroot.c (grub_util_is_dmraid): Make static.
6994 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
6995 Add missing prototype.
6996 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 6997
74e31b5c
VS
69982010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 * loader/i386/linux.c (grub_linux_setup_video): Handle error
7001 appropriately.
7002
6b2ad14b
VS
70032010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
7006 code out.
7007
8f891adc
VS
70082010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
7011 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
7012 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
7013 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
7014 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
7015 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
7016
74b45184
VS
70172010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7018
7019 * include/grub/err.h (grub_err_printf): Don't export.
7020
a4bced77
VS
70212010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7022
7023 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
7024
007d0695
VS
70252010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7026
7027 * include/grub/i18n.h (grub_gettext_dummy): Removed.
7028 * kern/misc.c (grub_gettext_dummy): Make static.
7029
b6c0d9c2
VS
70302010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7031
7032 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
7033 by non-valid ones.
7034 * kern/term.c (grub_putchar): Likewise.
7035
f51a90d0
VS
70362010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7037
7038 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
7039 buggy hook call and memory leak.
7040
6846cec5
VS
70412010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7042
7043 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
7044
468d69fe
VS
70452010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
7048
51906b8c
VS
70492010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7050
7051 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
7052 modevar.
7053 Return grub_errno on allocation error.
7054
09706ce5
VS
70552010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
7058
911df80c
YB
70592010-02-06 Yves Blusseau <blusseau@zetam.org>
7060
7061 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
7062 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
7063
3746a6bc
VS
70642010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
7067 non-pxe disk.
7068 (grub_pxefs_open): Likewise.
7069
09706ce5
VS
70702010-02-06 Robert Millan <rmh.grub@aybabtu.com>
7071
7072 * util/grub.d/10_hurd.in: Add --class information to menuentries.
7073 * util/grub.d/10_kfreebsd.in: Likewise.
7074 * util/grub.d/10_linux.in: Likewise.
7075
7cc192d9
VS
70762010-02-06 Colin D Bennett <colin@gibibit.com>
7077
7078 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
7079 (gfxmenu_mod_SOURCES): New variable.
7080 (gfxmenu_mod_CFLAGS): Likewise.
7081 (gfxmenu_mod_LDFLAGS): Likewise.
7082 * include/grub/term.h (grub_term_set_current_output): Declare
7083 argument as const.
7084 * docs/gfxmenu-theme-example.txt: New file.
7085 * gfxmenu/gfxmenu.c: Likewise.
7086 * gfxmenu/gui_box.c: Likewise.
7087 * gfxmenu/gui_canvas.c: Likewise.
7088 * gfxmenu/gui_circular_progress.c: Likewise.
7089 * gfxmenu/gui_image.c: Likewise.
7090 * gfxmenu/gui_label.c: Likewise.
7091 * gfxmenu/gui_list.c: Likewise.
7092 * gfxmenu/gui_progress_bar.c: Likewise.
7093 * gfxmenu/gui_string_util.c: Likewise.
7094 * gfxmenu/gui_util.c: Likewise.
7095 * gfxmenu/icon_manager.c: Likewise.
7096 * gfxmenu/model.c: Likewise.
7097 * gfxmenu/named_colors.c: Likewise.
7098 * gfxmenu/theme_loader.c: Likewise.
7099 * gfxmenu/view.c: Likewise.
7100 * gfxmenu/widget-box.c: Likewise.
7101 * include/grub/gfxmenu_model.h: Likewise.
7102 * include/grub/gfxmenu_view.h: Likewise.
7103 * include/grub/gfxwidgets.h: Likewise.
7104 * include/grub/gui.h: Likewise.
7105 * include/grub/gui_string_util.h: Likewise.
7106 * include/grub/icon_manager.h: Likewise.
7107
71082010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 Agglomerate scrolling in gfxterm.
7111
7112 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
7113 (grub_virtual_screen_setup): Initialise 'total_screen'.
7114 (write_char): Split to ...
7115 (paint_char): ... this ...
7116 (write_char): ... and this.
7117 (paint_char): Handle delayed scrolling.
7118 (draw_cursor): Likewise.
7119 (scroll_up): Split to ...
7120 (real_scroll): ... this ...
7121 (scroll_up): ... and this.
7122 (real_scroll): Handle multi-line scroll and draw below-the-bottom
7123 characters.
7124 (grub_gfxterm_refresh): Call real_scroll.
7125
71262010-02-06 Colin D Bennett <colin@gibibit.com>
7127
7128 * include/grub/misc.h (grub_iscntrl): New inline function.
7129 (grub_isalnum): Likewise.
7130 (grub_strtol): Likewise.
7131
71322010-02-06 Colin D Bennett <colin@gibibit.com>
7133
7134 * normal/menu_text.c (get_entry_number): Move from here ...
7135 * normal/menu.c (get_entry_number): ... moved here.
7136 * include/grub/menu.h (grub_menu_get_default_entry_index):
7137 New prototype.
7138 * normal/menu.c (grub_menu_get_default_entry_index): New function.
7139 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
7140 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
7141 (grub_menu_viewer_should_return): Likewise.
7142 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
7143 * normal/menu_text.c (run_menu): Enable menu switching.
7144 * normal/menu_viewer.c (should_return): New variable.
7145 (menu_viewer_changed): Likewise.
7146 (grub_menu_viewer_show_menu): Handle menu viewer changes.
7147 (grub_menu_viewer_should_return): New function.
7148 (menuviewer_write_hook): Likewise.
7149 (grub_menu_viewer_init): Likewise.
7150
71512010-02-06 Colin D Bennet <colin@gibibit.com>
71522010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7153
7154 Support for gfxterm in a window.
7155
7156 * include/grub/gfxterm.h: New file.
7157 * include/grub/video.h (struct grub_video_rect): New declaration.
7158 (grub_video_rect_t): Likewise.
7159 * term/gfxterm.c (struct grub_gfxterm_window): New type.
7160 (refcount): New variable.
7161 (render_target): Likewise.
7162 (window): Likewise.
7163 (repaint_callback): Likewise.
7164 (grub_virtual_screen_setup): Use 'render_target'.
7165 (init_window): New function.
7166 (grub_gfxterm_init_window): Likewise.
7167 (grub_gfxterm_init): Check reference counter.
7168 Use init_window.
7169 (destroy_window): New function.
7170 (grub_gfxterm_destroy_window): Likewise.
7171 (grub_gfxterm_fini): Check reference counter.
7172 Use destroy_window.
7173 (redraw_screen_rect): Restore viewport.
7174 Use 'render_target' and 'window'.
7175 Call 'repaint_callback'.
7176 (write_char): Use 'render_target'.
7177 (draw_cursor): Likewise.
7178 (scroll_up): Restore viewport.
7179 Use 'render_target' and 'window'.
7180 Call 'repaint_callback'.
7181 (grub_gfxterm_cls): Likewise.
7182 (grub_gfxterm_refresh): Use 'window'.
7183 (grub_gfxterm_set_repaint_callback): New function.
7184 (grub_gfxterm_background_image_cmd): Use 'window'.
7185 (grub_gfxterm_get_term): New function.
7186 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
7187
71882010-02-06 Colin D Bennett <colin@gibibit.com>
7189
7190 Bitmap scaling support.
7191
7192 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
7193 (bitmap_scale_mod_SOURCES): New variable.
7194 (bitmap_scale_mod_CFLAGS): Likewise.
7195 (bitmap_scale_mod_LDFLAGS): Likewise.
7196 * include/grub/bitmap_scale.h: New file.
7197 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
7198 (background_image_cmd_options): New variable.
7199 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
7200 (cmd): Rename and change type to ...
7201 (background_image_cmd_handle): ... this. All users updated.
7202 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
7203 * video/bitmap_scale.c: New file.
7204
72052010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 SDL support.
7208
7209 * Makefile.in (LIBSDL): New variable.
7210 (enable_grub_emu_sdl): Likewise.
7211 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
7212 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
7213 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
7214 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
7215 * util/sdl.c: New file.
7216
72172010-02-06 Colin D Bennett <colin@gibibit.com>
72182010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 Double buffering support.
7221
7222 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
7223 * include/grub/video.h: Update comment.
7224 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
7225 New type.
7226 (grub_video_fb_doublebuf_blit_init): New prototype.
7227 * term/gfxterm.c (scroll_up): Support double buffering.
7228 (grub_gfxterm_refresh): Likewise.
7229 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
7230 (grub_video_fb_doublebuf_blit_init): Likewise.
7231 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
7232 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
7233 'displayed_page', 'render_page' and 'update_screen'.
7234 (grub_video_vbe_fini): Free offscreen buffer.
7235 (doublebuf_pageflipping_commit): New function.
7236 (doublebuf_pageflipping_update_screen): Likewise.
7237 (doublebuf_pageflipping_init): Likewise.
7238 (double_buffering_init): Likewise.
7239 (grub_video_vbe_setup): Enable doublebuffering.
7240 (grub_video_vbe_swap_buffers): Implement.
7241 (grub_video_vbe_set_active_render_target): Handle double buffering.
7242 (grub_video_vbe_get_active_render_target): Likewise.
7243 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
7244 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
7245 (grub_video_vbe_enable_double_buffering): Likewise.
7246 (grub_video_vbe_swap_buffers): Use update_screen.
7247 (grub_video_set_mode): Use double buffering.
7248
72492010-02-06 Robert Millan <rmh.grub@aybabtu.com>
7250
7251 * maintainance/gentrigtables.py: Remove.
7252 * lib/trig.c: Likewise.
7253
7254 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
7255
7256 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
7257 `trigtables.c'.
7258 (trigtables.c): New rule.
7259 (gentrigtables): Likewise.
7260 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
7261
72622010-02-06 Robert Millan <rmh.grub@aybabtu.com>
7263
7264 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
7265 integer constants.
7266
72672010-02-06 Colin D Bennet <colin@gibibit.com>
7268
7269 Trigonometry support.
7270
7271 * include/grub/trig.h: New file.
7272 * lib/trig.c: Likewise.
7273 * maintainance/gentrigtables.py: Likewise.
7274 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
7275 (trig_mod_SOURCES): New variable.
7276 (trig_mod_CFLAGS): Likewise.
7277 (trig_mod_LDFLAGS): Likewise.
7278
5562834e
VS
72792010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7280
7281 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
7282 disk devices.
7283
4f8528fc
VS
72842010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7285
7286 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
7287 error.
7288
2b4068e9
VS
72892010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 * util/hostdisk.c (open_device): Don't use partition device when reading
7292 before the partition.
7293 (grub_util_biosdisk_read): Don't read from partition and before the
7294 partition in single operation.
7295 (grub_util_biosdisk_write): Don't write to partition and before the
7296 partition in single operation.
7297
399f6e4d
TL
72982010-02-03 Torsten Landschoff <torsten@debian.org>
7299
7300 * kern/disk.c (grub_disk_read): Fix offset computation when reading
7301 last sectors.
7302
996649b0
VS
73032010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7304
7305 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
7306 CDROM reads.
7307 (grub_biosdisk_write): Refuse to write to CDROM.
7308
3b205d4d
VS
73092010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
7312
61e89d9d
VS
73132010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * font/font.c (find_glyph): Check that bmp_idx is available before
7316 using it.
7317 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
7318 with (font == NULL).
7319
bf7fcba2
CS
73202010-01-28 Christian Schmitt <chris@ilovelinux.de>
7321
7322 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
7323
f45d2663
BC
73242010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
7325
7326 * include/grub/script_sh.h (sourcecode): Add const qualifier.
7327 * util/grub-script-check.c (getline): Fix empty lines case.
7328
ec1444e6
RM
73292010-01-28 Robert Millan <rmh.grub@aybabtu.com>
7330
7331 * Makefile.in (check): Exit with fail status when one of the tests
7332 fails.
7333 * tests/example_functional_test.c (example_test): Fix reversed assert.
7334 * tests/example_unit_test.c (example_test): Likewise.
7335
2e1cb9bb
CW
73362010-01-28 Colin Watson <cjwatson@ubuntu.com>
7337
7338 * util/grub.d/10_linux.in: This script does not use any of the
7339 contents of gettext.sh, only the external command `gettext', so stop
7340 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
7341 the same prefix as GRUB.)
7342 * util/grub.d/10_kfreebsd.in: Likewise.
7343
63533ab0
VS
73442010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
7347 of the line.
7348
989e1f93
VS
73492010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * kern/disk.c (grub_disk_read): Fix offset computation when reading
7352 last sectors.
7353
e709ebe2
VS
73542010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
7357 having a 4KiB and not 32KiB buffer size.
7358
27dea7ed
RM
73592010-01-27 Robert Millan <rmh.grub@aybabtu.com>
7360
7361 * util/hostfs.c: Include `<errno.h>'.
7362 (grub_hostfs_read): Handle errors from fseeko() and fread().
7363
67667b9c
RM
73642010-01-27 Robert Millan <rmh.grub@aybabtu.com>
7365
7366 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
7367 loop when using read hooks on files whose size isn't sector-aligned.
7368
c294d9d8
RM
73692010-01-27 Robert Millan <rmh.grub@aybabtu.com>
7370
7371 Remove unused parameter.
7372
7373 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
7374 (grub_iso9660_open): Remove initialization of `data->length'.
7375
af75a9f1
RM
73762010-01-27 Robert Millan <rmh.grub@aybabtu.com>
7377
7378 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
7379 memleak conditions.
7380
254e2ce5 73812010-01-27 Carles Pina i Estany <carles@pina.cat>
7382
7383 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
7384 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
7385
b510928c 73862010-01-26 Carles Pina i Estany <carles@pina.cat>
7387
7388 * util/bin2h.c (usage): Fix warning (space after backslash).
7389
aa2f9dd2 73902010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 7391
7392 * font/font.c: Include `grub/fontformat.h.
7393 Remove font file format constants.
7394 (grub_font_load): Use the new macros.
7395 * include/grub/fontformat.h: New file.
7396 * util/grub-mkfont.c: Include `grub/fontformat.c'.
7397 (write_font_pf2): Use the new macros.
7398
94e7e712
RM
73992010-01-26 Robert Millan <rmh.grub@aybabtu.com>
7400
7401 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
7402 does.
7403
3973a59a
RM
74042010-01-26 Robert Millan <rmh.grub@aybabtu.com>
7405
7406 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
7407
7408 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
7409 (_start): Macroify `0x7F'.
7410
7411 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
7412 (make_install_device): Use "(pxe)" as fallback prefix when booting
7413 via PXE.
7414
42e0cba3
GS
74152010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 * configure.ac: Reset LIBS after check for libgcc symbols.
7418
847effd8
CW
74192010-01-25 Colin Watson <cjwatson@ubuntu.com>
7420
7421 * util/hostdisk.c (open_device): Add trailing newline to debug
7422 message.
7423
ea4a7e35
GS
74242010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
7425
7426 * configure.ac: Check for `limits.h'.
7427 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
7428
67951a53
RM
74292010-01-24 Robert Millan <rmh.grub@aybabtu.com>
7430
7431 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
7432 capitalize error strings.
7433
c273d4ce
ST
74342010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
7435
7436 * util/grub.d/10_hurd.in: Add a recovery mode.
7437
69be5b74
VS
74382010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 * configure.ac: Check for libgcc symbols with -nostdlib.
7441
fc9e5810
BC
74422010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
7443
7444 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
7445
4b358c0a
VS
74462010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7447
7448 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
7449 stack since heap may be unavailable at that point.
7450 (grub_ofconsole_gotoxy): Likewise.
7451
454fcd1c
VS
74522010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7453
7454 * configure.ac: Check for _restgpr_14_x.
7455 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
7456 and _savegpr_* prototypes.
7457
566863ca
RM
74582010-01-22 Robert Millan <rmh.grub@aybabtu.com>
7459
7460 Use generic grub_reboot() for i386-efi.
7461
7462 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
7463 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
7464 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
7465
bf86e59a
VS
74662010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
7469 presence of "prefix" variable as it breaks when normal.mod is
7470 embedded.
7471
d645e0f8
VS
74722010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
7475 stack since heap is unavailable at that point.
7476
f9ab2e25
VS
74772010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
7480 (grub_freebsd_bootinfo): Rewritten.
7481 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
7482
01fc7054
VS
74832010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
7486
caab4fd6
RM
74872010-01-21 Robert Millan <rmh.grub@aybabtu.com>
7488
7489 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
7490 domain now.
7491
67eb1427
FZ
74922010-01-20 Felix Zielcke <fzielcke@z-51.de>
7493
7494 * util/misc.c (make_system_path_relative_to_its_root): Change the work
7495 around for handling "/" to the correct fix. Fix a memory leak. Use
7496 xstrdup instead of strdup.
7497
a9ed4ff3
VS
74982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7499
7500 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
7501
75022010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
7503
7504 Optimise glyph lookup by Basic Multilingual Plane lookup array.
7505
7506 * font/font.c (struct grub_font): New member 'bmp_idx'.
7507 (font_init): Initialise 'bmp_idx'.
7508 (load_font_index): Fill 'bmp_idx'.
7509 (find_glyph): Make inline. Use bmp_idx for BMP characters.
7510
48209f4f
VS
75112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7512
7513 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
7514 unnecessary calls.
7515
9f0a4bb7
VS
75162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7517
7518 Move context handling out of the kernel.
7519
7520 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
7521 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
7522 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
7523 * conf/i386-efi.rmk: Likewise.
7524 * conf/i386-ieee1275.rmk: Likewise.
7525 * conf/i386-pc.rmk: Likewise.
7526 * conf/powerpc-ieee1275.rmk: Likewise.
7527 * conf/sparc64-ieee1275.rmk: Likewise.
7528 * conf/x86_64-efi.rmk: Likewise.
7529 * include/grub/env.h: Include grub/menu.h.
7530 (grub_env_var_type): Removed.
7531 (grub_env_var): Replaced field 'type' with 'global'.
7532 (grub_env_find): New prototype.
7533 (grub_env_context_open): Remove EXPORT_FUNC.
7534 (grub_env_context_close): Likewise.
7535 (grub_env_export): Likewise.
7536 (grub_env_set_data_slot): Removed.
7537 (grub_env_get_data_slot): Likewise.
7538 (grub_env_unset_data_slot): Likewise.
7539 (grub_env_unset_menu): New prototype.
7540 (grub_env_set_menu): Likewise.
7541 (grub_env_get_menu): Likewise.
7542 * include/grub/env_private.h: New file.
7543 * include/grub/normal.h (grub_context_init): New prototype.
7544 (grub_context_fini): Likewise.
7545 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
7546 * normal/context.c (grub_cmd_export): ... to here.
7547 * kern/env.c: Include env_private.h.
7548 (HASHSZ): Moved to include/grub/env_private.h.
7549 (grub_env_context): Likewise.
7550 (grub_env_sorted_var): Likewise.
7551 (current_context): Renamed from this ...
7552 (grub_current_context): ...to this. 'static' removed. All users updated.
7553 (grub_env_find): Removed 'static'.
7554 (grub_env_context_open): Moved to normal/context.c.
7555 (grub_env_context_close): Likewise.
7556 (grub_env_export): Likewise.
7557 (mangle_data_slot_name): Removed.
7558 (grub_env_set_data_slot): Likewise.
7559 (grub_env_get_data_slot): Likewise.
7560 (grub_env_unset_data_slot): Likewise.
7561 * kern/main.c (grub_set_root_dev): Don't export root.
7562 It will be done later.
7563 (grub_main): Don't export prefix.
7564 It will be done later.
7565 * normal/context.c: New file.
7566 * normal/main.c (free_menu): Use grub_env_unset_menu.
7567 (grub_normal_add_menu_entry): Use grub_env_get_menu.
7568 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
7569 (GRUB_MOD_INIT(normal)): Call grub_context_init.
7570 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
7571
8dd35b8c
VS
75722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7573
7574 setpci support.
7575
7576 * commands/setpci.c: New file.
7577 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
7578 (setpci_mod_SOURCES): New variable.
7579 (setpci_mod_CFLAGS): Likewise.
7580 (setpci_mod_LDFLAGS): Likewise.
7581
449193d5
VS
75822010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7583
7584 Byte-addressable PCI configuration space.
7585
7586 * bus/pci.c (grub_pci_make_address): Use byte address instead of
7587 dword address.
7588 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
7589 GRUB_PCI_REG_CACHELINE.
7590 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
7591 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
7592 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
7593 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
7594 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
7595 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
7596 grub_pci_make_address.
7597 (lock_rom_area): Likewise.
7598 * commands/lspci.c (grub_lspci_iter): Use macroses
7599 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
7600 of grub_pci_make_address.
7601 * disk/ata.c (grub_ata_pciinit): Likewise.
7602 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
7603 (GRUB_PCI_REG_VENDOR): Likewise.
7604 (GRUB_PCI_REG_DEVICE): Likewise.
7605 (GRUB_PCI_REG_COMMAND): Likewise.
7606 (GRUB_PCI_REG_STATUS): Likewise.
7607 (GRUB_PCI_REG_REVISION): Likewise.
7608 (GRUB_PCI_REG_CLASS): Likewise.
7609 (GRUB_PCI_REG_CACHELINE): Likewise.
7610 (GRUB_PCI_REG_LAT_TIMER): Likewise.
7611 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
7612 (GRUB_PCI_REG_BIST): Likewise.
7613 (GRUB_PCI_REG_ADDRESSES): Likewise.
7614 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7615 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7616 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7617 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7618 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7619 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
7620 (GRUB_PCI_REG_CIS_POINTER): Likewise.
7621 (GRUB_PCI_REG_SUBVENDOR): Likewise.
7622 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
7623 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
7624 (GRUB_PCI_REG_CAP_POINTER): Likewise.
7625 (GRUB_PCI_REG_IRQ_LINE): Likewise.
7626 (GRUB_PCI_REG_IRQ_PIN): Likewise.
7627 (GRUB_PCI_REG_MIN_GNT): Likewise.
7628 (GRUB_PCI_REG_MAX_LAT): Likewise.
7629 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
7630 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
7631 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 7632 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
7633 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
7634 space.
7635
96d73208
RM
76362010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7637
7638 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
7639 can be reliably determined to be supported.
7640
d4484482
RM
76412010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7642
7643 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
7644 that VESA is supported.
7645 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
7646 supported.
7647
00308ecf
VS
76482010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7649
7650 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
7651
f66924a4
RM
76522010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7653
7654 * util/misc.c (make_system_path_relative_to_its_root): Work around
7655 special-casing of "/", as previous incarnation of this routine did.
7656
cbca0ada
VS
76572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7658
7659 Fix any-emu compilation.
7660
7661 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
7662 * grub_bin2h_SOURCES: New variable.
7663
34a66d99
RM
76642010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7665
7666 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
7667
94fabf58
RM
76682010-01-20 Robert Millan <rmh.grub@aybabtu.com>
7669
7670 * util/grub.d/00_header.in: Fix handling of locale_dir.
7671
02cf98ca
VS
76722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
7675 as possible unifont location (Gentoo).
7676 Reported by: Alexander Brüning
7677
327dbcd7
VS
76782010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 Don't try to generate lists for kernel.img.
7681
7682 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
7683 (pkglib_MODULES): Remove kernel.img.
7684 (kernel_img_EXPORTS): Removed.
7685 (kernel_img_RELOCATABLE): New variable.
7686 * conf/x86_64-efi.rmk: Likewise.
7687 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
7688
ca467290
VS
76892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
7692 grub_xasprintf or grub_snprintf.
7693 (grub_vsprintf): Likewise.
7694 (grub_snprintf): New proto.
7695 (grub_vsnprintf): Likewise.
7696 (grub_xasprintf): Likewise.
7697 (grub_xvasprintf): Likewise.
7698 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
7699 (grub_sprintf): Removed.
7700 (grub_vsnprintf): New function.
7701 (grub_snprintf): Likewise.
7702 (grub_xvasprintf): Likewise.
7703 (grub_xasprintf): Likewise.
7704 (grub_vsprintf): Renamed to ...
7705 (grub_vsnprintf_real): ...this. New argument max_len.
7706
aca655fd
BC
77072010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
7708
7709 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
7710 fix grub-script-check warning.
7711
7ee92c32
VS
77122010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 * include/grub/font.h (grub_font_load): Fix prototype.
7715
f80927ca
VS
77162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
7719
119c50ea
VS
77202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * include/grub/x86_64/at_keyboard.h: New file.
7723
47d5f3c1
VS
77242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * loader/mips/linux.c: Include missing grub/i18n.h.
7727
55ff5266
RM
77282009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7729
7730 * normal/menu.c (notify_execution_failure): Clarify error message.
7731
c893cc87
RM
77322009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7733
7734 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
7735 return value (and revert all return statements). Update users.
7736
917dd370
CW
77372010-01-20 Dan Merillat <debian@dan.merillat.org>
7738
7739 * kern/device.c (grub_device_iterate): Allocate new part_ent
7740 structure based on sizeof (*p) rather than sizeof (p->next), to
7741 account for structure padding.
7742
7743 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
7744 disk is NULL, which might happen for LVM physical volumes with no
7745 LVM signature.
7746
d4a4ee57
RM
77472009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7748
7749 * loader/mips/linux.c (grub_cmd_initrd)
7750 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
7751
77522009-12-20 Robert Millan <rmh.grub@aybabtu.com>
7753
7754 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
7755 (grub_video_video_init, grub_video_bitmap_init)
7756 (grub_font_manager_init, grub_term_gfxterm_init)
7757 (grub_at_keyboard_init): New extern declarations.
7758 (grub_machine_init): Initialize gfxterm and at_keyboard.
7759
7760 * kern/main.c (grub_main): Revert grub_printf delay kludge.
7761
7762 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
7763 `gfxterm.mod' into core image.
7764
7765 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
7766 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
7767 (kernel_img_FORMAT): Copy to ...
7768
7769 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
7770 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
7771 (kernel_img_FORMAT): ... here, and ...
7772
7773 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
7774 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
7775 (kernel_img_FORMAT): ... here.
7776
7777 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
7778 and input (at_keyboard) terminals in kernel.
7779 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
7780
7781 (pkglib_MODULES): Remove `pci.mod'.
7782 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
7783 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
7784 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
7785 (at_keyboard_mod_LDFLAGS): Remove variables.
7786
77872010-01-11 Felix Zielcke <fzielcke@z-51.de>
7788
7789 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
7790
77912009-12-10 Robert Millan <rmh.grub@aybabtu.com>
7792
7793 * include/grub/mips/libgcc.h: Only export symbols for functions
7794 that libgcc provides.
7795
77962009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
7797
7798 MIPS support.
7799
7800 * bus/bonito.c: New file.
7801 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
7802 GRUB_PCI_NUM_DEVICES.
7803 * term/i386/pc/serial.c: Move to ...
7804 * term/serial.c: ... here. All users updated.
7805 * util/i386/pc/grub-mkimage.c: Move to ...
7806 * util/grub-mkrawimage.c: ... here. All users updated.
7807 * term/i386/pc/at_keyboard.c: Move to ...
7808 * term/at_keyboard.c: ... here. All users updated.
7809 * conf/mips-qemu-mips.rmk: New file.
7810 * conf/mips-yeeloong.rmk: Likewise.
7811 * conf/mips.rmk: Likewise.
7812 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
7813 mipsel-qemu-mips.
7814 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
7815 to port addresses.
7816 (grub_ata_pciinit): Support CS5536.
7817 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
7818 * font/font_cmd.c (loadfont_command): Open file before passing it to
7819 grub_font_load.
7820 (pseudo_file_read): New function.
7821 (pseudo_file_close): Likewise.
7822 (pseudo_fs): New structure.
7823 (load_font_module): New function.
7824 (GRUB_MOD_INIT(font_manager)): Load embedded font.
7825 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
7826 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
7827 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
7828 * include/grub/i386/at_keyboard.h: Split into ...
7829 * include/grub/at_keyboard.h: ... this ...
7830 * include/grub/i386/at_keyboard.h: ... and this.
7831 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
7832 New prototype.
7833 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
7834 updated.
7835 (grub_elf64_size): Likewise.
7836 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
7837 filename.
7838 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
7839 * include/grub/i386/coreboot/serial.h: Rewritten.
7840 * include/grub/i386/ieee1275/serial.h: Include
7841 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
7842 * include/grub/i386/pc/serial.h: Moved from here ...
7843 * include/grub/serial.h: ... to here. All users updated.
7844 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
7845 (GRUB_PCI_NUM_BUS): Likewise.
7846 (GRUB_PCI_NUM_DEVICES): Likewise.
7847 (grub_pci_device_map_range): Add missing volatile keyword.
7848 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
7849 * include/grub/mips/at_keyboard.h: New file.
7850 * include/grub/mips/cache.h: Likewise.
7851 * include/grub/mips/io.h: Likewise.
7852 * include/grub/mips/kernel.h: Likewise.
7853 * include/grub/mips/libgcc.h: Likewise.
7854 * include/grub/mips/pci.h: Likewise.
7855 * include/grub/mips/qemu-mips/boot.h: Likewise.
7856 * include/grub/mips/qemu-mips/kernel.h: Likewise.
7857 * include/grub/mips/qemu-mips/loader.h: Likewise.
7858 * include/grub/mips/qemu-mips/memory.h: Likewise.
7859 * include/grub/mips/qemu-mips/serial.h: Likewise.
7860 * include/grub/mips/qemu-mips/time.h: Likewise.
7861 * include/grub/mips/relocator.h: Likewise.
7862 * include/grub/mips/time.h: Likewise.
7863 * include/grub/mips/types.h: Likewise.
7864 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
7865 * include/grub/mips/yeeloong/boot.h: Likewise.
7866 * include/grub/mips/yeeloong/kernel.h: Likewise.
7867 * include/grub/mips/yeeloong/loader.h: Likewise.
7868 * include/grub/mips/yeeloong/memory.h: Likewise.
7869 * include/grub/mips/yeeloong/pci.h: Likewise.
7870 * include/grub/mips/yeeloong/serial.h: Likewise.
7871 * include/grub/mips/yeeloong/time.h: Likewise.
7872 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
7873 * kern/elf.c (grub_elf32_size): New parameter. All users
7874 updated.
7875 (grub_elf64_size): Likewise.
7876 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
7877 Load modules before saying "Welcome to GRUB!".
7878 Call grub_refresh after saying "Welcome to GRUB!".
7879 * kern/mips/cache.S: New file.
7880 * kern/mips/cache_flush.S: Likewise.
7881 * kern/mips/dl.c: Likewise.
7882 * kern/mips/init.c: Likewise.
7883 * kern/mips/qemu-mips/init.c: Likewise.
7884 * kern/mips/startup.S: Likewise.
7885 * kern/mips/yeeloong/init.c: Likewise.
7886 * kern/term.c (grub_putcode): Handle NULL terminal.
7887 (grub_getcharwidth): Likewise.
7888 (grub_getkey): Likewise.
7889 (grub_checkkey): Likewise.
7890 (grub_getkeystatus): Likewise.
7891 (grub_getxy): Likewise.
7892 (grub_getwh): Likewise.
7893 (grub_gotoxy): Likewise.
7894 (grub_cls): Likewise.
7895 (grub_setcolorstate): Likewise.
7896 (grub_setcolor): Likewise.
7897 (grub_getcolor): Likewise.
7898 (grub_refresh): Likewise.
7899 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
7900 (write_jump): Add hatch nop.
7901 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
7902 * lib/mips/setjmp.S: New file.
7903 * loader/mips/linux.c: Likewise.
7904 * term/i386/pc/at_keyboard.c: Move from here ...
7905 * term/at_keyboard.c: ... to here.
7906 * term/i386/pc/serial.c: Moved from here ...
7907 * term/serial.c: ... to here. All users updated.
7908 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
7909 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
7910 (serial_translate_key_sequence): Avoid deadlock.
7911 (grub_serial_getkey): Handle backspace.
7912 (grub_serial_putchar): Fix newline handling.
7913 * util/i386/pc/grub-mkimage.c: Move from here ...
7914 * util/grub-mkrawimage.c: ... to here. All users updated.
7915 (generate_image): New parameters 'font_path' and 'format'.
7916 Support embedding font.
7917 Use grub_host_to_target* instead of grub_cpu_to_le*.
7918 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
7919 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
7920 (options): New option "--font".
7921 (usage): Likewise.
7922 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
7923 (main): Handle "--font".
7924 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
7925 (grub_virtual_screen_setup): Set bg_color_display.
7926 (redraw_screen_rect): Use bg_color_display instead of incorrect
7927 bg_color.
7928 (grub_gfxterm_cls): Likewise.
7929 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
7930 Support embedding config file.
7931 (add_segments): Likewise.
7932 (options): New option "--config".
7933 (main): Handle "--config".
7934 * video/sm712.c: New file.
7935
25c2b5b3
RM
79362010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7937
7938 Fix parallel builds.
7939
7940 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
7941 font.c depend on ascii.h).
7942
79432010-01-12 Carles Pina i Estany <carles@pina.cat>
7944
7945 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
7946
79472010-01-11 Carles Pina i Estany <carles@pina.cat>
7948
7949 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
7950 By default: disabled.
7951 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
7952 parameter.
7953
79542010-01-10 Carles Pina i Estany <carles@pina.cat>
7955
7956 * font/font.c: Update copyright years.
7957 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
7958
79592010-01-10 Carles Pina i Estany <carles@pina.cat>
7960
7961 * font/font.c: Include `ascii.h'.
7962 (ASCII_BITMAP_SIZE): New macro.
7963 (ascii_font_glyph): Define.
7964 (ascii_glyph_lookup): New function.
7965 (grub_font_get_string_width): Change comment. If glyph not found, use
7966 ascii_glyph_lookup.
7967 (grub_font_get_glyph_with_fallback): If glyph not available returns
7968 ascii_glyph_lookup.
7969 * util/grub-mkfont.c (file_formats): New enum.
7970 (options): Add `ascii-bitmaps' new option.
7971 (usage): Add `asii-bitmaps' new option.
7972 (write_font_ascii_bitmap): New function.
7973 (write_font): Rename to ...
7974 (write_font_p2): ... this. Remove print_glyphs call.
7975 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
7976 used. Call print_glyphs.
7977 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
7978
79792010-01-14 Robert Millan <rmh.grub@aybabtu.com>
7980
7981 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
7982 (grub_bin2h_SOURCES): New variable.
7983 * util/bin2h.c: New file.
7984
915fc1b8
VS
79852010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 * include/multiboot.h: Resynced with spec.
7988 * include/multiboot2.h: Likewise.
7989 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
7990 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
7991
9444b678
RM
79922010-01-18 Robert Millan <rmh.grub@aybabtu.com>
7993
7994 * include/grub/term.h (grub_term_register_input,
7995 grub_term_register_output): Check return of terminal init()
7996 routines, and abort if errors are raised.
7997
7998 * commands/terminal.c: Update copyright year.
7999
cba98e8d
RM
80002010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8001
8002 * commands/terminal.c (grub_cmd_terminal_input)
8003 (grub_cmd_terminal_output): Check return of terminal init()
8004 routines, and abort if errors are raised.
8005
6f7db5d6
VS
80062010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8007
8008 * include/grub/i386/bsd.h: Fix include pathes.
8009
262bff8d
VS
80102010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 Add missing *BSD copyright headers.
8013
8014 * include/grub/aout.h: Add BSD licence.
8015 * include/grub/i386/bsd.h: Parts under different licences moved to ...
8016 * include/grub/i386/freebsd_linker.h: ... here,
8017 * include/grub/i386/freebsd_reboot.h: ... here,
8018 * include/grub/i386/netbsd_bootinfo.h: ... here,
8019 * include/grub/i386/netbsd_reboot.h: ... here,
8020 * include/grub/i386/openbsd_bootarg.h: ... here,
8021 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
8022 licence to each file.
8023
b2cab848
RM
80242010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8025
8026 * acinclude.m4: Remove `nop' assembly instruction; it's not
8027 implemented by all architectures.
8028
2cb6be4b
RM
80292010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8030
8031 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
8032 ELILO. This is no longer necessary.
8033
a2eaee15
BC
80342010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
8035
8036 Added new tool, grub-scrit-check to verify grub.cfg syntax.
8037
8038 * util/grub-script-check.c: grub-script-check tool.
8039 * conf/common.rmk: Make rules for grub-script-check.
8040
88d17012
RM
80412010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8042
8043 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
8044 spotting it back in 2008. Shame on me for forgetting he did.
8045
8046 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
8047
8040619d
RM
80482010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8049
8050 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
8051 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
8052 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
8053 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
8054 (GRUB_VIDEO_TYPE_EFI): Rename to ...
8055 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
8056
a0c2a0f6
RM
80572010-01-17 Robert Millan <rmh.grub@aybabtu.com>
8058
8059 * include/grub/test.h: Add license header.
8060 * tests/example_functional_test.c: Likewise.
8061 * tests/example_unit_test.c: Likewise.
8062 * tests/lib/functional_test.c: Likewise.
8063 * tests/lib/test.c: Likewise.
8064 * tests/lib/unit_test.c: Likewise.
8065
b0b13907
VS
80662010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8067
8068 Use flag-based instead of hook-based video mode selection and "auto"
8069 keyword.
8070
8071 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
8072 (grub_video_set_mode): Changed prototype. All users updated.
8073 (grub_video_check_mode_flag): New inline function.
8074 * video/video.c (parse_modespec): New function.
8075 (grub_video_set_mode): Parse flags and keywords.
8076
ea379330 80772010-01-17 Carles Pina i Estany <carles@pina.cat>
8078
8079 * util/misc.c (grub_util_info): Fix the order of the parameters in a
8080 fprintf call.
8081
e15c215e
FZ
80822010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
8083
8084 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
8085
409ae1c9 80862010-01-16 Carles Pina i Estany <carles@pina.cat>
8087
8088 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
8089 string.
8090 * util/grub-emu.c (usage): Likewise.
8091 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
8092 * util/i386/efi/grub-mkimage.c (usage): Likewise.
8093 * util/i386/pc/grub-mkimage.c (usage): Likewise.
8094 * util/i386/pc/grub-setup.c (usage): Likewise.
8095
70a14d3d 80962010-01-16 Carles Pina i Estany <carles@pina.cat>
8097
8098 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
8099 the message.
8100 (grub_util_info): Likewise.
8101 (grub_util_error): Likewise.
8102 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
8103 and/or new lines in `grub_util_warna', `grub_util_info',
8104 `grub_util_error' calls.
8105 * util/getroot.c: Likewise.
8106 * util/grub-editenv.c: Likewise.
8107 * util/grub-emu.c: Likewise.
8108 * util/grub-fstest.c: Likewise.
8109 * util/grub-mkdevicemap.c: Likewise.
8110 * util/grub-mkfont.c: Likewise.
8111 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8112 * util/grub-mkrelpath.c: Likewise.
8113 * util/grub-pe2elf.c: Likewise.
8114 * util/grub-probe.c: Likewise.
8115 * util/hostdisk.c: Likewise.
8116 * util/i386/efi/grub-mkimage.c: Likewise.
8117 * util/i386/pc/grub-mkimage.c: Likewise.
8118 * util/i386/pc/grub-setup.c: Likewise.
8119 * util/ieee1275/ofpath.c: Likewise.
8120 * util/mkisofs/eltorito.c: Likewise.
8121 * util/mkisofs/rock.c: Likewise.
8122 * util/mkisofs/write.c: Likewise.
8123 * util/raid.c: Likewise.
8124 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
8125 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8126
a0b766fc
VS
81272010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 Enable multiboot on non-pc.
8130
8131 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
8132 multiboot.mod and multiboot2.mod to ...
8133 * conf/i386.rmk (pkglib_MODULES): ... here.
8134 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
8135 Moved to ...
8136 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
8137 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
8138 Moved to ...
8139 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
8140 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
8141 Moved to ...
8142 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
8143 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
8144 Moved to ...
8145 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
8146 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
8147 relocator.mod.
8148 (ata_mod_SOURCES): Removed.
8149 (ata_mod_CFLAGS): Likewise.
8150 (ata_mod_LDFLAGS): Likewise.
8151 (relocator_mod_SOURCES): Removed.
8152 (relocator_mod_CFLAGS): Likewise.
8153 (relocator_mod_ASFLAGS): Likewise.
8154 (relocator_mod_LDFLAGS): Likewise.
8155 Include i386.mk.
8156 * include/grub/x86_64/multiboot.h: New file.
8157 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
8158 Terminate EFI.
8159
884ade56
VS
81602010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8161
8162 Video multiboot support.
8163
8164 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
8165 New prototype.
8166 * include/multiboot.h: Resynced with multiboot specification.
8167 * include/multiboot2.h: Likewise.
8168 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
8169 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
8170 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
8171 (HAS_VGA_TEXT): Likewise.
8172 (accepts_video): New variable.
8173 (grub_multiboot_set_accepts_video): New function.
8174 (grub_multiboot_get_mbi_size): Account for video structures.
8175 (set_video_mode): New function.
8176 (retrieve_video_parameters): Likewise.
8177 (grub_multiboot_make_mbi): Fill video fields.
8178
0d90e8a6
VS
81792010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8180
8181 Video driver ids.
8182
8183 * include/grub/video.h (grub_video_driver_id): New type.
8184 (grub_video_adapter): New member 'id'. All users updated.
8185 (grub_video_get_driver_id): New proto.
8186 * video/video.c (grub_video_get_driver_id): New function.
8187
5c71db1b 81882010-01-14 Carles Pina i Estany <carles@pina.cat>
8189
8190 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
8191 `var=val'.
8192
cca15b52 81932010-01-14 Carles Pina i Estany <carles@pina.cat>
8194
8195 * normal/cmdline.c (print_completion): Gettextizze.
8196
c586fbb2 81972001-01-14 Carles Pina i Estany <carles@pina.cat>
8198
8199 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
8200
ba2f6848 82012010-01-14 Carles Pina i Estany <carles@pina.cat>
8202
8203 * gettext/gettext.c (grub_gettext_translate): Push and pop
8204 grub_errno.
8205 (grub_gettext_delete_list): Change comment style.
8206 * kern/err.c (grub_error): Gettextizze.
8207 (grub_fatal): Gettextizze.
8208
0a46429a
RM
82092010-01-14 Robert Millan <rmh.grub@aybabtu.com>
8210
8211 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
8212 (grub_linux16_real_boot): ... this.
8213 * kern/i386/loader.S: Likewise.
8214 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
8215 (grub_linux16_boot): New function. Switches to text mode and calls
8216 grub_linux16_real_boot().
8217
8218 * loader/i386/bsd.c: Include `<grub/video.h>'.
8219 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
8220 text mode before calling grub_unix_real_boot().
8221
8222 * loader/i386/multiboot.c: Include `<grub/video.h>'.
8223 (grub_multiboot_boot): Switch to text mode before calling
8224 grub_relocator32_boot().
8225
8226 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
8227 (grub_chainloader_boot): Switch to text mode before calling
8228 grub_chainloader_real_boot().
8229
d6f93a66
RM
82302010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
82312010-01-05 Colin Watson <cjwatson@ubuntu.com>
8232
8233 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
8234 non-empty value.
8235
82362010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
82372010-01-05 Colin Watson <cjwatson@ubuntu.com>
8238
8239 * util/grub.d/00_header.in: Define a "savedefault" function for use
8240 in menu entries.
8241 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
8242
82432010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
82442010-01-05 Colin Watson <cjwatson@ubuntu.com>
8245
8246 * util/grub-mkconfig_lib.in (save_default_entry): Only set
8247 saved_entry if boot_once is unset.
8248 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
8249 previous saved entry (i.e. grub-reboot).
8250
82512009-12-08 Colin Watson <cjwatson@ubuntu.com>
8252
8253 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
8254
82552009-12-08 Colin Watson <cjwatson@ubuntu.com>
8256
8257 * util/grub.d/00_header.in: Use `set var=val' rather than plain
8258 `var=val'.
8259 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
8260
82612009-12-08 Colin Watson <cjwatson@ubuntu.com>
8262
8263 * util/grub-reboot.in: Fix --version output.
8264 * util/grub-set-default.in: Likewise.
8265
82662009-12-08 Colin Watson <cjwatson@ubuntu.com>
8267
8268 * util/grub.d/00_header.in: Silently ignore zero-sized environment
8269 blocks.
8270
82712009-12-08 Colin Watson <cjwatson@ubuntu.com>
8272
8273 * util/grub.d/00_header.in: Quote the value assigned to `default',
8274 in case it contains spaces.
8275
82762009-12-08 Colin Watson <cjwatson@ubuntu.com>
8277
8278 * util/grub.d/30_os-prober.in: Fix merge error that moved a
8279 `save_default_entry' call from the macosx case to the linux case.
8280
82812009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
82822009-10-25 Colin Watson <cjwatson@ubuntu.com>
8283
8284 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
8285 in `chosen' environment variable.
8286 * normal/menu_text.c (get_entry_number): Check if the variable
8287 matches the title of a menu entry.
8288 (run_menu): Pass menu to get_entry_number.
8289
8290 * util/grub-reboot.in: New file.
8291 * util/grub-set-default.in: New file.
8292 * conf/common.rmk (grub-reboot): New utility.
8293 (grub-set-default): New utility.
8294
8295 * util/grub-mkconfig_lib.in (save_default_entry): New function.
8296 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
8297 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
8298 move it to `saved_entry' for the next boot. Load environment on
8299 initialisation.
8300 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
8301 * util/grub.d/10_hurd.in: Likewise.
8302 * util/grub.d/10_linux.in (linux_entry): Likewise.
8303 * util/grub.d/10_windows.in: Likewise.
8304 * util/grub.d/30_os-prober.in: Likewise.
8305
8306 * util/grub-install.in: Create environment block.
8307 * util/i386/efi/grub-install.in: Likewise.
8308 * util/ieee1275/grub-install.in: Likewise.
8309 * util/sparc64/ieee1275/grub-install.in: Likewise.
8310
0934d184
BC
83112010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
8312
8313 Unit testing framework for GRUB.
8314
8315 * Makefile.in: Test framework build rules for 'make check'.
8316 * conf/tests.rmk: Build rules for individual tests and framework.
8317
8318 * include/grub/test.h: Header file for whitebox tests.
8319 * tests/lib/functional_test.c: Framework support for whitebox
8320 functional tests.
8321 * tests/lib/test.c: Common whitebox testing code for unit and
8322 functional tests.
8323 * tests/lib/unit_test.c: Framework support for whitebox unit
8324 tests.
8325
8326 * tests/util/grub-shell-tester.in: Support utility for grub-script
8327 tests.
8328 * tests/util/grub-shell.in: Utility to execute grub-script
8329 commands in a Qemu instance.
8330
8331 * tests/example_functional_test.c: Example whitebox functional
8332 test.
8333 * tests/example_grub_script_test.in: Example grub-script test.
8334 * tests/example_scripted_test.in: Example scripted test.
8335 * tests/example_unit_test.c: Example whitebox unit test.
8336
9c4ffeeb
VS
83372010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8338
8339 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
8340 Add loader/i386/multiboot_mbi.c.
8341 (multiboot2_mod_SOURCES): Likewise.
8342 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
8343 (multiboot2_mod_SOURCES): Likewise.
8344 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
8345 (grub_multiboot_make_mbi): Likewise.
8346 (grub_multiboot_free_mbi): Likewise.
8347 (grub_multiboot_init_mbi): Likewise.
8348 (grub_multiboot_add_module): Likewise.
8349 (grub_multiboot_set_bootdev): Likewise.
8350 * loader/i386/multiboot.c (mbi): Removed.
8351 (mbi_dest): Likewise.
8352 (alloc_mbi): New variable.
8353 (grub_multiboot_payload_size): Removed. All users updated.
8354 (grub_multiboot_pure_size): New variable.
8355 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
8356 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
8357 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
8358 (grub_fill_multiboot_mmap): Likewise.
8359 (grub_multiboot_get_bootdev): Likewise.
8360 (grub_multiboot): Use multiboot_mbi functions.
8361 * loader/i386/multiboot_mbi.c: New file.
8362
17383dfe
VS
83632010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8364
8365 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
8366 it would result in module crash.
8367
c1f28820
VS
83682010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
8371 (grub_ofconsole_getwh): Split to ...
8372 (grub_ofconsole_getwh): ... this.
8373 (grub_ofconsole_dimensions): ...and this.
8374 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
8375
58655a16
RM
83762010-01-13 Robert Millan <rmh.grub@aybabtu.com>
8377
8378 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
8379
10891398
VS
83802010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8381
8382 * loader/i386/pc/multiboot2.c: Removed stalled file.
8383
0b8a223c
VS
83842010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8385
8386 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
8387 Reported by: Grégoire Sutre
8388
92ab12b0
RM
83892010-01-11 Robert Millan <rmh.grub@aybabtu.com>
8390
8391 * util/misc.c (canonicalize_file_name): New function.
8392 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
8393 instead of realpath().
8394
a788afb6
CW
83952010-01-11 Colin Watson <cjwatson@ubuntu.com>
8396
8397 * util/grub-install.in (usage): Clarify meaning of --root-directory,
8398 and make it clearer that it's optional. Based on confusion
8399 witnessed on IRC.
8400
ffa8e3d2
VS
84012010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8402
8403 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
8404 in premature implicit newline.
8405
e9060a9d
VS
84062010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8407
8408 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
8409 which resulted in garbled command line at the end of screen.
8410
f0d0c0b7
RM
84112010-01-10 Robert Millan <rmh.grub@aybabtu.com>
8412
8413 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
8414 initialization with similar approach as with other Linux loaders.
8415
0e60bae7
RM
84162010-01-10 Robert Millan <rmh.grub@aybabtu.com>
8417
8418 Fix i386-ieee1275 build.
8419
8420 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
8421 and grub_term_height() for video_{width,height} initialization.
8422
84232010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
8424
8425 Fix grub-emu build.
8426
8427 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
8428
cdb3f378
RM
84292010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
84302010-01-09 Robert Millan <rmh.grub@aybabtu.com>
8431
8432 Support for multiple terminals.
8433
8434 * Makefile.in (pkglib_DATA): terminal.lst.
8435 (terminal.lst): New target.
8436 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
8437 (GRUB_MOD_INIT(handler)): Likewise.
8438 (GRUB_MOD_FINI(handler)): Likewise.
8439 * commands/help.c (grub_cmd_help): Handle multiple terminals.
8440 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
8441 * commands/sleep.c (do_print): Use grub_term_restore_pos.
8442 (grub_cmd_sleep): Use grub_term_save_pos.
8443 * commands/terminal.c: New file.
8444 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
8445 commands/terminal.c and lib/charset.c.
8446 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
8447 (pkglib_MODULES): Add terminal.mod.
8448 (terminal_mod_SOURCES): New variable.
8449 (terminal_mod_CFLAGS): Likewise.
8450 (terminal_mod_LDFLAGS): Likewise.
8451 * genhandlerlist.sh: Don't handle terminals.
8452 * genmk.rb: Generate terminal-*.lst.
8453 * genterminallist.sh: New file.
8454 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
8455 (grub_is_valid_utf8): Likewise.
8456 (grub_utf8_to_ucs4_alloc): Likewise.
8457 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
8458 (grub_menu_register_viewer): Changed argument.
8459 (grub_menu_try_text): New proto.
8460 (grub_gfxmenu_try_hook): New declaration.
8461 * include/grub/normal.h (grub_normal_exit_level): New declaration.
8462 (grub_menu_init_page): Additional argument term.
8463 (grub_normal_init_page): Likewise.
8464 (grub_cmdline_get): Arguments simplified.
8465 (grub_utf8_to_ucs4_alloc): Removed.
8466 (grub_print_ucs4): Additional argument term.
8467 (grub_getstringwidth): Likewise.
8468 (grub_print_message_indented): Likewise.
8469 (grub_menu_text_register_instances): New proto.
8470 (grub_show_menu): Likewise.
8471 (read_terminal_list): Likewise.
8472 (grub_set_more): Likewise.
8473 * include/grub/parser.h: Include handler.h.
8474 * include/grub/reader.h: Rewritten.
8475 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
8476 (GRUB_TERM_WIDTH): Changed to function.
8477 (GRUB_TERM_HEIGHT): Likewise.
8478 (GRUB_TERM_BORDER_WIDTH): Likewise.
8479 (GRUB_TERM_BORDER_HEIGHT): Likewise.
8480 (GRUB_TERM_NUM_ENTRIES): Likewise.
8481 (GRUB_TERM_ENTRY_WIDTH): Likewise.
8482 (GRUB_TERM_CURSOR_X): Likewise.
8483 (grub_term_input_class): Likewise.
8484 (grub_term_output_class): Likewise.
8485 (grub_term_outputs_disabled): New declaration.
8486 (grub_term_inputs_disabled): Likewise.
8487 (grub_term_outputs): Likewise.
8488 (grub_term_inputs): Likewise.
8489 (grub_term_register_input): Rewritten.
8490 (grub_term_register_output): Likewise.
8491 (grub_term_unregister_input): Likewise.
8492 (grub_term_unregister_output): Likewise.
8493 (FOR_ACTIVE_TERM_INPUTS): New macro.
8494 (FOR_DISABLED_TERM_INPUTS): Likewise.
8495 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
8496 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
8497 * include/grub/terminfo.h: Add oterm argument to all protypes.
8498 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
8499 Use grub_rescue_run.
8500 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
8501 All users updated.
8502 * kern/reader.c: Removed. All users updated.
8503 * kern/rescue_reader.c (grub_rescue_init): Removed.
8504 (grub_rescue_reader): Likewise.
8505 (grub_register_rescue_reader): Likewise.
8506 (grub_rescue_run): New function based on kern/reader.c.
8507 * kern/term.c: Adapted for multiterm.
8508 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
8509 (grub_is_valid_utf8): Likewise.
8510 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
8511 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
8512 right terminal.
8513 * loader/i386/linux.c (grub_linux_boot): Likewise.
8514 * normal/auth.c (grub_username_get): New function.
8515 (grub_auth_check_authentication): Use grub_username_get.
8516 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
8517 * normal/color.c: Adapt for multiterm.
8518 * normal/main.c (read_config_file): Don't use grub_reader_loop.
8519 (grub_normal_init_page): Additional argument term.
8520 (read_lists): Call read_terminal_lists.
8521 (grub_enter_normal_mode): Call grub_cmdline_run.
8522 Handle grub_normal_exit_level.
8523 (grub_cmd_normal): Make reentrant.
8524 (grub_cmd_normal_exit): New function.
8525 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
8526 * normal/menu.c: Adapt for multiterm.
8527 * normal/menu_entry.c: Likewise.
8528 * normal/menu_text.c: Likewise.
8529 * normal/menu_viewer.c: Removed. All users updated.
8530 * normal/term.c: New file.
8531 * util/console.c: Change order of includes to workaround a bug in
8532 ncurses headers.
8533 * term/terminfo.c: New argument oterm on all exported functions.
8534 All users updated.
8535 * util/grub-editenv.c (grub_term_input_class): Removed.
8536 (grub_term_output_class): Likewise.
8537
1a064917
RM
85382010-01-09 Robert Millan <rmh.grub@aybabtu.com>
8539
8540 Make loader output a bit more user-friendly.
8541
8542 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
8543 is being loaded. Likewise for the Hurd.
8544
8545 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
8546 that kernel of FreeBSD ${version} is being loaded.
8547
8548 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
8549 grub_dprintf().
8550 (grub_cmd_initrd): Likewise.
8551 * util/grub.d/10_linux.in (linux_entry): Print message indicating
8552 that Linux ${version} is being loaded. Likewise for initrd.
8553
5ce0a83a 85542010-01-09 Carles Pina i Estany <carles@pina.cat>
8555
8556 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
8557
809bbfeb 85582010-01-08 Carles Pina i Estany <carles@pina.cat>
8559
8560 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
8561 (GRUB_MOD_INIT): Gettextizze.
8562 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
8563 (GRUB_MOD_INIT): Gettextizze.
8564 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
8565 (grub_cmd_linux): Capitalise Linux.
8566 (GRUB_MOD_INIT): Gettextizze.
8567 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
8568 (grub_cmd_linux): Capitalise Linux.
8569 (GRUB_MOD_INIT): Gettextizze.
8570 * loader/i386/linux.c: Include `<grub/i18n.h>'.
8571 (grub_cmd_linux): Capitalise Linux.
8572 (GRUB_MOD_INIT): Gettextizze.
8573 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
8574 (GRUB_MOD_INIT): Gettextizze.
8575 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
8576 (grub_cmd_linux): Capitalise Linux.
8577 (GRUB_MOD_INIT): Gettextizze.
8578 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
8579 (grub_cpu_xnu_init): Gettextizze.
8580 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
8581 (GRUB_MOD_INIT): Gettextizze.
8582 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
8583 (GRUB_MOD_INIT): Gettextizze.
8584 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
8585 (grub_linux_load64): Capitalise Linux.
8586 (GRUB_MOD_INIT): Gettextizze.
8587 * loader/xnu.c: Include `<grub/i18n.h>'.
8588 (GRUB_MOD_INIT): Gettextizze.
8589 * po/POTFILES: Add `loader/efi/appleloader.c',
8590 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
8591 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
8592 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
8593 `loader/i386/xnu.c', `loader/multiboot_loader.c',
8594 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
8595 and `loader/xnu.c'.
8596
b394b2ca
RM
85972010-01-08 Robert Millan <rmh.grub@aybabtu.com>
8598
8599 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
8600
86012010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
8602
8603 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
8604 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
8605 * util/mkisofs/mkisofs.c (main): Readjust --version output.
8606
bc8b32b3
RM
86072010-01-07 Robert Millan <rmh.grub@aybabtu.com>
8608
8609 Reset Multiboot 2 support. New loader implements the draft in
8610 /branches/multiboot2 and shares as much code as possible with the
8611 production Multiboot 1 implementation.
8612
8613 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
8614 * loader/multiboot2.c: Likewise.
8615 * loader/i386/multiboot_helper.S: Likewise.
8616 * include/multiboot2.h: Replace with latest version from the draft
8617 in /branches/multiboot2.
8618
8619 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
8620 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
8621 and `loader/multiboot2.c'.
8622 (pkglib_MODULES): Add `multiboot2.mod'.
8623 (multiboot2_mod_SOURCES): New variable.
8624 (multiboot2_mod_LDFLAGS): Likewise.
8625 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
8626
8627 * conf/i386-pc.rmk: Likewise.
8628
8629 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
8630 (multiboot_mod_SOURCES): Remove variable.
8631 (multiboot_mod_LDFLAGS): Likewise.
8632 (multiboot_mod_CFLAGS): Likewise.
8633
8634 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
8635 `<multiboot2.h>' instead of `<multiboot.h>'.
8636 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
8637 (MULTIBOOT_HEADER_MAGIC): New macros.
8638
8639 * loader/multiboot_loader.c (module_version_status): Remove variable.
8640 (find_multi_boot2_header): Remove function.
8641 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
8642 logic. Always check for the Multiboot version we're compiling for.
8643 (grub_cmd_module_loader): Likewise.
8644 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
8645 command instead of `multiboot'.
8646
5d2c52b8
RM
86472010-01-07 Robert Millan <rmh.grub@aybabtu.com>
8648
8649 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
8650 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
8651 all users.
8652
53108d92
RM
86532010-01-07 Robert Millan <rmh.grub@aybabtu.com>
86542010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 Fix breakage introduced with previous commit.
8657
8658 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
8659 commands.
8660 * normal/handler.c (read_handler_list): Revert part of previous commit
8661 affecting this file.
8662 * normal/main.c (read_lists): Move read_handler_list() call back to ...
8663 (grub_normal_execute): ... here.
8664
e2e936b2
RM
86652010-01-07 Robert Millan <rmh.grub@aybabtu.com>
8666
8667 Merge prefix-redefinition-fix branch.
8668
8669 * normal/autofs.c (read_fs_list): Make function capable of being
8670 run multiple times, gracefuly replacing the previous data
8671 structures.
8672 * normal/dyncmd.c (read_command_list): Likewise.
8673 * normal/handler.c (read_handler_list): Likewise.
8674 * normal/main.c (read_lists): New function. Calls all the
8675 list reading functions.
8676 (grub_normal_execute): Use read_lists() instead of calling all
8677 list reading functions explicitly. Register read_lists() as a
8678 variable hook attached to ${prefix}.
8679
607a3701
VS
86802010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 Merge crypto branch.
8683
8684 * Makefile.in (pkglib_DATA): Add crypto.lst.
8685 (crypto.lst): New target.
8686 * commands/hashsum.c: New file.
8687 * commands/password.c (check_password): Use grub_crypto_memcmp.
8688 * commands/password_pbkdf2.c: New file.
8689 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
8690 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
8691 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
8692 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
8693 -I$(srcdir)/lib/libgcrypt_wrap.
8694 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
8695 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
8696 password_pbkdf2.mod.
8697 (crypto_mod_SOURCES): New variable.
8698 (crypto_mod_CFLAGS): Likewise.
8699 (crypto_mod_LDFLAGS): Likewise.
8700 (hashsum_mod_SOURCES): New variable.
8701 (hashsum_mod_CFLAGS): Likewise.
8702 (hashsum_mod_LDFLAGS): Likewise.
8703 (pbkdf2_mod_SOURCES): New variable.
8704 (pbkdf2_mod_CFLAGS): Likewise.
8705 (pbkdf2_mod_LDFLAGS): Likewise.
8706 (password_pbkdf2_mod_SOURCES): New variable.
8707 (password_pbkdf2_mod_CFLAGS): Likewise.
8708 (password_pbkdf2_mod_LDFLAGS): Likewise.
8709 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
8710 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
8711 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
8712 Include conf/gcry.rmk.
8713 * include/grub/auth.h: Rewritten.
8714 * include/grub/crypto.h: New file.
8715 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
8716 * include/grub/normal.h (read_crypto_list): New prototype.
8717 * lib/crypto.c: New file.
8718 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
8719 * lib/pbkdf2.c: Likewise.
8720 * normal/auth.c (grub_auth_strcmp): Removed.
8721 (grub_iswordseparator): Likewise.
8722 (grub_auth_strword): Likewise.
8723 (is_authenticated): Use grub_strword.
8724 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
8725 and grub_strword. Pass entered password to authentication callback.
8726 * normal/crypto.c: New file.
8727 * normal/main.c: Call read_crypto_list.
8728 * util/grub-mkpasswd-pbkdf2.c: New file.
8729 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
8730
42841caa
VS
87312010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
8732
8733 Fix descent and ascent calculation.
8734
8735 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
8736 (options): New option "asce".
8737 (usage): Likewise.
8738 (add_char): Ignore invalid glyphs for descent calculation.
8739 Calculate ascent from actual content.
8740 (print_glyphs): Use 'asce'.
8741 (write_font): Likewise. Allow ascent override.
8742 (main): Handle "asce" option.
8743
e7730de7 87442010-01-06 Carles Pina i Estany <carles@pina.cat>
8745
8746 * kern/err.c: Include `<grub/i18n.h>'.
8747 (grub_print_error): Add full stop. Gettextizze.
8748 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
8749 (grub_bsd_load_elf): Capitalise ELF.
8750 (grub_cmd_freebsd_loadenv): Add `s' in error string.
8751 (grub_cmd_freebsd_module): Likewise.
8752 (grub_cmd_freebsd_module_elf): Likewise.
8753 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
8754
40e3a41f 87552010-01-06 Carles Pina i Estany <carles@pina.cat>
8756
8757 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
8758 * commands/search_file.c (HELP_MESSAGE): New macro.
8759 * commands/search_label.c (HELP_MESSAGE): Likewise.
8760 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
8761 * po/POTFILES: Add `commands/search_file.c',
8762 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
8763 `commands/search.c'.
8764
83507e68
RM
87652010-01-05 Robert Millan <rmh.grub@aybabtu.com>
8766
8767 * config.rpath: Update from Gnulib.
8768
465c787b
YB
87692010-01-05 Yves Blusseau <blusseau@zetam.org>
8770
8771 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
8772
6581dd3a
YB
87732010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
8774
8775 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
8776
3bff18c5
CW
87772010-01-05 Colin Watson <cjwatson@ubuntu.com>
8778
8779 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
8780 arguments to fread so that we get a return value in bytes, rather
8781 than something that will normally be rounded down to 0.
8782 Adjust error handling to avoid producing garbage when size_t is not
8783 the same size as long long.
8784
a1368118
CW
87852010-01-05 Colin Watson <cjwatson@ubuntu.com>
8786
8787 * util/mkisofs/write.c (padblock_write): Check return value of
8788 fread.
8789
7c302978
RM
87902010-01-05 Robert Millan <rmh.grub@aybabtu.com>
8791
8792 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
8793 floppy images now.
8794
8795 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
8796
e33ace06
RM
87972010-01-04 Robert Millan <rmh.grub@aybabtu.com>
8798
8799 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
8800 instead of manual alignment.
8801 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
8802 verbose). Avoid attempts to read past end of the device
8803 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
8804 but GRUB_DISK_CACHE_SIZE may exceed that).
8805
4b856776
RM
88062010-01-04 Robert Millan <rmh.grub@aybabtu.com>
8807
8808 * commands/crc.c (grub_cmd_crc): Abort on read errors.
8809 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
8810 it to upper layer.
8811
52c2d97f
VS
88122010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
8815 New constant.
8816 (grub_efi_piwg_device_path): New structure
8817 (grub_efi_piwg_device_path_t): New type.
8818 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
8819 (devpath_1): Transform to a structure. All users updated.
8820 (devpath_2): Likewise.
8821 (devpath_3): Likewise.
8822 (devpath_4): Likewise.
8823 (devpath_5): Likewise.
8824
98ff6a54
VS
88252010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * loader/efi/appleloader.c: Restored. Update all users.
8828
3a73dcb6
RM
88292010-01-03 Robert Millan <rmh.grub@aybabtu.com>
8830
8831 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
8832
8833 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
8834 (struct boot_blocklist): Move from here ...
8835 * include/grub/i386/pc/boot.h [ASM_FILE]
8836 (struct grub_boot_blocklist): ... to here. Update all users.
8837 (setup): Only initialize `start' member of `first_block'
8838 structure. Add assert() calls to verify the other members.
8839
8840 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
8841 (generate_image): Fix broken blocklist length initialization.
8842 Add assert() call to verify blocklist `segment' field.
8843
ab0eeb0c
RM
88442010-01-03 Robert Millan <rmh.grub@aybabtu.com>
8845
8846 * loader/efi/appleloader.c: Remove. Update all users.
8847
58bc8bd5
RM
88482010-01-03 Robert Millan <rmh.grub@aybabtu.com>
8849
8850 * boot/i386/pc/boot.S: Update copyright year.
8851 * boot/i386/pc/cdboot.S: Likewise.
8852 * boot/i386/pc/diskboot.S: Likewise.
8853 * boot/i386/pc/lnxboot.S: Likewise.
8854 * boot/i386/pc/pxeboot.S: Likewise.
8855 * bus/pci.c: Likewise.
8856 * commands/cmp.c: Likewise.
8857 * commands/help.c: Likewise.
8858 * commands/hexdump.c: Likewise.
8859 * commands/i386/pc/halt.c: Likewise.
8860 * commands/i386/pc/play.c: Likewise.
8861 * commands/i386/pc/vbeinfo.c: Likewise.
8862 * commands/ls.c: Likewise.
8863 * commands/test.c: Likewise.
8864 * disk/dmraid_nvidia.c: Likewise.
8865 * disk/i386/pc/biosdisk.c: Likewise.
8866 * disk/ieee1275/nand.c: Likewise.
8867 * disk/ieee1275/ofdisk.c: Likewise.
8868 * disk/lvm.c: Likewise.
8869 * disk/raid.c: Likewise.
8870 * disk/raid6_recover.c: Likewise.
8871 * disk/scsi.c: Likewise.
8872 * fs/affs.c: Likewise.
8873 * fs/cpio.c: Likewise.
8874 * fs/ext2.c: Likewise.
8875 * fs/hfs.c: Likewise.
8876 * fs/iso9660.c: Likewise.
8877 * fs/ntfs.c: Likewise.
8878 * fs/sfs.c: Likewise.
8879 * fs/udf.c: Likewise.
8880 * fs/ufs.c: Likewise.
8881 * fs/xfs.c: Likewise.
8882 * gencmdlist.sh: Likewise.
8883 * genmk.rb: Likewise.
8884 * include/grub/disk.h: Likewise.
8885 * include/grub/efi/api.h: Likewise.
8886 * include/grub/efi/efi.h: Likewise.
8887 * include/grub/efi/pe32.h: Likewise.
8888 * include/grub/elf.h: Likewise.
8889 * include/grub/fs.h: Likewise.
8890 * include/grub/i386/at_keyboard.h: Likewise.
8891 * include/grub/i386/pc/memory.h: Likewise.
8892 * include/grub/i386/pc/vbe.h: Likewise.
8893 * include/grub/i386/pci.h: Likewise.
8894 * include/grub/i386/tsc.h: Likewise.
8895 * include/grub/ieee1275/ieee1275.h: Likewise.
8896 * include/grub/ntfs.h: Likewise.
8897 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
8898 * include/grub/sparc64/libgcc.h: Likewise.
8899 * include/grub/symbol.h: Likewise.
8900 * include/grub/types.h: Likewise.
8901 * include/multiboot2.h: Likewise.
8902 * io/gzio.c: Likewise.
8903 * kern/device.c: Likewise.
8904 * kern/disk.c: Likewise.
8905 * kern/efi/efi.c: Likewise.
8906 * kern/efi/mm.c: Likewise.
8907 * kern/elf.c: Likewise.
8908 * kern/file.c: Likewise.
8909 * kern/i386/dl.c: Likewise.
8910 * kern/i386/pc/init.c: Likewise.
8911 * kern/i386/pc/startup.S: Likewise.
8912 * kern/ieee1275/ieee1275.c: Likewise.
8913 * kern/ieee1275/init.c: Likewise.
8914 * kern/main.c: Likewise.
8915 * kern/mm.c: Likewise.
8916 * kern/powerpc/dl.c: Likewise.
8917 * kern/sparc64/dl.c: Likewise.
8918 * kern/x86_64/dl.c: Likewise.
8919 * lib/hexdump.c: Likewise.
8920 * loader/efi/appleloader.c: Likewise.
8921 * loader/i386/ieee1275/linux.c: Likewise.
8922 * loader/i386/pc/chainloader.c: Likewise.
8923 * loader/i386/pc/linux.c: Likewise.
8924 * loader/i386/pc/multiboot2.c: Likewise.
8925 * loader/ieee1275/multiboot2.c: Likewise.
8926 * loader/multiboot2.c: Likewise.
8927 * loader/multiboot_loader.c: Likewise.
8928 * loader/powerpc/ieee1275/linux.c: Likewise.
8929 * normal/completion.c: Likewise.
8930 * normal/menu_entry.c: Likewise.
8931 * partmap/apple.c: Likewise.
8932 * util/grub.d/10_hurd.in: Likewise.
8933 * util/hostfs.c: Likewise.
8934 * video/readers/png.c: Likewise.
8935
e2d70b5c
CW
89362010-01-03 Colin Watson <cjwatson@ubuntu.com>
8937
8938 * include/grub/misc.h (GNUC_PREREQ): New macro.
8939 (ATTRIBUTE_ERROR): New macro.
8940 * include/grub/list.h (grub_bad_type_cast_real): Use
8941 ATTRIBUTE_ERROR.
8942
a173283f 89432010-01-03 Carles Pina i Estany <carles@pina.cat>
8944
8945 * normal/menu_text.c (print_message): Change messages.
8946
7fa7ff74 89472010-01-03 Carles Pina i Estany <carles@pina.cat>
8948
8949 * normal/menu_entry.c (store_completion): Gettextizze.
8950
136d24f6 89512010-01-03 Carles Pina i Estany <carles@pina.cat>
8952
8953 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
8954
f936862e 89552010-01-03 Carles Pina i Estany <carles@pina.cat>
8956
8957 * po/POTFILES: Sort correctly.
8958
29c44ad1 89592010-01-03 Carles Pina i Estany <carles@pina.cat>
8960
8961 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
8962 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
8963 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
8964 full stop.
8965 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
8966 summary. Gettextizze the strings.
8967 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
8968 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
8969 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
8970 full stop.
8971 (GRUB_MOD_INIT): Remove command name from summary.
8972 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
8973 summary.
8974 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
8975 * term/i386/pc/serial.c (options): Add full stops.
8976 (GRUB_MOD_INIT): Remove command name from the summary.
8977
77a79592 89782010-01-03 Carles Pina i Estany <carles@pina.cat>
8979
8980 * commands/acpi.c: Gettextizze help strings and/or options. Include
8981 `grub/i18n.h' if needed.
8982 * commands/blocklist.c: Likewise.
8983 * commands/boot.c: Likewise.
8984 * commands/cat.c: Likewise.
8985 * commands/cmp.c: Likewise.
8986 * commands/configfile.c: Likewise.
8987 * commands/crc.c: Likewise.
8988 * commands/date.c: Likewise.
8989 * commands/echo.c: Likewise.
8990 * commands/efi/fixvideo.c: Likewise.
8991 * commands/efi/loadbios.c: Likewise.
8992 * commands/gptsync.c: Likewise.
8993 * commands/halt.c: Likewise.
8994 * commands/handler.c: Likewise.
8995 * commands/hdparm.c: Likewise.
8996 * commands/hexdump.c: Likewise.
8997 * commands/i386/cpuid.c: Likewise.
8998 * commands/i386/pc/drivemap.c: Likewise.
8999 * commands/i386/pc/halt.c: Likewise.
9000 * commands/i386/pc/pxecmd.c: Likewise.
9001 * commands/i386/pc/vbeinfo.c: Likewise.
9002 * commands/i386/pc/vbetest.c: Likewise.
9003 * commands/ieee1275/suspend.c: Likewise.
9004 * commands/keystatus.c: Likewise.
9005 * commands/loadenv.c: Likewise.
9006 * commands/ls.c: Likewise.
9007 * commands/lsmmap.c: Likewise.
9008 * commands/lspci.c: Likewise.
9009 * commands/memrw.c: Likewise.
9010 * commands/minicmd.c: Likewise.
9011 * commands/parttool.c: Likewise.
9012 * commands/password.c: Likewise.
9013 * commands/probe.c: Likewise.
9014 * commands/read.c: Likewise.
9015 * commands/reboot.c: Likewise.
9016 * commands/search.c: Likewise.
9017 * commands/sleep.c: Likewise.
9018 * commands/test.c: Likewise.
9019 * commands/true.c: Likewise.
9020 * commands/usbtest.c: Likewise.
9021 * commands/videotest.c: Likewise.
9022 * commands/xnu_uuid.c: Likewise.
9023 * disk/loopback.c: Likewise.
9024 * hello/hello.c: Likewise.
9025 * loader/i386/bsd.c: Likewise.
9026 * term/i386/pc/serial.c: Likewise.
9027 * po/POTFILES: Add new files.
9028
da8d5c53
CW
90292010-01-02 Colin Watson <cjwatson@ubuntu.com>
9030
9031 * term/i386/pc/at_keyboard.c
9032 (keyboard_controller_wait_untill_ready): Rename to ...
9033 (keyboard_controller_wait_until_ready): ... this. Update all users.
9034
33937904 90352010-01-01 Carles Pina i Estany <carles@pina.cat>
9036
9037 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
9038 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
9039 string using string width.
9040 * normal/menu_text.c (grub_print_message_indented): Use
9041 grub_print_spaces and not print_spaces.
9042 (print_timeout): Likewise.
9043 (print_spaces): Move to...
9044 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
9045
3fd3b8d8
RM
90462010-01-01 Robert Millan <rmh.grub@aybabtu.com>
9047
9048 Import from Gnulib.
9049
9050 * gnulib/getdelim.c: New file.
9051 * gnulib/getline.c: Likewise.
9052
33433555
VS
90532009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
9054
9055 * include/grub/list.h (grub_assert_fail): Removed.
9056 (grub_bad_type_cast_real): New function.
9057 (grub_bad_type_cast): New macro.
9058 (GRUB_AS_LIST): Use grub_bad_type_cast.
9059 (GRUB_AS_LIST_P): Likewise.
e44721e8 9060 (GRUB_AS_NAMED_LIST): Likewise.
33433555 9061 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 9062 (GRUB_AS_PRIO_LIST): Likewise.
33433555 9063 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 9064 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 9065
f5a51306
VS
90662009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
9069 Fix syntax error.
9070
90d1e879
RM
90712009-12-29 Robert Millan <rmh.grub@aybabtu.com>
9072
9073 * configure.ac: Check for TARGET_CFLAGS initialization before we
9074 initialize it ourselves (sigh).
9075 Move a few modifications to TARGET_CFLAGS to be unconditional
9076 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
9077 eh_frame)
9078
9079 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
9080 * term/i386/pc/at_keyboard.c
9081 (keyboard_controller_wait_untill_ready): Likewise.
9082 (keyboard_controller_led): Rename `led_status' paramter to avoid
9083 name conflict.
9084
465b5a81 90852009-12-28 Carles Pina i Estany <carles@pina.cat>
9086
9087 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
9088 quotes.
9089
c181849b
VS
90902009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
9093
9c8739a4
VS
90942009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 * normal/menu_text.c (grub_print_message_indented): Prevent
9097 past-the-end-of-array dereference.
9098
3e74249c
VS
90992009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9100
9101 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
9102 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
9103
64fd18ed 91042009-12-27 Carles Pina i Estany <carles@pina.cat>
9105
9106 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
9107 * normal/main.c (grub_normal_read_line): Remove a space from the
9108 default prompt.
9109
714af9b9 91102009-12-27 Carles Pina i Estany <carles@pina.cat>
9111
9112 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
9113 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9114 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
9115 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
9116 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9117 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9118 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9119
82f3e412 91202009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 9121
9122 * video/readers/jpeg.c (cmd): Declare.
9123 (grub_cmd_jpegtest): Use `grub_command_t' type.
9124 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9125 Assign to `cmd'.
9126 (GRUB_MOD_FINI): Use `cmd' to unregister.
9127 * video/readers/png.c (cmd): Declare.
9128 (grub_cmd_pngtest): Use `grub_command_t' type.
9129 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9130 Assign to `cmd'.
9131 (GRUB_MOD_FINI): Use `cmd' to unregister.
9132 * video/readers/tga.c (cmd): Declare.
9133 (grub_cmd_tgatest): Use `grub_command_t' type.
9134 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9135 Assign to `cmd'.
9136 (GRUB_MOD_FINI): Use `cmd' to unregister.
9137
82f3e412 91382009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 9139
9140 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
9141 stops.
9142 * kern/corecmd.c (grub_register_core_commands): Likewise.
9143 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
9144 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
9145 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
9146 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9147 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
9148 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
9149 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
9150 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
9151 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9152 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9153 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9154 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9155 * normal/handler.c (insert_handler): Likewise.
9156 * normal/main.c (GRUB_MOD_INIT): Likewise.
9157 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9158
fdcdbb66 91592009-12-26 Carles Pina i Estany <carles@pina.cat>
9160
9161 * commands/help.c (grub_cmd_help): Print the command name before the
9162 summary.
9163 (GRUB_MOD_INIT): Remove command name from the summary.
9164 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 9165 string as summary.
fdcdbb66 9166 * lib/arg.c (find_long): Print the command name before the summary.
9167 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
9168 summary.
9169 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
9170 * commands/cat.c (GRUB_MOD_INIT): Likewise.
9171 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
9172 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
9173 * commands/crc.c (GRUB_MOD_INIT): Likewise.
9174 * commands/date.c (GRUB_MOD_INIT): Likewise.
9175 * commands/echo.c (GRUB_MOD_INIT): Likewise.
9176 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
9177 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
9178 * commands/handler.c (GRUB_MOD_INIT): Likewise.
9179 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
9180 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
9181 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
9182 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
9183 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
9184 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
9185 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
9186 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
9187 * commands/ls.c (GRUB_MOD_INIT): Likewise.
9188 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
9189 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
9190 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
9191 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
9192 * commands/password.c (GRUB_MOD_INIT): Likewise.
9193 * commands/probe.c (GRUB_MOD_INIT): Likewise.
9194 * commands/read.c (GRUB_MOD_INIT): Likewise.
9195 * commands/search.c (GRUB_MOD_INIT): Likewise.
9196 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
9197 * commands/test.c (GRUB_MOD_INIT): Likewise.
9198 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
9199 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9200 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9201 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
9202 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9203 * lib/arg.c (GRUB_MOD_INIT): Likewise.
9204 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
9205 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
9206 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9207 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9208 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9209 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
9210 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
9211 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
9212
9c288be2
VS
92132009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 Use search command for preliminar UUID search.
9216
9217 * commands/search.c: Split into ...
9218 * commands/search_wrap.c: ...this
9219 * commands/search.c: ...and this.
9220 * commands/search_file.c: New file.
9221 * commands/search_label.c: New file.
9222 * commands/search_uuid.c: New file.
9223 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
9224 Add commands/search_wrap.c, commands/search_file.c,
9225 commands/search_label.c and commands/search_uuid.c.
9226 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
9227 (search_mod_SOURCES): Set to commands/search_wrap.c.
9228 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
9229 search_label.mod.
9230 (search_fs_file_mod_SOURCES): New variable.
9231 (search_fs_file_mod_CFLAGS): Likewise.
9232 (search_fs_file_mod_LDFLAGS): Likewise.
9233 (search_label_mod_SOURCES): Likewise.
9234 (search_label_mod_CFLAGS): Likewise.
9235 (search_label_mod_LDFLAGS): Likewise.
9236 (search_fs_uuid_mod_SOURCES): New variable.
9237 (search_fs_uuid_mod_CFLAGS): Likewise.
9238 (search_fs_uuid_mod_LDFLAGS): Likewise.
9239 (fs_file_mod_SOURCES): Removed.
9240 (fs_file_mod_CFLAGS): Likewise.
9241 (fs_file_mod_LDFLAGS): Likewise.
9242 (fs_uuid_mod_SOURCES): Removed.
9243 (fs_uuid_mod_CFLAGS): Likewise.
9244 (fs_uuid_mod_LDFLAGS): Likewise.
9245 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
9246 Set to util/grub-install.in.
9247 * disk/fs_file.c: Removed.
9248 * disk/fs_uuid.c: Likewise.
9249 * include/grub/search.h: New file.
9250 * util/grub-install.in: Handle sparc64.
9251 Create and use load.cfg.
9252 * util/sparc64/ieee1275/grub-install.in: Removed.
9253
db943399
VS
92542009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9255
9256 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
9257 Ignore return status if CF is cleared.
9258 (grub_biosdisk_get_diskinfo_standard): Likewise.
9259
3fdae612
RM
92602009-12-25 Robert Millan <rmh.grub@aybabtu.com>
9261
9262 * term/i386/pc/at_keyboard.c
9263 (keyboard_controller_wait_untill_ready): New function.
9264 (grub_keyboard_controller_write, grub_keyboard_controller_read)
9265 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
9266 for keyboard polling, rather than duplicate the same loop. This
9267 saves a few bytes in code size.
9268
7ebaa2b4
VS
92692009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 Support for (pxe[:server[:gateway]]) syntax and
9272 use environment variable for PXE.
9273
9274 * commands/i386/pc/pxecmd.c (options): Removed.
9275 (print_ip): Removed.
9276 (grub_cmd_pxe): Removed
9277 (grub_cmd_pxe_unload): New function.
9278 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
9279 (grub_pxe_your_ip): Made static.
9280 (grub_pxe_default_server_ip): Likewise.
9281 (grub_pxe_default_gateway_ip): Likewise.
9282 (grub_pxe_blksize): Likewise.
9283 (parse_ip): New function.
9284 (grub_pxe_open): Support server and gateway specification.
9285 (grub_pxe_close): Free disk->data.
9286 (grub_pxefs_open): Use disk->data.
9287 (grub_pxefs_read): Likewise.
9288 (grub_env_write_readonly): New function.
9289 (set_mac_env): Likewise.
9290 (set_env_limn_ro): Likewise.
9291 (parse_dhcp_vendor): Likewise.
9292 (grub_pxe_detect): Set the environment variables.
9293 (set_ip_env): New function.
9294 (write_ip_env): Likewise.
9295 (grub_env_write_pxe_default_server): Likewise.
9296 (grub_env_write_pxe_default_gateway): Likewise.
9297 (grub_env_write_pxe_blocksize): Likewise.
9298 (GRUB_MOD_INIT(pxe)): Set environment variables.
9299 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
9300 (grub_pxe_mac_addr_t): ... this. All users updated.
9301 (grub_pxe_your_ip): Removed.
9302 (grub_pxe_server_ip): Likewise.
9303 (grub_pxe_gateway_ip): Likewise.
9304 (grub_pxe_blksize): Likewise.
9305
ec5f98ab 93062009-12-25 Carles Pina i Estany <carles@pina.cat>
9307
9308 * commands/help.c: Include `<grub/i18n.h>'.
9309 (grub_cmd_help): Gettextizze.
9310 (GRUB_MOD_INIT): Likewise.
9311 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
9312 (GRUB_MOD_INIT): Gettextizze.
9313 * commands/search.c: Include `<grub/i18n.h>'.
9314 (options): Gettextizze.
9315 (GRUB_MOD_INIT): Gettextizze.
9316 * lib/arg.c: Include `<grub/i18n.h>'.
9317 (help_options): Gettextizze.
9318 (find_long): Likewise.
9319 (grub_arg_show_help): Likewise.
9320 * normal/dyncmd.c: Include `<grub/i18n.h>'.
9321 (read_command_list): Gettextizze.
9322 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 9323 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 9324
22815526
RM
93252009-12-25 Robert Millan <rmh.grub@aybabtu.com>
9326
9327 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
9328 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
9329 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
9330 (led_status): New variable.
9331 (keyboard_controller_led): New function.
9332 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
9333 update led status for caps lock, num lock and scroll lock.
9334
0ad46fd7
FZ
93352009-12-25 Felix Zielcke <fzielcke@z-51.de>
9336
9337 * util/hostdisk.c (open_device): Fix a comment.
9338
d0e158c2
RM
93392009-12-24 Robert Millan <rmh.grub@aybabtu.com>
9340
9341 * util/grub-install.in (host_os): New variable.
9342 * util/i386/efi/grub-install.in (host_os): Likewise.
9343
401c0ad6
RM
93442009-12-24 Robert Millan <rmh.grub@aybabtu.com>
9345
9346 * util/mkisofs/write.c (padblock_write): Abort when given an
9347 excedingly large embed image, instead of silently truncating it.
9348
d14d3370
RM
93492009-12-24 Robert Millan <rmh.grub@aybabtu.com>
9350
9351 * include/multiboot.h: Indentation fixes.
9352
eeed10b4
RM
93532009-12-24 Robert Millan <rmh.grub@aybabtu.com>
9354
9355 * include/multiboot.h (struct multiboot_aout_symbol_table)
9356 (struct multiboot_elf_section_header_table): New structure
9357 declarations (stolen from GRUB Legacy).
9358 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
9359 table information.
9360
9361 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
9362 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
9363 type aliases.
9364
681c70ab
RM
93652009-12-24 Robert Millan <rmh.grub@aybabtu.com>
9366
9367 * include/multiboot.h: Make comments src2texi-friendly.
9368
e4d47d8d
RM
93692009-12-24 Robert Millan <rmh.grub@aybabtu.com>
9370
9371 For consistency with [multiboot]/docs/boot.S.
9372
9373 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
9374 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
9375 (MULTIBOOT_MAGIC2): Rename from this ...
9376 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
9377
a0b70bda
RM
93782009-12-24 Robert Millan <rmh.grub@aybabtu.com>
9379
9380 * include/multiboot.h: Remove `<grub/types.h>'.
9381 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
9382 types. Update all users.
9383
61ba42be 93842009-12-25 Carles Pina i Estany <carles@pina.cat>
9385
9386 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
9387 `couldn't' and `can not' by `cannot'.
9388 * commands/i386/pc/drivemap.c: Likewise.
9389 * disk/ata.c: Likewise.
9390 * disk/ieee1275/nand.c: Likewise.
9391 * fs/affs.c: Likewise.
9392 * fs/fat.c: Likewise.
9393 * fs/hfs.c: Likewise.
9394 * fs/hfsplus.c: Likewise.
9395 * fs/iso9660.c: Likewise.
9396 * fs/jfs.c: Likewise.
9397 * fs/minix.c: Likewise.
9398 * fs/reiserfs.c: Likewise.
9399 * fs/sfs.c: Likewise.
9400 * fs/udf.c: Likewise.
9401 * fs/ufs.c: Likewise.
9402 * fs/xfs.c: Likewise.
9403 * loader/powerpc/ieee1275/linux.c: Likewise.
9404 * loader/sparc64/ieee1275/linux.c: Likewise.
9405 * util/grub-probe.c: Likewise.
9406 * util/misc.c: Likewise.
9407
7fd0baee 94082009-12-24 Carles Pina i Estany <carles@pina.cat>
9409
9410 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
9411 grub_errno calls.
9412 * commands/acpi.c: Likewise.
9413 * commands/blocklist.c: Likewise.
9414 * commands/efi/loadbios.c: Likewise.
9415 * commands/i386/pc/drivemap.c: Likewise.
9416 * commands/loadenv.c: Likewise.
9417 * commands/memrw.c: Likewise.
9418 * commands/password.c: Likewise.
9419 * commands/videotest.c: Likewise.
9420 * disk/ata.c: Likewise.
9421 * disk/ata_pthru.c: Likewise.
9422 * disk/dmraid_nvidia.c: Likewise.
9423 * disk/ieee1275/nand.c: Likewise.
9424 * disk/ieee1275/ofdisk.c: Likewise.
9425 * disk/loopback.c: Likewise.
9426 * disk/lvm.c: Likewise.
9427 * disk/mdraid_linux.c: Likewise.
9428 * disk/raid.c: Likewise.
9429 * disk/raid6_recover.c: Likewise.
9430 * disk/scsi.c: Likewise.
9431 * efiemu/main.c: Likewise.
9432 * efiemu/mm.c: Likewise.
9433 * efiemu/pnvram.c: Likewise.
9434 * efiemu/symbols.c: Likewise.
9435 * font/font.c: Likewise.
9436 * fs/cpio.c: Likewise.
9437 * fs/hfsplus.c: Likewise.
9438 * fs/iso9660.c: Likewise.
9439 * fs/jfs.c: Likewise.
9440 * fs/minix.c: Likewise.
9441 * fs/ntfs.c: Likewise.
9442 * fs/ntfscomp.c: Likewise.
9443 * fs/reiserfs.c: Likewise.
9444 * fs/ufs.c: Likewise.
9445 * fs/xfs.c: Likewise.
9446 * gettext/gettext.c: Likewise.
9447 * include/grub/auth.h: Likewise.
9448 * kern/elf.c: Likewise.
9449 * kern/file.c: Likewise.
9450 * kern/ieee1275/init.c: Likewise.
9451 * kern/ieee1275/mmap.c: Likewise.
9452 * kern/ieee1275/openfw.c: Likewise.
9453 * kern/powerpc/dl.c: Likewise.
9454 * kern/sparc64/dl.c: Likewise.
9455 * lib/arg.c: Likewise.
9456 * loader/i386/bsd.c: Likewise.
9457 * loader/i386/bsdXX.c: Likewise.
9458 * loader/i386/efi/linux.c: Likewise.
9459 * loader/i386/efi/xnu.c: Likewise.
9460 * loader/i386/ieee1275/linux.c: Likewise.
9461 * loader/i386/linux.c: Likewise.
9462 * loader/i386/multiboot.c: Likewise.
9463 * loader/i386/pc/linux.c: Likewise.
9464 * loader/i386/pc/multiboot2.c: Likewise.
9465 * loader/i386/xnu.c: Likewise.
9466 * loader/ieee1275/multiboot2.c: Likewise.
9467 * loader/macho.c: Likewise.
9468 * loader/machoXX.c: Likewise.
9469 * loader/multiboot2.c: Likewise.
9470 * loader/multiboot_loader.c: Likewise.
9471 * loader/powerpc/ieee1275/linux.c: Likewise.
9472 * loader/sparc64/ieee1275/linux.c: Likewise.
9473 * loader/xnu.c: Likewise.
9474 * loader/xnu_resume.c: Likewise.
9475 * mmap/i386/pc/mmap.c: Likewise.
9476 * normal/menu_viewer.c: Likewise.
9477 * partmap/acorn.c: Likewise.
9478 * partmap/amiga.c: Likewise.
9479 * partmap/apple.c: Likewise.
9480 * script/lexer.c: Likewise.
9481 * term/gfxterm.c: Likewise.
9482 * term/i386/pc/serial.c: Likewise.
9483 * term/i386/pc/vga.c: Likewise.
9484 * term/ieee1275/ofconsole.c: Likewise.
9485 * term/terminfo.c: Likewise.
9486 * video/bitmap.c: Likewise.
9487 * video/efi_gop.c: Likewise.
9488 * video/efi_uga.c: Likewise.
9489 * video/fb/video_fb.c: Likewise.
9490 * video/i386/pc/vbe.c: Likewise.
9491 * video/readers/tga.c: Likewise.
9492 * video/video.c: Likewise.
9493
0ad46fd7 94942009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
9495
9496 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
9497 * commands/lspci.c: Likewise.
9498 * commands/probe.c: Likewise.
9499 * commands/xnu_uuid.c: Likewise.
9500 * conf/i386-coreboot.rmk: Likewise.
9501 * conf/i386-efi.rmk: Likewise.
9502 * conf/i386-ieee1275.rmk: Likewise.
9503 * conf/i386-pc.rmk: Likewise.
9504 * conf/powerpc-ieee1275.rmk: Likewise.
9505 * conf/sparc64-ieee1275.rmk: Likewise.
9506 * conf/x86_64-efi.rmk: Likewise.
9507 * fs/i386/pc/pxe.c: Likewise.
9508 * gettext/gettext.c: Likewise.
9509 * include/grub/efi/graphics_output.h: Likewise.
9510 * include/grub/i386/pc/memory.h: Likewise.
9511 * kern/env.c: Likewise.
9512 * kern/i386/qemu/startup.S: Likewise.
9513 * lib/i386/pc/biosnum.c: Likewise.
9514 * lib/i386/relocator.c: Likewise.
9515 * lib/i386/relocator_asm.S: Likewise.
9516 * lib/relocator.c: Likewise.
9517 * loader/i386/bsd.c: Likewise.
9518 * loader/i386/multiboot.c: Likewise.
9519 * loader/i386/pc/chainloader.c: Likewise.
9520 * loader/i386/xnu.c: Likewise.
9521 * loader/xnu.c: Likewise.
9522 * normal/main.c: Likewise.
9523 * normal/menu_text.c: Likewise.
9524 * util/getroot.c: Likewise.
9525 * util/grub-mkconfig_lib.in: Likewise.
9526 * util/grub.d/00_header.in: Likewise.
9527 * util/i386/pc/grub-mkimage.c: Likewise.
9528 * util/mkisofs/eltorito.c: Likewise.
9529 * util/mkisofs/exclude.h: Likewise.
9530 * util/mkisofs/hash.c: Likewise.
9531 * util/mkisofs/iso9660.h: Likewise.
9532 * util/mkisofs/joliet.c: Likewise.
9533 * util/mkisofs/mkisofs.c: Likewise.
9534 * util/mkisofs/mkisofs.h: Likewise.
9535 * util/mkisofs/multi.c: Likewise.
9536 * util/mkisofs/name.c: Likewise.
9537 * util/mkisofs/rock.c: Likewise.
9538 * util/mkisofs/tree.c: Likewise.
9539 * util/mkisofs/write.c: Likewise.
9540 * video/efi_gop.c: Likewise.
9541
009ec743
VS
95422009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
9545 size counting.
9546
0ad46fd7 95472009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
9548
9549 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
9550 * genmk.rb (class SCRIPT): Modify the target file instead of source.
9551
d3d30ea0
VS
95522009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
9555 (GRUB_MOD_INIT(memrw)): Update help line.
9556
a34f5c70
VS
95572009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9558
9559 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
9560 Use grub_extcmd_t. All users updated.
9561 (options): New variable.
9562 (grub_cmd_read): Restructure for readability. Support "-v" option.
9563 (grub_cmd_write): Restructure for readability.
9564
0ad46fd7 95652009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
9566
9567 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
9568
0ad46fd7 95692009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
9570
9571 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
9572 with the actual contents of the correspondending make variable.
9573 * util/grub-mkrescue.in (pkglib_DATA): New variable.
9574 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
9575 specifying `*.lst' and `efiemu??.o'
9576
0ad46fd7 95772009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
9578
9579 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
9580 after function name.
9581 Noticed by Rene Engelhard <rene@debian.org>.
9582
dc77a799
VS
95832009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
9586 (options): New variable.
9587 (iospace): Likewise.
9588 (grub_lspci_iter): List IO spaces if "-i" was given.
9589 (grub_cmd_lspci): Parse options.
9590 (GRUB_MOD_INIT(lspci)): Use extcmd.
9591 (GRUB_MOD_FINI(lspci)): Likewise.
9592
0ad46fd7 95932009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
9594
9595 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
9596 `function' keyword.
9597 Patch by Tony Mancill <tmancill@debian.org>.
9598
b5d5993b
VS
95992009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
9602 (grub_uhci_portstatus): Likewise.
9603 (grub_uhci_portstatus): Add necessary delay.
11d18281 9604 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 9605
941903f2 96062009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 9607
941903f2 9608 * commands/acpi.c (options): Fix capitalizations and/or full stops.
9609 (GRUB_MOD_INIT): Likewise.
9610 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 9611 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
9612 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 9613 * commands/efi/loadbios.c (enable_rom_area): Likewise.
9614 (enable_rom_area): Likewise.
9615 (GRUB_MOD_INIT): Likewise.
9616 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
9617 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
9618 * commands/handler.c (GRUB_MOD_INIT): Likewise.
9619 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
9620 * commands/hexdump.c (options): Likewise.
9621 * commands/i386/cpuid.c (options): Likewise.
9622 (GRUB_MOD_INIT): Likewise.
9623 * commands/i386/pc/drivemap.c (options): Likewise.
9624 (GRUB_MOD_INIT): Likewise.
9625 * commands/i386/pc/halt (options): Likewise.
9626 (GRUB_MOD_INIT): Likewise.
9627 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
9628 * commands/i386/pc/pxecmd.c (options): Likewise.
9629 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
9630 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
9631 * commands/keystatus.c (options): Likewise.
9632 (GRUB_MOD_INIT): Likewise.
9633 * commands/loadenv.c (options): Likewise.
9634 * commands/ls.c (options): Likewise.
9635 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
9636 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
9637 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
9638 * commands/parttool.c (helpmsg): Likewise.
9639 * commands/probe.c (options): Likewise.
9640 * commands/read.c (GRUB_MOD_INIT): Likewise.
9641 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
9642 * commands/search.c (options): Likewise.
9643 * commands/sleep.c (options): Likewise.
9644 * commands/test.c (GRUB_MOD_INIT): Likewise.
9645 * commands/true.c (GRUB_MOD_INIT): Likewise.
9646 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
9647 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
9648 * lib/arg.c (help_options): Likewise.
e9bbb4e7 9649 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
9650 `$(XGETTEXT)'.
98a50553 9651 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 9652
0ad46fd7 96532009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 9654
ef3c2c3a 9655 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
9656 instead of specifying them explicit.
9657
7922f68b
RM
96582009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9659
9660 * NEWS: Add grub-probe support for GNU/Hurd.
9661
537ce47f
RM
96622009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9663
9664 * NEWS: gettext was added after 1.97.
9665
9b214e3a
RM
96662009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9667
9668 * util/mkisofs/msdos_partition.h: New file (based on
9669 include/grub/msdos_partition.h).
9670 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
9671 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
9672 (ld_options, main): Recognize --protective-msdos-label.
9673 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
9674 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
9675 (padblock_write): If `use_protective_msdos_label' is set, patch a
9676 protective DOS-style label in the output image.
9677
9678 * util/grub-mkrescue.in: Use --protective-msdos-label.
9679
e9309813
RM
96802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9681
9682 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
9683 boot.
9684
0ae56929
RM
96852009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9686
9687 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
9688 variables.
9689 (ld_options, main): Recognize `--embedded-boot'.
9690 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
9691 declarations.
9692 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
9693 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
9694 (padblock_write): Likewise. Rewrite to support embedded boot image.
9695
9696 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
9697 for BIOS-based disk boot instead of only ElTorito.
9698
b15937b1
RM
96992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9700
9701 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
9702 build (not needed for bootstrap).
9703
52cc3ce0
RM
97042009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9705
9706 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
9707 from i386-pc build (not needed for bootstrap).
9708 Rewrite a pair of strings.
9709
36f5ff04
RM
97102009-12-21 Robert Millan <rmh.grub@aybabtu.com>
9711
9712 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
9713
973c6c85 97142009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
9715
9716 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
9717
05d21547
AB
97182009-12-21 Andreas Born <futur.andy@googlemail.com>
9719
9720 * kern/env.c (grub_env_context_open): Mark exported variable for
9721 reexport.
9722
0175d51f
AB
97232009-12-21 Andreas Born <futur.andy@googlemail.com>
9724
9725 * kern/env.c (grub_env_export): Create nonexistent variables before
9726 exporting.
9727
7f39d92f 97282009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 9729
7f39d92f 9730 * include/grub/auth.h: Include `<grub/i18n.h>'.
9731 (GRUB_GET_PASSWORD): Gettextizze string.
9732 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
9733 menu_text.c.
9734 (grub_utf8_to_ucs4_alloc): Fix indentation.
9735 (grub_print_ucs4): Likewise.
9736 (grub_getstringwidth): Likewise.
9737 (print_message_indented): New declaration.
9738 * normal/auth.c: Include `<grub/i18n.h>'.
9739 (grub_auth_check_authentication): Gettexttize string.
9740 * normal/cmdline.c: Include `<grub/i18n.h>'.
9741 (grub_cmdline_get): Gettextizze.
9742 * normal/color.c: Include `<grub/i18n.h>'.
9743 (grub_parse_color_name_pair): Gettexttize strings.
9744 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
9745 string (use `print_message_indented').
9746 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
9747 `include/grub/normal.h'.
9748 (print_message_indented): Renamed to ...
9749 (grub_print_message_indented): ... this. Remove `static' qualifer (now
9750 used in normal/main.c).
9751 (print_message): Use `grub_print_message_indented' instead of
9752 `print_message_indented'.
9753 (print_timeout): Likewise.
9754 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
9755 (grub_normal_print_device_info): Gettexttize strings.
9756 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
9757
3041d898
VS
97582009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
9761 of arguments. Return number of tokens and not arguments. All users
9762 updated.
9763
de15bf8e
VS
97642009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9765
9766 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
9767 non-MSDOS paritions.
9768
e0a6ca52
VS
97692009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
9770
9771 * include/grub/types.h (UNUSED): Removed since it conflicts with
9772 NetBSD headers. All users changed to direct __attribute__ ((unused)).
9773 Reported by Grégoire Sutre.
9774
b99518d1 97752009-12-19 Carles Pina i Estany <carles@pina.cat>
9776
9777 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
9778 (grub_print_ucs4_alloc): Likewise.
9779 (grub_getstringwidth): Likewise.
9780 * normal/main.c (grub_normal_init_page): Gettextize version string.
9781 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
9782 (getstringwidth): Renamed to ...
9783 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
9784 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
9785 (grub_print_ucs4): Remove `static' qualifer (now used in
9786 normal/main.c).
9787 * po/POTFILES: Add normal/main.c.
9788
bfd5e52b 97892009-12-19 Carles Pina i Estany <carles@pina.cat>
9790
9791 * normal/menu_text.c (STANDARD_MARGIN): New macro.
9792 (print_message_indented): Add `margin_left' and `margin_right'
9793 parameters.
9794 (print_message): Update `print_message_indented' calls. Adds '\n' to the
9795 strings.
9796 (print_timeout): Use `print_message_indented' to print the message.
9797 Deletes `second_stage' parameter.
9798 (run_menu): Update `print_timeout' calls.
9799
5a1ad2b9
VS
98002009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9801
9802 Fix console palette on OpenFirmware.
9803
9804 * term/ieee1275/ofconsole.c (MAX): Removed.
9805 (colors): Redone based on VGA palette.
9806 (grub_ofconsole_setcolor): Discard brightness bit since only 8
9807 colors are supported.
9808 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
9809
b045f00a
VS
98102009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9811
9812 Fix potential EfiEmu double prepare.
9813
9814 * efiemu/main.c (prepared): New variable
9815 (grub_efiemu_unload): Set prepare to '0'.
9816 (grub_efiemu_prepare): Return if already prepared. Set prepared.
9817
9818 set_virtual_address_map support.
9819
9820 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
9821 prototype.
9822 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
9823 prototype.
9824 (grub_efiemu_crc32): Likewise.
9825 (grub_efiemu_crc64): Likewise.
9826 (grub_efiemu_set_virtual_address_map): Likewise.
9827 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
9828 New definition.
9829 (grub_autoefi_set_virtual_address_map): Likewise.
9830 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
9831 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
9832 Restructure flow to accomodate it.
9833 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
9834 (grub_efiemu_crc): Recompute CRC32.
9835 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
9836 (efiemu_ptv_relocated): ... this. Made global. All users updated.
9837 * efiemu/symbols.c (relocated_handle): New variable.
9838 (grub_efiemu_free_syms): Free relocated_handle.
9839 (grub_efiemu_alloc_syms): Allocate relocated_handle.
9840 (grub_efiemu_write_sym_markers): New function.
9841 (grub_efiemu_set_virtual_address_map): Likewise.
9842
9843 Newer XNU parameters.
9844
9845 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
9846 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
9847 (grub_xnu_fill_devicetree): New prototype.
9848 (grub_xnu_heap_real_start): New variable.
9849 * loader/xnu.c (get_name_ptr): New function.
9850 (grub_xnu_load_driver): Fill namelen and name.
9851
9852 64-bit xnu support.
9853
9854 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
9855 and 'loader/macho64.c'.
9856 * conf/i386-pc.rmk: Likewise.
9857 * conf/x86_64-efi.rmk: Likewise.
9858 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
9859 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
9860 * include/grub/macho.h (grub_macho_segment64): New structure.
9861 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
9862 (grub_macho_size32): ... to this.
9863 (grub_macho32_get_entry_point): Renamed from ...
9864 (grub_macho_get_entry_point32): ... to this.
9865 (grub_macho_contains_macho64): New prototype.
9866 (grub_macho_size64): Likewise.
9867 (grub_macho_get_entry_point64): Likewise.
9868 (grub_macho32_load): Renamed from ...
9869 (grub_macho_load32): ... to this.
9870 (grub_macho32_filesize): Renamed from ...
9871 (grub_macho_filesize32): ... to this.
9872 (grub_macho32_readfile): Renamed from ...
9873 (grub_macho_readfile32): ... to this.
9874 (grub_macho_filesize64): New prototype.
9875 (grub_macho_readfile64): Likewise.
9876 (grub_macho_parse32): Likewise.
9877 (grub_macho_parse64): Likewise.
9878 * loader/macho.c: Split into ...
9879 * loader/machoXX.c: ... and this. Replace 32 with XX.
9880 * loader/macho32.c: New file.
9881 * loader/macho64.c: Likewise.
9882 * loader/xnu.c (grub_xnu_is_64bit): New variable.
9883 (grub_cmd_xnu_kernel): Make 32-bit only.
9884 (grub_cmd_xnu_kernel64): New function.
9885 (grub_xnu_load_driver): Support Mach-O 64.
9886 (grub_cmd_xnu_mkext): Likewise.
9887 * util/grub.d/30_os-prober.in (osx_entry): New function.
9888 Generate entries for 64-bit boot too.
9889
9890 Eliminate ad-hoc tree format in XNU and EfiEmu.
9891
9892 * efiemu/main.c (grub_efiemu_prepare): Update comment.
9893 * efiemu/pnvram.c: Rewritten to use environment variables.
9894 All users updated.
9895
9896 Inline utf16_to_utf8.
9897
9898 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
9899 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
9900 All users updated.
9901 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
9902
9903 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
9904 * commands/usbtest.c (grub_usb_get_string): ... move here.
9905 (usb_print_str): Fix error handling.
9906 * include/grub/usb.h (grub_usb_get_string): Remove.
9907
9908 UTF-8 to UTF-16 transformation.
9909
9910 * conf/common.rmk (pkglib_MODULES): Add charset.mod
9911 (charset_mod_SOURCES): New variable.
9912 (charset_mod_CFLAGS): Likewise.
9913 (charset_mod_LDFLAGS): Likewise.
9914 * include/grub/utf.h: New file.
9915 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
9916
9917 Support for device properties.
9918
9919 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
9920 (grub_xnu_devprop_device_header): Likewise.
9921 (grub_xnu_devprop_device_descriptor): Likewise.
9922 (grub_xnu_devprop_add_device): New prototype.
9923 (grub_xnu_devprop_remove_device): Likewise.
9924 (grub_xnu_devprop_remove_property): Likewise.
9925 (grub_xnu_devprop_add_property_utf8): Likewise.
9926 (grub_xnu_devprop_add_property_utf16): Likewise.
9927 (grub_cpu_xnu_init): Likewise.
9928 (grub_cpu_xnu_fini): Likewise.
9929 (grub_cpu_xnu_unload): Likewise.
9930 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
9931 (property_descriptor): Likewise.
9932 (devices): New variable.
9933 (grub_xnu_devprop_remove_property): New function.
9934 (grub_xnu_devprop_add_device): Likewise.
9935 (grub_xnu_devprop_remove_device): Likewise.
9936 (grub_xnu_devprop_add_property): Likewise.
9937 (grub_xnu_devprop_add_property_utf8): Likewise.
9938 (grub_xnu_devprop_add_property_utf16): Likewise.
9939 (hextoval): Likewise.
9940 (grub_cpu_xnu_fill_devprop): Likewise.
9941 (grub_cmd_devprop_load): Likewise.
9942 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
9943 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
9944 (cmd_devprop_load): New variable.
9945 (grub_cpu_xnu_init): New function.
9946 (grub_cpu_xnu_fini): Likewise.
9947 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
9948 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
9949 (grub_cmd_xnu_devtree): Likewise.
9950 (hextoval): New function.
9951 (unescape): Likewise.
9952 (grub_xnu_fill_devicetree): Likewise.
9953
9954 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
9955 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
9956
0945f181
VS
99572009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
9958
9959 Workaround for broken ATI VBE.
9960
9961 * video/i386/pc/vbe.c (last_set_mode): New variable.
9962 (grub_vbe_set_video_mode): Set 'last_set_mode'.
9963 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
9964 (grub_video_vbe_setup): Don't check for reserved flag.
9965
0ad46fd7 99662009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
9967
9968 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
9969 the `find' command.
9970
c179ebe4
VS
99712009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 UUID support for HFS.
9974
9975 * fs/hfs.c (grub_hfs_uuid): New function.
9976 (grub_hfs_fs): New value .uuid.
9977 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
9978
0ad46fd7 99792009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
9980
9981 Fix a segfault with parsing unknown long options.
9982
9983 * util/grub-mkrelpath.c (options): Zero terminate it.
9984
c4a3e41a
CPE
99852009-12-13 Carles Pina i Estany <carles@pina.cat>
9986
9987 * include/grub/misc.h (grub_puts): New declaration.
9988 (grub_puts_): Likewise.
a22008a6 9989 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
9990 (grub_puts_): Likewise.
9991
2e8a7602
RM
99922009-12-13 Robert Millan <rmh.grub@aybabtu.com>
9993
9994 * util/grub-probe.c (probe): Improve error message.
9995
b50b77b9
RM
99962009-12-13 Robert Millan <rmh.grub@aybabtu.com>
9997
9998 * loader/i386/multiboot_elfxx.c
9999 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
10000 initialization.
10001
100022009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10003
10004 Relocator framework
10005
10006 * loader/i386/xnu_helper.S: Removed. All users updated.
10007 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
10008 (relocator_mod_SOURCES): New variable.
10009 (relocator_mod_CFLAGS): Likewise.
10010 (relocator_mod_LDFLAGS): Likewise.
10011 (relocator_mod_ASFLAGS): Likewise.
10012 * conf/x86_64.rmk: Likewise.
10013 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
10014 (grub_multiboot_payload_entry_offset): Likewise.
10015 (grub_multiboot_forward_relocator): Likewise.
10016 (grub_multiboot_forward_relocator_end): Likewise.
10017 (grub_multiboot_backward_relocator): Likewise.
10018 (grub_multiboot_backward_relocator_end): Likewise.
10019 (grub_multiboot_payload_eip): New variable.
10020 (grub_multiboot_payload_orig): Likewise.
10021 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
10022 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
10023 * include/grub/i386/memory.h
10024 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
10025 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
10026 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
10027 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
10028 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
10029 * include/grub/i386/relocator.h: New file.
10030 * include/grub/x86_64/relocator.h: Likewise.
10031 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
10032 (XNU_RELOCATOR): New macro.
10033 (grub_xnu_launcher_start): Remove.
10034 (grub_xnu_launcher_end): Likewise.
10035 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
10036 (grub_xnu_heap_real_start): Remove.
10037 (grub_xnu_heap_start): Change to void *. All users updated.
10038 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
10039 * lib/i386/relocator.c: New file.
10040 * lib/i386/relocator_asm.S: Likewise.
10041 * lib/i386/relocator_backward.S: Likewise.
10042 * lib/mips/relocator.c: Likewise.
10043 * lib/mips/relocator_asm.S: Likewise.
10044 * lib/relocator.c: Likewise.
10045 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
10046 (entry): Removed.
10047 (playground): Likewise.
10048 (grub_multiboot_payload_orig): New variable.
10049 (grub_multiboot_payload_dest): Likewise.
10050 (grub_multiboot_payload_size): Likewise.
10051 (grub_multiboot_payload_eip): Likewise.
10052 (grub_multiboot_payload_esp): Likewise.
10053 (grub_multiboot_boot): Use grub_relocator32_boot.
10054 (grub_multiboot_unload): Free relocators.
10055 (grub_multiboot): Setup stack. Use relocators.
10056 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
10057 (grub_multiboot_load_elfXX): Use relocators.
10058 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
10059 (grub_multiboot_payload_size): Likewise.
10060 (grub_multiboot_payload_dest): Likewise.
10061 (grub_multiboot_payload_entry_offset): Likewise.
10062 (grub_multiboot_forward_relocator): Likewise.
10063 (grub_multiboot_backward_relocator): Likewise.
10064 (grub_multiboot_real_boot): Likewise.
10065 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
10066 (grub_xnu_entry_point): Likewise.
10067 (grub_xnu_arg1): Likewise.
10068 (grub_xnu_stack): Likewise.
10069 (grub_xnu_launch): Removed.
10070 (grub_xnu_boot_resume): New function.
10071 (grub_xnu_boot): Use relocators.
10072 * loader/i386/xnu_helper.S: Removed.
10073 * loader/xnu.c (grub_xnu_heap_start): New variable.
10074 (grub_xnu_heap_size): Likewise.
10075 (grub_xnu_heap_malloc): Use relocators.
10076 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
10077
29eb90c6
VS
100782009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
10081 anything.
10082
31027430
CPE
100832009-12-13 Carles Pina i Estany <carles@pina.cat>
10084
10085 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
10086 GRUB_ERR_NONE before calling grub_env_set.
10087
dc0c71d9
RM
100882009-12-12 Robert Millan <rmh@aybabtu.com>
10089
10090 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
10091 * genmk.rb (video): New variable.
10092 (CLEANFILES, VIDEOFILES): Add #{video}.
10093 (#{video}): New target rule.
10094 * genvideolist.sh: New file.
10095 * Makefile.in (pkglib_DATA): Add video.lst.
10096 (video.lst): New target rule.
10097 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
10098 `video.lst'.
10099 * util/grub.d/30_os-prober.in: Replace `vbe' with
10100 ${GRUB_VIDEO_BACKEND}.
10101
2a4bfcf0
RM
101022009-12-11 Robert Millan <rmh.grub@aybabtu.com>
10103
10104 * THANKS: Add David Miller.
10105
2a3aa4d5
RM
101062009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 libpciaccess support.
10109
10110 * Makefile.in (LIBPCIACCESS): New variable.
10111 (enable_grub_emu_pci): Likewise.
10112 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
10113 util/pci.c and commands/lspci.c.
10114 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
10115 * configure.ac (grub-emu-pci): New option.
10116 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
10117 (grub_pci_device_unmap_range): Likewise.
10118 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
10119 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
10120 (grub_pci_address_t) [!GRUB_UTIL]: New type.
10121 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
10122 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
10123 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
10124 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
10125 * include/grub/pciutils.h: New file.
10126 * util/pci.c: Likewise.
10127
0ad46fd7 101282009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
10129
10130 * util/misc.c: Don't include <errno.h> twice.
10131
0ad46fd7 101322009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
10133
10134 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
10135 name in an error message.
10136 (grub_biosdisk_rw): Likewise.
10137
2e59983c
VS
101382009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 Eliminate NTFS 4Gib barrier.
10141
10142 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
10143 (read_run_data): Likewise.
10144 (grub_ntfs_read_run_list): Likewise.
10145 (grub_ntfs_read_block): Likewise.
10146 (grub_ntfs_iterate_dir): Likewise.
10147 (read_mft): Likewise.
10148 (read_data): Likewise.
10149 Use COM_LOG_LEN.
10150 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
10151 to avoid 64-bit division
10152 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
10153 (grub_ntfs_rlst): Use grub_disk_addr_t.
10154
71ee178a
VS
101552009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 Eliminate grub-fstest 4Gib barrier.
10158
10159 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
10160 (read_file): Fix error reporting.
10161
2520d4b8
VS
101622009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10163
10164 Eliminate hexdump 4Gib barrier.
10165
10166 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
10167 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
10168
e1f27065
VS
101692009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
10172 Fixes amarsh bug.
10173
1a0f7f45
RM
101742009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
10175
10176 Remove miscellaneous files in distclean target.
10177
10178 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
10179
c631d9fb
CW
101802009-12-09 Colin Watson <cjwatson@ubuntu.com>
10181
10182 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
10183 if they're already set. This resolves the conflict between my
10184 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
10185 fixing the --grub-probe option again.
10186 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
10187 change on 2009-10-06, so that we now once again source
10188 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
10189
7c7b6106
RM
101902009-12-08 Robert Millan <rmh.grub@aybabtu.com>
10191
10192 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
10193 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
10194 `util/devicemap.c'.
10195
e3069ec1
CPE
101962009-12-08 Carles Pina i Estany <carles@pina.cat>
10197
10198 * include/grub/misc.h (grub_printf_): New declaration.
10199 * kern/misc.c (grub_printf_): New definition.
10200 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
10201 instead of `grub_printf' and `_'.
10202 * normal/menu_entry.c (store_completion): Likewise.
10203 (run): Likewise.
10204 (grub_menu_entry_run): Likewise.
10205 * normal/menu_text.c (grub_wait_after_message): Likewise.
10206 (notify_booting): Likewise.
10207 (notify_fallback): Likewise.
10208 (notify_execution_failure): Likewise.
10209
d6ceebf1
CW
102102009-12-07 Colin Watson <cjwatson@ubuntu.com>
10211
10212 * configure.ac: Check for vasprintf.
10213 * util/misc.c (asprintf): Move allocation from here ...
10214 (vasprintf): ... to here. New function.
10215 (xasprintf): New function.
10216 * include/grub/util/misc.h (vasprintf, xasprintf): Add
10217 prototypes.
10218 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
10219 * util/grub-mkfont.c (write_font): Likewise.
10220 * util/grub-probe.c (probe): Likewise.
10221 * util/hostdisk.c (make_device_name): Likewise.
10222
de6daa8b
DM
102232009-12-06 David S. Miller <davem@sunset.davemloft.net>
10224
10225 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
10226 anything even prefixed with 'cdrom' as a cdrom.
10227
0ad46fd7 102282009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
10229
10230 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
10231 mount points.
10232
98d3dc02
CPE
102332009-12-05 Carles Pina i Estany <carles@pina.cat>
10234
10235 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
10236 grub_gettext_msg_list.
10237 (grub_gettext_gettranslation_from_position): Return const char *
10238 and not char *.
a2c1332b 10239 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
10240 returns from the list if existing there.
10241 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
10242 (grub_gettext_delete_list): Delete the list.
10243 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
10244 lang environment variable is changed.
10245 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
10246
b283f108
VS
102472009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 Rename kernel.mod to kernel.img.
10250
10251 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
10252 (kernel_mod_EXPORTS): Rename to ...
10253 (kernel_img_EXPORTS): ... this.
10254 (kernel_mod_SOURCES): Rename to ...
10255 (kernel_img_SOURCES): ... this.
10256 (kernel_mod_HEADERS): Rename to ...
10257 (kernel_img_HEADERS): ... this. All users updated.
10258 (kernel_mod_CFLAGS): Rename to ...
10259 (kernel_img_CFLAGS): ... this.
10260 (kernel_mod_ASFLAGS): Rename to ...
10261 (kernel_img_ASFLAGS): ... this.
10262 (kernel_mod_LDFLAGS): Rename to ...
10263 (kernel_img_LDFLAGS): ... this.
10264 * conf/x86_64-efi.rmk: Likewise.
10265 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
10266 (read_kernel_image): ... this. All users updated.
10267 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
10268
69055f8a
CPE
102692009-12-05 Carles Pina i Estany <carles@pina.cat>
10270
10271 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
10272 (print_spaces): New function.
10273 (grub_print_ucs4): New function.
10274 (getstringwidth): New function.
10275 (print_message_indented): New function.
10276 (print_message): Gettexttize strings using print_message_indented.
10277 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
10278 width.
10279 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 10280 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
10281 Gettextize.
10282 * normal/menu_entry.c (store_completion): Cleanup the gettextized
10283 string.
10284 (run): Likewise.
10285 (grub_menu_entry_run): Likewise.
10286 * PO/POTFILES: Add normal/menu_entry.c.
10287
f616f51c
VS
102882009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
10291
57bbe3be
CPE
102922009-12-05 Carles Pina i Estany <carles@pina.cat>
10293
10294 * util/grub-install.in: Install gettext .mo files.
10295 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
10296
013d67a1
CPE
102972009-12-05 Carles Pina i Estany <carles@pina.cat>
10298
10299 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
10300 grub_dprintf.
10301
fb954db0
RM
103022009-12-05 Robert Millan <rmh.grub@aybabtu.com>
10303
10304 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
10305 non-firmware-dependant one in realmode.S takes precedence.
10306
6b8474f8
RM
103072009-12-04 Robert Millan <rmh.grub@aybabtu.com>
10308
10309 * commands/halt.c: Replace misc arch-specific headers with
10310 `<grub/misc.h>'.
10311 * commands/reboot.c: Likewise.
10312 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
10313 `<grub/misc.h>'.
10314 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
10315 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
10316 (kernel_img_SOURCES): ... to here.
10317
10318 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
10319 * include/grub/i386/pc/init.h: Likewise.
10320 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
10321 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
10322
10323 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
10324
10325 * include/grub/i386/halt.h: Remove.
10326 * include/grub/i386/reboot.h: Likewise.
10327
10328 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
10329
4b2e6ca2
DM
103302009-12-03 David S. Miller <davem@sunset.davemloft.net>
10331
10332 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
10333 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
10334 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
10335 "progname.h"
10336 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
10337 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10338 (usage): Add missing comma in printf.
10339
5239348f
RM
103402009-12-02 Robert Millan <rmh.grub@aybabtu.com>
10341
10342 Use the same reboot approach on i386 coreboot and qemu as we do on
10343 BIOS.
10344
10345 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
10346 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
10347 * kern/i386/reboot.c: Remove.
10348 * include/grub/i386/reboot.h (grub_reboot): Export function.
10349 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
10350 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
10351 0xf000:0xfff0 instead of 0xffff:0x0000.
10352 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
10353 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
10354
ef34cbd4
RM
103552009-11-30 Robert Millan <rmh.grub@aybabtu.com>
10356
10357 Fix $srcdir != $objdir build.
10358
10359 * Makefile.in (po/%.po): Rewrite as ...
10360 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
10361
dc9837ea
ST
103622009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
10363
10364 Fix GNU/Hurd grub-install crash.
10365 * util/grub-probe.c (probe): Try to access `path' only when it is not
10366 NULL.
10367
2f857f98
VS
103682009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 Correct module naming.
10371
10372 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
10373 (GRUB_MOD_INIT(efi_uga)): ... to this
10374 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
10375 (GRUB_MOD_FINI(efi_uga)): ... to this
10376 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
10377 (GRUB_MOD_INIT(efi_gop)): ... to this
10378 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
10379 (GRUB_MOD_FINI(efi_gop)): ... to this
10380
c5448046
RM
103812009-11-28 Robert Millan <rmh.grub@aybabtu.com>
10382
10383 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
10384 translatable.
10385 (usage): Translate `arg' strings using gettext().
10386 Thanks to Jordi Mallach for the suggestion.
10387
c85184ad
VS
103882009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 GOP support. Based on patch from Bean
10391 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
10392
10393 * video/efi_gop.c: New file.
10394 * include/grub/efi/graphics_output.h: Likewise.
10395 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
10396 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
10397 variables.
10398 * conf/x86_64-efi.rmk: Likewise.
10399
8a4c48d8
VS
104002009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 Rename efi_fb to efi_uga.
10403
10404 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
10405 'efi_uga.mod'.
10406 (efi_fb_mod_SOURCES): Rename this ...
10407 (efi_uga_mod_SOURCES): ... to this.
10408 (efi_fb_mod_CFLAGS): Rename this ...
10409 (efi_uga_mod_CFLAGS): ... to this.
10410 (efi_fb_mod_LDFLAGS): Rename this ...
10411 (efi_uga_mod_LDFLAGS): ... to this.
10412 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
10413 'efi_uga.mod'.
10414 (efi_fb_mod_SOURCES): Rename this ...
10415 (efi_uga_mod_SOURCES): ... to this.
10416 (efi_fb_mod_CFLAGS): Rename this ...
10417 (efi_uga_mod_CFLAGS): ... to this.
10418 (efi_fb_mod_LDFLAGS): Rename this ...
10419 (efi_uga_mod_LDFLAGS): ... to this.
10420 * video/efi_fb.c: Move this ...
10421 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
10422
fb6c1a7b
RM
104232009-11-27 Robert Millan <rmh.grub@aybabtu.com>
10424
10425 * po/README: New file. Explain our PO file workflow.
10426
3bc7896c
RM
104272009-11-27 Robert Millan <rmh.grub@aybabtu.com>
10428
10429 * po/ChangeLog: Remove. Move relevant entries back to ...
10430 * ChangeLog: ... here.
10431 * po/ca.po: Remove (now handled by TLP).
10432 * po/id.po: Likewise.
10433 * po/zh_CN.po: Likewise.
10434 * Makefile.in (LINGUAS): Initialize in a way that supports
10435 empty set.
10436
9ed4841d
RM
104372009-11-27 Robert Millan <rmh.grub@aybabtu.com>
10438
10439 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
10440 reliing on po/LINGUAS.
10441 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
10442 (po/%.po): ... this.
10443
0ad46fd7 104442009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
10445
10446 * util/i386/efi/grub-mkimage.c: Include "progname.h".
10447 (main): Use `program_name' instead of nonexistent `progname'.
10448
e30dd392
FZ
104492009-11-26 Felix Zielcke <fzielcke@z-51.de>
10450
10451 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
10452 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
10453
7656de4f
RM
104542009-11-26 Robert Millan <rmh.grub@aybabtu.com>
10455
10456 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
10457 commit.
10458 * conf/i386-efi.rmk: Likewise.
10459 * conf/i386-ieee1275.rmk: Likewise.
10460 * conf/powerpc-ieee1275.rmk: Likewise.
10461 * conf/sparc64-ieee1275.rmk: Likewise.
10462 * conf/x86_64-efi.rmk: Likewise.
10463
db77c4d4
FZ
104642009-11-26 Felix Zielcke <fzielcke@z-51.de>
10465
10466 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
10467
a755bb04
FZ
104682009-11-26 Felix Zielcke <fzielcke@z-51.de>
10469
10470 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
10471
8a4c07fd
RM
104722009-11-26 Robert Millan <rmh.grub@aybabtu.com>
10473
10474 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
10475 (grub_mkdevicemap_SOURCES): New variable.
10476 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
10477 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
10478 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
10479 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
10480 (grub_mkdevicemap_SOURCES): Remove.
10481 * conf/i386-efi.rmk: Likewise.
10482 * conf/i386-ieee1275.rmk: Likewise.
10483 * conf/i386-pc.rmk: Likewise.
10484 * conf/powerpc-ieee1275.rmk: Likewise.
10485 * conf/sparc64-ieee1275.rmk: Likewise.
10486 * conf/x86_64-efi.rmk: Likewise.
10487 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
10488 (usage): Fix strings to use `program_name'.
10489 (main): Initialize gettext.
10490 * util/grub-editenv.c: Likewise.
10491 * util/grub-emu.c: Likewise.
10492 * util/grub-fstest.c: Likewise.
10493 * util/grub-mkdevicemap.c: Likewise.
10494 * util/grub-mkfont.c: Likewise.
10495 * util/grub-mkrelpath.c: Likewise.
10496 * util/grub-pe2elf.c: Likewise.
10497 * util/grub-probe.c: Likewise.
10498 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
10499 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
10500 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10501
10502 * util/misc.c: Include `"progname.h"'.
10503 (progname): Remove variable.
10504 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
10505
6f61ed55
FZ
105062009-11-25 Felix Zielcke <fzielcke@z-51.de>
10507
10508 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
10509 printf and print a newline after the menuentry header line.
10510 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
10511
f022876b
FZ
105122009-11-25 Felix Zielcke <fzielcke@z-51.de>
10513
10514 autoconf >= 2.60 support $(localedir).
10515
10516 * INSTALL: Note that autoconf 2.60 is required.
10517 * configure.ac (AC_PREREQ): Bump to 2.60.
10518 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
10519 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
10520
6717926e
YB
105212009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
10522
10523 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
10524 aclocal is run.
10525
08806a54
RM
105262009-11-25 Robert Millan <rmh.grub@aybabtu.com>
10527
10528 * normal/main.c (grub_normal_read_line): Fix off-by-one
10529 buffer overflow.
10530
13b33fba
RM
105312009-11-25 Robert Millan <rmh.grub@aybabtu.com>
10532
10533 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
10534 "parser.grub" in grub_command_execute() call.
10535
4a8572e9
CPE
105362009-11-24 Carles Pina i Estany <carles@pina.cat>
10537
10538 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
10539 * conf/i386-efi.rmk: Likewise.
10540 * conf/i386-ieee1275.rmk: Likewise.
10541 * conf/i386-pc.rmk: Likewise.
10542 * conf/powerpc-ieee1275.rmk: Likewise.
10543 * conf/sparc64-ieee1275.rmk: Likewise.
10544 * conf/x86_64-efi.rmk: Likewise.
10545 * gettext/gettex.c: Include <grub/i18n.h>.
10546 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
10547 here ...
10548 * include/grub/i18n.h: ... to here
10549 * include/grub/i18n.h: ... to here.
10550 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 10551 (grub_gettext_dummy): Move above user.
4a8572e9 10552
bee48093
FZ
105532009-11-24 Felix Zielcke <fzielcke@z-51.de>
10554
10555 * util/Makefile.in (install-local): Convert a `for' into a normal
10556 shell expansion.
10557
a031e91c
RM
105582009-11-24 Robert Millan <rmh.grub@aybabtu.com>
10559
10560 * autogen.sh: Add automake call.
10561 * config.guess: Remove.
10562 * config.sub: Likewise.
10563 * install-sh: Likewise.
10564
26bec39d
FZ
105652009-11-24 Felix Zielcke <fzielcke@z-51.de>
10566
10567 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
10568
8e2532fd
FZ
105692009-11-24 Felix Zielcke <fzielcke@z-51.de>
10570
10571 * util/Makefile.in (install-local): Convert a make `$(foreach)'
10572 function to a normal shell `for'.
10573
fefa1b7d
FZ
105742009-11-24 Felix Zielcke <fzielcke@z-51.de>
10575
10576 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
10577
4501250b
FZ
105782009-11-24 Felix Zielcke <fzielcke@z-51.de>
10579
10580 * util/grub-mkrelpath.c: New file.
10581 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
10582 (grub_mkrelpath_SOURCES): New variable.
10583 * include/grub/util/misc.h: New function prototype.
10584 * util/misc.c (make_system_path_relative_to_its_root): New function.
10585
10586 * util/grub-mkconfig_lib.in (bindir): New variable.
10587 (grub_mkrelpath): Likewise.
10588 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
10589
10590 * util/probe.c (probe): Make the file path relative to its root.
10591 Change a info message to use the GRUB path. Enable again the
10592 check if we can read the file with GRUB facilities.
10593
10594 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
10595 to its root.
10596
11d9778b
FZ
105972009-11-24 Felix Zielcke <fzielcke@z-51.de>
10598
10599 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
10600 platform.
10601
4465287d
FZ
106022009-11-24 Felix Zielcke <fzielcke@z-51.de>
10603
10604 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
10605 strncmp().
10606
62b47f22
FZ
106072009-11-24 Felix Zielcke <fzielcke@z-51.de>
10608
10609 * util/getroot.c (grub_util_is_dmraid): New function.
10610 (grub_util_get_dev_abstraction): Treat dmraid and multipath
10611 devices as normal ones, not as LVM.
10612
1eafb9b9 106132009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
10614
10615 * conf/common.rmk: Add grub-gettext_lib target and updates
10616 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
10617 LDFLAGS.
10618 * gettext/gettext.c: New file. (Reads mo files).
10619 * include/grub/file.h (grub_file_pread): New prototype.
10620 * include/grub/i18n.h (_): New prototype.
10621 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
10622 prototypes.
10623 * kern/misc.c (grub_gettext_dummy): New function.
10624 * normal/menu_text.c: Include <grub/i18n.h>.
10625 * normal/menu_text.c (print_timeout): Gettexttize string.
10626 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
10627 * po/POTFILES: Add `normal/menu_text.c'.
10628 * po/ca.po: Add new translations.
c3ea6bd4
CPE
10629 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
10630 gettext module and defines locale_dir and lang in grub.cfg.
10631 * NEWS: Add gettext support.
10632
0fdb2568
RM
106332009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10634
10635 * util/hostdisk.c: Include `<grub/i18n.h>'.
10636 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
10637 (make_device_name): Rewrite using asprintf.
10638 (convert_system_partition_to_system_disk): Replace 0 with NULL.
10639 (find_system_device): If a device is not found, generate one just
10640 by reusing the OS path name.
10641 (read_device_map): Make it permissible for device.map not to exist.
10642
f515aa62
RM
106432009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10644
10645 * script/sh/execute.c: Move from here ...
10646 * script/execute.c: ... to here. Update all users.
10647 * script/sh/function.c: Move from here ...
10648 * script/function.c: ... to here. Update all users.
10649 * script/sh/lexer.c: Move from here ...
10650 * script/lexer.c: ... to here. Update all users.
10651 * script/sh/main.c: Move from here ...
10652 * script/main.c: ... to here. Update all users.
10653 * script/sh/parser.y: Move from here ...
10654 * script/parser.y: ... to here. Update all users.
10655 * script/sh/script.c: Move from here ...
10656 * script/script.c: ... to here. Update all users.
10657
f84b481b
RM
106582009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10659
10660 * configure.ac: Detect all `emu' platforms. Define
10661 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
10662 --enable-grub-emu logic. Disable include/grub/machine
10663 symlink on `emu' platforms.
10664
10665 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
10666 * gensymlist.sh.in: Likewise.
10667
10668 * include/grub/i386/coreboot/machine.h: Remove file.
10669 * include/grub/i386/efi/machine.h: Likewise.
10670 * include/grub/i386/ieee1275/machine.h: Likewise.
10671 * include/grub/i386/pc/machine.h: Likewise.
10672 * include/grub/i386/qemu/machine.h: Likewise.
10673 * include/grub/powerpc/ieee1275/machine.h: Likewise.
10674 * include/grub/sparc64/ieee1275/machine.h: Likewise.
10675 * include/grub/x86_64/efi/machine.h: Likewise.
10676
10677 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
10678 * commands/halt.c: Likewise.
10679 * commands/reboot.c: Likewise.
10680 * include/grub/autoefi.h: Likewise.
10681 * include/grub/i386/at_keyboard.h: Likewise.
10682 * include/grub/i386/kernel.h: Likewise.
10683 * include/grub/i386/loader.h: Likewise.
10684 * include/grub/i386/pc/memory.h: Likewise.
10685 * kern/dl.c: Likewise.
10686 * kern/i386/coreboot/init.c: Likewise.
10687 * loader/i386/bsd.c: Likewise.
10688 * loader/i386/linux.c: Likewise.
10689 * loader/multiboot_loader.c: Likewise.
10690 * term/i386/pc/serial.c: Likewise.
10691 * term/usb_keyboard.c: Likewise.
10692
10693 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
10694 `<grub/machine/machine.h>'
10695 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
10696 * util/misc.c: Remove `<grub/machine/machine.h>' and
10697 `<grub/machine/time.h>'.
10698
10699 * Makefile.in (enable_grub_emu): Remove variable.
10700 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
10701
10702 * conf/any-emu.rmk: New file.
10703 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
10704 (grub_emu_init.c): Move from here ...
10705 * conf/any-emu.rmk: ... to here.
10706
10707 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
10708 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
10709 * conf/any-emu.rmk: ... to here.
10710
4efeab03
RM
107112009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10712
10713 * include/grub/parser.h (grub_parser_register): Document need
10714 of `name' parameter.
10715 * normal/main.c (grub_normal_read_line): Simplify prompt string.
10716 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
10717 "sh" to "grub".
10718
ea1dd8bf
RM
107192009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10720
10721 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
10722 `$(XGETTEXT)'.
10723 * include/grub/i18n.h (N_): New macro.
10724 * util/mkisofs/mkisofs.h: Likewise.
10725 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
10726 around N_().
10727 (usage): Use gettext() to translate help strings when printing them.
10728
0c140626
RM
107292009-11-23 Robert Millan <rmh.grub@aybabtu.com>
10730
10731 Based on patch from Bean
10732 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
10733
10734 * video/efi_fb.c: New file.
10735 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
10736 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
10737 variables.
10738 * conf/x86_64-efi.rmk: Likewise.
10739
87d58298
RM
107402009-11-22 Robert Millan <rmh.grub@aybabtu.com>
10741
10742 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
10743 * util/i386/pc/grub-setup.c: Likewise.
10744
994cc3a3
ST
107452009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
10746
10747 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
10748 <hurd/fs.h>
10749 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
10750 file_get_storage_info to implement grub_guess_root_device.
10751
26a61d6a
FZ
107522009-11-21 Felix Zielcke <fzielcke@z-51.de>
10753
10754 * Makefile.in (target): Use make's builtin $(shell) function
10755 instead of calling directly $(SHELL) to create the locale directories,
10756 inside the $(foreach) function.
10757
74ff1dd5
FZ
107582009-11-21 Felix Zielcke <fzielcke@z-51.de>
10759
10760 * util/grub-mkrescue.in: Print an error and usage if output option
10761 has not been given.
10762
0b787d0e
FZ
107632009-11-21 Felix Zielcke <fzielcke@z-51.de>
10764
10765 Patch from Loïc Minier <loic.minier@ubuntu.com>.
10766 * util/grub.d/30_os-prober.in: Cope with Linux entries where
10767 root and /boot are on different devices.
10768
1164b270
RM
107692009-11-21 Robert Millan <rmh.grub@aybabtu.com>
10770
10771 Fix build for srcdir != objdir.
10772
10773 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
10774 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
10775 $(srcdir).
10776 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
10777 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
10778 reference for input.
10779
13774a2f
RM
107802009-11-21 Robert Millan <rmh.grub@aybabtu.com>
10781
10782 * util/grub-mkrescue.in: Use source directory direcly (without copiing
10783 or hardlinking it). Remove -J option, Joliet is not compatible with
10784 multiple source directories.
10785
efda854e
RM
107862009-11-21 Carles Pina i Estany <carles@pina.cat>
107872009-11-21 Robert Millan <rmh.grub@aybabtu.com>
10788
10789 * util/grub-mkrescue.in: Recognize `--override-directory' option.
10790 (process_input_dir): New function. Process an arbitrary input
10791 directory.
10792 Misc adjustments to support both "override mode" and system-wide mode.
10793
6c09890c
FZ
107942009-11-20 Felix Zielcke <fzielcke@z-51.de>
10795
10796 * configure.ac (UNIFONT_BDF): Rename to ...
10797 (FONT_SOURCE): ... this. Update all users.
10798
a797824f
FZ
107992009-11-20 Felix Zielcke <fzielcke@z-51.de>
10800
10801 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
10802 to the list of unifont files to look for.
10803
cd4f42b0
RM
108042009-11-19 Robert Millan <rmh.grub@aybabtu.com>
10805
10806 Patch from Joe Auricchio <jauricchio@gmail.com>
10807 * commands/minicmd.c (grub_mini_cmd_clear): New function.
10808 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
10809 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
10810
393c783d
FZ
108112009-11-19 Felix Zielcke <fzielcke@z-51.de>
10812
10813 * Makefile.in (install-local): Add a missing backslash.
10814
b2f1e327
FZ
108152009-11-19 Felix Zielcke <fzielcke@z-51.de>
10816
10817 * include/grub/x86_64/io.h: New file.
10818
f577f7a0
RM
108192009-11-19 Robert Millan <rmh.grub@aybabtu.com>
10820
10821 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
10822 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
10823 Include `"progname.h"'.
10824 (main): Initialize gettext.
10825 * util/i386/pc/grub-setup.c: Gettexttize.
10826 * util/i386/pc/grub-mkimage.c: Likewise.
10827
10828 * Makefile.in (po/*.po): Redefine as ...
10829 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
10830
3bc7896c
RM
10831 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
10832
c37943b6
RM
108332009-11-19 Robert Millan <rmh.grub@aybabtu.com>
10834
10835 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
10836 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
10837 (program_name): Remove.
10838 (main): Initialize gettext support.
6323f705
RM
10839 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
10840 Include `<libintl.h>'.
10841 (_): New macro.
c37943b6
RM
10842
10843 * util/mkisofs/eltorito.c: Gettexttize.
10844 * util/mkisofs/joliet.c: Likewise.
10845 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
10846 * util/mkisofs/multi.c: Likewise.
10847 * util/mkisofs/rock.c: Likewise.
10848 * util/mkisofs/tree.c: Likewise.
10849 * util/mkisofs/write.c: Likewise.
10850
3bc7896c
RM
10851 * po/POTFILES: Update with new files.
10852
5ce77c6e
RM
108532009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10854
10855 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
10856 * util/mkisofs/iso9660.h: Likewise.
10857 * util/mkisofs/joliet.c: Likewise.
10858 * util/mkisofs/mkisofs.c: Likewise.
10859 * util/mkisofs/mkisofs.h: Likewise.
10860 * util/mkisofs/rock.c: Likewise.
10861 * util/mkisofs/tree.c: Likewise.
10862 * util/mkisofs/write.c: Likewise.
10863
10864 * util/mkisofs/eltorito.c (rcsid): Remove.
10865 * util/mkisofs/hash.c: Likewise.
10866 * util/mkisofs/joliet.c: Likewise.
10867 * util/mkisofs/name.c: Likewise.
10868 * util/mkisofs/rock.c: Likewise.
10869 * util/mkisofs/tree.c: Likewise.
10870 * util/mkisofs/write.c: Likewise.
10871
1dabbc77
RM
108722009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10873
10874 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
10875 instead of static allocation.
10876 * util/mkisofs/match.h: Likewise.
10877
633877cb
RM
108782009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10879
3bc7896c
RM
10880 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
10881 and `util/grub.d/10_linux.in'.
633877cb
RM
10882 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
10883 translatable Shell files.
10884
af1c0c85
RM
108852009-11-18 Robert Millan <rmh.grub@aybabtu.com>
10886
10887 * Makefile.in ($(srcdir)/aclocal.m4): New target.
10888
769ae37b
RM
108892009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10890
10891 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 10892 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
10893 * util/grub.d/10_kfreebsd.in (bindir): New variable.
10894 Add gettext initialization.
10895 (kfreebsd_entry): Make menuentry output translatable.
10896
108972009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10898
10899 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
10900 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
10901 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
10902 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
10903 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 10904 * po/LINGUAS: New file.
769ae37b
RM
10905
109062009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10907
10908 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
10909 other things).
10910 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
10911 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
10912 bindtextdomain() calls for gettext initialization.
10913
109142009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10915
10916 * gnulib/progname.c: New file (imported from Gnulib).
10917 * gnulib/progname.h: Likewise.
10918 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
10919 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
10920 (usage): Replace `progname' with `program_name'.
10921 (main): Use set_program_name() for program name initialization.
10922
109232009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10924
10925 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
10926 from here ...
10927 * Makefile.in (CPPFLAGS): ... to here.
10928
109292009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10930
10931 * aclocal.m4: Move from here ...
10932 * acinclude.m4: ... to here.
10933 * autogen.sh: Add call to `aclocal'.
10934 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
10935
109362009-11-16 Robert Millan <rmh.grub@aybabtu.com>
10937
10938 * Makefile.in (CLEANFILES): Add `po/*.mo'.
10939 (LINGUAS): New variable.
10940 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
10941 (install-local): Install MO files.
10942 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
10943 * include/grub/i18n.h: New file.
3bc7896c
RM
10944 * po/POTFILES: New file.
10945 * po/ca.po: New file.
769ae37b
RM
10946 * util/grub.d/10_linux.in (bindir): New variable.
10947 Add gettext initialization.
10948 (linux_entry): Make menuentry output translatable.
10949 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
10950 (usage): Make --help output translatable.
10951 (main): Initialize gettext.
10952
02c0a6ad
RM
109532009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10954
10955 * import_gcry.py: New file (written by Vladimir with minor
10956 adjustments).
10957 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
10958 ciphers.
10959 * INSTALL: Document that Python is required for bootstrap.
10960
109612009-11-17 Robert Millan <rmh.grub@aybabtu.com>
10962
10963 Import ciphers from libgcrypt 1.4.4.
10964
10965 * lib/libgcrypt/cipher/ChangeLog
10966 * lib/libgcrypt/cipher/ac.c
10967 * lib/libgcrypt/cipher/arcfour.c
10968 * lib/libgcrypt/cipher/bithelp.h
10969 * lib/libgcrypt/cipher/blowfish.c
10970 * lib/libgcrypt/cipher/camellia-glue.c
10971 * lib/libgcrypt/cipher/camellia.c
10972 * lib/libgcrypt/cipher/camellia.h
10973 * lib/libgcrypt/cipher/cast5.c
10974 * lib/libgcrypt/cipher/cipher.c
10975 * lib/libgcrypt/cipher/crc.c
10976 * lib/libgcrypt/cipher/des.c
10977 * lib/libgcrypt/cipher/dsa.c
10978 * lib/libgcrypt/cipher/ecc.c
10979 * lib/libgcrypt/cipher/elgamal.c
10980 * lib/libgcrypt/cipher/hash-common.c
10981 * lib/libgcrypt/cipher/hash-common.h
10982 * lib/libgcrypt/cipher/hmac-tests.c
10983 * lib/libgcrypt/cipher/md.c
10984 * lib/libgcrypt/cipher/md4.c
10985 * lib/libgcrypt/cipher/md5.c
10986 * lib/libgcrypt/cipher/primegen.c
10987 * lib/libgcrypt/cipher/pubkey.c
10988 * lib/libgcrypt/cipher/rfc2268.c
10989 * lib/libgcrypt/cipher/rijndael-tables.h
10990 * lib/libgcrypt/cipher/rijndael.c
10991 * lib/libgcrypt/cipher/rmd.h
10992 * lib/libgcrypt/cipher/rmd160.c
10993 * lib/libgcrypt/cipher/rsa.c
10994 * lib/libgcrypt/cipher/seed.c
10995 * lib/libgcrypt/cipher/serpent.c
10996 * lib/libgcrypt/cipher/sha1.c
10997 * lib/libgcrypt/cipher/sha256.c
10998 * lib/libgcrypt/cipher/sha512.c
10999 * lib/libgcrypt/cipher/tiger.c
11000 * lib/libgcrypt/cipher/twofish.c
11001 * lib/libgcrypt/cipher/whirlpool.c
11002
af2f93ac
RM
110032009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11004
11005 Fix build for systems without error().
11006
11007 * gnulib/error.c: New file (imported from Gnulib).
11008 * gnulib/error.h: Likewise.
11009 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
11010 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
11011 (this variable is now used by error()).
11012
73fb3dd5
FZ
110132009-11-16 Felix Zielcke <fzielcke@z-51.de>
11014
814f5e96
FZ
11015 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
11016 instead of relying that char is signed.
73fb3dd5 11017
a691ca33
VS
110182009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11019
11020 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
11021 blocksize different from specified.
11022 (grub_pxefs_read): Likewise.
11023
2af8f0f4
FZ
110242009-11-16 Felix Zielcke <fzielcke@z-51.de>
11025
11026 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
11027
11028 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
11029 (grub_ata_readwrite): Likewise. Update 2 format strings.
11030 (grub_atapi_read): Likewise.
11031
11032 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
11033 * conf/i386.rmk (pkglib_MODULES): ... to here ...
11034 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
11035 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
11036 (ata_mod_LDFLAGS): Move from here ...
11037 * conf/i386.rmk: ... to here ...
11038 * conf/x86_64-efi.rmk: ... and here.
11039 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
11040 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
11041
83bdecaf
RM
110422009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11043
11044 Relicense multiboot.h, with RMS' blessing.
11045
11046 * include/multiboot.h: Change to X11 license.
11047
fd6fd3d7
RM
110482009-11-15 Robert Millan <rmh.grub@aybabtu.com>
11049
11050 Support --version in grub-mkisofs.
11051
11052 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
11053 (OPTION_VERSION): New macro.
11054 (ld_options): Recognize --version.
11055 (usage): Move `program_name' from here ...
11056 (program_name): ... to here. Add `static' qualifier.
11057 (main): Recognize `OPTION_VERSION'.
11058
16a88c49
FZ
110592009-11-15 Felix Zielcke <fzielcke@z-51.de>
11060
11061 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
11062 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
11063
a4158476
RM
110642009-11-14 Robert Millan <rmh.grub@aybabtu.com>
11065
11066 Fix help2man generation for mkisofs.
11067
11068 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
11069 (usage): Send output to stdout (rather than stderr).
11070
fc2208b0
RM
110712009-11-14 Robert Millan <rmh.grub@aybabtu.com>
11072
11073 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
11074 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
11075 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
11076 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
11077 (bin_SCRIPTS): Add `grub-mkfloppy'.
11078 (grub_mkfloppy_SOURCES): New variable.
11079
11080 * util/grub-mkrescue.in: New file.
11081 * util/i386/pc/grub-mkfloppy.in: New file.
11082
11083 * util/i386/coreboot/grub-mkrescue.in: Remove.
11084 * util/i386/pc/grub-mkrescue.in: Remove.
11085
8d0edf4a
RM
110862009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11087
11088 * include/grub/multiboot.h (struct grub_multiboot_header): Move
11089 from here ...
11090 * include/multiboot.h (struct multiboot_header): ... to here. Update
11091 all users.
11092 * include/grub/multiboot.h (struct grub_multiboot_info): Move
11093 from here ...
11094 * include/multiboot.h (struct multiboot_info): ... to here. Update
11095 all users.
11096 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
11097 from here ...
11098 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
11099 Update all users.
11100 * include/grub/multiboot.h (struct grub_mod_list): Move
11101 from here ...
11102 * include/multiboot.h (struct multiboot_mod_list): ... to here.
11103 Update all users.
11104
a73f5969
RM
111052009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11106
11107 * include/multiboot2.h (multiboot_word): Rename from this ...
11108 (multiboot2_word): ... to this. Update all users.
11109 (multiboot_header): Rename from this ...
11110 (multiboot2_header): ... to this. Update all users.
11111 (multiboot_tag_header): Rename from this ...
11112 (multiboot2_tag_header): ... to this. Update all users.
11113 (multiboot_tag_start): Rename from this ...
11114 (multiboot2_tag_start): ... to this. Update all users.
11115 (multiboot_tag_name): Rename from this ...
11116 (multiboot2_tag_name): ... to this. Update all users.
11117 (multiboot_tag_module): Rename from this ...
11118 (multiboot2_tag_module): ... to this. Update all users.
11119 (multiboot_tag_memory): Rename from this ...
11120 (multiboot2_tag_memory): ... to this. Update all users.
11121 (multiboot_tag_unused): Rename from this ...
11122 (multiboot2_tag_unused): ... to this. Update all users.
11123 (multiboot_tag_end): Rename from this ...
11124 (multiboot2_tag_end): ... to this. Update all users.
11125
1c8927f0
RM
111262009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11127
11128 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
11129 this platform we should support Multiboot1 first.
11130
11131 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
11132 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
11133 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
11134
6e1e0d89
RM
111352009-11-12 Robert Millan <rmh.grub@aybabtu.com>
11136
11137 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
11138 of write calls (converting them to fwrite() if they aren't already).
11139 (get_torito_desc): Likewise.
11140 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
11141
7f2b34d8
RM
111422009-11-12 Robert Millan <rmh.grub@aybabtu.com>
11143
11144 * util/i386/pc/grub-install.in: Move from here ...
11145 * util/grub-install.in: ... to here. Update all users.
11146
c0ef3311
CW
111472009-11-11 Colin Watson <cjwatson@ubuntu.com>
11148
11149 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
11150
e1f240ff
RM
111512009-11-11 Robert Millan <rmh.grub@aybabtu.com>
11152
11153 Support for El Torito without floppy emulation.
11154
11155 * util/mkisofs/eltorito.c: Include `<errno.h>'.
11156 (init_boot_catalog): Improve error handling.
11157 (get_torito_desc): Don't use floppy emulation unless requested by
11158 user. Patch boot information table when requested via
11159 `-boot-info-table'.
11160 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
11161 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
11162 (use_boot_info_table): New variables.
11163 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
11164 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
11165 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
11166 `--eltorito-emul-floppy'.
11167 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
11168 and `OPTION_ELTORITO_EMUL_FLOPPY'.
11169 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
11170 (use_boot_info_table, get_731): New prototypes.
11171 * util/mkisofs/write.c (get_731): New function.
11172
af7d4de5
FZ
111732009-11-11 Felix Zielcke <fzielcke@z-51.de>
11174
11175 Fix the generation of the man page.
11176
11177 * util/pc/i386/grub-install.in: Source
11178 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
11179
2c55dbc0
RM
111802009-11-11 Robert Millan <rmh.grub@aybabtu.com>
11181
11182 Large file support for grub-mkisofs.
11183
11184 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
11185 * util/mkisofs/mkisofs.c (next_extent, last_extent)
11186 (session_start): Upgrade type to `uint64_t'. Update all users.
11187 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
11188 (struct directory_entry): Upgrade type of `starting_block' and
11189 `size' to `uint64_t'. Update all users.
11190 (struct deferred): Remove unused structure.
11191 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
11192 Update all users.
11193 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
11194 file is larger than `UINT32_MAX'.
11195 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
11196 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
11197 return value.
11198 (struct deferred_write): Upgrade type of `extent' and `size' to
11199 `uint64_t'. Update all users.
11200 (last_extent_written): Upgrade type to `uint64_t'. Update all
11201 users.
11202 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
11203 Update all users. Upgrade type of `remain' to `int64_t' and
11204 `use' to `size_t'. Use error() to handle fread() errors.
11205 (write_files): Rely on write_one_file() rather than calling
11206 xfwrite() directly.
11207
6a9cead5
FZ
112082009-11-09 Felix Zielcke <fzielcke@z-51.de>
11209
11210 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
11211
4825d790
RM
112122009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11213
11214 * util/mkisofs/fnmatch.c: Remove.
11215 * util/mkisofs/getopt1.c: Likewise.
11216 * util/mkisofs/getopt.c: Likewise.
11217 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
11218 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
11219 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
11220 `gnulib/getopt1.c' and `gnulib/getopt.c'.
11221 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
11222
11223 * configure.ac: Detect `mingw32msvc' host_os.
11224 Check for lstat(), getuid() and getgid().
11225
11226 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
11227 instances of `u_char' with `uint8_t'.
11228
11229 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
11230 [!HAVE_GETUID] (getuid): New function (stub).
11231 [!HAVE_GETGID] (getgid): Likewise.
11232 [!HAVE_LSTAT] (lstat): Likewise.
11233 [!S_IROTH] (S_IROTH): New macro (dummy).
11234 [!S_IRGRP] (S_IRGRP): Likewise.
11235
84b860d8
RM
112362009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11237
11238 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
11239 conditional expression).
11240
66e9b712
RM
112412009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11242
11243 Import from Gnulib.
11244
11245 * gnulib/fnmatch.c: New file.
11246 * gnulib/fnmatch.h: Likewise.
11247 * gnulib/fnmatch_loop.c: Likewise.
11248 * gnulib/getopt.c: Likewise.
11249 * gnulib/getopt.h: Likewise.
11250 * gnulib/getopt1.c: Likewise.
11251 * gnulib/getopt_int.h: Likewise.
11252 * gnulib/gettext.h: Likewise.
11253
34f4a5b0
RM
112542009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11255
11256 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
11257 * normal/handler.c (read_handler_list): Likewise.
11258
ac451143
RM
112592009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11260
11261 Misc cleanup.
11262
11263 * kern/command.c (grub_register_command_prio): Use
11264 grub_zalloc() instead of explicitly zeroing data.
11265 * kern/list.c: Include `<grub/mm.h>'.
11266 (grub_named_list_find): Replace `0' with `NULL'.
11267 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
11268 (fs_module_list): Change type to `grub_named_list_t'. Update all
11269 users.
11270 * normal/dyncmd.c (read_command_list): Add space between function
11271 call and parenthesis.
11272 * normal/handler.c (read_handler_list): Likewise.
11273
4089b167
RM
112742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11275
11276 * normal/auth.c (punishment_delay): Moved from here ...
11277 (grub_auth_strcmp): ... to here (inside function).
11278
325f5037
RM
112792009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11280
11281 * include/grub/list.h (struct grub_named_list): Remove `const'
11282 qualifier from `name'.
11283 (struct grub_prio_list): Likewise.
11284
7aea29a3
RM
112852009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11286
11287 * normal/auth.c: Include `<grub/time.h>'.
11288 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
11289
3fd6f044
RM
112902009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11291
11292 * normal/auth.c (punishment_delay): New variable.
11293 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
11294 (grub_auth_check_authentication): Punish failed login attempts with
11295 an incremental (2^N) delay.
11296
a4cd68e4
RM
112972009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11298
11299 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
11300 path with $(srcdir).
11301
7ad12f43
VS
113022009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11303
11304 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
11305
c1129f03
RM
113062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11307
11308 * util/i386/coreboot/grub-mkrescue.in: New file.
11309 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
11310 variables.
11311
11312 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
11313 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
11314 * configure.ac: Add header and function checks to satisfy grub-mkisofs
11315 requirements.
11316 * util/mkisofs/defaults.h: New file.
11317 * util/mkisofs/eltorito.c: Likewise.
11318 * util/mkisofs/exclude.h: Likewise.
11319 * util/mkisofs/fnmatch.c: Likewise.
11320 * util/mkisofs/getopt.c: Likewise.
11321 * util/mkisofs/getopt1.c: Likewise.
11322 * util/mkisofs/hash.c: Likewise.
11323 * util/mkisofs/include/fctldefs.h: Likewise.
11324 * util/mkisofs/include/mconfig.h: Likewise.
11325 * util/mkisofs/include/prototyp.h: Likewise.
11326 * util/mkisofs/include/statdefs.h: Likewise.
11327 * util/mkisofs/iso9660.h: Likewise.
11328 * util/mkisofs/joliet.c: Likewise.
11329 * util/mkisofs/match.c: Likewise.
11330 * util/mkisofs/match.h: Likewise.
11331 * util/mkisofs/mkisofs.c: Likewise.
11332 * util/mkisofs/mkisofs.h: Likewise.
11333 * util/mkisofs/multi.c: Likewise.
11334 * util/mkisofs/name.c: Likewise.
11335 * util/mkisofs/rock.c: Likewise.
11336 * util/mkisofs/tree.c: Likewise.
11337 * util/mkisofs/write.c: Likewise.
11338
ec8bb77d
VS
113392009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
11342 being insecure.
11343
3716b12c
RM
113442009-11-08 Robert Millan <rmh.grub@aybabtu.com>
11345
11346 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
11347 `grub-mkimage' (and use $0 when possible).
11348
b97b7b91
RM
113492009-11-08 Robert Millan <rmh.grub@aybabtu.com>
11350
11351 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
11352 error message for excessively large memory map.
11353
04114812
RM
113542009-11-08 Robert Millan <rmh.grub@aybabtu.com>
11355
11356 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
11357 executable bit.
11358
e4eb2373
RM
113592009-11-08 Robert Millan <rmh.grub@aybabtu.com>
11360
11361 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
11362 message for coreboot users.
11363
c926e1d5 113642009-11-07 Robert Millan <rmh.grub@aybabtu.com>
11365
11366 Fix build with GNU gold.
11367
11368 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
11369 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
11370 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
11371 link addresses.
11372 * aclocal.m4: Likewise.
11373
86e5b1db 113742009-11-04 Felix Zielcke <fzielcke@z-51.de>
11375
11376 * configure.ac (AC_PREREQ): Bump to 2.59d.
11377 * INSTALL: Make it more clear when Autoconf and Ruby are
11378 needed and when to run `./autogen.sh'.
11379
246cd78f 113802009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11381
11382 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
11383 OSes.
11384
4f9dfb37 113852009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11386
11387 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
11388
b82bd5e1 113892009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11390
11391 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
11392 giving it to GNU Mach.
11393
ff1a9bca 113942009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11395
11396 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
11397 GNU partition number to get internal GRUB partition number.
11398
61697d9c 113992009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11400
11401 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
11402 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
11403
a50569e1 114042009-11-01 Robert Millan <rmh.grub@aybabtu.com>
11405
11406 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
11407 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
11408 case.
11409
5b153867 114102009-11-01 Felix Zielcke <fzielcke@z-51.de>
11411
11412 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
11413
d9e2cd70 114142009-10-30 Robert Millan <rmh.grub@aybabtu.com>
11415
11416 Fix build problem.
11417
11418 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
11419 `-isystem=$(srcdir)/include'.
11420
805111a4 114212009-10-30 Robert Millan <rmh.grub@aybabtu.com>
11422
11423 * util/i386/pc/grub-install.in: Remove hint that device.map should be
11424 checked (grub-install doesn't currently rely on it).
11425
fa6e945f 114262009-10-29 Robert Millan <rmh.grub@aybabtu.com>
11427
11428 Revert SVN r2660.
11429
11430 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
11431 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
11432 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
11433 * conf/i386-ieee1275.rmk: Likewise.
11434 * conf/i386-pc.rmk: Likewise.
11435 * conf/powerpc-ieee1275.rmk: Likewise.
11436 * conf/sparc64-ieee1275.rmk: Likewise.
11437 * conf/x86_64-efi.rmk: Likewise.
11438
cee15086 114392009-10-28 Robert Millan <rmh.grub@aybabtu.com>
11440
11441 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
11442
95b9239e 114432009-10-28 Robert Millan <rmh.grub@aybabtu.com>
11444
11445 * include/grub/misc.h: Stop checking for APPLE_CC.
11446
2ed19dfd 114472009-10-28 Robert Millan <rmh.grub@aybabtu.com>
11448
11449 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
11450 doesn't cause an infinite call loop.
11451
fdcdde19 114522009-10-28 Felix Zielcke <fzielcke@z-51.de>
11453
11454 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
11455 strings.
11456
cefabfe1 114572009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11458
11459 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
11460 variable.
11461 * Makefile.in: Likewise.
11462
ed96ab6d 114632009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11464
11465 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
11466
0579b753 114672009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11468
11469 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
11470
478df409 114712009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11472
11473 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
11474
083d1679 114752009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11476
11477 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
11478 from here ...
11479 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
11480
5947ae32 114812009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11482
11483 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
11484 in $(MAKEINFO) invocation. This makes it clear in output that
11485 errors are being ignored.
11486
94180ff6 114872009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11488
11489 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
11490 from here ...
11491 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
11492 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
11493 * conf/i386-ieee1275.rmk: Likewise.
11494 * conf/i386-pc.rmk: Likewise.
11495 * conf/powerpc-ieee1275.rmk: Likewise.
11496 * conf/sparc64-ieee1275.rmk: Likewise.
11497 * conf/x86_64-efi.rmk: Likewise.
11498
9031b03a 114992009-10-26 Colin Watson <cjwatson@ubuntu.com>
11500
11501 * util/grub-editenv.c (main): If only a command is given, use
11502 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
11503 (usage): FILENAME is now optional and has a default.
11504
e4f6809b 115052009-10-26 Colin Watson <cjwatson@ubuntu.com>
11506
11507 Improve grub-mkconfig performance when there are several menu
11508 entries on a single filesystem.
11509
11510 * util/grub.d/10_linux.in (linux_entry): Cache the output of
11511 prepare_grub_to_access_device.
11512 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
11513 * util/grub.d/30_os-prober.in: Likewise.
11514
67937d4d 115152009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11516
11517 * util/grub.d/10_freebsd.in: Remove.
11518 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
11519 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
11520
ee3756cc 115212009-10-26 Robert Millan <rmh.grub@aybabtu.com>
11522
5c35048e 11523 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 11524
4dea1c6f 115252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11526
11527 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
11528 grub_util_error() call.
11529
042484d7 115302009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11531
11532 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
11533 `reserved_first_sector' member.
11534 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
11535 `reserved_first_sector' to 1.
11536 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
11537 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
11538 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
11539 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
11540 filesystems which begin at first sector.
11541 (options): New option --skip-fs-probe.
11542 (main): Handle --skip-fs-probe and pass it to setup().
11543
d64448a7 115442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11545
11546 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
11547 (memset): Fix function prototype.
11548
508d42ec 115492009-10-25 Robert Millan <rmh.grub@aybabtu.com>
115502009-10-25 Vasily Averin <vvs@parallels.com>
11551
11552 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
11553 `dirent.direntlen == 0'.
11554
b240e30c 115552009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11556
11557 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
11558 `cpio'.
11559 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
11560
346e7fbe 115612009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11562
11563 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
11564 `__trampoline_setup' and `__ucmpdi2'.
11565 * include/grub/powerpc/libgcc.h: Only export symbols for functions
11566 that libgcc provides.
11567
cdb308b0 115682009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11569
11570 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
11571 * include/grub/sparc64/libgcc.h (memset): Likewise.
11572 * include/grub/misc.h (memset, memcmp): New function prototypes.
11573
fb26abc2 115742009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11575
11576 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
11577 `cpio'.
11578 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
11579
f6693890 115802009-10-25 Robert Millan <rmh.grub@aybabtu.com>
11581
11582 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
11583 * docs/grub.cfg: Compensate for recent change in multiboot
11584 loader (since 2009-08-14 it won't pass filename to payload).
11585 * util/grub.d/10_hurd.in: Likewise.
11586
0933cdc0 115872009-10-21 Felix Zielcke <fzielcke@z-51.de>
11588
11589 * config.guess: Update to latest version from config git
11590 repository.
11591 * config.sub: Likewise.
11592
3b2fe8c2 115932009-10-20 Robert Millan <rmh.grub@aybabtu.com>
11594
11595 Fix build on sparc64.
11596
11597 * configure.ac: Perform checks for libgcc symbols before
11598 adding `-nostdlib' to LDFLAGS.
11599
46695a62 116002009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 Let user specify OpenBSD root device.
11603
11604 * loader/i386/bsd.c (openbsd_root): New variable.
11605 (openbsd_opts): New option 'root'.
11606 (OPENBSD_ROOT_ARG): New macro.
11607 (grub_openbsd_boot): Use 'openbsd_root'.
11608 (grub_cmd_openbsd): Fill 'openbsd_root'.
11609
d2b6b7fc 116102009-10-16 Robert Millan <rmh.grub@aybabtu.com>
11611
11612 * NEWS: Misc adjustments.
11613
421bd7ac 116142009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
11617
f1d29d87 116182009-10-16 Robert Millan <rmh.grub@aybabtu.com>
11619
11620 * configure.ac: Bump version to 1.97.
11621
6f3cd880 116222009-10-16 Colin Watson <cjwatson@ubuntu.com>
11623
11624 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
11625 -mno-3dnow on x86 architectures. Some toolchains enable these
11626 features by default, but they rely on registers that aren't enabled
11627 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
11628
035f7122 116292009-10-15 Robert Millan <rmh.grub@aybabtu.com>
11630
11631 Make entry text a bit more readable.
11632
11633 * util/grub.d/10_linux.in: Add `with' before `Linux'.
11634
44998e58 116352009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
11638
cd2851b3 116392009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11640
11641 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
11642 operations.
11643
c6f3b249 116442009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11645
11646 * configure.ac: Add missing dollar.
11647
6b5886ba 116482009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
11649
11650 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
11651
11652 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
11653 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
11654 exports.
11655 * include/grub/sparc64/libgcc.h: Likewise. Use
11656 preprocessor conditionals.
11657
e9d66f6d 116582009-10-14 Robert Millan <rmh.grub@aybabtu.com>
11659
11660 * conf/common.rmk (grub-dumpbios): Remove rule.
11661 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
11662 * util/grub-dumpbios.in: Remove file.
11663
9155bc17 116642009-10-14 Robert Millan <rmh.grub@aybabtu.com>
11665
11666 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
11667 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
11668
11669 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
11670 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
11671 users.
11672
11673 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
11674 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
11675 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
11676 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
11677 users.
11678
bf7f7a18 116792009-10-12 Robert Millan <rmh.grub@aybabtu.com>
11680
11681 * term/tparm.c: Switch to GPLv3.
11682
86564c26 116832009-10-09 Robert Millan <rmh.grub@aybabtu.com>
11684
11685 * include/grub/i386/cpuid.h: Add header protection.
11686
5c936493 116872009-10-09 Robert Millan <rmh.grub@aybabtu.com>
11688
11689 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
11690
11691 * include/grub/i386/cpuid.h: New file.
11692 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
11693 (has_longmode): Rename to ...
11694 (grub_cpuid_has_longmode): ... this. Update all users. Remove
11695 `static' attribute.
11696 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
11697 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
11698 on a CPU that doesn't implement AMD64 instruction set.
11699
186e7cf2 117002009-10-06 Colin Watson <cjwatson@ubuntu.com>
11701
11702 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
11703 that version.texi is rebuilt on version number changes.
11704
83b65c4a 117052009-10-06 Colin Watson <cjwatson@ubuntu.com>
11706
11707 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
11708 Fixes bug #27602.
11709
d244281c 117102009-10-06 Colin Watson <cjwatson@ubuntu.com>
11711
11712 * util/i386/pc/grub-install.in: Source
11713 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
11714 that the --grub-probe option will work.
11715 * util/sparc64/ieee1275/grub-install.in: Likewise.
11716
da25306d 117172009-10-05 Robert Millan <rmh.grub@aybabtu.com>
11718
11719 * configure.ac: Bump version to 1.97~beta4.
11720
e8ee83c0 117212009-10-03 Robert Millan <rmh.grub@aybabtu.com>
11722
11723 Resync grub-mkdevicemap in x86_64-efi.
11724
11725 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
11726 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
11727 `util/devicemap.c'.
11728
50dcabcf 117292009-10-01 Colin Watson <cjwatson@ubuntu.com>
11730
11731 * util/grub-editenv.c (create_envblk_file): Write new block with a
11732 .new suffix and then rename it into place, to ensure atomic
11733 creation.
11734
0e51c3a7 117352009-09-28 Robert Millan <rmh.grub@aybabtu.com>
11736
11737 Do not automatically install headers.
11738
11739 * Makefile.in (include_DATA): Remove. Update all users.
11740
31299a95 117412009-09-26 Robert Millan <rmh.grub@aybabtu.com>
11742
11743 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
11744 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
11745
11746 * util/osdetect.lua: Remove.
11747 * script/lua/lauxlib.c: Likewise.
11748 * script/lua/ldebug.c: Likewise.
11749 * script/lua/grub_main.c: Likewise.
11750 * script/lua/lauxlib.h: Likewise.
11751 * script/lua/ldebug.h: Likewise.
11752 * script/lua/ltablib.c: Likewise.
11753 * script/lua/liolib.c: Likewise.
11754 * script/lua/lstrlib.c: Likewise.
11755 * script/lua/lualib.h: Likewise.
11756 * script/lua/ldo.c: Likewise.
11757 * script/lua/ldump.c: Likewise.
11758 * script/lua/ldo.h: Likewise.
11759 * script/lua/loslib.c: Likewise.
11760 * script/lua/lundump.c: Likewise.
11761 * script/lua/grub_lib.c: Likewise.
11762 * script/lua/ldblib.c: Likewise.
11763 * script/lua/lundump.h: Likewise.
11764 * script/lua/lmem.c: Likewise.
11765 * script/lua/grub_lib.h: Likewise.
11766 * script/lua/lmathlib.c: Likewise.
11767 * script/lua/lstate.c: Likewise.
11768 * script/lua/ltm.c: Likewise.
11769 * script/lua/lvm.c: Likewise.
11770 * script/lua/lmem.h: Likewise.
11771 * script/lua/lstate.h: Likewise.
11772 * script/lua/ltm.h: Likewise.
11773 * script/lua/ltable.c: Likewise.
11774 * script/lua/lvm.h: Likewise.
11775 * script/lua/llex.c: Likewise.
11776 * script/lua/lgc.c: Likewise.
11777 * script/lua/grub_lua.h: Likewise.
11778 * script/lua/loadlib.c: Likewise.
11779 * script/lua/lfunc.c: Likewise.
11780 * script/lua/lopcodes.c: Likewise.
11781 * script/lua/lparser.c: Likewise.
11782 * script/lua/ltable.h: Likewise.
11783 * script/lua/llex.h: Likewise.
11784 * script/lua/lgc.h: Likewise.
11785 * script/lua/lfunc.h: Likewise.
11786 * script/lua/lbaselib.c: Likewise.
11787 * script/lua/lopcodes.h: Likewise.
11788 * script/lua/lparser.h: Likewise.
11789 * script/lua/lzio.c: Likewise.
11790 * script/lua/linit.c: Likewise.
11791 * script/lua/lobject.c: Likewise.
11792 * script/lua/llimits.h: Likewise.
11793 * script/lua/lstring.c: Likewise.
11794 * script/lua/lzio.h: Likewise.
11795 * script/lua/lapi.c: Likewise.
11796 * script/lua/lcode.c: Likewise.
11797 * script/lua/lua.h: Likewise.
11798 * script/lua/lobject.h: Likewise.
11799 * script/lua/lstring.h: Likewise.
11800 * script/lua/lapi.h: Likewise.
11801 * script/lua/lcode.h: Likewise.
11802 * script/lua/luaconf.h: Likewise.
11803
cb8a2c38 118042009-09-26 Colin Watson <cjwatson@ubuntu.com>
11805
11806 * docs/grub.texi (Command-line and menu entry commands): Document
11807 date and echo commands.
11808
6b9b6276 118092009-09-24 Pavel Roskin <proski@gnu.org>
11810
11811 * include/grub/kernel.h (struct grub_module_header): Remove
11812 `grub_module_header_types'. Make `type' unsigned. Make `size'
11813 32-bit on all platforms.
11814 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
11815 8-bit field. Use grub_host_to_target32() for `size'.
11816 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
11817 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
11818 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
11819
4e5a02a7 118202009-09-24 Robert Millan <rmh.grub@aybabtu.com>
11821
11822 Fix "lost keypress" bug in at_keyboard.
11823
11824 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
11825 Checks for readyness of input buffer (without flushing it).
11826 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
11827 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
11828
c6dcedf6 118292009-09-24 Robert Millan <rmh.grub@aybabtu.com>
11830
11831 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
11832 size check within GRUB_MACHINE_PCBIOS section.
11833
74c958b1 118342009-09-24 Robert Millan <rmh.grub@aybabtu.com>
11835
11836 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
11837 return value.
11838 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
11839 KEYBOARD_ISREADY check.
11840 (grub_at_keyboard_checkkey): Rename to ...
11841 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
11842 Remove gratuitous cast.
11843
ff420223 118442009-09-23 Colin Watson <cjwatson@ubuntu.com>
11845
11846 * configure.ac: Call AC_PROG_MKDIR_P.
11847 * Makefile.in (docs/stamp-vti): Create docs directory. Create
11848 version.texi in $(builddir) rather than $(srcdir).
11849 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
11850 to makeinfo's @include search path.
11851
d96875df 118522009-09-23 Felix Zielcke <fzielcke@z-51.de>
11853
11854 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
11855
9b3f8365 118562009-09-23 Felix Zielcke <fzielcke@z-51.de>
11857
11858 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
11859 for `*.dpkg-new'.
11860
c44c90db 118612009-09-21 Colin Watson <cjwatson@ubuntu.com>
11862
11863 Build info documentation. Some code borrowed from Automake.
11864
11865 * configure.ac: Check for makeinfo.
11866 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
11867 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
11868 docs/version.texi.
11869 (MOSTLYCLEANFILES): Add vti.tmp.
11870 (docs/version.texi, docs/stamp-vti): Update automatically.
11871 (docs/grub.info): Build info documentation. Use --force and ignore
11872 errors for now.
11873 (all-local): Add $(INFOS).
11874 (install-local): Install info files.
11875 (uninstall): Uninstall info files.
11876 * docs/version.texi: Remove from revision control. This file is
11877 automatically generated on build now.
11878 * gendistlist.sh: Add `*.info'.
11879
e0b37bb5 118802009-09-21 Felix Zielcke <fzielcke@z-51.de>
11881
11882 * kern/term.c: Fix indentation.
11883
5a78865b 118842009-09-21 Felix Zielcke <fzielcke@z-51.de>
11885
11886 * util/hostdisk.c: Fix a comment.
11887
dace7e8a 118882009-09-20 Robert Millan <rmh.grub@aybabtu.com>
11889
11890 Fix regression introduced in r2539.
11891
11892 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
11893 to 0xA1.
11894
a83d079b 118952009-09-19 Colin Watson <cjwatson@ubuntu.com>
11896
11897 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 11898 os-prober. Under normal operation, it does not print anything to
11899 stderr; if it does, we need to debug it, and throwing away stderr
11900 makes that excessively difficult.
a83d079b 11901
be94a509 119022009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
11905
63f745e8 119062009-09-16 Robert Millan <rmh.grub@aybabtu.com>
11907
11908 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
11909 AC_LANG_PROGRAM from autoconf.
11910 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
11911 prototypes (fixes warning).
11912
11913 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
11914 `--disable-werror' was used.
11915
bbb2a70f 119162009-09-16 Robert Millan <rmh.grub@aybabtu.com>
11917
11918 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
11919 uninitialized `lastaddr'.
11920
77c24f1d 119212009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
11922
0f0b8c87 11923 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 11924
07197f23 119252009-09-14 Colin Watson <cjwatson@ubuntu.com>
11926
11927 * commands/test.c (get_fileinfo): Return immediately if
11928 grub_fs_probe fails.
11929
dabf1798 119302009-09-14 José Martínez <xosemp@gmail.com>
11931
11932 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
11933
d52109a7 119342009-09-14 Colin Watson <cjwatson@ubuntu.com>
11935
11936 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
11937 output.
11938
56532179 119392009-09-13 Robert Millan <rmh.grub@aybabtu.com>
11940
11941 * configure.ac: Remove --enable-grub-pe2elf. Only build
11942 grub-pe2elf when needed by the build system itself.
11943 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
11944
8ef070f5 119452009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11946
11947 * configure.ac: Bump version to 1.97~beta3.
11948 * docs/version.texi: Likewise.
11949
61229557 119502009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11951
11952 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
11953 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
11954 from here ...
11955 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
11956 (grub_linux_setup_video): ... to here (with some adjustments).
11957
5c9f8d84 119582009-09-12 Robert Millan <rmh.grub@aybabtu.com>
11959
11960 Fix memory corruption issue (spotted by Colin Watson).
11961
11962 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
11963 causing returned size to be stored in an incorrect memory location.
11964 Fix use of uninitialized value when storing the returned size.
11965
e8f5d6e9 119662009-09-12 Yves Blusseau <blusseau@zetam.org>
11967
11968 Change clean rules to properly remove files
11969
11970 * genmk.rb: add new clean rules
11971 * Makefile.in (clean): add the new targets
11972 (mostlyclean): likewise
11973
cda2a409 119742009-09-11 Colin Watson <cjwatson@ubuntu.com>
11975
11976 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
11977 to grub_uint64_t.
11978 * fs/ntfs.c (init_file): Understand 64-bit sizes for
11979 non-resident files.
11980
86695375 119812009-09-11 Colin Watson <cjwatson@ubuntu.com>
11982
11983 * configure.ac: Don't look for help2man when cross-compiling. Fixes
11984 part of bug #27349.
11985
8aa1541a 119862009-09-10 Felix Zielcke <fzielcke@z-51.de>
11987
11988 * util/grub-mkconfig.in: Make the created config mode 400 and
11989 print a warning if it fails.
11990
48d9bb0a 119912009-09-10 Robert Millan <rmh.grub@aybabtu.com>
11992
11993 * util/grub.d/40_custom.in: Ask user to type custom entries below
11994 comment, rather than below 'exec tail' line.
11995
3b0521be 119962009-09-10 Colin Watson <cjwatson@ubuntu.com>
11997
11998 * util/grub.d/40_custom.in: Make sure that the explanatory text is
11999 visible in grub.cfg.
12000
50051d55 120012009-09-10 Colin Watson <cjwatson@ubuntu.com>
12002
12003 * util/grub.d/40_custom.in: Make it a little clearer how to use this
12004 file.
12005
c0d34387 120062009-09-10 Felix Zielcke <fzielcke@z-51.de>
12007
12008 * docs/grub.cfg: Add an example menu entry for memtest86+.
12009
80a608f3 120102009-09-09 Felix Zielcke <fzielcke@z-51.de>
12011
a2094832 12012 * config.guess: Update to latest version from config git.
80a608f3 12013 * config.sub: Likewise.
12014
99423078 120152009-09-08 Colin Watson <cjwatson@ubuntu.com>
12016
12017 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
12018 unknown-command case. Fixes bug #27320.
12019
44454e4c 120202009-09-08 Felix Zielcke <fzielcke@z-51.de>
12021
12022 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
12023 `help' if the command exists.
12024
e30d87ad 120252009-09-06 Robert Millan <rmh.grub@aybabtu.com>
12026
12027 * INSTALL: Require GCC 4.1.3 or later.
12028
9a86f1ec 120292009-09-06 Yves Blusseau <blusseau@zetam.org>
12030
12031 * Makefile.in (RMKFILES): add i386-qemu.rmk
12032 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
12033 $(srcdir)/stamp-h.in
12034
7f26d466 120352009-09-05 Robert Millan <rmh.grub@aybabtu.com>
12036
12037 * util/grub-probe.c (probe): Comment out buggy codepath, which
12038 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
12039 should be re-enabled after 1.97.
12040
3a613259 120412009-09-05 Felix Zielcke <fzielcke@z-51.de>
12042
12043 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
12044 find searches for.
12045
197f76c7 120462009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12047
12048 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
12049 unnecessary calls to grub_error.
12050
70ba68ce 120512009-09-04 Colin Watson <cjwatson@ubuntu.com>
12052
12053 * NEWS: Mention `keystatus' and Unicode fonts.
12054
4ff0d7a4 120552009-09-04 Robert Millan <rmh.grub@aybabtu.com>
12056
12057 * configure.ac: Bump version to 1.97~beta2.
12058 * docs/version.texi: Likewise.
12059
77c55a87 120602009-09-03 Colin Watson <cjwatson@ubuntu.com>
12061
12062 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
12063 containing unwind information in some cases where it previously did
12064 not. Use -fno-dwarf2-cfi-asm if available to restore the old
12065 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
12066 discussion.
12067
f79572cd 120682009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
12069
12070 Embedding loadenv module into grub-emu
12071
12072 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
12073 commands/loadenv.c
12074 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
12075 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
12076 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
12077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
12078 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
12079 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
12080
93a81088 120812009-09-03 Magnus Granberg <zorry@ume.nu>
12082
12083 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
12084 include -fPIE in the default specs.
12085 * configure.ac: Check if pie_possible is yes and add -fno-PIE
12086 to TARGET_CFLAGS.
12087
160034b2 120882009-09-03 Felix Zielcke <fzielcke@z-51.de>
12089
12090 * INSTALL: Note that GNU Bison 2.3 or later is required.
12091
087c07c4 120922009-09-03 Colin Watson <cjwatson@ubuntu.com>
12093
12094 * kern/i386/pc/startup.S: Fix typo.
12095
cbf978c0 120962009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12097
12098 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
12099 according to GCS.
12100
121012009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 12102
12103 * docs/grub.texi (Naming convention): Describe one-based partition
12104 numbering.
12105 (Device syntax): Likewise.
12106 (File name syntax): Likewise.
12107 (Block list syntax): Likewise.
12108 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
12109 menu.lst.
12110 (File name syntax): Likewise.
12111 (Command-line and menu entry commands): Document acpi, blocklist,
12112 crc, export, insmod, keystatus, ls, set, and unset commands.
12113
f3e8cdfd 121142009-09-02 Colin Watson <cjwatson@ubuntu.com>
12115
12116 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
12117 to avoid implying that only one of --shift, --ctrl, or --alt may be
12118 used.
12119
c0bc232b 121202009-09-02 Colin Watson <cjwatson@ubuntu.com>
12121
12122 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
12123 rather than comparing against S_IFREG, which will almost never work.
12124
aa0f752d 121252009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12126
12127 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
12128 (write_blocklists): Likewise.
12129
ecb3166a 121302009-09-01 Colin Watson <cjwatson@ubuntu.com>
12131
12132 * script/lua/grub_lua.h (fputs): Supply a format string as the first
12133 argument to grub_printf.
12134
c403a125 121352009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 12136
12137 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 12138 non GNU test.
31aba781 12139
b5e7312c 121402009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * kern/file.c (grub_file_read): Spelling fix
12143
fe00f472 121442009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
12147 loading of headers in some cases.
12148
cc55302e 121492009-08-30 Robert Millan <rmh.grub@aybabtu.com>
12150
12151 * configure.ac: Bump version to 1.97~beta1.
12152 * docs/version.texi: Likewise.
12153
5c90cdd2 121542009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 12155
12156 * include/grub/i386/xnu.h: Add license header.
12157 include grub/err.h explicitly.
12158
c90edae4 121592009-08-29 Robert Millan <rmh.grub@aybabtu.com>
12160
12161 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
12162 to `ufs' in the vfs.root.mountfrom kernel parameter.
12163
d8888b5c 121642009-08-29 Robert Millan <rmh.grub@aybabtu.com>
12165
12166 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
12167
12168 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
12169 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
12170
12171 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
12172 `ARRAY_SIZE' macro.
12173
6f07b921 121742009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12175
12176 * kern/file.c (grub_file_read): Check offset.
12177 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
12178 * fs/jfs.c (grub_jfs_read_file): Likewise.
12179 * fs/ntfs.c (grub_ntfs_read): Likewise.
12180 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
12181 * fs/minix.c (grub_minix_read_file): Correct offset check.
12182 * fs/ufs.c (grub_ufs_read_file): Likewise.
12183
b4f34077 121842009-08-28 Colin Watson <cjwatson@ubuntu.com>
12185
12186 * term/i386/pc/console.c (bios_data_area): Cast
12187 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
12188
e7c69859 121892009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 1-bit optimised blitters.
12192
12193 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
12194 prototype.
12195 (grub_video_fbblit_replace_24bit_1bit): Likewise.
12196 (grub_video_fbblit_replace_16bit_1bit): Likewise.
12197 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12198 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12199 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
12200 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
12201 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
12202 function.
12203 (grub_video_fbblit_replace_24bit_1bit): Likewise.
12204 (grub_video_fbblit_replace_16bit_1bit): Likewise.
12205 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12206 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12207 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
12208 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
12209 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
12210 when possible.
12211 * video/video.c (grub_video_get_blit_format): Return
12212 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
12213
a57da43f 122142009-08-28 Colin Watson <cjwatson@ubuntu.com>
12215
12216 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
12217 the first argument to grub_printf.
12218
4cbe67e5 122192009-08-28 Colin Watson <cjwatson@ubuntu.com>
122202009-08-28 Robert Millan <rmh.grub@aybabtu.com>
12221
12222 Add `getkeystatus' terminal method. Add a new `keystatus' command
12223 to query it.
12224
12225 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
12226 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
12227 modifier key bitmasks.
12228 (struct grub_term_input): Add `getkeystatus' member.
12229 (grub_getkeystatus): Add prototype.
12230 * kern/term.c (grub_getkeystatus): New function.
12231
12232 * include/grub/i386/pc/memory.h
12233 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
12234 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
12235 Data Area layout.
12236 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
12237 (grub_console_term_input): Set `getkeystatus' member.
12238 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
12239 constants.
12240 (grub_usb_keyboard_getreport): Likewise.
12241 (grub_usb_keyboard_checkkey): Likewise.
12242 (grub_usb_keyboard_getkeystatus): New function.
12243 (grub_usb_keyboard_term): Set `getkeystatus' member.
12244
12245 * commands/keystatus.c: New file.
12246 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
12247 (keystatus_mod_SOURCES): New variable.
12248 (keystatus_mod_CFLAGS): Likewise.
12249 (keystatus_mod_LDFLAGS): Likewise.
12250 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
12251 commands/keystatus.c.
12252 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12253 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12254 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12256 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12257 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 12258
6e2a9085 122592009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12260
12261 Split befs.mod and afs.mod into *_be.mod and *.mod
12262
12263 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
12264 (grub_fstest_SOURCES): Likewise.
12265 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
12266 (afs_be_mod_SOURCES): New variable.
12267 (afs_be_mod_CFLAGS): Likewise.
12268 (afs_be_mod_LDFLAGS): Likewise.
12269 (befs_be_mod_SOURCES): Likewise.
12270 (befs_be_mod_CFLAGS): Likewise.
12271 (befs_be_mod_LDFLAGS): Likewise.
12272 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
12273 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12274 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12275 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12276 (grub_emu_SOURCES): Likewise.
12277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12278 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12279 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12280 * fs/afs_be.c: New file.
12281 * fs/befs_be.c: New file.
12282 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
12283 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
12284 (U16): Replaced with ...
12285 (grub_afs_to_cpu16): ...this. All users updated.
12286 (U32): Replaced with ...
12287 (grub_afs_to_cpu32): ...this. All users updated.
12288 (U64): Replaced with ...
12289 (grub_afs_to_cpu64): ...this. All users updated.
12290 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
12291 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 12292 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 12293 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
12294 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
12295 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
12296 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
12297 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
12298 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
12299 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
12300 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
12301
32a71655 123022009-08-26 Bean <bean123ch@gmail.com>
12303
12304 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
12305 64-bit number.
12306 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
12307 (grub_xfs_inode_block): Change return type to grub_uint64_t.
12308 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
12309
552bf6c5 123102009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 NetBSD memory map support.
12313
12314 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
12315 (grub_netbsd_btinfo_mmap_header): New structure.
12316 (grub_netbsd_btinfo_mmap_entry): Likewise.
12317 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
12318
1ae2078c 123192009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 Enable bsd.mod on coreboot.
12322
12323 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
12324 (bsd_mod_SOURCES): New variable.
12325 (bsd_mod_CFLAGS): Likewise.
12326 (bsd_mod_LDFLAGS): Likewise.
12327 (bsd_mod_ASFLAGS): Likewise.
12328 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
12329 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
12330
beefc598 123312009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12332
12333 Cleanup NetBSD root support.
12334
12335 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
12336 grub_bsd_get_device.
12337 Fix typo.
12338
3b76e68b 123392009-08-25 Felix Zielcke <fzielcke@z-51.de>
12340
12341 * util/grub.d/00_header.in: Move check for the video backend of
12342 gfxterm from here ...
12343 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
12344 a suitable video backend.
12345
aea664ea 123462009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12347
12348 Fix breakage in grub-setup.
12349
12350 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
12351 "msdos_partition_map".
12352
ff747d50 123532009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 Fix breakage in normal/auth.c.
12356
12357 * normal/auth.c (grub_iswordseparator): New function.
12358
e7e1f93f 123592009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
12360
12361 Authentication support.
12362
12363 * commands/password.c: New file.
12364 * conf/common.rmk (pkglib_MODULES): Add password.mod.
12365 (password_mod_SOURCES): New variable.
12366 (password_mod_CFLAGS): Likewise.
12367 (password_mod_LDFLAGS): Likewise.
12368 (normal_mod_SOURCES): Add normal/auth.c.
12369 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
12370 normal/auth.c.
12371 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12372 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12373 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12375 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12376 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12377 * include/grub/auth.h: New file.
12378 * include/grub/err.h (grub_err_t): New enum value
12379 GRUB_ERR_ACCESS_DENIED.
12380 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
12381 'users'.
12382 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
12383 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
12384 users updated.
12385 * normal/auth.c: New file.
12386 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
12387 (grub_cmdline_run): Don't allow to go to command line without
12388 authentication.
12389 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
12390 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
12391 menuentry without superuser rights.
12392 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
12393 user isn't a superuser.
12394
70f1161d 123952009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
12396
12397 Save space by inlining misc.c functions.
12398
12399 * kern/misc.c (grub_iswordseparator): Made static.
12400 * kern/misc.c (grub_strcat): Moved from here ...
12401 * include/grub/misc.h (grub_strcat): ... here. Inlined.
12402 * kern/misc.c (grub_strncat): Moved from here ...
12403 * include/grub/misc.h (grub_strncat): ... here. Inlined.
12404 * kern/misc.c (grub_strcasecmp): Moved from here ...
12405 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
12406 * kern/misc.c (grub_strncasecmp): Moved from here ...
12407 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
12408 * kern/misc.c (grub_isalpha): Moved from here ...
12409 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
12410 * kern/misc.c (grub_isdigit): Moved from here ...
12411 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
12412 * kern/misc.c (grub_isgraph): Moved from here ...
12413 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
12414 * kern/misc.c (grub_tolower): Moved from here ...
12415 * include/grub/misc.h (grub_tolower): ... here. Inlined.
12416
48e40bff 124172009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
12418
12419 * script/sh/function.c (grub_script_function_find): Cut error message
12420 not to flood terminal.
12421 * script/sh/lexer.c (grub_script_yylex): Remove command line length
12422 limit.
12423 * script/sh/script.c (grub_script_arg_add): Duplicate string.
12424
c385bfc3 124252009-08-24 Colin Watson <cjwatson@ubuntu.com>
12426
12427 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
12428 `report' grub_uint8_t *.
12429 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
12430 Use a 50-millisecond timeout rather than just repeating
12431 grub_usb_keyboard_getreport 50 times.
12432 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
12433
2d21e3e8 124342009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
12435
12436 Rename *_partition_map to part_*
12437
12438 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
12439 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
12440 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
12441 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
12442 All users updated.
12443 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
12444 All users updated.
12445 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
12446 * util/grub-probe.c (probe_partmap): Don't transform partition name
12447 to get module name.
12448
dd103c4e 124492009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
12450
12451 Fix OpenBSD and NetBSD support.
12452
12453 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
12454 memory address conflict.
12455 (OPENBSD_MMAP_ACPI): New definition.
12456 (OPENBSD_MMAP_NVS): Likewise.
12457 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
12458 and OPENBSD_MMAP_NVS.
12459 Add memory map terminator
12460 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 12461 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 12462
16c84d74 124632009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
12464
12465 Let user specify NetBSD root device.
12466
12467 * loader/i386/bsd.c (netbsd_root): New variable.
12468 (netbsd_opts): New option 'root'.
12469 (NETBSD_ROOT_ARG): New macro.
12470 (grub_netbsd_boot): Use 'netbsd_root'.
12471 (grub_bsd_unload): Free 'netbsd_root'.
12472 (grub_cmd_netbsd): Fill 'netbsd_root'.
12473
adb29902 124742009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
12475
12476 Support for 64-bit NetBSD.
12477
12478 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
12479 point when booting non-FreeBSD.
12480
f5ae9f74 124812009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 Support --no-smp and --no-acpi for NetBSD.
12484
12485 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
12486 (NETBSD_AB_NOACPI): Likewise.
12487 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
12488 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
12489
de74f136 124902009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12491
12492 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
12493 errors.
12494 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
12495 errors. Call grub_error when needed.
12496
e9a925da 124972009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12498
12499 * commands/search.c (search_fs): Try searching without autoload first.
12500 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
12501 filesystem module explicitly for faster booting.
12502
5174302b 125032009-08-23 Colin Watson <cjwatson@ubuntu.com>
12504
12505 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
12506
c8c80635 125072009-08-23 Colin Watson <cjwatson@ubuntu.com>
12508
12509 * util/grub.d/30_os-prober.in: Disable os-prober if
12510 `GRUB_DISABLE_OS_PROBER' was set to true.
12511
71acf5e5 125122009-08-23 Robert Millan <rmh.grub@aybabtu.com>
12513
12514 * partmap/pc.c: Rename to ...
12515 * partmap/msdos.c: ... this. Update all users.
12516 (grub_pc_partition_map): Rename to ...
12517 (grub_msdos_partition_map): ... this. Update all users.
12518
12519 * parttool/pcpart.c: Rename to ...
12520 * parttool/msdospart.c: ... this. Update all users.
12521
12522 * include/grub/pc_partition.h: Rename to ...
12523 * include/grub/msdos_partition.h: ... this. Update all users.
12524 (grub_pc_partition_bsd_entry): Rename to ...
12525 (grub_msdos_partition_bsd_entry): ... this. Update all users.
12526 (grub_pc_partition_disk_label): Rename to ...
12527 (grub_msdos_partition_disk_label): ... this. Update all users.
12528 (grub_pc_partition_entry): Rename to ...
12529 (grub_msdos_partition_entry): ... this. Update all users.
12530 (grub_pc_partition_mbr): Rename to ...
12531 (grub_msdos_partition_mbr): ... this. Update all users.
12532 (grub_pc_partition): Rename to ...
12533 (grub_msdos_partition): ... this. Update all users.
12534 (grub_pc_partition_is_empty): Rename to ...
12535 (grub_msdos_partition_is_empty): ... this. Update all users.
12536 (grub_pc_partition_is_extended): Rename to ...
12537 (grub_msdos_partition_is_extended): ... this. Update all users.
12538 (grub_pc_partition_is_bsd): Rename to ...
12539 (grub_msdos_partition_is_bsd): ... this. Update all users.
12540
12541 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
12542 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
12543 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
12544 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
12545 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
12546 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
12547 (gpt_mod_LDFLAGS): Rename to ...
12548 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
12549 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
12550 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
12551 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
12552 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
12553 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
12554 (part_gpt_mod_LDFLAGS): ... this.
12555 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
12556 `pcpart.mod' to `msdospart.mod'.
12557 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
12558 to ...
12559 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
12560 (msdospart_mod_LDFLAGS): ... this.
12561
c11fded5 125622009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12563
12564 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
12565 (openbsd_opts): Likewise.
12566 (netbsd_opts): Likewise.
12567 (freebsd_flags): Added 0 terminator.
12568 (openbsd_flags): Likewise.
12569 (netbsd_flags): Likewise.
12570 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
12571 (grub_cmd_freebsd): Transformed into extended command.
12572 (grub_cmd_openbsd): Likewise.
12573 (grub_cmd_netbsd): Likewise.
12574 (cmd_freebsd): Changed type to grub_extcmd_t.
12575 (cmd_openbsd): Likewise.
12576 (cmd_netbsd): Likewise.
12577 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
12578 grub_cmd_openbsd as extended commands.
12579 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
12580 cmd_netbsd and cmd_openbsd
12581
11d1c769 125822009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
12583
12584 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
12585
7a9094e5 125862009-08-21 Pavel Roskin <proski@gnu.org>
12587
5496c37e 12588 * Makefile.in (install-local): When checking if a file is in the
12589 build directory, use "test -e" to detect symlinks.
12590
7a9094e5 12591 * Makefile.in (install-local): Remove all files in
12592 $(DESTDIR)$(pkglibdir) before installing new files there.
12593
e53cea11 125942009-08-18 Felix Zielcke <fzielcke@z-51.de>
12595
12596 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
12597 grub-mkelfimage.
12598
9aced544 125992009-08-18 Felix Zielcke <fzielcke@z-51.de>
12600
12601 * util/grub-mkconfig.in: Don't use gfxterm by default if not
12602 explicitly specified by the user.
12603
b7da6bab 126042009-08-18 Pavel Roskin <proski@gnu.org>
12605
12606 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
12607 grub_uint8_t pointer for data.
12608 * include/grub/fbutil.h (struct grub_video_fbblit_info):
12609 Likewise.
12610 * video/fb/fbutil.c: Remove unnecessary casts.
12611
19f1b335 126122009-08-17 Michal Suchanek <hramrach@centrum.cz>
12613
12614 VBE cleanup.
12615
12616 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
12617 (grub_vbe_set_video_mode): Save active mode info
12618 only after setting the mode.
12619 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
12620 second argument.
12621
2f467aa9 126222009-08-17 Michal Suchanek <hramrach@centrum.cz>
12623
12624 Rename variables for clarity.
12625
12626 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
12627 (active_vbe_mode_info): ... this. All users updated.
12628 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
12629 All users updated.
12630 (initial_mode): Rename to ...
12631 (initial_vbe_mode): ... this. All users updated.
12632 (mode_in_use): Rename to ..
12633 (vbe_mode_in_use): ... this. All users updated.
12634 (mode_list): Rename to ..
12635 (vbe_mode_list): ... this. All users updated.
12636 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
12637 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
12638 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
12639 'mode_list_size' to 'vbe_mode_list_size'.
12640 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
12641 'best_mode_info' to 'best_vbe_mode_info' and
12642 'best_mode' to 'best_vbe_mode'
12643
6025fcd7 126442009-08-17 Michal Suchanek <hramrach@centrum.cz>
12645
12646 Remove duplicate grub_video_fb_get_video_ptr.
12647
12648 * include/grub/fbutil.h (get_data_ptr): Rename to ...
12649 (grub_video_fb_get_video_ptr): ... this.
12650 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
12651 * video/fb/fbutil.c: Add comment about addressing.
12652 (get_data_ptr): Rename to ...
12653 (grub_video_fb_get_video_ptr): ... this. All users updated.
12654 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
12655
cc8c6faf 126562009-08-17 Robert Millan <rmh.grub@aybabtu.com>
12657
12658 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
12659 grub_dprintf() that was just added.
12660
08aa61f0 126612009-08-17 Robert Millan <rmh.grub@aybabtu.com>
12662
12663 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
12664 (DEFAULT_VIDEO_MODE): Remove macros.
12665 (grub_linux_boot): Remove assumption that Linux has FB support,
12666 and use "text" as default video mode.
12667
7cef4f75 126682009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
12671 grub_dprintf.
12672 * fs/fat.c (grub_fat_read_data): Likewise.
12673
e1f39873 126742009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12675
12676 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
12677 payload.
12678 (grub_module): Likewise.
12679
c166d79e 126802009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12681
12682 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
12683 mbi->cmdline but free playground.
12684
c60cee8e 126852009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12686
12687 Handle group offset on UFS1.
12688
12689 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
12690 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
12691
c0d8b5d4 126922009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12693
12694 Split ufs.mod into ufs1.mod and ufs2.mod.
12695
12696 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
12697 (grub_fstest_SOURCES): Likewise.
12698 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
12699 (ufs_mod_SOURCES): Remove.
12700 (ufs_mod_CFLAGS): Likewise.
12701 (ufs_mod_LDFLAGS): Likewise.
12702 (ufs1_mod_SOURCES): New variable.
12703 (ufs1_mod_CFLAGS): Likewise.
12704 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 12705 (ufs2_mod_SOURCES): New variable.
12706 (ufs2_mod_CFLAGS): Likewise.
12707 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 12708 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
12709 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
12710 Likewise.
12711 (grub_emu_SOURCES): Likewise.
12712 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12713 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12714 (grub_setup_SOURCES): Likewise.
12715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12716 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
12717 (grub_setup_SOURCES): Likewise.
12718 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
12719 Likewise.
12720 * fs/ufs2.c: New file.
12721 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
12722
d3539132 127232009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 Framebuffer split.
12726
12727 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
12728 subsystem at the end.
12729 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
12730 (video_fb_mod_SOURCES): New variable.
12731 (video_fb_mod_CFLAGS): Likewise.
12732 (video_fb_mod_LDFLAGS): Likewise.
12733 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
12734 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
12735 * video/i386/pc/vbeblit.c: Moved from here ...
12736 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
12737 * video/i386/pc/vbefill.c: Moved from here ...
12738 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
12739 * video/i386/pc/vbeutil.c: Moved from here ...
12740 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
12741 * include/grub/i386/pc/vbeblit.h: Moved from here ...
12742 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
12743 * include/grub/i386/pc/vbefill.h: Moved from here ...
12744 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
12745 * include/grub/i386/pc/vbeutil.h: Moved from here ...
12746 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
12747 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
12748 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
12749 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
12750 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
12751 (grub_video_adapter): Added 'get_info_and_fini'.
12752 (grub_video_get_info_and_fini): New prototype.
12753 (grub_video_set_mode): make modestring const char *.
12754 * loader/i386/linux.c (grub_linux_setup_video): Use
12755 grub_video_get_info_and_fini.
12756 (grub_linux_boot): Move modesetting just before booting.
12757 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
12758 grub_video_get_info_and_fini.
12759 * video/i386/pc/vbe.c: Moved framebuffer part ...
12760 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
12761 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
12762 grub_video_fbstd_colors and grub_video_fb_set_palette.
12763 (grub_video_vbe_init): Clear 'framebuffer' variable and use
12764 grub_video_fb_init.
12765 (grub_video_vbe_fini): Use grub_video_fb_fini.
12766 (grub_video_vbe_setup): Use framebuffer.render_target instead of
12767 render_target and use grub_video_fb_set_active_render_target and
12768 grub_video_fb_set_palette.
12769 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
12770 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
12771 (grub_video_vbe_adapter): Use framebuffer.
12772 * video/video.c (grub_video_get_info_and_fini): New function.
12773 (grub_video_set_mode): Make modestring const char *.
12774 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
12775 values are already initialised.
12776
d404ee56 127772009-08-14 Pavel Roskin <proski@gnu.org>
12778
12779 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
12780 ABS and APPLE_CC.
12781 * boot/i386/pc/diskboot.S: Likewise.
12782 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
12783 sectors allow compilation on MacOSX.
12784 * conf/i386-pc.rmk: Enable unconditional compilation of
12785 lnxboot.img.
12786
9a10df16 127872009-08-13 Colin Watson <cjwatson@ubuntu.com>
12788
12789 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
12790 * util/grub.d/00_header.in: Enter interruptible sleep if
12791 GRUB_HIDDEN_TIMEOUT is set.
12792
be3c9ca7 127932009-08-13 Yves Blusseau <blusseau@zetam.org>
12794
12795 * include/grub/symbol.h: Add the LOCAL macro.
12796 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
12797 starting with "L_".
12798
1f9e557e 127992009-08-13 Pavel Roskin <proski@gnu.org>
12800
9ca62843 12801 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
12802 any modern compilers we support.
12803
1f9e557e 12804 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
12805 Use local labels starting with "L_" so that Apple assembler
12806 knows they are local.
12807
81623db6 128082009-08-10 Robert Millan <rmh.grub@aybabtu.com>
12809
12810 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
12811 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
12812 (bsd_kernel_types): ... this enum.
12813
12814 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
12815 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
12816 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
12817
12818 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
12819 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
12820 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
12821 messages.
12822
f5d35e7a 128232009-08-08 Robert Millan <rmh.grub@aybabtu.com>
12824
12825 * util/grub-dumpdevtree: Moved from here ...
12826 * util/i386/efi/grub-dumpdevtree: ... to here.
12827 (hexify): New function. Converts a string to its hex version.
12828 Generate hex versions of "efi" and "device-properties" by calling
12829 hexify() on the ASCII strings rather than by hardcoding numbers.
12830
d1e1d527 128312009-08-08 Robert Millan <rmh.grub@aybabtu.com>
12832
12833 * fs/jfs.c: Update copyright year.
12834
1ebbe064 128352009-08-08 Felix Zielcke <fzielcke@z-51.de>
12836
12837 * util/grub.d/00_header.in: Fix a comment.
12838 * util/grub.d/10_linux.in: Likewise.
12839 * util/grub.d/10_windows.in: Likewise.
12840 * util/grub.d/10_hurd.in: Likewise.
12841
a78c8d24 128422009-08-08 Felix Zielcke <fzielcke@z-51.de>
12843
12844 * util/grub-mkconfig.in: Allow the user to specify the used font
12845 with GRUB_FONT.
12846
29a6b9e8 128472009-08-08 Pavel Roskin <proski@gnu.org>
12848
b5f16cc4 12849 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
12850 available, xfs.mod needs it now.
12851
2f5cb827 12852 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
12853 the "g" modifier in sed when the intention is to strip something
12854 once. This fixes comparison of kernels with multiple dashes.
12855
29a6b9e8 12856 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
12857 on it. Add missing space before closing bracket. Fix
12858 misleading formatting.
12859
892a3d98 128602009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12861
12862 * docs/grub.texi: Major overhaul. Remove all sections that are
12863 specific to GRUB Legacy, or mostly composed of Legacy-specific
12864 information.
12865
ed94253f 128662009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12867
12868 * docs/version.texi: New file. Provides version information for
12869 grub.texi.
12870
126d6628 128712009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12872
12873 * docs/grub.texi: Update CVS information to SVN.
12874 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
12875
998b5aa9 128762009-08-07 Felix Zielcke <fzielcke@z-51.de>
12877
12878 * util/grub-mkconfig.in: Remove a wrong `fi'.
12879
818e094a 128802009-08-07 Felix Zielcke <fzielcke@z-51.de>
12881
12882 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
12883 (grub_jfs_uuid): New function.
12884 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
12885
b969c52f 128862009-08-07 Felix Zielcke <fzielcke@z-51.de>
12887
12888 * util/grub-mkconfig_lib.in (font_path): Move the functionality
12889 of it to ...
12890 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
12891 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
12892
7a4894cc 128932009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12894
12895 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
12896 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
12897 Update all users.
12898
12899 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
12900 not just "vmlinu[zx]".
12901 Moved from here ...
12902 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
12903 all users.
12904
12905 * util/grub.d/10_linux.in (find_latest): Moved from here ...
12906 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
12907 all users.
12908
4e2171f8 129092009-08-07 Robert Millan <rmh.grub@aybabtu.com>
12910
12911 * util/grub.d/10_freebsd.in: Use an absolute device path for
12912 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
12913
6dcfcb32 129142009-08-06 Felix Zielcke <fzielcke@z-51.de>
12915
12916 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
12917 handling of multiple abstraction modules.
12918
f56a8756 129192009-08-04 Robert Millan <rmh.grub@aybabtu.com>
12920
12921 Fix a bug resulting in black screen when loading Linux using a
12922 packed video mode.
12923
12924 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
12925 function.
12926
12927 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
12928 (grub_vbe_bios_getset_dac_palette_width): New function.
12929 (grub_vbe_bios_get_dac_palette_width)
12930 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
12931 grub_vbe_bios_getset_dac_palette_width()).
12932
12933 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
12934 check for return status.
12935 (grub_vbe_get_video_mode_info): When getting information for a packed
12936 mode (<= 8 bpp), obtain DAC palette width using
12937 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
12938 {red,green,blue}_mark_size.
12939
222671b2 129402009-08-04 Felix Zielcke <fzielcke@z-51.de>
12941
ecb1a6d9 12942 * commands/search.c (options): Fix help output to match actual code.
222671b2 12943
f84114f5 129442009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
12947 of homegrown code.
12948
bd288a20 129492009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 12950
12951 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
12952 on XFS or ReiserFS.
12953
8aab5e25 129542009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
12955
12956 Support Apple partition map with sector size different from 512 bytes.
12957
12958 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
12959 (apple_partition_map_iterate): Respect 'aheader.blocksize'
12960 and 'apart.partmap_size'.
12961
6ad6258a 129622009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
129632009-08-01 Robert Millan <rmh.grub@aybabtu.com>
12964
12965 Fix cpuid command.
12966
12967 * commands/i386/cpuid.c (options): New variable.
12968 (grub_cmd_cpuid): Return real error.
12969 (GRUB_MOD_INIT(cpuid)): Declare options.
12970
67459bc6 129712009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
12972
12973 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
12974 valid.
12975
fbc6ab54 129762009-07-31 Bean <bean123ch@gmail.com>
12977
12978 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
12979 log2_inode.
12980 (grub_fshelp_node): Move inode field to the end.
12981 (grub_xfs_data): Remove inode field.
12982 (grub_xfs_inode_block): Calculate inode size using sblock.
12983 (grub_xfs_inode_offset): Likewise.
12984 (grub_xfs_read_inode): Calculate inode size using sblock.
12985 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
12986 (grub_xfs_iterate_dir): Calculate inode size using sblock.
12987 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
12988 to match inode size.
12989 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
12990 not accessible when data is null.
12991 (grub_xfs_open): Likewise.
12992
f45d6cfc 129932009-07-31 Bean <bean123ch@gmail.com>
12994
12995 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
12996 Don't change pv->disk if it's already set.
12997
12998 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
12999 (grub_raid_register): ... here.
13000 (grub_raid_rescan): Removed.
13001
13002 * include/grub/raid.h (grub_raid_rescan): Removed.
13003
13004 * util/grub-fstest.c: Remove include file <grub/raid.h>.
13005 (fstest): Replace grub_raid_rescan with module fini function followed
13006 by init function.
13007
13008 * util/grub-probe.c: Add include file <grub/raid.h>.
13009 (probe_raid_level): New function.
13010 (probe): Detect abstraction by walking the disk device, support two
13011 level of abstraction (LVM on RAID) when detecting partition map.
13012
24443b5a 130132009-07-31 Pavel Roskin <proski@gnu.org>
13014
13015 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
13016 to grub_zalloc(), it was erroneous.
13017 Reported by Bean <bean123ch@gmail.com>
13018
a275d9e7 130192009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 13022 embedding zone, not only the first one.
a275d9e7 13023
56c5a47f 130242009-07-29 Joe Auricchio <jauricchio@gmail.com>
13025
13026 * term/gfxterm.c (clear_char): New function.
13027 (grub_virtual_screen_setup): Use clear_char.
13028 (scroll_up): Likewise.
13029 (grub_virtual_screen_cls): Likewise.
13030
67bb323a 130312009-07-29 Felix Zielcke <fzielcke@z-51.de>
13032
13033 * util/deviceiter.c (get_acceleraid_disk_name): New static
13034 function.
13035 (grub_util_iterate_devices): Handle Accelraid devices.
13036 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
13037
388a7c75 130382009-07-28 Robert Millan <rmh.grub@aybabtu.com>
13039
13040 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
13041 separator for the suggested gfxpayload string (';' collides with the
13042 parser and needs escaping).
13043
3bb7abcf 130442009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13045
13046 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
13047 Clear direction flag before jumping to OS.
13048 (grub_multiboot2_real_boot): Likewise.
13049
2ddd36d7 130502009-07-28 Felix Zielcke <fzielcke@z-51.de>
13051
13052 * util/i386/pc/grub-install: Fix parsing of --disk-module
13053 option.
13054
c521b62b 130552009-07-28 Felix Zielcke <fzielcke@z-51.de>
13056
13057 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
13058 when embedding.
13059
880e0a0c 130602009-07-26 Felix Zielcke <fzielcke@z-51.de>
13061
13062 * util/grub-mkconfig.in (package_version): New variable.
13063 Use it do display the version.
13064
2366e356 130652009-07-25 Felix Zielcke <fzielcke@z-51.de>
13066
13067 * kern/file.c (grub_file_open): Revert to previous check with
13068 grub_errno.
13069
7ad8c80e 130702009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
13073 from help line. It's out of sync with code.
13074
72b9658b 130752009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13076
13077 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
13078 entries on failed boot.
13079
77435277 130802009-07-25 Felix Zielcke <fzielcke@z-51.de>
13081
13082 * kern/file.c (grub_file_open): Fix an error check.
13083
fcaa8b21 130842009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
13085
35d16c74 13086 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
13087 partition map couldn't be identified.
fcaa8b21 13088
48904cd1 130892009-07-23 Pavel Roskin <proski@gnu.org>
13090
ef3c317f 13091 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
13092 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
13093 case of little endian words becomes just an optimization.
13094 Respect const modifier.
ad8ea1f4 13095 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 13096
48904cd1 13097 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
13098 to avoid loss of upper bits if align is unsigned and shorter
13099 than addr.
13100
260c9a89 131012009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
13102
13103 UUID support for UFS
13104
13105 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
13106 (grub_ufs_uuid): New function.
13107 (grub_ufs_fs): add .uuid
13108
f76ce889 131092009-07-21 Pavel Roskin <proski@gnu.org>
13110
13111 * kern/dl.c (grub_dl_check_header): Make static.
13112
6a6cbcaf 131132009-07-21 Felix Zielcke <fzielcke@z-51.de>
13114
13115 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
13116 add drivemap for Vista. It breaks Windows 7.
13117
cffcddb2 131182009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
13119
13120 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
13121 128 bytes
13122
1ef44b80 131232009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 Add BFS support
13126
13127 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
13128 (grub_fstest_SOURCES): Likewise.
13129 (pkglib_MODULES): Add befs.mod.
13130 (befs_mod_SOURCES): New variable.
13131 (befs_mod_CFLAGS): Likewise.
13132 (befs_mod_LDFLAGS): Likewise.
13133 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13134 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13135 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13136 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13137 (grub_setup_SOURCES): Likewise.
13138 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13139 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13140 (grub_setup_SOURCES): Likewise.
13141 * fs/befs.c: New file.
13142 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
13143 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
13144 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
13145 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
13146 (B_KEY_INDEX_ALIGN): New declaration.
13147 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
13148 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
13149 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
13150 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
13151 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
13152 (grub_afs_mount) [MODE_BFS]: Likewise.
13153 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
13154 (grub_afs_fs): Use GRUB_AFS_FSNAME
13155 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
13156 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
13157 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
13158 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
13159
4f253044 131602009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
13161
13162 * util/getroot.c (find_root_device): Add support for MacOSX.
13163 * util/hostdisk.c: Likewise.
13164
57a55913 131652009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * font/font.c (find_glyph): Check whether a font is present to avoid
13168 segmentation fault.
75421ca9 13169
131702009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 13171
13172 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
13173
e98cd0c2 131742009-07-20 Pavel Roskin <proski@gnu.org>
13175
13176 * configure.ac: Trim excessively wordy excuses.
13177
1d2d169a 131782009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13179
13180 Add symlink, mtime and label support to AtheFS.
13181
13182 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
13183 (grub_afs_iterate_dir): Handle symlinks.
13184 (grub_afs_open): Use grub_afs_read_symlink.
13185 (grub_afs_dir): Likewise.
13186 Pass mtime.
13187 (grub_afs_label): New function.
13188 (grub_afs_fs): Add grub_afs_label.
13189 (grub_afs_read_symlink): New function.
13190
186f3189 131912009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13192
13193 Fix AtheFS support.
13194
13195 * fs/afs.c: Fix comments style.
13196 (grub_afs_blockrun): Declare as packed.
13197 (grub_afs_datastream): Likewise.
13198 (grub_afs_bnode): Likewise.
13199 (grub_afs_btree): Likewise.
13200 (grub_afs_sblock): Likewise.
13201 Declare `name' as char.
13202 (grub_afs_inode): Declare as packed.
13203 Change void *vnode to grub_uint32_t unused.
13204 (grub_afs_iterate_dir): Check that key_size is positive.
13205 (grub_afs_mount): Don't read superblock twice.
75421ca9 13206 (grub_afs_dir): Don't free node in case of error,
186f3189 13207 grub_fshelp_find_file already handles this.
13208 (grub_afs_open): Likewise.
13209
5680109e 132102009-07-19 Pavel Roskin <proski@gnu.org>
13211
13212 * Makefile.in: Remove LIBLZO and enable_lzo.
13213 * conf/i386-pc.rmk: Remove lzo support.
13214 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
13215 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
13216 support.
13217 * kern/i386/pc/lzo1x.S: Remove.
13218 * kern/i386/pc/startup.S: Remove lzo support.
13219 * util/i386/pc/grub-mkimage.c: Likewise.
13220
ac70fa32 132212009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
13222
13223 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
13224 * fs/xfs.c (grub_xfs_dir): Likewise.
13225 * fs/afs.c (grub_afs_dir): Likewise.
13226 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13227 (grub_iso9660_open): Likewise.
13228 * fs/jfs.c (grub_jfs_open): Likewise.
13229 * fs/ext2.c (grub_ext2_dir): Likewise.
13230 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
13231 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 13232
eab58da2 132332009-07-16 Pavel Roskin <proski@gnu.org>
13234
d2838156 13235 * configure.ac: Never add "-c" to CFLAGS.
13236
55c70904 13237 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
13238
43e6200c 13239 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
13240 grub_cv_cc_efiemu should be used.
13241
ce7a733d 13242 * configure.ac: Typo fixes.
13243
eab58da2 13244 * kern/mm.c (grub_zalloc): New function.
13245 (grub_debug_zalloc): Likewise.
13246 * include/grub/mm.h: Declare grub_zalloc() and
13247 grub_debug_zalloc().
13248 * util/misc.c (grub_zalloc): New function.
13249 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
13250 instead of grub_malloc(), remove unneeded initializations.
13251 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
13252 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
13253 * commands/parttool.c (grub_cmd_parttool): Likewise.
13254 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
13255 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
13256 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
13257 * disk/usbms.c (grub_usbms_finddevs): Likewise.
13258 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
13259 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
13260 (grub_cmd_efiemu_pnvram): Likewise.
13261 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
13262 * fs/iso9660.c (grub_iso9660_mount): Likewise.
13263 (grub_iso9660_iterate_dir): Likewise.
13264 * fs/jfs.c (grub_jfs_opendir): Likewise.
13265 * fs/ntfs.c (list_file): Likewise.
13266 (grub_ntfs_mount): Likewise.
13267 * kern/disk.c (grub_disk_open): Likewise.
13268 * kern/dl.c (grub_dl_load_core): Likewise.
13269 * kern/elf.c (grub_elf_file): Likewise.
13270 * kern/env.c (grub_env_context_open): Likewise.
13271 (grub_env_set): Likewise.
13272 (grub_env_set_data_slot): Likewise.
13273 * kern/file.c (grub_file_open): Likewise.
13274 * kern/fs.c (grub_fs_blocklist_open): Likewise.
13275 * loader/i386/multiboot.c (grub_module): Likewise.
13276 * loader/xnu.c (grub_xnu_create_key): Likewise.
13277 (grub_xnu_create_value): Likewise.
13278 * normal/main.c (grub_normal_add_menu_entry): Likewise.
13279 (read_config_file): Likewise.
13280 * normal/menu_entry.c (make_screen): Likewise.
13281 * partmap/sun.c (sun_partition_map_iterate): Likewise.
13282 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
13283 * script/sh/script.c (grub_script_parse): Likewise.
13284 * video/bitmap.c (grub_video_bitmap_create): Likewise.
13285 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
13286 * video/readers/png.c (grub_png_output_byte): Likewise.
13287 (grub_video_reader_png): Likewise.
13288
830afef7 132892009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 13290
13291 Enable all targets that can be built by default
13292
830afef7 13293 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 13294 grub-mkfont and grub-fstest if they can be built
13295
ee293aee 132962009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
13297
13298 Fix hang and segmentation fault in grub-emu-usb
13299
13300 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
13301 * util/usb.c (grub_libusb_devices): likewise
13302 (grub_libusb_init): rename to ...
13303 (GRUB_MOD_INIT (libusb)):...this
13304 (grub_libusb_fini): rename to ..
13305 (GRUB_MOD_FINI (libusb)):...this
13306 * disk/usbms.c (grub_usbms_transfer): fix retry logic
13307 * include/grub/disk.h (grub_raid_init): removed, it's useless
13308 (grub_raid_fini): likewise
13309 (grub_lvm_init): likewise
13310 (grub_lvm_fini): likewise
13311 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
13312 by grub_init_all
13313
94414221 133142009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 Fix libusb
13317
13318 * Makefile.in (LIBUSB): new macro
13319 * genmk.rb (Utility/print_tail): new method
13320 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
13321 (top level): call util.print_tail at the end.
13322
59ade63d 133232009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
13324
13325 Make FreeBSD accept zpool.cache
13326
13327 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
13328 type is /boot/zfs/zpool.cache
13329
a58da8c7 133302009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
13331
13332 Fix 64-bit efiemu
13333
13334 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
13335 correct wrong typedef
13336 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
13337
20591577 133382009-07-15 Pavel Roskin <proski@gnu.org>
13339
560ca572 13340 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
13341 * kern/disk.c (struct grub_disk_cache): Likewise.
13342
e8e8e4fd 13343 * commands/probe.c (options): Typo fix.
13344
fde24e10 13345 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
13346 Increase to 0x5a to accommodate FAT32. Adjust other offsets
13347 accordingly.
13348 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
13349
379c54c1 13350 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
13351 the end of "Error" to make the message more readable.
13352
7bd8f5bf 13353 * boot/i386/pc/boot.S (kernel_segment): Remove.
13354 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
13355 for destination.
13356
40b132c5 13357 * boot/i386/pc/boot.S (boot_version): Remove.
13358 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
13359 Remove.
13360
20591577 13361 * include/grub/i386/pc/boot.h: Sort all offsets.
13362 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
13363 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
13364 * boot/i386/pc/boot.S: Assert location of every offset listed in
13365 include/grub/i386/pc/boot.h.
13366
2df32b2c 133672009-07-13 Pavel Roskin <proski@gnu.org>
13368
44b5d879 13369 * include/grub/i386/coreboot/machine.h: Rename
13370 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
13371 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
13372 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
13373
17dc3751 13374 * kern/dl.c: Force native word size to suppress warnings when
13375 compiling grub-emu.
13376
2df32b2c 13377 * kern/device.c (grub_device_iterate): Change struct part_ent to
13378 hold the name, not a pointer to it. Use one grub_malloc() per
13379 partition, not two. Free partition_name if grub_malloc() fails.
13380 Set ents to NULL only before grub_partition_iterate() is called.
13381
75c59f59 133822009-07-11 Bean <bean123ch@gmail.com>
13383
13384 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
13385 childname.
13386
0ae1bf88 133872009-07-10 Bean <bean123ch@gmail.com>
133882009-07-10 Robert Millan <rmh.grub@aybabtu.com>
13389
13390 * kern/ieee1275/openfw.c (grub_children_iterate)
13391 (grub_devalias_iterate): Fix size evaluation for property or path
13392 strings, which was broken since r2132.
13393
8279cade 133942009-07-07 Pavel Roskin <proski@gnu.org>
13395
7d8a52d3 13396 * commands/search.c (search_file): Merge into ...
13397 (search_fs): ... this. Accept search type as argument.
13398 (grub_cmd_search): Pass search type to search_fs().
13399
25f9a05a 13400 * include/grub/util/console.h: New file.
13401 * util/console.c: Use it instead of grub/machine/console.h.
13402 * util/grub-emu.c: Likewise.
13403
8279cade 13404 * lib/arg.c (find_long_option): Remove.
13405 (find_long): Add `len' argument, make `s' const char *.
13406 (grub_arg_parse): Parse long options in place, not in a
13407 temporary buffer.
13408
4a11b60f 134092009-07-06 Pavel Roskin <proski@gnu.org>
13410
99f68041 13411 * commands/search.c (search_fs): Fix potential NULL pointer
13412 dereference.
13413
4a11b60f 13414 * commands/search.c (search_fs): Replace QUID macro with quid_fn
13415 function pointer.
13416
e110f4de 134172009-07-06 Daniel Mierswa <impulze@impulze.org>
13418
13419 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
13420 comparison.
13421
46eeb6a2 134222009-07-05 Pavel Roskin <proski@gnu.org>
13423
bab74958 13424 * include/grub/i386/linux.h (struct linux_kernel_params):
13425 Restore padding3, it's still needed.
13426
46eeb6a2 13427 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
13428 FreeBSD.
13429 * util/osdetect.lua: Likewise.
13430
b4a1dc79 134312009-07-05 Bean <bean123ch@gmail.com>
13432
13433 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
13434
13435 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
13436 (grub_lua_getenv): Likewise.
13437 (grub_lua_setenv): Likewise.
13438 (save_errno): New function.
13439 (push_result): Likewise.
13440 (grub_lua_enum_device): Likewise.
13441 (grub_lua_enum_file): Likewise.
13442 (grub_lua_file_open): Likewise.
13443 (grub_lua_file_close): Likewise.
13444 (grub_lua_file_seek): Likewise.
13445 (grub_lua_file_read): Likewise.
13446 (grub_lua_file_getline): Likewise.
13447 (grub_lua_file_getsize): Likewise.
13448 (grub_lua_file_getpos): Likewise.
13449 (grub_lua_file_eof): Likewise.
13450 (grub_lua_file_exist): Likewise.
13451 (grub_lua_add_menu): Likewise.
13452
13453 * script/lua/grub_lua.h (isupper): New inline function.
13454 (islower): Likewise.
13455 (ispunct): Likewise.
13456 (isxdigit): Likewise.
13457 (strcspn): Change to normal function.
13458 (strpbkr): New function declaration.
13459 (memchr): Likewise.
13460
13461 * script/lua/grub_main.c (scan_str): New function.
13462 (strcspn): Likewise.
13463 (strpbrk): Likewise.
13464 (memchr): Likewise.
13465
13466 * script/lua/linit.c (lualibs): Enable the string library.
13467
13468 * util/osdetect.lua: New file.
13469
2da92295 134702009-07-04 Robert Millan <rmh.grub@aybabtu.com>
13471
13472 * include/grub/i386/linux.h (struct linux_kernel_params): Add
13473 `capabilities' member.
13474
b2582ec9 134752009-07-02 Pavel Roskin <proski@gnu.org>
13476
13477 * genparttoollist.sh: Add missing newline at the end.
13478
32622956 134792009-07-01 Pavel Roskin <proski@gnu.org>
13480
87a7339e 13481 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
13482
d23af54e 13483 * util/hostdisk.c (open_device): Remove `const' from
13484 `sysctl_size', as sysctlbyname() can change it (in this case it
13485 doesn't actually happen).
13486
c94b18a9 13487 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
13488 using signed long int constants.
13489
c6cd3ef0 13490 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
13491 constant to avoid a warning on FreeBSD.
13492
0df63420 13493 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
13494 where it's needed.
13495
999577f1 13496 * Makefile.in: Install include/grub/machine symlink.
13497
6f41557f 13498 * Makefile.in: When installing symlinks, use "cp -fR", which
13499 works on FreeBSD and MacOSX.
13500 From Yves Blusseau <cl7m42e02@sneakemail.com>
13501
c8d22988 13502 * kern/dl.c (grub_dl_resolve_symbol): Make static.
13503 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
13504
1b96e952 13505 * util/misc.c: Move grub_reboot() and grub_halt() ...
13506 * util/grub-emu.c: ... here. Make main_env static.
13507 * include/grub/util/misc.h: Remove main_env.
13508
2ef0084d 13509 * kern/mm.c: Use correct format to print size_t.
13510
32622956 13511 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
13512 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
13513 * kern/powerpc/dl.c: Likewise.
13514 * kern/sparc64/dl.c: Likewise.
13515 * kern/x86_64/dl.c: Likewise.
13516
3f7f0cd0 135172009-07-01 Robert Millan <rmh.grub@aybabtu.com>
13518
13519 Fix grub-emu build on sparc64-ieee1275.
13520
75421ca9 13521 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 13522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
13523
211d06b5 135242009-07-01 Robert Millan <rmh.grub@aybabtu.com>
13525
13526 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
13527 (grub_reboot, grub_halt): New functions.
13528
13529 * util/i386/pc/misc.c: Delete. Update all users.
13530 * util/sparc64/ieee1275/misc.c: Likewise.
13531 * util/powerpc/ieee1275/misc.c: Likewise.
13532
aaf53e3c 135332009-07-01 Robert Millan <rmh.grub@aybabtu.com>
13534
13535 * conf/i386.rmk (setjmp_mod_SOURCES)
13536 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
13537 * conf/common.rmk (setjmp_mod_SOURCES)
13538 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
13539 to use $(target_cpu).
13540 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
13541 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
13542 * conf/powerpc-ieee1275.rmk: Likewise.
13543 * conf/sparc64-ieee1275.rmk: Likewise.
13544
13545 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
13546 $(target_cpu) for kern/$(target_cpu)/dl.c.
13547 * conf/i386-efi.rmk: Likewise.
13548 * conf/i386-ieee1275.rmk: Likewise.
13549 * conf/x86_64-efi.rmk: Likewise.
13550 * conf/i386-coreboot.rmk: Likewise.
13551 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
13552 $(target_cpu) for kern/$(target_cpu)/dl.c and for
13553 kern/$(target_cpu)/cache.S.
13554 * conf/sparc64-ieee1275.rmk: Likewise.
13555
a337130b 135562009-07-01 Robert Millan <rmh.grub@aybabtu.com>
13557
13558 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
13559 type to `grub_uint8_t', and adjust `padding9' accordingly.
13560
c6fe4d53 135612009-06-29 Robert Millan <rmh.grub@aybabtu.com>
13562
b09db61d 13563 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
13564
c6fe4d53 13565 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
13566 assembly in final jump, using register constraints.
13567
b09db61d 13568 (grub_linux_boot): For text mode, initialize `have_vga' using
13569 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
13570
13571 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
13572 right before the final jump.
13573
13574 Set `video_mode' to 0x3.
13575
13576 Document initialization of `video_page', `video_mode' and
13577 `video_ega_bx'.
13578
28333ad0 135792009-06-29 Robert Millan <rmh.grub@aybabtu.com>
13580
13581 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
13582 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 13583 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 13584
02164e1b 135852009-06-29 Robert Millan <rmh.grub@aybabtu.com>
13586
13587 Fix build on Debian / sparc.
13588
13589 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
13590
18b6c557 135912009-06-28 Pavel Roskin <proski@gnu.org>
13592
85f2aab6 13593 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
13594 fix a warning.
13595
18b6c557 13596 * util/grub.d/10_linux.in: Match SUSE style initrd names.
13597
ad760f81 135982009-06-27 Robert Millan <rmh.grub@aybabtu.com>
13599
13600 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
13601 `err'.
13602
87a4623b 136032009-06-27 Robert Millan <rmh.grub@aybabtu.com>
13604
13605 Revert r2338.
13606
13607 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
13608 file can't be opened. grub_file_open() is already supposed to set
75421ca9 13609 grub_errno / grub_errmsg appropriately.
87a4623b 13610 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13611
8231fb77 136122009-06-27 Pavel Roskin <proski@gnu.org>
136132009-06-27 Robert Millan <rmh.grub@aybabtu.com>
13614
13615 * include/grub/dl.h: Include grub/elf.h.
13616 (struct grub_dl): Add symtab field.
13617 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
13618 GRUB_MODULES_MACHINE_READONLY.
13619 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
13620 of the header for read-only modules.
13621 (grub_dl_unload): Free mod->symtab for read-only modules.
13622 * kern/i386/dl.c: Use mod->symtab.
13623 * kern/powerpc/dl.c: Likewise.
13624 * kern/sparc64/dl.c: Likewise.
13625 * kern/x86_64/dl.c: Likewise.
13626
13627 * conf/i386-qemu.rmk: New file.
13628 * kern/i386/qemu/startup.S: Likewise.
13629 * kern/i386/qemu/mmap.c: Likewise.
13630 * boot/i386/qemu/boot.S: Likewise.
13631 * include/grub/i386/qemu/time.h: Likewise.
13632 * include/grub/i386/qemu/serial.h: Likewise.
13633 * include/grub/i386/qemu/kernel.h: Likewise.
13634 * include/grub/i386/qemu/console.h: Likewise.
13635 * include/grub/i386/qemu/boot.h: Likewise.
13636 * include/grub/i386/qemu/init.h: Likewise.
13637 * include/grub/i386/qemu/machine.h: Likewise.
13638 * include/grub/i386/qemu/loader.h: Likewise.
13639 * include/grub/i386/qemu/memory.h: Likewise.
13640
13641 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
13642 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
13643 [qemu] (pkglib_IMAGES): Add `boot.img'.
13644 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
13645 [qemu] (boot_img_FORMAT): New variables.
13646 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
13647 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
13648 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
13649 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
13650 [qemu] (kernel_img_FORMAT): New variables.
13651
13652 * configure.ac: Recognise `i386-qemu'.
13653
13654 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
13655 (for no compression).
13656 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
13657 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
13658 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
13659 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
13660 ifdefs).
13661
97fe384e 136622009-06-27 Pavel Roskin <proski@gnu.org>
13663
13664 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
13665 read.
13666 * efiemu/prepare32.c: Likewise.
13667 * efiemu/prepare64.c: Likewise.
13668
c402ab17 136692009-06-26 Pavel Roskin <proski@gnu.org>
13670
13671 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
13672 * include/grub/elf.h: Define symbols without "32" or "64" based
13673 on GRUB_TARGET_WORDSIZE.
13674 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
13675 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
13676 ELF definitions.
13677 * efiemu/loadcore64.c: Likewise.
13678 * loader/i386/bsd32.c: Likewise.
13679 * loader/i386/bsd64.c: Likewise.
13680 * kern/dl.c: Remove own ELF definitions.
13681 * util/i386/efi/grub-mkimage.c: Likewise.
13682
9bbdfd4d 136832009-06-23 Robert Millan <rmh.grub@aybabtu.com>
13684
13685 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
13686 segment 0x0 unconditionally, because the reference generated by
13687 GAS is an absolute address.
13688
a42ce6e9 136892009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13690
13691 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
13692 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
13693
c952cf92 136942009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13695
13696 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
13697 indexes. Check for -f explicitly.
cc3752ad 13698 (search_file): Improve error message.
13699 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 13700
132a0a59 137012009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13702
13703 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
13704 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
13705
387a140c 137062009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13707
13708 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
13709 * conf/i386-ieee1275.rmk: Likewise.
13710 * conf/i386-coreboot.rmk: Likewise.
13711
13712 * kern/i386/pc/startup.S (grub_stop): Remove function.
13713 * kern/i386/ieee1275/startup.S: Likewise.
13714 * kern/i386/coreboot/startup.S: Likewise.
13715 * kern/i386/misc.S (grub_stop): New function.
13716
41da9665 137172009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13718
13719 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
13720 * kern/i386/realmode.S (real_to_prot): ... to here.
13721
bf337234 137222009-06-22 Robert Millan <rmh.grub@aybabtu.com>
13723
13724 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
13725 with `kernel.img'.
13726 (kernel_elf_SOURCES): Rename to ...
13727 (kernel_img_SOURCES): ... this.
13728 (kernel_elf_HEADERS): Rename to ...
13729 (kernel_img_HEADERS): ... this. Update all users.
13730 (kernel_elf_ASFLAGS): Rename to ...
13731 (kernel_img_ASFLAGS): ... this.
13732 (kernel_elf_CFLAGS): Rename to ...
13733 (kernel_img_CFLAGS): ... this.
13734 (kernel_elf_LDFLAGS): Rename to ...
13735 (kernel_img_LDFLAGS): ... this.
13736 * conf/i386-coreboot.rmk: Likewise.
13737 * conf/powerpc-ieee1275.rmk: Likewise.
13738
13739 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
13740 with "kernel.img".
13741
f52196ff 137422009-06-21 Pavel Roskin <proski@gnu.org>
13743
c3cee413 13744 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
13745 to match nested functions.
13746 * loader/sparc64/ieee1275/linux.c: Likewise.
13747
f52196ff 13748 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
13749
58750afc 137502009-06-21 Robert Millan <rmh.grub@aybabtu.com>
13751
13752 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
13753 all i386 platforms.
13754
15355c7d 137552009-06-21 Robert Millan <rmh.grub@aybabtu.com>
13756
13757 Fix asm file handling on ELF, and remove workarounds.
13758
13759 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 13760 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 13761 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
13762 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
13763
3f3ec72b 137642009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
13765
13766 Load BSD ELF modules
13767
13768 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
13769 and loader/i386/bsd64.c
13770 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
13771 (FREEBSD_MODTYPE_ELF_MODULE): New definition
13772 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
13773 (grub_freebsd_load_elfmodule32): New declaration
13774 (grub_freebsd_load_elfmoduleobj64): Likewise
13775 (grub_freebsd_load_elf_meta32): Likewise
13776 (grub_freebsd_load_elf_meta64): Likewise
13777 (grub_freebsd_add_meta): Likewise
13778 (grub_freebsd_add_meta_module): Likewise
13779 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
13780 (grub_freebsd_add_meta_module): Likewise and move module-specific
13781 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
13782 (grub_cmd_freebsd): Add elf-kernel specific parts
13783 based on grub_freebsd_add_meta_module
13784 (grub_cmd_freebsd_module): Add type parsing moved from
13785 grub_freebsd_add_meta_module
13786 (grub_cmd_freebsd_module_elf): New function
13787 (cmd_freebsd_module_elf): New variable
13788 (GRUB_MOD_INIT): Register freebsd_module_elf
13789 * loader/i386/bsd32.c: New file
13790 * loader/i386/bsd64.c: Likewise
13791 * loader/i386/bsdXX.c: Likewise
13792 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
13793 (grub_elf64_load): Likewise
13794 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
13795 All users updated
13796 (grub_elf64_load_hook_t): Likewise
13797
0db15301 137982009-06-21 Colin Watson <cjwatson@ubuntu.com>
13799
13800 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
13801 variable.
13802 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
13803 don't write a menu entry for recovery mode.
13804
546796c1 138052009-06-20 Robert Millan <rmh.grub@aybabtu.com>
13806
13807 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
13808 after it's no longer needed.
13809
cd7310d5 138102009-06-20 Robert Millan <rmh.grub@aybabtu.com>
13811
13812 * include/grub/i386/loader.h (grub_linux_prot_size)
13813 (grub_linux_tmp_addr, grub_linux_real_addr)
13814 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
13815 GRUB_MACHINE_PCBIOS.
13816 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
13817 common grub_util_info() call to ...
13818 (generate_image): ... here.
13819 Fix use of uninitialized memory, comparison of signed with
13820 unsigned integers and memory leak.
13821 Remove bogus module address message.
13822
ab32d3b5 138232009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13824
13825 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
13826 grub_raid_register
13827 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
13828
024ef597 138292009-06-19 Pavel Roskin <proski@gnu.org>
13830
13831 * configure.ac: Remove stray AC_MSG_CHECKING.
13832
3ac72b51 138332009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
13834
13835 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 13836
e14cd814 138372009-06-18 Pavel Roskin <proski@gnu.org>
13838
13839 * conf/common.rmk: Add fs_file.mod.
13840 * disk/fs_file.c: New file.
13841 * include/grub/disk.h (enum grub_disk_dev_id): Add
13842 GRUB_DISK_DEVICE_FILE_ID.
13843
26586d98 138442009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
13845
13846 Fix build with Apple's toolchain. Part 2
13847
13848 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
13849 a fake start
13850
26de2bcd 138512009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 Fix build with Apple's toolchain. Part 1
13854
13855 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
13856 for long calls
13857 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 13858 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 13859 Apple's toolchain
13860
09b3490b 138612009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 Fix warnings
13864
13865 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
13866 (decomp_block): initialize ch
13867 use grub_memcpy instead of memcpy
13868
c22a006a 138692009-06-17 Pavel Roskin <proski@gnu.org>
13870
d3638678 13871 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
13872 version, use declarations needed to use vga_text as the startup
13873 console.
13874
c22a006a 13875 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
13876 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
13877 the kernel.
13878 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
13879 and grub_at_keyboard_fini(), it's done on module load and
13880 unload.
13881
05b129e0 138822009-06-17 Felix Zielcke <fzielcke@z-51.de>
13883
13884 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
13885 file can't be found.
13886 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13887
cf24ed9e 138882009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
13889
13890 Fix newline handling
13891
13892 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 13893 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 13894 (grub_script_yylex): don't segfault on unterminated script
13895 newline terminates command and variable
13896
74aa8e4b 138972009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
13898
13899 avoid double grub_adjust_range call. Bug reported by David Simner
13900
13901 * kern/disk.c (grub_disk_write): change to raw disk access before
13902 calling disk_read
13903
1bd265f3 139042009-06-17 Colin Watson <cjwatson@ubuntu.com>
13905
13906 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
13907 spaces, for the benefit of help2man.
13908 * util/i386/efi/grub-mkimage.c (usage): Likewise.
13909
a2d08c06 139102009-06-16 Pavel Roskin <proski@gnu.org>
13911
13912 * kern/i386/halt.c: Include grub/machine/init.h.
13913 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
13914
b97bcb19 139152009-06-16 Felix Zielcke <fzielcke@z-51.de>
13916
13917 * util/grub.d/30_os-prober.in: Use ${root} in the generated
13918 drivemap menuentry.
13919
0644f96c 139202009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
13921
13922 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
13923 `echo' command.
13924
3ef17a2e 139252009-06-16 Pavel Roskin <proski@gnu.org>
13926
13927 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
13928 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
13929 save %dx, we only need %dl and we never change it.
13930 * boot/i386/pc/cdboot.S: Don't set the root drive.
13931 * boot/i386/pc/pxeboot.S: Likewise.
13932 * include/grub/i386/pc/boot.h: Remove
13933 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
13934 GRUB_BOOT_MACHINE_DRIVE_CHECK.
13935 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
13936 * kern/i386/pc/init.c (make_install_device): Remove references
13937 to grub_root_drive.
13938 * kern/i386/pc/startup.S: Likewise.
13939 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
13940
693fe637 139412009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 xnu_uuid command
13944
13945 * commands/xnu_uuid.c: new file
13946 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
13947 (xnu_uuid_mod_SOURCES): new variable
13948 (xnu_uuid_mod_CFLAGS): likewise
13949 (xnu_uuid_mod_LDFLAGS): likewise
13950 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
13951 * conf/i386-ieee1275.rmk: likewise
13952 * conf/i386-pc.rmk: likewise
13953 * conf/powerpc-ieee1275.rmk: likewise
13954 * conf/sparc64-ieee1275.rmk: likewise
13955 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
13956
c9da87d0 139572009-06-16 Pavel Roskin <proski@gnu.org>
13958
13959 * configure.ac: Avoid '==' in test command, it's not portable.
13960
9c6f4596 139612009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
13962
13963 Probe command
13964
13965 * commands/probe.c: new file
13966 * conf/common.rmk (pkglib_MODULES): add probe.mod
13967 (probe_mod_SOURCES): new variable
13968 (probe_mod_CFLAGS): likewise
13969 (probe_mod_LDFLAGS): likewise
13970 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
13971 * conf/i386-ieee1275.rmk: likewise
13972 * conf/i386-pc.rmk: likewise
13973 * conf/powerpc-ieee1275.rmk: likewise
13974 * conf/sparc64-ieee1275.rmk: likewise
13975
70b7f9fd 139762009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
13977
13978 Fix handling of string like \"hello\" and "a
13979 b"
13980
13981 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
13982 (grub_script_yylex): fix parsing of quoting, escaping and newline
13983
71c79a6b 139842009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
13985
dd74360c 13986 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 13987 handling
dd74360c 13988
0644f96c 139892009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 13990
13991 * util/grub-mkconfig.in: Fix parsing of --output option.
13992
e40893c3 139932009-06-12 Pavel Roskin <proski@gnu.org>
13994
13995 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
13996 genmk.rb don't need to be generated or installed.
13997
3a1acfe2 139982009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13999
14000 * commands/i386/pc/drivemap_int13h.S: add more comments
14001
3a4575d4 140022009-06-11 Pavel Roskin <proski@gnu.org>
14003
0658e928 14004 * Makefile.in (uninstall): Uninstall manuals.
14005
ca0388f0 14006 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
14007 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
14008 and update-grub_lib in two places.
14009 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
14010
e3b27c39 14011 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
14012 a compiler warning.
14013
3a4575d4 14014 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
14015 `entry_lo' to fix variable shadowing.
14016
af1f4f55 140172009-06-11 Christian Franke <franke@computer.org>
14018
14019 * kern/misc.c (__enable_execute_stack): Add missing return type
14020 to prevent gcc warning.
14021
5225e649 140222009-06-11 Felix Zielcke <fzielcke@z-51.de>
14023
14024 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
14025
7d83bd47 140262009-06-11 Pavel Roskin <proski@gnu.org>
14027
c1cb63ba 14028 * Makefile.in: Don't rely on any scripts being executable.
14029 Always use $(SHELL) to run shell scripts.
14030
7d83bd47 14031 * configure.ac: Always define ___main if using -nostdlib. This
14032 fixes tests on Cygwin.
14033
948f48e7 140342009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
14035
14036 UDF fix
14037
7d83bd47 14038 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 14039 is in bytes and not in blocks
7d83bd47 14040
8ada9bc1 140412009-06-11 Pavel Roskin <proski@gnu.org>
14042
14043 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
14044 warning.
14045
25ad2323 140462009-06-11 Felix Zielcke <fzielcke@z-51.de>
14047
14048 * util/grub.d/30_os-prober.in: Fix a comment. Source
14049 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
14050 to set the root device. Place drivemap command in the generated
14051 chain entry.
14052
e65acb0c 140532009-06-11 Pavel Roskin <proski@gnu.org>
14054
14055 * configure.ac: Remove host_m32. Issues with 64-bit utilities
14056 have long been resolved.
14057
f285fe2d 140582009-06-11 Colin Watson <cjwatson@ubuntu.com>
14059
bd47b0b5 14060 * util/grub.d/10_linux.in: Capitalise "Linux".
14061
f285fe2d 14062 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
14063
a0c62e4e 140642009-06-11 Pavel Roskin <proski@gnu.org>
14065
b6783cb2 14066 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
14067 fix a gcc warning and ensure that the function won't ever exit.
14068
dde032e8 14069 * kern/i386/ieee1275/init.c: Add missing prototype for
14070 grub_stop_floppy().
14071
22cd079d 14072 * loader/ieee1275/multiboot2.c [__i386__]: Include
14073 grub/cpu/multiboot.h.
14074
a0c62e4e 14075 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
14076 casts to short - they are not portable and cause warnings. Fix
14077 use of uninitialized values in input_buf. Use ARRAY_SIZE.
14078
63963d17 140792009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
14080
14081 Drivemap fixes
14082
14083 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
14084 new function
14085 (grub_get_root_biosnumber_saved): new variable
14086 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
14087 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 14088 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 14089 %dx after the call if necessary
14090 * conf/common.rmk (pkglib_MODULES): remove boot.mod
14091 (boot_mod_SOURCES): remove
14092 (boot_mod_CFLAGS): remove
14093 (boot_mod_LDFLAGS): remove
14094 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
14095 (boot_mod_SOURCES): new variable
14096 (boot_mod_CFLAGS): likewise
14097 (boot_mod_LDFLAGS): likewise
14098 * conf/i386-efi.rmk: likewise
14099 * conf/i386-ieee1275.rmk: likewise
14100 * conf/i386-pc.rmk: likewise
14101 * conf/powerpc-ieee1275.rmk: likewise
14102 * conf/sparc64-ieee1275.rmk: likewise
14103 * conf/x86_64-efi.rmk: likewise
14104 * include/grub/i386/pc/biosnum.h: new file
14105 * lib/i386/pc/biosnum.c: likewise
14106 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
14107 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
14108 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 14109
33abf7ae 141102009-06-10 Pavel Roskin <proski@gnu.org>
14111
5ac35b35 14112 * io/gzio.c (test_header): Don't reuse one buffer for all data.
14113 Use separate variables. Read only the file size at the end, but
14114 not the checksum that we don't use.
14115
5c5215d5 14116 * kern/file.c (grub_file_read): Use void pointer for the buffer.
14117 Adjust all callers.
14118
27d5fef7 14119 * kern/ieee1275/openfw.c: Remove libc includes.
14120 * kern/ieee1275/cmain.c: Likewise.
14121 * include/grub/ieee1275/ieee1275.h: Likewise.
14122
33abf7ae 14123 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
14124 compiler warnings.
14125
19d50c2b 141262009-06-10 Felix Zielcke <fzielcke@z-51.de>
14127
14128 * Makefile.in: Remove all trailing whitespace.
14129 * conf/i386-pc.rmk: Likewise.
14130 * conf/powerpc-ieee1275.rmk: Likewise.
14131 * conf/sparc64-ieee1275.rmk: Likewise.
14132 * docs/grub.texi: Likewise.
14133 * docs/texinfo.tex: Likewise.
14134 * disk/fs_uuid.c: Likewise.
14135 * disk/lvm.c: Likewise.
14136 * disk/scsi.c: Likewise.
14137 * disk/ata.c: Likewise.
14138 * disk/ieee1275/ofdisk.c: Likewise.
14139 * disk/i386/pc/biosdisk.c: Likewise.
14140 * disk/host.c: Likewise.
14141 * disk/raid.c: Likewise.
14142 * disk/efi/efidisk.c: Likewise.
14143 * disk/usbms.c: Likewise.
14144 * disk/memdisk.c: Likewise.
14145 * disk/loopback.c: Likewise.
14146 * kern/powerpc/dl.c: Likewise.
14147 * kern/device.c: Likewise.
14148 * kern/dl.c: Likewise.
14149 * kern/sparc64/dl.c: Likewise.
14150 * kern/ieee1275/ieee1275.c: Likewise.
14151 * kern/term.c: Likewise.
14152 * kern/fs.c: Likewise.
14153 * kern/i386/dl.c: Likewise.
14154 * kern/i386/pc/startup.S: Likewise.
14155 * kern/i386/pc/init.c: Likewise.
14156 * kern/i386/pc/mmap.c: Likewise.
14157 * kern/i386/pc/lzo1x.S: Likewise.
14158 * kern/i386/ieee1275/init.c: Likewise.
14159 * kern/i386/realmode.S: Likewise.
14160 * kern/i386/tsc.c: Likewise.
14161 * kern/partition.c: Likewise.
14162 * kern/corecmd.c: Likewise.
14163 * kern/file.c: Likewise.
14164 * kern/efi/efi.c: Likewise.
14165 * kern/efi/init.c: Likewise.
14166 * kern/efi/mm.c: Likewise.
14167 * kern/main.c: Likewise.
14168 * kern/err.c: Likewise.
14169 * kern/env.c: Likewise.
14170 * kern/disk.c: Likewise.
14171 * kern/generic/millisleep.c: Likewise.
14172 * kern/generic/rtc_get_time_ms.c: Likewise.
14173 * kern/misc.c: Likewise.
14174 * kern/parser.c: Likewise.
14175 * genmk.rb: Likewise.
14176 * configure.ac: Likewise.
14177 * boot/i386/pc/diskboot.S: Likewise.
14178 * boot/i386/pc/pxeboot.S: Likewise.
14179 * boot/i386/pc/boot.S: Likewise.
14180 * boot/i386/pc/lnxboot.S: Likewise.
14181 * boot/i386/pc/cdboot.S: Likewise.
14182 * parttool/pcpart.c: Likewise.
14183 * video/readers/tga.c: Likewise.
14184 * video/video.c: Likewise.
14185 * video/bitmap.c: Likewise.
14186 * lib/envblk.c: Likewise.
14187 * lib/i386/setjmp.S: Likewise.
14188 * fs/xfs.c: Likewise.
14189 * fs/afs.c: Likewise.
14190 * fs/fat.c: Likewise.
14191 * fs/ntfs.c: Likewise.
14192 * fs/udf.c: Likewise.
14193 * fs/affs.c: Likewise.
14194 * fs/iso9660.c: Likewise.
14195 * fs/hfs.c: Likewise.
14196 * fs/fshelp.c: Likewise.
14197 * fs/ext2.c: Likewise.
14198 * fs/jfs.c: Likewise.
14199 * fs/reiserfs.c: Likewise.
14200 * fs/hfsplus.c: Likewise.
14201 * fs/minix.c: Likewise.
14202 * fs/cpio.c: Likewise.
14203 * fs/sfs.c: Likewise.
14204 * fs/ufs.c: Likewise.
14205 * efiemu/prepare.c: Likewise.
14206 * efiemu/loadcore_common.c: Likewise.
14207 * efiemu/runtime/efiemu.sh: Likewise.
14208 * efiemu/runtime/efiemu.S: Likewise.
14209 * efiemu/runtime/efiemu.c: Likewise.
14210 * efiemu/pnvram.c: Likewise.
14211 * efiemu/main.c: Likewise.
14212 * efiemu/i386/pc/cfgtables.c: Likewise.
14213 * efiemu/i386/loadcore64.c: Likewise.
14214 * efiemu/i386/loadcore32.c: Likewise.
14215 * efiemu/loadcore.c: Likewise.
14216 * efiemu/symbols.c: Likewise.
14217 * efiemu/mm.c: Likewise.
14218 * include/grub/autoefi.h: Likewise.
14219 * include/grub/datetime.h: Likewise.
14220 * include/grub/term.h: Likewise.
14221 * include/grub/hfs.h: Likewise.
14222 * include/grub/lvm.h: Likewise.
14223 * include/grub/i386/tsc.h: Likewise.
14224 * include/grub/i386/linux.h: Likewise.
14225 * include/grub/i386/xnu.h: Likewise.
14226 * include/grub/i386/efiemu.h: Likewise.
14227 * include/grub/i386/pc/biosdisk.h: Likewise.
14228 * include/grub/i386/pc/memory.h: Likewise.
14229 * include/grub/i386/pc/vbe.h: Likewise.
14230 * include/grub/parttool.h: Likewise.
14231 * include/grub/video.h: Likewise.
14232 * include/grub/memory.h: Likewise.
14233 * include/grub/fs.h: Likewise.
14234 * include/grub/partition.h: Likewise.
14235 * include/grub/xnu.h: Likewise.
14236 * include/grub/efi/api.h: Likewise.
14237 * include/grub/efi/pe32.h: Likewise.
14238 * include/grub/efi/memory.h: Likewise.
14239 * include/grub/multiboot.h: Likewise.
14240 * include/grub/usbdesc.h: Likewise.
14241 * include/grub/multiboot2.h: Likewise.
14242 * include/grub/acpi.h: Likewise.
14243 * include/grub/efiemu/efiemu.h: Likewise.
14244 * include/grub/disk.h: Likewise.
14245 * include/grub/ieee1275/ieee1275.h: Likewise.
14246 * include/grub/net.h: Likewise.
14247 * include/grub/machoload.h: Likewise.
14248 * include/grub/macho.h: Likewise.
14249 * include/multiboot.h: Likewise.
14250 * genmoddep.awk: Likewise.
14251 * normal/main.c: Likewise.
14252 * normal/menu_entry.c: Likewise.
14253 * normal/menu_viewer.c: Likewise.
14254 * normal/completion.c: Likewise.
14255 * normal/cmdline.c: Likewise.
14256 * normal/misc.c: Likewise.
14257 * normal/datetime.c: Likewise.
14258 * bus/usb/usbtrans.c: Likewise.
14259 * bus/usb/ohci.c: Likewise.
14260 * bus/usb/uhci.c: Likewise.
14261 * bus/usb/usb.c: Likewise.
14262 * mmap/efi/mmap.c: Likewise.
14263 * mmap/i386/pc/mmap_helper.S: Likewise.
14264 * mmap/i386/pc/mmap.c: Likewise.
14265 * mmap/i386/mmap.c: Likewise.
14266 * mmap/i386/uppermem.c: Likewise.
14267 * mmap/mmap.c: Likewise.
14268 * commands/acpi.c: Likewise.
14269 * commands/echo.c: Likewise.
14270 * commands/blocklist.c: Likewise.
14271 * commands/loadenv.c: Likewise.
14272 * commands/usbtest.c: Likewise.
14273 * commands/boot.c: Likewise.
14274 * commands/parttool.c: Likewise.
14275 * commands/search.c: Likewise.
14276 * commands/cat.c: Likewise.
14277 * commands/i386/pc/play.c: Likewise.
14278 * commands/i386/pc/drivemap.c: Likewise.
14279 * commands/i386/pc/vbeinfo.c: Likewise.
14280 * commands/i386/pc/acpi.c: Likewise.
14281 * commands/i386/pc/vbetest.c: Likewise.
14282 * commands/ls.c: Likewise.
14283 * commands/cmp.c: Likewise.
14284 * commands/test.c: Likewise.
14285 * commands/efi/acpi.c: Likewise.
14286 * commands/gptsync.c: Likewise.
14287 * commands/help.c: Likewise.
14288 * partmap/amiga.c: Likewise.
14289 * partmap/apple.c: Likewise.
14290 * partmap/acorn.c: Likewise.
14291 * partmap/pc.c: Likewise.
14292 * partmap/sun.c: Likewise.
14293 * partmap/gpt.c: Likewise.
14294 * script/sh/lexer.c: Likewise.
14295 * script/sh/function.c: Likewise.
14296 * font/font.c: Likewise.
14297 * font/font_cmd.c: Likewise.
14298 * loader/powerpc/ieee1275/linux.c: Likewise.
14299 * loader/efi/chainloader.c: Likewise.
14300 * loader/multiboot_loader.c: Likewise.
14301 * loader/macho.c: Likewise.
14302 * loader/i386/multiboot.c: Likewise.
14303 * loader/i386/linux.c: Likewise.
14304 * loader/i386/pc/linux.c: Likewise.
14305 * loader/i386/pc/multiboot2.c: Likewise.
14306 * loader/i386/pc/chainloader.c: Likewise.
14307 * loader/i386/pc/xnu.c: Likewise.
14308 * loader/i386/bsd_trampoline.S: Likewise.
14309 * loader/i386/efi/linux.c: Likewise.
14310 * loader/i386/multiboot_elfxx.c: Likewise.
14311 * loader/i386/bsd_helper.S: Likewise.
14312 * loader/i386/bsd.c: Likewise.
14313 * loader/i386/linux_trampoline.S: Likewise.
14314 * loader/i386/xnu_helper.S: Likewise.
14315 * loader/i386/xnu.c: Likewise.
14316 * loader/i386/bsd_pagetable.c: Likewise.
14317 * loader/i386/multiboot_helper.S: Likewise.
14318 * loader/xnu.c: Likewise.
14319 * loader/xnu_resume.c: Likewise.
14320 * io/gzio.c: Likewise.
14321 * term/efi/console.c: Likewise.
14322 * term/terminfo.c: Likewise.
14323 * term/ieee1275/ofconsole.c: Likewise.
14324 * term/i386/pc/serial.c: Likewise.
14325 * term/i386/pc/vesafb.c: Likewise.
14326 * term/i386/pc/vga.c: Likewise.
14327 * term/usb_keyboard.c: Likewise.
14328 * term/gfxterm.c: Likewise.
14329 * aclocal.m4: Likewise.
14330 * util/lvm.c: Likewise.
14331 * util/grub.d/30_os-prober.in: Likewise.
14332 * util/grub.d/10_hurd.in: Likewise.
14333 * util/console.c: Likewise.
14334 * util/grub-macho2img.c: Likewise.
14335 * util/grub-probe.c: Likewise.
14336 * util/hostfs.c: Likewise.
14337 * util/i386/pc/grub-mkimage.c: Likewise.
14338 * util/i386/pc/grub-setup.c: Likewise.
14339 * util/i386/efi/grub-mkimage.c: Likewise.
14340 * util/grub-mkconfig.in: Likewise.
14341 * util/raid.c: Likewise.
14342 * util/resolve.c: Likewise.
14343 * util/grub-mkdevicemap.c: Likewise.
14344 * util/grub-emu.c: Likewise.
14345 * util/getroot.c: Likewise.
14346 * util/hostdisk.c: Likewise.
14347 * util/usb.c: Likewise.
14348 * util/grub-editenv.c: Likewise.
14349 * util/misc.c: Likewise.
14350
d2d49665 143512009-06-10 Felix Zielcke <fzielcke@z-51.de>
14352
14353 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
14354 `genparttoollist.sh'.
14355 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
14356 Add `*.sh' to the list find searches for and change `mdate.sh'
14357 to `mdate-sh'.
14358
fe052e37 143592009-06-10 Pavel Roskin <proski@gnu.org>
14360
2763ac18 14361 * include/grub/multiboot2.h: Provide compatibility defines for
14362 multiboot2.h.
14363 * include/multiboot2.h: Include stdint.h only if needed, using
14364 angle brackets.
14365 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
14366 grub/multiboot2.h.
14367 * loader/ieee1275/multiboot2.c: Likewise.
14368 * loader/multiboot2.c: Likewise.
14369 * loader/multiboot_loader.c: Likewise.
14370
437e6adc 14371 * configure.ac: Use -nostdlib when probing for the target. It
14372 should not be required to have libc for the target.
14373
06a6836c 14374 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
14375 they fail without libc headers for the target.
14376 * include/grub/powerpc/libgcc.h: Use weak attribute for all
14377 exports.
14378 * include/grub/sparc64/libgcc.h: Likewise. Don't use
14379 preprocessor conditionals.
14380
fe052e37 14381 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
14382 build system doesn't need to be aware of the tar.c internals.
14383
afd22553 143842009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 14385
afd22553 14386 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 14387
6b787c4f 143882009-06-09 Robert Millan <rmh.grub@aybabtu.com>
14389
14390 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
14391 disk limit to 26 for IDE, Virtio, Xen and SCSI.
14392
143932009-06-09 Felix Zielcke <fzielcke@z-51.de>
14394
14395 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 14396 aren't available if ata.mod gets used.
6b787c4f 14397
473d1e45 143982009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 14399
473d1e45 14400 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 14401 initialising controller.
473d1e45 14402 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 14403
255a27d4 144042009-06-08 Felix Zielcke <fzielcke@z-51.de>
14405
14406 * util/i386/pc/grub-install.in: Add a parameter --disk-module
14407 to choose between ata and biosdisk module on i386-pc.
14408
473d1e45 144092009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 14410
d55842d8 14411 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
14412 Subclass and Programming Interface fields in terms of the 3 byte
14413 Class Code register.
14414 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
14415
fa5db0b1 14416 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
14417 interface is OHCI. Add grub_dprintf for symmetry with
14418 bus/usb/uhci.c.
14419 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
14420 interface is UHCI. Add interf variable for programming
14421 interface. Print interface with class/subclass.
14422
c0947beb 14423 * bus/usb/ohci.c: Set interf with correct field.
14424
69da8877 14425 * bus/usb/uhci.c: Remove unneeded doubled lines.
14426 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
14427 Remove whitespace inside comment.
14428
9e172e30 144292009-06-08 Robert Millan <rmh.grub@aybabtu.com>
14430
14431 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
14432 as fallback an equivalent option without depth.
14433
de65ee2b 144342009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
14435
14436 Not fail if unable to retrieve C/H/S on LBA disks
14437
473d1e45 14438 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 14439 if unable to retrieve C/H/S on LBA disks
14440
b57ea2c9 144412009-06-08 Pavel Roskin <proski@gnu.org>
14442
14443 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
14444 about aliasing.
14445
af361263 144462009-06-08 Felix Zielcke <fzielcke@z-51.de>
14447
14448 * Makefile.in (uninstall): Remove all $lib_DATA files.
14449
4c9ec6b3 144502009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
14451
14452 Bugfix: install on partitionless device
14453
14454 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
14455 is a whole disk
14456
e76fc924 144572009-06-08 Felix Zielcke <fzielcke@z-51.de>
14458
14459 * Makefile.in (uninstall): Remove all $include_DATA files.
14460
ba5a0d05 144612009-06-08 Felix Zielcke <fzielcke@z-51.de>
14462
14463 * commands/true.c: New file. Implement the true and false commands.
14464 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
14465 (true_mod_SOURCES): New variable.
14466 (true_mod_CFLAGS): Likewise.
14467 (true_mod_LDFLAGS): Likewise.
14468
c8048e32 144692009-06-05 Colin D Bennett <colin@gibibit.com>
14470
14471 Optimized font character lookup using binary search instead of linear
14472 search. Fonts now are required to have the character index ordered by
14473 code point.
14474
14475 * font/font.c (load_font_index): Verify that fonts have ordered
14476 character indices.
14477 (find_glyph): Use binary search instead of linear search to find a
14478 character in a font.
14479
408305be 144802009-06-05 Michael Scherer <misc@mandriva.org>
14481
14482 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
14483 uses case sensitive btree.
14484 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
14485 only for case insensitive filesystems.
14486
8ee1e0d9 144872009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
14488
14489 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
14490 * conf/common.rmk (search_mod_CFLAGS): likewise
14491
a9966eb1 144922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14493
473d1e45 14494 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 14495 compensate a compiler bug
14496
9e7100fb 144972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14498
473d1e45 14499 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 14500 instead of '\b'
473d1e45 14501
ede21d71 145022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14503
14504 Definitions for creating asm symbols with Apple's CC
14505
14506 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
14507 [APPLE_CC] (VARIABLE): likewise
14508
9dbf7653 145092009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14510
14511 Disable lnxboot.img when compiled
14512 with Apple's CC
14513
14514 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
14515 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
14516 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
14517 [! APPLE_CC] (CODE_LENG): skip
14518 [! APPLE_CC] (setup_sects): likewise
14519 [! APPLE_CC]: skip filling
473d1e45 14520
e93cdc3d 145212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14522
14523 Address in trampolines based on 32-bit registers when compiled
14524 with Apple's CC
14525
473d1e45 14526 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 14527 for addresses
14528 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
14529
6c688477 145302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 Avoid aliases when compiling with Apple's CC for PCBIOS machine
14533
14534 * kern/misc.c [APPLE_CC] (memcpy): new function
14535 [APPLE_CC] (memmove): likewise
14536 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 14537 (memcpy): define alias conditionally on !APPLE_CC
6c688477 14538 (memset): likewise
14539 (abort): likewise
14540 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
14541 APPLE_CC are defined
14542 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
14543 (grub_assert_fail): make prototype conditional
14544
e37ffc5c 145452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14546
14547 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
14548
473d1e45 14549 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
14550 grub-macho2img
e37ffc5c 14551 (CLEANFILES): add grub-macho2img
14552 (grub_macho2img_SOURCES): new variable
14553 * kern/i386/pc/startup.S (bss_start): new variable
14554 (bss_end): likewise
14555 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
14556 * util/grub-macho2img.c: new file
14557
cf00df31 145582009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14559
14560 Use objconv when compiling with Apple's CC
14561
14562 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
14563 (efiemu64.o): likewise
14564 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
14565 when compiling with Apple's CC
14566 (efiemu64_s.o): likewise
14567 * configure.ac: check for objconv when compiling with Apple's CC
14568 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 14569
d119a20c 145702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 Define segment as well as section when compiling with
14573 Apple's CC
14574
14575 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
14576 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
14577 (efiemu_convert_pointer): likewise
14578 (efiemu_set_virtual_address_map): likewise
14579 (efiemu_convert_pointer): likewise
14580 (efiemu_getcrc32): likewise
14581 (init_crc32_table): likewise
14582 (reflect): likewise
14583 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
14584 (GRUB_MOD_DEP): likewise
473d1e45 14585
c8600122 145862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14587
14588 Allow a compilation without -mcmodel=large
14589
14590 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
14591 when compiled without -mcmodel=large
473d1e45 14592 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 14593 without -mcmodel=large
473d1e45 14594 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 14595 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 14596
e8df1d4e 145972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14598
14599 Remove nested functions in efiemu core
14600
14601 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 14602
cc6c3ac1 146032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14604
14605 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
14606
14607 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
14608 temporary storage
473d1e45 14609 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
14610 using Apple's CC
cc6c3ac1 14611 (grub_cpu_is_tsc_supported): likewise
14612 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 14613
3e325901 146142009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14615
14616 Absolute addressing through constant with Apple's cc
14617
14618 * kern/i386/pc/startup.S: Define necessary constants
14619 and address through it when using ABS with Apple's CC
14620 * boot/i386/pc/diskboot.S: likewise
14621 * boot/i386/pc/boot.S: likewise
14622 * boot/i386/pc/lnxboot.S: likewise
14623 * boot/i386/pc/cdboot.S: likewise
14624 * mmap/i386/pc/mmap_helper.S: likewise
14625 * commands/i386/pc/drivemap_int13h.S: likewise
14626
2b167a72 146272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14628
14629 Check if compiler is apple cc
14630
14631 * Makefile.in (ASFLAGS): new variable
14632 (TARGET_ASFLAGS): likewise
14633 (TARGET_MODULE_FORMAT): likewise
14634 (TARGET_APPLE_CC): likewise
14635 (OBJCONV): likewise
14636 (TARGET_IMG_CFLAGS): likewise
14637 (TARGET_CPPFLAGS): add includedir
14638 * configure.ac: call grub_apple_cc and grub_apple_target_cc
14639 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
14640 Check for linker script only if compiler isn't Apple's CC
14641 (TARGET_MODULE_FORMAT): set
14642 (TARGET_APPLE_CC): likewise
14643 (TARGET_ASFLAGS): likewise
14644 (ASFLAGS): likewise
14645 Check for objcopy only if compiler isn't Apple's CC
14646 Check for BSS symbol only if compiler isn't Apple's CC
14647 * genmk.rb: adapt nm options if we use Apple's utils
14648 * aclocal.m4 (grub_apple_cc): new test
14649 (grub_apple_target_cc): likewise
473d1e45 14650
fb14123e 146512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14652
14653 Simplify sed expressions and improve awk
14654
14655 * Makefile.in (install-local): simplify sed expression
14656 * gencmdlist.sh: likewise
14657 * genmoddep.awk: avoid adding module as a dependency of itself
14658
5b889789 146592009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 Add missing start symbols
14662
14663 * boot/i386/pc/boot.S: add start
fb14123e 14664 * boot/i386/pc/pxeboot.S: likewise
473d1e45 14665
fd2bf2e3 146662009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14667
14668 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 14669
14670 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 14671 (relocate_addresses): consider both r_addend and value at offset
14672 (make_mods_section): zerofill modinfo and header
14673 (convert_elf): write prefix here
473d1e45 14674
5389763d 146752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14676
14677 Use .asciz instead of .string
14678
14679 * i386/pc/diskboot.S: use .asciz instead of .string
14680 * i386/pc/boot.S: likewise
14681 * include/grub/dl.h (GRUB_MOD_DEP): likewise
14682 (GRUB_MOD_NAME): likewise
473d1e45 14683
3eb5ed4e 146842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14685
14686 gfxpayload support
14687
14688 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
14689 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
14690 (grub_video_setup): remove
14691 (grub_video_set_mode): new prototype
14692 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
14693 (vid_mode): remove
14694 (linux_vesafb_res): compile only on PCBIOS
14695 (grub_linux_boot): support gfxpayload
14696 * loader/i386/pc/xnu.c (video_hook): new function
14697 (grub_xnu_set_video): support gfxpayload
14698 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
14699 (DEFAULT_VIDEO_HEIGHT): likewise
14700 (DEFAULT_VIDEO_FLAGS): likewise
14701 (DEFAULT_VIDEO_MODE): new definition
14702 (video_hook): new function
14703 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 14704 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 14705 loading xnu
14706 * video/video.c (grub_video_setup): removed
473d1e45 14707 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 14708 grub_video_setup
14709
4b0e1143 147102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14711
14712 Avoid calling biosdisk in drivemap
14713
14714 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
14715 (revparse_biosdisk): likewise
14716 (list_mappings): derive name from id directly
14717 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 14718
fda6cb98 147192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
14720
14721 Script fixes
14722
14723 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
14724 (grub_lexer_param): add tokenonhold
14725 (grub_script_create_cmdline): remove cmdline. All callers updated
14726 (grub_script_function_create): make functionname
14727 grub_script_arg. All callers updated
14728 (grub_script_execute_argument_to_string): new prototype
14729 * kern/parser.c (state_transitions): reorder
14730 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 14731 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 14732 make global
14733 (grub_script_execute_cmdline): use new format
14734 * script/sh/function.c (grub_script_function_create): make functionname
14735 grub_script_arg. All callers updated
473d1e45 14736 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 14737 (grub_script_yylex): remove
14738 (grub_script_yylex2): renamed to ...
14739 (grub_script_yylex): ...renamed
14740 parse the expressions like a${b}c
14741 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
14742 (GRUB_PARSER_TOKEN_VAR): remove
14743 (GRUB_PARSER_TOKEN_NAME): likewise
14744 ("if"): declare as typeless
14745 ("while"): likewise
14746 ("function"): likewise
14747 ("else"): likewise
14748 ("then"): likewise
14749 ("fi"): likewise
14750 (text): remove
14751 (argument): likewise
14752 (script): accept empty scripts and make exit on error
14753 (arguments): use GRUB_PARSER_TOKEN_ARG
14754 (function): likewise
14755 (command): move error handling to script
14756 (menuentry): move grub_script_lexer_ref before
473d1e45 14757 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 14758 argument. All callers updated
14759
f4448a07 147602009-06-04 Robert Millan <rmh.grub@aybabtu.com>
14761
14762 Prevent GRUB from probing floppies during boot.
14763
14764 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
14765 * commands/search.c (options): Add --no-floppy.
14766 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
14767 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
14768 --no-floppy when searching for UUIDs.
14769
2bf5885a 147702009-06-04 Robert Millan <rmh.grub@aybabtu.com>
14771
14772 Simplify the code duplication in commands/search.c.
14773
14774 * commands/search.c (search_label, search_fs_uuid): Merge into ...
14775 (search_fs): ... this. Update all users.
14776
f6fd460a 147772009-06-03 Felix Zielcke <fzielcke@z-51.de>
14778
14779 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
14780
cbb3c83e 147812009-05-28 Pavel Roskin <proski@gnu.org>
14782
57788cfd 14783 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
14784 Remove the original symlink explicitly.
14785
cbb3c83e 14786 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
14787 just one slash. That's how grub_fshelp_find_file() does it.
14788
cd0d5e30 147892009-05-26 Pavel Roskin <proski@gnu.org>
14790
f0f8bbe2 14791 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
14792 to `str'.
14793
cd0d5e30 14794 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
14795 possibly unused.
14796
8c2cab51 147972009-05-25 Christian Franke <franke@computer.org>
14798
14799 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
14800 register.
14801 (grub_atapi_identify): Add wait after drive select.
14802 (grub_ata_identify): Do more strict status register check before
14803 calling grub_atapi_identify (). Suppress error message if status
14804 register is 0x00 after command failure. Add status register
14805 check after PIO read to avoid bogus identify due to stuck DRQ.
14806 Thanks to Pavel Roskin for testing.
14807 (grub_device_initialize): Remove unsafe status register check.
14808 Thanks to 'phcoder' for problem report and patch.
14809 Prevent sign extension in debug message.
14810
230c0ad6 148112009-05-23 Colin D Bennett <colin@gibibit.com>
14812
14813 Cleaned up `include/grub/normal.h'. Grouped prototypes by
14814 definition file, and functions defined in `normal/menu.c' have had
14815 their prototypes moved to `include/grub/menu.h' for consistency.
14816
14817 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
14818 from normal.h.
14819 (grub_menu_get_entry): Likewise.
14820 (grub_menu_get_timeout): Likewise.
14821 (grub_menu_set_timeout): Likewise.
14822 (grub_menu_execute_entry): Likewise.
14823 (grub_menu_execute_with_fallback): Likewise.
14824 (grub_menu_entry_run): Likewise.
14825
14826 * include/grub/normal.h: Re-ordered and grouped function
14827 prototypes by file that the function is defined in.
14828 (grub_menu_execute_callback): Removed; moved to menu.h.
14829 (grub_menu_get_entry): Likewise.
14830 (grub_menu_get_timeout): Likewise.
14831 (grub_menu_set_timeout): Likewise.
14832 (grub_menu_execute_entry): Likewise.
14833 (grub_menu_execute_with_fallback): Likewise.
14834 (grub_menu_entry_run): Likewise.
14835 (grub_menu_addentry): Renamed from this ...
14836 (grub_normal_add_menu_entry): ... to this.
14837
14838 * normal/main.c (grub_menu_addentry): Renamed from this ...
14839 (grub_normal_add_menu_entry): ... to this.
14840
14841 * script/sh/execute.c (grub_script_execute_menuentry): Update
14842 reference to renamed grub_menu_addentry function.
14843
861f03a5 148442009-05-23 Felix Zielcke <fzielcke@z-51.de>
14845
14846 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
14847
96b1619a 148482009-05-22 Pavel Roskin <proski@gnu.org>
14849
bf6a5fb2 14850 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
14851 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
14852 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
14853 compiling for the i386 targets, but not for the utilities.
14854
96b1619a 14855 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
14856 to grub_uint8_t.
14857 (grub_root_drive): Likewise.
14858 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
14859 remove alignment.
14860 (grub_root_drive): Change size to byte.
14861 (grub_start_addr): Remove.
14862 (grub_end_addr): Likewise.
14863 (grub_apm_bios_info): Likewise.
14864
b729776b 148652009-05-21 Felix Zielcke <fzielcke@z-51.de>
14866
14867 * normal/i386: Remove.
14868 * normal/powerpc: Likewise.
14869 * normal/sparc64: Likewise.
14870 * normal/x86_64: Likewise.
14871
0a15ce80 148722009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
14873
14874 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 14875 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 14876 * loader/i386/xnu_helper.S: Likewise
d6da58e6 14877
33db9015 148782009-05-18 Colin D Bennett <colin@gibibit.com>
14879
d6da58e6 14880 Display error messages when parsing a Lua statement fails.
14881 Previously, executing a syntactically invalid statement like
14882 ")foo" or "bar;" would silently fail.
33db9015 14883
14884 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 14885 (grub_lua_parse_line): Improved reporting of Lua parser and
14886 execution errors.
33db9015 14887
46422c89 148882009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14889
14890 Remove -Werror which causes build to fail on some systems
14891
14892 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
14893 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
14894 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 14895
22f53a96 148962009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 trampoline for linux on 64-bit platform
14899
18f547ad 14900 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
14901 loader/i386/efi/linux_trampoline.S
14902 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 14903 declaration
d6da58e6 14904 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
14905 here
22f53a96 14906 * loader/i386/linux_trampoline.S: moved here
d6da58e6 14907 * loader/i386/efi/linux.c (allocate_pages): reserve space for
14908 trampoline
22f53a96 14909 (jumpvector): removed
14910 (grub_linux_trampoline_start): new declaration
14911 (grub_linux_trampoline_end): likewise
14912 (grub_linux_boot): use trampoline when on 64-bit platform
14913 * loader/i386/linux.c: likewise
14914
cb5a0f40 149152009-05-16 Pavel Roskin <proski@gnu.org>
14916
14917 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
14918 const to avoid a warning.
14919 (grub_lua_setenv): Likewise.
14920 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
14921 lmsg to fix a warning.
14922
334f2c28 149232009-05-16 Felix Zielcke <fzielcke@z-51.de>
14924
14925 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 14926 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
14927 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
14928 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
14929 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
14930 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
14931 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
14932 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 14933
59e5d3ec 149342009-05-16 Felix Zielcke <fzielcke@z-51.de>
14935
14936 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
14937
9d87a1ba 149382009-05-16 Bean <bean123ch@gmail.com>
14939
14940 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
14941 (lua_mod_SOURCES): New variable.
14942 (lua_mod_CFLAGS): Likewise.
14943 (lua_mod_LDFLAGS): Likewise.
14944
14945 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
14946 (setjmp_mod_SOURCES): New variable.
14947 (setjmp_mod_CFLAGS): Likewise.
14948 (setjmp_LDFLAGS): Likewise.
14949
14950 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
14951 (setjmp_mod_SOURCES): New variable.
14952 (setjmp_mod_CFLAGS): Likewise.
14953 (setjmp_LDFLAGS): Likewise.
14954
14955 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
14956 (setjmp_mod_SOURCES): New variable.
14957 (setjmp_mod_CFLAGS): Likewise.
14958 (setjmp_LDFLAGS): Likewise.
14959
14960 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
14961 (setjmp_mod_SOURCES): New variable.
14962 (setjmp_mod_CFLAGS): Likewise.
14963 (setjmp_LDFLAGS): Likewise.
14964
14965 * normal/i386/setjmp.S: Moved from here ...
14966 * lib/i386/setjmp.S: ... Moved here
14967 * normal/x86_64/setjmp.S: Moved from here ...
14968 * lib/x86_64/setjmp.S: ... Moved here
14969 * normal/powerpc/setjmp.S: Moved from here ...
14970 * lib/powerpc/setjmp.S: ... Moved here
14971 * normal/sparc64/setjmp.S: Moved from here ...
14972 * lib/sparc64/setjmp.S: ... Moved here
14973
14974 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
14975 returns_twice in mingw.
14976
14977 * script/lua/grub_lib.c: New file.
14978 * script/lua/grub_lib.h: Likewise.
14979 * script/lua/grub_lua.h: Likewise.
14980 * script/lua/grub_main.c: Likewise.
14981 * script/lua/lapi.c: Likewise.
14982 * script/lua/lapi.h: Likewise.
14983 * script/lua/lauxlib.c: Likewise.
14984 * script/lua/lauxlib.h: Likewise.
14985 * script/lua/lbaselib.c: Likewise.
14986 * script/lua/lcode.c: Likewise.
14987 * script/lua/lcode.h: Likewise.
14988 * script/lua/ldblib.c: Likewise.
14989 * script/lua/ldebug.c: Likewise.
14990 * script/lua/ldebug.h: Likewise.
14991 * script/lua/ldo.c: Likewise.
14992 * script/lua/ldo.h: Likewise.
14993 * script/lua/ldump.c: Likewise.
14994 * script/lua/lfunc.c: Likewise.
14995 * script/lua/lfunc.h: Likewise.
14996 * script/lua/lgc.c: Likewise.
14997 * script/lua/lgc.h: Likewise.
14998 * script/lua/linit.c: Likewise.
14999 * script/lua/liolib.c: Likewise.
15000 * script/lua/llex.c: Likewise.
15001 * script/lua/llex.h: Likewise.
15002 * script/lua/llimits.h: Likewise.
15003 * script/lua/lmathlib.c: Likewise.
15004 * script/lua/lmem.c: Likewise.
15005 * script/lua/lmem.h: Likewise.
15006 * script/lua/loadlib.c: Likewise.
15007 * script/lua/lobject.c: Likewise.
15008 * script/lua/lobject.h: Likewise.
15009 * script/lua/lopcodes.c: Likewise.
15010 * script/lua/lopcodes.h: Likewise.
15011 * script/lua/loslib.c: Likewise.
15012 * script/lua/lparser.c: Likewise.
15013 * script/lua/lparser.h: Likewise.
15014 * script/lua/lstate.c: Likewise.
15015 * script/lua/lstate.h: Likewise.
15016 * script/lua/lstring.c: Likewise.
15017 * script/lua/lstring.h: Likewise.
15018 * script/lua/lstrlib.c: Likewise.
15019 * script/lua/ltable.c: Likewise.
15020 * script/lua/ltable.h: Likewise.
15021 * script/lua/ltablib.c: Likewise.
15022 * script/lua/ltm.c: Likewise.
15023 * script/lua/ltm.h: Likewise.
15024 * script/lua/lua.h: Likewise.
15025 * script/lua/luaconf.h: Likewise.
15026 * script/lua/lualib.h: Likewise.
15027 * script/lua/lundump.c: Likewise.
15028 * script/lua/lundump.h: Likewise.
15029 * script/lua/lvm.c: Likewise.
15030 * script/lua/lvm.h: Likewise.
15031 * script/lua/lzio.c: Likewise.
15032 * script/lua/lzio.h: Likewise.
15033
5e898c9d 150342009-05-16 Bean <bean123ch@gmail.com>
15035
15036 * include/grub/kernel.h (grub_module_header_types): Add type
15037 OBJ_TYPE_CONFIG.
15038
15039 * kern/main.c (grub_load_config): New function.
15040 (grub_main): Call grub_load_config to read boot config.
15041
15042 * grub-mkimage (generate_image): New parameter config_path.
15043 (options): New option --config.
15044 (main): Parse --config option, and pass it to generate_image.
15045
cf353a47 150462009-05-14 Christian Franke <franke@computer.org>
15047
15048 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
15049 This fixes build on Cygwin.
15050
3834887f 150512009-05-14 Pavel Roskin <proski@gnu.org>
15052
15053 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
15054 jump. This saves two bytes, so the typical case of 2 swapped
15055 drives would fit 32 bytes.
15056
8090fc01 150572009-05-13 Pavel Roskin <proski@gnu.org>
15058
ac963883 15059 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
15060 grub_uint32_t to avoid a warning.
15061
8090fc01 15062 * loader/i386/linux.c (allocate_pages): When assigning
15063 real_mode_mem, cast through grub_size_t to fix a warning. The
15064 code already makes sure that the value would fit a pointer.
15065 (grub_linux_setup_video): Cast render_target->data to
15066 grub_size_t to fix a warning.
15067
18f547ad 150682009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 15069
15070 * commands/i386/pc/drivemap.c: New file - implement drivemap
15071 command.
15072 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
15073 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
15074
6f6a8b28 150752009-05-13 Pavel Roskin <proski@gnu.org>
15076
15077 * util/i386/pc/grub-setup.c (setup): Remove unused variable
15078 embedding_area_exists.
15079
15fbf4c4 150802009-05-13 Robert Millan <rmh.grub@aybabtu.com>
15081
15082 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
15083 it easier to understand / work with.
59978c8a 15084 Improve warning messages for cases where there's no embedding area,
15085 or when it is too small (or core.img too large).
15fbf4c4 15086
238e871f 150872009-05-13 Pavel Roskin <proski@gnu.org>
15088
0ab3a9a4 15089 * loader/i386/pc/multiboot2.c: Add necessary includes for
15090 grub_multiboot2_real_boot().
15091
a2c8c5f8 15092 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
15093 PX record is always little-endian. We only need the lower 2
15094 bytes of the mode.
15095
faec96af 15096 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
15097 facilitate code reuse.
15098 (grub_cpio_mount): Use "struct head", not a char buffer. This
15099 fixes a warning reported by gcc 4.4.
15100
238e871f 15101 * kernel/disk.c (grub_disk_read): Use void pointer for the
15102 buffer.
15103 (grub_disk_write): Use const void pointer for the buffer.
15104 Adjust all callers. Remove unnecessary casts.
15105
901d2f0c 151062009-05-10 Robert Millan <rmh.grub@aybabtu.com>
15107
15108 * util/i386/pc/grub-install.in: Update copyright year.
15109
18f547ad 151102009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 15111
15112 gptsync
15113
15114 * commands/gptsync.c: new file
15115 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
15116 (gptsync_mod_SOURCES): new variable
15117 (gptsync_mod_CFLAGS): likewise
15118 (gptsync_mod_LDFLAGS): likewise
18f547ad 15119 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 15120 new definition
15121 (GRUB_PC_PARTITION_TYPE_HFS): likewise
15122 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
15123 * conf/i386-ieee1275.rmk: likewise
15124 * conf/i386-pc.rmk: likewise
15125 * conf/powerpc-ieee1275.rmk: likewise
15126
b4ba690a 151272009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 Fixed grub-emu
15130
15131 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
15132 (grub_dl_ref): likewise
15133
317e1a44 151342009-05-08 Robert Millan <rmh.grub@aybabtu.com>
15135
15136 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
15137 split in two functions (one for msdos and one for gpt).
15138
041b8094 151392009-05-08 Pavel Roskin <proski@gnu.org>
15140
752473c2 15141 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
15142 not modified.
15143
041b8094 15144 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
15145 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
15146 Initialize them with -1. Add sanity check for bad1. Eliminate
15147 nerr variable.
15148
172800ce 151492009-05-08 David S. Miller <davem@davemloft.net>
15150
15151 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
15152
29aa5e81 151532009-05-06 Robert Millan <rmh.grub@aybabtu.com>
15154
15155 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 15156 existence.
29aa5e81 15157
96613b62 151582009-05-05 Felix Zielcke <fzielcke@z-51.de>
15159
15160 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 15161 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 15162
eef73c8a 151632009-05-05 David S. Miller <davem@davemloft.net>
15164
15165 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
15166
119494b5 151672009-05-05 Pavel Roskin <proski@gnu.org>
15168
15169 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
15170 of grub_dl_ref() and grub_dl_unref().
15171 * commands/parttool.c: Remove preprocessor conditionals around
15172 grub_dl_ref() and grub_dl_unref().
15173 * fs/affs.c: Likewise.
15174 * fs/afs.c: Likewise.
15175 * fs/cpio.c: Likewise.
15176 * fs/ext2.c: Likewise.
15177 * fs/fat.c: Likewise.
15178 * fs/hfs.c: Likewise.
15179 * fs/hfsplus.c: Likewise.
15180 * fs/iso9660.c: Likewise.
15181 * fs/jfs.c: Likewise.
15182 * fs/minix.c: Likewise.
15183 * fs/ntfs.c: Likewise.
15184 * fs/reiserfs.c: Likewise.
15185 * fs/sfs.c: Likewise.
15186 * fs/udf.c: Likewise.
15187 * fs/ufs.c: Likewise.
15188 * fs/xfs.c: Likewise.
15189 * include/grub/dl.h: Likewise.
15190 * loader/xnu.c: Likewise.
15191
de5fd76e 151922009-05-04 Pavel Roskin <proski@gnu.org>
15193
15194 * commands/acpi.c: Remove unused variable my_mod.
15195 * partmap/amiga.c: Likewise.
15196 * partmap/apple.c: Likewise.
15197 * partmap/gpt.c: Likewise.
15198 * partmap/pc.c: Likewise.
15199 * partmap/sun.c: Likewise.
15200 * term/gfxterm.c: Likewise.
15201 * term/i386/pc/vesafb.c: Likewise.
15202 * term/i386/pc/vga.c: Likewise.
15203
983598ad 152042009-05-04 David S. Miller <davem@davemloft.net>
15205
15206 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
15207 pointer args to grub_ieee1275_get_property().
15208
8aadec43 15209 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
15210
9554b15e 15211 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
15212 devices, and do not traverse down under controller nodes.
15213
67e23c90 15214 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
15215 (grub_ofdisk_open): Use it to un-escape "," characters.
15216 * kern/disk.c (find_part_sep): New.
15217 (grub_disk_open): Use it to find the first non-escaped ','
15218 character in the disk name.
15219 * util/ieee1275/devicemap.c (escape_of_path): New.
15220 (grub_util_emit_devicemap_entry): Use it.
15221 * util/sparc64/ieee1275/grub-install.in: Update script to
15222 strip partition specifiers properly by not triggering on
15223 '\' escaped ',' characters.
15224
74bfdd2f 152252009-05-04 Robert Millan <rmh.grub@aybabtu.com>
15226
15227 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
15228 to 0x300.
15229 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
15230 resolutions.
15231 (linux_vesafb_modes): Add a lot of additional modes to the list (based
15232 on documentation from Wikipedia).
15233
4241d2b1 152342009-05-04 Pavel Roskin <proski@gnu.org>
15235
15236 * disk/ata.c: Spelling fixes.
15237 * disk/raid.c: Likewise.
15238 * disk/usbms.c: Likewise.
15239 * disk/dmraid_nvidia.c: Likewise.
15240 * kern/ieee1275/openfw.c: Likewise.
15241 * kern/ieee1275/init.c: Likewise.
15242 * kern/ieee1275/cmain.c: Likewise.
15243 * boot/i386/pc/cdboot.S: Likewise.
15244 * video/readers/png.c: Likewise.
15245 * video/i386/pc/vbe.c: Likewise.
15246 * fs/udf.c: Likewise.
15247 * fs/hfs.c: Likewise.
15248 * fs/reiserfs.c: Likewise.
15249 * efiemu/runtime/efiemu.c: Likewise.
15250 * efiemu/main.c: Likewise.
15251 * efiemu/mm.c: Likewise.
15252 * include/grub/elf.h: Likewise.
15253 * include/grub/xnu.h: Likewise.
15254 * include/grub/usbdesc.h: Likewise.
15255 * include/grub/usb.h: Likewise.
15256 * include/grub/script_sh.h: Likewise.
15257 * include/grub/lib/LzmaEnc.h: Likewise.
15258 * include/grub/efiemu/efiemu.h: Likewise.
15259 * include/grub/command.h: Likewise.
15260 * normal/menu.c: Likewise.
15261 * normal/main.c: Likewise.
15262 * normal/datetime.c: Likewise.
15263 * bus/usb/uhci.c: Likewise.
15264 * mmap/i386/uppermem.c: Likewise.
15265 * mmap/mmap.c: Likewise.
15266 * commands/acpi.c: Likewise.
15267 * commands/test.c: Likewise.
15268 * partmap/apple.c: Likewise.
15269 * font/font.c: Likewise.
15270 * loader/sparc64/ieee1275/linux.c: Likewise.
15271 * loader/macho.c: Likewise.
15272 * loader/i386/bsd_trampoline.S: Likewise.
15273 * loader/i386/bsd.c: Likewise.
15274 * loader/xnu.c: Likewise.
15275 * term/i386/pc/vesafb.c: Likewise.
15276 * term/usb_keyboard.c: Likewise.
15277 * util/resolve.c: Likewise.
15278 * util/getroot.c: Likewise.
15279
0cfc0083 152802009-05-04 Felix Zielcke <fzielcke@z-51.de>
15281
15282 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
15283
7c1d00cd 152842009-05-04 Robert Millan <rmh.grub@aybabtu.com>
15285
15286 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
15287 build error.
15288
b01f0548 152892009-05-04 Robert Millan <rmh.grub@aybabtu.com>
15290
15291 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
15292 parameter only available on BIOS.
15293
ecc3eb22 152942009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
15295
15296 Removed wrong semicolon in declaration
15297
15298 * grub/misc.h (grub_dprintf): remove semicolon
15299
112972a9 153002009-05-04 Robert Millan <rmh.grub@aybabtu.com>
15301
15302 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
15303 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
15304 is done by grub_cmd_linux() now).
15305 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
15306 restore video to text mode.
15307 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
15308 indicates lack of "vga=" parameter. "vga=0" is mapped to
15309 `GRUB_LINUX_VID_MODE_NORMAL'.
15310
afd5c115 153112009-05-04 Felix Zielcke <fzielcke@z-51.de>
15312
15313 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
15314 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
15315 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 15316 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 15317 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
15318 `grub_script.tab.c'.
15319
15320 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15321 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15322 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15323 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
15324 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15325
faa517ce 15326 * Makefile.in: Remove duplicated 2008 in Copyright line.
15327
ae0c0bdc 153282009-05-04 Robert Millan <rmh.grub@aybabtu.com>
15329
473d1e45 15330 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 15331 unconditionally.
15332 * include/grub/util/misc.h (grub_util_warn): New declaration.
15333
15334 * util/i386/pc/grub-install.in: Understand --force and pass it down
15335 to grub-setup.
15336
15337 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
15338 down to setup().
15339 (setup): Improve error messages and add warnings when requested to
15340 install in odd layouts. Refuse to install using blocklists unless
15341 --force was set.
15342
18f547ad 153432009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 15344
15345 * disk/raid.c (grub_raid_scan_device): Improve debug message.
15346
6d260daa 153472009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
15348
15349 Updated copyright year
15350
15351 * fs/hfsplus.c: updated copyright year
18f547ad 15352
69f853f8 153532009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 HFS+ UUID
15356
18f547ad 15357 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 15358 in the space previously used by unused3
15359 (grub_hfsplus_uuid): new function
15360 (grub_hfsplus_fs): added uuid field
15361
4c402e73 153622009-05-03 Pavel Roskin <proski@gnu.org>
15363
15364 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
15365 suppress warnings. It's no longer needed.
15366 * disk/host.c: Likewise.
15367 * disk/ata_pthru.c: Likewise.
15368 * disk/loopback.c: Likewise.
15369 * hook/datehook.c: Likewise.
15370 * parttool/pcpart.c: Likewise.
15371 * fs/i386/pc/pxe.c: Likewise.
15372 * fs/ntfscomp.c: Likewise.
15373 * efiemu/main.c: Likewise.
15374 * mmap/mmap.c: Likewise.
15375 * commands/crc.c: Likewise.
15376 * commands/hexdump.c: Likewise.
15377 * commands/hdparm.c: Likewise.
15378 * commands/acpi.c: Likewise.
15379 * commands/echo.c: Likewise.
15380 * commands/minicmd.c: Likewise.
15381 * commands/blocklist.c: Likewise.
15382 * commands/memrw.c: Likewise.
15383 * commands/loadenv.c: Likewise.
15384 * commands/usbtest.c: Likewise.
15385 * commands/lsmmap.c: Likewise.
15386 * commands/boot.c: Likewise.
15387 * commands/parttool.c: Likewise.
15388 * commands/configfile.c: Likewise.
15389 * commands/search.c: Likewise.
15390 * commands/ieee1275/suspend.c: Likewise.
15391 * commands/cat.c: Likewise.
15392 * commands/i386/pc/pxecmd.c: Likewise.
15393 * commands/i386/pc/play.c: Likewise.
15394 * commands/i386/pc/halt.c: Likewise.
15395 * commands/i386/pc/vbeinfo.c: Likewise.
15396 * commands/i386/pc/vbetest.c: Likewise.
15397 * commands/lspci.c: Likewise.
15398 * commands/date.c: Likewise.
15399 * commands/handler.c: Likewise.
15400 * commands/ls.c: Likewise.
15401 * commands/test.c: Likewise.
15402 * commands/cmp.c: Likewise.
15403 * commands/efi/loadbios.c: Likewise.
15404 * commands/efi/fixvideo.c: Likewise.
15405 * commands/halt.c: Likewise.
15406 * commands/help.c: Likewise.
15407 * commands/reboot.c: Likewise.
15408 * hello/hello.c: Likewise.
15409 * script/sh/main.c: Likewise.
15410 * loader/xnu.c: Likewise.
15411 * term/terminfo.c: Likewise.
15412 * term/i386/pc/serial.c: Likewise.
15413 * term/usb_keyboard.c: Likewise.
15414
515b5079 154152009-05-03 David S. Miller <davem@davemloft.net>
15416
15417 * normal/menu.c: Include grub/parser.h
15418
dfc31a22 154192009-05-03 Pavel Roskin <proski@gnu.org>
15420
2fee74f1 15421 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
15422 not char*.
15423 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
15424 Suggested by Javier Martín <lordhabbit@gmail.com>
15425
dfc31a22 15426 * util/i386/pc/grub-mkrescue.in: Allow for the case when
15427 efiemu??.o doesn't exist.
15428 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
15429 copying.
15430
18f547ad 154312009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 15432
15433 FreeBSD 64-bit support
15434
18f547ad 15435 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 15436 and loader/i386/bsd_trampoline.S
15437 (bsd_mod_ASFLAGS): new variable
15438 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
15439 (FREEBSD_MODTYPE_KERNEL64): likewise
15440 (grub_bsd64_trampoline_start): likewise
15441 (grub_bsd64_trampoline_end): likewise
15442 (grub_bsd64_trampoline_selfjump): likewise
15443 (grub_bsd64_trampoline_gdt): likewise
15444 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
15445 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
15446 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
15447 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 15448 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 15449 of "attrib" member
15450 * loader/i386/bsd_pagetable.c: new file
15451 * loader/i386/bsd_trampoline.S: likewise
15452 * loader/i386/bsd.c (ALIGN_QWORD): new macro
15453 (ALIGN_VAR): likewise
15454 (entry_hi): new variable
15455 (kern_end_mdofs): likewise
15456 (is_64bit): likewise
15457 (grub_freebsd_add_meta): use ALIGN_VAR
15458 (grub_e820_mmap): new declaration
15459 (grub_freebsd_add_mmap): new function
15460 (grub_freebsd_add_meta_module): support 64 bit kernels
15461 (grub_freebsd_list_modules): use ALIGN_VAR
15462 (gdt_descriptor): new declaration
15463 (grub_freebsd_boot): support 64 bit kernels
15464 (grub_bsd_elf64_hook): new function
15465 (grub_bsd_load_elf): support elf64
15466
038c5720 154672009-05-03 Bean <bean123ch@gmail.com>
15468
15469 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
15470 after we get the result of if statement.
15471
fc45fb58 154722009-05-03 Bean <bean123ch@gmail.com>
15473
15474 * Makefile.in (enable_efiemu): New variable.
15475
15476 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
15477 set.
15478 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
15479 path.
15480 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
15481 path, add -mno-red-zone option.
15482 (efiemu64_s.o): Likewise.
15483 (efiemu64.o): Use macro $^ for source file.
15484
15485 * configure.ac (--enable-efiemu): New option.
15486
bbee0f2b 154872009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 xnu support
15490
15491 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
15492 (pkglib_MODULES): add xnu.mod
15493 (xnu_mod_SOURCES): new variable
15494 (xnu_mod_CFLAGS): likewise
15495 (xnu_mod_LDFLAGS): likewise
15496 (xnu_mod_ASFLAGS): likewise
15497 * conf/i386-pc.rmk: likewise
15498 * conf/x86_64-efi.rmk: likewise
7dd4a573 15499 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 15500 new declaration
15501 * include/grub/i386/macho.h: new file
15502 * include/grub/i386/xnu.h: likewise
15503 * include/grub/macho.h: likewise
15504 * include/grub/machoload.h: likewise
15505 * include/grub/x86_64/macho.h: likewise
15506 * include/grub/x86_64/xnu.h: likewise
15507 * include/grub/xnu.h: likewise
15508 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
15509 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
15510 * loader/i386/efi/xnu.c: new file
15511 * loader/i386/pc/xnu.c: likewise
15512 * loader/i386/xnu.c: likewise
15513 * loader/i386/xnu_helper.S: likewise
15514 * loader/macho.c: likewise
15515 * loader/xnu.c: likewise
15516 * loader/xnu_resume.c: likewise
15517 * util/grub-dumpdevtree: likewise
15518 * include/grub/i386/pit.h: include grub/err.h
15519 (grub_pit_wait): export
15520 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 15521
5caf964d 155222009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
15523
15524 Efiemu
7dd4a573 15525
5caf964d 15526 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 15527 _linux_efi, linux_efi.
15528 new files in grub-emu
5caf964d 15529 new targets efiemu32.o and efiemu64.o
15530 * loader/linux_normal_efiemu.c: likewise
15531 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 15532 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 15533 files to copy
15534 * include/grub/autoefi.h: new file
7dd4a573 15535 * include/grub/i386/efiemu.h: likewise
5caf964d 15536 * include/grub/i386/pc/efiemu.h: likewise
15537 * include/grub/efi/api.h: add LL suffix when necessary
15538 new definitions relating to tables
15539 * include/grub/efiemu/efiemu.h: new file
15540 * include/grub/efiemu/runtime.h: likewise
15541 * efiemu/prepare.c: likewise
15542 * efiemu/loadcore_common.c: likewise
15543 * efiemu/loadcore64.c: likewise
15544 * efiemu/runtime/efiemu.sh: likewise
15545 * efiemu/runtime/efiemu.S: likewise
15546 * efiemu/runtime/efiemu.c: likewise
15547 * efiemu/runtime/config.h: likewise
15548 * efiemu/prepare32.c: likewise
15549 * efiemu/main.c: likewise
15550 * efiemu/modules/pnvram.c: likewise
15551 * efiemu/modules/i386: likewise
15552 * efiemu/modules/i386/pc: likewise
15553 * efiemu/modules/acpi.c: likewise
15554 * efiemu/i386/pc/cfgtables.c: likewise
15555 * efiemu/i386/loadcore64.c: likewise
15556 * efiemu/i386/loadcore32.c: likewise
15557 * efiemu/prepare64.c: likewise
15558 * efiemu/loadcore.c: likewise
15559 * efiemu/symbols.c: likewise
15560 * efiemu/mm.c: likewise
15561 * efiemu/loadcore32.c: likewise
7dd4a573 15562
155632009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 15564
15565 ACPI spoofing
15566
15567 * commands/acpi.c: new file
15568 * commands/i386/pc/acpi.c: likewise
15569 * commands/efi/acpi.c: likewise
15570 * include/grub/acpi.h: likewise
15571 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
15572 (acpi_mod_SOURCES): new variable
15573 (acpi_mod_CFLAGS): likewise
15574 (acpi_mod_LDFLAGS): likewise
15575 * conf/i386-efi.rmk: likewise
15576 * conf/x86_64-efi.rmk: likewise
15577
7dd4a573 155782009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 15579
15580 Missing part from mmap patch
15581
15582 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
15583 (grub_mmap_unregister)
15584 (grub_mmap_free_and_unregister): use grub_mmap_register
15585
7dd4a573 155862009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 15587
15588 Mmap services
15589
15590 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
15591 * loader/i386/linux.c (find_mmap_size): likewise
15592 (allocate_pages): likewise
15593 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
15594 (grub_fill_multiboot_mmap): likewise
15595 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
15596 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
15597 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
15598 (OPENBSD_MMAP_RESERVED): likewise
15599 * include/grub/i386/pc/memory.h: include grub/memory.h
15600 (grub_lower_mem): removed
15601 (grub_upper_mem): likewise
15602 (GRUB_MACHINE_MEMORY_ACPI): new definition
15603 (GRUB_MACHINE_MEMORY_NVS): likewise
15604 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
15605 (GRUB_MACHINE_MEMORY_HOLE): likewise
15606 (grub_machine_mmap_register): likewise
15607 (grub_machine_mmap_unregister): likewise
15608 (grub_machine_get_upper): likewise
15609 (grub_machine_get_lower): likewise
15610 (grub_machine_get_post64): likewise
15611 * include/grub/i386/efi/memory.h: new file
15612 * include/grub/x86_64/efi/memory.h: likewise
15613 * include/grub/efi/memory.h: likewise
15614 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
15615 (mmap_mod_SOURCES): new variable
15616 (mmap_mod_LDFLAGS): likewise
15617 (mmap_mod_ASFLAGS): likewise
15618 * conf/i386-coreboot.rmk: likewise
15619 * conf/i386-ieee1275.rmk: likewise
15620 * conf/i386-efi.rmk: likewise
15621 * conf/x86_64-efi.rmk: likewise
15622 * include/grub/types.h (UINT_TO_PTR): new macro
15623 (PTR_TO_UINT32): likewise
15624 (PTR_TO_UINT64): likewise
15625 * include/grub/memory.h: new file
15626 * mmap/i386/pc/mmap.c: likewise
15627 * mmap/i386/pc/mmap_helper.S: likewise
15628 * mmap/i386/uppermem.c: likewise
15629 * mmap/mmap.c: likewise
15630 * mmap/efi/mmap.c: likewise
7dd4a573 15631 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 15632 grub_upper_mem
15633 * kern/i386/pc/init.c (grub_lower_mem): removed variable
15634 (grub_upper_mem): likewise
15635 (grub_machine_init): don't use grub_upper_mem,
15636 make grub_lower_mem local
15637 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
15638 grub_mmap_iterate and grub_mmap_get_upper
15639 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
15640
d558e6b5 156412009-05-02 Bean <bean123ch@gmail.com>
15642
15643 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
15644 script/sh/parser.y.
15645 (pkglib_MODULES): Add normal.mod and sh.mod.
15646 (normal_SOURCES): New variable.
15647 (normal_mod_CFLAGS): Likewise.
15648 (normal_mod_LDFLAGS): Likewise.
15649 (sh_mod_SOURCES): Likewise.
15650 (sh_mod_CFLAGS): Likewise.
15651 (sh_mod_LDFLAGS): Likewise.
15652
15653 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
15654 script/sh/lexer.c_DEPENDENCIES.
15655 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
15656 kern/rescue_reader.c and kern/rescue_parser.c.
15657 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
15658 (grub_emu_SOURCES): Change source files.
15659 (pkglib_MODULES): Remove normal.mod.
15660 (normal_SOURCES): Removed.
15661 (normal_mod_CFLAGS): Likewise.
15662 (normal_mod_LDFLAGS): Likewise.
15663 * conf/i386-coreboot.rmk: Likewise.
15664 * conf/i386-efi.rmk: Likewise.
15665 * conf/i386-ieee1276.rmk: Likewise.
15666 * conf/powerpc-ieee1275.rmk: Likewise.
15667 * conf/sparc64-ieee1275.rmk: Likewise.
15668 * conf/x86_64-efi.rmk: Likewise.
15669
15670 * include/grub/command.h (grub_command_execute): New inline function.
15671
15672 * include/grub/menu.h (grub_menu_entry): Removed commands field.
15673
15674 * include/grub/normal.h: Remove <grub/setjmp.h>.
15675 (grub_fs_module_list): Moved to normal/autofs.c.
15676 (grub_exit_env): Removed.
15677 (grub_command_execute): Likewise.
15678 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
15679 parameter script.
15680 (read_command_list): New function declaration.
15681 (read_fs_list): Likewise.
15682
15683 * include/parser.h: Include <grub/reader.h>.
15684 (grub_parser_split_cmdline): Change type of getline parameter.
15685 (grub_parser): New structure.
15686 (grub_parser_class): New variable.
15687 (grub_parser_execute): New function declaration.
15688 (grub_register_rescue_parser): Likewise.
15689 (grub_parser_register): New inline function.
15690 (grub_parser_unregister): Likewise.
15691 (grub_parser_get_current): Likewise.
15692 (grub_parser_set_current): Likewise.
15693
15694 * include/grub/reader.h: New file.
15695 * kern/reader.c: Likewise.
15696 * kern/rescue_parser.c: Likewise.
15697 * kern/rescue_reader.c: Likewise.
15698 * normal/autofs.c: Likewise.
15699 * normal/dyncmd.c: Likewise.
15700
15701 * include/grub/rescue.h: Removed.
15702 * normal/command.h: Likewise.
15703
15704 * include/grub/script.h: Moved to ...
15705 * include/grub/script_sh.h: ... Moved here.
15706 * normal/execute.c: Moved to ...
15707 * script/sh/execute.c: ... Moved here.
15708 * normal/function.c: Moved to ...
15709 * script/sh/function.c: ... Moved here.
15710 * normal/lexer.c: Moved to ...
15711 * script/sh/lexer.c: ... Moved here.
15712 * normal/parser.y: Moved to ...
15713 * script/sh/parser.y: ... Moved here.
15714 * normal/script.c: Moved to ...
15715 * script/sh/script.c: ... Moved here.
15716
15717 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
15718 <grub/reader.h>.
15719 (grub_exit_env): Removed.
15720 (fs_module_list): Moved to normal/autofs.c.
15721 (grub_file_getline): Don't handle comment here.
15722 (free_menu): Skip removed field entry->commands.
15723 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
15724 script parameter.
15725 (read_config_file): Removed nested parameter, change getline function.
15726 (grub_enter_normal_mode): Removed.
15727 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
15728 (read_command_list): Likewise.
15729 (autoload_fs_module): Moved to normal/autofs.c.
15730 (read_fs_list): Likewise.
15731 (reader_nested): New variable.
15732 (grub_normal_execute): Run parser.sh to switch to sh parser.
15733 (grub_cmd_rescue): Removed.
15734 (cmd_normal): Removed.
15735 (grub_cmd_normal): Unregister itself at the beginning. Don't register
15736 rescue command.
15737 (grub_cmdline_run): New function.
15738 (grub_normal_reader_init): Likewise.
15739 (grub_normal_read_line): Likewise.
15740 (grub_env_write_pager): Likewise.
15741 (cmdline): New variable.
15742 (grub_normal_reader): Likewise.
15743 (GRUB_MOD_INIT): Register normal reader and set as current, register
15744 pager hook, register normal command with grub_register_command_prio,
15745 so that it won't show up in command.lst.
15746 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
15747 grub_fs_autoload_hook.
15748
15749 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
15750 (grub_menu_execute_entry): Replace grub_script_execute with
15751 grub_parser_execute, change parameter to grub_command_execute.
15752
15753 * normal/menu_text.c: Remove <grub/script.h>.
15754
15755 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
15756 and <grub/parser.h>.
15757 (run): Change editor_getline to use new parser interface. Change
15758 parameter to grub_command_execute.
15759
15760 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
15761 <grub/reader.h> and <grub/parser.h>.
15762 (grub_load_normal_mode): Execute normal command.
15763 (grub_main): Call grub_register_core_commands,
15764 grub_register_rescue_parser and grub_register_rescue_reader, use
15765 grub_reader_loop to enter input loop.
15766
7dd4a573 15767 * kern/parser.c (grub_parser_split_cmdline): Change type of
15768 getline parameter.
d558e6b5 15769 (grub_parser_class): New variable.
15770 (grub_parser_execute): New function.
15771
15772 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
15773 * loader/multiboot2.c: Likewise.
15774 * loader/sparc64/ieee1275/linux.c: Likewise.
15775
15776 * util/grub-emu.c (read_command_list): New dummy function.
15777
18db813d 157782009-05-02 Robert Millan <rmh.grub@aybabtu.com>
15779
15780 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
15781 count to 16 for CCISS and IDA.
15782
6c67de15 157832009-05-02 Robert Millan <rmh.grub@aybabtu.com>
15784
15785 * normal/menu_text.c (grub_wait_after_message): Print a newline
15786 after waiting for user input.
15787
15788 * loader/i386/linux.c: Include `<grub/normal.h>'.
15789 (grub_cmd_linux): Improve the error message about `ask' mode, by
15790 waiting for user input so it's not missed (we can do this, since
15791 user requested interaction).
15792
d9dc87b0 157932009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 Added missing lst to grub-mkrescue
15796
15797 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
15798 and ${input_dir}/parttool.lst
15799
ac8a2baa 158002009-04-30 David S. Miller <davem@davemloft.net>
15801
ad22a610 15802 * util/hostdisk.c (device_is_wholedisk): New function.
15803 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
15804 zero only if device_is_wholedisk() returns true.
15805
6966215d 15806 * util/hostdisk.c (convert_system_partition_to_system_disk):
15807 Handle virtual disk devices named /dev/vdiskX as found on sparc
15808 and powerpc.
15809
ac8a2baa 15810 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
15811 lettered partition specifier is found, convert to numbered.
15812
979b4fb4 158132009-04-29 David S. Miller <davem@davemloft.net>
15814
e2bf39b2 15815 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
15816 * include/grub/sparc64/ieee1275/memory.h: Likewise.
15817
3c64e104 15818 * normal/command.c: Add missing newline at end of file.
15819
979b4fb4 15820 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
15821 warnings.
15822 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
15823 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
15824 grub_ofdisk_read): Likewise, and deal similarly with the fact that
15825 ihandles have a 32-bit type but need to be stored in a "void *".
15826
136d9f82 158272009-04-28 Pavel Roskin <proski@gnu.org>
15828
9459c306 15829 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
15830 not disk. Adjust all dependencies.
2e08a26a 15831 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 15832 grub_disk_close().
15833
136d9f82 15834 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
15835 parent's partition, don't copy it by reference, as it gets freed
15836 on close.
15837
7dd4a573 158382009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 15839
15840 Preboot hooks support
15841
15842 * commands/boot.c (struct grub_preboot_t): new declaration
15843 (preboots_head): new variable
15844 (preboots_tail): likewise
15845 (grub_loader_register_preboot_hook): new function
15846 (grub_loader_unregister_preboot_hook): likewise
15847 (grub_loader_set): launch preboot hooks
15848 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
15849 (grub_loader_register_preboot_hook): new declaration
15850 (grub_loader_unregister_preboot_hook): likewise
15851
5af922b5 158522009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 Warning fix
15855
7dd4a573 15856 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 15857 calling grub_dprintf
15858
a5562c30 158592009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
15860
15861 Bug and warning fixes
15862
7dd4a573 15863 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 15864 declaration
15865 * commands/test.c (test_parse): fixed bug with file tests and corrected
15866 declaration of find_file
15867
4006f85c 158682009-04-26 Pavel Roskin <proski@gnu.org>
15869
15870 * Makefile.in: Don't install empty manual pages if help2man is
15871 missing. Use help2man option for output, not shell redirection.
15872
5c77c3de 158732009-04-26 David S. Miller <davem@davemloft.net>
15874
15875 * util/grub-mkdevicemap.c (make_device_map): Add missing
15876 NESTED_FUNC_ATTR to process_device().
15877
033b10a8 158782009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15879
15880 Test command
15881
15882 * commands/test.c: rewritten to use bash-like test
15883
e4343593 158842009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15885
15886 Parttool autoloading and improvements
15887
7dd4a573 15888 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 15889 (parttool.lst): new target
15890 * genmk.rb: generate parttool-*
15891 (CLEANFILES): add #{parttool}
15892 (PARTTOOLFILES): new variable
15893 * genparttoollist.sh: new file
7dd4a573 15894 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 15895 (grub_pcpart_type): likewise
15896 * commands/parttool.c (helpmsg): new variable
15897 (grub_cmd_parttool): output help if not enough arguments are supplied
15898 autoload modules
15899 (GRUB_MOD_INIT(parttool)): use helpmsg
15900
0d312500 159012009-04-24 David S. Miller <davem@davemloft.net>
15902
7dd4a573 15903 Avoiding opening same device multiple times in device iterator.
0d312500 15904
15905 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 15906 and use it to build a list of partitions in iterate_disk() and
0d312500 15907 iterate_partition().
15908
ac20caff 15909 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
15910 on disk->data.
15911
0dcf7495 15912 * disk/ieee1275/nand.c (grub_nand_iterate): Return
15913 grub_devalias_iterate() result instead of unconditional 0.
15914 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
15915 Also, capture hook return value, either directly or via
15916 grub_children_iterate(), and propagate to caller.
15917 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
15918 grub_children_iterate): Return value is now 'int' instead of
15919 'grub_err_t'.
15920 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
15921 like a proper iterator, stopping when hooks return non-zero.
15922 (grub_devalias_iterate): Likewise.
15923
c8c08833 159242009-04-23 David S. Miller <davem@davemloft.net>
15925
15926 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
15927
f01005a8 159282009-04-22 David S. Miller <davem@davemloft.net>
15929
15930 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
15931 is larger than address_cells, use that value for address_cells too.
15932
4e8269da 15933 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
15934 IEEE1275_MAX_PATH_LEN): Define.
15935 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
15936 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
15937 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
15938 'devtype'. Explicitly NULL terminate devalias expansion.
15939
a1447506 15940 * util/sparc64/ieee1275/misc.c: New file.
15941 * util/sparc64/ieee1275/grub-setup.c: New file.
15942 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
15943 * util/sparc64/ieee1275/grub-mkimage.c: New file.
15944 * util/sparc64/ieee1275/grub-install.in: New file.
15945 * util/ieee1275/ofpath.c: New file.
15946 * util/ieee1275/devicemap.c: New file.
15947 * util/devicemap.c: New file.
15948 * util/deviceiter.c: New file.
15949 * kern/sparc64/ieee1275/init.c: New file.
15950 * include/grub/util/ofpath.h: New file.
15951 * include/grub/util/deviceiter.h: New file.
15952 * util/grub-mkdevicemap.c: Include deviceiter.h.
15953 Implement using grub_util_emit_devicemap_entry and
15954 grub_util_iterate_devices.
15955 * conf/i386-corebook.rmk: Build util/deviceiter.c and
15956 util/devicemap.c into grub-mkdevicemap
15957 * conf/i386-efi.rmk: Likewise.
15958 * conf/i386-ieee1275.rmk: Likewise.
15959 * conf/i386-pc.rmk: Likewise.
15960 * conf/powerpc-ieee1275.rmk: Likewise.
15961 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
15962 images and installation utilities. Build kernel as image
15963 instead of as elf binary. Use common rules as much as possible.
15964
7dd4a573 159652009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 15966
15967 Correct GPT definition
15968
7dd4a573 15969 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 15970 of "attrib" member
15971
c6c5219f 159722009-04-19 Felix Zielcke <fzielcke@z-51.de>
15973
15974 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
15975
0552ff9f 159762009-04-19 David S. Miller <davem@davemloft.net>
15977
15978 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
15979 (grub_rescue_cmd_linux): Rename to...
15980 (grub_cmd_linux): and fix prototype.
15981 (grub_rescue_cmd_initrd): Rename to...
15982 (grub_cmd_initrd): and fix prototype.
15983 (cmd_linux, cmd_initrd): New.
15984 (GRUB_MOD_INIT(linux)): Use grub_register_command().
15985 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
15986
d1a282fc 159872009-04-17 Pavel Roskin <proski@gnu.org>
15988
07c5039f 15989 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
15990 format.
15991 (grub_ohci_transfer): Likewise.
15992
b012002d 15993 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
15994
1bc09c35 15995 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
15996 return without a value. Fix inconsistent indentation.
15997
e0ff9126 15998 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
15999 match struct grub_fs.
16000
d1a282fc 16001 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
16002 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
16003 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16004 * commands/lspci.c (grub_lspci_iter): Likewise.
16005
a96df3f2 160062009-04-16 Bean <bean123ch@gmail.com>
16007
16008 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
16009 value.
16010
41bb0fe9 160112009-04-15 Pavel Roskin <proski@gnu.org>
16012
16013 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
16014 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
16015 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
16016 definitions.
16017
596c6970 160182009-04-15 Felix Zielcke <fzielcke@z-51.de>
16019
16020 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 16021 that no multiple data or metadata areas are supported and `Unknown
596c6970 16022 metadata header'.
16023
7dd4a573 160242009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 16025
16026 Move loader out of the kernel
16027
16028 * kern/loader.c: moved to ...
16029 * commands/boot.c: ... moved here
16030 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
16031 * commands/boot.c (grub_cmd_boot): moved here. All users updated
16032 * include/grub/kernel.h (grub_machine_fini): export
16033 * include/grub/loader.h (grub_loader_is_loaded): update declaration
16034 (grub_loader_set): likewise
16035 (grub_loader_unset): likewise
16036 (grub_loader_boot): likewise
16037 * conf/common.rmk: new module boot.mod
16038 (pkglib_MODULES): add boot.mod
16039 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
16040 (grub_emu_SOURCES): likewise
16041 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
16042 (grub_emu_SOURCES): likewise
16043 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
16044 (grub_emu_SOURCES): likewise
16045 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
16046 (grub_emu_SOURCES): likewise
16047 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
16048 (grub_emu_SOURCES): likewise
7dd4a573 16049 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
16050 (grub_emu_SOURCES): likewise
0d5d5653 16051 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 16052 (grub_emu_SOURCES): likewise
0d5d5653 16053
7dd4a573 160542009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 16055
16056 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 16057
5999d619 16058 * kern/misc.c (grub_itoa): Removed function
16059 (grub_ltoa): likewise
16060 (grub_vsprintf): use grub_lltoa
16061
7dd4a573 160622009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 16063
16064 Restore grub-emu
16065
16066 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
16067 * conf/i386-coreboot.rmk: likewise
16068 * conf/i386-ieee1275.rmk: likewise
16069 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 16070
20318222 160712009-04-15 Felix Zielcke <fzielcke@z-51.de>
16072
16073 * INSTALL: Add that `./autogen.sh' needs to be run before
16074 `./configure.'.
16075
d05f0df3 160762009-04-14 Bean <bean123ch@gmail.com>
16077
16078 * Makefile.in (pkglib_DATA): Add handler.lst.
16079 (handler.lst): New rule.
16080
16081 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
16082 * conf/i386-coreboot.rmk: Likewise.
16083 * conf/i386-ieee1275.rmk: Likewise.
16084 * conf/i386-efi.rmk: Likewise.
16085 * conf/x86_64-efi.rmk: Likewise.
16086 * conf/powerpc-ieee1275.rmk: Likewise.
16087 * conf/sparc64-ieee1275.rmk: Likewise.
16088
16089 * genhandlerlist.sh: New file.
16090
16091 * genmk.rb: Add rules to generate handler.lst.
16092
16093 * include/grub/normal.h (grub_file_getline): New function definition.
16094 (read_handler_list): Likewise.
16095 (free_handler_list): Likewise.
16096
16097 * include/grub/term.h (grub_term_register_input): Add name parameter
16098 for auto generation of handler.lst.
16099 (grub_term_register_output): Likewise.
16100
16101 * normal/handler.c: New file.
16102
16103 * normal/main.c (get_line): Renamed to grub_file_getline.
16104 (read_config_file): Use the newly renamed grub_file_getline.
16105 (read_command_list): Likewise.
16106 (read_fs_list): Likewise.
16107 (grub_normal_execute): Call read_handler_list to parse handler.lst.
16108 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
16109
16110 * term/efi/console.c (grub_console_init): Add name parameter for auto
16111 generation of handler.lst.
16112 * term/gfxterm.c: Likewise.
16113 * term/i386/pc/at_keyboard.c: Likewise.
16114 * term/i386/pc/console.c: Likewise.
16115 * term/i386/pc/serial.c: Likewise.
16116 * term/i386/pc/vesafb.c: Likewise.
16117 * term/i386/pc/vga.c: Likewise.
16118 * term/i386/pc/vga_text.c: Likewise.
16119 * term/ieee1275/ofconsole.c: Likewise.
16120 * term/usb_keyboard.c: Likewise.
16121
33c846be 161222009-04-14 Bean <bean123ch@gmail.com>
16123
16124 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
16125 properly with null character.
16126
4484e01e 161272009-04-14 Felix Zielcke <fzielcke@z-51.de>
16128
16129 * configure: Remove.
16130 * config.h.in: Likewise.
f93d668e 16131 * stamp-h.in: Likewise.
4484e01e 16132 * DISTLIST: Likewise.
16133 * conf/common.mk: Likewise.
16134 * conf/i386-coreboot.mk: Likewise.
16135 * conf/i386-efi.mk: Likewise.
16136 * conf/i386-ieee1275.mk: Likewise.
16137 * conf/i386.mk: Likewise.
16138 * conf/i386-pc.mk: Likewise.
16139 * conf/powerpc-ieee1275.mk: Likewise.
16140 * conf/sparc64-ieee1275.mk: Likewise.
16141 * conf/x86_64-efi.mk: Likewise.
16142
16143 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
16144 develop on GRUB.
16145
7dd4a573 161462009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 16147 David S. Miller <davem@davemloft.net>
16148
16149 * util/hostdisk.c (make_device_name): Fix buffer length
16150 calculations.
16151
e25b5a8c 161522009-04-14 Felix Zielcke <fzielcke@z-51.de>
16153
16154 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
16155 <sys/param.h> and <sys/sysctl.h>.
16156 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
16157 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
16158 opening the device and reset them afterwards.
16159
1f1f580c 161602009-04-13 Pavel Roskin <proski@gnu.org>
16161
16162 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
16163 Reported by John Stanley <jpsinthemix@verizon.net>
16164
7ebc2d6b 161652009-04-13 Robert Millan <rmh@aybabtu.com>
16166
16167 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 16168 that name for menuentries when appropriate.
7ebc2d6b 16169
d8ba3667 161702009-04-13 Felix Zielcke <fzielcke@z-51.de>
16171
16172 * util/grub.d/10_freebsd.in: Add a missing `fi'.
16173
cba416eb 161742009-04-13 Robert Millan <rmh@aybabtu.com>
16175
16176 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
16177 to Linux, simply abort telling the user it's no longer supported.
16178
a547a745 161792009-04-13 Felix Zielcke <fzielcke@z-51.de>
16180
16181 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 16182 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 16183 `freebsd_loadenv' only when devices.hints exist.
16184
232a769c 161852009-04-13 Pavel Roskin <proski@gnu.org>
16186
16187 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
16188
c3012039 161892009-04-13 Felix Zielcke <fzielcke@z-51.de>
16190
16191 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
16192 partition number.
16193 (grub_drive): Likewise.
16194
234022fe 161952009-04-13 David S. Miller <davem@davemloft.net>
16196
16197 * kern/sparc64/ieee1275/ieee1275.c: New file.
16198 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
16199 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
16200 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
16201 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
16202 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
16203 grub_ieee1275_alloc_physmem): Declare new exported functions.
16204
d8e1836c 16205 * include/grub/sparc64/ieee1275/loader.h: New file.
16206 * include/grub/sparc64/ieee1275/memory.h: Likewise.
16207 * include/grub/sparc64/kernel.h: Likewise.
16208 * loader/sparc64/ieee1275/linux.c: Likewise.
16209
96bd81ec 16210 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
16211 (grub_fstest_SOURCES): Likewise.
16212
6a4737e5 16213 * util/hostdisk.c (make_device_name): Do not make any assumptions
16214 about the length of drive names.
16215
1d7a72fd 16216 * kern/dl.c (grub_dl_load_file): Close file immediately when
16217 we are done using it.
16218
56bc2471 162192009-04-12 David S. Miller <davem@davemloft.net>
16220
16221 * kern/misc.c (grub_ltoa): Fix cast when handling negative
16222 values. Noticed by Pavel Roskin.
16223
df38d0bb 16224 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
16225 target compiler.
7dd4a573 16226
e382e93a 16227 * genmk.rb: Add more flexible image type specification, also
16228 pass --strip-unneeded to objcopy.
16229 * conf/i386-pc.rmk: Use *_FORMAT.
16230 * conf/i386-pc.mk: Rebuilt.
16231
f5dbbca9 16232 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
16233 (OFDISK_HASH_SZ): Define.
16234 (ofdisk_hash): New hash table.
16235 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
16236 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
16237 instead of device phandle which is not unique.
16238
91c88b12 16239 * kern/sparc64/ieee1275/init.c: Delete, replace with...
16240 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
16241 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
16242 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
16243 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
16244 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
16245 GRUB_KERNEL_MACHINE_DATA_END): Define.
16246 (grub_kernel_image_size, grub_total_module_size): Declare.
16247
5b5d4aa5 162482009-04-12 Pavel Roskin <proski@gnu.org>
16249
7dd4a573 16250 * configure.ac: Change the logic when we check for target tools.
16251 Do it when the target is specified and it's different from the
16252 specified value of the host.
5b5d4aa5 16253
c91e1793 162542009-04-11 Felix Zielcke <fzielcke@z-51.de>
16255
16256 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
16257 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
16258 GNU/kFreeBSD. Check if a device is a character device. Use
16259 DIOCGMEDIASIZE to get the size.
16260 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
16261 support for GNU/kFreeBSD.
16262 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
16263 is a character device instead of a block device. Add support for
16264 FreeBSD device names.
16265
16266 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
16267 is a character device instead of a block device.
16268
16269 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
16270 is a character device instead of a block device.
16271
b1ac8644 162722009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
16273
16274 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
16275 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
16276 FreeBSD. Check if a device is a character device. Use
16277 DIOCGMEDIASIZE to get the size.
16278 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
16279 support for FreeBSD.
16280 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
16281 is a character device instead of a block device. Add support for
16282 FreeBSD device names.
16283
16284 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
16285 a character device instead of a block device.
16286 (grub_util_check_char_device): New function.
16287
16288 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
16289 a character device instead of a block device.
16290
16291 * include/grub/util/getroot.h (grub_util_check_char_device): New
16292 prototype.
16293
a3f7515a 162942009-04-11 David S. Miller <davem@davemloft.net>
16295
16296 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
16297 static libgcc.
16298 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
16299 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
16300 function, if present.
16301 (__bswapdi2): Likewise.
16302
0d44993d 16303 * include/grub/sparc64/ieee1275/boot.h: New file.
16304 * boot/sparc64/ieee1275/boot.S: Likewise.
16305 * boot/sparc64/ieee1275/diskboot.S: Likewise.
16306
ed3d2bc2 16307 * kern/misc.c (grub_ltoa): New function.
16308 (grub_vsprintf): Use it to format 'long' integers.
16309
d3bfb59c 163102009-04-10 David S. Miller <davem@davemloft.net>
16311
16312 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
16313 slots are of type grub_ieee1275_cell_t.
16314 (grub_nand_read): Likewise.
16315 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
16316 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
16317 macros are used to compare values in arg/ret block of the call.
16318 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
16319 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
16320 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
16321 grub_ieee1275_instance_to_path, grub_ieee1275_write,
16322 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
16323 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
16324 grub_ieee1275_close, grub_ieee1275_set_property,
16325 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
16326 grub_ieee1275_cell_t.
16327 * kern/ieee1275/openfw.c (grub_map): Likewise.
16328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
16329 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
16330
450e2238 16331 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
16332 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16333 (grub_devalias_iterate): Likewise.
16334
7dd4a573 163352009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 16336
16337 UFS improvements
16338
16339 * fs/ufs.c (INODE_NBLOCKS): new definition
16340 (struct grub_ufs_dirent): added fields for non-BSD dirents
16341 (grub_ufs_get_file_block): fixed double indirect handling
16342 (grub_ufs_lookup_symlink): use more robust way to determine whether
16343 symlink is inline
16344 (grub_ufs_find_file): support for non-BSD dirents
16345 (grub_ufs_dir): support for non-BSD dirents
16346
e7e6862a 163472009-04-10 Bean <bean123ch@gnail.com>
16348
16349 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
16350 attribute, otherwise the size would be wrong for i386 platform.
16351
16352 * include/grub/pci.h (grub_pci_read_word): New inline function.
16353 (grub_pci_read_byte): Likewise.
16354 (grub_pci_write): Likewise.
16355 (grub_pci_write_word): Likewise.
16356 (grub_pci_write_byte): Likewise.
16357
16358 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
16359
16360 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
16361 (find_framebuf): Scan pci to locate the frame buffer address.
16362
16363 * commands/efi/fixvideo.c: New file.
16364
16365 * commands/efi/loadbios.c: Likewise.
16366
16367 * commands/memrw.c: Likewise.
16368
16369 * util/grub-dumpbios.in: Likewise.
16370
16371 * conf/common.rmk (grub-dumpbios): New utility.
16372 (pkglib_MODULES): New module memrw.mod.
16373 (memrw_mod_SOURCE): New macro.
16374 (memrw_mod_CFLAGS): Likewise.
16375 (memrw_mod_LDFLAGS): Likewise.
16376
7dd4a573 16377 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 16378 fixvideo.mod.
16379 (loadbios_mod_SOURCE): New macro.
16380 (loadbios_mod_CFLAGS): Likewise.
16381 (loadbios_mod_LDFLAGS): Likewise.
16382 (fixvideo_mod_SOURCE): Likewise.
16383 (fixvideo_mod_CFLAGS): Likewise.
16384 (fixvideo_mod_LDFLAGS): Likewise.
16385
7dd4a573 16386 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 16387 fixvideo.mod.
16388 (loadbios_mod_SOURCE): New macro.
16389 (loadbios_mod_CFLAGS): Likewise.
16390 (loadbios_mod_LDFLAGS): Likewise.
16391 (fixvideo_mod_SOURCE): Likewise.
16392 (fixvideo_mod_CFLAGS): Likewise.
16393 (fixvideo_mod_LDFLAGS): Likewise.
16394
af63ada2 163952009-04-08 Felix Zielcke <fzielcke@z-51.de>
16396
16397 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
16398
c2cdde70 163992009-04-07 David S. Miller <davem@davemloft.net>
16400
16401 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
16402 support for R_SPARC_OLO10 relocations. Fix compile warning for
16403 R_SPARC_WDISP30 case.
ea3f72cf 16404 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 16405
761319cf 164062009-04-06 Pavel Roskin <proski@gnu.org>
16407
1007d1f5 16408 * include/grub/misc.h (ARRAY_SIZE): New macro.
16409 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
16410 New macro.
16411 * loader/i386/linux.c (allocate_pages): Use free_pages().
16412 (grub_linux_unload): Don't use free_pages().
16413 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
16414 wrong index. Treat all other modes as text modes.
16415 (grub_cmd_linux): Initialize vid_mode unconditionally to
16416 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
16417
761319cf 16418 * commands/help.c (print_command_help): Use cmd->prio, not
16419 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
16420
ea761d40 164212009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 16422
ea761d40 16423 Parttool
16424
16425 * parttool/pcpart.c: new file
16426 * commands/parttool.c: likewise
16427 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
16428 (parttool_mod_SOURCES): new variable
16429 (parttool_mod_CFLAGS): likewise
16430 (parttool_mod_LDFLAGS): likewise
16431 (pcpart_mod_SOURCES): likewise
16432 (pcpart_mod_CFLAGS): likewise
16433 (pcpart_mod_LDFLAGS): likewise
7dd4a573 16434 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 16435 and parttool/pcpart.c
16436 * conf/i386-efi.rmk: likewise
16437 * conf/i386-ieee1275.rmk: likewise
16438 * conf/i386-pc.rmk: likewise
16439 * conf/powerpc-ieee1275.rmk: likewise
16440 * conf/sparc64-ieee1275.rmk: likewise
16441 * conf/x86_64-ieee1275.rmk: likewise
16442
05aaebfb 164432009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16444
16445 Support for mtime and further expandability of dir command
16446
16447 * include/grub/lib/datetime.h: moved to ...
7dd4a573 16448 * include/grub/datetime.h: ... moved here and added
05aaebfb 16449 declaration of grub_unixtime2datetime. All users updated
7dd4a573 16450 * include/grub/fs.h: new syntax for dir and mtime functions in
16451 struct grub_fs
05aaebfb 16452 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
16453 and GRUB_FSHELP_FLAGS_MASK
16454 * commands/ls.c (grub_ls_list_files): Write mtime in long format
16455 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
16456 (grub_ext2_mtime): new function
16457 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
16458 (grub_hfsplus_mtime): new function
16459 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
16460 (GRUB_UFS_ATTR_FILE): likewise
16461 (GRUB_UFS_ATTR_LNK): likewise
16462 (struct grub_ufs_sblock): new fields mtime
16463 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
16464 all users updated
16465 (grub_ufs_dir): mtime support
16466 (grub_ufs_mtime): new function
16467 * fs/affs.c (grub_affs_dir): use new dir syntax
16468 * fs/afs.c (grub_afs_dir): likewise
16469 * fs/cpio.c (grub_cpio_dir): likewise
16470 * fs/fat.c (grub_fat_find_dir): likewise
16471 * fs/hfs.c (grub_hfs_dir): likewise
16472 * fs/iso9660.c (grub_iso9660_dir): likewise
16473 * fs/jfs.c (grub_jfs_dir): likewise
16474 * fs/minix.c (grub_minix_dir): likewise
16475 * fs/ntfs.c (grub_ntfs_dir): likewise
16476 * fs/reiserfs.c (grub_reiserfs_dir): likewise
16477 * fs/sfs.c (grub_sfs_dir): likewise
16478 * fs/xfs.c (grub_xfs_dir): likewise
16479 * util/hostfs.c (grub_hostfs_dir): likewise
16480 * lib/datetime.c: moved to ...
16481 * normal/datetime.c: ... moved here
16482 (grub_unixtime2datetime): new function
16483 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 16484 * normal/completion.c (iterate_dir): use new dir syntax
16485 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 16486 last modification time of a volume
7dd4a573 16487 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 16488 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 16489 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 16490 (normal_mod_SOURCES): likewise
16491 (datetime_mod_SOURCES): Removed lib/datetime.c
16492 * conf/i386-efi.rmk: likewise
7dd4a573 16493 * conf/i386-ieee1275.rmk: likewise
05aaebfb 16494 * conf/i386-pc.rmk: likewise
16495 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 16496 * conf/sparc64-ieee1275.rmk: likewise
16497 * conf/x86_64-efi.rmk: likewise
05aaebfb 16498
8a7e1a14 164992009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
16500
16501 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 16502
16503 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 16504 on grub_fat_find_dir
16505 (grub_fat_find_dir): use grub_fat_iterate_dir
16506 (grub_fat_label): likewise
16507
04186a9c 165082009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
16509
7dd4a573 16510 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 16511 and command.h
16512 remove extraneous kernel_elf_HEADERS
16513
da4c0bb6 165142009-04-04 Bean <bean123ch@gnail.com>
16515
16516 * include/grub/util/misc.h: Add dummy function fsync for mingw.
16517
16518 * util/misc.c: Likewise.
16519
54ad9555 165202009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
16521
16522 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
16523 instead of grub_printf.
16524
7a6bf9f2 165252009-04-03 Robert Millan <rmh@aybabtu.com>
16526
16527 * loader/i386/linux.c (grub_linux_setup_video): Fill
16528 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
16529 values from `mode info' structure instead of hardcoded
16530 values.
16531
3fcc2083 165322009-04-01 Pavel Roskin <proski@gnu.org>
16533
16534 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
16535 unused now.
16536 * genmk.rb: Likewise.
16537 * configure.ac: Likewise.
16538
5ec9740b 165392009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
16540
16541 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
16542 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
16543
5270cec8 165442009-04-01 David S. Miller <davem@davemloft.net>
16545
16546 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 16547 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 16548 (grub_setjmp): Mark with 'returns_twice' attribute.
16549 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
16550 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
16551 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
16552
9c3dd854 165532009-04-01 Robert Millan <rmh@aybabtu.com>
16554
16555 Reapply fix from 2008-07-28 which was accidentally reverted; also
16556 perform the same fix to a similar check in same function.
16557
16558 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
16559 with the same number are found, just use issue a warning with
16560 grub_dprintf(), as this error has been reported to be non-fatal.
16561
0d818b7e 165622009-03-31 Pavel Roskin <proski@gnu.org>
16563
16564 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
16565 for cross-compilation.
16566
95646d92 165672009-03-30 Robert Millan <rmh@aybabtu.com>
16568
16569 Fix i386-ieee1275 build.
16570
16571 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
16572 Remove declaration.
16573
6a003ed1 165742009-03-30 Pavel Roskin <proski@gnu.org>
16575
16576 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
16577 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
16578 zero-terminated, rely only on the strlen value. Fix comparison
16579 of strings differing in length.
16580
92f33540 165812009-03-30 Robert Millan <rmh@aybabtu.com>
16582
16583 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
16584 checking for abi version. Improve error messages on BIOS to notify
16585 user about `linux16' command.
16586
a8c48fd5 165872009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16588
f968172e 16589 Leak fixes
a8c48fd5 16590
f968172e 16591 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
16592 in case of collision
16593 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 16594
9c323f09 165952009-03-29 Robert Millan <rmh@aybabtu.com>
16596
16597 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
16598 set `vid_mode' accordingly.
16599 (grub_linux_boot): Process `vid_mode' and set video mode.
16600
ae68f423 166012009-03-29 Robert Millan <rmh@aybabtu.com>
16602
16603 * util/grub.d/10_linux.in (linux_entry): New function.
16604 Factorize generation of Linux boot entries.
16605
5709cfc4 166062009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
16607
16608 Make the format of Environment Block plain text. The boot loader
16609 part is not tested well yet.
7dd4a573 16610
5709cfc4 16611 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
16612 (buffer): Removed.
16613 (envblk): Likewise.
16614 (usage): Remove "info" and "clear". Add "unset". Update the
16615 description of "set", as this does not delete variables any
16616 longer.
16617 (create_envblk_file): Complete rewrite.
16618 (open_envblk_file): Likewise.
16619 (cmd_info): Removed.
16620 (cmd_list): Likewise.
16621 (cmd_set): Likewise.
16622 (cmd_clear): Likewise.
16623 (list_variables): New function.
16624 (write_envblk): Likewise.
16625 (set_variables): Likewise.
16626 (unset_variables): Likewise.
16627 (main): Complete rewrite.
16628
16629 * commands/loadenv.c (buffer): Removed.
16630 (envblk): Likewise.
16631 (open_envblk_file): New function.
16632 (read_envblk_file): Complete rewrite.
16633 (grub_cmd_load_env): Likewise.
16634 (grub_cmd_list_env): Likewise.
16635 (struct blocklist): New struct.
16636 (free_blocklists): New function.
16637 (check_blocklists): Likewise.
16638 (write_blocklists): Likewise.
16639 (grub_cmd_save_env): Complete rewrite.
16640
16641 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
16642 a plain text signature.
16643 (GRUB_ENVBLK_MAXLEN): Removed.
16644 (struct grub_envblk): Complete rewrite.
16645 (grub_envblk_find): Removed.
16646 (grub_envblk_insert): Likewise.
16647 (grub_envblk_open): New prototype.
16648 (grub_envblk_set): Likewise.
16649 (grub_envblk_delete): Put const to VALUE.
16650 (grub_envblk_iterate): Put const to NAME and VALUE.
16651 (grub_envblk_close): New prototype.
16652 (grub_envblk_buffer): New inline function.
16653 (grub_envblk_size): Likewise.
16654
16655 * lib/envblk.c: Include grub/mm.h.
16656 (grub_env_find): Removed.
16657 (grub_envblk_open): New function.
16658 (grub_envblk_close): Likewise.
16659 (escaped_value_len): Likewise.
16660 (find_next_line): Likewise.
16661 (grub_envblk_insert): Removed.
16662 (grub_envblk_set): New function.
16663 (grub_envblk_delete): Complete rewrite.
16664 (grub_envblk_iterate): Likewise.
16665
a9368fd3 166662009-03-28 Robert Millan <rmh@aybabtu.com>
16667
16668 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
16669 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
16670 variables. Use 16-bit loader.
16671 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
16672 loader.
16673 * kern/i386/loader.S (grub_linux_boot): Rename to ...
16674 (grub_linux16_boot): ... this. Update all users.
16675 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
16676 (grub_linux_boot): ... this. Update all users.
16677
16678 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
16679 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
16680 commands to `linux16' and `initrd16'.
16681 (GRUB_MOD_FINI(linux)): Rename to ...
16682 (GRUB_MOD_FINI(linux16)): ... this.
16683
e4dd5a7e 166842009-03-24 Pavel Roskin <proski@gnu.org>
16685
16686 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
16687 not just for compilation.
16688
c04d6e05 166892009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
16690
16691 Move multiboot helper out of kernel
16692
16693 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
16694 `loader/i386/multiboot_helper.S'.
16695 * conf/i386-coreboot.rmk: Likewise
16696 * conf/i386-ieee1275.rmk: Likewise
16697
16698 * kern/i386/loader.S: Move multiboot helpers from here...
16699 * loader/i386/multiboot_helper.S: ...moved here
16700 * include/grub/i386/loader.h: Move declarations of multiboot
16701 helpers from here...
16702 * include/grub/i386/multiboot.h: ...moved here
16703 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
16704
42a5b3fc 167052009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
16706
16707 * kern/env.c (grub_env_context_open): Added an argument to specify
16708 whether a new context inherits exported variables from current
16709 one. This is useful when making a sandbox to interpret a config
16710 file.
16711 All callers updated.
16712
16713 * include/grub/env.h (grub_env_context_open): Updated the prototype.
16714
b28bbc4e 167152009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
16716
16717 * kern/env.c (grub_env_context_close): Fix memory leaks.
16718
f04f02e4 167192009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
16720
16721 * normal/main.c (grub_normal_execute): Added an argument
16722 BATCH to specify if an interactive interface should be provided
16723 after reading a config file.
16724 All callers updated.
16725 (read_command_list): Prevent being executed twice.
16726 (read_fs_list): Likewise.
16727
42a5b3fc 16728 * include/grub/normal.h (grub_normal_execute): Updated the
16729 prototype.
f04f02e4 16730
41473ac2 167312009-03-22 Pavel Roskin <proski@gno.org>
16732
fbc00b0c 16733 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
16734 _start.
16735 * kern/i386/pc/startup.S: Likewise.
16736 * kern/i386/efi/startup.S: Likewise.
16737 * kern/i386/ieee1275/startup.S: Likewise.
16738 * kern/i386/coreboot/startup.S: Likewise.
16739 * kern/x86_64/efi/startup.S: Likewise.
16740
41473ac2 16741 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
16742 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
16743 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
16744
2274cc8f 167452009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 Bugfixes in multiboot for bugs uncovered by solaris kernel.
16748
16749 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
16750 limit detection.
16751 Use vaddr of correct segment for entry_point.
16752
b1b797cb 167532009-03-21 Bean <bean123ch@gmail.com>
16754
16755 * commands/blocklist.c: Add include file <grub/command.h>, remove
16756 <grub/normal.h> and <grub/arg.h>.
16757 (grub_cmd_blocklist): Use the new command interface.
16758 (GRUB_MOD_INIT): Likewise.
16759 (GRUB_MOD_FINI): Likewise.
16760 * commands/boot.c: Likewise.
16761 * commands/cat.c: Likewise.
16762 * commands/cmp.c: Likewise.
16763 * commands/configfile.c: Likewise.
16764 * commands/crc.c: Likewise.
16765 * commands/echo.c: Likewise.
16766 * commands/halt.c: Likewise.
16767 * commands/handler.c: Likewise.
16768 * commands/hdparm.c: Likewise.
16769 * commands/help.c: Likewise.
16770 * commands/hexdump.c: Likewise.
16771 * commands/loadenv.c: Likewise.
16772 * commands/ls.c: Likewise.
16773 * commands/lsmmap.c: Likewise.
16774 * commands/lspci.c: Likewise.
16775 * commands/loadenv.c: Likewise.
16776 * commands/read.c: Likewise.
16777 * commands/reboot.c: Likewise.
16778 * commands/search.c: Likewise.
16779 * commands/sleep.c: Likewise.
16780 * commands/test.c: Likewise.
16781 * commands/usbtest.c: Likewise.
16782 * commands/videotest.c: Likewise.
16783 * commands/i386/cpuid.c: Likewise.
16784 * commands/i386/pc/halt.c: Likewise.
16785 * commands/i386/pc/play.c: Likewise.
16786 * commands/i386/pc/pxecmd.c: Likewise.
16787 * commands/i386/pc/vbeinfo.c: Likewise.
16788 * commands/i386/pc/vbetest.c: Likewise.
16789 * commands/ieee1275/suspend.c: Likewise.
16790 * disk/loopback.c: Likewise.
16791 * font/font_cmd.c: Likewise.
16792 * hello/hello.c: Likewise.
16793 * loader/efi/appleloader.c: Likewise.
16794 * loader/efi/chainloader.c: Likewise.
16795 * loader/i386/bsd.c: Likewise.
16796 * loader/i386/efi/linux.c: Likewise.
16797 * loader/i386/ieee1275/linux.c: Likewise.
16798 * loader/i386/linux.c: Likewise.
16799 * loader/i386/pc/chainloader.c: Likewise.
16800 * loader/i386/pc/linux.c: Likewise.
16801 * loader/powerpc/ieee1275/linux.c: Likewise.
16802 * loader/multiboot_loader.c: Likewise.
16803 * term/gfxterm.c: Likewise.
16804 * term/i386/pc/serial.c: Likewise.
16805 * term/terminfo.c: Likewise.
16806
16807 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
16808 * term/i386/pc/vga.c: Likewise.
16809 * video/readers/jpeg.c: Likewise.
16810 * video/readers/png.c: Likewise.
16811 * video/readers/tga.c: Likewise.
16812
16813 * util/grub-fstest (cmd_loopback): Removed.
16814 (cmd_blocklist): Likewise.
16815 (cmd_ls): Likewise.
16816 (grub_register_command): Likewise.
16817 (grub_unregister_command): Likewise.
16818 (execute_command): Use grub_command_find to locate command and execute
16819 it.
16820
16821 * include/grub/efi/chainloader.h: Removed.
16822 * loader/efi/chainloader_normal.c: Likewise.
16823 * loader/i386/bsd_normal.c: Likewise.
16824 * loader/i386/pc/chainloader_normal.c: Likewise.
16825 * loader/i386/pc/multiboot_normal.c: Likewise.
16826 * loader/linux_normal.c: Likewise.
16827 * loader/multiboot_loader_normal.c: Likewise.
16828 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
16829
16830 * gencmdlist.sh: Scan new registration command grub_register_extcmd
16831 and grub_register_command_p1.
16832
16833 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
16834 kern/command.c, lib/arg.c and commands/extcmd.c.
16835 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
16836 (minicmd_mod_SOURCES): New variable.
16837 (minicmd_mod_CFLAGS): Likewise.
16838 (minicmd_mod_LDFLAGS): Likewise.
16839 (extcmd_mod_SOURCES): Likewise.
16840 (extcmd_mod_CFLAGS): Likewise.
16841 (extcmd_mod_LDFLAGS): Likewise.
16842 (boot_mod_SOURCES): Removed.
16843 (boot_mod_CFLAGS): Likewise.
16844 (boot_mod_LDFLAGS): Likewise.
16845
16846 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
16847 kern/corecmd.c.
16848 (kernel_img_HEADERS): Add command.h.
16849 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
16850 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
16851 and lib/arg.c.
16852 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
16853 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
16854 remove the corresponding normal mode command.
16855 (normal_mod_SOURCES): Remove normal/arg.c.
16856 * conf/i386-coreboot.rmk: Likewise.
16857 * conf/i386-efi.rmk: Likewise.
16858 * conf/i386-ieee1275.rmk: Likewise.
16859 * conf/powerpc-ieee1275.rmk: Likewise.
16860 * conf/x86_64-efi.rmk: Likewise.
16861
16862 * include/grub/arg.h: Move from here ...
16863 * include/grub/lib/arg.h: ... to here.
16864
16865 * normal/arg.c: Move from here ...
16866 * lib/arg.c: ... to here.
16867
16868 * commands/extcmd.c: New file.
16869 * commands/minicmd.c: Likewise.
16870 * include/grub/command.h: Likewise.
16871 * include/grub/extcmd.h: Likewise.
16872 * kern/command.c: Likewise.
16873 * kern/corecmd.c: Likewise.
16874
16875 * kern/list.c (grub_list_iterate): Return int instead of void.
16876 (grub_list_insert): New function.
16877 (grub_prio_list_insert): Likewise.
16878
16879 * kern/rescue.c (grub_rescue_command): Removed.
16880 (grub_rescue_command_list): Likewise.
16881 (grub_rescue_register_command): Likewise.
16882 (grub_rescue_unregister_command): Likewise.
16883 (grub_rescue_cmd_boot): Move to minicmd.c
16884 (grub_rescue_cmd_help): Likewise.
16885 (grub_rescue_cmd_info): Likewise.
16886 (grub_rescue_cmd_boot): Likewise.
16887 (grub_rescue_cmd_testload): Likewise.
16888 (grub_rescue_cmd_dump): Likewise.
16889 (grub_rescue_cmd_rmmod): Likewise.
16890 (grub_rescue_cmd_lsmod): Likewise.
16891 (grub_rescue_cmd_exit): Likewise.
16892 (grub_rescue_print_devices): Moved to corecmd.c.
16893 (grub_rescue_print_files): Likewise.
16894 (grub_rescue_cmd_ls): Likewise.
16895 (grub_rescue_cmd_insmod): Likewise.
16896 (grub_rescue_cmd_set): Likewise.
16897 (grub_rescue_cmd_unset): Likewise.
7d074e3c 16898 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 16899 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 16900 commands, remove grub_rescue_register_command calls.
b1b797cb 16901
7d074e3c 16902 * normal/command.c (grub_register_command): Removed.
b1b797cb 16903 (grub_unregister_command): Likewise.
16904 (grub_command_find): Likewise.
16905 (grub_iterate_commands): Likewise.
16906 (rescue_command): Likewise.
16907 (export_command): Moved to corecmd.c.
16908 (set_command): Removed.
16909 (unset_command): Likewise.
16910 (insmod_command): Likewise.
16911 (rmmod_command): Likewise.
16912 (lsmod_command): Likewise.
16913 (grub_command_init): Likewise.
16914
16915 * normal/completion.c (iterate_command): Use cmd->prio to check for
16916 active command.
16917 (complete_arguments): Use grub_extcmd_t structure to find options.
16918 (grub_normal_do_completion): Change function grub_iterate_commands to
16919 grub_command_iterate.
16920
16921 * normal/execute.c (grub_script_execute_cmd): No need to parse
16922 argument here.
16923
16924 * normal/main.c (grub_dyncmd_dispatcher): New function.
16925 (read_command_list): Register unload commands as dyncmd.
16926 (grub_cmd_normal): Use new command interface, register rescue,
16927 unregister normal at entry, register normal, unregister rescue at exit.
16928
16929 * include/grub/list.h (grub_list_test_t): New type.
16930 (grub_list_iterate): Return int instead of void.
16931 (grub_list_insert): New function.
16932 (GRUB_AS_NAMED_LIST_P): New macro.
16933 (GRUB_AS_PRIO_LIST): Likewise.
16934 (GRUB_AS_PRIO_LIST_P): Likewise.
16935 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
16936 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
16937 (grub_prio_list): New structure.
16938 (grub_prio_list_insert): New function.
16939 (grub_prio_list_remove): New inline function.
16940
16941 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
16942 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
16943 (GRUB_COMMAND_FLAG_MENU): Likewise.
16944 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16945 (GRUB_COMMAND_FLAG_TITLE): Likewise.
16946 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16947 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
16948 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
16949 (grub_command): Likewise.
16950 (grub_register_command): Likewise.
16951 (grub_command_find): Likewise.
16952 (grub_iterate_commands): Likewise.
16953 (grub_command_init): Likewise.
16954 (grub_arg_parse): Likewise.
16955 (grub_arg_show_help): Likewise.
16956
16957 * include/grub/rescue.h (grub_rescue_register_command): Removed.
16958 (grub_rescue_unregister_command): Likewise.
16959
16960 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
16961 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
16962 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
16963
16964 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
16965 grub_rescue_cmd_initrd.
16966 * include/grub/i386/loader.h: Likewise.
16967 * include/grub/x86_64/loader.h: Likewise.
16968
16969 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
16970
1f4147aa 169712009-03-21 Bean <bean123ch@gmail.com>
16972
16973 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
16974 instead of stat in mingw environment.
16975
16976 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
16977
16978 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
16979
16980 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
16981 AC_CONFIG_LINKS.
16982
2156d5ba 169832009-03-21 Bean <bean123ch@gmail.com>
16984
16985 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
16986 out of range error.
16987
177b82ca 169882009-03-18 Michel Dänzer <michel@daenzer.net>
16989
16990 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
16991 checking inode flags for EXT4_EXTENTS_FLAG.
16992
14aad807 169932009-03-18 Robert Millan <rmh@aybabtu.com>
16994
16995 * loader/i386/linux.c: Include `<grub/video.h>' and
16996 `<grub/i386/pc/vbe.h>'..
16997 (grub_linux_setup_video): New function. Loosely based on the EFI one.
16998 (grub_linux32_boot): Attempt to configure video settings with
16999 grub_linux_setup_video().
17000 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
17001 to avoid grub_console_fini() which would step out of graphical mode
17002 unconditionally.
17003
8cf83a27 170042009-03-14 Robert Millan <rmh@aybabtu.com>
17005
17006 Fix build on powerpc.
17007 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
17008
40164e75 170092009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
17010
17011 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
17012 background image command.
17013
c58bc32a 170142009-03-12 Colin D Bennett <colin@gibibit.com>
17015
17016 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
17017 (grub_gfxterm_putchar): Extract pairs of identical calls to
17018 draw_cursor out of conditional blocks.
17019
5415144a 170202009-03-11 Pavel Roskin <proski@gnu.org>
17021
17022 * fs/hfs.c (grub_hfs_strncasecmp): New function.
17023 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
17024
6394042e 170252009-03-11 Robert Millan <rmh@aybabtu.com>
17026
17027 * loader/i386/multiboot_elfxx.c
17028 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
17029
b7b50e5f 170302009-03-11 Felix Zielcke <fzielcke@z-51.de>
17031
17032 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
17033 `kern/handler.c'.
17034
1ca7fc96 170352009-03-11 Robert Millan <rmh@aybabtu.com>
17036
17037 * loader/i386/multiboot.c (code_size): New variable.
17038 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 17039 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 17040 4-byte alignment to MBI and others by increasing
7d074e3c 17041 `boot_loader_name_length' appropriately.
1ca7fc96 17042
17043 * loader/i386/multiboot_elfxx.c
17044 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
17045
a83ea1d2 170462009-03-09 Felix Zielcke <fzielcke@z-51.de>
17047
17048 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
17049 `fs/ext2.c'.
17050
aa9f3bff 170512009-03-08 Robert Millan <rmh@aybabtu.com>
17052
17053 Make loader/i386/linux.c usable on i386-pc again.
17054
17055 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
17056 memory to heap.
17057 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
17058 `#error' stanza.
17059
d8b3b60e 170602009-03-07 Bean <bean123ch@gmail.com>
17061
17062 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
17063 allocation.
17064
b362c9e9 170652009-03-06 Robert Millan <rmh@aybabtu.com>
17066
17067 Fix display issue on terminals with screen size other than 80x25
17068 (e.g. gfxterm with resolution higher than 640x480).
17069
17070 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 17071 position relative to the center of the terminal instead of relying
b362c9e9 17072 on a hardcoded offset.
17073
9304eef1 170742009-03-04 Robert Millan <rmh@aybabtu.com>
17075
17076 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
17077 installed.
17078
17079 * Makefile.in (host_kernel): New variable.
17080 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
17081 scripts instead of just the windows one.
17082 * configure.ac: Initialize and AC_SUBST `host_kernel'.
17083
eabc95fb 170842009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 17085
17086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
17087 `kern/handler.c'.
17088 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17089 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17090 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17092 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17093 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17094
ceb1223c 170952009-03-04 Felix Zielcke <fzielcke@z-51.de>
17096
17097 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
17098 or if there's no space for the disk label and print the partition number on a
17099 invalid magic.
17100
4910684a 171012009-03-04 Felix Zielcke <fzielcke@z-51.de>
17102
17103 * util/misc.c: Include <time.h>.
17104 (grub_millisleep): New function.
17105
7e9ca17a 171062009-03-04 Bean <bean123ch@gmail.com>
17107
17108 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
17109 another option -mno-red-zone.
17110
17111 * commands/handler.c: Change module description.
17112
17113 * kern/handler.c: Add missing space at the end of description line.
17114
17115 * kern/list.c: Likewise.
17116
f501677c 171172009-03-03 Robert Millan <rmh@aybabtu.com>
17118
17119 Move more components to the relocation area, and fix mbi pointer
17120 handling to use the destination rather than the origin (thanks to
17121 Vladimir Serbinenko for spotting).
17122
17123 * loader/i386/multiboot.c (mbi_dest): New variable.
17124 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
17125 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
17126 relocation area.
17127
9902d047 171282009-03-01 Bean <bean123ch@gmail.com>
17129
50fb7002 17130 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 17131 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
17132 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
17133 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
17134
17135 * loader/i386/efi/linux.c (acpi_guid): New variable.
17136 (acpi_guid): Likewise.
17137 (EBDA_SEG_ADDR): New constant.
17138 (LOW_MEM_ADDR): Likewise.
17139 (FAKE_EBDA_SEG): Likewise.
17140 (fake_bios_data): New function.
17141 (grub_linux_boot): Call fake_bios_data.
17142
71b9f361 171432009-03-01 Bean <bean123ch@gmail.com>
17144
17145 * commands/terminal.c: Removed.
17146
17147 * commands/handler.c: New file.
17148
17149 * include/grub/list.h: Likewise.
17150
17151 * include/grub/handler.h: Likewise.
17152
17153 * kern/list.c: Likewise.
17154
17155 * kern/handler.c: Likewise.
17156
17157 * kern/term.h: Include header file <grub/handler.h>.
17158 (grub_term_input): Move next field to the beginning.
17159 (grub_term_output): Likewise.
17160 (grub_term_input_class): New variable.
17161 (grub_term_output_class): Likewise.
17162 (grub_term_register_input): Changed to inline function.
17163 (grub_term_register_output): Likewise.
17164 (grub_term_unregister_input): Likewise.
17165 (grub_term_unregister_output): Likewise.
17166 (grub_term_set_current_input): Likewise.
17167 (grub_term_set_current_output): Likewise.
17168 (grub_term_get_current_input): Likewise.
17169 (grub_term_get_current_output): Likewise.
17170 (grub_term_iterate_input): Removed.
17171 (grub_term_iterate_output): Likewise.
17172
17173 * kern/term.c (grub_term_list_input): Removed.
17174 (grub_term_list_output): Likewise.
17175 (grub_term_input_class): New variable.
17176 (grub_term_output_class): Likewise.
50fb7002 17177 (grub_cur_term_input): Change variable as macro.
71b9f361 17178 (grub_cur_term_output): Likewise.
17179 (grub_term_register_input): Removed.
17180 (grub_term_register_output): Likewise.
17181 (grub_term_unregister_input): Likewise.
17182 (grub_term_unregister_output): Likewise.
17183 (grub_term_set_current_input): Likewise.
17184 (grub_term_set_current_output): Likewise.
17185 (grub_term_iterate_input): Likewise.
17186 (grub_term_iterate_output): Likewise.
17187 (grub_term_get_current_input): Likewise.
17188 (grub_term_get_current_output): Likewise.
17189
17190 * util/grub-editenv.c: Include header file <grub/handler.h>.
17191 (grub_term_get_current_input): Removed.
17192 (grub_term_get_current_output): Likewise.
17193 (grub_term_input_class): New variable.
50fb7002 17194 (grub_term_output_class): Likewise.
71b9f361 17195
17196 * util/grub-fstest.c (grub_term_get_current_input): Removed.
17197 (grub_term_get_current_output): Likewise.
17198 (grub_term_input_class): New variable.
50fb7002 17199 (grub_term_output_class): Likewise.
71b9f361 17200
17201 * util/grub-probe.c (grub_term_get_current_input): Removed.
17202 (grub_term_get_current_output): Likewise.
17203 (grub_term_input_class): New variable.
50fb7002 17204 (grub_term_output_class): Likewise.
71b9f361 17205
17206 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
17207 (grub_term_get_current_output): Likewise.
17208 (grub_term_input_class): New variable.
50fb7002 17209 (grub_term_output_class): Likewise.
71b9f361 17210
17211 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
17212 (terminal_mod_SOURCES): Likewise.
17213 (terminal_mod_CFLAGS): Likewise.
17214 (terminal_mod_LDFLAGS): Likewise.
17215
17216 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
17217 handler.c.
17218 (kernel_img_SOURCES): Add list.c and handler.c.
17219 (kernel_img_HEADERS): Add list.h and handler.h.
17220
17221 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
17222 handler.c.
17223 (kernel_mod_SOURCES): Add list.c and handler.c.
17224 (kernel_mod_HEADERS): Add list.h and handler.h.
17225
17226 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
17227 handler.c.
17228 (kernel_elf_SOURCES): Add list.c and handler.c.
17229 (kernel_elf_HEADERS): Add list.h and handler.h.
17230
17231 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
17232 handler.c.
17233 (kernel_elf_SOURCES): Add list.c and handler.c.
17234 (kernel_elf_HEADERS): Add list.h and handler.h.
17235
17236 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
17237 handler.c.
17238 (kernel_mod_SOURCES): Add list.c and handler.c.
17239 (kernel_mod_HEADERS): Add list.h and handler.h.
17240
17241 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
17242 handler.c.
17243 (kernel_elf_SOURCES): Add list.c and handler.c.
17244 (kernel_elf_HEADERS): Add list.h and handler.h.
17245
8a31787f 172462009-02-27 Robert Millan <rmh@aybabtu.com>
17247
17248 Factorize elf32 / elf64 code in Multiboot loader. This will
17249 prevent it from getting out of sync again.
17250
17251 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
17252 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
17253 grub_multiboot_load_elf64): Move from here ...
17254 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
17255 grub_multiboot_load_elf): ... to here (new file).
17256
51cd3dfc 172572009-02-27 Robert Millan <rmh@aybabtu.com>
17258
17259 * util/grub.d/10_linux.in: Rename "single-user mode" to
17260 "recovery mode".
17261
6e8c9c3a 172622009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
17263
17264 Don't leak in SCSI code.
17265 * disk/scsi.c (grub_scsi_close): free `scsi'.
17266
4b6bf4f9 172672009-02-27 Robert Millan <rmh@aybabtu.com>
17268
17269 * loader/i386/pc/multiboot.c: Move from here ...
17270 * loader/i386/multiboot.c: ... to here. Update all users.
17271
b9413424 172722009-02-27 Robert Millan <rmh@aybabtu.com>
17273
17274 Patch from Alexandre Bique <bique.alexandre@gmail.com>
17275 * util/i386/pc/grub-setup.c (setup): Fix directory path.
17276
50fb7002 172772009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 17278
17279 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
17280 b-tree.
17281
8cc50345 172822009-02-27 Robert Millan <rmh@aybabtu.com>
17283
17284 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
17285 `0x' qualifier as 0 when base is specified as parameter).
17286
6e09b8b7 172872009-02-24 Bean <bean123ch@gmail.com>
17288
17289 * configure.ac: Check for -mcmodel=large in x86_64 target.
17290
17291 * include/grub/efi/api.h (efi_call_10): New macro.
17292 (efi_wrap_10): New function.
17293
17294 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
17295 (GRUB_PE32_REL_BASED_HIGH): Likewise.
17296 (GRUB_PE32_REL_BASED_LOW): Likewise.
17297 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
17298 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
17299 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
17300 (GRUB_PE32_REL_BASED_SECTION): Likewise.
17301 (GRUB_PE32_REL_BASED_REL): Likewise.
17302 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
17303 (GRUB_PE32_REL_BASED_DIR64): Likewise.
17304 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
17305
17306 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
17307 issue.
17308
17309 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
17310 (efi_wrap_10): New function.
17311
17312 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
17313
17314 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
17315 MB/MBP model (NV chipset).
17316 (devdata_devs): Add devpath_5 to the list.
17317
17318 * load/i386/efi/linux.c (video_base): Remove variable.
17319 (RGB_MASK): New macro.
17320 (RGB_MAGIC): Likewise.
17321 (LINE_MIN): Likewise.
17322 (LINE_MAX): Likewise.
17323 (FBTEST_STEP): Likewise.
17324 (FBTEST_COUNT): Likewise.
17325 (fb_list): New variable.
17326 (grub_find_video_card): Remove function.
17327 (find_framebuf): New function.
17328 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
17329 line length.
17330
17331 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
17332 problem for x86_64.
17333
74b21bee 173342009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
17335
17336 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
17337
17338 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
17339 coding tool name.
17340
a455f472 173412009-02-22 Robert Millan <rmh@aybabtu.com>
17342
17343 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
17344 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
17345 in our relocation, instead of using it directly from heap. Also
17346 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
17347
6374daf3 173482009-02-21 Robert Millan <rmh@aybabtu.com>
17349
17350 Implement USB keyboard support (based on patch by Marco Gerards)
17351
17352 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
17353 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
17354 (usb_keyboard_mod_LDFLAGS): New variables.
17355
17356 * term/usb_keyboard.c: New file.
17357
8fa4ea70 173582009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
17359
17360 Corrected wrong declaration
17361
17362 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
17363
353976ac 173642009-02-14 Christian Franke <franke@computer.org>
17365
17366 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
17367 (grub_lspci_iter): Print class code and programming interface byte.
17368
6aa1169b 173692009-02-14 Christian Franke <franke@computer.org>
17370
17371 * gendistlist.sh: Ignore `.svn' directories.
17372
265372ca 173732009-02-14 Felix Zielcke <fzielcke@z-51.de>
17374
17375 * fs/fat.c: Add 2009 to Copyright line.
17376
9ff516f3 173772009-02-14 Christian Franke <franke@computer.org>
17378
17379 * commands/hdparm.c: New file. Provides `hdparm' command
17380 which sends ATA commands via grub_disk_ata_pass_through ().
17381
17382 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
17383
17384 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
17385 and <grub/cpu/io.h> to include/grub/ata.h.
17386 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
17387 (GRUB_CDROM_SECTOR_SIZE): Remove.
17388 (GRUB_ATA_*): Move to include/grub/ata.h.
17389 (GRUB_ATAPI_*): Likewise.
17390 (enum grub_ata_commands): Likewise.
17391 (enum grub_ata_timeout_milliseconds): Likewise.
17392 (struct grub_ata_device): Likewise.
17393 (grub_ata_regset): Likewise.
17394 (grub_ata_regget): Likewise.
17395 (grub_ata_regset2): Likewise.
17396 (grub_ata_regget2): Likewise.
17397 (grub_ata_check_ready): Likewise.
17398 (grub_ata_wait_not_busy): Remove static, exported in
17399 include/grub/ata.h.
17400 (grub_ata_wait_drq): Likewise.
17401 (grub_ata_pio_read): Likewise.
17402
17403 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
17404 function for hdparm.mod.
17405
17406 * include/grub/ata.h: New file, contains declarations from
17407 disk/ata.c.
17408 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
17409
17410 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
17411 (grub_disk_ata_pass_through): New exported variable.
17412
17413 * kern/disk.c (grub_disk_ata_pass_through): New variable.
17414
772e23da 174152009-02-13 Colin D Bennett <colin@gibibit.com>
17416
17417 Support multiple fallback entries, and provide an API to support
17418 executing default+fallback menu entries. Renamed the `terminal' menu
17419 viewer to `text'.
17420
17421 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
17422 variable declaration.
17423 (grub_menu_execute_callback): New structure declaration.
17424 (grub_menu_execute_callback_t): New typedef.
17425 (grub_menu_execute_with_fallback): New function declaration.
17426 (grub_menu_get_entry): Likewise.
17427 (grub_menu_get_timeout): Likewise.
17428 (grub_menu_set_timeout): Likewise.
17429
17430 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
17431
17432 * normal/menu.c (grub_wait_after_message): Moved to
17433 `normal/menu_text.c'.
17434 (draw_border): Likewise.
17435 (print_message): Likewise.
17436 (print_entry): Likewise.
17437 (print_entries): Likewise.
17438 (grub_menu_init_page): Likewise.
17439 (get_entry_number): Likewise.
17440 (print_timeout): Likewise.
17441 (run_menu): Likewise.
17442 (grub_menu_execute_entry): Likewise.
17443 (show_text_menu): Likewise.
17444 (get_and_remove_first_entry_number): New function.
17445 (grub_menu_execute_with_fallback): Likewise.
17446 (get_entry): Renamed to ...
17447 (grub_menu_get_entry): .. this and made it global.
17448 (get_timeout): Renamed to ...
17449 (grub_menu_get_timeout): ... this and made it global.
17450 (set_timeout): Renamed to ...
17451 (grub_menu_set_timeout): ... this and made it global.
17452 (grub_normal_terminal_menu_viewer): Renamed to ...
17453 (grub_normal_text_menu_viewer): ... this.
17454
17455 * normal/menu_text.c: New file. Extracted text-menu-specific code
17456 from normal/menu.c.
17457
17458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
17459 (normal_mod_SOURCES): Likewise.
17460
17461 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17462 (normal_mod_SOURCES): Likewise.
17463
17464 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17465 (normal_mod_SOURCES): Likewise.
17466
17467 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
17468 (normal_mod_SOURCES): Likewise.
17469
17470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17471 (normal_mod_SOURCES): Likewise.
17472
17473 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17474 (normal_mod_SOURCES): Likewise.
17475
17476 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17477 (normal_mod_SOURCES): Likewise.
17478
16ac430e 174792009-02-11 Robert Millan <rmh@aybabtu.com>
17480
17481 * util/grub.d/00_header.in: Update old reference to `font' command.
17482
06ff20fc 174832009-02-10 Felix Zielcke <fzielcke@z-51.de>
17484
17485 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
17486
17487 Based on patch from Javier Martín.
17488
96da9407 174892009-02-09 Felix Zielcke <fzielcke@z-51.de>
17490
17491 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 17492 to avoid false positives with FAT.
96da9407 17493 (grub_fstest_SOURCES): Likewise.
17494 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17495 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17496 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17497 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17498 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17499 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17500
6dca6fe4 175012009-02-09 Felix Zielcke <fzielcke@z-51.de>
17502
06ff20fc 17503 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 17504 bpb.version_specific.fat12_or_fat16.fstype and
17505 bpb.version_specific.fat32.fstype.
17506
2550c62f 175072009-02-08 Robert Millan <rmh@aybabtu.com>
17508
be110b30 17509 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 17510
56978920 175112009-02-08 Robert Millan <rmh@aybabtu.com>
17512
17513 * Makefile.in (host_os, host_cpu): New variables.
17514 (target_os): Remove. Update all users.
17515
d64399b5 175162009-02-08 Marco Gerards <marco@gnu.org>
17517
17518 * Makefile.in (enable_grub_emu_usb): New variable.
17519 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
17520 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
17521 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
17522 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
17523 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
17524 `usbtest.mod' and `usbms.mod'.
17525 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
17526 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
17527 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
17528 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
17529 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
17530 variables.
17531
17532 * disk/usbms.c: New file.
17533
17534 * include/grub/usb.h: Likewise.
17535
17536 * include/grub/usbtrans.h: Likewise.
17537
17538 * include/grub/usbdesc.h: Likewise.
17539
17540 * bus/usb/usbtrans.c: Likewise.
17541
17542 * bus/usb/ohci.c: Likewise.
17543
17544 * bus/usb/uhci.c: Likewise.
17545
17546 * bus/usb/usbhub.c: Likewise.
17547
17548 * bus/usb/usb.c: Likewise.
17549
17550 * commands/usbtest.c: Likewise.
17551
17552 * util/usb.c: Likewise.
50fb7002 17553
d64399b5 17554 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
17555
17556 * configure.ac: Test for libusb presence.
50fb7002 17557
d64399b5 17558 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
17559
2b40d6bb 175602009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
17561
17562 * kern/mm.c: Add more comments.
17563
73a4ce81 175642009-02-08 Robert Millan <rmh@aybabtu.com>
17565
17566 Patch from Javier Martín.
17567 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
17568 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
17569
f821ce59 175702009-02-08 Robert Millan <rmh@aybabtu.com>
17571
17572 * fs/cpio.c: Split tar functionality to ...
17573 * fs/tar.c: ... here (new file). Update all users.
17574
aebfc4b0 175752009-02-07 Robert Millan <rmh@aybabtu.com>
17576
17577 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
17578 backward-incompatible features.
17579
17580 Based on patch from Javier Martín, with some adjustments.
17581
50fb7002 175822009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 17583
17584 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
17585
0bb5115e 175862009-02-07 Robert Millan <rmh@aybabtu.com>
17587
17588 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
17589 position of `disk/lvm.c' to ensure grub_init_all() always picks it
17590 after the RAID stuff.
17591
38a0f8e7 175922009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
17593
50fb7002 17594 Fixes problem when running vbetest command as reported by
38a0f8e7 17595 Vladimir Serbinenko <phcoder@gmail.com>.
17596
17597 * (grub_vbe_set_video_mode): Fixed problem with text modes.
17598
3143cc1c 175992009-02-04 Felix Zielcke <fzielcke@z-51.de>
17600
17601 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
17602 /dev/md/NpN style mdraid devices.
17603
9cba6fce 176042009-02-03 Felix Zielcke <fzielcke@z-51.de>
17605
17606 * util/unifont2pff.rb: Remove.
17607
e507a2c1 176082009-02-03 Felix Zielcke <fzielcke@z-51.de>
17609
17610 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
17611 `#'.
17612
d2c2b4cd 176132009-02-03 Felix Zielcke <fzielcke@z-51.de>
17614
17615 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
17616 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17617 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17618 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17620 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17621 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17622
b4315fb0 176232009-02-02 Christian Franke <franke@computer.org>
17624
17625 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
17626
de3aa260 176272009-02-01 Felix Zielcke <fzielcke@z-51.de>
17628
7c3ff286 17629 * INSTALL: Note that we now require at least autoconf 2.59 and
17630 that LZO is optional.
de3aa260 17631
825a182b 176322009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
17633
17634 Base on patch on bug #24154 created by Tomas Tintera
17635 <trosos@seznam.cz>.
17636
17637 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
17638
a69ef770 176392009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
17640
7c3ff286 17641 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 17642 <bero@arklinux.org>.
17643
17644 * normal/parser.y (script_init): Add missing semicolon.
17645
6fa42fa6 176462009-01-31 Colin D Bennett <colin@gibibit.com>
17647
7c3ff286 17648 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 17649 (free_menu_entry_classes): Added.
17650 (grub_normal_menu_addentry): Added class property handling.
17651 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
17652 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
17653
17654 * normal/menu_viewer.c: New file.
17655
17656 * normal/menu.c (run_menu_entry): Renamed to ...
17657 (grub_menu_execute_entry): ... this and made it as global.
17658 (grub_menu_run): Renamed to ...
17659 (show_text_menu): ... this and made it local.
17660 (show_text_menu): Adapt to new function names.
17661 (grub_normal_terminal_menu_viewer): New global variable.
17662
17663 * include/grub/menu.h: New file.
17664
17665 * include/grub/menu_viewer.h: New file.
17666
17667 * include/grub/normal.h: Added include to grub/menu.h.
17668 (grub_menu_entry): Moved to include/grub/menu.h.
17669 (grub_menu_entry_t): Likewise.
17670 (grub_menu): Likewise.
17671 (grub_menu_t): Likewise.
17672 (grub_normal_terminal_menu_viewer): Added.
17673 (grub_menu_execute_entry): Likewise.
17674 (grub_menu_run): Removed.
17675
17676 * DISTLIST: Added include/grub/menu.h.
17677 Added include/grub/menu_viewer.h.
17678 Added normal/menu_viewer.c.
17679
176802009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
17681
17682 * normal/execute.c (grub_script_execute_menuentry): Changed to use
17683 arglist for menutitle arguments.
17684
17685 * normal/main.c (grub_normal_menu_addentry): Likewise.
17686
17687 * normal/parser.y (menuentry): Likewise.
17688
17689 * normal/script.c (grub_script_create_cmdmenu): Likewise.
17690
17691 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
17692 (grub_script_create_cmdmenu): Likewise.
17693
17694 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
17695
17696 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
17697 changes.
17698
17699 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
17700
17701 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
17702
17703 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
17704
17705 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
17706
17707 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
17708
17709 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
17710
56192c23 177112009-01-30 Christian Franke <franke@computer.org>
17712
17713 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
17714 in option help text.
17715
d72521b3 177162009-01-27 Pavel Roskin <proski@gnu.org>
17717
17718 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
17719
994b5e84 177202009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
17721
17722 * commands/lsmmap.c: Add include to grub/machine/memory.h.
17723
17724 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
17725
17726 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
17727 unregister function.
17728
6a7eab2c 177292009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
17730
17731 * disk/scsi.c (grub_scsi_read): Fix sign problem.
17732
17733 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
17734
17735 * util/grub-mkfont.c (usage): Fix typo.
17736
17737 * util/elf/grub-mkimage.c (load_modules): Fix warning.
17738
1806b56e 177392009-01-26 Daniel Mierswa <impulze@impulze.org>
17740
3fb18f09 17741 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
17742
336e1fb9 17743 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
17744
1806b56e 17745 * kern/misc.c (grub_strcasecmp): New function.
17746 (grub_strcasecmp): Use grub_size_t instead of int for length.
17747 Fix return value.
17748 * include/grub/misc.h: Update function prototypes.
17749
580b2a0f 177502009-01-26 Robert Millan <rmh@aybabtu.com>
17751
17752 * configure.ac: Fix cross-compilation check.
ef257b36 17753
d31c24f1 177542009-01-22 Christian Franke <franke@computer.org>
17755
17756 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
17757 (precision) digit string. Allow `.format2' without `format1' (width).
17758 Limit input chars for `%s' output to `format2' if specified. This is
17759 compatible with standard printf ().
17760
3138b44c 177612009-01-22 Christian Franke <franke@computer.org>
17762
17763 * disk/ata.c (grub_ata_wait_status): Replace by ...
17764 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
17765 other status bits may be invalid while BSY is asserted.
17766 (grub_ata_check_ready): New function.
17767 (grub_ata_cmd): Removed.
17768 (grub_ata_wait_drq): New function.
17769 (grub_ata_strncpy): Remove inline.
17770 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
17771 and error check now done by grub_ata_wait_drq ().
17772 (grub_ata_pio_write): Likewise.
17773 (grub_atapi_identify): Set DEV before check for !BSY. Use
17774 grub_ata_wait_drq () to wait for data.
17775 (grub_ata_device_initialize): Add status register check to
17776 detect missing SATA slave devices. Add debug messages.
17777 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
17778 (grub_atapi_packet): Set DEV before check for !BSY. Replace
17779 transfer loop by grub_ata_pio_write ().
17780 (grub_ata_identify): Set DEV before check for !BSY. Use
17781 grub_ata_wait_drq () to wait for data.
ef257b36 17782 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 17783 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
17784 read/write in one loop. Fix invalid command on write. Fix incomplete
17785 command on (size % batch) == 0. Add missing error check after write of
17786 last block. Add debug messages.
17787 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
17788
59a64ef6 177892009-01-19 Christian Franke <franke@computer.org>
17790
17791 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
17792 (GRUB_ATAPI_IREASON_*): Likewise.
17793 (grub_ata_pio_write): Fix timeout error return.
17794 (grub_atapi_identify): Add grub_ata_wait () after cmd.
17795 (grub_atapi_wait_drq): New function.
17796 (grub_atapi_packet): New parameter `size'.
17797 Use grub_atapi_wait_drq () and direct write instead of
17798 grub_ata_pio_write ().
17799 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
17800 reads the number of bytes requested by the device for each DRQ
17801 assertion.
17802 (grub_atapi_write): Remove old implementation, return not
17803 implemented instead.
17804
1cfe20b3 178052009-01-19 Christian Franke <franke@computer.org>
17806
17807 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
17808 of 512 to calculate data size.
17809 (grub_scsi_read12): Likewise.
17810 (grub_scsi_write10): Likewise.
17811 (grub_scsi_write12): Likewise.
17812 (grub_scsi_read): Adjust size according to blocksize.
17813 Add checks for invalid blocksize and unaligned transfer.
17814
bee5fe5d 178152009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
17816
17817 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
17818
ef257b36 17819 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 17820 width glyphs.
17821
3e643f8c 178222009-01-19 Robert Millan <rmh@aybabtu.com>
17823
17824 * config.guess: Update to latest version from config git.
17825 * config.sub: Likewise.
17826
4fa80998 178272009-01-17 Felix Zielcke <fzielcke@z-51.de>
17828
17829 * Makefile.in: Change font compilation to use new grub-mkfont instead
17830 of java version.
17831
17832 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
17833 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
17834 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17835 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
17836 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
17837 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
17838 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
17839 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
17840 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
17841
7086085b 178422009-01-16 Christian Franke <franke@computer.org>
17843
17844 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
17845 (enum grub_ata_timeout_milliseconds): New enum.
17846 (grub_ata_wait_status): Add parameter milliseconds.
17847 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
17848 recovery from timed-out commands.
17849 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
17850 return grub_errno instead of REG_ERROR.
17851 (grub_ata_pio_write): Add parameter milliseconds.
17852 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
17853 Pass milliseconds to grub_ata_wait_status () and
17854 grub_ata_pio_read ().
17855 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
17856 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
17857 grub_ata_wait_status (). Fix IDENTIFY timeout check.
17858 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
17859 It is not suitable for device detection, because DEV bit is ignored,
17860 the command may run too long, and not all devices set the signature
17861 properly.
17862 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
17863 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
17864 Fix device selection, DEV bit must be set first to address the registers
17865 of the correct device.
17866 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
17867 grub_ata_pio_read/write ().
17868 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
17869 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
17870
4a412913 178712009-01-13 Carles Pina i Estany <carles@pina.cat>
17872
17873 * util/grub-editenv.c (main): Use fseeko(), not fseek().
17874
7795c55e 178752009-01-13 Bean <bean123ch@gmail.com>
d913988c 17876
17877 * util/grub-mkfont.c (write_font): forget to remove some debug code.
17878
7795c55e 178792009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 17880
17881 * Makefile.in: (enable_grub_mkfont): New variable.
17882 (freetype_cflags): Likewise.
17883 (freetype_libs): Likewise.
17884
17885 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
17886 (grub_mkfont_SOURCES): New variable.
17887 (grub_mkfont_CFLAGS): Likewise.
17888 (grub_mkfont_LDFLAGS): Likewise.
17889
17890 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
17891 library if `--enable-grub-mkfont' is requested.
17892 (enable_grub_mkfont): New variable.
17893 (freetype_cflags): Likewise.
17894 (freetype_libs): Likewise.
17895
17896 * util/grub-mkfont.c: New file.
17897
093af1fe 178982009-01-12 Christian Franke <franke@computer.org>
17899
17900 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
17901 mode check. Fix setting of compat_use[].
17902
f36cc108 179032009-01-10 Robert Millan <rmh@aybabtu.com>
17904
17905 Update a few copyright years which we forgot to do in 2008 (only for
17906 files whose changes made in 2008 were copyright-significant)
17907
17908 * Makefile.in: Add 2008 to Copyright line.
17909 * disk/ieee1275/ofdisk.c: Likewise.
17910 * disk/efi/efidisk.c: Likewise.
17911 * kern/dl.c: Likewise.
17912 * kern/sparc64/ieee1275/init.c: Likewise.
17913 * kern/mm.c: Likewise.
17914 * kern/efi/mm.c: Likewise.
17915 * boot/i386/pc/boot.S: Likewise.
17916 * genfslist.sh: Likewise.
17917 * fs/iso9660.c: Likewise.
17918 * fs/hfs.c: Likewise.
17919 * fs/jfs.c: Likewise.
17920 * fs/minix.c: Likewise.
17921 * fs/ufs.c: Likewise.
17922 * gensymlist.sh.in: Likewise.
17923 * genkernsyms.sh.in: Likewise.
17924 * include/grub/misc.h: Likewise.
17925 * include/grub/types.h: Likewise.
17926 * include/grub/symbol.h: Likewise.
17927 * include/grub/elf.h: Likewise.
17928 * include/grub/kernel.h: Likewise.
17929 * include/grub/disk.h: Likewise.
17930 * include/grub/dl.h: Likewise.
17931 * include/grub/i386/linux.h: Likewise.
17932 * include/grub/i386/pc/biosdisk.h: Likewise.
17933 * include/grub/efi/api.h: Likewise.
17934 * include/grub/efi/pe32.h: Likewise.
17935 * include/grub/util/misc.h: Likewise.
17936 * normal/execute.c: Likewise.
17937 * normal/arg.c: Likewise.
17938 * normal/completion.c: Likewise.
17939 * normal/lexer.c: Likewise.
17940 * normal/parser.y: Likewise.
17941 * normal/misc.c: Likewise.
17942 * commands/i386/pc/vbeinfo.c: Likewise.
17943 * commands/hexdump.c: Likewise.
17944 * commands/terminal.c: Likewise.
17945 * commands/ls.c: Likewise.
17946 * commands/help.c: Likewise.
17947 * partmap/pc.c: Likewise.
17948 * loader/efi/chainloader.c: Likewise.
17949 * loader/multiboot_loader.c: Likewise.
17950 * loader/i386/pc/multiboot2.c: Likewise.
17951 * term/efi/console.c: Likewise.
17952 * term/i386/pc/serial.c: Likewise.
17953 * util/lvm.c: Likewise.
17954 * util/console.c: Likewise.
17955 * util/i386/efi/grub-mkimage.c: Likewise.
17956 * util/raid.c: Likewise.
17957
7f02114b 179582009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
17959
17960 * commands/videotest.c: Removed include to grub/machine/memory.h.
17961
17962 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
17963 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
17964 (video_mod_SOURCES): Removed.
17965 (video_mod_CFLAGS): Likewise.
17966 (video_mod_LDFLAGS): Likewise.
17967 (gfxterm_mod_SOURCES): Likewise.
17968 (gfxterm_mod_CFLAGS): Likewise.
17969 (gfxterm_mod_LDFLAGS): Likewise.
17970 (videotest_mod_SOURCES): Likewise.
17971 (videotest_mod_CFLAGS): Likewise.
17972 (videotest_mod_LDFLAGS): Likewise.
17973 (bitmap_mod_SOURCES): Likewise.
17974 (bitmap_mod_CFLAGS): Likewise.
17975 (bitmap_mod_LDFLAGS): Likewise.
17976 (tga_mod_SOURCES): Likewise.
17977 (tga_mod_CFLAGS): Likewise.
17978 (tga_mod_LDFLAGS): Likewise.
17979 (jpeg_mod_SOURCES): Likewise.
17980 (jpeg_mod_CFLAGS): Likewise.
17981 (jpeg_mod_LDFLAGS): Likewise.
17982 (png_mod_SOURCES): Likewise.
17983 (png_mod_CFLAGS): Likewise.
17984 (png_mod_LDFLAGS): Likewise.
17985
17986 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
17987 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
17988 (video_mod_SOURCES): Added.
17989 (video_mod_CFLAGS): Likewise.
17990 (video_mod_LDFLAGS): Likewise.
17991 (videotest_mod_SOURCES): Likewise.
17992 (videotest_mod_CFLAGS): Likewise.
17993 (videotest_mod_LDFLAGS): Likewise.
17994 (bitmap_mod_SOURCES): Likewise.
17995 (bitmap_mod_CFLAGS): Likewise.
17996 (bitmap_mod_LDFLAGS): Likewise.
17997 (tga_mod_SOURCES): Likewise.
17998 (tga_mod_CFLAGS): Likewise.
17999 (tga_mod_LDFLAGS): Likewise.
18000 (jpeg_mod_SOURCES): Likewise.
18001 (jpeg_mod_CFLAGS): Likewise.
18002 (jpeg_mod_LDFLAGS): Likewise.
18003 (png_mod_SOURCES): Likewise.
18004 (png_mod_CFLAGS): Likewise.
18005 (png_mod_LDFLAGS): Likewise.
18006 (gfxterm_mod_SOURCES): Likewise.
18007 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 18008 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 18009
18010 * term/gfxterm.c: Removed include to grub/machine/memory.h,
18011 grub/machine/console.h.
18012
644fff97 180132009-01-04 Jerone Young <jerone@gmail.com>
18014
18015 Make on screen instructions clearer
18016
18017 Based on patch created by Jidanni <jidanni@jidanni.org>
18018
18019 * normal/menu.c: print clearer instructions on the screen
18020
1e901a75 180212009-01-02 Colin D Bennett <colin@gibibit.com>
18022
18023 New font engine.
34c44600 18024
1e901a75 18025 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
18026 build system and fixed gfxterm.c to work with different sized fonts.
18027
18028 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 18029
1e901a75 18030 * configure: Re-generated.
34c44600 18031
1e901a75 18032 * DISTLIST: Removed font/manager.c.
18033 Added font/font.c.
18034 Added font/font_cmd.c.
34c44600 18035
1e901a75 18036 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
18037 compilation.
34c44600 18038
1e901a75 18039 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 18040
18041 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 18042
18043 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 18044
1e901a75 18045 * normal/menu.c: Likewise.
34c44600 18046
1e901a75 18047 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
18048 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 18049
1e901a75 18050 * include/grub/font.h: Replaced with new file.
34c44600 18051
1e901a75 18052 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
18053 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
18054 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
18055 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
18056 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 18057 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 18058 fg_red, fg_green, fg_blue, fg_alpha.
18059 (grub_video_adapter): Removed blit_glyph.
34c44600 18060 (grub_video_blit_glyph): Removed.
18061
1e901a75 18062 * font/manager.c: Removed file.
34c44600 18063
18064 * font/font.c: New file.
18065
1e901a75 18066 * font/font_cmd.c: Likewise.
34c44600 18067
1e901a75 18068 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 18069
1e901a75 18070 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
18071 (grub_video_vbe_map_rgba): Likewise.
18072 (grub_video_vbe_unmap_color_int): Likewise.
18073 (grub_video_vbe_blit_glyph): Removed.
18074 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 18075
1e901a75 18076 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
18077 (get_pixel): Likewise.
34c44600 18078 (set_pixel): Likewise.
18079
1e901a75 18080 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 18081
1e901a75 18082 * term/gfxterm.c: Adapted to new font engine.
34c44600 18083
1e901a75 18084 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 18085
1e901a75 18086 * term/i386/pc/vga.c: Likewise.
34c44600 18087
1e901a75 18088 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 18089
1e901a75 18090 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 18091
1e901a75 18092 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 18093
1e901a75 18094 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 18095
1e901a75 18096 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 18097
1e901a75 18098 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 18099
1e901a75 18100 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 18101
1e901a75 18102 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 18103
1e901a75 18104 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
18105
18106 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 18107
1e901a75 18108 * util/grub-mkconfig_lib.in: Changed font extension.
18109
278922e8 181102008-12-28 Felix Zielcke <fzielcke@z-51.de>
18111
18112 * util/getroot.c (grub_util_get_grub_dev): Add support for
18113 /dev/md/dNNpNN style partitionable mdraid devices.
18114
3ced05cf 181152008-12-12 Alex Smith <alex@alex-smith.me.uk>
18116
18117 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
18118 at a time limit of the PXE TFTP API correctly.
18119 (grub_pxefs_close): Likewise.
18120
7fd0ee30 181212008-11-29 Robert Millan <rmh@aybabtu.com>
18122
34c44600 18123 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 18124 grub_ata_device_initialize() calls.
18125
34c44600 181262008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 18127
18128 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
18129 iteration failed.
18130 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
18131
89313780 181322008-11-28 Robert Millan <rmh@aybabtu.com>
18133
18134 Fix build on powerpc-ieee1275. Based on patch created by
18135 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
18136 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
18137 `kern/ieee1275/mmap.c'.
18138 * include/grub/powerpc/ieee1275/memory.h: New file.
18139
15257703 18140 Provide grub-install on coreboot.
18141 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
18142 (grub_install_SOURCES): New variable.
18143 * util/i386/pc/grub-install.in: Add a few condition checks to make it
18144 usable on coreboot.
18145
9fc5388a 181462008-11-25 Felix Zielcke <fzielcke@z-51.de>
18147
18148 * util/grub-fstest.c (grub_term_get_current_input): Change return type
18149 to `grub_term_input_t'.
18150 (grub_term_get_current_output): Change return type to
18151 `grub_term_output_t'.
18152
bc3a2f31 181532008-11-22 Robert Millan <rmh@aybabtu.com>
18154
34c44600 18155 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 18156 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
18157 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
18158 grub_vga_text_cls().
18159
80fc88f2 18160 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 18161 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 18162
cbf36fd3 18163 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
18164 to 0x200000 (avoids trouble with some OFW implementations, and matches
18165 with the one in Yaboot).
18166 Reported by Manoel Abranches
18167
73e8e268 181682008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 18169
18170 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
18171 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
18172
73e8e268 18173 * util/grub-mkconfig_lib.in (grub_warn): New function.
18174 (convert_system_path_to_grub_path): Use grub_warn() when issuing
18175 warnings, to obtain consistent formatting.
18176 * util/grub.d/00_header.in: Likewise.
18177 * util/update-grub_lib.in: Likewise.
18178
e94045a1 18179 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 18180 Move comment text to `#error' stanza.
e94045a1 18181
79d29fd7 18182 Harmonize ieee1275's grub_available_iterate() with the generic
18183 grub_machine_mmap_iterate() interface (fixes a recently-introduced
18184 build problem on i386-ieee1275):
18185 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
18186 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
18187 parameter `type'. Update all users of this function.
18188 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18189 `kern/ieee1275/mmap.c'.
18190 * kern/ieee1275/init.c
18191 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
18192 with ...
18193 (grub_machine_mmap_iterate): ... this.
18194 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
18195 return type to `grub_err_t'. Update all implementations of this
18196 function prototype.
18197 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
18198 Likewise.
18199
60d6b16e 18200 Add `lsmmap' command (lists firmware-provided memory map):
18201 * commands/lsmmap.c: New file.
18202 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
18203 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
18204 variables.
18205 * conf/powerpc-ieee1275.rmk: Likewise.
18206 * conf/i386-coreboot.rmk: Likewise.
18207 * conf/i386-ieee1275.rmk: Likewise.
18208
ebaaf49b 182092008-11-19 Robert Millan <rmh@aybabtu.com>
18210
18211 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 18212 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
18213 constraints to initrd allocation (based on code from
18214 loader/i386/pc/linux.c). Without them, initrd was allocated too high
18215 for Linux to find it.
ebaaf49b 18216
dfab719f 182172008-11-14 Robert Millan <rmh@aybabtu.com>
18218
18219 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
18220 order to cope with duplicate slashes.
18221
10fc3eb9 182222008-11-14 Robert Millan <rmh@aybabtu.com>
18223
18224 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
18225 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
18226 don't want to mess with lower memory, because it is used in the Linux
18227 loader.
18228
18229 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 18230 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 18231 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
18232 is in our heap (probably as a result of it being corrupted during
2f2a3442 18233 decompression). Add #error instance with comment to explain why this
18234 loader isn't currently usable on PC/BIOS.
10fc3eb9 18235
e2e07847 182362008-11-14 Robert Millan <rmh@aybabtu.com>
18237
18238 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 18239 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 18240
fe8e8d69 182412008-11-12 Robert Millan <rmh@aybabtu.com>
18242
18243 Make loader/i386/linux.c buildable on i386-pc (although disabled).
18244
18245 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
18246 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
18247 from here ...
18248 * include/grub/i386/pc/memory.h: ... to here.
18249
976b07d0 182502008-11-12 Robert Millan <rmh@aybabtu.com>
18251
18252 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
18253 split).
18254
18255 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
18256 (grub_console_cur_color, grub_console_real_putchar)
18257 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
18258 (grub_console_setcolorstate, grub_console_setcolor)
18259 (grub_console_getcolor): Move from here ...
18260 * include/grub/i386/vga_common.h: ... to here (new file).
18261
18262 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
18263 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
18264 `<grub/i386/io.h>'.
18265 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
18266 `<grub/i386/vga_common.h>'.
18267
76679cd3 182682008-11-12 Robert Millan <rmh@aybabtu.com>
18269
18270 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
18271 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
18272 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
18273 variables.
18274 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
18275 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
18276
18277 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
18278 grub_console_init() with call to grub_vga_text_init().
18279 (grub_machine_fini): Replace call to
18280 grub_console_fini() with call to grub_vga_text_fini() and
18281 grub_at_keyboard_fini().
18282
18283 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
18284 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
18285 (grub_console_setcolorstate, grub_console_setcolor)
18286 (grub_console_getcolor): New function prototypes.
18287
18288 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
18289 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
18290 (grub_vga_text_setcursor): Static-ize.
18291 (grub_vga_text_term): New structure.
18292 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
18293
18294 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
18295 (grub_console_cur_color, grub_console_standard_color)
18296 (grub_console_normal_color, grub_console_highlight_color)
18297 (map_char, grub_console_putchar, grub_console_getcharwidth)
18298 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
18299 (grub_console_getcolor): Move from here ...
18300 * term/i386/vga_common.c: ... to here (same function names).
18301
95b841d3 183022008-11-12 Robert Millan <rmh@aybabtu.com>
18303
18304 Use newly-added Multiboot support in coreboot.
18305
18306 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
18307 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
18308
18309 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
18310 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
18311 (codestart): Store the MBI in `startup_multiboot_info' when we're
18312 being loaded using Multiboot.
18313
18314 * kern/i386/coreboot/init.c (grub_machine_init): Move
18315 grub_at_keyboard_init() call to beginning of function (useful for
18316 debugging). Call grub_machine_mmap_init() before attempting to use
18317 grub_machine_mmap_iterate().
18318 (grub_lower_mem, grub_upper_mem): Move from here ...
18319 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
18320 here (new file).
18321
18322 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
18323 function prototype.
18324
761ca975 183252008-11-12 Robert Millan <rmh@aybabtu.com>
18326
18327 Fix a regression introduced by the at_keyboard.mod split. Because
18328 some terminals are default on some platforms and non-default on
18329 others, the first terminal being registered determines which is
18330 going to be default.
18331
18332 * kern/term.c (grub_term_register_input): If this is the first
18333 terminal being registered, set it as the current one.
18334 (grub_term_register_output): Likewise.
18335
18336 * term/efi/console.c (grub_console_init): Do not call
18337 grub_term_set_current_output() or grub_term_set_current_input().
18338 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
18339 * term/i386/pc/console.c (grub_console_init): Likewise.
18340 (grub_console_fini): Do not call grub_term_set_current_input()
18341 (but leave grub_term_set_current_output() to restore text mode).
18342
6c529df7 183432008-11-10 Robert Millan <rmh@aybabtu.com>
18344
18345 * util/grub.d/00_header.in: Add backward compatibility check for
18346 versions of terminal.mod that don't understand `terminal_input' or
18347 `terminal_output'.
18348
132e4113 183492008-11-09 Robert Millan <rmh@aybabtu.com>
18350
18351 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
18352 `terminal_input' / `terminal_output', not `terminal'.
18353
ac293d50 183542008-11-08 Robert Millan <rmh@aybabtu.com>
18355
18356 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 18357 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 18358
0025933a 183592008-11-08 Robert Millan <rmh@aybabtu.com>
18360
18361 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 18362 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 18363 members. Update all users.
18364 * util/console.c (grub_ncurses_term): Split in ...
18365 (grub_ncurses_term_input): ... this, and ...
18366 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 18367 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 18368
37c86336 183692008-11-08 Robert Millan <rmh@aybabtu.com>
18370
18371 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
18372 (PKGDATA): Add $(pkgdata_SRCDIR).
18373 (pkglib_BUILDDIR): New variable.
18374 (pkgdata_SRCDIR): New variable.
18375 (build_env.mk): New target.
18376 (include_DATA): New variable.
18377 (install-local): Install $(include_DATA) files in $(includedir).
18378
b6c15a2d 183792008-11-07 Pavel Roskin <proski@gnu.org>
18380
d99d46f1 18381 * gendistlist.sh: Use C locale for sorting to ensure consistent
18382 output on all systems.
18383
b6c15a2d 18384 * util/grub.d/00_header.in: Remove incorrect space before
18385 "serial".
18386
c32ee8c9 183872008-11-07 Robert Millan <rmh@aybabtu.com>
18388
18389 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
18390 per specification.
18391 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
18392 * loader/multiboot_loader.c (find_multi_boot2_header): New function
18393 (based on find_multi_boot1_header).
18394 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
18395 using find_multi_boot2_header(), and abort if neither Multiboot or
18396 Multiboot headers were found.
18397
651c29b7 183982008-11-07 Robert Millan <rmh@aybabtu.com>
18399
18400 Modularize at_keyboard.mod:
18401
18402 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
18403 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
18404 (at_keyboard_mod_LDFLAGS): New variables.
18405
18406 Actual terminal split:
18407
18408 * include/grub/term.h (struct grub_term): Split in ...
18409 (struct grub_term_input): ... this, and ...
18410 (struct grub_term_output): ... this. Update all users.
18411 (grub_term_set_current): Split in ...
18412 (grub_term_set_current_input): ... this, and ...
18413 (grub_term_set_current_output): ... this.
18414 (grub_term_get_current): Split in ...
18415 (grub_term_get_current_input): ... this, and ...
18416 (grub_term_get_current_output): ... this.
18417 (grub_term_register): Split in ...
18418 (grub_term_register_input): ... this, and ...
18419 (grub_term_register_output): ... this.
18420 (grub_term_unregister): Split in ...
18421 (grub_term_unregister_input): ... this, and ...
18422 (grub_term_unregister_output): ... this.
18423 (grub_term_iterate): Split in ...
18424 (grub_term_iterate_input): ... this, and ...
18425 (grub_term_iterate_output): ... this.
18426
18427 * kern/term.c (grub_term_list): Split in ...
18428 (grub_term_list_input): ... this, and ...
18429 (grub_term_list_output): ... this. Update all users.
18430 (grub_cur_term): Split in ...
18431 (grub_cur_term_input): ... this, and ...
18432 (grub_cur_term_output): ... this. Update all users.
18433 (grub_term_set_current): Split in ...
18434 (grub_term_set_current_input): ... this, and ...
18435 (grub_term_set_current_output): ... this.
18436 (grub_term_get_current): Split in ...
18437 (grub_term_get_current_input): ... this, and ...
18438 (grub_term_get_current_output): ... this.
18439 (grub_term_register): Split in ...
18440 (grub_term_register_input): ... this, and ...
18441 (grub_term_register_output): ... this.
18442 (grub_term_unregister): Split in ...
18443 (grub_term_unregister_input): ... this, and ...
18444 (grub_term_unregister_output): ... this.
18445 (grub_term_iterate): Split in ...
18446 (grub_term_iterate_input): ... this, and ...
18447 (grub_term_iterate_output): ... this.
18448
18449 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
18450 a check for input and one for output (and only attempt to get keys
18451 from user when input works).
18452
18453 * util/grub-probe.c (grub_term_get_current): Split in ...
18454 (grub_term_get_current_input): ... this, and ...
18455 (grub_term_get_current_output): ... this.
18456 * util/grub-fstest.c: Likewise.
18457 * util/i386/pc/grub-setup.c: Likewise.
18458 * util/grub-editenv.c: Likewise.
18459
18460 Portability adjustments:
18461
18462 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
18463 `term/i386/pc/at_keyboard.c'.
18464 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
18465 grub_keyboard_controller_init() (now handled by terminal .init).
18466 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
18467 grub_at_keyboard_init().
18468 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
18469 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
18470 at_keyboard.mod via input terminal interface).
18471 * include/grub/i386/coreboot/console.h: Convert into a stub for
18472 `<grub/i386/pc/console.h>'.
18473
18474 Migrate full terminals to new API:
18475
18476 * term/efi/console.c (grub_console_term): Split into ...
18477 (grub_console_term_input): ... this, and ...
18478 (grub_console_term_output): ... this. Update all users.
18479 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
18480 (grub_ofconsole_init): Split into ...
18481 (grub_ofconsole_init_input): ... this, and ...
18482 (grub_ofconsole_init_output): ... this.
18483 (grub_ofconsole_term): Split into ...
18484 (grub_ofconsole_term_input): ... this, and ...
18485 (grub_ofconsole_term_output): ... this. Update all users.
18486 * term/i386/pc/serial.c (grub_serial_term): Split into ...
18487 (grub_serial_term_input): ... this, and ...
18488 (grub_serial_term_output): ... this. Update all users.
18489 * term/i386/pc/console.c (grub_console_term): Split into ...
18490 (grub_console_term_input): ... this, and ...
18491 (grub_console_term_output): ... this. Update all users.
18492 (grub_console_term_input): Only enable it on PC/BIOS platform.
18493 (grub_console_init): Remove grub_keyboard_controller_init() call.
18494
18495 Migrate input terminals to new API:
18496
18497 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
18498 `i386' and `i386/pc' to enable build on x86_64 (this driver is
18499 i386-specific anyway).
18500 (grub_console_checkkey): Rename to ...
18501 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
18502 users.
18503 (grub_keyboard_controller_orig): New variable.
18504 (grub_console_getkey): Rename to ...
18505 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
18506 users.
18507 (grub_keyboard_controller_init): Static-ize. Save original
18508 controller value so that it can be restored ...
18509 (grub_keyboard_controller_fini): ... here (new function).
18510 (grub_at_keyboard_term): New structure.
18511 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
18512 functions.
18513
18514 Migrate output terminals to new API:
18515
18516 * term/i386/pc/vga.c (grub_vga_term): Change type to
18517 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
18518 members. Update all users.
18519 * term/gfxterm.c (grub_video_term): Change type to
18520 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
18521 members. Update all users.
18522 * include/grub/i386/pc/console.h (grub_console_checkkey)
18523 (grub_console_getkey): Do not export (no longer needed by gfxterm,
18524 etc).
18525
18526 Migrate `terminal' command and userland tools to new API:
18527
18528 * commands/terminal.c (grub_cmd_terminal): Split into ...
18529 (grub_cmd_terminal_input): ... this, and ...
18530 (grub_cmd_terminal_output): ... this.
18531 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
18532 `terminal_input' and `terminal_output'.
18533 * util/grub.d/00_header.in: Adjust `terminal' calls to new
18534 `terminal_input' / `terminal_output' API.
18535 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
18536 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
18537 provided ${GRUB_TERMINAL}, convert it).
18538
96e5d876 185392008-11-04 Robert Millan <rmh@aybabtu.com>
18540
18541 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
18542 for FreeBSD.
18543 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
18544
556f3775 185452008-11-03 Bean <bean123ch@gmail.com>
18546
18547 * kern/elf.c (grub_elf32_load): Revert to previous code.
18548 (grub_elf64_load): Likewise.
18549
18550 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
18551
926b9823 185522008-11-01 Robert Millan <rmh@aybabtu.com>
18553
18554 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
18555 (TARGET_CPPFLAGS): Likewise.
18556 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
18557
1432e958 185582008-11-01 Carles Pina i Estany <carles@pina.cat>
18559
18560 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
18561
dba3f844 185622008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 18563
18564 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
18565 addition of objects until the code is not going to be able to fail.
18566
dba3f844 185672008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 18568
18569 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
18570 (add a missing NULL check, and correct them by moving the pointer
18571 operations after the actual check).
18572
7ab28c21 185732008-10-29 Robert Millan <rmh@aybabtu.com>
18574
18575 * util/i386/pc/grub-install.in: Handle empty string as output from
18576 make_system_path_relative_to_its_root().
18577
1b7748eb 185782008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
18579
18580 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
18581 circular metadata worst case scenario. If the metadata is circular
18582 then copy the wrap in place.
18583 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
18584 project lib/format_text/layout.h
18585 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
18586
c9618ab2 185872008-10-03 Felix Zielcke <fzielcke@z-51.de>
18588
7a36edca 18589 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 18590
bf981c62 185912008-10-03 Felix Zielcke <fzielcke@z-51.de>
18592
18593 * util/update-grub_lib.in: Mention filename in warning message.
18594
6d994591 185952008-09-29 Felix Zielcke <fzielcke@z-51.de>
18596
18597 * NEWS: Update for rename of update-grub to grub-mkconfig.
18598
18ade780 185992008-09-29 Felix Zielcke <fzielcke@z-51.de>
18600
18601 * util/update-grub_lib.in: Copy to ...
18602 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 18603 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 18604 * util/update-grub.in: Rename to ...
18605 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
18606 option. Add `--output' option to allow users to specify the generated
18607 configuration file. Default to stdout.
18608 (update_grub_dir): Rename to ...
18609 (grub_mkconfig_dir): ... this.
18610 (grub_cfg): Default to an empty string.
18611 * conf/common.rmk (update-grub): Rename to ...
18612 (grub-mkconfig): ... this.
18613 (update-grub_lib): Copy to ...
18614 (grub-mkconfig_lib): ... this.
18615 (update-grub_SCRIPTS): Copy to ...
18616 (grub-mkconfig_SCRIPTS): ... this. Update all users.
18617 (update-grub_DATA): Rename to ...
18618 (grub-mkconfig_DATA): ... this.
18619
556ce6ac 186202008-09-28 Robert Millan <rmh@aybabtu.com>
18621
18622 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
18623 to `modified'. Add the real `created' field.
18624 (grub_iso9660_uuid): Use `modified' rather than `created' for
18625 constructing the UUID.
18626
186272008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 18628
18629 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
18630 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
18631
92274e85 186322008-09-28 Bean <bean123ch@gmail.com>
18633
18634 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
18635 Thanks to Christian Franke for finding this bug.
18636
add6f17a 186372008-09-25 Robert Millan <rmh@aybabtu.com>
18638
18639 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
18640 instances of grub_util_get_disk_name() (see previous commit).
18641
d2a367b8 186422008-09-25 Robert Millan <rmh@aybabtu.com>
18643
18644 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
18645 `util/i386/get_disk_name.c'.
18646 * conf/i386-efi.rmk: Likewise.
18647 * conf/x86_64-efi.rmk: Likewise.
18648 * conf/i386-coreboot.rmk: Likewise.
18649 * conf/i386-ieee1275.rmk: Likewise.
18650 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
18651 `util/ieee1275/get_disk_name.c'.
18652 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
18653 * util/ieee1275/get_disk_name.c: Remove file.
18654 * util/i386/get_disk_name.c: Remove file.
18655 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
18656 "hd%d" for device.map entries, rather than using
18657 grub_util_get_disk_name().
18658
81a06771 186592008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 18660
18661 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
18662 warning.
18663 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
18664
5a004279 186652008-09-24 Carles Pina i Estany <carles@pina.cat>
18666
18667 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
18668 Changed to 0x5100.
18669 (GRUB_TERM_PPAGE): Changed to 0x4900.
18670
397093d3 186712008-09-24 Robert Millan <rmh@aybabtu.com>
18672
18673 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
18674 macros (they were i386-pc specific).
18675 * include/grub/sparc64/ieee1275/console.h: Likewise.
18676 * include/grub/efi/console.h: Likewise.
18677
a91b6c7c 186782008-09-22 Bean <bean123ch@gmail.com>
18679
18680 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
18681 resident and in attribute list.
18682
18683 * include/grub/ntfs.h (BMP_LEN): Removed.
18684
c40fd116 186852008-09-22 Bean <bean123ch@gmail.com>
18686
81a06771 18687 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 18688 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
18689
18690 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
18691 error occurs, as grub_disk_open will call grub_disk_close, which will
18692 call p->close (scsi).
18693
81a06771 186942008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 18695
18696 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
18697 (AC_PREREQ): Bumped to 2.59.
18698 (AC_TRY_COMPILE): Replace obsolete macro with ...
18699 (AC_COMPILE_IFELSE): ... this.
18700 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
18701 (AC_LINK_IFELSE): ... this.
18702
5dc43410 187032008-09-21 Felix Zielcke <fzielcke@z-51.de>
18704
18705 * autogen.sh: Add a call to `gendistlist.sh'.
18706
9035dce4 187072008-09-19 Christian Franke <franke@computer.org>
18708
18709 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
18710 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
18711 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
18712 Export __enable_execute_stack() to modules.
18713 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
18714 New function.
18715
7fd75377 187162008-09-09 Felix Zielcke <fzielcke@z-51.de>
18717
040030b3 18718 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
18719 Sort the list.
18720
187212008-09-09 Felix Zielcke <fzielcke@z-51.de>
18722
18723 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 18724 #include <grub/util/hostdisk.h>.
18725
89d5ffcf 187262008-09-08 Robert Millan <rmh@aybabtu.com>
18727
18728 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
18729 segments when their filesz is zero (grub_file_read() interprets
81a06771 18730 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 18731 Use `lowest_segment' rather than 0 for calculating the current
18732 segment load address.
18733
40da438f 187342008-09-08 Robert Millan <rmh@aybabtu.com>
18735
18736 * util/hostdisk.c (open_device): Replace a grub_util_info() call
18737 with grub_dprintf("hostdisk", ...), as it was so verbose that it
18738 clobbered useful information.
18739
ddbf5556 187402008-09-08 Robert Millan <rmh@aybabtu.com>
18741
18742 * include/grub/util/biosdisk.h: Move to ...
18743 * include/grub/util/hostdisk.h: ... here. Update all users.
18744 * util/biosdisk.c: Move to ...
18745 * util/hostdisk.c: ... here. Update all users.
18746
783d0f48 187472008-09-07 Robert Millan <rmh@aybabtu.com>
18748
18749 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
18750 variables.
18751 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
18752 and length can be stored directly in the `mbi->mmap_addr' and
18753 `mbi->mmap_length' struct fields.
18754
548e2ea5 187552008-09-07 Robert Millan <rmh@aybabtu.com>
18756
18757 * conf/i386.rmk: New file. Provides declaration for building
18758 `cpuid.mod'.
18759 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
18760 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
18761 variables.
18762 Include `conf/i386.mk'.
18763 * conf/i386-efi.rmk: Likewise.
18764 * conf/x86_64-efi.rmk: Likewise.
18765 * conf/i386-coreboot.rmk: Likewise.
18766 * conf/i386-ieee1275.rmk: Likewise.
18767
0ea85a37 187682008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
18769
18770 Based on patch created by Colin D Bennett <colin@gibibit.com>.
18771 Adds optimization support for BGR based modes.
18772
18773 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
18774 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
18775 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
18776 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
18777 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
18778 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
18779 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
18780 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
18781 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
18782 (grub_video_i386_vbeblit_index_index): Likewise.
18783 (grub_video_i386_vbeblit_replace_directN): Added.
18784 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
18785 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
18786 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
18787 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
18788 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
18789 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 18790 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 18791 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
18792 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
18793 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
18794 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
18795 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
18796 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
18797
18798 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
18799 (grub_video_i386_vbefill_R8G8B8): Likewise.
18800 (grub_video_i386_vbefill_index): Likewise.
18801 (grub_video_i386_vbefill_direct32): Added.
18802 (grub_video_i386_vbefill_direct24): Likewise.
18803 (grub_video_i386_vbefill_direct16): Likewise.
18804 (grub_video_i386_vbefill_direct8): Likewise.
18805
81a06771 18806 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 18807 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
18808 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
18809 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
18810 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
18811 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 18812
0ea85a37 18813 * video/video.c (grub_video_get_blit_format): Updated to use new
18814 blit formats. Added handling for 16 bit color modes.
81a06771 18815
18816 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 18817 fillers.
18818 (common_blitter): Updated to use new blitters.
18819
18820 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
18821 Removed.
18822 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
18823 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
18824 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
18825 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
18826 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
18827 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
18828 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
18829 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
18830 (grub_video_i386_vbeblit_index_index): Likewise.
18831 (grub_video_i386_vbeblit_replace_directN): Added.
18832 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
18833 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
18834 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
18835 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
18836 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
18837 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
18838 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
18839 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
18840 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
18841 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
18842 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
18843 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
18844 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 18845
0ea85a37 18846 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
18847 (grub_video_i386_vbefill_R8G8B8): Likewise.
18848 (grub_video_i386_vbefill_index): Likewise.
18849 (grub_video_i386_vbefill_direct32): Added.
18850 (grub_video_i386_vbefill_direct24): Likewise.
18851 (grub_video_i386_vbefill_direct16): Likewise.
18852 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 18853
0ea85a37 18854 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
18855 types.
81a06771 18856
0ea85a37 18857 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
18858 types.
81a06771 18859
0ea85a37 18860 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
18861 blitter types.
81a06771 18862
0ea85a37 18863 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
18864 types.
18865
e8a83df6 188662008-09-06 Felix Zielcke <fzielcke@z-51.de>
18867
18868 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
18869 RAID level 1.
18870
6bcd8ee5 188712008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 18872
6bcd8ee5 18873 * fs/iso9660.c (grub_iso9660_date): New structure.
18874 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
18875 (grub_iso9660_uuid): New function.
c375ae58 18876
59261157 188772008-09-05 Bean <bean123ch@gmail.com>
18878
18879 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
18880
18881 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
18882 insensitive bit for names in Win32 and Win32 & DOS namespace.
18883
18884 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
18885
18886 * include/grub/types.h (LONG_MAX): Likewise.
18887
58b6645a 188882008-09-04 Felix Zielcke <fzielcke@z-51.de>
18889
4ee55921 18890 * util/getroot.c: Include <config.h>.
18891 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
18892 add support for /dev/md/N devices and handle LVM double dash escaping.
18893
188942008-09-04 Felix Zielcke <fzielcke@z-51.de>
18895
18896 * config.guess: Update to latest version from config git.
18897 * config.sub: Likewise.
58b6645a 18898
9124f65d 188992008-09-03 Robert Millan <rmh@aybabtu.com>
18900
18901 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
18902 `disk->total_sectors'.
18903
81a06771 189042008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 18905
18906 * include/grub/normal.h: Fixed incorrect comment for
18907 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
18908
81a06771 189092008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 18910
18911 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
18912 values with defines.
18913
18914 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
18915 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
18916 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
18917 (GRUB_VBE_MODEATTR_COLOR): Likewise.
18918 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
18919 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
18920 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
18921 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
18922 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
18923 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
18924 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
18925 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
18926 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
18927 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
18928 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
18929 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
18930 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
18931 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
18932 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
18933
93d5cbf8 189342008-08-31 Robert Millan <rmh@aybabtu.com>
18935
18936 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
18937 declaration.
18938 (grub_multiboot): Fix a few warnings.
18939
21751d50 189402008-08-31 Robert Millan <rmh@aybabtu.com>
18941
18942 * loader/i386/pc/multiboot.c: Update comment not to say that
18943 boot_device support is unimplemented.
18944
e27a75c5 189452008-08-31 Robert Millan <rmh@aybabtu.com>
18946
18947 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
18948 or memory map support are unimplemented.
18949
81a06771 189502008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 18951
18952 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
18953
81a06771 189542008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 18955
18956 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
18957 total video memory in 'vbeinfo' output; show color format details for
18958 each video mode.
18959
7c5d8d95 189602008-08-30 Pavel Roskin <proski@gnu.org>
18961
18962 * util/genmoddep.c: Remove for real this time.
18963 * DISTLIST: Remove util/genmoddep.c.
18964
4cebd25a 189652008-08-30 Robert Millan <rmh@aybabtu.com>
18966
18967 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
18968 as required by Multiboot spec (it was already 4-byte aligned, but
18969 only by chance).
18970
b497a269 189712008-08-29 Pavel Roskin <proski@gnu.org>
18972
e3925185 18973 * kern/powerpc/ieee1275/crt0.S: Rename to ...
18974 * kern/powerpc/ieee1275/startup.S: ... this.
18975 * conf/powerpc-ieee1275.rmk: Adjust for the above.
18976 * DISTLIST: Likewise.
18977
b497a269 18978 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
18979 grub/cpu/kernel.h. Add start label for consistency with other
18980 platforms. Add grub_prefix immediately after start. Add jump
18981 to the code after grub_prefix.
18982 * include/grub/powerpc/kernel.h: Provide valid values for
18983 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
18984
6e5a42fe 189852008-08-29 Bean <bean123ch@gmail.com>
18986
18987 * configure.ac: Change host_os to cygwin for mingw.
18988 (asprintf): New check for function.
18989
18990 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
18991 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
18992
18993 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 18994 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 18995 sync, sleep and grub_util_get_disk_size for mingw.
18996
18997 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
18998 to get size in mingw.
18999 (open_device): Use flag O_BINARY if it's defined.
19000 (find_root_device): Add dummy code for mingw.
19001
19002 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
19003 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
19004 (get_scsi_disk_name): Return 0 for mingw.
19005
19006 * util/hostfs.c: #include <grub/util/misc.h>.
19007 (grub_hostfs_open): Use "rb" flag to open file, use
19008 grub_util_get_disk_size to get disk size for mingw.
19009
19010 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
19011 (asprintf): New function if HAVE_ASPRINTF is not set.
19012 (sync): New function for mingw.
19013 (sleep): Likewise.
19014 (grub_util_get_disk_size): Likewise.
19015
ab3f2673 190162008-08-28 Pavel Roskin <proski@gnu.org>
19017
19018 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
19019 kern/time.c.
19020
1c282483 190212008-08-28 Robert Millan <rmh@aybabtu.com>
19022
19023 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
19024
678e849c 190252008-08-28 Robert Millan <rmh@aybabtu.com>
19026
19027 Change find_grub_drive() syntax so it doesn't prevent it from
19028 detecting NULL names as errors.
19029
19030 * util/biosdisk.c (find_grub_drive): Move free slot search code
19031 from here ...
19032 (find_free_slot): ... to here.
19033 (read_device_map): Use find_free_slot() to search for free slots.
19034
965c75ca 190352008-08-27 Marco Gerards <marco@gnu.org>
19036
19037 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
19038 (scsi_mod_SOURCES): New variable.
19039 (scsi_mod_CFLAGS): Likewise
19040 (scsi_mod_LDFLAGS): Likewise.
19041
19042 * disk/scsi.c: New file.
19043
19044 * include/grub/scsi.h: Likewise.
19045
19046 * include/grub/scsicmd.h: Likewise.
19047
19048 * disk/ata.c: Include <grub/scsi.h>.
19049 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
19050 instead.
19051 (grub_ata_iterate): Skip ATAPI devices.
19052 (grub_ata_open): Only handle ATAPI devices.
19053 (struct grub_atapi_read): Removed.
19054 (grub_atapi_readsector): Likewise.
19055 (grub_ata_read): No longer handle ATAPI devices.
19056 (grub_ata_write): Likewise.
19057 (grub_atapi_iterate): New function.
19058 (grub_atapi_read): Likewise.
19059 (grub_atapi_write): Likewise.
19060 (grub_atapi_open): Likewise.
19061 (grub_atapi_close): Likewise.
19062 (grub_atapi_dev): New variable.
19063 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
19064 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
19065
19066 * include/grub/disk.h (enum grub_disk_dev_id): Add
19067 `GRUB_DISK_DEVICE_SCSI_ID'.
19068
c07ae501 190692008-08-26 Robert Millan <rmh@aybabtu.com>
19070
19071 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
19072 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
19073 descriptive.
19074
5ed20adc 190752008-08-23 Bean <bean123ch@gmail.com>
19076
19077 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
19078 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
19079 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
19080 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
19081 dm_nv.mod.
19082 (raid5rec_mod_SOURCES): New macro.
19083 (raid5rec_mod_CFLAGS): Likewise.
19084 (raid5rec_mod_LDFLAGS): Likewise.
19085 (raid6rec_mod_SOURCES): Likewise.
19086 (raid6rec_mod_CFLAGS): Likewise.
19087 (raid6rec_mod_LDFLAGS): Likewise.
19088 (mdraid_mod_SOURCES): Likewise.
19089 (mdraid_mod_CFLAGS): Likewise.
19090 (mdraid_mod_LDFLAGS): Likewise.
19091 (dm_nv_mod_SOURCES): Likewise.
19092 (dm_nv_mod_CFLAGS): Likewise.
19093 (dm_nv_mod_LDFLAGS): Likewise.
19094
19095 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
19096 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
19097 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
19098
19099 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
19100 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
19101
19102 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19103
19104 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19105
19106 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19107
19108 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19109
19110 * disk/raid5_recover.c: New file.
19111
19112 * disk/raid6_recover.c: Likewise.
19113
19114 * disk/mdraid_linux.c: Likewise.
19115
19116 * disk/dmraid_nvidia.c: Likewise.
19117
19118 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
19119 ULONG_MAX.
19120
19121 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
19122 calculate the size of raid device.
19123 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
19124 different layout of raid5.
19125 (grub_raid_scan_device): Remove code specific to mdraid.
19126 (grub_raid_list): New variable.
19127 (free_array): New function.
19128 (grub_raid_register): Likewise.
19129 (grub_raid_unregister): Likewise.
19130 (grub_raid_rescan): Likewise.
19131 (GRUB_MOD_INIT): Don't iterate device here.
19132 (GRUB_MOD_FINI): Use free_array to release resource.
19133
19134 * include/grub/raid.h: Remove macro and structure specific to mdraid.
19135 (grub_raid5_recover_func_t): New function variable type.
19136 (grub_raid6_recover_func_t): Likewise.
19137 (grub_raid5_recover_func): New variable.
19138 (grub_raid6_recover_func): Likewise.
19139 (grub_raid_register): New function.
19140 (grub_raid_unregister): Likewise.
19141 (grub_raid_rescan): Likewise.
19142 (grub_raid_block_xor): Likewise.
19143
19144 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
19145 (CMD_CRC): New macro.
19146 (part): Removed.
19147 (read_file): Handle device as well as file.
19148 (cmd_crc): New function.
19149 (fstest): Handle multiple disks.
19150 (options): Remove part, raw and long, add root and diskcount.
19151 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 19152 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 19153 add handling for the new options, support multiple disks.
19154
19155 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
19156
29c18915 191572008-08-23 Bean <bean123ch@gmail.com>
19158
19159 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
19160
19161 * genfslist.sh: Ignore kernel.mod.
19162
19163 * genpartmaplist.sh: Likewise.
19164
8415f261 191652008-08-23 Robert Millan <rmh@aybabtu.com>
19166
19167 * util/getroot.c (find_root_device): Skip anything that starts with
19168 a dot, not just directories. This avoids things like /dev/.tmp.md0.
19169
d5a7dc5b 191702008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 19171
d5a7dc5b 19172 * util/update-grub.in (GRUB_GFXMODE): Export variable.
19173 * util/grub.d/00_header.in: Allow the administrator to change default
19174 gfxmode via ${GRUB_GFXMODE}.
19175
380cfbb4 191762008-08-21 Felix Zielcke <fzielcke@z-51.de>
19177
19178 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
19179
c9baafe7 191802008-08-21 Robert Millan <rmh@aybabtu.com>
19181
19182 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
19183 loader.
19184 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
19185 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
19186
e290bef2 191872008-08-20 Carles Pina i Estany <carles@pina.cat>
19188
19189 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
19190 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
19191
f9dbfc96 191922008-08-19 Robert Millan <rmh@aybabtu.com>
19193
19194 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
19195 (struct grub_virtual_screen): Remove `cursor_color'.
19196 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
19197 initialization.
19198 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
19199
dd6bd6ab 192002008-08-18 Robert Millan <rmh@aybabtu.com>
19201
19202 Unify (identical) linux_normal.c files.
19203 * loader/i386/efi/linux_normal.c: Move from here ...
19204 * loader/linux_normal.c: ... to here. Update all users.
19205 * loader/i386/pc/linux_normal.c: Delete. Update all users.
19206 * loader/i386/ieee1275/linux_normal.c: Likewise.
19207
7f42f83e 192082008-08-18 Robert Millan <rmh@aybabtu.com>
19209
19210 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
19211 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
19212 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
19213 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
19214 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
19215 New macros.
19216 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
19217 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
19218 (GRUB_LINUX_CL_END_OFFSET): ... to here.
19219 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
19220 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
19221 (GRUB_EFI_CL_END_OFFSET): Rename to ...
19222 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
19223 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
19224 Initialize `params->video_cursor_x' and `params->video_cursor_y'
19225 portably using grub_getxy().
19226 Replace `-EFI' with `-bzImage' in boot message.
19227
38487ddb 192282008-08-17 Robert Millan <rmh@aybabtu.com>
19229
19230 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
19231
deceb3ec 192322008-08-17 Robert Millan <rmh@aybabtu.com>
19233
19234 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
19235
19236 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
19237 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
19238 (grub_machine_mmap_iterate): New function declaration.
19239 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
19240 structure.
19241 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
19242 macros.
19243
19244 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
19245 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
19246 Move e820 parsing from here ...
19247 * kern/i386/pc/mmap.c: New file.
19248 (grub_machine_mmap_iterate): ... to here.
19249
19250 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
19251 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
19252 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
19253 (grub_available_iterate): Redeclare to return `void', and redeclare
19254 its hook to use grub_uint64_t as addr and size parameters, and rename
19255 to ...
19256 (grub_machine_mmap_iterate): ... this. Update all users.
19257
19258 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
19259 to make it more readable. Rename to ...
19260 (grub_machine_mmap_iterate): ... this.
19261
19262 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
19263 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
19264 (grub_multiboot): Allocate an extra region after the payload, and fill
19265 it with a Multiboot memory map. Adjust a.out loader to calculate size
19266 with the extra space.
19267 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
19268 with the extra space.
19269
f8aa0f43 192702008-08-17 Carles Pina i Estany <carles@pina.cat>
19271
9807deb9 19272 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 19273
605f5bb6 192742008-08-17 Felix Zielcke <fzielcke@z-51.de>
19275
19276 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
19277 mdate-sh to the list `find' searches for.
19278 * DISTLIST: Regenerated.
19279
210db6c6 192802008-08-16 Felix Zielcke <fzielcke@z-51.de>
19281
19282 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
19283 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 19284 genmoddep.awk, gensymlist.sh.in.
19285 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 19286 * DISTLIST: Regenerated.
48cdbfd4 19287 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 19288
1082b929 192892008-08-16 Robert Millan <rmh@aybabtu.com>
19290
19291 * disk/raid.c (grub_raid_init): Handle/report errors set by
19292 grub_device_iterate().
19293 * disk/lvm.c (grub_lvm_init): Likewise.
19294
42ce5170 192952008-08-15 Bean <bean123ch@gmail.com>
19296
19297 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
19298 and datehook.mod.
19299 (datetime_mod_SOURCES): New macro.
19300 (datetime_mod_CFLAGS): Likewise.
19301 (datetime_mod_LDFLAGS): Likewise.
19302 (date_mod_SOURCES): Likewise.
19303 (date_mod_CFLAGS): Likewise.
19304 (date_mod_LDFLAGS): Likewise.
19305 (datehook_mod_SOURCES): Likewise.
19306 (datehook_mod_CFLAGS): Likewise.
19307 (datehook_mod_LDFLAGS): Likewise.
19308
19309 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
19310 and datehook.mod.
19311 (datetime_mod_SOURCES): New macro.
19312 (datetime_mod_CFLAGS): Likewise.
19313 (datetime_mod_LDFLAGS): Likewise.
19314 (date_mod_SOURCES): Likewise.
19315 (date_mod_CFLAGS): Likewise.
19316 (date_mod_LDFLAGS): Likewise.
19317 (datehook_mod_SOURCES): Likewise.
19318 (datehook_mod_CFLAGS): Likewise.
19319 (datehook_mod_LDFLAGS): Likewise.
19320
19321 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
19322 and datehook.mod.
19323 (datetime_mod_SOURCES): New macro.
19324 (datetime_mod_CFLAGS): Likewise.
19325 (datetime_mod_LDFLAGS): Likewise.
19326 (date_mod_SOURCES): Likewise.
19327 (date_mod_CFLAGS): Likewise.
19328 (date_mod_LDFLAGS): Likewise.
19329 (datehook_mod_SOURCES): Likewise.
19330 (datehook_mod_CFLAGS): Likewise.
19331 (datehook_mod_LDFLAGS): Likewise.
19332
19333 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
19334 and datehook.mod.
19335 (datetime_mod_SOURCES): New macro.
19336 (datetime_mod_CFLAGS): Likewise.
19337 (datetime_mod_LDFLAGS): Likewise.
19338 (date_mod_SOURCES): Likewise.
19339 (date_mod_CFLAGS): Likewise.
19340 (date_mod_LDFLAGS): Likewise.
19341 (datehook_mod_SOURCES): Likewise.
19342 (datehook_mod_CFLAGS): Likewise.
19343 (datehook_mod_LDFLAGS): Likewise.
19344
19345 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
19346 and datehook.mod.
19347 (datetime_mod_SOURCES): New macro.
19348 (datetime_mod_CFLAGS): Likewise.
19349 (datetime_mod_LDFLAGS): Likewise.
19350 (date_mod_SOURCES): Likewise.
19351 (date_mod_CFLAGS): Likewise.
19352 (date_mod_LDFLAGS): Likewise.
19353 (datehook_mod_SOURCES): Likewise.
19354 (datehook_mod_CFLAGS): Likewise.
19355 (datehook_mod_LDFLAGS): Likewise.
19356
19357 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
19358
19359 * commands/date.c: New file.
19360
19361 * hook/datehook.c: Likewise.
19362
19363 * include/grub/lib/datetime.h: Likewise.
19364
19365 * include/grub/i386/cmos.h: Likewise.
19366
19367 * lib/datetime.c: Likewise.
19368
19369 * lib/i386/datetime.c: Likewise.
19370
19371 * lib/efi/datetime.c: Likewise.
19372
0e9242da 193732008-08-14 Robert Millan <rmh@aybabtu.com>
19374
19375 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
19376 (grub_mkelfimage_SOURCES): New variable.
19377 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
19378
19379 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
19380 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
19381 * conf/powerpc-ieee1275.rmk: Likewise.
19382 * conf/i386-ieee1275.rmk: Likewise.
19383
19384 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
19385 * kern/i386/coreboot/init.c: Likewise.
19386
19387 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
19388 with `<grub/cpu/kernel.h>'.
19389 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
19390 to ...
19391 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
19392 * kern/i386/coreboot/startup.S: Likewise.
19393
19394 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
19395 (GRUB_MOD_GAP): Remove.
19396 * include/grub/powerpc/kernel.h: New file.
19397 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
19398 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
19399 * include/grub/i386/kernel.h: New file.
19400 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
19401 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
19402 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
19403
19404 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
19405 `grub-mkelfimage'.
19406 Use --directory when invoking grub_mkimage.
19407
19408 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
19409 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
19410 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
19411 and GRUB_KERNEL_CPU_PREFIX.
19412
b86408f8 194132008-08-14 Felix Zielcke <fzielcke@z-51.de>
19414
d5e619ca 19415 * include/grub/err.h (grub_err_printf): New function prototype.
19416 * util/misc.c (grub_err_printf): New function.
19417 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
19418 grub_printf.
19419 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 19420
7161f0e0 194212008-08-13 Robert Millan <rmh@aybabtu.com>
19422
19423 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
19424
a1967522 194252008-08-13 Robert Millan <rmh@aybabtu.com>
19426
19427 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
19428 boot entry.
19429
371458b5 194302008-08-12 Robert Millan <rmh@aybabtu.com>
19431
19432 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
19433 of the relocation code from here ...
19434 (grub_multiboot): ... to here.
19435 (forward_relocator, backward_relocator): Move from here ...
19436 * kern/i386/loader.S (grub_multiboot_forward_relocator)
19437 (grub_multiboot_backward_relocator): ... to here.
19438 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
19439 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
19440 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
19441 (grub_multiboot_forward_relocator_end)
19442 (grub_multiboot_backward_relocator)
19443 (grub_multiboot_backward_relocator_end): New variables.
19444
05f9452b 194452008-08-12 Bean <bean123ch@gmail.com>
19446
19447 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
19448
20024ab0 194492008-08-11 Robert Millan <rmh@aybabtu.com>
19450
19451 * kern/i386/linuxbios/startup.S: Move from here ...
19452 * kern/i386/coreboot/startup.S: ... to here.
19453
19454 * kern/i386/linuxbios/init.c: Move from here ...
19455 * kern/i386/coreboot/init.c: ... to here.
19456
19457 * kern/i386/linuxbios/table.c: Move from here ...
19458 * kern/i386/coreboot/mmap.c: ... to here.
19459
19460 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
19461
e352e9cd 194622008-08-11 Robert Millan <rmh@aybabtu.com>
19463
19464 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
19465 errors. Leave it to the upper layer to handle them.
19466
2d05bc6a 194672008-08-09 Christian Franke <franke@computer.org>
19468
19469 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
19470 * conf/common.rmk: Install `grub-pe2elf' only if requested.
19471 Install `grub.d/10_windows' only on Cygwin.
19472 * configure.ac: Add subst of `target_os'.
19473 Check `target_os' also before setting TARGET_OBJ2ELF.
19474 Add `--enable-grub-pe2elf'.
19475
042bd419 194762008-08-08 Robert Millan <rmh@aybabtu.com>
19477
19478 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
19479 (grub_last_time): Change type to grub_uint64_t.
19480 (grub_disk_open): Migrate code from to using grub_get_time_ms().
19481 (grub_disk_close): Likewise.
19482
19483 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
19484 (run_menu): Migrate code from to using grub_get_time_ms().
19485
19486 * util/misc.c (grub_get_time_ms): New function.
19487
7f280db5 194882008-08-08 Marco Gerards <marco@gnu.org>
19489
19490 * disk/ata.c (grub_ata_regget): Change return type to
19491 `grub_uint8_t'.
19492 (grub_ata_regget2): Likewise.
19493 (grub_ata_wait_status): New function.
19494 (grub_ata_wait_busy): Removed function, updated all users to use
19495 `grub_ata_wait_status'.
19496 (grub_ata_wait_drq): Likewise.
19497 (grub_ata_cmd): New function.
19498 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
19499 error handling.
19500 (grub_ata_pio_write): Add error handling.
19501 (grub_atapi_identify): Likewise.
19502 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
19503 handling.
19504 (grub_ata_identify): Use `grub_ata_cmd' and improve error
19505 handling. Actually use the detected registers. Reorder the
19506 detection logic such that it is easier to read.
19507 (grub_ata_pciinit): Do not assign the same ID to each controller.
19508 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
19509 handling.
19510 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
19511
19512 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
19513
1fbc5e66 195142008-08-08 Marco Gerards <marco@gnu.org>
19515
19516 * NEWS: Update.
19517
819ce6c0 195182008-08-07 Bean <bean123ch@gmail.com>
19519
19520 * include/grub/x86_64/pci.h: New file.
19521
5c41d44d 195222008-08-07 Christian Franke <franke@computer.org>
19523
19524 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
19525 (TIMER2_GATE): Likewise.
19526 (grub_pit_wait): Add enable/disable of the timer2 gate
19527 bit of port 0x61. This fixes a possible infinite loop.
19528
5ebc275d 195292008-08-07 Bean <bean123ch@gmail.com>
19530
19531 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
19532 kern/i386/tsc.c and kern/i386/pit.c.
19533
19534 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
19535 x86_64 platform.
19536
19537 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
19538 <grub/i386/tsc.h>.
19539
19540 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
19541
e383b3d0 195422008-08-07 Bean <bean123ch@gmail.com>
19543
19544 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
19545
19546 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
19547
19548 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
19549 multiple inclusion. Add #include <grub/types.h>.
19550
1cbb58ac 195512008-08-06 Christian Franke <franke@computer.org>
19552
19553 * conf/common.rmk: Build and install `10_windows'.
19554 * util/grub.d/10_windows.in: New script.
19555
337f5a1e 195562008-08-06 Pavel Roskin <proski@gnu.org>
19557
19558 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
19559
057bc4ac 195602008-08-06 Robert Millan <rmh@aybabtu.com>
19561
19562 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
19563 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
19564
2b99f123 195652008-08-06 Bean <bean123ch@gmail.com>
19566
19567 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
19568 (grub_pxefs_fs_int): Remove dummy definition.
19569 (grub_pxefs_open): Use data->block_size to store the current block
19570 size setting.
19571 (grub_pxefs_read): Use block size stored in data->block_size. As the
19572 value of grub_pxe_blksize can be changed after the file is opened.
19573
9f0234cb 195742008-08-06 Bean <bean123ch@gmail.com>
19575
19576 * fs/i386/pc/pxe.c (curr_file): new variable.
19577 (grub_pxefs_open): Simply the handling of pxe file system. Don't
19578 require the dummy internal file system anymore.
19579 (grub_pxefs_read): Removed.
19580 (grub_pxefs_close): Likewise.
19581 (grub_pxefs_fs_int): Likewise.
19582 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
19583 connection when we switch file.
19584 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
19585
a55d42e0 195862008-08-06 Robert Millan <rmh@aybabtu.com>
19587
19588 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
19589 `halt.mod'.
19590 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
19591 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
19592
19593 * kern/i386/halt.c: New file.
19594 * kern/i386/reboot.c: Likewise.
19595 * include/grub/i386/reboot.h: Likewise.
19596 * include/grub/i386/halt.h: Likewise.
19597
19598 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
19599 Include `<grub/cpu/halt.h>'.
19600 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
19601 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
19602
19603 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
19604 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
19605 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
19606 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
19607 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
19608 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
19609 from here ...
19610 * include/grub/i386/at_keyboard.h: ... to here.
19611
24371d26 196122008-08-05 Robert Millan <rmh@aybabtu.com>
19613
19614 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
19615 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
19616 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
19617 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
19618 `kern/generic/millisleep.c'.
19619
19620 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
19621 instead of grub_get_rtc().
19622 (grub_tsc_init): Initialize `tsc_boot_time'.
19623
19624 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
19625 (grub_machine_init): Use grub_tsc_init() rather than
19626 installing an RTC-based handler via grub_install_get_time_ms().
19627
19628 * kern/i386/pit.c: New file.
19629 * include/grub/i386/pit.h: Likewise.
19630
9e7007b3 196312008-08-05 Bean <bean123ch@gmail.com>
19632
19633 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
19634
19635 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
19636 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
19637 (pxe_mod_SOURCES): New macro.
19638 (pxe_mod_CFLAGS): Likewise.
19639 (pxe_mod_LDFLAGS): Likewise.
19640 (pxecmd_mod_SOURCES): Likewise.
19641 (pxecmd_mod_CFLAGS): Likewise.
19642 (pxecmd_mod_LDFLAGS): Likewise.
19643
19644 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
19645 (grub_pxe_call): Likewise.
19646
19647 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
19648
19649 * commands/i386/pc/pxecmd.c: New file.
19650
9f0234cb 19651 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 19652
19653 * include/grub/i386/pc/pxe.h: Likewise.
19654
6977d49f 196552008-08-05 Bean <bean123ch@gmail.com>
19656
19657 * util/console.c (grub_console_cur_color): New variable.
19658 (grub_console_standard_color): Likewise.
19659 (grub_console_normal_color): Likewise.
19660 (grub_console_highlight_color): Likewise.
19661 (color_map): Likewise.
19662 (use_color): Likewise.
19663 (NUM_COLORS): New macro.
19664 (grub_ncurses_setcolorstate): Handle color properly.
19665 (grub_ncurses_setcolor): Don't change color here, just remember the
19666 settings, color will be set in grub_ncurses_setcolorstate.
19667 (grub_ncurses_getcolor): New function.
19668 (grub_ncurses_init): Initialize color pairs.
19669 (grub_ncurses_term): New member grub_ncurses_getcolor.
19670
9c2ff3ee 196712008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 19672
9c2ff3ee 19673 High resolution timer support. Implemented for x86 CPUs using TSC.
19674 Extracted generic grub_millisleep() so it's linked in only as needed.
19675 This requires a Pentium compatible CPU; if the RDTSC instruction is
19676 not supported, then it falls back on the generic grub_get_time_ms()
19677 implementation that uses the machine's RTC.
19678
19679 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
19680 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
19681 `kern/generic/millisleep.c'.
19682
19683 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
19684 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
19685
19686 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
19687 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
19688
19689 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
19690
19691 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
19692 `kern/generic/millisleep.c'.
19693
19694 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
19695
19696 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
19697
19698 * kern/generic/rtc_get_time_ms.c: New file.
19699
19700 * kern/generic/millisleep.c: New file.
337f5a1e 19701
9c2ff3ee 19702 * kern/misc.c: Don't include
19703 <kern/time.h> anymore.
19704 (grub_millisleep_generic): Removed.
19705
19706 * commands/sleep.c (grub_interruptible_millisleep): Uses
19707 grub_get_time_ms() instead of grub_get_rtc().
19708
19709 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
19710 function.
19711 (grub_cpu_is_cpuid_supported): New inline function.
19712 (grub_cpu_is_tsc_supported): New inline function.
19713 (grub_tsc_init): New function prototype.
19714 (grub_tsc_get_time_ms): New function prototype.
19715
19716 * kern/i386/tsc.c (grub_get_time_ms): New file.
19717
19718 * include/grub/time.h: Include <grub/types.h.
19719 (grub_millisleep_generic): Removed.
19720 (grub_get_time_ms): New prototype.
19721 (grub_install_get_time_ms): New prototype.
19722 (grub_rtc_get_time_ms): New prototype.
19723
19724 * kern/time.c (grub_get_time_ms): New function.
19725 (grub_install_get_time_ms): New function.
19726
19727 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
19728 <grub/time.h> anymore.
19729 (grub_millisleep): Removed.
19730 (grub_machine_init): Call grub_tsc_init.
19731
19732 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
19733 get_time_ms() implementation.
19734
19735 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
19736 (ieee1275_get_time_ms): New function.
19737 (grub_machine_init): Install get_time_ms() implementation.
19738
19739 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
19740 (grub_machine_init): Call grub_tsc_init().
19741 (grub_millisleep): Removed.
bf06a93f 19742
9c2ff3ee 19743 * kern/ieee1275/init.c (grub_millisleep): Removed.
19744 (grub_machine_init): Install ieee1275_get_time_ms()
19745 implementation.
19746 (ieee1275_get_time_ms): New function.
19747 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
19748 real work.
19749
9ec92aaf 197502008-08-05 Marco Gerards <marco@gnu.org>
19751
19752 * disk/ata.c: Include <grub/pci.h>.
19753 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
19754 (grub_ata_initialize): Rewritten.
19755 (grub_ata_device_initialize): New function.
19756
8d23f507 197572008-08-04 Pavel Roskin <proski@gnu.org>
19758
19759 * kern/main.c: Include grub/mm.h.
19760
5e15ee3d 197612008-08-04 Robert Millan <rmh@aybabtu.com>
19762
19763 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
19764 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
19765 corruption problem).
19766
a9053f8f 197672008-08-04 Robert Millan <rmh@aybabtu.com>
19768
19769 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
19770 warnings introduced in my last commit.
19771
dd19c7d7 197722008-08-03 Robert Millan <rmh@aybabtu.com>
19773
19774 Make PCI available on all i386 architectures.
19775
19776 * include/grub/i386/pc/pci.h: Move from here ...
19777 * include/grub/i386/pci.h: ... to here.
19778
19779 * include/grub/i386/pc/pci.h: Remove.
19780 * include/grub/i386/efi/pci.h: Remove.
19781 * include/grub/x86_64/efi/pci.h: Remove.
19782
19783 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
19784 `<grub/cpu/pci.h>'.
19785
19786 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
19787 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
19788 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
19789
19790 * conf/i386-ieee1275.rmk: Likewise.
19791
e14a6184 197922008-08-03 Robert Millan <rmh@aybabtu.com>
19793
19794 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
19795 (grub_console_setcursor): Make it possible to set cursor off.
19796
52768e37 197972008-08-03 Robert Millan <rmh@aybabtu.com>
19798
19799 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
19800 of modules instead of assuming which platform provides what.
19801 * util/update-grub.in: Likewise.
19802
2d52f57f 198032008-08-03 Robert Millan <rmh@aybabtu.com>
19804
19805 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
19806 instead of `grub_install_dos_part' to determine whether a drive needs
19807 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 19808 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 19809
2a5cd121 198102008-08-02 Robert Millan <rmh@aybabtu.com>
19811
19812 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
19813
93808428 198142008-08-02 Robert Millan <rmh@aybabtu.com>
19815
19816 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
19817 of informational grub_dprintf() calls.
19818
3bd0a12a 198192008-08-02 Robert Millan <rmh@aybabtu.com>
19820
19821 * disk/memdisk.c (memdisk_size): Don't initialize.
19822 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
19823
19824 * include/grub/i386/pc/kernel.h
19825 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
19826 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
19827 (grub_memdisk_image_size, grub_arch_memdisk_addr)
19828 (grub_arch_memdisk_size): Remove.
19829
19830 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
19831 field (was only used to transfer a constant). Add `type' field to
19832 support multiple module types.
19833 (grub_module_iterate): New function.
19834
19835 * kern/device.c (grub_device_open): Do not hide error messages
19836 when grub_disk_open() fails. Use grub_print_error() instead.
19837
19838 * kern/i386/pc/init.c (grub_arch_modules_addr)
19839 (grub_arch_memdisk_size): Remove functions.
19840 (grub_arch_modules_addr): Return the module address in high memory
19841 (now that it isn't copied anymore).
19842
19843 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
19844 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
19845 decompression routine (grub_total_module_size already includes that
19846 now). Don't copy modules back to low memory.
19847
19848 * kern/main.c: Include `<grub/mm.h>'.
19849 (grub_load_modules): Split out (and use) ...
19850 (grub_module_iterate): ... this function, which iterates through
19851 module objects and runs a hook.
19852 Comment out grub_mm_init_region() call, as it would cause non-ELF
19853 modules to be overwritten.
19854
19855 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
19856 the memdisk image in its own region, make it part of the module list.
19857 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
19858 (main): Parse --memdisk|-m option, and pass user-provided path as
19859 parameter to generate_image().
19860 (add_segments): Pass `memdisk_path' down to load_modules().
19861 (load_modules): Embed memdisk image in module section when requested.
19862 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
19863 `header.type' instead of `header.offset'.
19864
19865 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
19866 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
19867 (memdisk_mod_LDFLAGS): New variables.
19868 * conf/i386-coreboot.rmk: Likewise.
19869 * conf/i386-ieee1275.rmk: Likewise.
19870
a927cc73 198712008-08-02 Robert Millan <rmh@aybabtu.com>
19872
19873 * loader/i386/pc/multiboot.c (playground, forward_relocator)
19874 (backward_relocator): New variables. Used to allocate and relocate
19875 the payload, respectively.
19876 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 19877 address, install the appropriate relocator code in each bound of
a927cc73 19878 the payload, and set the entry point such that
19879 grub_multiboot_real_boot() will jump to one of them.
19880
19881 * kern/i386/loader.S (grub_multiboot_payload_size)
19882 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
19883 (grub_multiboot_payload_entry_offset): New variables.
19884 (grub_multiboot_real_boot): Set cpu context to what the relocator
19885 expects, and jump to the relocator instead of the payload.
19886
19887 * include/grub/i386/loader.h (grub_multiboot_payload_size)
19888 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
19889 (grub_multiboot_payload_entry_offset): Export.
19890
b15d8a0c 198912008-08-01 Bean <bean123ch@gmail.com>
19892
19893 * normal/menu_entry.c (editor_getline): Don't return the original
19894 string as result, as it will be released by lexer once it has done
19895 using it.
19896
cdfb3d22 198972008-08-01 Robert Millan <rmh@aybabtu.com>
19898
19899 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
19900 within menuentries, not before them.
19901 util/grub.d/10_hurd.in: Likewise.
19902
9175e93d 199032008-08-01 Bean <bean123ch@gmail.com>
19904
19905 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
19906 (bufio_mod_SOURCES): New macro.
19907 (bufio_mod_CFLAGS): Likewise.
19908 (bufio_mod_LDFLAGS): Likewise.
19909
19910 * include/grub/bufio.h: New file.
19911
19912 * io/bufio.c: Likewise.
19913
19914 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
19915 (grub_video_reader_png): Use grub_buffile_open to open file.
19916
19917 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
19918 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
19919
19920 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
19921 (grub_video_reader_tga): Use grub_buffile_open to open file.
19922
19923 * font/manager.c: Include <grub/bufio.h>.
19924 (add_font): Use grub_buffile_open to open file.
19925
3d8383e7 199262008-07-31 Robert Millan <rmh@aybabtu.com>
19927
19928 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
19929 ELF segments, use a macro for arbitrarily accessing any of them instead
19930 of preparing a pointer that allows access to one at a time.
19931 (grub_multiboot_load_elf64): Likewise.
19932
16e641b6 199332008-07-31 Bean <bean123ch@gmail.com>
19934
19935 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
19936 GRUB_KERNEL_MACHINE_DATA_END.
19937
59198b72 199382008-07-30 Robert Millan <rmh@aybabtu.com>
19939
19940 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
19941 Increase from 0x50 to 0x60.
19942 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
19943 use UUIDs to identify the root drive for them. If that's not
19944 possible, abort.
19945 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
19946 check, for cross-disk installs.
19947
ae88bca3 199482008-07-30 Robert Millan <rmh@aybabtu.com>
19949
19950 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
19951 is non-empty, use it to set the `prefix' environment variable instead
19952 of the usual approach.
19953 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
19954 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
19955 environment variable instead of dummy make_install_device().
19956
19957 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
19958 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 19959 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 19960
19961 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
19962 New variable reference.
19963 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
19964 New macro. Defines offset of `grub_prefix' within startup.S (relative
19965 to `start').
19966 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
19967 section within startup.S (relative to `start').
19968 * include/grub/i386/coreboot/kernel.h: Likewise.
19969
19970 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
19971 Overwrite grub_prefix with its contents, at the beginning of the
19972 first segment.
19973 (main): Understand -p|--prefix.
19974
14f41dd1 199752008-07-30 Robert Millan <rmh@aybabtu.com>
19976
19977 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
19978
4ca049a3 199792008-07-30 Robert Millan <rmh@aybabtu.com>
19980
19981 * term/i386/pc/vga_text.c (grub_console_cls): Use
19982 grub_console_gotoxy() to go back to beginning of the screen.
19983 Found by Patrick Georgi <patrick.georgi@coresystems.de>
19984
2921d337 199852008-07-29 Christian Franke <franke@computer.org>
19986
19987 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
19988 Add conversion of emulated mount points on Cygwin.
19989
b609876d 199902008-07-29 Christian Franke <franke@computer.org>
19991
19992 * util/update-grub.in: Add a check for admin
19993 group on Cygwin.
19994 Remove old `grub.cfg.new' before creation.
19995 Add `-f' to `mv' to handle the different filesystem
19996 semantics of Windows.
19997
e93e4679 199982008-07-29 Bean <bean123ch@gmail.com>
19999
20000 * normal/main.c (get_line): Fix buffer overflow bug.
20001
41694fd0 200022008-07-28 Robert Millan <rmh@aybabtu.com>
20003
20004 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
20005 (struct grub_apple_header): New struct. Describes the layout of
20006 the partmap header.
20007 (apple_partition_map_iterate): Check the header magic as well as the
20008 partition magic (which was already being checked).
20009
cfd0b4e6 200102008-07-28 Pavel Roskin <proski@gnu.org>
20011
20012 * genmk.rb: Add a warning to the beginning of the output that
20013 it's a generated file and should not be edited.
20014
93cce016 200152008-07-28 Robert Millan <rmh@aybabtu.com>
20016
20017 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
20018 with the same number are found, just use issue a warning with
20019 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 20020
cd1df915 200212008-07-27 Robert Millan <rmh@aybabtu.com>
20022
20023 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
20024 information.
20025
b70a8427 200262008-07-27 Bean <bean123ch@gmail.com>
20027
20028 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
20029 (grub_fat_find_dir): Ignore case when comparing filename.
20030
8f5e379f 200312008-07-27 Bean <bean123ch@gmail.com>
20032
20033 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
20034 smallino, as it's more descriptive, and i8count can be confused with
20035 the other field count.
20036 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
20037 inode type.
20038
a85cd5a0 200392008-07-27 Bean <bean123ch@gmail.com>
20040
20041 * commands/crc.c: New file.
20042
20043 * lib/crc.c: Likewise.
20044
20045 * include/grub/lib/crc.h: Likewise.
20046
20047 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
20048
20049 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
20050 (hexdump): Move this function to ...
20051
20052 * lib/hexdump.c: ... here.
20053
20054 * include/grub/hexdump.h: Renamed to ...
20055
20056 * include/grub/lib/hexdump.h: ... this.
20057
20058 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
20059
20060 * util/grub-editenv.c: Likewise.
20061
20062 * include/envblk.h: Renamed to ...
20063
20064 * include/lib/envblk.h: ... this.
20065
20066 * util/envblk.c: Renamed to ...
20067
20068 * lib/envblk.c: ... this.
20069
20070 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
20071 lib/hexdump.c.
20072 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
20073 (pkglib_MODULES): Add crc.mod.
20074 (hexdump_mod_SOURCES): Add lib/hexdump.c.
20075 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
20076 (crc_mod_SOURCES): New macro.
20077 (crc_mod_CFLAGS): Likewise.
20078 (crc_mod_LDFLAGS): Likewise.
20079
20080 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
20081
20082 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20083
20084 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20085
20086 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20087
20088 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20089
c298def0 200902008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 20091
20092 * commands/help.c: Include <grub/term.h>.
20093 (TERM_WIDTH): Removed. Updated all users.
20094
cc349fb3 200952008-07-27 Pavel Roskin <proski@gnu.org>
20096
20097 * util/getroot.c (find_root_device): Rephrase a comment to avoid
20098 spurious warnings about a comment within a comment.
20099
9051607e 201002008-07-25 Robert Millan <rmh@aybabtu.com>
20101
20102 * util/getroot.c (find_root_device): Skip devices that match
20103 /dev/dm-[0-9]. This lets the real device be found for any type of
20104 abstraction (LVM, EVMS, RAID..).
20105 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
20106 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
20107 device is found first, find_root_device() will now skip it.
20108
01453bfc 201092008-07-24 Pavel Roskin <proski@gnu.org>
20110
20111 * include/grub/types.h: Use __builtin_bswap32() and
20112 __builtin_bswap64() with gcc 4.3 and newer.
20113
6af9849f 201142008-07-24 Christian Franke <franke@computer.org>
20115
3a0fa256 20116 * util/i386/pc/grub-install.in: If `--debug' is specified,
20117 pass `--verbose' to grub-setup.
20118 Abort script if make_system_path_relative_to_its_root() fails.
20119
7810e747 201202008-07-24 Bean <bean123ch@gmail.com>
20121
20122 * configure.ac: Fixed a bug caused by the previous cygwin patch,
20123 variable `target_platform' should be `platform'.
20124
42290e17 201252008-07-24 Bean <bean123ch@gmail.com>
20126
51cc5193 20127 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 20128 (grub_png_init_fixed_block): New function.
20129 (grub_png_decode_image_data): Handle fixed huffman code compression.
20130
2a8a80e4 201312008-07-24 Bean <bean123ch@gmail.com>
20132
20133 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
20134 (grub_pe2elf_SOURCES): New macro.
20135 (CLEANFILES): Add grub-pe2elf.
20136
20137 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
20138 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
20139 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
20140 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
20141 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
20142 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
20143 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
20144 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
20145 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
20146 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
20147 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
20148 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
20149 (GRUB_PE32_DT_FUNCTION): Likewise.
20150 (GRUB_PE32_REL_I386_DIR32): Likewise.
20151 (GRUB_PE32_REL_I386_REL32): Likewise.
20152 (grub_pe32_symbol): New structure.
20153 (grub_pe32_reloc): Likewise.
20154
20155 * util/grub-pe2elf.c: New file.
20156
20157 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
20158 start symbol in non pc platform.
20159
20160 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
20161
20162 The following patches are from Christian Franke.
20163
20164 * include/grub/dl.h: Remove .previous, gas supports this only
20165 for ELF format.
20166
20167 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
20168 Remove .type, gas supports this only for ELF format.
20169
20170 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
20171 nullbytes in symbol table. This fixes an infinite loop if table is
20172 zero filled.
20173
20174 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
20175 TARGET_IMG_LDFLAGS and EXEEXT.
20176
20177 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
20178 TARGET_IMG_LDFLAGS_AC.
20179 (grub_CHECK_STACK_ARG_PROBE): New function.
20180
20181 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
20182
20183 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
20184
20185 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
20186 to set TARGET_IMG_LD* accordingly.
20187 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
20188 Add call to grub_CHECK_STACK_ARG_PROBE.
20189 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
20190
20191 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
20192
20193 * genmk.rb: Add EXEEXT to CLEANFILES.
20194
12ccdb75 201952008-07-23 Robert Millan <rmh@aybabtu.com>
20196
20197 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
20198 define the codes for arrows and lines used for the menu).
20199 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
20200 as well.
20201
20202 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
20203 fonts, because the latter are too slow.
20204
18eeaf04 202052008-07-21 Bean <bean123ch@gmail.com>
20206
20207 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
20208 a20. Run keyboard test last, as it will cause macbook to halt.
20209
b095e2ad 202102008-07-18 Pavel Roskin <proski@gnu.org>
20211
20212 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
20213 load foreign architecture modules correctly anyway. Keep
20214 support for loading host architecture modules, whether we
20215 compile them or not.
20216
737feb35 202172008-07-17 Pavel Roskin <proski@gnu.org>
20218
3f4ce737 20219 * configure.ac: Use -m32 or -m64 regardless of whether we had to
20220 change target_cpu. The compiler default can mismatch target_cpu
20221 in any case.
20222
4ad2d049 20223 * disk/efi/efidisk.c: Fix format warnings on x86_64.
20224 * kern/efi/efi.c: Likewise.
20225
f6130a12 20226 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
20227 target compiler is functional.
20228 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
20229 are set up.
20230
58393a2d 20231 * configure.ac: Default to efi platform for x86_64-apple. Allow
20232 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
20233 adjustments from the rest, only do them if target is not
20234 explicitly given. Merge other adjustments with the final sanity
20235 check. Remove an extraneous check for supported CPU. Be
20236 specific which CPU and which platform is not supported.
20237
737feb35 20238 * configure.ac: Default to pc platform for x86_64.
20239
546f966a 202402008-07-17 Robert Millan <rmh@aybabtu.com>
20241
20242 Partial LinuxBIOS -> Coreboot rename.
20243
20244 * conf/i386-linuxbios.rmk: Renamed to ...
20245 * conf/i386-coreboot.rmk: ... this.
20246 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
20247 * configure.ac: Accept "coreboot" as input platform (but maintain
20248 compatibility with "linuxbios").
20249 * include/grub/i386/linuxbios: Renamed to ...
20250 * include/grub/i386/coreboot: ... this.
20251
20011694 202522008-07-17 Bean <bean123ch@gmail.com>
20253
20254 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 20255 (appleldr_mod_SOURCE): New variable.
20011694 20256 (appleldr_mod_CFLAGS): Likewise.
20257 (appleldr_mod_LDFLAGS): Likewise.
20258 (pci_mod_SOURCES): Likewise.
20259 (pci_mod_CFLAGS): Likewise.
20260 (pci_mod_LDFLAGS): Likewise.
20261 (lspci_mod_SOURCES): Likewise.
20262 (lspci_mod_CFLAGS): Likewise.
20263 (lspci_mod_LDFLAGS): Likewise.
20264
20265 * conf/x86_64-efi.rmk: New file.
20266
20267 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
20268 macro.
20269 (grub_efidisk_write): Likewise.
20270
20271 * include/efi/api.h (efi_call_0): New macro.
20272 (efi_call_1): Likewise.
20273 (efi_call_2): Likewise.
20274 (efi_call_3): Likewise.
20275 (efi_call_4): Likewise.
20276 (efi_call_5): Likewise.
20277 (efi_call_6): Likewise.
20278
20279 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
20280 grub_rescue_cmd_chainloader.
20281
20282 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
20283 (grub_pe32_optional_header): Change some fields based on i386 or
20284 x86_64 platform.
20285 (GRUB_PE32_PE32_MAGIC): Likewise.
20286
20287 * include/grub/efi/uga_draw.h: New file.
20288
20289 * include/grub/elf.h (STN_ABS): New constant.
20290 (R_X86_64_NONE): Relocation constant for x86_64.
20291 (R_X86_64_64): Likewise.
20292 (R_X86_64_PC32): Likewise.
20293 (R_X86_64_GOT32): Likewise.
20294 (R_X86_64_PLT32): Likewise.
20295 (R_X86_64_COPY): Likewise.
20296 (R_X86_64_GLOB_DAT): Likewise.
20297 (R_X86_64_JUMP_SLOT): Likewise.
20298 (R_X86_64_RELATIVE): Likewise.
20299 (R_X86_64_GOTPCREL): Likewise.
20300 (R_X86_64_32): Likewise.
20301 (R_X86_64_32S): Likewise.
20302 (R_X86_64_16): Likewise.
20303 (R_X86_64_PC16): Likewise.
20304 (R_X86_64_8): Likewise.
20305 (R_X86_64_PC8): Likewise.
20306
20307 * include/grub/i386/efi/pci.h: New file.
20308
20309 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
20310 Change it value based on platform.
20311 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
20312 (GRUB_E820_RAM): Likewise.
20313 (GRUB_E820_RESERVED): Likewise.
20314 (GRUB_E820_ACPI): Likewise.
20315 (GRUB_E820_NVS): Likewise.
20316 (GRUB_E820_EXEC_CODE): Likewise.
20317 (GRUB_E820_MAX_ENTRY): Likewise.
20318 (grub_e820_mmap): New structure.
20319 (linux_kernel_header): Change the efi field according to different
20320 kernel version, also field from linux_kernel_header.
20321
20322 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
20323
20324 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
20325 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
20326 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
20327 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
20328 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
20329 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
20330 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
20331 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
20332 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
20333 (GRUB_PCI_ADDR_IO_MASK): Likewise.
20334
20335 * include/grub/x86_64/efi/kernel.h: New file.
20336
20337 * include/grub/x86_64/efi/loader.h: Likewise.
20338
20339 * include/grub/x86_64/efi/machine.h: Likewise.
20340
20341 * include/grub/x86_64/efi/pci.h: Likewise.
20342
20343 * include/grub/x86_64/efi/time.h: Likewise.
20344
20345 * include/grub/x86_64/linux.h: Likewise.
20346
20347 * include/grub/x86_64/setjmp.h: Likewise.
20348
20349 * include/grub/x86_64/time.h: Likewise.
20350
20351 * include/grub/x86_64/types.h: Likewise.
20352
20353 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
20354 GRUB_TARGET_SIZEOF_VOID_P.
20355
20356 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
20357 (grub_efi_locate_handle): Likewise.
20358 (grub_efi_open_protocol): Likewise.
20359 (grub_efi_set_text_mode): Likewise.
20360 (grub_efi_stall): Likewise.
20361 (grub_exit): Likewise.
20362 (grub_reboot): Likewise.
20363 (grub_halt): Likewise.
20364 (grub_efi_exit_boot_services): Likewise.
20365 (grub_get_rtc): Likewise.
20366
20367 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
20368 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
20369 (grub_efi_allocate_pages): Wrap efi calls.
20370 (grub_efi_free_pages): Wrap efi calls.
20371 (grub_efi_get_memory_map): Wrap efi calls.
20372
20373 * kern/x86_64/dl.c: New file.
20374
20375 * kern/x86_64/efi/callwrap.S: Likewise.
20376
20377 * kern/x86_64/efi/startup.S: Likewise.
20378
20379 * loader/efi/appleloader.c: Likewise.
20380
20381 * loader/efi/chainloader.c (cmdline): New variable.
20382 (grub_chainloader_unload): Wrap efi calls.
20383 (grub_chainloader_boot): Likewise.
20384 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
20385 command line.
20386
20387 * loader/efi/chainloader_normal.c (chainloader_command):
20388 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
20389 command line.
20390
20391 * loader/i386/efi/linux.c (allocate_pages): Change allocation
20392 method.
20393 (grub_e820_add_region): New function.
20394 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
20395 booting.
20396 (grub_find_video_card): New function.
20397 (grub_linux_setup_video): New function.
20398 (grub_rescue_cmd_linux): Probe for video information.
20399
20400 * normal/x86_64/setjmp.S: New file.
20401
20402 * term/efi/console.c (map_char): New function.
20403 (grub_console_putchar): Map unicode char.
20404 (grub_console_checkkey): Wrap efi calls.
20405 (grub_console_getkey): Likewise.
20406 (grub_console_getwh): Likewise.
20407 (grub_console_gotoxy): Likewise.
20408 (grub_console_cls): Likewise.
20409 (grub_console_setcolorstate): Likewise.
20410 (grub_console_setcursor): Likewise.
20411
20412 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
20413
59652a20 204142008-07-16 Pavel Roskin <proski@gnu.org>
20415
ef294055 20416 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
20417 format strings.
20418
59652a20 20419 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
20420 pointer, not an integer. This fixes a warning and prevents
20421 precision loss on 64-bit systems.
20422 (relocate_addresses): Remove unneeded cast.
20423
afc3b5d7 204242008-07-15 Pavel Roskin <proski@gnu.org>
20425
506b2b3e 20426 * kern/i386/ieee1275/init.c: Include grub/cache.h.
20427
62ead89c 20428 * term/ieee1275/ofconsole.c: Disable code unused on i386.
20429
c4cd51d7 20430 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
20431 Fix comparison between signed and unsigned.
20432
0d3d8f28 20433 * include/grub/i386/ieee1275/console.h: Declare
20434 grub_console_init() and grub_console_fini().
20435
8804b286 20436 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
20437 It's empty and unused.
20438
ee01cf35 20439 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
20440 beginning to avoid warnings with some compilers.
20441
afc3b5d7 20442 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
20443 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
20444
e4e8eaa5 204452008-07-14 Pavel Roskin <proski@gnu.org>
20446
407aceb4 20447 * kern/env.c (grub_register_variable_hook): Don't copy empty
20448 string, it leaks memory. Pass "" to grub_env_set(), it should
20449 handle constant strings.
20450
e4e8eaa5 20451 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
20452 * commands/cmp.c (grub_cmd_cmp): Likewise.
20453 * kern/dl.c (grub_dl_flush_cache): Likewise.
20454 (grub_dl_load_core): Likewise.
20455 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
20456 (grub_elf64_load_phdrs): Likewise.
20457
d4e2dad3 204582008-07-13 Pavel Roskin <proski@gnu.org>
20459
20460 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
20461 between signed and unsigned.
20462 (LzmaEnc_Finish): Fix warning about an unused parameter.
20463
aa24b516 204642008-07-13 Bean <bean123ch@gmail.com>
20465
20466 * Makefile.in (enable_lzo): New rule.
20467
20468 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
20469
20470 * configure.ac (ENABLE_LZO): New option --enable-lzo.
20471
20472 * boot/i386/pc/lnxboot.S: #include <config.h>.
20473
20474 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 20475 its value according to the compression algorithm used, lzo or lzma.
aa24b516 20476
20477 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
20478 compression algorithm according to configure macro.
20479
20480 * kern/i386/pc/startup.S (codestart): Likewise.
20481
20482 * kern/i386/pc/lzma_decode.S: New file.
20483
20484 * include/grub/lib/LzFind.h: Likewise.
20485
20486 * include/grub/lib/LzHash.h: Likewise.
20487
20488 * include/grub/lib/LzmaDec.h: Likewise.
20489
20490 * include/grub/lib/LzmaEnc.h: Likewise.
20491
20492 * include/grub/lib/LzmaTypes.h: Likewise.
20493
20494 * lib/LzFind.c: Likewise.
20495
20496 * lib/LzmaDec.c: Likewise.
20497
20498 * lib/LzmaEnc.c: Likewise.
20499
4ae821ac 205002008-07-13 Bean <bean123ch@gmail.com>
20501
20502 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
20503 (grub_ext4_extent_header): New structure.
20504 (grub_ext4_extent): Likewise.
20505 (grub_ext4_extent_idx): Likewise.
20506 (grub_ext4_find_leaf): New function.
20507 (grub_ext2_read_block): Handle extents.
20508
9a745147 205092008-07-12 Robert Millan <rmh@aybabtu.com>
20510
20511 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
20512
d49a4cf6 205132008-07-11 Robert Millan <rmh@aybabtu.com>
20514
20515 * util/grub.d/40_custom.in: New file. Example on how to add custom
20516 entries to /etc/grub.d.
20517 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
20518 40_custom (implicitly, by merging all the grub.d rules).
20519
947414b4 205202008-07-11 Pavel Roskin <proski@gnu.org>
20521
0059cf6f 20522 * commands/read.c (grub_getline): Fix invalid memory access.
20523 Don't add newline to the variable value.
20524
947414b4 20525 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
20526 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
20527 (serial_hw_get_port): Check validity of the port number.
20528 (grub_cmd_serial): Check return value of serial_hw_get_port().
20529
62a02d00 205302008-07-07 Pavel Roskin <proski@gnu.org>
20531
20532 * boot/i386/pc/diskboot.S (notification_string): Replace
20533 "Loading kernel" with just "loading". This is shorter, less
20534 confusing and saves a few bytes for possible future changes.
20535
3e5581b0 205362008-07-05 Pavel Roskin <proski@gnu.org>
20537
ea387a48 20538 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
20539 size for ATAPI devices, they are undefined. Output sector
20540 number in decimal form.
20541
3e5581b0 20542 * disk/ata.c: Use named constants for status bits.
20543
fdecb8fd 205442008-07-04 Pavel Roskin <proski@gnu.org>
20545
bcd35b90 20546 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
20547 grub_addr_t before casting it to the void pointer to fix a
20548 warning. Non-addressable regions are discarded earlier.
20549 (grub_arch_modules_addr): Cast _end to grub_addr_t.
20550 * kern/i386/linuxbios/table.c: Include grub/misc.h.
20551 (check_signature): Don't shadow table_header.
20552 (grub_linuxbios_table_iterate): Cast numeric constants to
20553 grub_linuxbios_table_header_t.
20554 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
20555 grub_stop().
20556
af58ab3d 20557 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
20558 prevent warnings.
20559
1759aa57 20560 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
20561 pointer, which can cause warnings. Support 64-bit addresses.
20562
fdecb8fd 20563 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
20564 of sizeof(long). This fixes PowerPC image generation on x86_64.
20565
8516d2a8 205662008-07-04 Robert Millan <rmh@aybabtu.com>
20567
20568 This fixes a performance issue when pc & gpt partmap iterators
20569 didn't abort iteration even after our hook found what it was
fe987087 20570 looking for (often causing expensive probes of non-existent drives).
8516d2a8 20571
20572 Some callers relied on previous buggy behaviour, since they would
34c44600 20573 raise an error when their own hooks caused early abortion of its
8516d2a8 20574 iteration.
20575
20576 * kern/device.c (grub_device_open): Improve error message.
20577 * disk/lvm.c (grub_lvm_open): Likewise.
20578 * disk/raid.c (grub_raid_open): Likewise.
20579
20580 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
20581 when hook requests it, independently of grub_errno.
20582 (pc_partition_map_probe): Do not fail when find_func() caused
20583 early abortion of pc_partition_map_iterate().
20584
20585 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
20586 when hook requests it, independently of grub_errno.
20587 (gpt_partition_map_probe): Do not fail when find_func() caused
20588 early abortion of gpt_partition_map_iterate().
20589
20590 * kern/partition.c (grub_partition_iterate): Abort parent iteration
20591 when hook requests it, independently of grub_errno. Do not fail when
20592 part_map_iterate_hook() caused early abortion of p->iterate().
20593
20594 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
20595 when grub_partition_iterate() returned with non-zero.
20596
277d0de9 205972008-07-03 Pavel Roskin <proski@gnu.org>
20598
20599 * disk/ata.c (grub_ata_pio_write): Check status before writing,
20600 like we do in grub_ata_pio_read().
20601 (grub_ata_readwrite): Always write individual sectors. Fix the
20602 sector count for the remainder.
20603 (grub_ata_write): Enable writing to ATA devices. Correctly
20604 report error for ATAPI devices.
20605
d4c9b428 206062008-07-02 Pavel Roskin <proski@gnu.org>
20607
e43fc690 20608 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
20609 warning.
20610
f707af42 20611 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
20612 for every read sector, we already increment it for the whole
20613 batch. This fixes reading more than 256 sectors at once.
20614
11e16b15 20615 * util/grub-editenv.c (cmd_info): Cast argument to long
20616 explicitly. ptrdiff_t reduces to int on i386.
20617
cbabfdd4 20618 * util/grub-editenv.c (main): Be specific which parameter is
20619 missing.
20620
b8fbce0a 20621 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
20622 (memdisk): Make memdisk_orig_addr a pointer.
20623
c9c8e606 20624 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
20625 for file offsets, use grub_off_t instead. Fix printf format
20626 warnings.
20627
ca62e598 20628 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
20629 there. Real unexpected warnings should not drown in the noise
20630 about known problems.
20631
ce8d1766 20632 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
20633 grub_disk_addr_t for memory addresses.
20634
00c7a56a 20635 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
20636 explicitly to fix a warning.
20637
08d3ef09 20638 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
20639
cb71ba20 20640 * Makefile.in (MODULE_LDFLAGS): New variable.
20641 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
20642 the linker accepts --build-id=none.
20643 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
20644 MODULE_LDFLAGS.
20645 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
20646
d4c9b428 20647 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
20648 those in Linux XFS code. Provide a way to access 64-bit parent
20649 inode.
20650 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
20651 the end of struct grub_xfs_dir_header.
20652
d4156eee 206532008-07-02 Bean <bean123ch@gmail.com>
20654
20655 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
20656 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
20657 and GRUB_IEEE1275_FLAG_NO_ANSI.
20658
20659 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
20660 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
20661 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
20662
20663 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
20664 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
20665
20666 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
20667 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
20668
20669 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
20670 esc sequence on non ANSI terminal.
20671 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
20672
20673 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
20674 beginning of file.
20675
2270f77b 206762008-07-02 Bean <bean123ch@gmail.com>
20677
20678 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
20679 (grub_editenv_SOURCES): New variable.
20680 (pkglib_MODULES): Add loadenv.mod.
20681 (loadenv_mod_SOURCES): New variable.
20682 (loadenv_mod_CFLAGS): Likewise.
20683 (loadenv_mod_LDFLAGS): Likewise.
20684
20685 * include/grub/envblk.h: New file.
20686
20687 * util/envblk.c: New file.
20688
20689 * util/grub-editenv.c: New file.
20690
20691 * commands/loadenv.c: New file.
20692
0e9e51ec 206932008-07-01 Pavel Roskin <proski@gnu.org>
20694
d89b7634 20695 * include/multiboot2.h (struct multiboot_tag_module): Use char,
20696 not unsigned char. This fixes warnings and is consistent with
20697 other tags.
20698
bf1835b1 20699 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
20700
8222a04b 20701 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
20702
6a42d99d 20703 * term/tparm.c (analyze): Always set *popcount.
20704
10b159d1 20705 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
20706 cast to fix a warning.
20707
b8789f6c 20708 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
20709 cast to suppress a warning.
20710
29d7e38a 20711 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
20712 grub_fshelp_read_file() expects.
20713
f341f669 20714 * fs/fat.c: Fix UUID calculation on big-endian systems. We
20715 write uuid as a 32-bit value in CPU byte order, so declare and
20716 use it as such.
20717
0e9e51ec 20718 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
20719 long if the format specifier expects it.
20720 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
20721 * partmap/pc.c (pc_partition_map_iterate): Likewise.
20722 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
20723 long to fix a warning.
20724 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
20725 grub_dprintf() arguments to fix warnings.
20726
3aefa857 207272008-06-30 Pavel Roskin <proski@gnu.org>
20728
56c7668b 20729 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
20730 install_bsd_part immediately before core.img is embedded or
20731 modified on disk. This fixes core.img verification if core.img
20732 cannot be embedded.
20733
3aefa857 20734 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
20735 core_path to calculate the blocklist.
20736 Patch from Javier Martín <lordhabbit@gmail.com>
20737
5444088d 207382008-06-29 Robert Millan <rmh@aybabtu.com>
20739
20740 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
20741 block to disk block.
20742 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
20743 Patch from Niels Böhm <bitbucket@arcor.de>
20744
674835c8 207452008-06-29 Robert Millan <rmh@aybabtu.com>
20746
20747 * util/update-grub_lib.in (font_path): Search for fonts in
20748 /boot/grub first, which is more likely to be readable (we aren't
20749 deciding where fonts live, just looking for them).
20750
f527dbc8 207512008-06-26 Pavel Roskin <proski@gnu.org>
20752
6c2d8df6 20753 * util/biosdisk.c (read_device_map): Don't leave dead map
20754 entries for devices failing stat() check.
20755
f527dbc8 20756 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
20757 core_path_dev for the core.img path on the target device.
20758
aebe3d13 207592008-06-26 Robert Millan <rmh@aybabtu.com>
20760
20761 * disk/fs_uuid.c: New file.
20762 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
20763 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
20764 (fs_uuid_mod_LDFLAGS): New variables.
20765 * include/grub/disk.h (grub_disk_dev_id): Add
20766 `GRUB_DISK_DEVICE_UUID_ID'.
20767 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
20768 implement iterate().
20769
37aaf354 207702008-06-26 Robert Millan <rmh@aybabtu.com>
20771
20772 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
20773 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
20774 Linux image includes no initrd.
20775
25ff262a 207762008-06-21 Javier Martín <lordhabbit@gmail.com>
20777
20778 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
20779 call to resolve the core image location that effectively appended the
20780 name twice.
20781
76a2bd44 207822008-06-21 Robert Millan <rmh@aybabtu.com>
20783
20784 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
20785 call from here ...
20786
20787 * util/grub.d/10_hurd.in: ... to here ...
20788 * util/grub.d/10_linux.in: ... and here.
20789
650e1c79 207902008-06-19 Robert Millan <rmh@aybabtu.com>
20791
fe987087 20792 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 20793 after it has been set by grub_machine_set_prefix().
20794
6ce63911 207952008-06-19 Robert Millan <rmh@aybabtu.com>
20796
20797 * commands/search.c (search_label, search_fs_uuid, search_file): Print
20798 search result when not saving to variable, not the other way around.
20799 When saving to variable, abort iteration as soon as a match is found.
20800
73940cec 208012008-06-19 Robert Millan <rmh@aybabtu.com>
20802
20803 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
20804 check for partition that provides /boot/grub. Its logic is flawed,
20805 as it prevents prepare_grub_to_access_device() from being called
20806 multiple times.
20807
3c62a39d 208082008-06-19 Robert Millan <rmh@aybabtu.com>
20809
20810 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
20811 "insmod" command directly when abstraction modules are needed,
fe987087 20812 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 20813 since it had already been processed).
20814
47395a42 208152008-06-19 Pavel Roskin <proski@gnu.org>
20816
20817 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
20818 changed. This is needed in case GRUB_LIBDIR changes.
20819 * conf/i386-ieee1275.rmk: Likewise.
20820 * conf/i386-linuxbios.rmk: Likewise.
20821 * conf/i386-pc.rmk: Likewise.
20822 * conf/powerpc-ieee1275.rmk: Likewise.
20823
a145ac2d 208242008-06-18 Pavel Roskin <proski@gnu.org>
20825
20826 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
20827 kernel_elf_symlist.c to symlist.c for consistency with other
20828 architectures. Update all users.
20829 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
20830
7847c51e 208312008-06-18 Robert Millan <rmh@aybabtu.com>
20832
20833 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
20834 it in prefix.
20835
20836 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
20837 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
20838 a RAID device, run setup() for all members independently on whether
20839 LVM abstraction is being used.
20840 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
20841 If grub-mkimage has set `*install_dos_part == -2', don't override this
20842 value.
20843 Perform *install_dos_part adjustments independently on whether
20844 we're embedding or not.
20845 Clarify error message when image is too big for embedding.
20846 Remove duplicate *install_dos_part stanza.
20847
b23e5644 208482008-06-17 Robert Millan <rmh@aybabtu.com>
20849
20850 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
20851 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
20852 variables.
20853 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
20854 values in grub_ofconsole_normal_color and
20855 grub_ofconsole_highlight_color (they're not directly related to
20856 background and foreground).
20857 (grub_ofconsole_setcolorstate): Extract background and foreground
20858 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
20859
0aac2f79 208602008-06-17 Robert Millan <rmh@aybabtu.com>
20861
20862 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
20863 /boot/grub for the check in last commit, not /boot (they could be
20864 different partitions).
20865
3cca7ef3 208662008-06-16 Robert Millan <rmh@aybabtu.com>
20867
20868 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
20869 asked to setup access for the same partition that provides /boot,
20870 don't bother using UUIDs since our root already has the value we
20871 want.
20872
347396d8 208732008-06-16 Robert Millan <rmh@aybabtu.com>
20874
20875 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
20876 I2O devices.
20877 Patch from Sven Mueller <sven@debian.org>.
20878
991477f8 208792008-06-16 Robert Millan <rmh@aybabtu.com>
20880
20881 * util/update-grub.in: Check for $EUID instead of $UID.
20882 Reported by Vincent Zweije.
20883
d31a32a1 208842008-06-16 Bean <bean123ch@gmail.com>
20885
fe987087 20886 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 20887 (grub_ext2_read_block): Likewise.
20888 (grub_ext2_read_inode): Likewise.
20889 (grub_ext2_mount): Likewise.
20890 (grub_ext2_close): Likewise.
20891 (grub_ext3_get_journal): Removed.
20892
fe987087 20893 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 20894 (grub_reiserfs_read_symlink): Likewise.
20895 (grub_reiserfs_mount): Likewise.
20896 (grub_reiserfs_open): Likewise.
20897 (grub_reiserfs_read): Likewise.
20898 (grub_reiserfs_close): Likewise.
20899 (grub_reiserfs_get_journal): Removed.
20900
20901 * fs/fshelp.c (grub_fshelp_read): Removed.
20902 (grub_fshelp_map_block): Likewise.
20903
20904 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
20905 (grub_fshelp_journal): Likewise.
20906 (grub_fshelp_read): Likewise.
20907 (grub_fshelp_map_block): Likewise.
20908
3540a760 209092008-06-16 Pavel Roskin <proski@gnu.org>
20910
20911 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
20912 floating point anymore.
20913 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
20914
95614c84 209152008-06-15 Pavel Roskin <proski@gnu.org>
20916
20917 * commands/ls.c (grub_ls_list_files): Use integer calculations
20918 for human readable format, avoid floating point use.
20919 * kern/misc.c (grub_ftoa): Remove.
20920 (grub_vsprintf): Remove floating point support.
20921
50465dd6 209222008-06-15 Robert Millan <rmh@aybabtu.com>
20923
fe6b695a 20924 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 20925 devices.
20926 Reported by Max Vozeler.
20927
a9207284 209282008-06-15 Robert Millan <rmh@aybabtu.com>
20929
20930 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
20931 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
20932 skipped later.
20933 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
20934 the beginning of the prefix.
20935
20936 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
20937 It is assumed that if we have a memdisk, grub-mkimage has set
20938 grub_prefix to include the "(memdisk)" drive in it.
20939
a7cbd45a 209402008-06-15 Robert Millan <rmh@aybabtu.com>
20941
20942 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
20943 Initialize keyboard controller after registering the terminal, so that
20944 grub_printf() can be called from grub_keyboard_controller_init().
20945
21cf716a 209462008-06-15 Robert Millan <rmh@aybabtu.com>
20947
20948 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
20949 extent-btree which is written as big endian on disk.
20950 Reported by Alain Greppin <al@chilibi.org>.
20951
23a64d8e 209522008-06-14 Robert Millan <rmh@aybabtu.com>
20953
20954 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
20955 * util/i386/pc/grub-install.in (modules): Likewise.
20956
d687651c 209572008-06-13 Pavel Roskin <proski@gnu.org>
20958
20959 * commands/ls.c (grub_ls_list_files): Fix format warnings.
20960
dfe9ddd4 209612008-06-13 Bean <bean123ch@gmail.com>
20962
20963 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
20964
20965 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
20966
20967 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
20968 to indicate sparse block.
20969
16ae7781 209702008-06-12 Pavel Roskin <proski@gnu.org>
20971
e6d1a308 20972 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
20973 number, grub_fshelp_read() does it for us.
20974
16ae7781 20975 * fs/fshelp.c (grub_fshelp_read): New function. Implement
20976 linear disk read with journal translation.
20977 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
20978 * include/grub/fshelp.h: Declare grub_fshelp_read().
20979
40fd3a2b 209802008-06-09 Pavel Roskin <proski@gnu.org>
20981
20982 * fs/minix.c (grub_minix_mount): Handle error reading
20983 superblock.
20984
f5679726 209852008-06-08 Robert Millan <rmh@aybabtu.com>
20986
20987 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
20988 don't append the RAID prefix afterwards.
20989 Reported by Clint Adams.
20990
ce525529 209912008-06-08 Robert Millan <rmh@aybabtu.com>
20992
20993 Based on description from Pavel:
20994 * kern/disk.c (grub_disk_check_range): Rename to ...
20995 (grub_disk_adjust_range): ... this. Add a comment explaining the
20996 tasks performed by this function.
20997
ad4936a0 209982008-06-08 Robert Millan <rmh@aybabtu.com>
20999
21000 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
21001 `num_serial' (for consistency with other variables).
21002 (struct grub_ntfs_data): Add `uuid' member.
21003 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
21004 (grub_ntfs_uuid): New function.
21005 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
21006
dc20b0f9 210072008-06-07 Pavel Roskin <proski@gnu.org>
21008
21009 * util/biosdisk.c (open_device): Revert last change to the
21010 function, it broke installation. The sector needs to be
21011 different dependent on which device is opened.
21012
c5e3cfba 210132008-06-06 Robert Millan <rmh@aybabtu.com>
21014
21015 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
21016 rest of GRUB, and breakage doesn't happen if its value were modified.
21017
21018 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21019 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
21020 a constant (same value).
21021 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
21022 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
21023
26a1f8c4 210242008-06-06 Robert Millan <rmh@aybabtu.com>
21025
21026 * util/biosdisk.c (open_device): Do not modify sector offset when
21027 accessing a partition. kern/disk.c already handles this for us.
21028
25d6b327 210292008-06-06 Robert Millan <rmh@aybabtu.com>
21030
21031 * util/grub-emu.c (grub_machine_init): Move code in this function from
21032 here ...
21033 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
21034 segfault in case grub_printf() is called).
21035
21036 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
21037 grub_probe. Update all users not to explicitly add it again.
21038 (grub_device): New variable; contains corresponding device for grubdir.
21039 (fs_module, partmap_module, devabstraction_module): Pass
21040 `--device ${grub_device}' to grub_probe to avoid traversing /dev
21041 every time.
21042
9ece62fb 210432008-06-05 Robert Millan <rmh@aybabtu.com>
21044
21045 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
21046 is found, print it (same layout as with labels).
21047
1ad36d37 210482008-06-04 Robert Millan <rmh@aybabtu.com>
21049
21050 * util/biosdisk.c (get_drive): Rename to ...
21051 (find_grub_drive): ... this. Update all users.
21052
21053 (get_os_disk): Rename to ...
21054 (convert_system_partition_to_system_disk): ... this. Update all users.
21055
21056 (find_drive): Rename to ...
21057 (find_system_device): ... this. Update all users.
21058
e6a30859 210592008-06-04 Robert Millan <rmh@aybabtu.com>
21060
21061 * util/biosdisk.c (get_os_disk): Handle IDA devices.
21062 * util/grub-mkdevicemap.c (get_mmc_disk_name)
21063 (make_device_map): Likewise.
21064
00c108a4 210652008-06-01 Robert Millan <rmh@aybabtu.com>
21066
21067 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
21068 before dereferencing it.
21069
21070 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
21071 union with fat12/fat16-specific ones. Add some new fields, including
21072 `num_serial' for both versions.
21073 (struct grub_fat_data): Add `uuid' member.
21074 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
21075 names. Initialize `data->uuid' using `num_serial'.
21076 (grub_fat_uuid): New function.
21077 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
21078
21079 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
21080 (grub_reiserfs_uuid): New function.
21081 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
21082 member.
21083
21084 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
21085 (grub_xfs_uuid): New function.
21086 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
21087
1385c5bb 210882008-06-01 Robert Millan <rmh@aybabtu.com>
21089
21090 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
21091 code that is backward compatible with pre-uuid search command.
21092
c682dfd7 210932008-05-31 Robert Millan <rmh@aybabtu.com>
21094
21095 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
21096 floppies after everything else, to ensure floppy drive isn't accessed
21097 unnecessarily (patch from Bean).
21098
b7db5d47 210992008-05-31 Robert Millan <rmh@aybabtu.com>
21100
21101 * commands/search.c (search_label, search_fs_uuid, search_file): Do
21102 not print device names when we were asked to set a variable.
21103
6e037aa9 211042008-05-31 Robert Millan <rmh@aybabtu.com>
21105
21106 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
21107 using "cursor-on" and "cursor-off" commands (understood at least by
21108 the Open Firmware flavour on OLPC).
21109
41305bc8 211102008-05-31 Michael Gorven <michael@gorven.za.net>
21111
21112 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
21113 on and off sequences.
21114
69ba137e 211152008-05-31 Robert Millan <rmh@aybabtu.com>
21116
21117 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
21118 * util/update-grub.in: Likewise.
21119
520ae21b 211202008-05-30 Pavel Roskin <proski@gnu.org>
21121
21122 * util/biosdisk.c (linux_find_partition): Simplify logic and
21123 make the code more universal. Keep special processing for
21124 devfs, but use a simple rule for all other devices. If the
21125 device ends with a number, append 'p' and the partition number.
21126 Otherwise, append only the partition number.
21127
5786569b 211282008-05-30 Robert Millan <rmh@aybabtu.com>
21129
21130 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
21131 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
21132 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
21133 the `root' parameter to Linux.
21134
51500452 211352008-05-30 Robert Millan <rmh@aybabtu.com>
21136
21137 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
21138 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
21139 --fs_uuid with --fs-uuid.
21140 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
21141 all filesystems support them).
21142
811d3878 211432008-05-30 Robert Millan <rmh@aybabtu.com>
21144
21145 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 21146 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 21147
cab63c95 211482008-05-30 Robert Millan <rmh@aybabtu.com>
21149
21150 * util/grub.d/00_header.in: Remove obsolete comment referencing
21151 convert_system_path_to_grub_path().
21152 * util/update-grub.in: Likewise.
21153 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
21154 (convert_system_path_to_grub_path): Add a warning message explaining
21155 that this function is deprecated. Rely on is_path_readable_by_grub()
21156 for the readability checks.
21157 (font_path): Use is_path_readable_by_grub() for the readability
21158 check rather than convert_system_path_to_grub_path().
21159
972e2f7a 211602008-05-30 Robert Millan <rmh@aybabtu.com>
21161
21162 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
21163 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
21164 converting it first.
21165 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
21166 grub.cfg for access to font file, and afterwards call it again to set
21167 the root device.
21168
62191274 211692008-05-30 Robert Millan <rmh@aybabtu.com>
21170
21171 * commands/search.c (options): Add --fs_uuid option.
21172 (search_fs_uuid): New function.
21173 (grub_cmd_search): Fix --set argument passing.
21174 Use search_fs_uuid() when requested via --fs_uuid.
21175 (grub_search_init): Update help message.
21176 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
21177 and redeclare it as an array of 16-bit words.
21178 (grub_ext2_uuid): New function.
21179 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
21180 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
21181 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
21182 (GRUB_DEVICE_BOOT_UUID): New variables.
21183 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
21184 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
21185 whenever possible.
21186 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
21187 just assume `root' variable has the right value.
21188 * util/grub.d/10_linux.in: Likewise.
21189 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
21190 via PRINT_FS_UUID.
21191 (main): Recognise `-t fs_uuid' argument.
21192
01b73ec8 211932008-05-30 Robert Millan <rmh@aybabtu.com>
21194
21195 * util/biosdisk.c (map): Redefine structure to hold information
21196 about GRUB drive name.
fe6b695a 21197 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 21198 drive names.
21199 (call_hook): Remove.
21200 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
21201 member. Assume drive has partitions.
21202 (grub_util_biosdisk_open): Access device names via `.device' struct
21203 member.
21204 (open_device): Likewise.
21205 (find_drive): Likewise.
21206 (read_device_map): Adjust map[] usage to match the new struct
21207 definition. Don't check for duplicates (still possible, but not cheap
21208 anymore).
21209 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
21210 (make_device_name): Remove assumption of BIOS-like drive names.
21211
22f16596 212122008-05-30 Pavel Roskin <proski@gnu.org>
21213
21214 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
21215 compiling execute.c doesn't need grub_script.tab.h anymore.
21216 (normal/command.c_DEPENDENCIES): Likewise.
21217 (normal/function.c_DEPENDENCIES): Likewise.
21218 * conf/i386-ieee1275.rmk: Likewise.
21219 * conf/i386-linuxbios.rmk: Likewise.
21220 * conf/i386-pc.rmk: Likewise.
21221 * conf/powerpc-ieee1275.rmk: Likewise.
21222 * conf/sparc64-ieee1275.rmk: Likewise.
21223
528ad8f2 212242008-05-29 Pavel Roskin <proski@gnu.org>
21225
d1dff95d 21226 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
21227 when scanning metadata for volume group name.
21228
528ad8f2 21229 * include/grub/script.h: Don't include grub_script.tab.h. It's
21230 a generated file, which may only be included from the files with
21231 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
21232 use union YYSTYPE, as the later allows forward declaration.
21233 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
21234
47248e08 212352008-05-29 Robert Millan <rmh@aybabtu.com>
21236
21237 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
21238 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
21239 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
21240 (grub_console_checkkey): Add grub_dprintf() call to report unknown
21241 scan codes.
21242
ee632529 212432008-05-29 Robert Millan <rmh@aybabtu.com>
21244
21245 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
21246 control key combinations.
21247
eee96e08 212482008-05-29 Robert Millan <rmh@aybabtu.com>
21249
21250 * util/powerpc/ieee1275/grub-install.in: Move from here ...
21251 * util/ieee1275/grub-install.in: ... to here.
21252 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
21253 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
21254 (grub_install_SOURCES): Likewise.
21255
da9a6a94 212562008-05-29 Robert Millan <rmh@aybabtu.com>
21257
21258 * fs/affs.c: Update copyright year.
21259 * fs/ext2.c: Likewise.
21260 * fs/fshelp.c: Likewise.
21261 * fs/hfsplus.c: Likewise.
21262 * fs/ntfs.c: Likewise.
21263 * fs/xfs.c: Likewise.
21264 * include/grub/fshelp.h: Likewise.
21265 * util/grub-mkdevicemap.c: Likewise.
21266
12e65f3a 212672008-05-28 Robert Millan <rmh@aybabtu.com>
21268
21269 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
21270 might need to be fatfs to support some firmware implementations
21271 (e.g. OFW or EFI).
21272
23023641 212732008-05-28 Robert Millan <rmh@aybabtu.com>
21274
21275 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
21276 devices.
21277 * util/grub-mkdevicemap.c (get_mmc_disk_name)
21278 (make_device_map): Likewise.
21279
887d2619 212802008-05-20 Bean <bean123ch@gmail.com>
21281
21282 * fs/fshelp.c (grub_fshelp_map_block): New function.
21283 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
21284 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
21285
21286 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
21287 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
21288 (grub_fshelp_journal): New structure.
21289 (grub_fshelp_map_block): New function prototype.
21290 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
21291 (grub_fshelp_map_block): Likewise.
21292
21293 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
21294 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
21295 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
21296 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
21297 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
21298 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
21299 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
21300 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
21301 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
21302 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
21303 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
21304 (grub_ext2_sblock): New members for journal support.
21305 (grub_ext3_journal_header): New structure.
21306 (grub_ext3_journal_revoke_header): Likewise.
21307 (grub_ext3_journal_block_tag): Likewise.
21308 (grub_ext3_journal_sblock): Likewise.
21309 (grub_fshelp_node): New members logfile and journal.
21310 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
21311 grub_fshelp_map_block to get real block number.
21312 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
21313 number.
21314 (grub_ext2_read_inode): Likewise.
21315 (grub_ext3_get_journal): New function.
21316 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
21317 (grub_ext2_close): Release memory used by journal.
21318
21319 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
21320 (REISERFS_MAGIC_DESC_BLOCK): New macro.
21321 (grub_reiserfs_transaction_header): Renamed to
21322 grub_reiserfs_description_block, replace field data with real_blocks.
21323 (grub_reiserfs_commit_block): New structure.
21324 (grub_reiserfs_data): New member journal.
21325 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
21326 number.
21327 (grub_reiserfs_read_symlink): Likewise.
21328 (grub_reiserfs_iterate_dir): Likewise.
21329 (grub_reiserfs_open): Likewise.
21330 (grub_reiserfs_read): Likewise.
21331 (grub_reiserfs_get_journal): New function.
21332 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
21333 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
21334 using grub_reiserfs_get_journal.
21335 (grub_reiserfs_close): Release memory used by journal.
21336
21337 * fs/affs.c (grub_affs_read_block): Change block type to
21338 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
21339
21340 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
21341
21342 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
21343
21344 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
21345
21346 * fs/udf.c (grub_udf_read_block): Change block type to
21347 grub_disk_addr_t. Use type cast to avoid warning.
21348
21349 * fs/xfs.c (grub_xfs_read_block): Likewise.
21350
b7c6bed5 213512008-05-16 Christian Franke <franke@computer.org>
21352
21353 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
21354 to ensure that break with ESC will always work.
21355 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
21356 Remove ESC from keyboard queue.
21357
eedf167f 213582008-05-16 Christian Franke <franke@computer.org>
21359
21360 * util/biosdisk.c: [__CYGWIN__] Add includes.
21361 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
21362 (get_os_disk): Move variable declarations to OS specific
21363 parts to avoid warning.
21364 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
21365 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
21366 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
21367 Cygwin.
21368 * util/getroot.c: [__CYGWIN__] Add includes.
21369 (strip_extra_slashes): Fix "/" case.
21370 [__CYGWIN__] (get_win32_path): New function.
21371 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
21372 [__CYGWIN__] (find_root_device): Disable.
21373 [__CYGWIN__] (get_bootsec_serial): New function.
21374 [__CYGWIN__] (find_cygwin_root_device): Likewise.
21375 [__linux__] (grub_guess_root_device): Add early returns to simplify
21376 structure.
21377 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
21378 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
21379 check for Linux only.
21380
a079699e 213812008-05-15 Bean <bean123ch@gmail.com>
21382
21383 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
21384 keyboard hang problem in apple's intel mac.
21385
1cf4059a 213862008-05-09 Robert Millan <rmh@aybabtu.com>
21387
21388 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
21389 devices.
21390 * util/grub-mkdevicemap.c (get_virtio_disk_name)
21391 (make_device_map): Likewise.
21392 Reported by Aurelien Jarno <aurel32@debian.org>
21393
ed759390 213942008-05-07 Ian Campbell <ijc@hellion.org.uk>
21395
21396 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
21397 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
21398 (make_device_map): Output entries for xvd type disks.
21399
b56c4eaa 214002008-05-07 Robert Millan <rmh@aybabtu.com>
21401
21402 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
21403 devices.
21404 * util/grub-mkdevicemap.c (get_cciss_disk_name)
21405 (make_device_map): Likewise.
21406 Reported by Roland Dreier <rdreier@cisco.com>
21407
7f8866ed 214082008-05-07 Robert Millan <rmh@aybabtu.com>
21409
21410 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
21411 grub_strstr() call. Correct a few mistakes in failure path handling.
21412
b0346e0f 214132008-05-06 Robert Millan <rmh@aybabtu.com>
21414
21415 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
21416 Do not print a trailing slash (therefore, the root directory is an
21417 empty string).
21418 (convert_system_path_to_grub_path): Do not remove trailing slash
21419 from make_system_path_relative_to_its_root() output.
21420
21421 * util/i386/pc/grub-install.in: Add trailing slash to output from
21422 make_system_path_relative_to_its_root().
21423
6cf12cbd 214242008-05-06 Robert Millan <rmh@aybabtu.com>
21425
21426 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
21427 ensures that output lines aren't intermangled with those sent to
21428 stderr (via grub_util_info()).
21429 * util/grub-probe.c (grub_refresh): Likewise.
21430 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
21431
0fbb3117 214322008-05-05 Christian Franke <franke@computer.org>
21433
21434 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
21435 Add Cygwin device names.
21436 (get_ide_disk_name) [__CYGWIN__]: Likewise.
21437 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
21438 (check_device): Return error instead of success on empty name.
21439 (make_device_map): Move label inside linux specific code to
21440 prevent compiler warning.
21441
8124cdb7 214422008-04-30 Robert Millan <rmh@aybabtu.com>
21443
21444 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
21445 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
21446 first boot option.
21447 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
21448
094c01d0 214492008-04-29 Robert Millan <rmh@aybabtu.com>
21450
21451 * docs/grub.cfg: New file (example GRUB configuration).
21452
f4b1fc02 214532008-04-26 Robert Millan <rmh@aybabtu.com>
21454
329ce2a5 21455 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
21456 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
21457 and `disk/ieee1275/nand.c'.
f4b1fc02 21458
25f16ec1 214592008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 21460
25f16ec1 21461 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
21462 i386-linuxbios.
21463
21464 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
21465 change the buffer size to 4096 for cdrom device.
21466
21467 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
21468 and nand.mod.
21469 (_linux_mod_SOURCES): New variable.
21470 (_linux_mod_CFLAGS): Likewise.
21471 (_linux_mod_LDFLAGS): Likewise.
21472 (linux_mod_SOURCES): Likewise.
21473 (linux_mod_CFLAGS): Likewise.
21474 (linux_mod_LDFLAGS): Likewise.
21475 (nand_mod_SOURCES): Likewise.
21476 (nand_mod_CFLAGS): Likewise.
21477 (nand_mod_LDFLAGS): Likewise.
21478
21479 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
21480 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
21481 type property. (nand device in olpc don't have this property)
21482
21483 * include/grub/disk.h (grub_disk_dev_id): New macro
21484 GRUB_DISK_DEVICE_NAND_ID.
21485
21486 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
21487 function prototype.
21488 (grub_rescue_cmd_initrd): Likewise.
21489
21490 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
21491 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
21492 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 21493
25f16ec1 21494 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
21495 GRUB_MACHINE_IEEE1275 is defined.
21496
21497 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
21498 Use NESTED_FUNC_ATTR attribute on the hook parameter.
21499
21500 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
21501 on nested function heap_init.
21502 (grub_upper_mem): New variable for i386-ieee1275.
21503 (grub_get_extended_memory): New function for i386-ieee1275.
21504 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
21505
21506 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
21507 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
21508 property.
f19dbdb7 21509
25f16ec1 21510 * loader/i386/ieee1275/linux.c: New file.
21511
21512 * loader/i386/ieee1275/linux_normal.c: New file.
21513
21514 * disk/ieee1275/nand.c: New file.
21515
e89d61e9 215162008-04-18 Thomas Schwinge <tschwinge@gnu.org>
21517
21518 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
21519 value.
21520 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
21521
602566f6 215222008-04-18 Robert Millan <rmh@aybabtu.com>
21523
21524 Restructures early code path on ieee1275 to unify grub_main() as
21525 the first C function that is executed in every platform.
21526
21527 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
21528 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
21529 cmain().
21530 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
21531 * kern/ieee1275/cmain.c (cmain): Rename to ...
21532 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
21533 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
21534 at the beginning.
21535
57490c2b 215362008-04-18 Robert Millan <rmh@aybabtu.com>
21537
21538 * util/update-grub.in: Fix syntax error when setting
21539 `GRUB_PRELOAD_MODULES'.
21540 Reported by Stephane Chazelas <stephane@artesyncp.com>
21541
1977517d 215422008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
21543
21544 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
21545 section into account, newer toolchains generate unique build ids
21546 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 21547 we want build ids to be preserved
1977517d 21548 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
21549 far from other sections don't cause the raw binary images grow
21550 size
21551
bfb1f1a2 215522008-04-15 Robert Millan <rmh@aybabtu.com>
21553
21554 * disk/lvm.c: Update copyright year.
21555 * kern/misc.c: Likewise.
21556
01979850 215572008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
21558
21559 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 21560 there is no memory left for physical volume name.
01979850 21561
0a1150e2 215622008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
21563
21564 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
21565 volume name mapping to support bigger than 9 character names properly.
21566
82ead3fe 215672008-04-13 Robert Millan <rmh@aybabtu.com>
21568
21569 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
21570 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
21571
e54a72f5 215722008-04-13 Christian Franke <franke@computer.org>
21573
21574 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
21575 to create a floppy emulation boot CD when non emulation mode
21576 does not work.
21577 Enable Joliet CD filesystem extension.
21578
9fe86034 215792008-04-13 Robert Millan <rmh@aybabtu.com>
21580
21581 * kern/misc.c (grub_strncat): Fix off-by-one error.
21582 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
21583
21584 * kern/env.c (grub_env_context_close): Clear current context, not
21585 previous one.
21586 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
21587
21588 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
21589
7ceeee39 215902008-04-13 Robert Millan <rmh@aybabtu.com>
21591
21592 Improve robustness when handling LVM.
21593
21594 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 21595 (and leave `*p' unmodified).
7ceeee39 21596 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
21597 through it.
21598 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
21599 iterating through it.
21600 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
21601 through it.
fe6b695a 21602 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 21603 when due) on each grub_lvm_getvalue() or grub_strstr() call.
21604 Don't assume `vg->pvs != NULL' when iterating through it.
21605
58cd3d85 216062008-04-13 Robert Millan <rmh@aybabtu.com>
21607
21608 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
21609 * genmk.rb (partmap): New variable.
21610 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
21611 (#{partmap}): New target rule.
21612 * genpartmaplist.sh: New file.
21613 * Makefile.in (pkglib_DATA): Add partmap.lst.
21614 (partmap.lst): New target rule.
21615 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
21616 modules (including all partition maps), instead of preloading them.
21617
78b51059 216182007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
21619
21620 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
21621 `linux-boot-prober' (if installed) to detect other operating
21622 systems which are installed on the computer and add them to
21623 the boot menu.
21624 * conf/common.rmk: Build and install 30_os-prober.
21625
a91627b4 216262008-04-12 Robert Millan <rmh@aybabtu.com>
21627
21628 * kern/powerpc/ieee1275/init.c: Move from here ...
21629 * kern/ieee1275/init.c: ... to here. Update all users.
21630
21631 * kern/powerpc/ieee1275/cmain.c: Move from here ...
21632 * kern/ieee1275/cmain.c: ... to here. Update all users.
21633
21634 * kern/powerpc/ieee1275/openfw.c: Move from here ...
21635 * kern/ieee1275/openfw.c: ... to here. Update all users.
21636
21637 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
21638 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
21639
322562ea 216402008-04-10 Pavel Roskin <proski@gnu.org>
21641
21642 * configure.ac: Always use "_cv_" in cache variables for
21643 compatibility with Autoconf 2.62.
21644
a02a73c5 216452008-04-07 Robert Millan <rmh@aybabtu.com>
21646
21647 Revert grub/machine/init.h addition by Pavel (since it breaks on
21648 i386-ieee1275 and others):
21649 * util/i386/pc/misc.c: Remove grub/machine/init.h.
21650 * util/powerpc/ieee1275/misc.c: Likewise.
21651
25c024b1 216522008-04-07 Robert Millan <rmh@aybabtu.com>
21653
21654 * util/grub-probe.c (probe): Improve error message.
21655
3cbd2f98 216562008-04-07 Robert Millan <rmh@aybabtu.com>
21657
21658 * util/biosdisk.c (read_device_map): Skip devices that don't exist
21659 (this prevents the presence of a bogus entry from ruining the whole
21660 thing).
21661
87a297bf 216622008-04-06 Pavel Roskin <proski@gnu.org>
21663
36747a62 21664 * util/biosdisk.c: Include grub/util/biosdisk.h.
21665 * util/grub-fstest.c (execute_command): Make static.
21666 * util/grub-mkdevicemap.c (check_device): Likewise.
21667 * util/i386/pc/misc.c: Include grub/machine/init.h.
21668 * util/powerpc/ieee1275/misc.c: Likewise.
21669 * util/lvm.c: Include grub/util/lvm.h.
21670 * util/misc.c: Include grub/kernel.h, grub/misc.h and
21671 grub/cache.h.
21672 * util/raid.c: Include grub/util/raid.h.
21673 (grub_util_getdiskname): Make static.
21674
87a297bf 21675 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
21676 grub_hostfs_fini(), as they are called from grub_init_all() and
21677 grub_fini_all() respectively. This fixes an infinite loop in
21678 grub-fstest due to double registration of hostfs.
21679 Reported by Christian Franke <Christian.Franke@t-online.de>
21680
f6ce7629 216812008-04-05 Pavel Roskin <proski@gnu.org>
21682
21683 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
21684 all 8 functions. Otherwise, probe function 0 only.
21685
070e49e4 216862008-04-04 Pavel Roskin <proski@gnu.org>
21687
8b088a4c 21688 * commands/lspci.c (grub_lspci_iter): Print the bus number
21689 correctly.
21690
4f657021 21691 * commands/lspci.c (grub_pci_classes): Fix typos.
21692 (grub_lspci_iter): Don't print func twice. Print vendor ID
21693 before device ID, as it's normally done.
21694
070e49e4 21695 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21696 Fix signedness warnings.
21697 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
21698 Likewise.
21699 * util/ieee1275/get_disk_name.c: Include config.h so that
21700 _GNU_SOURCE is defined and getline() is declared. Mark an
21701 unused argument as such. Fix a signedness warning.
21702
ba7328dc 217032008-04-02 Pavel Roskin <proski@gnu.org>
21704
26887f22 21705 * genkernsyms.sh.in: Use more robust assignments for CC and
21706 srcdir. Quote srcdir.
21707 * gensymlist.sh.in: Likewise. Assert at the compile time that
21708 the symbol table is not empty.
21709
ba7328dc 21710 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
21711 * fs/cpio.c (grub_cpio_read): Likewise.
21712
0f582c6b 217132008-04-01 Pavel Roskin <proski@gnu.org>
21714
4b6e1995 21715 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
21716 * disk/host.c (grub_host_open): Likewise.
21717 * disk/loopback.c (grub_loopback_open): Likewise.
21718 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
21719 disk->id as in disk/host.c, not a multi-character constant.
21720
828a2768 21721 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
21722 later is obsolete, potentially dangerous and sets a bad example.
21723 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
21724 * util/misc.c (grub_util_get_image_size): Likewise.
21725
2bb4fb47 21726 * disk/loopback.c (options): Improve help for "--partitions".
21727
0f582c6b 21728 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
21729 options to align them with the short options, e.g. "echo -e".
21730
a33224e0 217312008-03-31 Bean <bean123ch@gmail.com>
21732
21733 * video/reader/png.c (grub_png_data): New member is_16bit and
21734 image_data.
21735 (grub_png_decode_image_header): Detect 16 bit png image.
21736 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
21737 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
21738 (grub_video_reader_png): Release memory occupied by image_data.
21739
21740 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
21741 4096 bytes.
21742 (grub_nfs_mount): Skip the test for sector per cluster.
21743
21744 * include/grub/ntfs.h (MAX_SPC): Removed.
21745
86cb4f54 217462008-03-31 Bean <bean123ch@gmail.com>
21747
21748 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
21749 (grub_probe_SOURCES): Add fs/afs.c.
21750 (grub_fstest_SOURCES): Likewise.
21751 (afs_mod_SOURCES): New variable.
21752 (afs_mod_CFLAGS): Likewise.
21753 (afs_mod_LDFLAGS): Likewise.
21754
21755 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
21756 (grub_emu_SOURCES): Likewise.
21757
21758 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21759
21760 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21761
21762 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21763
21764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21765
21766 * fs/afs.c: New file.
21767
17c74c21 217682008-03-30 Pavel Roskin <proski@gnu.org>
21769
4cb68e89 21770 * disk/host.c: Include grub/misc.h to fix a warning.
21771 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
21772 warnings about implicit declarations.
21773
8790bb04 21774 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
21775 variable.
21776 * include/grub/i386/loader.h: Change declaration of
21777 grub_linux_boot() to match what grub_loader_set() expects.
21778 * util/getroot.c (grub_guess_root_device): Return const char* to
21779 fix a warning.
21780 * util/grub-probe.c (probe): Fix a warning about uninitialized
21781 abstraction_name variable.
21782 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
21783 second argument as unused to fix a warning.
21784
9a3f3296 21785 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
21786 missing grub_error() call.
21787
0ecef90d 21788 * util/update-grub_lib.in: Define datarootdir, since Autoconf
21789 2.60 and newer uses it to define datadir.
21790
0bf6d401 21791 * commands/sleep.c: Fix warning about implicit declaration.
21792 * disk/memdisk.c: Likewise.
21793 * loader/aout.c: Likewise.
21794 * loader/i386/bsd_normal.c: Likewise.
21795 * util/grub-probe.c: Likewise.
21796
7cdacf97 21797 * commands/i386/cpuid.c (has_longmode): Make static.
21798 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
21799 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
21800
17c74c21 21801 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
21802 GDT. This is more robust, as %ds can change.
21803 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
21804 calling real_to_prot().
21805 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
21806
80a3e68b 218072008-03-28 Pavel Roskin <proski@gnu.org>
21808
21809 * kern/i386/pc/startup.S: Assert that uncompressed functions
21810 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
21811 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
21812 code, as they push parts of the code (error handlers) beyond
21813 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
21814 code as correctness and size.
21815
77bcd272 218162008-03-28 Pavel Roskin <proski@gnu.org>
21817
21818 * kern/i386/pc/startup.S
21819 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
21820 data block address to the real mode, keep offset minimal. This
21821 works around a bug in AWARD BIOS on old Athlon systems, which
21822 makes CD detection hang.
21823
c5dfd43b 218242008-03-26 Pavel Roskin <proski@gnu.org>
21825
21826 * normal/color.c (grub_parse_color_name_pair): Make `name' a
21827 const.
21828 * include/grub/normal.h: Add grub_parse_color_name_pair()
21829 declaration.
21830
bf962df2 218312008-03-24 Bean <bean123ch@gmail.com>
21832
21833 * disk/i386/pc/biosdisk.c (cd_start): Removed.
21834 (cd_count): Removed.
21835 (cd_drive): New variable.
21836 (grub_biosdisk_get_drive): Don't check for (cdN) device.
21837 (grub_biosdisk_call_hook): Likewise.
21838 (grub_biosdisk_iterate): Change cdrom detection method.
21839 (grub_biosdisk_open): Replace cd_start with cd_drive.
21840 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
21841 detect cdrom device.
21842
21843 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
21844 Removed.
21845 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
21846 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
21847 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
21848 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
21849 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
21850 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
21851 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
21852 (grub_biosdisk_cdrp): New structure.
21853 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
21854
21855 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
21856
21857 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
21858 device.
21859
21860 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
21861 New function.
21862
68e7fc7a 218632008-03-20 Robert Millan <rmh@aybabtu.com>
21864
21865 Remove 2 TiB limit in ata.mod.
21866 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
21867 (grub_ata_dumpinfo): Print sector count with 0x%llx.
21868 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
21869 grub_uint64_t instead of grub_uint32_t.
21870
38ad2cf5 218712008-03-05 Bean <bean123ch@gmail.com>
21872
21873 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
21874 (grub_multiboot): Set boot device.
21875
21876 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
21877
2b89344e 218782008-03-02 Bean <bean123ch@gmail.com>
21879
21880 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
21881 symlink_buffer.
21882
87a95d1f 218832008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
21884
21885 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
21886 texinfo.tex.
21887
21888 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
21889 modified.
21890
21891 * docs/fdl.texi: New file.
f19dbdb7 21892
87a95d1f 21893 * docs/mdate-sh: New file. Copied from gnulib.
21894 * docs/texinfo.tex: Likewise.
21895
21896 * config.guess: Updated from gnulib.
21897 * install-sh: Likewise.
21898
7dc15d8e 218992008-02-28 Robert Millan <rmh@aybabtu.com>
21900
21901 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
21902 (aout_mod_SOURCES): New variable.
21903 (aout_mod_CFLAGS): Likewise.
21904 (aout_mod_LDFLAGS): Likewise.
21905
21906 * conf/i386-ieee1275.rmk: Likewise.
21907
b00ab696 219082008-02-28 Robert Millan <rmh@aybabtu.com>
21909
21910 * util/update-grub.in: Reorganise terminal validity check. Accept
21911 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
21912 Based on suggestion by Franklin PIAT.
21913
79ca2d78 219142008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
21915
21916 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
21917 function.
21918 * util/getroot.c (grub_util_check_block_device): New function that
21919 returns the given argument if it is a block device and returns NULL else.
21920 * util/grub-probe.c (argument_is_device): New variable.
21921 (probe): Promote device_name from a variable to an argument. Receive
21922 device_name from grub_util_check_block_device() if path is NULL and from
21923 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 21924 (options): Introduce new parameter '-d, --device'.
79ca2d78 21925 (main): Add description of the new parameter to the help screen.
21926 Rename path variable to argument. Set argument_is_device if the '-d'
21927 option is given. Pass argument to probe() depending on
21928 argument_is_device.
21929
0d16e571 219302008-02-24 Bean <bean123ch@gmail.com>
21931
21932 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
21933 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
21934 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
21935 (GRUB_ISO9660_VOLDESC_PART): Likewise.
21936 (GRUB_ISO9660_VOLDESC_END): Likewise.
21937 (grub_iso9660_primary_voldesc): New member escape.
21938 (grub_iso9660_data): New member joliet.
21939 (grub_iso9660_convert_string): New function.
21940 (grub_iso9660_mount): Detect joliet extension.
21941 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
21942 (grub_iso9660_iso9660_label): Likewise.
21943
21944 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
21945 (grub_setup_SOURCES): Add fs/udf.c.
21946 (grub_fstest_SOURCES): Likewise.
21947 (udf_mod_SOURCES): New variable.
21948 (udf_mod_CFLAGS): Likewise.
21949 (udf_mod_LDFLAGS): Likewise.
21950
21951 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
21952 (grub_emu_SOURCES): Likewise.
21953
21954 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21955
21956 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21957
21958 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21959
21960 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21961
21962 * fs/udf.c: New file.
21963
8a594a17 219642008-02-24 Robert Millan <rmh@aybabtu.com>
21965
21966 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
21967 (normal/lexer.c_DEPENDENCIES): New variables.
21968 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21969 (normal/lexer.c_DEPENDENCIES): Likewise.
21970 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
21971 (normal/lexer.c_DEPENDENCIES): Likewise.
21972 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
21973 (normal/lexer.c_DEPENDENCIES): Likewise.
21974 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21975 (normal/lexer.c_DEPENDENCIES): Likewise.
21976 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
21977 (normal/lexer.c_DEPENDENCIES): Likewise.
21978
2dc33c03 219792008-02-23 Robert Millan <rmh@aybabtu.com>
21980
21981 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
21982 since they were intended to be in hex. This didn't break previously
21983 because of a bug in gpt_partition_map_iterate() (see below).
21984
21985 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
21986 when checking the validity of GPT header.
21987 Remove `partno', since it always provides the same information as `i'.
21988
f6f4cfb0 219892008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
21990
21991 * include/grub/efi/time.h: Fix a wrong comment.
21992
79ff665f 219932008-02-19 Pavel Roskin <proski@gnu.org>
21994
21995 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
21996 message.
21997
d38e24c2 219982008-02-19 Bean <bean123ch@gmail.com>
21999
22000 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
22001 (aout_mod_SOURCES): New variable.
22002 (aout_mod_CFLAGS): Likewise.
22003 (aout_mod_LDFLAGS): Likewise.
22004 (_bsd_mod_SOURCES): New variable.
22005 (_bsd_mod_CFLAGS): Likewise.
22006 (_bsd_mod_LDFLAGS): Likewise.
22007 (bsd_mod_SOURCES): New variable.
22008 (bsd_mod_CFLAGS): Likewise.
22009 (bsd_mod_LDFLAGS): Likewise.
22010
22011 * include/grub/aout.h: New file.
22012
22013 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
22014
22015 * include/grub/i386/bsd.h: New file.
22016
22017 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
22018 to make it public.
22019
22020 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
22021 function is called, so that it's possible to change it inside the hook.
22022 (grub_elf64_load): Likewise.
22023 (grub_elf_file): Don't close the file if elf header is not found.
22024 (grub_elf_close): Close the file if grub_elf_file fails (The new
22025 grub_elf_file won't close it).
22026 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
22027 (grub_elf64_size): Likewise.
22028
22029 * kern/i386/loader.S (grub_unix_real_boot): New function.
22030
22031 * loader/aout.c: New file.
22032
22033 * loader/i386/bsd.c: New file.
22034
22035 * loader/i386/bsd_normal.c: New file.
22036
22037 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
22038
22039 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 22040 can test other formats.
d38e24c2 22041
b93bdb0f 220422008-02-19 Robert Millan <rmh@aybabtu.com>
22043
22044 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
22045 (grub_gpt_partition_type_empty): Redefine with macro from
22046 `<grub/gpt_partition.h>'.
22047 (gpt_partition_map_iterate): Adjust partition type comparison.
22048
22049 Export `entry' as partmap-specific `part.data' struct.
22050 (grub_gpt_header, grub_gpt_partentry): Move from here ...
22051
22052 * include/grub/gpt_partition.h (grub_gpt_header)
22053 (grub_gpt_partentry): ... to here (new file).
22054
22055 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
22056
22057 (grub_gpt_partition_type_bios_boot): New const variable, defined
22058 with macro from `<grub/gpt_partition.h>'.
22059
22060 (setup): Replace `first_start' with `embed_region', which keeps
22061 track of the embed region (and is partmap-agnostic).
22062
22063 Replace find_first_partition_start() with find_usable_region(),
22064 which finds a usable region for embedding using partmap-specific
22065 knowledge (supports PC/MSDOS and GPT).
22066
22067 Fix all assumptions that the embed region start at sector 1, using
22068 `embed_region.start' from now on. Similarly, use `embed_region.end'
22069 rather than `first_start' to calculate available size.
22070
22071 In grub_util_info() message, replace "into after the MBR" with an
22072 indication of the specific sector our embed region starts at.
22073
66cb40f6 220742008-02-19 Robert Millan <rmh@aybabtu.com>
22075
22076 * DISTLIST: Replace `commands/ieee1275/halt.c' and
22077 `commands/ieee1275/reboot.c' with `commands/halt.c' and
22078 `commands/reboot.c'.
22079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
22080 (halt_mod_SOURCES): Likewise.
22081 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
22082 (halt_mod_SOURCES): Likewise.
22083
b7202015 220842008-02-17 Christian Franke <franke@computer.org>
22085
22086 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
22087
32b0fc49 220882008-02-17 Robert Millan <rmh@aybabtu.com>
22089
22090 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
22091 set `first_start' to 0 for non-PC/MSDOS partition maps.
22092
aca63502 220932008-02-16 Robert Millan <rmh@aybabtu.com>
22094
22095 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
22096 do not assume partition map is PC/MSDOS before performing checks that
22097 are specific to that layout.
22098
0de8be86 220992008-02-13 Robert Millan <rmh@aybabtu.com>
22100
22101 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
22102 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
22103 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
22104
c3db8364 221052008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
22106
22107 * configure.ac: Only a cosmetic change on the handling of
22108 -fno-stack-protector.
22109
f714229e 221102008-02-12 Alexandre Boeglin <alex@boeglin.org>
22111
c3db8364 22112 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
22113 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
22114 reboot.c.
f714229e 22115 (grub_install_SOURCES): Add halt.mod and reboot.mod.
22116 (halt_mod_SOURCES): New variable.
22117 (halt_mod_CFLAGS): Likewise.
22118 (halt_mod_LDFLAGS): Likewise.
22119 (reboot_mod_SOURCES): Likewise.
22120 (reboot_mod_CFLAGS): Likewise.
22121 (reboot_mod_LDFLAGS): Likewise.
22122
c3db8364 22123 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
22124 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
22125 reboot.c.
f714229e 22126 (halt_mod_SOURCES): Likewise.
22127 (reboot_mod_SOURCES): Likewise.
22128
c3db8364 22129 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
22130 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 22131 (reboot_mod_SOURCES): Likewise.
22132
22133 * commands/i386/pc/reboot.c: merge this file ...
22134
22135 * commands/ieee1275/reboot.c: ... and this file ...
22136
22137 * commands/reboot.c: ... to this file.
c3db8364 22138 Add some precompiler directive to include the correct header for
22139 each machine.
f714229e 22140
22141 * commands/ieee1275/halt.c: move this file ...
22142
22143 * commands/halt.c: ... to here.
c3db8364 22144 Add some precompiler directive to include the correct header for
22145 each machine.
f714229e 22146
22147 * include/grub/efi/efi.h (grub_reboot): New function declaration.
22148 (grub_halt): Likewise.
22149
22150 * kern/efi/efi.c (grub_reboot): New function.
22151 (grub_halt): Likewise.
22152
c74493e0 221532008-02-12 Robert Millan <rmh@aybabtu.com>
22154
22155 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
22156 /dev (like it is done for /dev/mapper). This doesn't provide support
22157 for EVMS, but at least it is now easy to identify the problem when it
22158 arises.
22159
d0db4b04 221602008-02-11 Robert Millan <rmh@aybabtu.com>
22161
22162 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
22163 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
22164 comparing it with -1, not 0.
22165
bf748642 221662008-02-10 Robert Millan <rmh@aybabtu.com>
22167
22168 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
22169 `disk/lvm.c'.
22170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22171 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22172
22173 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
22174 `disk/lvm.c' to the end of the list.
22175 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22176 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22177
b5db202a 221782008-02-10 Robert Millan <rmh@aybabtu.com>
22179
22180 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
22181 grub_print_error() instead. This will let user know why we're entering
22182 rescue mode.
22183 Based on suggestions from Sam Morris.
22184
83abee31 221852008-02-10 Alexandre Boeglin <alex@boeglin.org>
22186
22187 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
22188 on remaining N args, instead of "--" arg N times.
22189
78d5a08b 221902008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
22191
22192 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
22193 (fill_with_default_glyph): Changed to use unknown_glyph for fill
22194 pattern for unknown glyphs.
22195
68807e5f 221962008-02-09 Robert Millan <rmh@aybabtu.com>
22197
22198 * configure.ac: Probe for `help2man'.
22199 * Makefile.in (builddir): New variable.
22200 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
22201 or otherwise add a few flags/options to it.
22202 (install-local): For every executable utility or script that is
22203 installed, invoke $(HELP2MAN) to install a manpage based on --help
22204 output.
22205
22206 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
22207 that it doesn't prevent --help from working in build tree.
22208
22209 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
22210 with `bug-grub@gnu.org'.
22211 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
22212 * util/update-grub.in (usage): New function.
22213 Implement proper argument check, with support for --help and --version
22214 (as well as existing -y).
22215
222162008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 22217
22218 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
22219 avoid overwriting previous output.
22220 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
22221
c1962162 222222008-02-09 Robert Millan <rmh@aybabtu.com>
22223
22224 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
22225 drawing the menu.
22226
3dac2e3f 222272008-02-09 Robert Millan <rmh@aybabtu.com>
22228
22229 * commands/sleep.c: New file.
22230 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
22231 (sleep_mod_SOURCES): New variable.
22232 (sleep_mod_CFLAGS): Likewise.
22233 (sleep_mod_LDFLAGS): Likewise.
22234
7a634e08 222352008-02-09 Robert Millan <rmh@aybabtu.com>
22236
22237 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
22238 situations in which we can deduce the RAID size and the superblock
22239 doesn't match it.
22240
b92f0c18 222412008-02-09 Robert Millan <rmh@aybabtu.com>
22242
22243 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
22244 and return a grub_diskmemberlist_t composed of LVM physical volumes.
22245 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
22246
22247 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
22248 and return a grub_diskmemberlist_t composed of physical array members.
22249 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
22250
22251 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
22252 prototype.
22253 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
22254 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
22255 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
22256
22257 * util/grub-probe.c (probe): Move partmap probing code from here ...
22258 (probe_partmap): ... to here.
22259 (probe): Use probe_partmap() once for the disk we're probing, and
22260 additionally, when such disk contains a memberlist() struct member,
22261 once for each disk that is contained in the structure returned by
22262 memberlist().
22263
91a4bf68 222642008-02-09 Robert Millan <rmh@aybabtu.com>
22265
22266 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
22267 environment variable to 'all' in order to obtain debug output from
22268 non-util/ code.
22269 * util/i386/pc/grub-setup.c (main): Likewise.
22270
a96f9caa 222712008-02-08 Robert Millan <rmh@aybabtu.com>
22272
22273 * disk/raid.c (grub_raid_scan_device): Check for
22274 `array->device[sb.this_disk.number]' rather than for
22275 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 22276 guaranteed to be accessible.
a96f9caa 22277
b37a9222 222782008-02-08 Robert Millan <rmh@aybabtu.com>
22279
22280 * disk/raid.c: Update copyright.
22281 * fs/cpio.c: Likewise.
22282 * include/grub/raid.h: Likewise.
22283 * loader/i386/pc/multiboot.c: Likewise.
22284 * util/hostfs.c: Likewise.
22285
5626aee1 222862008-02-08 Robert Millan <rmh@aybabtu.com>
22287
22288 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
22289 to a grub_disk_t array.
22290 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
22291 `device[x]'.
22292 (grub_raid_scan_device): Replace `device[x].name' accesses with
22293 `device[x]->name'. Simplify initialization of `array->device[x]'.
22294
554f0187 222952008-02-08 Robert Millan <rmh@aybabtu.com>
22296
22297 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
22298 grub_dprintf() calls.
22299 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
22300 error message.
22301
1ec8425d 223022008-02-07 Christian Franke <franke@computer.org>
22303
22304 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
22305 instead of fseek and ftell to support large files.
22306 (grub_hostfs_read): Likewise.
22307
f2156fda 223082008-02-07 Robert Millan <rmh@aybabtu.com>
22309
22310 Patch from Jeroen Dekkers.
22311 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 22312 failure, since successfully reading all array members might not be
f2156fda 22313 required.
22314
9216e0e7 223152008-02-06 Robert Millan <rmh@aybabtu.com>
22316
22317 * util/grub-probe.c (probe): Simplify partmap probing (with the
22318 assumption that the first word up to the underscore equals to
22319 the module name).
22320
b0dfd29a 223212008-02-06 Christian Franke <franke@computer.org>
22322
22323 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
22324 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
22325 last block of a cpio or tar stream.
22326 Check for "TRAILER!!!" instead of any empty data
22327 block to detect last block of a cpio stream.
22328 (grub_cpio_dir): Fix constness of variable np.
22329 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
22330 cpio or tar trailer is detected. This fixes a crash
22331 on open of a non existing file.
22332
c32865bf 223332008-02-05 Bean <bean123ch@gmail.com>
22334
22335 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
22336 address of entry.
22337 (grub_multiboot_load_elf64): Likewise.
22338 (grub_multiboot): Initialize mbi structure.
22339
22340 * util/grub-fstest.c: Don't include unused header file script.h.
22341
fe6b695a 22342 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 22343 of file.
22344 (grub_fstest_SOURCES): Likewise.
22345
409480b7 223462008-02-05 Robert Millan <rmh@aybabtu.com>
22347
22348 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
22349 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
22350 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
22351 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
22352
22353 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
22354 (translation_table): Replace hardcoded values with macros
22355 provided by `<grub/term.h>'.
22356
22357 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
22358 (keyboard_map): Correct/add a few values, with macros provided
22359 by `<grub/term.h>'.
22360 (keyboard_map_shift): Zero values that don't differ from their
22361 `keyboard_map' equivalents.
22362 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
22363 Discard the second scan code that is always sent by Caps lock.
22364 Only use `keyboard_map_shift' when it provides a non-zero value,
22365 otherwise fallback to `keyboard_map'.
22366
99fadbaa 223672008-02-04 Bean <bean123ch@gmail.com>
22368
22369 * Makefile.in (enable_grub_fstest): New variable.
22370
22371 * conf/common.rmk (grub_fstest_init.lst): New rule.
22372 (grub_fstest_init.h): Likewise.
22373 (grub_fstest_init.c): Likewise.
22374 (util/grub-fstest.c_DEPENDENCIES): New variable.
22375 (grub_fstest_SOURCES): Likewise.
22376
22377 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
22378
22379 * util/grub-fstest.c: New file.
22380
bf567c50 223812008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
22382
22383 Make grub-setup handle a separate root device.
f19dbdb7 22384
bf567c50 22385 * util/i386/pc/grub-setup.c (setup): Always open the root device,
22386 so that the root device can be compared with the destination
22387 device.
22388 When embedding the core image, if the root and destination devices
22389 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
22390 0xFF.
22391 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 22392
9be6b98b 223932008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
22394
22395 Add support for having a grub directory in a different drive. This
22396 is still only the data handling part.
f19dbdb7 22397
9be6b98b 22398 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
22399 (codestart): Save %dh in GRUB_ROOT_DRIVE.
22400 (grub_root_drive): New variable.
22401
22402 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
22403 instead of GRUB_BOOT_DRIVE to construct a device name. Set
22404 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
22405 as it was.
22406
22407 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
22408
22409 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
22410 macro.
22411 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
22412
22413 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
22414 is bogus, because PXE booting does not specify any drive
22415 correctly.
22416
22417 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
22418 am not sure if this is really correct.
22419
22420 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
22421 is always identical to the boot drive when booting from a CD.
22422
22423 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
22424 longer.
22425 (root_drive): New variable.
22426 (real_start): Unconditionally set %dh to ROOT_DRIVE.
22427 (setup_sectors): Push %dx right after popping it, because %dh will
22428 be modified later.
22429 (copy_buffer): Restore %dx.
22430
e0ca0677 224312008-02-03 Robert Millan <rmh@aybabtu.com>
22432
22433 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
22434 use `cdboot.img' for cdrom images.
22435
3b3f6629 224362008-02-03 Robert Millan <rmh@aybabtu.com>
22437
22438 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
22439 only setup gfxterm when `font' command has succeeded.
22440
d42b3672 224412008-02-03 Robert Millan <rmh@aybabtu.com>
22442
22443 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
22444 (grub_rescue_cmd_multiboot_loader)
22445 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
22446
fa370ea6 224472008-02-03 Pavel Roskin <proski@gnu.org>
22448
e0c5dacb 22449 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 22450 %edx and %esi from stack only after grub_gate_a20() is called.
22451 grub_gate_a20() clobbers %edx.
22452
f2a76e1d 224532008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
22454
22455 * configure.ac (AC_INIT): Bumped to 1.96.
22456
22457 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
22458 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
22459 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
22460 video/readers/png.c.
22461
90fd32d1 224622008-02-03 Bean <bean123ch@gmail.com>
9be665dd 22463
22464 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
22465 (cdboot_img_SOURCES): New variable.
22466 (cdboot_img_ASFLAGS): New variable.
22467 (cdboot_img_LDFLAGS): New variable.
22468
22469 * boot/i386/pc/cdboot.S: New file.
22470
22471 * disk/i386/pc/biosdisk.c (cd_start): New variable.
22472 (cd_count): Likewise.
22473 (grub_biosdisk_get_drive): Add support for cd device.
22474 (grub_biosdisk_call_hook): Likewise.
22475 (grub_biosdisk_iterate): Likewise.
22476 (grub_biosdisk_open): Likewise.
22477 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
22478 (grub_biosdisk_rw): Support reading from cd device.
22479 (GRUB_MOD_INIT): Iterate cd devices.
22480
22481 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
22482 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
22483 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
22484
22485 * kern/i386/pc/init.c (make_install_device): Check for cd device.
22486
4020aa53 224872008-02-02 Robert Millan <rmh@aybabtu.com>
22488
22489 * commands/read.c: New file.
22490 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
22491 (read_mod_SOURCES): New variable.
22492 (read_mod_CFLAGS): Likewise.
22493 (read_mod_LDFLAGS): Likewise.
22494
e03a1132 224952008-02-02 Robert Millan <rmh@aybabtu.com>
22496
22497 * normal/main.c (grub_normal_execute): Check for `menu->size' when
22498 determining whether menu has to be displayed.
22499
58c69220 225002008-02-02 Marco Gerards <marco@gnu.org>
22501
22502 * bus/pci.c: New file.
22503
22504 * include/grub/pci.h: Likewise.
22505
22506 * include/grub/i386/pc/pci.h: Likewise.
22507
22508 * commands/lspci.c: Likewise.
22509
22510 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
22511 `lspci.mod'.
22512 (pci_mod_SOURCES): New variable.
22513 (pci_mod_CFLAGS): Likewise.
22514 (pci_mod_LDFLAGS): Likewise.
22515 (lspci_mod_SOURCES): Likewise.
22516 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 22517 (lspci_mod_LDFLAGS): Likewise.
58c69220 22518
c004e1b4 225192008-02-02 Bean <bean123ch@gmail.com>
22520
22521 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
22522 (grub_ufs_get_file_block): Fix indirect block calculation problem.
22523
22524 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
22525 (grub_xfs_btree_node): New structure.
22526 (grub_xfs_btree_root): New structure.
22527 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
22528 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
22529 (GRUB_XFS_EXTENT_BLOCK): Likewise.
22530 (GRUB_XFS_EXTENT_SIZE): Likewise.
22531 (grub_xfs_read_block): Support btree format type.
22532 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
22533 Use directory block as basic unit.
22534
22535 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
22536
22537 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
22538 __attribute__ ((__regparm__ (1))).
22539
f95562bf 225402008-02-01 Robert Millan <rmh@aybabtu.com>
22541
22542 Correct a mistake in previous commit.
22543
22544 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
22545 top.
22546 (normal/command.c_DEPENDENCIES): New variable.
22547
7d31f41f 225482008-02-01 Robert Millan <rmh@aybabtu.com>
22549
22550 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
22551 top.
22552 (normal/command.c_DEPENDENCIES): New variable.
22553 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
22554 * conf/i386-ieee1275.rmk: Likewise.
22555 * conf/i386-linuxbios.rmk: Likewise.
22556 * conf/i386-pc.rmk: Likewise.
22557 * conf/sparc64-ieee1275.rmk: Likewise.
22558 * conf/powerpc-ieee1275.rmk: Likewise.
22559 (grub_emu_SOURCES): Add `fs/fshelp.c'.
22560
22561 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
22562
60b6be74 225632008-02-01 Robert Millan <rmh@aybabtu.com>
22564
22565 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
22566 call at beginning of function.
22567
078522ab 225682008-01-31 Pavel Roskin <proski@gnu.org>
22569
22570 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 22571 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
22572 (grub_mkrescue_SOURCES): Likewise.
078522ab 22573 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
22574
ccaa8a5f 225752008-01-30 Robert Millan <rmh@aybabtu.com>
22576
22577 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
22578 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
22579 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
22580 (grub_probe_SOURCES): ... to here.
22581
22582 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
22583 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
22584 * conf/i386-ieee1275.rmk: Likewise.
22585 * conf/i386-linuxbios.rmk: Likewise.
22586 * conf/powerpc-ieee1275.rmk: Likewise.
22587
ae5a9cd7 225882008-01-30 Tristan Gingold <gingold@free.fr>
22589
22590 * kern/rescue.c: Silently accept empty lines.
22591
70bc2ef2 225922008-01-29 Bean <bean123ch@gmail.com>
22593
22594 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
22595 (real_code_2): Code cleanup and change comment style.
22596 (move_memory): Avoid using 32-bit address mode.
22597
6a4d50ea 225982008-01-29 Bean <bean123ch@gmail.com>
22599
22600 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
22601 (png_mod_SOURCES): New variable.
22602 (png_mod_CFLAGS): Likewise.
22603 (png_mod_LDFLAGS): Likewise.
22604
22605 * video/readers/png.c: New file.
22606
11cc30ac 226072008-01-28 Robert Millan <rmh@aybabtu.com>
22608
22609 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
22610 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
22611 `ifndef GRUB_MOD_GAP' hack.
22612 * util/elf/grub-mkimage.c (add_segments): Likewise.
22613
3abc589f 226142008-01-27 Robert Millan <rmh@aybabtu.com>
22615
22616 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
22617 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 22618 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 22619
e1907778 226202008-01-27 Robert Millan <rmh@aybabtu.com>
22621
22622 Get grub-emu to build again (including parallel builds).
22623
22624 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
22625 Split into ...
22626 (util/grub-emu.c_DEPENDENCIES): ... this, ...
22627 (normal/execute.c_DEPENDENCIES): ... this, ...
22628 (grub-emu_DEPENDENCIES): ... and this.
22629
22630 * conf/i386-efi.rmk: Likewise.
22631 * conf/i386-linuxbios.rmk: Likewise.
22632 * conf/i386-ieee1275.rmk: Likewise.
22633 * conf/powerpc-ieee1275.rmk: Likewise.
22634 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
22635
2216b101 226362008-01-27 Robert Millan <rmh@aybabtu.com>
22637
22638 * NEWS: Add a few items.
22639
f75172d9 226402008-01-27 Robert Millan <rmh@aybabtu.com>
22641
22642 Fix parallel builds with grub-emu. Based on earlier commit for
22643 grub-probe and grub-setup.
22644
22645 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22646 (util/grub-emu.c_DEPENDENCIES): ... this.
22647 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22648 (util/grub-emu.c_DEPENDENCIES): ... this.
22649 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22650 (util/grub-emu.c_DEPENDENCIES): ... this.
22651 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22652 (util/grub-emu.c_DEPENDENCIES): ... this.
22653 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
22654 (util/grub-emu.c_DEPENDENCIES): ... this.
22655
3f51de77 226562008-01-27 Pavel Roskin <proski@gnu.org>
22657
22658 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
22659 to create a gap between _end and the modules added to the image
22660 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
22661 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
22662 * util/elf/grub-mkimage.c (add_segments): Likewise.
22663
2033f53e 226642008-01-26 Pavel Roskin <proski@gnu.org>
22665
22666 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
22667 just return an error.
22668
22da1f6f 226692008-01-26 Bean <bean123ch@gmail.com>
22670
22671 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
22672 (grub_reiserfs_get_item): Save offset of the next item.
22673 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
22674
2a9525e6 226752008-01-25 Robert Millan <rmh@aybabtu.com>
22676
22677 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
22678 make all filesystem sources appear together (possibly fixing omissions
22679 while at it).
22680 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22681 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22682 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22683 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22684
22685 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
22686 add `kern/file.c'.
22687 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
22688 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
22689 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
22690 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
22691
22692 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
22693 (probe): Add a sanity check to make sure of our ability to read
22694 requested files when probing for filesystem type.
22695
22696 * genmk.rb: Update copyright year (2007).
22697
22698 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
22699 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
22700 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
22701 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
22702 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
22703 : Remove function prototypes.
22704
b95f71b5 227052008-01-25 Robert Millan <rmh@aybabtu.com>
22706
22707 Revert my previous commits (based on wrong assumption of how grub_errno
22708 works).
22709
fe6b695a 22710 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 22711 * kern/file.c (grub_file_open): Likewise.
22712
d08bbb49 227132008-01-24 Pavel Roskin <proski@gnu.org>
22714
22715 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
22716 that hang if GRUB tries to setup colors.
22717 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
22718 colors for firmwares that don't support it.
22719 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
22720 Recognize Open Hack'Ware, set flags to work around its
22721 limitations.
22722
605e36ed 227232008-01-24 Robert Millan <rmh@aybabtu.com>
22724
22725 * kern/file.c (grub_file_open): Do not account previous failures of
22726 unrelated functions when grub_errno is checked for.
22727 Reported by Oleg Strikov.
22728
bac332a1 227292008-01-24 Bean <bean123ch@gmail.com>
22730
22731 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
22732 (grub_ufs_sblock): New member volume name.
22733 (grub_ufs_find_file): Fix string copy bug.
22734 (grub_ufs_label): Implement this function properly.
22735
22736 * fs/hfs.c (grub_hfs_cnid_type): New enum.
22737 (grub_hfs_iterate_records): Use the correct file number for extents
22738 and catalog file. Fix problem in next index calculation.
22739 (grub_hfs_find_node): Replace recursive function call with loop.
22740 (grub_hfs_iterate_dir): Replace recursive function call with loop.
22741
15c80c09 227422008-01-23 Robert Millan <rmh@aybabtu.com>
22743
22744 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
22745 `<grub/symbol.h>' and `<grub/multiboot.h>'.
22746 (grub_multiboot2_real_boot): New function prototype.
22747
22748 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
22749 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
22750
22751 * kern/i386/ieee1275/init.c (grub_os_area_addr)
22752 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
22753
305338fd 227542008-01-23 Robert Millan <rmh@aybabtu.com>
22755
22756 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
22757 #ifdef'ed out grub_printf().
22758
3ea52685 227592008-01-23 Robert Millan <rmh@aybabtu.com>
22760
22761 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
22762 grub_dprintf calls, since they make "debug=all" mode unusable.
22763 (grub_console_checkkey): Likewise.
22764
5882ae4b 227652008-01-23 Robert Millan <rmh@aybabtu.com>
22766
22767 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
22768 `term/i386/pc/at_keyboard.c'.
22769 (pkglib_MODULES): Add `serial.mod'.
22770 (serial_mod_SOURCES): New variable.
22771 (serial_mod_CFLAGS): Likewise.
22772 (serial_mod_LDFLAGS): Likewise.
22773
22774 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
22775 `<grub/powerpc/ieee1275/console.h>'.
22776 (grub_keyboard_controller_init): New function prototype.
22777 (grub_console_checkkey): Likewise.
22778 (grub_console_getkey): Likewise.
22779
22780 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
22781 keyboard on i386.
22782
22783 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
22784 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
22785
06ab5303 227862008-01-23 Robert Millan <rmh@aybabtu.com>
22787
22788 * kern/i386/pc/init.c (make_install_device): When memdisk image is
22789 present, "(memdisk)/boot/grub" becomes the default prefix.
22790
22791 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
22792 a memdisk tarball with all the modules. Add --overlay=DIR option that
22793 allows users to overlay additional files into the image.
22794
dbb475a4 227952008-01-23 Robert Millan <rmh@aybabtu.com>
22796
22797 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
22798 and `machine/memory.h'.
22799 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
22800 (_multiboot_mod_SOURCES): New variable.
22801 (_multiboot_mod_CFLAGS): Likewise.
22802 (_multiboot_mod_LDFLAGS): Likewise.
22803 (multiboot_mod_SOURCES): Likewise.
22804 (multiboot_mod_CFLAGS): Likewise.
22805 (multiboot_mod_LDFLAGS): Likewise.
22806
22807 * include/grub/i386/ieee1275/loader.h: New file.
22808
22809 * include/grub/i386/ieee1275/machine.h: Likewise.
22810
22811 * include/grub/i386/ieee1275/memory.h: Likewise.
22812
22813 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
22814 variable declaration.
22815 (grub_os_area_size): Likewise.
22816
22817 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
22818 (grub_lower_mem, grub_upper_mem): New variables.
22819 (grub_stop_floppy): New function (just to make
22820 grub_multiboot2_real_boot() happy).
22821
22822 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
22823 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
22824 (grub_stop): New function.
22825 Include `"../realmode.S"' and `"../loader.S"'.
22826
22827 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
22828 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
22829
22830 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
22831 rely on grub_multiboot2_real_boot() for final boot.
22832
25638629 228332008-01-22 Robert Millan <rmh@aybabtu.com>
22834
22835 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
22836 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
22837 device that doesn't look like an SD card.
22838 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
22839 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
22840 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
22841 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
22842 found.
22843
9dad816d 228442008-01-22 Robert Millan <rmh@aybabtu.com>
22845
22846 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
22847 avoid claiming over our own code.
22848
34842f2d 228492008-01-22 Bean <bean123ch@gmail.com>
22850
22851 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
22852 (jpeg_mod_SOURCES): New variable.
22853 (jpeg_mod_CFLAGS): Likewise.
22854 (jpeg_mod_LDFLAGS): Likewise.
22855
22856 * video/readers/jpeg.c : New file.
22857
44023a28 228582008-01-22 Bean <bean123ch@gmail.com>
22859
22860 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
22861 there are no more items.
22862
bc2d8ac6 228632008-01-21 Robert Millan <rmh@aybabtu.com>
22864
22865 * kern/mm.c (grub_mm_init_region): Improve debug message.
22866
261bd4bc 228672008-01-21 Robert Millan <rmh@aybabtu.com>
22868
22869 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
22870 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
22871 address.
22872 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
22873 a C macro.
22874 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
22875 Indicates start of upper memory.
22876 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
22877 (generate_image): Abort when image size is big enough to corrupt
22878 upper memory.
22879
22880 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
22881 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
22882 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
22883 instead of hardcoding 0xA0000.
22884 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
22885 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
22886 instead of hardcoding 0xA0000.
22887
f970b55e 228882008-01-21 Robert Millan <rmh@aybabtu.com>
22889
22890 * disk/memdisk.c (memdisk_size): New variable.
22891 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
22892 `memdisk_size'.
22893 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
22894 image to dynamic memory.
22895 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
22896 `memdisk_size'. Free memdisk block.
22897
1a8b0526 228982008-01-21 Robert Millan <rmh@aybabtu.com>
22899
22900 Fix detection of very small filesystems (like tar).
22901
22902 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
22903 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
22904 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
22905 a problem with this disk).
22906
6e9b4aab 229072008-01-21 Robert Millan <rmh@aybabtu.com>
22908
22909 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
22910 on grub_biosdisk_rw_standard() error.
22911
0d8837b2 229122008-01-21 Robert Millan <rmh@aybabtu.com>
22913
22914 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
22915 recent changes.
22916 * kern/elf.c: Likewise.
22917 * kern/ieee1275/ieee1275.c: Likewise.
22918 * kern/powerpc/ieee1275/openfw.c: Likewise.
22919 * term/ieee1275/ofconsole.c: Likewise.
22920
ffd36e34 229212008-01-21 Robert Millan <rmh@aybabtu.com>
22922
22923 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
22924
3f0093d0 22925 * include/grub/kernel.h (grub_arch_memdisk_addr)
22926 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 22927
3f0093d0 22928 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
22929 (grub_arch_memdisk_size): ... to here.
ffd36e34 22930
6c391b21 229312008-01-21 Robert Millan <rmh@aybabtu.com>
22932
22933 Mostly based on bugfix from Bean.
22934
22935 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
22936 attribute with hook() parameter.
22937 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
22938 declaration.
22939 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
22940 attribute with hook() parameter.
22941 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
22942 declaration.
22943
55a581dc 229442008-01-21 Robert Millan <rmh@aybabtu.com>
22945
22946 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
22947 (pkglib_MODULES): Add `memdisk.mod'.
22948 (memdisk_mod_SOURCES): New variable.
22949 (memdisk_mod_CFLAGS): Likewise.
22950 (memdisk_mod_LDFLAGS): Likewise.
22951
22952 * disk/memdisk.c: New file.
22953
22954 * include/grub/disk.h (grub_disk_dev_id): Add
22955 `GRUB_DISK_DEVICE_MEMDISK_ID'.
22956
22957 * include/grub/i386/pc/kernel.h
22958 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
22959 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
22960 (grub_kernel_image_size): New variable declaration.
22961 (grub_total_module_size): Likewise.
22962 (grub_memdisk_image_size): Likewise.
22963
22964 * include/grub/i386/pc/memory.h
22965 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
22966
22967 * include/grub/kernel.h: Include `<grub/symbol.h>'.
22968 (grub_arch_memdisk_addr): New variable declaration.
22969 (grub_arch_memdisk_size): Likewise.
22970
22971 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
22972 (grub_arch_memdisk_size): Likewise.
22973
22974 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
22975 (codestart): Replace hardcoded `0x100000' with
22976 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
22977
22978 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
22979 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
22980 not NULL, append the contents of the file it refers to, at the end of
22981 the compressed kernel image. Initialize `grub_memdisk_image_size'
22982 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
22983 (options): Add "memdisk"|'m' option.
22984 (main): Parse --memdisk|-m option, and pass user-provided path as
22985 parameter to generate_image().
22986
3d7f54c9 229872008-01-20 Robert Millan <rmh@aybabtu.com>
22988
22989 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
22990 grub_dprintf() calls from here ...
22991 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
22992
0bf74728 229932008-01-20 Robert Millan <rmh@aybabtu.com>
22994
22995 Fix detection of "real mode" when /options/real-mode? doesn't exist.
22996
22997 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
22998 declaration.
22999 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
23000 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
23001 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 23002 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 23003 property).
23004 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
23005 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
23006
33bf70a7 230072008-01-19 Robert Millan <rmh@aybabtu.com>
23008
fe6b695a 23009 Get rid of confusing function (superseded by
33bf70a7 23010 `grub_ieee1275_get_integer_property')
23011 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
23012 prototype.
23013 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
23014 function.
23015 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
23016 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 23017 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 23018
e2da7d26 230192008-01-19 Robert Millan <rmh@aybabtu.com>
23020
23021 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
23022 command after "shut-down", since implementations differ on which
23023 the command for halt is.
23024
59f1fd8d 230252008-01-19 Robert Millan <rmh@aybabtu.com>
23026
23027 * include/grub/i386/linuxbios/console.h: Add header protection.
23028 (grub_keyboard_controller_init): New function prototype.
23029 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
23030 (KEYBOARD_COMMAND_READ): Likewise.
23031 (KEYBOARD_COMMAND_WRITE): Likewise.
23032 (KEYBOARD_SCANCODE_SET1): Likewise.
23033 (grub_keyboard_controller_write): New function.
23034 (grub_keyboard_controller_read): Likewise.
23035 (grub_keyboard_controller_init): Likewise.
23036
23037 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
23038 (grub_console_init): On coreboot/LinuxBIOS, call
23039 grub_keyboard_controller_init().
23040
5f5a7c15 230412008-01-19 Robert Millan <rmh@aybabtu.com>
23042
23043 PowerPC changes provided by Pavel Roskin.
23044
23045 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
23046 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
23047 don't rely on cmain() doing it.
23048 * kern/i386/ieee1275/startup.S (_start): Store %eax in
23049 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
23050
1210e168 230512008-01-16 Robert Millan <rmh@aybabtu.com>
23052
23053 * include/grub/i386/linuxbios/memory.h
23054 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
23055 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
23056 receive `table_header' as argument. Instead, probe for it in the
23057 known memory ranges where it can be present.
23058 (grub_available_iterate): Do not pass a fixed `table_header' address
23059 to grub_linuxbios_table_iterate().
23060
3d04eab8 230612008-01-15 Robert Millan <rmh@aybabtu.com>
23062
23063 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
23064 * conf/i386-ieee1275.rmk: New file.
23065 * include/grub/i386/ieee1275/console.h: Likewise.
23066 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
23067 * include/grub/i386/ieee1275/kernel.h: Likewise.
23068 * include/grub/i386/ieee1275/time.h: Likewise.
23069 * kern/i386/ieee1275/init.c: Likewise.
23070 * kern/i386/ieee1275/startup.S: Likewise.
23071
d1bc1b73 230722008-01-15 Robert Millan <rmh@aybabtu.com>
23073
23074 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
23075 when pointers are 32-bit (but still do set it to one when they are
23076 64-bit).
23077
66a65807 230782008-01-15 Robert Millan <rmh@aybabtu.com>
23079
23080 * include/grub/ieee1275/ieee1275.h
23081 (grub_ieee1275_get_integer_property): New function prototype.
23082
23083 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
23084 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 23085 grub_ieee1275_get_property() to handle endianness.
66a65807 23086
23087 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
23088 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 23089 where appropriate.
66a65807 23090 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
23091 (grub_map): Likewise.
23092 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
23093
a83ccafd 230942008-01-15 Bean <bean123ch@gmail.com>
23095
23096 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
23097 (grub_script_execute_cmdline): Reset grub_errno.
23098
23099 * normal/main.c (read_config_file): Reset grub_errno.
23100
23101 * normal/parse.y (script_init): New.
23102 (script): Move function and menuentry here.
23103 (delimiter): New.
23104 (command): Add delimiter at the end of command.
23105 (commands): Adjust to match the new command.
23106 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 23107 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 23108 (if): Use the new commands.
23109
23110 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
23111
df6ecfc6 231122008-01-15 Robert Millan <rmh@aybabtu.com>
23113
23114 * normal/menu.c (run_menu): Move timeout message from here ...
23115 (print_timeout): ... to here.
23116 (run_menu): Use print_timeout() once during initial draw to print
23117 the whole message, and again in every clock tick to update only
23118 the number of seconds.
23119
87ae25eb 231202008-01-15 Robert Millan <rmh@aybabtu.com>
23121
23122 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
23123 actual size of `available' from grub_ieee1275_get_property(), and
23124 restrict parsing to that bound.
23125
47bf09a4 231262008-01-15 Christian Franke <franke@computer.org>
23127
23128 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
23129 (argp_program_version): Remove variable.
23130 (argp_program_bug_address): Likewise.
23131 (options): Convert from struct argp_option to struct option.
23132 (struct arguments): Remove.
23133 (parse_opt): Remove.
23134 (usage): New function.
23135 (main): Replace struct args members by simple variables.
23136 Replace argp_parse() by getopt_long().
23137 Add switch to evaluate options.
23138 Add missing "(...)" around root_dev in prefix string.
23139
c86f1469 231402008-01-14 Robert Millan <rmh@aybabtu.com>
23141
23142 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
23143 for grub_ieee1275_exit(), in order to improve portability.
23144
e622c559 231452008-01-14 Robert Millan <rmh@aybabtu.com>
23146
23147 * util/grub.d/10_linux.in (prefix): Define.
23148 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
23149
44cb1ec8 231502008-01-13 Pavel Roskin <proski@gnu.org>
23151
23152 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
23153 grub_errno if no errors have been detected.
23154
1eb8c802 231552008-01-12 Robert Millan <rmh@aybabtu.com>
23156
23157 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
23158 (grub_util_get_dev_abstraction): New function prototype.
23159
23160 * util/getroot.c: Include `<grub/util/getroot.h>'
23161 (grub_util_get_grub_dev): Move detection of abstraction type to ...
23162 (grub_util_get_dev_abstraction): ... here (new function).
23163
23164 * util/grub-probe.c: Convert PRINT_* to an enum. Add
23165 `PRINT_ABSTRACTION'.
23166 (probe): Probe for abstraction type when requested.
23167 (main): Understand `--target=abstraction'.
23168
23169 * util/i386/efi/grub-install.in: Add abstraction module to core
23170 image when it is found to be necessary.
23171 * util/i386/pc/grub-install.in: Likewise.
23172 * util/powerpc/ieee1275/grub-install.in: Likewise.
23173
23174 * util/update-grub_lib.in (font_path): Return system path without
23175 converting to GRUB path.
23176 * util/update-grub.in: Convert system path returned by font_path()
23177 to a GRUB path. Use `grub-probe -t abstraction' to determine what
23178 abstraction module is needed for loading fonts (if any). Export
23179 that as `GRUB_PRELOAD_MODULES'.
23180 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
23181 insmod commands).
23182
52bd3de9 231832008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
23184
23185 Remove some unused code from reiserfs.
f19dbdb7 23186
52bd3de9 23187 * fs/reiserfs.c (struct grub_reiserfs_key)
23188 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
23189 (struct grub_reiserfs_node_body): Removed.
23190 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
23191 Likewise.
23192 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23193 Likewise.
23194 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23195 Likewise.
23196 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23197 Likewise.
23198 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
23199 Likewise.
23200 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
23201 Likewise.
23202 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23203 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23204 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23205
2f80039d 232062008-01-10 Robert Millan <rmh@aybabtu.com>
23207
23208 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
23209 Determines if a file is garbage left by packaging systems, etc.
23210 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
23211 for processing /etc/grub.d scripts.
23212 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
23213 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
23214 as a condition for processing Linux images.
23215
87888032 232162008-01-10 Pavel Roskin <proski@gnu.org>
23217
23218 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
23219 to compile reiserfs.c on PowerPC.
23220
7e54fced 232212008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 23222
23223 * kern/device.c (grub_device_iterate): Do not abort device iteration
23224 when one of the devices cannot be opened.
23225 * kern/disk.c (grub_disk_open): Do not account previous failures of
23226 unrelated functions when grub_errno is checked for.
23227
5aa541e6 232282008-01-08 Robert Millan <rmh@aybabtu.com>
23229
23230 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
23231 `! grub_linux_is_bzimage', change order of address comparison to make
23232 it more intuitive, and improve "too big zImage" error message.
23233
7076340d 232342008-01-08 Robert Millan <rmh@aybabtu.com>
23235
23236 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
23237 `$(update-grub_DATA)'.
23238 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
23239 targets.
23240
9ca70333 232412008-01-07 Robert Millan <rmh@aybabtu.com>
23242
23243 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
23244 which instruction is modified by grub-setup during installation
23245 (since it wasn't obvious by only looking at this file).
23246
38ccf575 232472008-01-07 Robert Millan <rmh@aybabtu.com>
23248
23249 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
23250 listing actual TODO items.
23251
f5db4291 232522008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
23253
868967cf 23254 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
23255 correctly.
23256 (grub_reiserfs_get_key_offset): Likewise.
23257 (grub_reiserfs_set_key_offset): Likewise.
23258 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 23259 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 23260
23261 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
23262 better to remove the bitfield version completely.
f19dbdb7 23263
868967cf 232642008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 23265
f5db4291 23266 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
23267 allocated from the heap, due to the fshelp implementation.
23268 (grub_reiserfs_dir): Free NODE, due to the same reason.
23269
492e6d9d 232702008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
23271
23272 Mostly from Vincent Pelletier:
f19dbdb7 23273
492e6d9d 23274 * fs/reiserfs.c: New file.
f19dbdb7 23275
492e6d9d 23276 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
23277 (reiserfs_mod_SOURCES): New variable.
23278 (reiserfs_mod_CFLAGS): Likewise.
23279 (reiserfs_mod_LDFLAGS): Likewise.
23280
23281 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
23282 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
23283 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
23284 normal/color.c.
23285
9ce3e7c1 232862008-01-06 Robert Millan <rmh@aybabtu.com>
23287
23288 * normal/color.c: Remove `<grub/env.h>'.
23289
f3b58148 232902008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
23291
23292 * include/grub/normal.h: Include <grub/env.h>.
23293
7ac3bcfa 232942008-01-05 Robert Millan <rmh@aybabtu.com>
23295
23296 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
23297 usage example with `(hd0,1)'.
fb358190 23298 Reported by Samuel Thibault.
7ac3bcfa 23299
c8ee99d7 233002008-01-05 Robert Millan <rmh@aybabtu.com>
23301
23302 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
23303 (grub_linux_boot_zimage): Rename to ...
23304 (grub_linux_boot): ... this.
23305 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
23306 (grub_linux_boot_zimage): Conditionalize zImage copy.
23307
23308 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
23309 (grub_linux_boot_bzimage): Remove prototype.
23310 (grub_linux_boot_zimage): Rename to ...
23311 (grub_linux_boot): ... this.
23312
23313 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
23314 (grub_linux_boot): Remove function.
23315
0ece25b1 233162008-01-05 Robert Millan <rmh@aybabtu.com>
23317
23318 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
23319 (grub_env_write_color_highlight): Likewise.
23320 (grub_wait_after_message): Likewise.
23321
23322 * normal/color.c: New file.
23323
23324 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
23325 (normal_mod_DEPENDENCIES): Likewise.
23326
23327 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
23328 (normal_mod_DEPENDENCIES): Likewise.
23329
23330 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
23331 (normal_mod_DEPENDENCIES): Likewise.
23332
23333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
23334 (normal_mod_DEPENDENCIES): Likewise.
23335
23336 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
23337 for waiting after a message is printed.
23338 * normal/main.c (read_config_file): Likewise.
23339 (grub_normal_init): Register grub_env_write_color_normal() and
23340 grub_env_write_color_highlight() hooks. Mark `color_normal' and
23341 `color_highlight' variables as global.
23342
23343 * normal/menu.c (grub_wait_after_message): New function.
23344 (grub_color_menu_normal): New variable. Replaces ...
23345 (GRUB_COLOR_MENU_NORMAL): ... this macro.
23346 (grub_color_menu_highlight): New variable. Replaces ...
23347 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
23348 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
23349 `GRUB_TERM_COLOR_STANDARD'.
23350 (print_message): Use `grub_setcolorstate' to reload colors. Rename
23351 `normal_code' and `highlight_code' to `old_color_normal' and
23352 `old_color_highlight', respectively.
23353 (grub_menu_init_page): Update colors when drawing the menu, based on
23354 `menu_color_normal' and `menu_color_highlight' variables.
23355 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
23356 a message is printed.
23357
182dd4e5 233582008-01-05 Robert Millan <rmh@aybabtu.com>
23359
23360 * kern/env.c (grub_env_context_open): Propagate hooks for global
23361 variables to new context.
23362
23363 * kern/main.c (grub_set_root_dev): Export `root' variable.
23364
ddf8f6ad 233652008-01-05 Robert Millan <rmh@aybabtu.com>
23366
23367 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 23368 discs unconditionally, since udev and others have options to provide
ddf8f6ad 23369 them.
23370
d8b43d9b 233712008-01-05 Robert Millan <rmh@aybabtu.com>
23372
23373 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
23374
2bff2de3 233752008-01-04 Christian Franke <franke@computer.org>
23376
23377 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
23378 of eisa_mmap.
23379
97eab917 233802008-01-03 Pavel Roskin <proski@gnu.org>
23381
23382 * kern/i386/linuxbios/init.c: Put "void" to all function
23383 declarations with no arguments.
23384 * kern/powerpc/ieee1275/init.c: Likewise.
23385 * term/i386/pc/at_keyboard.c: Likewise.
23386 * term/i386/pc/vga_text.c: Likewise.
23387 * util/grub-mkdevicemap.c: Likewise.
23388
b9416d00 233892008-01-02 Robert Millan <rmh@aybabtu.com>
23390
23391 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
23392 message when loaded image is out of bounds.
23393 (grub_multiboot_load_elf64): Likewise.
23394
92695df9 233952008-01-02 Pavel Roskin <proski@gnu.org>
23396
23397 * util/grub.d/10_linux.in: Try version without ".old" when
23398 looking for initrd. It's better to use initrd from the newer
23399 kernel of the same version than no initrd at all.
23400
d98d9cad 234012008-01-01 Robert Millan <rmh@aybabtu.com>
23402
23403 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
23404
dbfdce36 234052008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
23406
f19dbdb7 23407 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 23408 grub_video_get_active_render_target.
23409 (grub_video_adapter): Added unmap_color and get_active_render_target.
23410
f19dbdb7 23411 * video/video.c: Added grub_video_unmap_color and
dbfdce36 23412 grub_video_get_active_render_target.
23413 (grub_video_get_info): Changed method to accept NULL pointer as an
23414 argument to allow detection of active video adapter.
23415
23416 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
23417 grub_video_vbe_unmap_color_int.
23418 Added grub_video_vbe_unmap_color and
23419 grub_video_vbe_get_active_render_target.
23420 (grub_video_vbe_adapter): Added unmap_color and
23421 get_active_render_target.
23422
f19dbdb7 23423 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 23424 with grub_video_vbe_unmap_color_int.
23425
23426 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
23427 (DEFAULT_NORMAL_COLOR): Likewise.
23428 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
23429 (DEFAULT_FG_COLOR): Removed.
23430 (DEFAULT_BG_COLOR): Likewise.
23431 (DEFAULT_CURSOR_COLOR): Changed value.
23432 (grub_virtual_screen): Added standard_color_setting,
23433 normal_color_setting, highlight_color_setting and term_color.
23434 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
23435 (bitmap_width): Added.
23436 (bitmap_height): Likewise.
23437 (bitmap): Likewise.
23438 (set_term_color): Likewise.
23439 (grub_virtual_screen_setup): Changed to use new terminal coloring
23440 settings.
23441 (grub_gfxterm_init): Added init for bitmap.
23442 (grub_gfxterm_fini): Added destroy for bitmap.
23443 (redraw_screen_rect): Updated to use background bitmap and new
23444 terminal coloring.
23445 (scroll_up): Added optimization for case when there is no bitmap.
23446 (grub_gfxterm_cls): Fixed to use correct background color.
23447 (grub_virtual_screen_setcolorstate): Changed to use new terminal
23448 coloring.
23449 (grub_virtual_screen_setcolor): Likewise.
23450 (grub_virtual_screen_getcolor): Added.
23451 (grub_gfxterm_background_image_cmd): Likewise.
23452 (grub_video_term): Added setcolor and getcolor.
23453 (MOD_INIT): Added registration of background_image command.
23454 (MOD_TERM): Added unregistration for background_image command.
23455
c3c20931 234562007-12-30 Pavel Roskin <proski@gnu.org>
23457
23458 * loader/multiboot_loader.c: Fix multiboot command
23459 unregistration. Fix all typos in the word "multiboot".
23460
df266716 234612007-12-29 Pavel Roskin <proski@gnu.org>
94239199 23462
23463 * util/grub.d/10_linux.in: Refactor search for initrd. Add
23464 support for initrd names used in Fedora.
23465
fc6e896c 234662007-12-26 Bean <bean123ch@gmail.com>
23467
23468 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
23469 (cpio_mod_SOURCES): New variable.
23470 (cpio_mod_CFLAGS): Likewise.
23471 (cpio_mod_LDFLAGS): Likewise.
23472
23473 * fs/cpio.c: New file.
23474
23475 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
23476
23477 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23478
23479 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23480
23481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23482
533110ad 234832007-12-25 Robert Millan <rmh@aybabtu.com>
23484
23485 * include/grub/term.h (struct grub_term): Add `getcolor' function.
23486 (grub_getcolor): New function.
23487
23488 * kern/term.c (grub_getcolor): New function.
23489 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
23490 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
23491 (print_entry): Set normal and highlight colors to
23492 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
23493 respectively, before printing and restore them to old
23494 values afterwards.
23495 (grub_menu_init_page): Likewise. Fill an additional colored space
23496 that would otherwise be left blank.
23497
23498 * term/efi/console.c (grub_console_getcolor): New function.
23499 (struct grub_console_term.getcolor): New variable.
23500 * term/i386/pc/console.c (grub_console_getcolor): New function.
23501 (struct grub_console_term.getcolor): New variable.
23502 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
23503 (struct grub_console_term.getcolor): New variable.
23504
23505 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
23506 (struct grub_console_term.setcolor): Remove variable.
23507 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
23508 (struct grub_console_term.setcolor): Remove variable.
23509 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
23510 (struct grub_console_term.setcolor): Remove variable.
23511 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
23512 (struct grub_console_term.setcolor): Remove variable.
23513
4931827f 235142007-12-25 Robert Millan <rmh@aybabtu.com>
23515
23516 * configure.ac: Search for possible unifont.hex locations, and
23517 define UNIFONT_HEX if found.
23518
23519 * Makefile.in (UNIFONT_HEX): Define variable.
23520 (DATA): Rename to ...
23521 (PKGLIB): ... this. Update all users.
23522 (PKGDATA): New variable.
23523 (pkgdata_IMAGES): Rename to ...
23524 (pkglib_IMAGES): ... this. Update all users.
23525 (pkgdata_MODULES): Rename to ...
23526 (pkglib_MODULES): ... this. Update all users.
23527 (pkgdata_PROGRAMS): Rename to ...
23528 (pkglib_PROGRAMS): ... this. Update all users.
23529 (pkgdata_DATA): Rename to ...
23530 (pkglib_DATA): ... this. Update all users.
23531 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
23532 (unicode.pff, ascii.pff): New rules.
23533 (all-local): Add `$(PKGDATA)' dependency.
23534 (install-local): Process `$(PKGDATA)'.
23535
23536 * util/update-grub_lib.in (font_path): Search for *.pff files in
23537 a few more locations, including `${pkgdata}'.
23538
57e57e31 235392007-12-23 Robert Millan <rmh@aybabtu.com>
23540
23541 Patch from Bean <bean123ch@gmail.com>:
23542 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
23543 `size'.
23544
4bc72aa9 235452007-12-21 Bean <bean123ch@gmail.com>
23546
23547 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
23548 (ntfscomp_mod_SOURCES): New variable.
23549 (ntfscomp_mod_CFLAGS): Likewise.
23550 (ntfscomp_mod_LDFLAGS): Likewise.
23551
23552 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
23553 (grub_probe_SOURCES): Likewise.
23554 (grub_emu_SOURCES): Likewise.
23555
23556 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
23557 (grub_emu_SOURCES): Likewise.
23558
23559 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
23560 (grub_emu_SOURCES): Likewise.
23561
23562 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
23563 (grub_emu_SOURCES): Likewise.
23564
23565 * fs/ntfs.c (grub_ntfscomp_func): New variable.
23566 (read_run_list): Renamed to grub_ntfs_read_run_list.
23567 (decomp_nextvcn): Moved to ntfscomp.c.
23568 (decomp_getch): Likewise.
23569 (decomp_get16): Likewise.
23570 (decomp_block): Likewise.
23571 (read_block): Likewise.
23572 (read_data): Partially moved to ntfscomp.c.
23573 (fixup): Change unsigned to grub_uint16_t.
23574 (read_mft): Change unsigned long to grub_uint32_t.
23575 (read_attr): Likewise.
23576 (read_data): Likewise.
23577 (read_run_data): Likewise.
23578 (read_run_list): Likewise.
23579 (read_mft): Likewise.
23580
23581 * fs/ntfscomp.c: New file.
23582
23583 * include/grub/ntfs.h: New file.
23584
af680a87 235852007-12-16 Robert Millan <rmh@aybabtu.com>
23586
23587 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
23588 IDE disk check, since Linux is known to support 20 IDE disks.
23589 Reported by Colin Watson.
23590
84be7599 235912007-12-15 Bean <bean123ch@gmail.com>
23592
23593 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
23594 (lnxboot_img_SOURCES): New variable.
23595 (lnxboot_img_ASFLAGS): Likewise.
23596 (lnxboot_img_LDFLAGS): Likewise.
23597
23598 * boot/i386/pc/lnxboot.S: New file.
23599
6af9db01 236002007-11-24 Pavel Roskin <proski@gnu.org>
23601
23602 * configure.ac: Test if '--build-id=none' is supported by the
23603 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
23604 objcopy to generate incorrect binary files (binutils
23605 2.17.50.0.18-1 as shipped by Fedora 8).
23606 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
23607 linking, so that build ID doesn't break the test.
23608
7361cfe6 236092007-11-24 Pavel Roskin <proski@gnu.org>
23610
23611 * include/grub/i386/time.h: use "void" in the argument list
23612 of grub_cpu_idle().
23613 * include/grub/powerpc/time.h: Likewise.
23614 * include/grub/sparc64/time.h: Likewise.
23615
1593e10c 236162007-11-18 Christian Franke <franke@computer.org>
23617
23618 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
23619 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
23620 This fixes the problem that function keys did not work in grub-emu.
23621
3b8db1a8 236222007-11-18 Christian Franke <franke@computer.org>
23623
23624 * disk/host.c (grub_host_open): Remove attribute unused from
23625 name parameter. Add check for "host". This fixes the problem
23626 that grub-emu does not find partitions.
23627
2e29408d 236282007-11-18 Christian Franke <franke@computer.org>
23629
23630 * util/hostfs.c (is_dir): New function.
23631 (grub_hostfs_dir): Handle missing dirent.d_type case.
23632 (grub_hostfs_read): Add missing fseek().
23633 (grub_hostfs_label): Clear label pointer. This fixes a crash
23634 of grub-emu on "ls (host)".
23635
398cd047 236362007-11-18 Christian Franke <franke@computer.org>
23637
23638 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
23639 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
23640 to 64 bit boundary by default.
23641
c405c391 236422007-11-18 Bean <bean123ch@gmail.com>
23643
23644 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
23645 (hexdump_mod_SOURCES): New variable.
23646 (hexdump_mod_CFLAGS): Likewise.
23647 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 23648
c405c391 23649 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23650
23651 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23652
23653 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23654
23655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
23656
23657 * include/grub/hexdump.h: New file.
23658
23659 * commands/hexdump.c: New file.
23660
5cced7fd 236612007-11-10 Robert Millan <rmh@aybabtu.com>
23662
23663 * commands/i386/pc/play.c (beep_off): Switch order of arguments
23664 in grub_outb() calls.
23665 (beep_on): Likewise.
23666
8b714eb0 236672007-11-10 Christian Franke <franke@computer.org>
23668
23669 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
23670 (grub_menu_run): Likewise.
23671
ce0f1839 236722007-11-10 Robert Millan <rmh@aybabtu.com>
23673
23674 * include/grub/i386/efi/machine.h: New file.
23675 * include/grub/i386/linuxbios/machine.h: Likewise.
23676 * include/grub/i386/pc/machine.h: Likewise.
23677 * include/grub/powerpc/ieee1275/machine.h: Likewise.
23678 * include/grub/sparc64/ieee1275/machine.h: Likewise.
23679
23680 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
23681 (serial_hw_io_addr): New variable.
23682 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
23683 instead of `(unsigned short *) 0x400'.
23684
270c237d 236852007-11-10 Bean <bean123ch@gmail.com>
23686
23687 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
23688
a87783bf 236892007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
23690
23691 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
23692 (vga_mod_SOURCES): Added.
23693 (vga_mod_CFLAGS): Likewise.
23694 (vga_mod_LDFLAGS): Likewise.
23695
23696 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
23697 grub_outb() calls.
23698 (set_map_mask): Likewise.
23699 (set_read_map): Likewise.
23700 (set_read_address): Likewise.
23701 (vga_font): Removed variable.
23702 (get_vga_glyph): Removed function.
23703 (invalidate_char): Likewise.
23704 (write_char): Changed to use grub_font_get_glyph() for font
23705 information.
23706 (grub_vga_putchar): Likewise.
23707 (grub_vga_getcharwidth): Likewise.
23708
6433b448 237092007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
23710
23711 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
23712 flags.
23713 (pxeboot_img_LDFLAGS): Likewise.
23714 (diskboot_img_LDFLAGS): Likewise.
23715 (kernel_img_LDFLAGS): Likewise.
23716
49178511 237172007-11-06 Robert Millan <rmh@aybabtu.com>
23718
23719 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
23720 in grub_outb() calls.
23721 (serial_hw_init): Likewise.
23722
53b052de 237232007-11-05 Robert Millan <rmh@aybabtu.com>
23724
23725 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
23726 spaces. Skip non-regular files.
23727
5ab33bba 237282007-11-05 Robert Millan <rmh@aybabtu.com>
23729
23730 * kern/disk.c (grub_disk_firmware_fini)
23731 (grub_disk_firmware_is_tainted): New variables.
23732
23733 * include/grub/disk.h (grub_disk_firmware_fini)
23734 (grub_disk_firmware_is_tainted): Likewise.
23735
23736 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
23737 (grub_disk_biosdisk_fini): ... to here.
23738 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
23739 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
23740 is set. Register grub_disk_biosdisk_fini() in
23741 `grub_disk_firmware_fini'.
23742
23743 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
23744 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
23745 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
23746 to finish existing firmware disk interface.
23747
23748 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
23749 (ata_mod_SOURCES): New variable.
23750 (ata_mod_CFLAGS): Likewise.
23751 (ata_mod_LDFLAGS): Likewise.
23752
0149ab7c 237532007-11-05 Robert Millan <rmh@aybabtu.com>
23754
23755 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
23756 (grub_ata_wait): Reimplement using grub_millisleep().
23757
23758 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
23759 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
23760
be7ac41e 237612007-11-03 Marco Gerards <marco@gnu.org>
23762
23763 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
23764 (CRTC_ADDR_PORT): New macro.
23765 (CRTC_DATA_PORT): Likewise.
23766 (CRTC_CURSOR): Likewise.
23767 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23768 (CRTC_CURSOR_ADDR_LOW): Likewise.
23769 (update_cursor): New function.
23770 (grub_console_real_putchar): Call `update_cursor'.
23771 (grub_console_gotoxy): Likewise.
23772 (grub_console_cls): Set the default color when clearing the
23773 screen.
23774 (grub_console_setcursor): Implemented.
23775
bb06ab2e 237762007-11-03 Marco Gerards <marco@gnu.org>
23777
23778 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
23779 become activate.
23780 (grub_ata_pio_write): Likewise.
23781
23782 (grub_atapi_identify): Wait after issuing an ATA command.
23783 (grub_atapi_packet): Likewise.
23784 (grub_ata_identify): Likewise.
23785 (grub_ata_readwrite): Likewise.
23786
cf8f780b 237872007-11-03 Marco Gerards <marco@gnu.org>
23788
23789 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
23790 (grub_ata_pio_write): Likewise.
23791 (grub_ata_readwrite): Use `grub_error', instead of
23792 returning `grub_errno'.
23793
ed649e54 237942007-11-03 Marco Gerards <marco@gnu.org>
23795
23796 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
23797 grub_ata_pio_write once for every single sector, instead of for
23798 multiple sectors.
23799
ca25d8f0 238002007-10-31 Robert Millan <rmh@aybabtu.com>
23801
23802 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
23803
23804 * conf/i386-linuxbios.rmk: New file.
23805
23806 * kern/i386/pc/hardware.c: Likewise.
23807 * term/i386/pc/at_keyboard.c: Likewise.
23808 * term/i386/pc/vga_text.c: Likewise.
23809
23810 * include/grub/i386/linuxbios/boot.h: Likewise.
23811 * include/grub/i386/linuxbios/console.h: Likewise.
23812 * include/grub/i386/linuxbios/init.h: Likewise.
23813 * include/grub/i386/linuxbios/kernel.h: Likewise.
23814 * include/grub/i386/linuxbios/loader.h: Likewise.
23815 * include/grub/i386/linuxbios/memory.h: Likewise.
23816 * include/grub/i386/linuxbios/serial.h: Likewise.
23817 * include/grub/i386/linuxbios/time.h: Likewise.
23818
23819 * kern/i386/linuxbios/init.c: Likewise.
23820 * kern/i386/linuxbios/startup.S: Likewise.
23821 * kern/i386/linuxbios/table.c: Likewise.
23822
e911ecc1 238232007-10-31 Marco Gerards <marco@gnu.org>
23824
23825 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
23826 (ata_mod_SOURCES): New variable.
23827 (ata_mod_CFLAGS): Likewise.
23828 (ata_mod_LDFLAGS): Likewise.
23829
23830 * disk/ata.c: New file.
23831
23832 * include/grub/disk.h (grub_disk_dev_id): Add
23833 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 23834
7f66d0e0 238352007-10-31 Robert Millan <rmh@aybabtu.com>
23836
23837 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
23838 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
23839
23840 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
23841 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
23842
23843 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
23844 `<grub/types.h>'.
23845
23846 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
23847
5cd7dd46 238482007-10-27 Robert Millan <rmh@aybabtu.com>
23849
3236ca65 23850 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 23851
2ebfc90f 238522007-10-22 Robert Millan <rmh@aybabtu.com>
23853
23854 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
23855 `"../realmode.S"'.
23856 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
23857
73fcb0f3 238582007-10-22 Robert Millan <rmh@aybabtu.com>
23859
23860 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
23861 (pkgdata_MODULES): Add `biosdisk.mod'.
23862 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
23863 variables.
23864
23865 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
23866 (grub_biosdisk_init): Replace with ...
23867 (GRUB_MOD_INIT(biosdisk)): ... this.
23868 (grub_biosdisk_fini): Replace with ...
23869 (GRUB_MOD_FINI(biosdisk)): ... this.
23870
23871 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
23872 (grub_machine_init): Remove call to grub_biosdisk_init().
23873 (grub_machine_fini): Remove call to grub_machine_fini().
23874
23875 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
23876
3381d274 238772007-10-22 Robert Millan <rmh@aybabtu.com>
23878
23879 * include/grub/time.h: New file.
23880 * include/grub/i386/time.h: Likewise.
23881 * include/grub/powerpc/time.h: Likewise.
23882 * include/grub/sparc64/time.h: Likewise.
23883
23884 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
23885 instances to ...
23886 (KERNEL_MACHINE_TIME_HEADER): ... this.
23887 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
23888 instances to ...
23889 (KERNEL_MACHINE_TIME_HEADER): ... this.
23890 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
23891 instances to ...
23892 (KERNEL_MACHINE_TIME_HEADER): ... this.
23893
23894 * kern/i386/efi/init.c: Include `<grub/time.h>'.
23895 (grub_millisleep): New function.
23896 * kern/i386/pc/init.c: Include `<grub/time.h>'.
23897 (grub_millisleep): New function.
23898 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
23899 Remove `grub/machine/time.h' include.
23900 (grub_millisleep): New function.
23901 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
23902 Remove `grub/machine/time.h' include.
23903 (grub_millisleep): New function.
23904
23905 * include/grub/misc.h (grub_div_roundup): New function.
23906
23907 * kern/misc.c: Include `<grub/time.h>'.
23908 (grub_millisleep_generic): New function.
23909
23910 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
23911 Add `time.h'.
23912 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
23913 Add `time.h'.
23914 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
23915 `machine/time.h'. Add `time.h'.
23916 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
23917
a39a0312 239182007-10-21 Robert Millan <rmh@aybabtu.com>
23919
23920 * include/grub/misc.h (grub_max): New function.
23921
2aad70e2 239222007-10-21 Robert Millan <rmh@aybabtu.com>
23923
23924 * util/misc.c (grub_util_info): Call fflush() before returning.
23925
54b71c4b 239262007-10-20 Robert Millan <rmh@aybabtu.com>
23927
23928 * genmk.rb (Image): Copy `extra_flags' from here ...
23929 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
23930
23931 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
23932 to `argc' and `args' arguments.
23933
a979f513 239342007-10-17 Robert Millan <rmh@aybabtu.com>
23935
23936 * kern/i386/loader.S: New file.
23937
23938 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
23939 * kern/i386/loader.S (grub_linux_prot_size)... to here.
23940 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
23941 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
23942 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
23943 * kern/i386/loader.S (grub_linux_real_addr)... to here.
23944 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
23945 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
23946 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
23947 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
23948 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
23949 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
23950 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
23951 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
23952
23953 * kern/i386/realmode.S: New file.
23954
23955 * kern/i386/pc/startup.S (protstack): Moved from here ...
23956 * kern/i386/realmode.S (protstack)... to here.
23957 * kern/i386/pc/startup.S (gdt): Moved from here ...
23958 * kern/i386/realmode.S (gdt)... to here.
23959 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
23960 * kern/i386/realmode.S (prot_to_real)... to here.
23961
23962 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
23963 `kern/i386/realmode.S'.
23964
825fc8fd 239652007-10-17 Robert Millan <rmh@aybabtu.com>
23966
23967 * include/grub/i386/loader.h: New file.
23968
23969 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
23970 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
23971 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
23972 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
23973 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
23974 * include/grub/i386/loader.h (grub_linux_prot_size)
23975 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
23976 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
23977 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
23978 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
23979
23980 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
23981
e179b2f4 239822007-10-15 Robert Millan <rmh@aybabtu.com>
23983
23984 * normal/misc.c (grub_normal_print_device_info): Do not probe for
23985 filesystem when dev->disk is unset.
23986 Do probe for filesystem even when dev->disk->has_partitions is set.
23987 In case a filesystem is found, always report it.
23988 In case it isn't, if dev->disk->has_partitions is set, report that
23989 a partition table was found instead of reporting that no filesystem
23990 could be identified.
23991
5db82af6 239922007-10-12 Robert Millan <rmh@aybabtu.com>
23993
23994 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
23995 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
23996
68f6ac74 23997 * include/grub/types.h (grub_host_to_target16): New macro.
23998 (grub_host_to_target32): Likewise.
23999 (grub_host_to_target64): Likewise.
24000 (grub_target_to_host16): Likewise.
24001 (grub_target_to_host32): Likewise.
24002 (grub_target_to_host64): Likewise.
5db82af6 24003
24004 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
24005 Renamed from to ...
24006 (GRUB_MOD_ALIGN): ...this. Update all users.
24007
68f6ac74 24008 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
24009 grub_host_to_target32.
24010 Replace grub_be_to_cpu32 with grub_target_to_host32.
24011 (load_modules): Likewise.
24012 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
24013 Replace grub_be_to_cpu32 with grub_target_to_host32.
24014 Replace grub_cpu_to_be16 with grub_host_to_target16.
24015 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 24016
3cf497cc 240172007-10-12 Robert Millan <rmh@aybabtu.com>
24018
24019 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
24020 * util/elf/grub-mkimage.c: ... here.
24021
24022 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
24023 `util/powerpc/ieee1275/grub-mkimage.c'.
24024
c8cc3692 240252007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 24026
c8cc3692 24027 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
24028 and make it easier to figure out.
24029 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
24030 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
24031 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
24032 leave us with less than HEAP_MIN_SIZE total heap.
24033 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 24034
5c58b791 240352007-10-03 Robert Millan <rmh@aybabtu.com>
24036
24037 * include/grub/i386/io.h: New file.
24038 * commands/i386/pc/play.c (inb): Removed.
24039 (outb): Removed.
24040 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24041 with grub_outb().
afcd2ef8 24042 * term/i386/pc/serial.c (inb): Removed.
24043 (outb): Removed.
24044 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24045 with grub_outb().
24046 * term/i386/pc/vga.c (inb): Removed.
24047 (outb): Removed.
24048 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24049 with grub_outb().
5c58b791 24050
1a477ed6 240512007-10-02 Robert Millan <rmh@aybabtu.com>
24052
24053 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
24054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24055 Reported by Marcin Kurek.
24056
6b5d80fa 240572007-09-07 Robert Millan <rmh@aybabtu.com>
24058
24059 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
24060 SmartFirmware version updates (as released by Sven Luther), and avoid
24061 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
24062 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
24063 known broken.
24064
5618afbf 240652007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24066
24067 From Hitoshi Ozeki:
24068 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
24069 when merging two regions.
24070
6139dcd9 240712007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24072
508e39ee 24073 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
24074 * normal/completion.c (grub_normal_do_completion): Likewise.
24075 Reported by Hitoshi Ozeki.
24076
240772007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 24078
6139dcd9 24079 Do not use devices at boot in chainloading.
f19dbdb7 24080
6139dcd9 24081 * loader/i386/pc/chainloader.c (boot_drive): New variable.
24082 (boot_part_addr): Likewise.
24083 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
24084 with BOOT_DRIVE and BOOT_PART_ADDR.
24085 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
24086 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
24087
38da6516 240882007-08-29 Robert Millan <rmh@aybabtu.com>
24089
24090 Patch from Simon Peter <dn.tlp@gmx.net>:
24091 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
24092 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
24093 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
24094 util/i386/pc/grub-setup.c_DEPENDENCIES.
24095 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
24096 util/grub-probe.c_DEPENDENCIES.
24097 * conf/powerpc-ieee1275.rmk: Likewise.
24098
29d0928c 240992007-08-28 Robert Millan <rmh@aybabtu.com>
24100
24101 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
24102 to tell grub-mkdevicemap how to name devices.
24103 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
24104 feature).
24105
24106 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
24107 util/i386/get_disk_name.c.
24108 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
24109 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
24110 util/ieee1275/get_disk_name.c.
24111
24112 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
24113
24114 * DISTLIST: Add util/i386/get_disk_name.c and
24115 util/ieee1275/get_disk_name.c.
24116
24117 * util/grub-mkdevicemap.c: Replace device naming logic with
24118 grub_util_get_disk_name() calls.
24119
5a0d3cca 241202007-08-20 Robert Millan <rmh@aybabtu.com>
24121
24122 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
24123 (so that it works for both plural and singular quantities).
24124
8b72db2f 241252007-08-05 Robert Millan <rmh@aybabtu.com>
24126
24127 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
24128 so that [xz] isn't taken into account when determining order.
24129
352466bf 241302007-08-02 Marco Gerards <marco@gnu.org>
24131
24132 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
24133 `include/multiboot2.h', `include/grub/elfload.h',
24134 `include/multiboot.h', `include/grub/multiboot.h',
24135 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
24136 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
24137 `kern/elf.c', `loader/multiboot_loader.c',
24138 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
24139 `loader/i386/pc/multiboot2.c',
24140 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
24141 `util/i386/pc/grub-mkrescue.in'. Remove
24142 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
24143 `include/grub/i386/pc/util/biosdisk.h' and
24144 `include/grub/powerpc/ieee1275/multiboot.h'.
24145
8f096014 241462007-08-02 Bean <bean123ch@gmail.com>
24147
24148 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
24149 (ntfs_mod_SOURCES): New variable.
24150 (ntfs_mod_CFLAGS): Likewise.
24151 (ntfs_mod_LDFLAGS): Likewise.
24152
24153 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
24154 (grub_probe_SOURCES): Likewise.
24155 (grub_emu_SOURCES): Likewise.
24156
24157 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
24158 (grub_emu_SOURCES): Likewise.
24159
24160 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
24161 (grub_emu_SOURCES): Likewise.
f19dbdb7 24162
8f096014 24163 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
24164
24165 * fs/ntfs.c: New file.
24166
9959f7db 241672007-08-02 Bean <bean123ch@gmail.com>
24168
24169 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
24170
24171 * file.h (grub_file): Likewise.
24172
24173 * fshelp.h (grub_fshelp_read_file): Likewise.
24174
24175 * util/i386/pc/grub-setup.c (setup): Likewise.
24176 (save_first_sector): Likewise.
24177 (save_blocklists): Likewise.
f19dbdb7 24178
9959f7db 24179 * fs/affs.c (grub_affs_read_file): Likewise.
24180
24181 * fs/ext2.c (grub_ext2_read_file): Likewise.
24182
24183 * fs/fat.c (grub_fat_read_data): Likewise.
24184
24185 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
24186
24187 * fs/hfs.c (grub_hfs_read_file): Likewise.
24188
24189 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
24190
24191 * fs/jfs.c (grub_jfs_read_file): Likewise.
24192
24193 * fs/minix.c (grub_minix_read_file): Likewise.
24194
24195 * fs/sfs.c (grub_sfs_read_file): Likewise.
24196
24197 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 24198
9959f7db 24199 * fs/xfs.c (grub_xfs_read_file): Likewise.
24200
24201 * command/blocklist.c (read_blocklist): Likewise.
24202 (print_blocklist): Likewise.
24203
0a203f83 242042007-08-02 Marco Gerards <marco@gnu.org>
24205
24206 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
24207 `util/hostfs.c'.
24208
24209 * disk/host.c: New file.
24210
24211 * util/hostfs.c: Likewise.
24212
24213 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
24214 return `GRUB_ERR_BAD_FS'.
24215 * fs/sfs.c (grub_sfs_mount): Likewise.
24216 * fs/xfs.c (grub_xfs_mount): Likewise.
24217
24218 * include/grub/disk.h (enum grub_disk_dev_id): Add
24219 `GRUB_DISK_DEVICE_HOST_ID'.
24220
24221 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
24222
e5dfe777 242232007-07-24 Jerone Young <jerone@gmail.com>
24224
f19dbdb7 24225 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 24226 modules for compilation.
24227 * conf/powerpc-ieee1275.rmk: Likewise.
24228
24229 * include/multiboot.h: Move multiboot definitions to one file. Rename
24230 many definitions to not get grub specific.
24231 * include/multiboot2.h: Create header with multiboot 2 definitions.
24232 * include/grub/multiboot.h: Header for grub specific function
24233 prototypes and definitions.
24234 * include/grub/multiboot2.h: Likewise.
24235 * include/grub/multiboot_loader.h: Likewise.
24236 * include/grub/i386/pc/multiboot.h: Removed.
24237 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
24238
24239 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
24240 and 2 to allow for one multiboot and module commands.
24241 * loader/multiboot2.c: Add multiboot2 functionality.
24242 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
24243 and definition names.
24244 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
24245 2 functions.
24246 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
24247 ieee1275 specific multiboot2 code.
24248
24249 * kern/i386/pc/startup.S: Change headers and definition names for
24250 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
24251
daf0f0ba 242522007-07-22 Robert Millan <rmh@aybabtu.com>
24253
24254 * geninitheader.sh: Process file specified in first parameter rather
24255 than hardcoding grub_modules_init.lst.
fe6b695a 24256 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 24257 than hardcoding grub_modules_init.h.
24258
24259 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
24260 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
24261 grub_probe_init.[ch] and grub_setup_init.[ch].
24262
24263 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
24264 grub_modules_init.h with grub_emu_init.h.
24265 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
24266 grub_probe_init.[ch] files.
24267 * conf/i386-efi.rmk: Likewise.
24268 * conf/i386-pc.rmk: Likewise.
24269 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
24270 grub_setup_init.[ch] files.
24271
24272 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
24273 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
24274 to initialize modules rather than a list of hardcoded functions.
24275 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
24276 grub_init_all() to initialize modules rather than a list of hardcoded
24277 functions.
24278
54cdc1cc 242792007-07-22 Robert Millan <rmh@aybabtu.com>
24280
24281 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24282 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
24283
ad0686cc 242842007-07-22 Robert Millan <rmh@aybabtu.com>
24285
24286 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
24287 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
24288 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
24289 flag when running on SmartFirmware.
24290 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
24291 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
24292 was set.
24293
24294 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
24295 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
24296 rather than decreasing it.
24297
24298 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
24299 there's not enough space to do it, fail in the same way as when it
24300 can't be done because there are no partitions.
24301
24302 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
24303 when nvsetenv failed.
24304
969c02ec 243052007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
24306
24307 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
24308 because this rule is automatically generated.
24309 (grub-mkrescue): Removed for the same reason as above.
24310
5a79f472 243112007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
24312
24313 Migrate to GNU General Public License Version 3.
f19dbdb7 24314
5a79f472 24315 * COPYING: Replaced with the plain text version of GPLv3.
24316
24317 * config.guess: Updated from gnulib.
24318 * config.sub: Likewise.
24319
24320 * geninit.sh: Output a GPLv3 copyright notice.
24321 * geninitheader.sh: Likewise.
24322 * genmodsrc.sh: Likewise.
24323 * gensymlist.sh.in: Likewise.
24324
24325 * boot/i386/pc/boot.S: Upgraded to GPLv3.
24326 * boot/i386/pc/diskboot.S: Likewise.
24327 * boot/i386/pc/pxeboot.S: Likewise.
24328 * commands/blocklist.c: Likewise.
24329 * commands/boot.c: Likewise.
24330 * commands/cat.c: Likewise.
24331 * commands/cmp.c: Likewise.
24332 * commands/configfile.c: Likewise.
24333 * commands/echo.c: Likewise.
24334 * commands/help.c: Likewise.
24335 * commands/ls.c: Likewise.
24336 * commands/search.c: Likewise.
24337 * commands/terminal.c: Likewise.
24338 * commands/test.c: Likewise.
24339 * commands/videotest.c: Likewise.
24340 * commands/i386/cpuid.c: Likewise.
24341 * commands/i386/pc/halt.c: Likewise.
24342 * commands/i386/pc/play.c: Likewise.
24343 * commands/i386/pc/reboot.c: Likewise.
24344 * commands/i386/pc/vbeinfo.c: Likewise.
24345 * commands/i386/pc/vbetest.c: Likewise.
24346 * commands/ieee1275/halt.c: Likewise.
24347 * commands/ieee1275/reboot.c: Likewise.
24348 * commands/ieee1275/suspend.c: Likewise.
24349 * disk/loopback.c: Likewise.
24350 * disk/lvm.c: Likewise.
24351 * disk/raid.c: Likewise.
24352 * disk/efi/efidisk.c: Likewise.
24353 * disk/i386/pc/biosdisk.c: Likewise.
24354 * disk/ieee1275/ofdisk.c: Likewise.
24355 * font/manager.c: Likewise.
24356 * fs/affs.c: Likewise.
24357 * fs/ext2.c: Likewise.
24358 * fs/fat.c: Likewise.
24359 * fs/fshelp.c: Likewise.
24360 * fs/hfs.c: Likewise.
24361 * fs/hfsplus.c: Likewise.
24362 * fs/iso9660.c: Likewise.
24363 * fs/jfs.c: Likewise.
24364 * fs/minix.c: Likewise.
24365 * fs/sfs.c: Likewise.
24366 * fs/ufs.c: Likewise.
24367 * fs/xfs.c: Likewise.
24368 * hello/hello.c: Likewise.
24369 * include/grub/acorn_filecore.h: Likewise.
24370 * include/grub/arg.h: Likewise.
24371 * include/grub/bitmap.h: Likewise.
24372 * include/grub/boot.h: Likewise.
24373 * include/grub/cache.h: Likewise.
24374 * include/grub/device.h: Likewise.
24375 * include/grub/disk.h: Likewise.
24376 * include/grub/dl.h: Likewise.
24377 * include/grub/elfload.h: Likewise.
24378 * include/grub/env.h: Likewise.
24379 * include/grub/err.h: Likewise.
24380 * include/grub/file.h: Likewise.
24381 * include/grub/font.h: Likewise.
24382 * include/grub/fs.h: Likewise.
24383 * include/grub/fshelp.h: Likewise.
24384 * include/grub/gzio.h: Likewise.
24385 * include/grub/hfs.h: Likewise.
24386 * include/grub/kernel.h: Likewise.
24387 * include/grub/loader.h: Likewise.
24388 * include/grub/lvm.h: Likewise.
24389 * include/grub/misc.h: Likewise.
24390 * include/grub/mm.h: Likewise.
24391 * include/grub/net.h: Likewise.
24392 * include/grub/normal.h: Likewise.
24393 * include/grub/parser.h: Likewise.
24394 * include/grub/partition.h: Likewise.
24395 * include/grub/pc_partition.h: Likewise.
24396 * include/grub/raid.h: Likewise.
24397 * include/grub/rescue.h: Likewise.
24398 * include/grub/script.h: Likewise.
24399 * include/grub/setjmp.h: Likewise.
24400 * include/grub/symbol.h: Likewise.
24401 * include/grub/term.h: Likewise.
24402 * include/grub/terminfo.h: Likewise.
24403 * include/grub/tparm.h: Likewise.
24404 * include/grub/types.h: Likewise.
24405 * include/grub/video.h: Likewise.
24406 * include/grub/efi/api.h: Likewise.
24407 * include/grub/efi/chainloader.h: Likewise.
24408 * include/grub/efi/console.h: Likewise.
24409 * include/grub/efi/console_control.h: Likewise.
24410 * include/grub/efi/disk.h: Likewise.
24411 * include/grub/efi/efi.h: Likewise.
24412 * include/grub/efi/pe32.h: Likewise.
24413 * include/grub/efi/time.h: Likewise.
24414 * include/grub/i386/linux.h: Likewise.
24415 * include/grub/i386/setjmp.h: Likewise.
24416 * include/grub/i386/types.h: Likewise.
24417 * include/grub/i386/efi/kernel.h: Likewise.
24418 * include/grub/i386/efi/loader.h: Likewise.
24419 * include/grub/i386/efi/time.h: Likewise.
24420 * include/grub/i386/pc/biosdisk.h: Likewise.
24421 * include/grub/i386/pc/boot.h: Likewise.
24422 * include/grub/i386/pc/chainloader.h: Likewise.
24423 * include/grub/i386/pc/console.h: Likewise.
24424 * include/grub/i386/pc/init.h: Likewise.
24425 * include/grub/i386/pc/kernel.h: Likewise.
24426 * include/grub/i386/pc/loader.h: Likewise.
24427 * include/grub/i386/pc/memory.h: Likewise.
24428 * include/grub/i386/pc/multiboot.h: Likewise.
24429 * include/grub/i386/pc/serial.h: Likewise.
24430 * include/grub/i386/pc/time.h: Likewise.
24431 * include/grub/i386/pc/vbe.h: Likewise.
24432 * include/grub/i386/pc/vbeblit.h: Likewise.
24433 * include/grub/i386/pc/vbefill.h: Likewise.
24434 * include/grub/i386/pc/vbeutil.h: Likewise.
24435 * include/grub/i386/pc/vga.h: Likewise.
24436 * include/grub/ieee1275/ieee1275.h: Likewise.
24437 * include/grub/ieee1275/ofdisk.h: Likewise.
24438 * include/grub/powerpc/libgcc.h: Likewise.
24439 * include/grub/powerpc/setjmp.h: Likewise.
24440 * include/grub/powerpc/types.h: Likewise.
24441 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
24442 * include/grub/powerpc/ieee1275/console.h: Likewise.
24443 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
24444 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
24445 * include/grub/powerpc/ieee1275/loader.h: Likewise.
24446 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
24447 * include/grub/powerpc/ieee1275/time.h: Likewise.
24448 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
24449 * include/grub/sparc64/libgcc.h: Likewise.
24450 * include/grub/sparc64/setjmp.h: Likewise.
24451 * include/grub/sparc64/types.h: Likewise.
24452 * include/grub/sparc64/ieee1275/console.h: Likewise.
24453 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24454 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24455 * include/grub/sparc64/ieee1275/time.h: Likewise.
24456 * include/grub/util/biosdisk.h: Likewise.
24457 * include/grub/util/getroot.h: Likewise.
24458 * include/grub/util/lvm.h: Likewise.
24459 * include/grub/util/misc.h: Likewise.
24460 * include/grub/util/raid.h: Likewise.
24461 * include/grub/util/resolve.h: Likewise.
24462 * io/gzio.c: Likewise.
24463 * kern/device.c: Likewise.
24464 * kern/disk.c: Likewise.
24465 * kern/dl.c: Likewise.
24466 * kern/elf.c: Likewise.
24467 * kern/env.c: Likewise.
24468 * kern/err.c: Likewise.
24469 * kern/file.c: Likewise.
24470 * kern/fs.c: Likewise.
24471 * kern/loader.c: Likewise.
24472 * kern/main.c: Likewise.
24473 * kern/misc.c: Likewise.
24474 * kern/mm.c: Likewise.
24475 * kern/parser.c: Likewise.
24476 * kern/partition.c: Likewise.
24477 * kern/rescue.c: Likewise.
24478 * kern/term.c: Likewise.
24479 * kern/efi/efi.c: Likewise.
24480 * kern/efi/init.c: Likewise.
24481 * kern/efi/mm.c: Likewise.
24482 * kern/i386/dl.c: Likewise.
24483 * kern/i386/efi/init.c: Likewise.
24484 * kern/i386/efi/startup.S: Likewise.
24485 * kern/i386/pc/init.c: Likewise.
24486 * kern/i386/pc/lzo1x.S: Likewise.
24487 * kern/i386/pc/startup.S: Likewise.
24488 * kern/ieee1275/ieee1275.c: Likewise.
24489 * kern/powerpc/cache.S: Likewise.
24490 * kern/powerpc/dl.c: Likewise.
24491 * kern/powerpc/ieee1275/cmain.c: Likewise.
24492 * kern/powerpc/ieee1275/crt0.S: Likewise.
24493 * kern/powerpc/ieee1275/init.c: Likewise.
24494 * kern/powerpc/ieee1275/openfw.c: Likewise.
24495 * kern/sparc64/cache.S: Likewise.
24496 * kern/sparc64/dl.c: Likewise.
24497 * kern/sparc64/ieee1275/init.c: Likewise.
24498 * kern/sparc64/ieee1275/openfw.c: Likewise.
24499 * loader/efi/chainloader.c: Likewise.
24500 * loader/efi/chainloader_normal.c: Likewise.
24501 * loader/i386/efi/linux.c: Likewise.
24502 * loader/i386/efi/linux_normal.c: Likewise.
24503 * loader/i386/pc/chainloader.c: Likewise.
24504 * loader/i386/pc/chainloader_normal.c: Likewise.
24505 * loader/i386/pc/linux.c: Likewise.
24506 * loader/i386/pc/linux_normal.c: Likewise.
24507 * loader/i386/pc/multiboot.c: Likewise.
24508 * loader/i386/pc/multiboot_normal.c: Likewise.
24509 * loader/powerpc/ieee1275/linux.c: Likewise.
24510 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
24511 * normal/arg.c: Likewise.
24512 * normal/cmdline.c: Likewise.
24513 * normal/command.c: Likewise.
24514 * normal/completion.c: Likewise.
24515 * normal/execute.c: Likewise.
24516 * normal/function.c: Likewise.
24517 * normal/lexer.c: Likewise.
24518 * normal/main.c: Likewise.
24519 * normal/menu.c: Likewise.
24520 * normal/menu_entry.c: Likewise.
24521 * normal/misc.c: Likewise.
24522 * normal/parser.y: Likewise.
24523 * normal/script.c: Likewise.
24524 * normal/i386/setjmp.S: Likewise.
24525 * normal/powerpc/setjmp.S: Likewise.
24526 * normal/sparc64/setjmp.S: Likewise.
24527 * partmap/acorn.c: Likewise.
24528 * partmap/amiga.c: Likewise.
24529 * partmap/apple.c: Likewise.
24530 * partmap/gpt.c: Likewise.
24531 * partmap/pc.c: Likewise.
24532 * partmap/sun.c: Likewise.
24533 * term/gfxterm.c: Likewise.
24534 * term/terminfo.c: Likewise.
24535 * term/efi/console.c: Likewise.
24536 * term/i386/pc/console.c: Likewise.
24537 * term/i386/pc/serial.c: Likewise.
24538 * term/i386/pc/vesafb.c: Likewise.
24539 * term/i386/pc/vga.c: Likewise.
24540 * term/ieee1275/ofconsole.c: Likewise.
24541 * util/biosdisk.c: Likewise.
24542 * util/console.c: Likewise.
24543 * util/genmoddep.c: Likewise.
24544 * util/getroot.c: Likewise.
24545 * util/grub-emu.c: Likewise.
24546 * util/grub-mkdevicemap.c: Likewise.
24547 * util/grub-probe.c: Likewise.
24548 * util/lvm.c: Likewise.
24549 * util/misc.c: Likewise.
24550 * util/raid.c: Likewise.
24551 * util/resolve.c: Likewise.
24552 * util/update-grub.in: Likewise.
24553 * util/update-grub_lib.in: Likewise.
24554 * util/grub.d/00_header.in: Likewise.
24555 * util/grub.d/10_hurd.in: Likewise.
24556 * util/grub.d/10_linux.in: Likewise.
24557 * util/i386/efi/grub-install.in: Likewise.
24558 * util/i386/efi/grub-mkimage.c: Likewise.
24559 * util/i386/pc/grub-install.in: Likewise.
24560 * util/i386/pc/grub-mkimage.c: Likewise.
24561 * util/i386/pc/grub-mkrescue.in: Likewise.
24562 * util/i386/pc/grub-setup.c: Likewise.
24563 * util/i386/pc/misc.c: Likewise.
24564 * util/powerpc/ieee1275/grub-install.in: Likewise.
24565 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
24566 * util/powerpc/ieee1275/misc.c: Likewise.
24567 * video/bitmap.c: Likewise.
24568 * video/video.c: Likewise.
24569 * video/i386/pc/vbe.c: Likewise.
24570 * video/i386/pc/vbeblit.c: Likewise.
24571 * video/i386/pc/vbefill.c: Likewise.
24572 * video/i386/pc/vbeutil.c: Likewise.
24573 * video/readers/tga.c: Likewise.
24574
3572d015 245752007-07-02 Robert Millan <rmh@aybabtu.com>
24576
24577 * conf/i386-efi.rmk: Replace obsolete reference to
24578 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
24579 with util/getroot.c.
24580 * conf/powerpc-ieee1275.rmk: Likewise.
24581 * conf/sparc64-ieee1275.rmk: Likewise.
24582
24583 * util/grub-emu.c (main): Fix unchecked pointer handling.
24584
2c2a681b 245852007-07-02 Robert Millan <rmh@aybabtu.com>
24586
24587 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
24588 invocation to fail, in order to support partition-less media.
24589
24590 * util/i386/pc/grub-install.in: Likewise.
24591
24592 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
24593 which fs or partmap modules are needed (akin to its sister scripts).
24594
24595 Also use grub-probe to get rid of unportable /proc/mounts check.
24596
24597 Print the same informational message that the other scripts do, before
fe6b695a 24598 exiting.
2c2a681b 24599
6193defe 246002007-06-23 Robert Millan <rmh@aybabtu.com>
24601
fe6b695a 24602 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 24603 a font file can be found and, if so, echo the GRUB path to it.
24604
24605 * util/update-grub.in: Handle multiple terminals depending on user
24606 input, platform availability and font file presence. Propagate
24607 variables of our findings to /etc/grub.d/ children.
24608
24609 * util/grub.d/00_header.in: Handle multiple terminals, based on
24610 environment setup by update-grub.
24611
eface1dc 246122007-06-23 Robert Millan <rmh@aybabtu.com>
24613
ba50d28f 24614 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 24615
bf697e28 246162007-06-21 Robert Millan <rmh@aybabtu.com>
24617
24618 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
24619 indicate end of data section in kernel image.
24620 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
24621 GRUB_KERNEL_MACHINE_DATA_END.
24622
24623 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
24624 space for it.
24625 * kern/i386/efi/startup.S: Likewise.
24626
24627 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
24628 during image generation. Implement --prefix option to override this
24629 patch.
24630 * util/i386/efi/grub-mkimage.c: Likewise.
24631
24632 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
24633 code to make path relative to its root into a separate function.
24634
24635 * util/i386/pc/grub-install.in: Use newly provided
24636 make_system_path_relative_to_its_root() to convert ${grubdir}, then
24637 pass the result to grub-install --prefix.
24638
baa574b4 246392007-06-13 Robert Millan <rmh@aybabtu.com>
24640
24641 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
24642 DEFAULT_DEVICE_MAP.
24643 * util/grub-emu.c: Use above definitions from misc.h instead of
24644 defining them.
24645 * util/grub-mkdevicemap.c: Likewise.
24646 * util/i386/pc/grub-setup.c: Likewise.
24647 * util/grub-probe.c: Likewise.
24648 (probe): Abort with grub_util_error() when either
24649 grub_guess_root_device or grub_util_get_grub_dev fails.
24650
0215dcbf 246512007-06-12 Robert Millan <rmh@aybabtu.com>
24652
24653 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
24654 "pager" assignment.
24655 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
24656 "pcdata".
24657 * util/grub-probe.c (probe): Likewise for "drive_name".
24658
8af2ab7b 246592007-06-11 Robert Millan <rmh@aybabtu.com>
24660
24661 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
24662 not just the cdrom one.
24663
59d31694 246642007-06-11 Robert Millan <rmh@aybabtu.com>
24665
24666 * util/i386/pc/grub-mkrescue.in: Add "set -e".
24667 Add --pkglibdir=DIR option to override pkglibdir.
24668 Mention --image-type=TYPE in help output.
24669 Fix --grub-mkimage (it was a no-op).
fe6b695a 24670 Abort gracefully when no parameter is given.
59d31694 24671
7ee367e4 246722007-06-11 Robert Millan <rmh@aybabtu.com>
24673
24674 * util/i386/pc/grub-mkrescue.in: New file.
24675 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
24676 * Makefile.in: Handle bin_SCRIPTS.
24677
29b0ed46 246782007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
24679
24680 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
24681 list of video modes.
24682
c0f90770 246832007-06-06 Robert Millan <rmh@aybabtu.com>
24684
24685 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
24686 file doesn't exist, or if it is in a filesystem grub can't read.
24687
24688 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
24689 not abort if GRUB_DRIVE could not be defined. Rearrange generated
24690 header comment to fit in 80 columns when the variables are resolved.
24691
24692 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
24693 could be identified by update-grub. Remove redundant check for
fe6b695a 24694 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 24695 handles that).
24696
fb36dc26 246972007-06-04 Robert Millan <rmh@aybabtu.com>
24698
24699 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
24700
24701 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
24702
24703 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
24704
0c68c93e 247052007-06-04 Robert Millan <rmh@aybabtu.com>
24706
24707 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
24708
24709 * include/grub/partition.h: Declare grub_apple_partition_map_init and
24710 grub_apple_partition_map_fini.
24711
24712 * util/biosdisk.c
24713 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
24714 to access >2 TiB disks).
24715
24716 Print disk->total_sectors with %llu instead of %lu, since this
24717 variable is always 64-bit (prevents wrong disk size from being displayed
24718 on either >2 TiB disk or big-endian CPU).
24719
24720 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
24721 into a generic case that supports all (sane) partition maps.
24722
24723 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
24724 breaks big-endian.
24725
24726 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
24727 and grub_apple_partition_map_fini() after that.
24728
0f23eb74 247292007-06-01 Robert Millan <rmh@aybabtu.com>
24730
24731 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
24732
24733 * util/grub.d/00_header.in: Only enable gfxterm when
24734 convert_system_path_to_grub_path() succeeds.
24735
42c71976 247362007-05-20 Robert Millan <rmh@aybabtu.com>
24737
24738 * util/update-grub_lib.in: New file.
24739 * DISTLIST: Add update-grub_lib.in.
24740 * conf/common.rmk: Generate update-grub_lib and install it in
24741 $(lib_DATA).
24742 * Makefile.in: Add install routine for $(lib_DATA).
24743
24744 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
24745 function provided by update-grub_lib to support arbitrary paths of
24746 unifont.pff.
24747 * util/update-grub.in: Use convert_system_path_to_grub_path() to
24748 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
24749
5beb2291 247502007-05-19 Robert Millan <rmh@aybabtu.com>
24751
24752 * commands/i386/cpuid.c: New module.
24753 * DISTLIST: Add it.
24754 * conf/i386-efi.rmk: Enable cpuid.mod.
24755 * conf/i386-pc.rmk: Likewise.
24756
7262eca1 247572007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
24758
24759 * kern/disk.c (grub_disk_read): Check return value of
24760 grub_realloc().
24761
260ba823 247622007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
24763
24764 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
24765 arrays.
24766 * disk/raid.c (grub_raid_open): Likewise.
24767
1ecb6cf2 247682007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
24769
24770 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
24771 stack instead of on the heap.
24772
24773 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
24774 before doing a read on it.
24775
24776 * configure.ac: Only use -fno-stack-protector for the target
24777 environment.
f19dbdb7 24778
21c8cbb1 247792007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
24780
24781 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
24782 __attribute_ ((unused)) to mode_type argument.
24783
24784 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 24785
21c8cbb1 24786 * kern/misc.c (memcmp): Fix prototype.
24787
24788 * include/grub/partition.h [GRUB_UTIL]
24789 (grub_gpt_partition_map_init): Add prototype.
24790 (grub_gpt_partition_map_fini): Likewise.
24791
24792 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
24793 at the right place.
24794
24795 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
24796 (grub_fat_read_data): Likewise.
24797 (grub_fat_find_dir): Likewise.
24798
24799 * font/manager.c (find_glyph): Make table a const.
24800 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 24801
849d55d3 248022007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
24803
24804 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
24805 code, first search for device in /dev/mapper, then in /dev.
24806 (grub_util_get_grub_dev): New function.
24807 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
24808 prototype.
24809 * util/grub-probe.c (probe): Remove check for RAID, call
24810 grub_util_get_grub_dev() instead of
24811 grub_util_biosdisk_get_grub_dev().
24812 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
24813 grub_util_biosdisk_get_grub_dev().
24814 * util/i386/pc/grub-setup.c (main): Likewise.
24815
8fff7c2f 248162007-05-16 Robert Millan <rmh@aybabtu.com>
24817
24818 * DISTLIST: Update for the latest changes.
24819 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
24820 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
24821 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
24822 grub/util/biosdisk.h.
24823 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
24824 grub/util/biosdisk.h.
24825
48e12b52 248262007-05-16 Robert Millan <rmh@aybabtu.com>
24827
24828 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
24829
46b9d128 248302007-05-16 Robert Millan <rmh@aybabtu.com>
24831
24832 * util/i386/efi/grub-install.in: New.
24833 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
24834 newly added grub-install.
24835 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
24836 include.
24837 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
24838 grub/util/biosdisk.h.
24839 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
24840 grub/util/biosdisk.h.
24841
2d1a40a9 248422007-05-16 Robert Millan <rmh@aybabtu.com>
24843
24844 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
24845 * include/grub/util/biosdisk.h: ... here.
24846 * util/i386/pc/biosdisk.c: Moved to ...
24847 * util/biosdisk.c: ... here.
24848 * util/i386/pc/getroot.c: Moved to ...
24849 * util/getroot.c: ... here.
24850 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
24851 * util/grub-mkdevicemap.c: ... here.
24852 * util/i386/pc/grub-probe.c: Moved to ...
24853 * util/grub-probe.c: ... here.
24854
9e26e3bc 248552007-05-15 Robert Millan <rmh@aybabtu.com>
24856
24857 * util/update-grub.in: Remove duplicated line in grub.cfg header
24858 message.
24859
57f96397 248602007-05-13 Robert Millan <rmh@aybabtu.com>
24861
24862 * util/update-grub.in: Fix a few assumptions about the devices holding
24863 /, /boot and /boot/grub being the same.
24864 * util/grub.d/00_header.in: Likewise.
24865 * util/grub.d/10_hurd.in: Likewise.
24866 * util/grub.d/10_linux.in: Likewise.
24867
24868 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
24869 patterns. Use that to define the `.old' suffix as older than `'.
24870
24871 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
24872
24873 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
24874 the grub.cfg header message.
24875
2e610d62 248762007-05-11 Robert Millan <rmh@aybabtu.com>
24877
24878 * util/update-grub.in: Create device.map if it doesn't already exist,
24879 before attempting to run grub-probe.
24880 Check for grub-probe and grub-mkdevicemap with the same code
24881 grub-install is using.
24882 Remove test mode.
24883
3f6a10ef 248842007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
24885
24886 * Makefile.in: Add the datarootdir autoconf variable.
24887
02e7b75e 248882007-05-09 Robert Millan <rmh@aybabtu.com>
24889
24890 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 24891 fail gracefully if dev->disk->partition == NULL.
02e7b75e 24892
75f396cc 248932007-05-07 Robert Millan <rmh@aybabtu.com>
24894
24895 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
24896 determine partition map module.
24897 * util/i386/pc/grub-install.in: Use this feature to decide which
24898 partition module to load, instead of hardcoding pc and gpt.
24899
da65cb36 249002007-05-07 Robert Millan <rmh@aybabtu.com>
24901
24902 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
24903 source directory differs from build directory.
24904
b57d6a91 249052007-05-05 Robert Millan <rmh@aybabtu.com>
24906
24907 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
24908 initialisation.
24909
509d00f1 249102007-05-05 Robert Millan <rmh@aybabtu.com>
24911
24912 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
24913
c48f23ef 249142007-05-05 Robert Millan <rmh@aybabtu.com>
24915
24916 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
24917 command-line arguments via ${GRUB_CMDLINE_LINUX}.
24918
20b97658 249192007-05-05 Robert Millan <rmh@aybabtu.com>
24920
24921 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
24922 (grub_probe_SOURCES): Likewise.
24923 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
24924 GPT and initialize dos_part and bsd_part accordingly.
24925 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
24926 install_bsd_part.
24927 (main): Activate gpt module for use during partition identification,
24928 and deactivate it afterwards.
24929 * util/i386/pc/grub-install.in: Add gpt module to core.img.
24930 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
24931 partition identification, and deactivate it afterwards.
24932
99123174 249332007-05-05 Robert Millan <rmh@aybabtu.com>
24934
24935 * term/i386/pc/console.c (grub_console_fini): Call
24936 grub_term_set_current() before grub_term_unregister().
24937
ebd97f6e 249382007-05-04 Robert Millan <rmh@aybabtu.com>
24939
24940 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
24941 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
24942 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
24943 and update-grub_DATA.
24944 * conf/common.rmk: Build and install update-grub components.
24945 * conf/common.mk: Regenerate.
24946 * util/update-grub.in: New. Core of update-grub.
24947 * util/grub.d/00_header.in: New. Generates grub.cfg header.
24948 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
24949 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
24950 * util/grub.d/README: New. Document grub.d directory layout.
24951
b06a264d 249522007-05-01 Robert Millan <rmh@aybabtu.com>
24953
24954 * util/grub-emu.c: Move initialization functions
24955 grub_util_biosdisk_init() and grub_init_all() before
24956 grub_util_biosdisk_get_grub_dev(), which relies on them.
24957
41f0050e 249582007-04-19 Robert Millan <rmh@aybabtu.com>
24959
24960 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
24961 it is used later.
24962
04582bb3 249632007-04-18 Jerone Young <jerone@gmail.com>
24964
f19dbdb7 24965 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 24966 stanza.
24967
08db4632 249682007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 24969
08db4632 24970 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
24971 continue on and look for device node with real device name.
24972
801b76be 249732007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 24974
fe6b695a 24975 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 24976 ability.
24977 * Makefile.in: Add autoconf package transformation code.
24978 * util/i386/pc/grub-install.in: Likewise.
24979 * util/powerpc/ieee1275/grub-install.in: Likewise.
24980
6795c4e1 249812007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
24982
24983 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
24984 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
24985 (EXT2_REVISION): Likewise.
24986 (EXT2_INODE_SIZE): Likewise.
24987 (struct grub_ext2_block_group): Added a missing member
24988 "used_dirs".
24989 (grub_ext2_read_inode): Divide by the inode size in a superblock
24990 instead of 128 to obtain INODES_PER_BLOCK.
24991 Use the macro EXT2_INODE_SIZE instead of directly using
24992 SBLOCK->INODE_SIZE.
24993
d70af616 249942007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
24995
24996 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
24997 superblock instead of the structure size to compute an
24998 offset. This fixes the problem that GRUB could not read a
24999 filesystem when inode size is different from 128-byte.
25000
3b801603 250012007-03-05 Marco Gerards <marco@gnu.org>
25002
25003 * normal/main.c (read_config_file): When "menu" is not set, create
25004 an initial context.
25005
4785bfe4 250062007-02-21 Hollis Blanchard <hollis@penguinppc.org>
25007
25008 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
25009 (HEAP_LIMIT): New macro.
25010 (grub_claim_heap): Claim memory up to `heaplimit'.
25011
a0cbb023 250122007-02-21 Hollis Blanchard <hollis@penguinppc.org>
25013
25014 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
25015 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
25016 (_start): Likewise.
25017 (grub_arch_modules_addr): Return address after `_end'.
25018 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
25019 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
25020 (add_segments): Calculate `_end' from phdr size and location.
25021 (ALIGN_UP): Moved to ...
25022 * include/grub/misc.h: here.
25023 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
25024 New macro.
25025 (GRUB_IEEE1275_MODULE_BASE): Removed.
25026
fd7d8eba 250272007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25028
25029 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
25030 loop boundary.
25031
9b09e6fc 250322007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25033
25034 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
25035 All users updated.
25036 (grub_elf64_load_hook_t): Likewise.
25037 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
25038 debug output.
25039
3ce27299 250402007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25041
25042 * kern/mm.c: Update copyright.
25043 (grub_mm_debug): Correct syntax error.
25044 (grub_mm_dump_free): New function.
25045 (grub_debug_free): Call `grub_free'.
25046 * include/grub/mm.h: Update copyright.
25047 (grub_mm_dump_free): Add declaration.
25048
077d5fee 250492007-02-12 Hollis Blanchard <hollis@penguinppc.org>
25050
25051 * include/grub/ieee1275/ieee1275.h: Update copyright.
25052 * kern/powerpc/ieee1275/init.c: Likewise.
25053 * kern/powerpc/ieee1275/openfw.c: Likewise.
25054
25055 * loader/powerpc/ieee1275/linux.c: Likewise.
25056 * include/grub/elfload.h: Likewise.
25057 * kern/elf.c: Likewise.
25058 (grub_elf32_load): Pass `base' and `size' parameters. Update all
25059 callers.
25060 (grub_elf64_load): Likewise.
25061 (grub_elf32_load_segment): Move to a nested function.
25062 (grub_elf64_load_segment): Likewise.
25063
dc946850 250642007-02-12 Hollis Blanchard <hollis@penguinppc.org>
25065
25066 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
25067 prototype.
25068 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
25069 (grub_heap_len): Likewise.
25070 (HEAP_SIZE): New macro.
25071 (grub_claim_heap): New function.
25072 (grub_machine_init): Don't claim heap directly. Call
25073 `grub_claim_heap'.
25074 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
25075 (grub_available_iterate): New function.
25076
baa2a121 250772007-02-03 Thomas Schwinge <tschwinge@gnu.org>
25078
25079 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
25080 * configure.ac: Use it for testing the HOST and TARGET compilers.
25081
4fe9862e 250822006-12-13 Thomas Schwinge <tschwinge@gnu.org>
25083
25084 * Makefile.in (enable_grub_emu): New variable.
25085 * configure.ac (--enable-grub-emu): New option.
25086 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
25087 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
25088 * conf/i386-pc.rmk: Likewise.
25089 * conf/powerpc-ieee1275.rmk: Likewise.
25090 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
25091
a8aa5762 250922006-12-12 Marco Gerards <marco@gnu.org>
25093
25094 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
25095
25096 * kern/env.c (grub_env_unset): Don't free the member `value' when
25097 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
25098 pointer.
25099
25100 * normal/main.c (current_menu): Removed.
25101 (free_menu): Unset the `menu' environment variable.
25102 (grub_normal_menu_addentry): Make use of the environment variable
25103 `menu', instead of using the global `current_menu'. Allocate
25104 memory for the sourcecode of this entry.
25105 (read_config_file): New argument `nested', changed all callers.
25106 Only in the case of a new context, initialize a new menu. Set the
25107 `menu' environment variable.
25108 (grub_normal_execute): Don't set and unset the environment
25109 variable `menu' here anymore. Only free the menu when leaving the
25110 context.
25111
25112 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
25113 leak.
25114
957b3a3e 251152006-12-11 Marco Gerards <marco@gnu.org>
25116
25117 * normal/menu_entry.c (run): Fix off by one bug so the last line
25118 is executed. Move the loader check to outside the loop.
25119
ef875714 251202006-12-08 Hollis Blanchard <hollis@penguinppc.org>
25121
25122 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
25123
4e739985 251242006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
25125
25126 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
25127 the number of sectors. Reported by Andrey Shuvikov
25128 <mr_hyro@yahoo.com>.
f19dbdb7 25129
790707f2 251302006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
25131
25132 * kern/disk.c (grub_disk_read): When there is a read error, always
25133 try to read only the necessary data.
f19dbdb7 25134
790707f2 25135 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
25136 disk/raid.c.
25137 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
25138 prototype.
25139 [GRUB_UTIL] (grub_raid_fini): Likewise.
25140 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 25141 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 25142 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
25143 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
25144 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
25145 and grub_raid_fini().
f19dbdb7 25146
03e58196 251472006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
25148
25149 * include/grub/types.h (__unused): Rename to UNUSED.
25150 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
25151 (grub_elf64_size): Likewise.
f19dbdb7 25152
ae4f23bf 251532006-11-03 Hollis Blanchard <hollis@penguinppc.org>
25154
25155 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
25156 grub_error_push and grub_error_pop in the error-handling path.
25157 (grub_elf32_load_segment): Only call grub_file_read with non-zero
25158 length.
25159
2166cc83 251602006-11-03 Hollis Blanchard <hollis@penguinppc.org>
25161
25162 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
25163 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25165 (kernel_elf_SOURCES): Likewise.
25166 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
25167 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
25168 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25169 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25170 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
25171 (elf_mod_SOURCES): New variable.
25172 (elf_mod_CFLAGS): Likewise.
25173 (elf_mod_LDFLAGS): Likewise.
25174 * include/grub/types.h (__unused): New macro.
25175 * include/grub/elfload.h: New file.
25176 * kern/elf.c: Likewise.
25177 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
25178 (ELF32_LOADMASK): New macro.
25179 (ELF64_LOADMASK): Likewise.
25180 (vmlinux): Removed.
25181 (grub_linux_load32): New function.
25182 (grub_linux_load64): Likewise.
25183 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
25184 Use grub_elf_t instead of grub_file_t.
25185
a09d5aa5 251862006-11-02 Hollis Blanchard <hollis@penguinppc.org>
25187
25188 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
25189 `catch_result' to struct set_color_args.
25190
d976fc51 251912006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
25192
25193 * normal/menu.c: Include grub/script.h.
25194 * normal/menu_entry.c: Likewise.
25195 * include/grub/normal.h: Do not include grub/script.h.
25196
67507549 251972006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25198
25199 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
25200
69203a99 252012006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25202
25203 * kern/disk.c (grub_disk_open): Print debug messages when opening a
25204 disk.
25205 (grub_disk_close): Print debug messages when closing a disk.
25206 (grub_disk_read): Print debug messages when disk read fails.
25207 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
25208 filesystem type.
25209 * kern/partition.c: Include misc.h.
25210 (grub_partition_iterate): Print debug messages when detecting
25211 partition type.
25212
e2b8278c 252132006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25214
25215 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
25216 is negative.
25217 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
25218
97b2f2ff 252192006-10-26 Hollis Blanchard <hollis@penguinppc.org>
25220
25221 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
25222 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
25223
6555d655 252242006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
25225
25226 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
25227 instead of sizeof(lv). Patch by Michael Guntsche.
25228
4d42b77f 252292006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
25230
25231 * disk/lvm.c: Rename VGS to VG_LIST.
25232 (grub_lvm_iterate): Change VGS->LV to VG-LV.
25233 (grub_lvm_open): Likewise.
25234 Thanks to Michael Guntsche for finding this bug.
25235
5d74d927 252362006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25237
25238 * configure.ac (AC_INIT): Bumped to 1.95.
25239
a1bb27e4 252402006-10-14 Robert Millan <rmh@aybabtu.com>
25241
25242 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
25243 with "/dev/.static/dev/md".
25244
e0994b8b 252452006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
25246
25247 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
25248 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
25249 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
25250 DRIVE_NAME are always freed.
25251
25252 * util/i386/pc/biosdisk.c (make_device_name): Add one into
25253 DOS_PART, as a DOS partition is counted from one instead of zero
25254 now. Reported by Robert Millan.
25255
ddd5cee9 252562006-10-14 Robert Millan <rmh@aybabtu.com>
25257
25258 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
25259 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
25260 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
25261 string returned by grub_guess_root_device.
25262 * util/i386/pc/grub-setup.c: Likewise.
25263 * util/i386/pc/grub-probefs.c: Likewise.
25264
25265 * util/i386/pc/grub-probefs.c: Rename to ...
25266 * util/i386/pc/grub-probe.c: ... this.
25267 * DISTLIST: Remove grub-probefs, add grub-probe.
25268 * conf/i386-efi.rmk: Likewise.
25269 * conf/i386-pc.rmk: Likewise.
25270 * util/i386/pc/grub-install.in: Likewise.
25271
25272 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
25273 choose which information we want to print.
25274
2b002173 252752006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
25276
25277 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
25278 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
25279 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
25280 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
25281 video/readers/tga.c and video/i386/pc/vbeutil.c.
25282
252832006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
25284
25285 Added support for RAID and LVM.
f19dbdb7 25286
2b002173 25287 * disk/lvm.c: New file.
25288 * disk/raid.c: Likewise.
25289 * include/grub/lvm.h: Likewise.
f19dbdb7 25290 * include/grub/raid.h: Likewise.
2b002173 25291 * include/grub/util/lvm.h: Likewise.
25292 * include/grub/util/raid.h: Likewise.
25293 * util/lvm.c: Likewise.
25294 * util/raid.c: Likewise.
25295
25296 * include/grub/disk.h (grub_disk_dev_id): Add
25297 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
25298 (grub_disk_get_size): New prototype.
25299 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
25300 returns a partition.
25301 (grub_disk_get_size): New function.
f19dbdb7 25302
2b002173 25303 * kern/i386/pc/init.c (make_install_device): Copy the prefix
25304 verbatim if grub_install_dos_part is -2.
25305
25306 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
25307 and LVM devices.
25308
25309 * util/i386/pc/grub-setup.c (setup): New argument
25310 MUST_EMBED. Force embedding of GRUB when the argument is
25311 true. Close FILE before returning.
25312 (main): Add support for RAID and LVM.
f19dbdb7 25313
2b002173 25314 * conf/common.rmk: Add RAID and LVM modules.
25315 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
25316 util/lvm.c.
25317 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
25318
25319 * kern/misc.c (grub_strstr): New function.
25320 * include/grub/misc.h (grub_strstr): New prototype.
25321
050548d0 253222006-10-10 Tristan Gingold <tristan.gingold@bull.net>
25323
25324 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
25325
da849d2d 253262006-10-05 Tristan Gingold <tristan.gingold@bull.net>
25327
25328 * kern/misc.c (grub_strtoull): Guess the base only if not
25329 specified.
25330
97b2f2ff 253312006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 25332
25333 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
25334 PowerMac support.
25335
97b2f2ff 253362006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 25337
25338 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
25339
25340 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
25341 Remove `flags' argument. All callers changed.
25342 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
25343 (IEEE1275_IHANDLE_INVALID): New variable.
25344 (IEEE1275_CELL_INVALID): New variable.
25345 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
25346 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
25347 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
25348 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
25349 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
25350 codes from Open Firmware. All callers updated.
25351 (grub_ieee1275_next_property): Directly return Open Firmware return
25352 code.
25353 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
25354 Standardize error checking from `grub_ieee1275_get_property'.
25355 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
25356 `devalias' to `aliases'. Correct comments. Consolidate error paths.
25357
97b2f2ff 253582006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 25359
25360 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
25361 `instance_to_package_args' to `instance_to_path_args'.
25362
25363 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
25364 `grub_ieee1275_chosen'.
25365
25366 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
25367 `grub_ieee1275_interpret'.
25368
97b2f2ff 253692006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 25370
25371 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
25372
97b2f2ff 253732006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 25374
25375 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
25376 (__cmpdi): Likewise.
25377
25378 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
25379 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
25380 `grub_ssize_t'.
25381
02bb8acc 25382 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 25383
25384 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
25385 to type `grub_ssize_t'.
25386 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
25387
7f9a8531 253882006-09-22 Marco Gerards <marco@gnu.org>
25389
25390 * normal/script.c (grub_script_create_cmdmenu): Skip leading
25391 newlines.
25392
b5ef1102 253932006-09-22 Marco Gerards <marco@gnu.org>
25394
25395 * commands/echo.c: New file.
25396
25397 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
25398
25399 * conf/common.rmk (echo_mod_SOURCES): New variable.
25400 (echo_mod_CFLAGS): Likewise.
25401 (echo_mod_LDFLAGS): Likewise.
25402
2cff3677 254032006-09-22 Marco Gerards <marco@gnu.org>
25404
25405 * normal/main.c (get_line): Malloc memory instead of using
25406 preallocated memory. Removed the arguments `cmdline' and
25407 `max_len'. Updated all callers.
25408
6ba4688b 254092006-09-22 Marco Gerards <marco@gnu.org>
25410
25411 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
25412 (normal_mod_DEPENDENCIES): Likewise.
25413
25414 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
25415 (normal_mod_DEPENDENCIES): Likewise.
25416
25417 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
25418
e02ac02c 254192006-09-22 Johan Rydberg <jrydberg@gnu.org>
25420
25421 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
25422 programs.
25423 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
25424 (normal_mod_DEPENDENCIES): Likewise.
25425 * conf/i386-pc.mk: Regenerate.
25426 * conf/i386-efi.mk: Likewise
25427 * conf/common.mk: Likewise.
25428 * conf/powerpc-ieee1275.mk: Likewise.
25429 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 25430
8d252e44 254312006-09-22 Robert Millan <rmh@aybabtu.com>
25432
25433 Sync with i386 version.
25434 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
25435 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
25436
209bf7ac 254372006-09-21 Robert Millan <rmh@aybabtu.com>
25438
25439 Import from GRUB Legacy (lib/device.c):
25440 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
25441 (init_device_map) [__linux__]: Add support for I2O devices.
25442
6b146090 254432006-09-14 Marco Gerards <marco@gnu.org>
25444
25445 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
25446 `-melf_i386'.
25447
e38600a8 254482006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 25449
25450 * util/i386/pc/grub-install.in: Skip menu.lst when removing
25451 /boot/grub/*.lst.
78fa1790 25452
2952da5d 25453 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 25454
2952da5d 25455 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
25456 before adding it to device.map.
25457
01b82a64 254582006-08-15 Johan Rydberg <jrydberg@gnu.org>
25459
fe6b695a 25460 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 25461 compiles a file; using the -MD option.
25462 * conf/common.mk: Regenerate.
25463 * conf/i386-pc.mk: Likewise.
25464 * conf/i386-efi.mk: Likewise.
25465 * conf/powerpc-ieee1275.mk: Likewise.
25466 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 25467
1064790d 254682006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
25469
25470 Move the prototypes of grub_setjmp and grub_longjmp to
25471 cpu/setjmp.h, so that each architecture may specify different
25472 attributes.
f19dbdb7 25473
1064790d 25474 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
25475 (grub_longjmp): Likewise.
25476 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
25477 (grub_longjmp): Likewise.
25478 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
25479 (grub_longjmp): Likewise.
25480
25481 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
25482 [!GRUB_UTIL] (grub_longjmp): Removed.
25483
29dda3ed 254842006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
25485
25486 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
25487 "color!" method does not return any value.
25488
ad2a06ed 254892006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
25490
25491 * include/grub/bitmap.h: New file.
25492
25493 * include/grub/i386/pc/vbeutil.h: Likewise.
25494
25495 * video/bitmap.c: Likewise.
25496
25497 * video/readers/tga.c: Likewise.
25498
25499 * video/i386/pc/vbeutil.c: Likewise.
25500
25501 * commands/videotest.c: Code cleanup and updated to reflect to new
25502 video API.
25503
25504 * term/gfxterm.c: Likewise.
25505
25506 * video/video.c: Likewise.
25507
25508 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
25509 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
25510 (bitmap_mod_SOURCES): New entry.
25511 (bitmap_mod_CFLAGS): Likewise.
25512 (bitmap_mod_LDFLAGS): Likewise.
25513 (tga_mod_SOURCES): Likewise.
25514 (tga_mod_CFLAGS): Likewise.
25515 (tga_mod_LDFLAGS): Likewise.
25516
25517 * include/grub/video.h (grub_video_blit_operators): New enum type.
25518 (grub_video_render_target): Changed as forward declaration and moved
25519 actual definition to be video driver specific.
25520 (grub_video_adapter.blit_bitmap): Added blitting operator.
25521 (grub_video_adapter.blit_render_target): Likewise.
25522 (grub_video_blit_bitmap): Likewise.
25523 (grub_video_blit_render_target): Likewise.
25524
25525 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
25526 driver specific render target definition.
25527 (grub_video_vbe_map_rgba): Added driver internal helper.
25528 (grub_video_vbe_unmap_color): Updated to use
25529 grub_video_i386_vbeblit_info.
25530 (grub_video_vbe_get_video_ptr): Likewise.
25531
25532 * include/grub/i386/pc/vbeblit.h
25533 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
25534 grub_video_i386_vbeblit_info.
25535 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
25536 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
25537 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
25538 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
25539 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
25540 (grub_video_i386_vbeblit_index_index): Likewise.
25541 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
25542 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
25543 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
25544 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
25545 operator.
25546 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
25547 operator.
25548
25549 * video/i386/pc/vbeblit.c: Updated to reflect changes on
25550 include/grub/i386/pc/vbeblit.h.
25551
25552 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
25553 Updated to use grub_video_i386_vbeblit_info.
25554 (grub_video_i386_vbefill_R8G8B8): Likewise.
25555 (grub_video_i386_vbefill_index): Likewise.
25556 (grub_video_i386_vbefill): Added generic filler.
25557
25558 * video/i386/pc/vbefill.c: Updated to reflect changes on
25559 include/grub/i386/pc/vbefill.h.
25560
25561 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
25562 grub_video_i386_vbeblit_info.
25563 (grub_video_vbe_unmap_color): Likewise.
25564 (grub_video_vbe_blit_glyph): Likewise.
25565 (grub_video_vbe_scroll): Likewise.
25566 (grub_video_vbe_draw_pixel): Removed function.
25567 (grub_video_vbe_get_pixel): Likewise.
25568 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
25569 updated code to use it.
25570 (common_blitter): Added common blitter for render target and bitmap.
25571 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
25572 (grub_video_vbe_blit_render_target): Likewise.
25573
bc8c036d 255742006-07-30 Johan Rydberg <jrydberg@gnu.org>
25575
25576 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
25577 is in text mode if there is no console control protocol instance
25578 available.
25579
684a8eff 255802006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
25581
25582 * include/grub/video.h: Code cleanup.
25583
25584 * include/grub/i386/pc/vbe.h: Likewise.
25585
25586 * video/i386/pc/vbe.c: Likewise.
25587
25588 * video/i386/pc/vbeblit.c: Likewise.
25589
25590 * video/i386/pc/vbefill.c: Likewise.
25591
25592 * video/video.c: Likewise. Also added more comments.
25593
5915059b 255942006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
25595
25596 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
25597 (struct grub_biosdisk_dap): Likewise.
25598
25599 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
25600 linkage settings for all functions.
25601
90ce5d56 256022006-07-12 Marco Gerards <marco@gnu.org>
25603
25604 * configure.ac (--enable-mm-debug): Fix typo.
25605
25606 * genkernsyms.sh.in: Use proper quoting for `CC'.
25607
43e7f879 256082006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
25609
25610 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
25611 (normal_mod_ASFLAGS): Remove "-m32".
25612
4889bdec 256132006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
25614
25615 * util/misc.c: Include config.h.
25616 [!HAVE_MEMALIGN]: Do not include malloc.h.
25617 (grub_memalign): Use posix_memalign, if present. Then, use
25618 memalign, if present. Otherwise, emit an error.
25619
25620 * util/grub-emu.c: Do not include malloc.h.
25621
25622 * include/grub/util/misc.h: Include unistd.h. This is required for
25623 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
25624 D. Eades III <hde@foobar-qux.org>.
25625
25626 * configure.ac (AC_GNU_SOURCE): Added.
25627 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
25628 type.
25629
fd39d4da 256302006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
25631
25632 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
25633 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
25634
b786f3b5 256352006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
25636
25637 * include/grub/types.h (grub_host_addr_t): Rename to
25638 grub_target_addr_t.
25639 (grub_host_off_t): Rename to grub_target_off_t.
25640 (grub_host_size_t): Rename to grub_target_size_t.
25641 (grub_host_ssize_t): Rename to grub_target_ssize_t.
25642 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
25643
25644 * include/grub/kernel.h (struct grub_module_header): Change type
25645 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
25646 (grub_module_info): Likewise.
f19dbdb7 25647
051988bb 256482006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
25649
25650 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
25651 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
25652 Velazquez <jesus.velazquez@gmail.com>.
25653
deae281b 256542006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
25655
25656 Count partitions from 1 instead of 0 in the string representation
25657 of partitions. Still use 0-based internally.
f19dbdb7 25658
deae281b 25659 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
25660 (sun_partition_map_iterate): Use grub_partition_t instead of
25661 struct grub_partition *. Cast DESC->START_CYLINDER to
25662 grub_uint64_t after converting the endian.
25663 (sun_partition_map_probe): Subtract 1 for PARTNUM.
25664 (sun_partition_map_get_name): Add 1 to P->INDEX.
25665
25666 * partmap/pc.c (grub_partition_parse): Subtract 1 for
25667 PCDATA->DOS_PART.
25668 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
25669
25670 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
25671 zero instead of one.
25672 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
25673 (gpt_partition_map_get_name): Add 1 into P->INDEX.
25674
25675 * partmap/apple.c (apple_partition_map_iterate): Change the type
25676 of POS to unsigned.
25677 (apple_partition_map_probe): Subtract 1 for PARTNUM.
25678 (apple_partition_map_get_name): Add 1 into P->INDEX.
25679
25680 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
25681 of POS to unsigned.
25682 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
25683 calculate the offset of a partition.
25684 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
25685 (amiga_partition_map_get_name): Add 1 into P->INDEX.
25686
25687 * partmap/acorn.c (acorn_partition_map_find): Change the type of
25688 SECTOR to grub_disk_addr_t.
25689 (acorn_partition_map_iterate): Likewise.
25690 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
25691 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
25692 top.
25693 (acorn_partition_map_get_name): Add 1 into P->INDEX.
25694
25695 * kern/i386/pc/init.c (make_install_device): Add 1 into
25696 GRUB_INSTALL_DOS_PART.
25697
25698 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
25699 conditional.
25700
524a1e6a 257012006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
25702
25703 Clean up the code to support 64-bit addressing in disks and
25704 files. This change is not enough for filesystems yet.
f19dbdb7 25705
524a1e6a 25706 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
25707 type of "start" to grub_uint64_t.
25708 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
25709 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
25710 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
25711 convert addresses.
25712
25713 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
25714 to grub_disk_addr_t.
25715
25716 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
25717 string.
25718
25719 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25720
25721 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
25722 to char *.
25723
25724 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
25725
25726 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
25727
25728 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
25729
25730 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
25731 to grub_off_t, to detect an error from grub_file_seek.
25732 (grub_multiboot_load_elf32): Likewise.
25733
25734 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
25735 maximum unsigned long value when an overflow is detected.
25736 (grub_strtoull): New function.
25737 (grub_divmod64): Likewise.
25738 (grub_lltoa): use grub_divmod64.
25739
25740 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
25741 grub_disk_addr_t.
25742 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
25743 the pointer to next character. Use grub_strtoull instead of
25744 grub_strtoul.
25745 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
25746 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
25747 respectively.
25748
fe6b695a 25749 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 25750 return value is signed.
25751 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
25752 test if OFFSET is less than zero, as OFFSET is unsigned now.
25753
25754 * kern/disk.c (struct grub_disk_cache): Change the type of
25755 "sector" to grub_disk_addr_t.
25756 (grub_disk_cache_get_index): Change the type of SECTOR to
25757 grub_disk_addr_t. Calculate the hash with SECTOR casted to
25758 unsigned after shifting.
25759 (grub_disk_cache_invalidate): Change the type of SECTOR to
25760 grub_disk_addr_t.
25761 (grub_disk_cache_unlock): Likewise.
25762 (grub_disk_cache_store): Likewise.
25763 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
25764 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
25765 grub_disk_addr_t and grub_uint64_t, respectively.
25766 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
25767 body, as the value of OFFSET is tweaked by
25768 grub_disk_check_range. Change the types of START_SECTOR, LEN and
25769 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
25770 respectively.
25771 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
25772 body, as the value of OFFSET is tweaked by
25773 grub_disk_check_range. Change the types of LEN and N to
25774 grub_size_t.
25775
25776 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
25777 and "saved_offset" to grub_off_t.
25778 (test_header): Cast BUF to char *.
25779 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
25780 to char *.
25781 (grub_gzio_read): Change the types of OFFSET and SIZE to
25782 grub_off_t and grub_size_t, respectively.
25783
25784 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
25785 Removed.
25786 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
25787 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
25788 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
25789 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
25790 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
25791
25792 * include/grub/types.h (grub_off_t): Unconditionally set to
25793 grub_uint64_t.
25794 (grub_disk_addr_t): Changed to grub_uint64_t.
25795
25796 * include/grub/partition.h (struct grub_partition): Change the
25797 types of "start", "len" and "offset" to grub_disk_addr_t,
25798 grub_uint64_t and grub_disk_addr_t, respectively.
25799 (grub_partition_get_start): Return grub_disk_addr_t.
25800 (grub_partition_get_len): Return grub_uint64_t.
25801
25802 * include/grub/misc.h (grub_strtoull): New prototype.
25803 (grub_divmod64): Likewise.
25804
25805 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
25806 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
25807 grub_off_t, respectively.
25808 All callers and references changed.
25809
25810 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
25811 grub_size_t in "read".
25812 All callers and references changed.
25813
25814 * include/grub/file.h (struct grub_file): Change the types of
25815 "offset" and "size" to grub_off_t and grub_off_t,
25816 respectively. Change the type of SECTOR to grub_disk_addr_t in
25817 "read_hook".
25818 (grub_file_read): Change the type of LEN to grub_size_t.
25819 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
25820 grub_off_t.
25821 (grub_file_size): Return grub_off_t.
25822 (grub_file_tell): Likewise.
25823 All callers and references changed.
25824
25825 * include/grub/disk.h (struct grub_disk_dev): Change the types of
25826 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
25827 "write".
25828 (struct grub_disk): Change the type of "total_sectors" to
25829 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 25830 "read_hook".
524a1e6a 25831 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
25832 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
25833 (grub_disk_write): Likewise.
25834 All callers and references changed.
25835
25836 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
25837 char * for grub_strncmp to silence gcc.
25838 (grub_iso9660_mount): Likewise.
25839 (grub_iso9660_mount): Likewise.
25840 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
25841 return statement.
25842 (grub_iso9660_iterate_dir): Likewise.
25843 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
25844
25845 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
25846 LEN to grub_disk_addr_t and grub_size_t, respectively.
25847
25848 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
25849
25850 * fs/jfs.c (grub_jfs_read_file): Likewise.
25851
25852 * fs/minix.c (grub_jfs_read_file): Likewise.
25853
25854 * fs/sfs.c (grub_jfs_read_file): Likewise.
25855
25856 * fs/ufs.c (grub_jfs_read_file): Likewise.
25857
25858 * fs/xfs.c (grub_jfs_read_file): Likewise.
25859
25860 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
25861 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
25862 respectively.
25863
25864 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
25865 BLKNR to -1 instead of returning GRUB_ERRNO.
25866 (grub_ext2_read_file): Change the types of SECTOR and
25867 LEN to grub_disk_addr_t and grub_size_t, respectively.
25868
25869 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
25870 LEN to grub_disk_addr_t and grub_size_t, respectively.
25871
25872 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
25873 grub_file_read.
25874
25875 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
25876 string. Do not cast SECTOR explicitly.
25877
25878 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
25879 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
25880 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
25881 grub_disk_addr_t and grub_size_t, respectively. If the sector is
25882 over 2TB and LBA mode is not supported, raise an error.
25883 (get_safe_sectors): New function.
25884 (grub_biosdisk_read): Use get_safe_sectors.
25885 (grub_biosdisk_write): Likewise.
25886
25887 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
25888 (grub_efidisk_write): Likewise.
25889
25890 * disk/loopback.c (delete_loopback): Cosmetic changes.
25891 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
25892 correctly.
25893 (grub_loopback_open): Likewise.
25894 (grub_loopback_read): Likewise. Also, change the type of POS to
25895 grub_off_t, and fix the usage of grub_memset.
25896
25897 * commands/i386/pc/play.c: Include grub/machine/time.h.
25898
25899 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
25900 print FILE->SIZE.
25901
25902 * commands/configfile.c: Include grub/env.h.
25903
25904 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
25905 GRUB_ERRNO directly instead. Change the type of POS to
25906 grub_off_t. Follow the coding standard.
25907
25908 * commands/blocklist.c: Include grub/partition.h.
25909 (grub_cmd_blocklist): Return an error if the underlying device is
25910 not a disk. Take the starting sector of a partition into account,
25911 if a partition is used.
25912
25913 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
25914 a length field.
25915 (lba_mode): Support 64-bit addresses.
25916 (chs_mode): Likewise.
25917 (copy_buffer): Adapted to the new offsets of a length field and a
25918 segment field.
25919 (blocklist_default_start): Allocate 64-bit space.
25920
25921 * boot/i386/pc/boot.S (force_lba): Removed.
25922 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 25923 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 25924 space.
25925 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
25926 is useless.
25927 (lba_mode): Refactored to support a 64-bit address. More size
25928 optimization.
25929 (setup_sectors): Likewise.
25930
53af98ad 259312006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
25932
25933 * DISTLIST: Added include/grub/i386/linux.h. Removed
25934 include/grub/i386/pc/linux.h
25935
25936 * configure.ac (AC_INIT): Bumped to 1.94.
25937
25938 * config.guess: Updated from gnulib.
25939 * config.sub: Likewise.
25940 * install-sh: Likewise.
25941 * mkinstalldirs: Likewise.
25942
b4c1940a 259432006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
25944
25945 * conf/common.rmk (grub_modules_init.lst): Depended on
25946 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
25947 MODSRCFILES.
25948
25949 * genmk.rb (PModule::rule): Reverted the previous change.
25950
cfca1cfd 259512006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
25952
25953 * conf/common.rmk (grub_modules_init.lst): Depends on
25954 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
25955 that the target does not exist before producing.
25956 (grub_modules_init.h): Remove the target before generating.
25957 (grub_emu_init.c): Likewise.
25958
25959 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
25960
aa6d7826 259612006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
25962
25963 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
25964 for the target-specific tests. Make sure that we also have the
25965 up-to-date target variables for those tests.
25966
26c607b9 259672006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
25968
25969 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
25970 (PModule::rule): Likewise.
25971
0162321a 259722006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
25973
25974 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
25975 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
25976 target-specific flags should be prefixed.
25977 (PModule::rule): Likewise.
25978
6c826348 259792006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
25980
25981 * configure.ac (CMP): Check if cmp is available explicitly.
25982
b977bf01 259832006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
25984
25985 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
25986 (target_cpu): New variable.
25987 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 25988
b977bf01 25989 * util/i386/pc/grub-install.in (host_cpu): Removed.
25990 (target_cpu): New variable.
25991 (pkglibdir): Use target_cpu instead of host_cpu.
25992
25993 * util/genmoddep.c: Removed.
f19dbdb7 25994
b977bf01 25995 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
25996 instead of GRUB_HOST_SIZEOF_VOID_P.
25997 * kern/dl.c: Likewise.
25998
25999 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
26000 ...
26001 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26002 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26003 (GRUB_TARGET_SIZEOF_LONG): ... this.
26004 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26005 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26006 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
26007 to ...
26008 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26009 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26010 (GRUB_TARGET_SIZEOF_LONG): ... this.
26011 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26012 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26013 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
26014 to ...
26015 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26016 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26017 (GRUB_TARGET_SIZEOF_LONG): ... this.
26018 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26019 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26020
26021 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
26022 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
26023 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
26024 instead of GRUB_HOST_SIZEOF_LONG.
26025 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
26026 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
26027 GRUB_CPU_WORDS_BIGENDIAN.
26028 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
26029 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
26030 grub_host_ssize_t.
26031
26032 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
26033 (genmoddep_SOURCES): Likewise.
26034 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
26035 (genmoddep_SOURCES): Likewise.
26036 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
26037 (genmoddep_SOURCES): Likewise.
26038 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
26039 Likewise.
26040 (genmoddep_SOURCES): Likewise.
26041
26042 * genmoddep.awk: New file.
26043
26044 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
26045 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
26046 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
26047 (PModule::rule): Likewise.
26048 (Program::rule): Likewise.
26049 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
26050 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
26051 respectively.
26052
26053 * configure.ac: Rewritten intensively to use host and target
26054 instead of build and host, respectively.
26055
26056 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
26057 (host_cpu): Removed.
26058 (target_cpu): New variable.
26059 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
26060 (BUILD_CC): Removed.
26061 (BUILD_CFLAGS): Likewise.
26062 (BUILD_CPPFLAGS): Likewise.
26063 (TARGET_CC): New variable.
26064 (TARGET_CFLAGS): Likewise.
26065 (TARGET_CPPFLAGS): Likewise.
26066 (TARGET_LDFLAGS): Likewise.
26067 (AWK): Likewise.
26068 (include): Use target_cpu instead of host_cpu.
26069 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 26070
b977bf01 26071 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
26072
f09771a1 260732006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
26074
26075 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
26076 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
26077 field 'false' to 'exec_on_false'.
26078 (grub_script_create_cmdif): Renamed argument names to reflect above
26079 changes.
26080
26081 * normal/execute.c (grub_script_execute_cmdif): Likewise.
26082
26083 * normal/script.c (grub_script_create_cmdif): Likewise.
26084
118f4fb3 260852006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
26086
26087 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
26088 top.
26089 (grub_hfsplus_btree_recptr): Likewise.
26090 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
26091 FILEBLOCK both to pass a block number and store next block
26092 number.
26093 (grub_hfsplus_read_block): Rewritten heavily to support an extent
26094 overflow file correctly. Specify errors appropriately, because
26095 fshelp expects that GRUB_ERRNO is set when fails. Reuse
26096 grub_hfsplus_btree_recptr to get the pointer to a found key.
26097 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
26098 is found.
26099
26100 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
26101 linux.mod.
26102 (_linux_mod_SOURCES): New variable.
26103 (_linux_mod_CFLAGS): Likewise.
26104 (_linux_mod_LDFLAGS): Likewise.
26105 (linux_mod_SOURCES): Likewise.
26106 (linux_mod_CFLAGS): Likewise.
26107 (linux_mod_LDFLAGS): Likewise.
26108
26109 * DISTLIST: Added loader/i386/efi/linux.c,
26110 loader/i386/efi/linux_normal.c and
26111 include/grub/i386/efi/loader.h.
26112
26113 * loader/i386/efi/linux.c: New file.
26114 * loader/i386/efi/linux_normal.c: Likewise.
26115 * include/grub/i386/efi/loader.h: Likewise.
26116
89a7d726 261172006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
26118
26119 * commands/blocklist.c: New file.
26120
26121 * DISTLIST: Added commands/blocklist.c.
26122
26123 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 26124 color for the background, and a darker color for the foreground.
89a7d726 26125 (grub_console_checkkey): Return READ_KEY.
26126 (grub_console_cls): Set the background to
26127 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
26128
26129 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
26130
26131 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
26132 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
26133
26134 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
26135 prototype.
26136
26137 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
26138 BG. The spec is wrong again.
26139
26140 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
26141 prototype.
26142 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
26143
26144 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26145 commands/blocklist.c.
26146 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 26147
89a7d726 26148 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
26149 (blocklist_mod_SOURCES): New variable.
26150 (blocklist_mod_CFLAGS): Likewise.
26151 (blocklist_mod_LDFLAGS): Likewise.
26152
75c8f258 261532006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
26154
26155 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
26156 duplication.
26157 (lba_mode): Use %eax more intensively to reduce the code size.
26158
da2eb181 261592006-05-20 Marco Gerards <marco@gnu.org>
26160
26161 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
26162
26163 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
26164 for `menuentry'.
26165 (script): Accept leading newlines.
26166 (newlines): New rule to describe 0 or more newlines.
26167 (commands): Accept `command' with trailing newline. Fixed the
26168 order in which arguments were passed to `grub_script_add_cmd'.
26169 Accept commands separated by newlines.
26170 (function): Changed to accept newlines.
26171 (menuentry) Rewritten.
26172
26173 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
26174 front of the list, instead of to the end.
26175
577b4050 261762006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
26177
26178 * util/i386/pc/grub-install.in (bindir): New variable.
26179 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
26180 Shaver <lbgwjl@gmail.com>.
26181
0d6e1189 261822006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
26183
26184 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
26185 grub/machine/linux.h
26186 * loader/i386/pc/linux.c: Likewise.
26187
26188 * include/grub/i386/pc/linux.h: Moved to ...
26189 * include/grub/i386/linux.h: ... here.
26190
26191 * include/grub/i386/linux.h (struct linux_kernel_params): New
26192 struct.
f19dbdb7 26193
31b86e9f 261942006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
26195
26196 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
26197 checking.
26198 (grub_video_vbe_blit_glyph): Likewise.
26199 (grub_video_vbe_blit_bitmap): Likewise.
26200 (grub_video_vbe_blit_render_target): Likewise.
26201
83b984de 262022006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
26203
26204 * configure.ac (--with-platform): Properly quote the square
26205 brackets.
26206
5f0413bd 262072006-05-08 Marco Gerards <marco@gnu.org>
26208
26209 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
26210 this...
26211 (kernel_elf_HEADERS): ...to this. Updated all users.
26212 (grubof_symlist.c): Renamed from this...
26213 (kernel_elf_symlist.c): ...to this. Updated all users.
26214 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
26215 (grubof_SOURCES): Renamed from this...
26216 (kernel_elf_SOURCES): ...to this.
26217 (grubof_HEADERS): Renamed from this...
26218 (kernel_elf_HEADERS): ...to this.
26219 (grubof_CFLAGS): Renamed from this...
26220 (kernel_elf_CFLAGS): ...to this.
26221 (grubof_ASFLAGS): Renamed from this...
26222 (kernel_elf_ASFLAGS): ...to this.
26223 (grubof_LDFLAGS): Renamed from this...
26224 (kernel_elf_LDFLAGS): ...to this.
26225
26226 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
26227 this...
26228 (kernel_elf_HEADERS): ...to this. Updated all users.
26229 (grubof_symlist.c): Renamed from this...
26230 (kernel_elf_symlist.c): ...to this. Updated all users.
26231 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
26232 (grubof_SOURCES): Renamed from this...
26233 (kernel_elf_SOURCES): ...to this.
26234 (grubof_HEADERS): Renamed from this...
26235 (kernel_elf_HEADERS): ...to this.
26236 (grubof_CFLAGS): Renamed from this...
26237 (kernel_elf_CFLAGS): ...to this.
26238 (grubof_ASFLAGS): Renamed from this...
26239 (kernel_elf_ASFLAGS): ...to this.
26240 (grubof_LDFLAGS): Renamed from this...
26241 (kernel_elf_LDFLAGS): ...to this.
26242
26243 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
26244 `kernel.elf' instead of `grubof'.
26245
05568c2e 262462006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
26247
26248 Add --with-platform to configure. Use pkglibdir instead of
26249 pkgdatadir. This is reported by Roger Leigh.
26250
26251 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
26252 (host_vendor): Likewise.
26253 (host_os): Likewise.
26254 (pkgdatadir): Likewise.
26255 (platform): New variable.
26256 (pkglibdir): Likewise.
26257 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 26258
05568c2e 26259 * util/i386/pc/grub-install.in (datadir): Removed.
26260 (host_vendor): Likewise.
26261 (host_os): Likewise.
26262 (pkgdatadir): Likewise.
26263 (platform): New variable.
26264 (pkglibdir): Likewise.
26265 Use PKGLIBDIR instead of PKGDATADIR.
26266
26267 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
26268 instead of GRUB_DATADIR.
26269 (main): Likewise.
26270 * util/i386/pc/grub-mkimage.c (usage): Likewise.
26271 (main): Likewise.
26272 * util/i386/efi/grub-mkimage.c (usage): Likewise.
26273 (main): Likewise.
26274
26275 * configure.ac (--with-platform): New option.
26276 Use PLATFORM instead of HOST_VENDOR to specify a platform.
26277
26278 * Makefile.in: Include a makefile based on PLATFORM instead of
26279 HOST_VENDOR.
26280 (pkgdatadir): Not appended by the machine type.
26281 (pkglibdir): Appended by the machine type.
26282 (host_vendor): Removed.
26283 (platform): New variable.
26284 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
26285 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
26286 (uninstall): Likewise.
26287
4e93851c 262882006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
26289
26290 Use the environment context in the menu. Remove the commands
26291 "default" and "timeout", and use variables instead.
f19dbdb7 26292
4e93851c 26293 * normal/menu.c: Include grub/env.h.
26294 (print_entry): Cast TITLE to silence gcc.
26295 (get_timeout): New function.
26296 (set_timeout): Likewise.
26297 (get_entry_number): Likewise.
26298 (run_menu): Use a default entry, a fallback entry and a timeout
26299 in the environment variables "default", "fallback" and
26300 "timeout". Also, tweak the default entry if it is not within the
26301 current menu entries.
26302 (grub_menu_run): Use a fallback entry in the environment variable
26303 "fallback".
26304
26305 * normal/main.c (read_config_file): Do not initialize
26306 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
26307 NEWMENU->TIMEOUT.
26308 (grub_normal_execute): Use a data slot to store the menu.
26309
26310 * include/grub/normal.h (struct grub_menu): Removed default_entry,
26311 fallback_entry and timeout.
26312 (struct grub_menu_list): Removed.
26313 (grub_menu_list_t): Likewise.
26314 (struct grub_context): Likewise.
26315 (grub_context_t): Likewise.
26316 (grub_context_get): Likewise.
26317 (grub_context_get_current_menu): Likewise.
26318 (grub_context_push_menu): Likewise.
26319 (grub_context_pop_menu): Likewise.
26320 (grub_default_init): Likewise.
26321 (grub_default_fini): Likewise.
26322 (grub_timeout_init): Likewise.
26323 (grub_timeout_fini): Likewise.
26324
26325 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
26326 and timeout.mod.
26327 (normal_mod_SOURCES): Removed normal/context.c.
26328
26329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
26330 commands/default.c, commands/timeout.c and normal/context.c.
26331 (normal_mod_SOURCES): Removed normal/context.c.
26332
26333 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
26334 commands/timeout.c and normal/context.c.
26335 (normal_mod_SOURCES): Removed normal/context.c.
26336
26337 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
26338 commands/default.c, commands/timeout.c and normal/context.c.
26339 (normal_mod_SOURCES): Removed normal/context.c.
26340
26341 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
26342 timeout.mod.
26343 (default_mod_SOURCES): Removed.
26344 (default_mod_CFLAGS): Likewise.
26345 (default_mod_LDFLAGS): Likewise.
26346 (timeout_mod_SOURCES): Removed.
26347 (timeout_mod_CFLAGS): Likewise.
26348 (timeout_mod_LDFLAGS): Likewise.
26349
26350 * DISTLIST: Removed commands/default.c, commands/timeout.c and
26351 normal/context.c.
26352
26353 * commands/default.c: Removed.
26354 * commands/timeout.c: Likewise.
26355 * normal/context.c: Likewise.
26356
1eb9cc1d 263572006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
26358
26359 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
26360
385bd9c1 263612006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
26362
26363 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
26364 "next" to "prev" for readability.
26365 (struct grub_env_sorted_var): New struct.
26366 (grub_env_context): Renamed to ...
26367 (initial_context): ... this.
26368 (grub_env_var_context): Renamed to ...
26369 (current_context): ... this.
26370 (grub_env_find): Look only at CURRENT_CONTEXT.
26371 (grub_env_context_open): Rewritten to copy exported variables from
26372 previous context.
26373 (grub_env_context_close): Rewritten according to the new
26374 scheme. Also, add an assertion to prevent the initial context from
26375 removed.
26376 (grub_env_insert): Removed the code for the sorted list.
26377 (grub_env_remove): Likewise.
26378 (grub_env_export): Simply mark the variable with
26379 GRUB_ENV_VAR_GLOBAL.
26380 (grub_env_set): A cosmetic change for naming consistency.
26381 (grub_env_get): Likewise.
26382 (grub_env_unset): Likewise.
26383 (grub_env_iterate): Rewritten to sort variables within this
26384 function.
26385 (grub_register_variable_hook): Fixed for naming consistency. Call
26386 grub_env_find again, only if NAME is not found at the first time.
26387 (mangle_data_slot_name): New function.
26388 (grub_env_set_data_slot): Likewise.
26389 (grub_env_get_data_slot): Likewise.
26390 (grub_env_unset_data_slot): Likewise.
26391
26392 * include/grub/env.h (grub_env_var_type): New enum.
26393 (GRUB_ENV_VAR_LOCAL): New constant.
26394 (GRUB_ENV_VAR_GLOBAL): Likewise.
26395 (GRUB_ENV_VAR_DATA): Likewise.
26396 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
26397 "type".
26398 (grub_env_set): Replace VAR with NAME for consistency.
26399 (grub_register_variable_hook): Likewise.
26400 (grub_env_export): Specify the name of the argument.
26401 (grub_env_set_data_slot): New prototype.
26402 (grub_env_get_data_slot): Likewise.
26403 (grub_env_unset_data_slot): Likewise.
26404
7f362539 264052006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
26406
26407 Extend the loader so that GRUB can accept a loader which comes
26408 back to GRUB when a loaded image exits. Also, this change adds
26409 support for a chainloader on EFI.
f19dbdb7 26410
7f362539 26411 * term/efi/console.c: Include grub/misc.h.
26412 (grub_console_checkkey): Display a scan code on the top for
26413 debugging. This will be removed once the EFI port gets stable.
26414 Correct the scan code mapping.
26415
26416 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
26417 allocate memory from larger regions, in order to reduce the number
26418 of allocated regions. Otherwise, the MacOSX loader panics.
26419 (filter_memory_map): Avoid less than 1MB for compatibility with
26420 other loaders.
26421 (add_memory_regions): Allocate from the tail of a region, if
26422 possible, to avoid allocating a region near to 1MB, for the MacOSX
26423 loader.
26424
26425 * kern/efi/init.c (grub_efi_set_prefix): Specify
26426 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
26427
26428 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
26429 argument IMAGE_HANDLE and specify it to get a loaded image.
26430 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
26431 grub_efi_get_loaded_image.
fe6b695a 26432 (grub_efi_get_filename): Divide the length by the size of
7f362539 26433 grub_efi_char16_t.
26434 (grub_efi_get_device_path): New function.
26435 (grub_efi_print_device_path): Print End Device Path nodes. Divide
26436 the length by the size of grub_efi_char16_t for a file path device
26437 path node.
26438
26439 * kern/loader.c (grub_loader_noreturn): New variable.
26440 (grub_loader_set): Accept a new argument NORETURN. Set
26441 GRUB_LOADER_NORETURN to NORETURN.
26442 All callers changed.
26443 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
26444 grub_machine_fini.
26445
26446 * include/grub/efi/efi.h (grub_efi_get_device_path): New
26447 prototype.
26448 (grub_efi_get_loaded_image): Take an argument to specify an image
26449 handle.
26450
26451 * include/grub/loader.h (grub_loader_set): Added one more argument
26452 NORETURN.
26453
26454 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
26455 instead of grub_efi_open_protocol.
26456 (grub_efidisk_get_device_name): Likewise.
26457 (grub_efidisk_close): Print a newline.
26458 (grub_efidisk_get_device_handle): Fixed to use
26459 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
26460 GRUB_EFI_DEVICE_PATH_TYPE.
26461
26462 * disk/efi/efidisk.c (device_path_guid): Moved to ...
26463 * kern/efi/efi.c (device_path_guid): ... here.
26464
26465 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
26466 chain.mod.
26467 (kernel_mod_HEADERS): Added efi/disk.h.
26468 (_chain_mod_SOURCES): New variable.
26469 (_chain_mod_CFLAGS): Likewise.
26470 (_chain_mod_LDFLAGS): Likewise.
26471 (chain_mod_SOURCES): Likewise.
26472 (chain_mod_CFLAGS): Likewise.
26473 (chain_mod_LDFLAGS): Likewise.
26474
26475 * DISTLIST: Added include/grub/efi/chainloader.h,
26476 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
26477
26478 * include/grub/efi/chainloader.h: New file.
26479 * loader/efi/chainloader.c: Likewise.
26480 * loader/efi/chainloader_normal.c: Likewise.
26481
c0111d6e 264822006-04-30 Marco Gerards <marco@gnu.org>
26483
26484 * commands/configfile.c (grub_cmd_source): New function.
26485 (GRUB_MOD_INIT): Register the commands `source' and `.'.
26486 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
26487
df5341da 264882006-04-30 Marco Gerards <marco@gnu.org>
26489
26490 * normal/execute.c (grub_script_execute_cmd): Change the return
26491 type to `grub_err_t'. Correctly return the error.
26492 (grub_script_execute_cmdline): In case a command line is not a
26493 command or a function, try to interpret it as an assignment.
26494
f85934bd 264952006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
26496
26497 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
26498 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
26499 skip a node whose name is obviously invalid as UTF-16,
26500 i.e. contains a NUL character. Stop the iteration when the last
26501 directory entry is found. Instead of using the return value of
26502 grub_hfsplus_btree_iterate_node, store the value in RET and use
26503 it, because the iterator can be stopped by the last directory
26504 entry.
26505
8f8a2cf8 265062006-04-30 Marco Gerards <marco@gnu.org>
26507
26508 * include/grub/env.h (grub_env_export): New prototype. Reported
26509 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
26510
a27e84ce 265112006-04-30 Marco Gerards <marco@gnu.org>
26512
26513 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
26514 size of the extents in a catalog file record.
26515
eaef0553 265162006-04-29 Marco Gerards <marco@gnu.org>
26517
26518 * commands/configfile.c (grub_cmd_configfile): Execute the
26519 configfile within its own context.
26520
26521 * include/grub/env.h (grub_env_context_open): New prototype.
26522 (grub_env_context_close): Likewise.
26523
26524 * kern/env.c (grub_env): Removed.
26525 (grub_env_sorted): Likewise.
26526 (grub_env_context): New variable.
26527 (grub_env_var_context): Likewise.
26528 (grub_env_find): Search both the active context and the global
26529 context.
26530 (grub_env_context_open): New function.
26531 (grub_env_context_close): Likewise.
26532 (grub_env_insert): Likewise.
26533 (grub_env_remove): Likewise.
26534 (grub_env_export): Likewise.
26535 (grub_env_set): Changed to use helper functions to avoid code
26536 duplication.
26537 (grub_env_iterate): Rewritten so both the current context and the
26538 global context are being used.
26539
26540 * normal/command.c (export_command): New function.
26541 (grub_command_init): Register the `export' function.
26542
7b455f4d 265432006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
26544
26545 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
26546 explicitly to suppress gcc's warnings.
26547 * fs/fat.c (grub_fat_find_dir): Likewise.
26548 (grub_fat_label): Likewise.
26549 * fs/xfs.c (grub_xfs_read_inode): Likewise.
26550 (grub_xfs_mount): Likewise.
26551 (grub_xfs_label): Likewise.
26552 * fs/affs.c (grub_affs_mount): Likewise.
26553 (grub_affs_label): Likewise.
26554 (grub_affs_iterate_dir): Likewise.
26555 * fs/sfs.c (grub_sfs_mount): Likewise.
26556 (grub_sfs_iterate_dir): Likewise.
26557 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
26558 * fs/hfs.c (grub_hfs_mount): Likewise.
26559 (grub_hfs_cmp_catkeys): Likewise.
26560 (grub_hfs_find_dir): Likewise.
26561 (grub_hfs_dir): Likewise.
26562 (grub_hfs_label): Likewise.
26563 * fs/jfs.c (grub_jfs_mount): Likewise.
26564 (grub_jfs_opendir): Likewise.
26565 (grub_jfs_getent): Likewise.
26566 (grub_jfs_lookup_symlink): Likewise.
26567 (grub_jfs_label): Likewise.
26568 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
26569 (grub_hfsplus_iterate_dir): Likewise.
26570 (grub_hfsplus_btree_iterate_node): Made static.
26571
26572 * util/grub-emu.c (prefix): New variable.
26573 (grub_machine_set_prefix): New function.
26574 (main): Do not set the environment variable "prefix" here. Only
26575 set PREFIX, which is used later by grub_machine_set_prefix.
26576
26577 * include/grub/video.h: Do not include grub/symbol.h.
26578 (grub_video_register): Not exported. This symbol is not defined in
26579 the kernel.
26580 (grub_video_unregister): Likewise.
26581 (grub_video_iterate): Likewise.
26582 (grub_video_setup): Likewise.
26583 (grub_video_restore): Likewise.
26584 (grub_video_get_info): Likewise.
26585 (grub_video_get_blit_format): Likewise.
26586 (grub_video_set_palette): Likewise.
26587 (grub_video_get_palette): Likewise.
26588 (grub_video_set_viewport): Likewise.
26589 (grub_video_get_viewport): Likewise.
26590 (grub_video_map_color): Likewise.
26591 (grub_video_map_rgb): Likewise.
26592 (grub_video_map_rgba): Likewise.
26593 (grub_video_fill_rect): Likewise.
26594 (grub_video_blit_glyph): Likewise.
26595 (grub_video_blit_bitmap): Likewise.
26596 (grub_video_blit_render_target): Likewise.
26597 (grub_video_scroll): Likewise.
26598 (grub_video_swap_buffers): Likewise.
26599 (grub_video_create_render_target): Likewise.
26600 (grub_video_delete_render_target): Likewise.
26601 (grub_video_set_active_render_target): Likewise.
26602
26603 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
26604 Undefined.
26605 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
26606
26607 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
26608 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26609 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26610 instead of $(srcdir)/genkernsyms.sh.
26611
26612 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
26613 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26614 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26615 instead of $(srcdir)/genkernsyms.sh.
26616
26617 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
26618 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26619 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26620 instead of $(srcdir)/genkernsyms.sh.
26621
26622 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
26623 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
26624 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
26625 instead of $(srcdir)/genkernsyms.sh.
26626
26627 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
26628 genkernsyms.sh.
26629
26630 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
26631 genkernsyms.sh.
26632 (gensymlist.sh): New target.
26633 (genkernsyms.sh): Likewise.
26634
26635 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
26636 genkernsyms.sh.in and gensymlist.sh.in.
26637
26638 * genkernsyms.sh: Removed.
26639 * gensymlist.sh: Likewise.
f19dbdb7 26640
7b455f4d 26641 * genkernsyms.sh.in: New file.
26642 * gensymlist.sh.in: Likewise.
26643
1885bb27 266442006-04-25 Hollis Blanchard <hollis@penguinppc.org>
26645
26646 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
26647 clobber "prefix", since we may have already set it manually.
26648
71538dff 266492006-04-25 Hollis Blanchard <hollis@penguinppc.org>
26650
26651 * kern/misc.c (abort): New alias for grub_abort.
26652
2965c7cc 266532006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
26654
26655 A new machine-specific function "grub_machine_set_prefix" is
26656 defined. This is called after loading modules, so that a prefix
26657 initialization can use modules. Also, this change adds an
26658 intensive debugging feature for the memory manager via the
26659 configure option "--enable-mm-debug".
f19dbdb7 26660
2965c7cc 26661 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
26662 PART.LEN.
26663
26664 * kern/sparc64/ieee1275/init.c (abort): Removed.
26665 (grub_stop): Likewise.
26666 (grub_exit): New function.
26667 (grub_set_prefix): Renamed to ...
26668 (grub_machine_set_prefix): ... this.
26669 (grub_machine_init): Do not call grub_set_prefix.
26670
26671 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
26672 (grub_machine_set_prefix): ... this.
26673 (grub_machine_init): Do not call grub_set_prefix.
26674
26675 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
26676 (grub_machine_init): Do not set the prefix here.
26677
26678 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
26679
26680 * kern/efi/init.c: Include grub/mm.h.
26681 (grub_efi_set_prefix): New function.
26682
26683 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
26684 (grub_efi_get_filename): New function.
26685 (grub_print_device_path): Renamed to ...
26686 (grub_efi_print_device_path): ... this.
26687
26688 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
26689 [MM_DEBUG] (grub_realloc): Likewise.
26690 [MM_DEBUG] (grub_free): Likewise.
26691 [MM_DEBUG] (grub_memalign): Likewise.
26692 [MM_DEBUG] (grub_mm_debug): New variable.
26693 [MM_DEBUG] (grub_debug_malloc): New function.
26694 [MM_DEBUG] (grub_debug_free): New function.
26695 [MM_DEBUG] (grub_debug_realloc): New function.
26696 [MM_DEBUG] (grub_debug_memalign): New function.
26697
26698 * kern/misc.c (grub_abort): Print a newline to distinguish
26699 the message.
26700
26701 * kern/main.c (grub_main): Call grub_machine_set_prefix and
26702 grub_set_root_dev after loading modules. This is necessary when
26703 setting a prefix depends on modules.
26704
26705 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
26706 (grub_efi_print_device_path): ... this.
26707 (grub_efi_get_filename): New prototype.
26708 (grub_efi_set_prefix): Likewise.
26709
26710 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
26711 and grub/disk.h.
26712 (grub_efidisk_get_device_handle): New prototype.
26713 (grub_efidisk_get_device_name): Likewise.
26714
26715 * include/grub/mm.h: Include config.h.
26716 (MM_DEBUG): Removed.
26717 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
26718 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
26719 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
26720 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
26721 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
26722 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
26723 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
26724 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
26725 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
26726
26727 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
26728
26729 * disk/efi/efidisk.c: Include grub/partition.h.
26730 (iterate_child_devices): New function.
26731 (add_device): First, compare only last device path nodes, so that
26732 devices are sorted by the types.
26733 (grub_efidisk_get_device_handle): New function.
26734 (grub_efidisk_get_device_name): Likewise.
26735
26736 * configure.ac (--enable-mm-debug): New option to enable the
26737 memory manager debugging feature. This makes the binary much
26738 bigger, so is disabled by default.
26739
9cacaa17 267402006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
26741
26742 Use grub_abort instead of grub_stop, and grub_exit must be
26743 define in each architecture now. Also, this change adds support
26744 for EFI disks.
f19dbdb7 26745
9cacaa17 26746 * util/i386/pc/grub-probefs.c: Include grub/term.h.
26747 (grub_getkey): New function.
26748 (grub_term_get_current): Likewise.
26749
26750 * util/i386/pc/grub-setup.c: Include grub/term.h.
26751 (grub_getkey): New function.
26752 (grub_term_get_current): Likewise.
26753
26754 * util/misc.c (grub_stop): Renamed to ...
26755 (grub_exit): ... this.
26756
26757 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
26758 (grub_exit): ... this.
26759 (grub_machine_init): Use grub_abort instead of abort.
26760 (grub_stop): Removed.
26761
26762 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
26763 abort.
26764
26765 * kern/i386/pc/startup.S (grub_exit): New function.
26766 (cold_reboot): New label.
26767
26768 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
26769 (grub_efi_init): Call grub_efidisk_init.
26770 (grub_efi_fini): Call grub_efidisk_fini.
26771
26772 * kern/efi/efi.c: Include grub/mm.h.
26773 (grub_efi_console_control_guid): Renamed to ...
26774 (console_control_guid): ... this.
26775 (grub_efi_loaded_image_guid): Renamed to ...
26776 (loaded_image_guid): ... this.
26777 (grub_efi_locate_handle): New function.
26778 (grub_efi_open_protocol): Likewise.
26779 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
26780 GRUB_EFI_CONSOLE_CONTROL_GUID.
26781 (grub_efi_exit): Removed.
26782 (grub_stop): Likewise.
26783 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
26784 (grub_exit): New function.
26785 (grub_print_device_path): Likewise.
26786
26787 * kern/rescue.c (grub_rescue_cmd_exit): New function.
26788 (grub_enter_rescue_mode): Register "exit".
26789
26790 * kern/misc.c (grub_real_dprintf): A cosmetic change.
26791 (grub_abort): New function.
26792
26793 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
26794
26795 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
26796
26797 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
26798
26799 * include/grub/efi/efi.h (grub_efi_exit): Removed.
26800 (grub_print_device_path): New prototype.
26801 (grub_efi_locate_handle): Likewise.
26802 (grub_efi_open_protocol): Likewise.
26803
26804 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
26805 * disk/efi/efidisk.c: Likewise.
26806
26807 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
26808
26809 * include/grub/efi/console_control.h
26810 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
26811
26812 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
26813 last 8 bytes as an array.
26814 (GRUB_EFI_DISK_IO_GUID): New macro.
26815 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
26816 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
26817 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
26818 grub_uint8_t.
26819 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
26820 (struct grub_efi_device_path): Rename the member "sub_type" to
26821 "subtype".
26822 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
26823 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
26824 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
26825 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
26826 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
26827 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
26828 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
26829 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
26830 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
26831 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
26832 (struct grub_efi_pci_device_path): New structure.
26833 (grub_efi_pci_device_path_t): New type.
26834 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
26835 (struct grub_efi_pccard_device_path): New structure.
26836 (grub_efi_pccard_device_path_t): New type.
26837 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
26838 (struct grub_efi_memory_mapped_device_path): New structure.
26839 (grub_efi_memory_mapped_device_path_t): New type.
26840 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
26841 (struct grub_efi_vendor_device_path): New structure.
26842 (grub_efi_vendor_device_path_t): New type.
26843 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
26844 (struct grub_efi_controller_device_path): New structure.
26845 (grub_efi_controller_device_path_t): New type.
26846 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
26847 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
26848 (struct grub_efi_acpi_device_path): New structure.
26849 (grub_efi_acpi_device_path_t): New type.
26850 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
26851 (struct grub_efi_expanded_acpi_device_path): New structure.
26852 (grub_efi_expanded_acpi_device_path_t): New type.
26853 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
26854 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
26855 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
26856 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
26857 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
26858 (struct grub_efi_atapi_device_path): New structure.
26859 (grub_efi_atapi_device_path_t): New type.
26860 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
26861 (struct grub_efi_fibre_channel_device_path): New structure.
26862 (grub_efi_fibre_channel_device_path_t): New type.
26863 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
26864 (struct grub_efi_1394_device_path): New structure.
26865 (grub_efi_1394_device_path_t): New type.
26866 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
26867 (struct grub_efi_usb_device_path): New structure.
26868 (grub_efi_usb_device_path_t): New type.
26869 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
26870 (struct grub_efi_usb_class_device_path): New structure.
26871 (grub_efi_usb_class_device_path_t): New type.
26872 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
26873 (struct grub_efi_i2o_device_path): New structure.
26874 (grub_efi_i2o_device_path_t): New type.
26875 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
26876 (struct grub_efi_mac_address_device_path): New structure.
26877 (grub_efi_mac_address_device_path_t): New type.
26878 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
26879 (struct grub_efi_ipv4_device_path): New structure.
26880 (grub_efi_ipv4_device_path_t): New type.
26881 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
26882 (struct grub_efi_ipv6_device_path): New structure.
26883 (grub_efi_ipv6_device_path_t): New type.
26884 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
26885 (struct grub_efi_infiniband_device_path): New structure.
26886 (grub_efi_infiniband_device_path_t): New type.
26887 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
26888 (struct grub_efi_uart_device_path): New structure.
26889 (grub_efi_uart_device_path_t): New type.
26890 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
26891 (struct grub_efi_vendor_messaging_device_path): New structure.
26892 (grub_efi_vendor_messaging_device_path_t): New type.
26893 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
26894 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
26895 (struct grub_efi_hard_drive_device_path): New structure.
26896 (grub_efi_hard_drive_device_path_t): New type.
26897 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
26898 (struct grub_efi_cdrom_device_path): New structure.
26899 (grub_efi_cdrom_device_path_t): New type.
26900 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
26901 (struct grub_efi_vendor_media_device_path): New structure.
26902 (grub_efi_vendor_media_device_path_t): New type.
26903 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
26904 (struct grub_efi_file_path_device_path): New structure.
26905 (grub_efi_file_path_device_path_t): New type.
26906 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
26907 (struct grub_efi_protocol_device_path): New structure.
26908 (grub_efi_protocol_device_path_t): New type.
26909 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
26910 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
26911 (struct grub_efi_bios_device_path): New structure.
26912 (grub_efi_bios_device_path_t): New type.
26913 (struct grub_efi_disk_io): New structure.
26914 (grub_efi_disk_io_t): New type.
26915 (struct grub_efi_block_io_media): New structure.
26916 (grub_efi_block_io_media_t): New type.
26917 (struct grub_efi_block_io): New structure.
26918 (grub_efi_block_io_t): New type.
26919
26920 * include/grub/misc.h (grub_stop): Removed.
26921 (grub_exit): New prototype.
26922 (grub_abort): Likewise.
26923
26924 * include/grub/disk.h (enum grub_disk_dev_id): Added
26925 GRUB_DISK_DEVICE_EFIDISK_ID.
26926
26927 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
26928 disk/efi/efidisk.c.
26929 (kernel_syms.lst): Remove the target if an error occurs.
26930
49986a9f 269312006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
26932
26933 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
26934 as it was simply too buggy.
26935
970d3b8a 269362006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
26937
26938 * kern/misc.c (grub_lltoa): New function.
26939 (grub_vsprintf): Added support for the long long suffix,
26940 i.e. "ll".
26941
ff04ec24 269422006-04-20 Hollis Blanchard <hollis@penguinppc.org>
26943
26944 * Makefile.in (LDFLAGS): Add variable.
26945 (LD): Remove variable.
26946 * configure.ac: Add -m32 to LDFLAGS.
26947 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
26948 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
26949 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
26950 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
26951 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
26952 variables.
26953 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
26954 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
26955 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
26956
37e5e1a4 269572006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
26958
26959 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
26960 length for unknown glyph.
26961
c352d8dd 269622006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
26963
2eab1c0d 26964 Add support for pre-loaded modules into the EFI port.
f19dbdb7 26965
2eab1c0d 26966 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
26967 completely. Accept one more argument DIR. The caller has changed.
26968
26969 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
26970
26971 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
26972 (grub_efi_loaded_image_guid): New variable.
26973 (grub_efi_get_loaded_image): New function.
26974 (grub_arch_modules_addr): Likewise.
26975
26976 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
26977 prototype.
26978
26979 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
26980 (struct grub_efi_loaded_image): New structure.
26981 (grub_efi_loaded_image_t): New type.
26982
269832006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 26984
c352d8dd 26985 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
26986 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
26987 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
26988
6d01d6b4 269892006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
26990
26991 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
26992
976a4ea0 269932006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
26994
26995 * DISTLIST: Added include/grub/efi/console.h,
26996 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
26997 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
26998
26999 * include/grub/efi/console.h: New file.
27000 * include/grub/efi/time.h: Likewise.
27001 * include/grub/i386/efi/kernel.h: Likewise.
27002 * kern/efi/init.c: Likewise.
27003 * kern/efi/mm.c: Likewise.
27004 * term/efi/console.c: Likewise.
f19dbdb7 27005
976a4ea0 27006 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
27007 (grub_stop): Removed.
27008 (grub_get_rtc): Likewise.
27009 (grub_machine_init): Simply call grub_efi_init.
27010 (grub_machine_fini): Call grub_efi_fini.
27011
27012 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
27013 (grub_efi_output_string): Removed.
27014 (grub_efi_stall): New function.
27015 (grub_stop): Likewise.
27016 (grub_get_rtc): Likewise.
27017
27018 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
27019 (grub_efi_stall): New prototype.
27020 (grub_efi_allocate_pages): Likewise.
27021 (grub_efi_free_pages): Likewise.
27022 (grub_efi_get_memory_map): Likewise.
27023 (grub_efi_mm_init): Likewise.
27024 (grub_efi_mm_fini): Likewise.
27025 (grub_efi_init): Likewise.
27026 (grub_efi_fini): Likewise.
27027
27028 * include/grub/i386/efi/time.h: Do not include
27029 grub/symbol.h. Include grub/efi/time.h.
27030 (GRUB_TICKS_PER_SECOND): Removed.
27031 (grub_get_rtc): Likewise.
27032
27033 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
27034 Added padding. The EFI spec is buggy.
27035 (GRUB_EFI_BLACK): New macro.
27036 (GRUB_EFI_BLUE): Likewise.
27037 (GRUB_EFI_GREEN): Likewise.
27038 (GRUB_EFI_CYAN): Likewise.
27039 (GRUB_EFI_RED): Likewise.
27040 (GRUB_EFI_MAGENTA): Likewise.
27041 (GRUB_EFI_BROWN): Likewise.
27042 (GRUB_EFI_LIGHTGRAY): Likewise.
27043 (GRUB_EFI_BRIGHT): Likewise.
27044 (GRUB_EFI_DARKGRAY): Likewise.
27045 (GRUB_EFI_LIGHTBLUE): Likewise.
27046 (GRUB_EFI_LIGHTGREEN): Likewise.
27047 (GRUB_EFI_LIGHTCYAN): Likewise.
27048 (GRUB_EFI_LIGHTRED): Likewise.
27049 (GRUB_EFI_LIGHTMAGENTA): Likewise.
27050 (GRUB_EFI_YELLOW): Likewise.
27051 (GRUB_EFI_WHITE): Likewise.
27052 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
27053 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
27054 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
27055 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
27056 (GRUB_EFI_BACKGROUND_RED): Likewise.
27057 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
27058 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
27059 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
27060 (GRUB_EFI_TEXT_ATTR): Likewise.
27061
27062 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
27063 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
27064 (kernel_mod_HEADERS): Added efi/time.h.
27065
83709125 270662006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
27067
27068 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
27069 include/grub/efi/api.h, include/grub/efi/console_control.h,
27070 include/grub/efi/efi.h, include/grub/efi/pe32.h,
27071 include/grub/i386/efi/time.h, kern/efi/efi.c,
27072 kern/i386/efi/init.c, kern/i386/efi/startup.S,
27073 and util/i386/efi/grub-mkimage.c.
27074
27075 * Makefile.in (RMKFILES): Added i386-efi.rmk.
27076
27077 * genmk.rb (PModule#rule): Do not export symbols if
27078 #{prefix}_EXPORTS is set to "no".
27079
27080 * conf/i386-efi.mk: New file.
27081 * conf/i386-efi.rmk: Likewise.
27082 * include/grub/efi/api.h: Likewise.
27083 * include/grub/efi/console_control.h: Likewise.
27084 * include/grub/efi/efi.h: Likewise.
27085 * include/grub/efi/pe32.h: Likewise.
27086 * include/grub/i386/efi/time.h: Likewise.
27087 * kern/efi/efi.c: Likewise.
27088 * kern/i386/efi/init.c: Likewise.
27089 * kern/i386/efi/startup.S: Likewise.
27090 * util/i386/efi/grub-mkimage.c: Likewise.
27091
270922006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 27093
27094 * include/grub/script.h: Include <grub/parser.h> and
27095 "grub_script.tab.h".
27096 (struct grub_lexer_param): New struct.
27097 (struct grub_parser_param): Likewise.
27098 (grub_script_create_arglist): Pass the state in an argument.
27099 (grub_script_add_arglist): Likewise.
27100 (grub_script_create_cmdline): Likewise.
27101 (grub_script_create_cmdblock): Likewise.
27102 (grub_script_create_cmdif): Likewise.
27103 (grub_script_create_cmdmenu): Likewise.
27104 (grub_script_add_cmd): Likewise.
27105 (grub_script_arg_add): Likewise.
27106 (grub_script_lexer_ref): Likewise.
27107 (grub_script_lexer_deref): Likewise.
27108 (grub_script_lexer_record_start): Likewise.
27109 (grub_script_lexer_record_stop): Likewise.
27110 (grub_script_mem_record): Likewise.
27111 (grub_script_mem_record_stop): Likewise.
27112 (grub_script_malloc): Likewise.
27113 (grub_script_yylex): Likewise.
27114 (grub_script_yyparse): Likewise.
27115 (grub_script_yyerror): Likewise.
27116 (grub_script_yylex): Likewise.
27117 (grub_script_lexer_init): Return the state.
27118
27119 * normal/lexer.c (grub_script_lexer_state): Removed variable.
27120 (grub_script_lexer_done): Likewise.
27121 (grub_script_lexer_getline): Likewise.
27122 (grub_script_lexer_refs): Likewise.
27123 (script): Likewise.
27124 (newscript): Likewise.
27125 (record): Likewise.
27126 (recording): Likewise.
27127 (recordpos): Likewise.
27128 (recordlen): Likewise.
27129 (grub_script_lexer_init): Return the state instead of setting
27130 global variables.
27131 (grub_script_lexer_ref): Use the newly added argument for state
27132 instead of globals.
27133 (grub_script_lexer_deref): Likewise.
27134 (grub_script_lexer_record_start): Likewise.
27135 (grub_script_lexer_record_stop): Likewise.
27136 (recordchar): Likewise.
27137 (nextchar): Likewise.
27138 (grub_script_yylex2): Likewise.
27139 (grub_script_yylex): Likewise.
27140 (grub_script_yyerror): Likewise.
27141
27142 * normal/parser.y (func_mem): Removed variable.
27143 (menu_entry): Likewise.
27144 (err): Likewise.
27145 (%lex-param): New parser option.
27146 (%parse-param): Likewise.
27147 (script): Always return the AST.
27148 (argument): Pass the state around.
27149 (arguments): Likewise.
27150 (grubcmd): Likewise.
27151 (commands): Likewise.
27152 (function): Likewise.
27153 (menuentry): Likewise.
27154 (if_statement): Likewise.
27155 (if): Likewise.
27156
27157 * normal/script.c (grub_script_memused): Removed variable.
27158 (grub_script_parsed): Likewise.
27159 (grub_script_malloc): Added a state argument. Use that instead of
27160 global variables.
27161 (grub_script_mem_record): Likewise.
27162 (grub_script_mem_record_stop): Likewise.
27163 (grub_script_arg_add): Likewise.
27164 (grub_script_add_arglist): Likewise.
27165 (grub_script_create_cmdline): Likewise.
27166 (grub_script_create_cmdif): Likewise.
27167 (grub_script_create_cmdmenu): Likewise.
27168 (grub_script_add_cmd): Likewise.
27169 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 27170
e2a8c904 271712006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 27172
27173 * normal/command.c (grub_command_init): Remove the title command.
27174
27175 * normal/lexer.c (grub_script_yylex): Renamed from this...
27176 (grub_script_yylex2): ... to this.
27177 (grub_script_yylex): New function. Temporary
27178 introduced to filter some tokens.
27179 (grub_script_yyerror): Print a newline.
27180
27181 * normal/main.c (read_config_file): Output information about the
27182 lines that contain errors. Wait for a key after all lines have
27183 been processed. Don't return an empty menu.
27184
27185 * normal/parser.y (func_mem): Don't initialize.
27186 (menu_entry): Likewise.
27187 (err): New variable.
27188 (script): Don't return anything when an error was encountered.
27189 (ws, returns): Removed rules.
27190 (argument): Disabled concatenated variable support.
27191 (arguments): Remove explicit separators.
27192 (grubcmd): Likewise.
27193 (function): Likewise.
27194 (menuentry): Likewise.
27195 (if): Likewise.
27196 (commands): Likewise. Add error handling.
27197
27198 * normal/script.c (grub_script_create_cmdline): If
27199 `grub_script_parsed' is 0, assume the parser encountered an error.
27200
c9a86192 272012006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
27202
27203 * configure.ac: Add support for EFI. Fix the typo
27204 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
27205
70f3b243 272062006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
27207
27208 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
27209 foreign multibyte characters should be shown correctly.
27210
65f201ad 272112006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
27212
27213 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
27214 calculation.
27215 (read_config_file): Made it to close file before returning.
27216
b4b93674 272172006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
27218
27219 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
27220 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
27221 video/i386/pc/vbefill.c.
27222
27223 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
27224 video/i386/pc/vbefill.c.
27225
27226 * include/grub/video.h (grub_video_blit_format): New enum.
27227 (grub_video_mode_info): Added new member blit_format.
27228 (grub_video_get_blit_format): New function prototype.
27229
27230 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
27231 function prototype.
27232 (grub_video_vbe_map_rgb): Likewise.
27233 (grub_video_vbe_unmap_color): Likewise.
27234
27235 * include/grub/i386/pc/vbeblit.h: New file.
27236
27237 * include/grub/i386/pc/vbefill.h: New file.
27238
27239 * video/video.c (grub_video_get_blit_format): New function.
27240 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
27241 (grub_video_vbe_map_rgb): Likewise.
27242 (grub_video_vbe_unmap_color): Likewise.
27243
27244 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
27245 optimized fills.
27246 (grub_video_vbe_blit_render_target): Changed to use more optimized
27247 blits.
27248 (grub_video_vbe_setup): Added detection for optimized settings.
27249 (grub_video_vbe_create_render_target): Likewise.
27250
27251 * video/i386/pc/vbeblit.c: New file.
27252
27253 * video/i386/pc/vbefill.c: New file.
27254
c2379b9c 272552006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
27256
27257 * font/manager.c (grub_font_get_glyph): Removed font fixup from
27258 here...
27259
27260 * util/unifont2pff.rb: ... and moved it to here. Improved argument
27261 parsing to support both hex and dec ranges. If filename was missing
27262 show usage information.
27263
bd0d7896 272642006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
27265
27266 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
27267 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
27268
27269 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
27270 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
27271 (video_mod_SOURCES): Added.
27272 (video_mod_CFLAGS): Likewise.
27273 (video_mod_LDFLAGS): Likewise.
27274 (gfxterm_mod_SOURCES): Likewise.
27275 (gfxterm_mod_CFLAGS): Likewise.
27276 (gfxterm_mod_LDFLAGS): Likewise.
27277 (videotest_mod_SOURCES): Likewise.
27278 (videotest_mod_CFLAGS): Likewise.
27279 (videotest_mod_LDFLAGS): Likewise.
27280 (vesafb_mod_SOURCES): Removed.
27281 (vesafb_mod_CFLAGS): Likewise.
27282 (vesafb_mod_LDFLAGS): Likewise.
27283 (vga_mod_SOURCES): Likewise.
27284 (vga_mod_CFLAGS): Likewise.
27285 (vga_mod_LDFLAGS): Likewise.
27286
27287 * commands/videotest.c: New file.
27288
27289 * font/manager.c (fill_with_default_glyph): Modified to use
27290 grub_font_glyph.
27291 (grub_font_get_glyph): Likewise.
27292 (fontmanager): Renamed from this...
27293 (font_manager): ... to this.
27294
27295 * include/grub/font.h (grub_font_glyph): Added new structure.
27296 (grub_font_get_glyph): Modified to use grub_font_glyph.
27297
27298 * include/grub/misc.h (grub_abs): Added as inline function.
27299
27300 * include/grub/video.h: New file.
27301
27302 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
27303 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
27304 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
27305 (grub_vbe_get_controller_info): Renamed from this...
27306 (grub_vbe_bios_get_controller_info): ... to this.
27307 (grub_vbe_get_mode_info): Renamed from this...
27308 (grub_vbe_bios_get_mode_info): ... to this.
27309 (grub_vbe_set_mode): Renamed from this...
27310 (grub_vbe_bios_set_mode): ... to this.
27311 (grub_vbe_get_mode): Renamed from this...
27312 (grub_vbe_bios_get_mode): ... to this.
27313 (grub_vbe_set_memory_window): Renamed from this...
27314 (grub_vbe_bios_set_memory_window): ... to this.
27315 (grub_vbe_get_memory_window): Renamed from this...
27316 (grub_vbe_bios_get_memory_window): ... to this.
27317 (grub_vbe_set_scanline_length): Renamed from this...
27318 (grub_vbe_set_scanline_length): ... to this.
27319 (grub_vbe_get_scanline_length): Renamed from this...
27320 (grub_vbe_bios_get_scanline_length): ... to this.
27321 (grub_vbe_set_display_start): Renamed from this...
27322 (grub_vbe_bios_set_display_start): ... to this.
27323 (grub_vbe_get_display_start): Renamed from this...
27324 (grub_vbe_bios_get_display_start): ... to this.
27325 (grub_vbe_set_palette_data): Renamed from this...
27326 (grub_vbe_bios_set_palette_data): ... to this.
27327 (grub_vbe_set_pixel_rgb): Removed.
27328 (grub_vbe_set_pixel_index): Likewise.
27329
27330 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
27331 from this...
27332 (grub_vbe_bios_get_controller_info): ... to this.
27333 (grub_vbe_get_mode_info): Renamed from this...
27334 (grub_vbe_bios_get_mode_info): ... to this.
27335 (grub_vbe_set_mode): Renamed from this...
27336 (grub_vbe_bios_set_mode): ... to this.
27337 (grub_vbe_get_mode): Renamed from this...
27338 (grub_vbe_bios_get_mode): ... to this.
27339 (grub_vbe_set_memory_window): Renamed from this...
27340 (grub_vbe_bios_set_memory_window): ... to this.
27341 (grub_vbe_get_memory_window): Renamed from this...
27342 (grub_vbe_bios_get_memory_window): ... to this.
27343 (grub_vbe_set_scanline_length): Renamed from this...
27344 (grub_vbe_set_scanline_length): ... to this.
27345 (grub_vbe_get_scanline_length): Renamed from this...
27346 (grub_vbe_bios_get_scanline_length): ... to this.
27347 (grub_vbe_set_display_start): Renamed from this...
27348 (grub_vbe_bios_set_display_start): ... to this.
27349 (grub_vbe_get_display_start): Renamed from this...
27350 (grub_vbe_bios_get_display_start): ... to this.
27351 (grub_vbe_set_palette_data): Renamed from this...
27352 (grub_vbe_bios_set_palette_data): ... to this.
27353 (grub_vbe_bios_get_controller_info): Fixed problem with registers
27354 getting corrupted after calling it. Added more pushes and pops.
27355 (grub_vbe_bios_set_mode): Likewise.
27356 (grub_vbe_bios_get_mode): Likewise.
27357 (grub_vbe_bios_get_memory_window): Likewise.
27358 (grub_vbe_bios_set_scanline_length): Likewise.
27359 (grub_vbe_bios_get_scanline_length): Likewise.
27360 (grub_vbe_bios_get_display_start): Likewise.
27361 (grub_vbe_bios_set_palette_data): Likewise.
27362
27363 * normal/cmdline.c (cl_set_pos): Refresh the screen.
27364 (cl_insert): Likewise.
27365 (cl_delete): Likewise.
27366
27367 * term/gfxterm.c: New file.
27368
27369 * term/i386/pc/vesafb.c: Removed file.
27370
27371 * video/video.c: New file.
27372
27373 * video/i386/pc/vbe.c (real2pm): Added new function.
27374 (grub_video_vbe_draw_pixel): Likewise.
27375 (grub_video_vbe_get_video_ptr): Likewise.
27376 (grub_video_vbe_get_pixel): Likewise
27377 (grub_video_vbe_init): Likewise.
27378 (grub_video_vbe_fini): Likewise.
27379 (grub_video_vbe_setup): Likewise.
27380 (grub_video_vbe_get_info): Likewise.
27381 (grub_video_vbe_set_palette): Likewise.
27382 (grub_video_vbe_get_palette): Likewise.
27383 (grub_video_vbe_set_viewport): Likewise.
27384 (grub_video_vbe_get_viewport): Likewise.
27385 (grub_video_vbe_map_color): Likewise.
27386 (grub_video_vbe_map_rgb): Likewise.
27387 (grub_video_vbe_map_rgba): Likewise.
27388 (grub_video_vbe_unmap_color): Likewise.
27389 (grub_video_vbe_fill_rect): Likewise.
27390 (grub_video_vbe_blit_glyph): Likewise.
27391 (grub_video_vbe_blit_bitmap): Likewise.
27392 (grub_video_vbe_blit_render_target): Likewise.
27393 (grub_video_vbe_scroll): Likewise.
27394 (grub_video_vbe_swap_buffers): Likewise.
27395 (grub_video_vbe_create_render_target): Likewise.
27396 (grub_video_vbe_delete_render_target): Likewise.
27397 (grub_video_vbe_set_active_render_target): Likewise.
27398 (grub_vbe_set_pixel_rgb): Remove function.
27399 (grub_vbe_set_pixel_index): Likewise.
27400 (index_color_mode): Remove static variable.
27401 (active_mode): Likewise.
27402 (framebuffer): Likewise.
27403 (bytes_per_scan_line): Likewise.
27404 (grub_video_vbe_adapter): Added new static variable.
27405 (framebuffer): Likewise.
27406 (render_target): Likewise.
27407 (initial_mode): Likewise.
27408 (mode_in_use): Likewise.
27409 (mode_list): Likewise.
27410
5f97350b 274112006-03-10 Marco Gerards <marco@gnu.org>
27412
27413 * configure.ac (AC_INIT): Bumped to 1.93.
27414
27415 * DISTLIST: Added `include/grub/hfs.h'.
27416
a3c5c6f8 274172006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
27418
27419 * boot/i386/pc/boot.S (general_error): Before looping, try INT
27420 18H, which might help the BIOS falling back to next boot media.
27421
6de53d26 274222006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
27423
27424 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
27425 Poe Chen <poe.poechen@gmail.com>.
27426
77c4a393 274272006-01-17 Marco Gerards <marco@gnu.org>
27428
27429 * include/grub/normal.h: Include <grub/script.h>.
27430 (grub_command_list): Removed struct.
27431 (grub_command_list_t): Removed type.
27432 (grub_menu_entry): Remove members `num' and `command_list'. Add
27433 members `commands' and `sourcecode'.
27434 * include/grub/script.h: Add inclusion guards.
27435 (grub_script_cmd_menuentry): New struct.
27436 (grub_script_execute_menuentry): New prototype.
27437 (grub_script_lexer_record_start): Likewise.
27438 (grub_script_lexer_record_stop): Likewise.
27439 * normal/execute.c (grub_script_execute_menuentry): New function.
27440 * normal/lexer.c (record, recording, recordpos, recordlen): New
27441 variables.
27442 (grub_script_lexer_record_start): New function.
27443 (grub_script_lexer_record_stop): Likewise.
27444 (recordchar): Likewise.
27445 (nextchar): Likewise.
27446 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
27447 2048 as the buffer size. Add the tokens `menuentry' and `@'.
27448 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
27449 (current_menu): New variable.
27450 (free_menu): Mainly rewritten.
27451 (grub_normal_menu_addentry): New function.
27452 (read_config_file): Rewritten.
27453 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 27454 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 27455 the menu entry.
27456 (run): Mainly rewritten.
27457 * normal/parser.y (menu_entry): New variable.
27458 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
27459 (menuentry): New rule.
27460 (command): Add `menuentry'.
27461 (if_statement): Allow additional returns before `fi'.
27462 * normal/script.c (grub_script_create_cmdmenu): New function.
27463
144f1f98 274642006-01-03 Marco Gerards <marco@gnu.org>
27465
27466 * INSTALL: GNU Bison is required.
27467 * configure.ac: Rewritten the test to detect Bison.
27468 * Makefile.in (YACC): New variable. Reported by Xun Sun
27469 <xun.sun.cn@gmail.com>.
27470
af4b2d89 274712006-01-03 Marco Gerards <marco@gnu.org>
27472
27473 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
27474 the HFS+ filesystem to filesystem blocks.
27475 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
27476 GCC warning is silenced.
27477
15643b71 274782006-01-03 Marco Gerards <marco@gnu.org>
27479
27480 * partmap/apple.c (apple_partition_map_iterate): Convert the data
27481 read from disk from big endian to host byte order.
27482
00905879 274832006-01-03 Hollis Blanchard <hollis@penguinppc.org>
27484
27485 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
27486 documentation.
27487 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
27488 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
27489 embedded HFS+ filesystem.
27490 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
27491 (grub_hfs_sblock): Move from here...
27492 * include/grub/hfs.h: To here... New file.
27493 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
27494 documentation.
27495 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
27496 New macros.
27497 (grub_hfsplus_volheader): Change type of member `magic' to
27498 `grub_uint16_t'.
27499 (grub_hfsplus_data): Add new member `embedded_offset'.
27500 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
27501 returned block.
27502 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
27503 Calculate the offset.
27504
8899bc3e 275052005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
27506
27507 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
27508 Removed.
27509 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
27510
ae8c0277 275112005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
27512
27513 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
27514 ENV->NAME is NULL after allocating ENV->VALUE.
27515
07084456 275162005-12-25 Marco Gerards <marco@gnu.org>
27517
27518 * kern/env.c (grub_env_set): Rewritten the error handling code.
27519
4750f5f1 275202005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
27521
27522 * geninit.sh: Made more robust, and more portable.
27523
50214199 275242005-12-25 Marco Gerards <marco@gnu.org>
27525
27526 Add support for Apple HFS+ filesystems.
f19dbdb7 27527
50214199 27528 * fs/hfsplus.c: New file.
27529
27530 * DISTLIST: Added `fs/hfsplus.c'.
27531
27532 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
27533 (hfsplus_mod_SOURCES): New variable.
27534 (hfsplus_mod_CFLAGS): Likewise.
27535 (hfsplus_mod_LDFLAGS): Likewise.
27536 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
27537 (grub_setup_SOURCES): Likewise.
27538 (grub_mkdevicemap_SOURCES): Likewise.
27539 (grub_emu_SOURCES): Likewise.
27540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27541
27542 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
27543
27544 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
27545
befaed6c 275462005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
27547
27548 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
27549 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
27550 include/grub/parser.h, include/grub/script.h, kern/parser.c,
27551 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
27552 normal/lexer.c, normal/parser.y, normal/script.c, and
27553 partmap/gpt.c.
27554 Removed kern/sparc64/cache.c.
27555
27556 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
27557 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
27558 grub_emu_init.c.
27559
27560 * configure.ac (AC_INIT): Bumped to 1.92.
27561
6a124103 275622005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
27563
27564 * kern/err.c (grub_error_push): Added new function to support error
27565 stacks.
27566 (grub_error_pop): Likewise.
27567 (grub_error_stack_items): New local variable to support error stacks.
27568 (grub_error_stack_pos): Likewise.
27569 (grub_error_stack_assert): Likewise.
27570 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
27571 stack depth.
27572 (grub_print_error): Added support to print errors from error stack.
27573
27574 * include/grub/err.h (grub_error_push): Added function prototype.
27575 (grub_error_pop): Likewise.
27576
be973c1b 275772005-12-09 Hollis Blanchard <hollis@penguinppc.org>
27578
27579 * configure.ac: Accept `powerpc64' as host_cpu.
27580 (amd64): Rename to `biarch32'.
27581
27582 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
27583 non-cacheline-aligned addresses.
27584
27585 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
27586 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
27587 if `size' is non-zero.
27588
b04216ab 275892005-12-03 Marco Gerards <mgerards@xs4all.nl>
27590
27591 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
27592 and `cd' to make sure the filename is not prefixed with a
27593 directory name.
27594 (pkgdata_MODULES): Add `gpt.mod'.
27595 (gpt_mod_SOURCES): New variable.
27596 (gpt_mod_CFLAGS): Likewise.
27597 (gpt_mod_LDFLAGS): Likewise.
27598
27599 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
27600
27601 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
27602 New macro.
27603
27604 * partmap/gpt.c: New file.
27605
27606 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
27607 GPT partition map is detected.
27608
41730ed9 276092005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
27610
27611 * commands/i386/pc/play.c: New file.
27612 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
27613 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
27614 macros.
f19dbdb7 27615
95dc3643 276162005-11-27 Marco Gerards <mgerards@xs4all.nl>
27617
27618 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
27619 ((unused))' to silence gcc warning.
27620
1569ec51 276212005-11-26 Hollis Blanchard <hollis@penguinppc.org>
27622
27623 * configure.ac: Correct `AC_PROG_YACC' test.
27624
9abde152 276252005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27626
27627 * util/powerpc/ieee1275/grub-install.in: Run the mount point
27628 check before installing files.
27629
44b83271 276302005-11-22 Mike Small <smallm@panix.com>
27631
27632 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
27633 number regex so multidigit numbers are recognized correctly.
27634
276352005-11-22 Mike Small <smallm@panix.com>
27636
27637 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
27638 debugging message before attempting to claim memory.
27639 (grub_rescue_cmd_initrd): Add a claim debugging message and try
27640 multiple addresses in case of failure.
27641
9c12956b 276422005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27643
27644 * term/tparm.c (get_space): Remove empty `if' statement.
27645
27646 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
27647
27648 * kern/parser.c (check_varstate): Rename `state' to 's'.
27649
aeaf81d9 276502005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27651
27652 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
27653 variable definitions to the beginning of each function. Sort stack
27654 variables by size.
27655 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
27656 `buf' argument to `char *'.
27657
79bbb63f 276582005-11-22 Hollis Blanchard <hollis@penguinppc.org>
27659
27660 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
27661 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 27662 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 27663 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
27664 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
27665 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
27666 configfile.mod, search.mod, gzio.mod and test.mod.
27667 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
27668 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
27669 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
27670 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
27671 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
27672 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
27673 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
27674 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
27675 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
27676 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
27677 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
27678 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
27679 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
27680 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
27681 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
27682 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
27683 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27684 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
27685 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
27686 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
27687 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
27688 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
27689 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
27690
27691 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
27692 `grep --include'.
27693 (pkgdata_MODULES): Add test.mod.
27694
233b1628 276952005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27696
27697 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
27698 appending to variables with "+=".
27699 (PModule): Use full pathname to generate *.lst filenames.
27700
27701 * Makefile.in: Fixed list rules moved from genmk.rb.
27702 (.DELETE_ON_ERROR): New special target.
27703 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
27704
27705 * conf/i386-pc.rmk: Include conf/common.mk.
27706 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 27707 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 27708 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
27709 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
27710 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
27711 configfile.mod, search.mod, gzio.mod and test.mod.
27712 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
27713 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
27714 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
27715 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
27716 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
27717 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
27718 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
27719 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
27720 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
27721 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
27722 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
27723 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
27724 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
27725 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
27726 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
27727 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
27728 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27729 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
27730 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
27731 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
27732 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
27733 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
27734 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
27735 here...
27736 * conf/common.rmk: ... to here. New file.
27737
27738 * conf/common.mk: New file.
27739
16f820c8 277402005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
27741
27742 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
27743 (grub_script.tab.c): ... here.
27744
27745 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
27746 (grub_script.tab.c): ... here.
27747
27748 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
27749 (grub_script.tab.c): ... here.
27750
27751 * normal/command.c (grub_command_find): Fixed a memory leak of
27752 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
27753
63ba1554 277542005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27755
27756 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
27757 "@" which marks the start of a comment on ARM.
27758 (VARIABLE): Likewise.
27759
7f67dc13 277602005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27761
79bbb63f 27762 Add support for Linux/ADFS partition tables.
7f67dc13 27763
27764 * partmap/acorn.c: New file.
27765
27766 * include/grub/acorn_filecore.h: Likewise.
27767
27768 * DISTLIST: Added `partmap/acorn.c' and
27769 `include/grub/acorn_filecore.h'.
f19dbdb7 27770
7f67dc13 27771 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27772 `partmap/acorn.c'.
27773 (pkgdata_MODULES): Add `acorn.mod'.
27774 (acorn_mod_SOURCES): New variable.
27775 (acorn_mod_CFLAGS): Likewise.
27776
27777 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
27778 `partmap/acorn.c'.
27779 (pkgdata_MODULES): Add `acorn.mod'.
27780 (acorn_mod_SOURCES): New variable.
27781 (acorn_mod_CFLAGS): Likewise.
27782
27783 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
27784 (pkgdata_MODULES): Add `acorn.mod'.
27785 (acorn_mod_SOURCES): New variable.
27786 (acorn_mod_CFLAGS): Likewise.
27787 (acorn_mod_LDFLAGS): Likewise.
27788
27789 * include/types.h (grub_disk_addr_t): New typedef.
27790
6d099807 277912005-11-13 Marco Gerards <mgerards@xs4all.nl>
27792
27793 * geninit.sh: New file.
27794
27795 * geninitheader.sh: Likewise.
27796
27797 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
27798 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
27799 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
27800 * commands/configfile.c (grub_configfile_init)
27801 (grub_configfile_fini): Likewise.
27802 * commands/default.c (grub_default_init, grub_default_fini):
27803 Likewise.
27804 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
27805 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
27806 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
27807 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
27808 Likewise.
27809 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
27810 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
27811 Likewise.
27812 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 27813 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 27814 Likewise.
27815 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
27816 Likewise.
fe6b695a 27817 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 27818 Likewise.
27819 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
27820 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
27821 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
27822 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
27823 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
27824 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
27825 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
27826 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
27827 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
27828 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
27829 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
27830 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
27831 * partmap/amiga.c (grub_amiga_partition_map_init)
27832 (grub_amiga_partition_map_fini): Likewise.
27833 * partmap/apple.c (grub_apple_partition_map_init)
27834 (grub_apple_partition_map_fini): Likewise.
27835 * partmap/pc.c (grub_pc_partition_map_init)
27836 (grub_pc_partition_map_fini): Likewise.
27837 * partmap/sun.c (grub_sun_partition_map_init,
27838 grub_sun_partition_map_fini): Likewise.
27839 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
27840 Likewise.
27841
27842 * util/grub-emu.c: Include <grub_modules_init.h>.
27843 (main): Don't initialize and de-initialize any modules directly,
27844 use `grub_init_all' and `grub_fini_all' instead.
27845
27846 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
27847 `grub_vesafb_mod_init'.
27848 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
27849 all users.
27850 * term/i386/pc/vga.c (grub_vga_init): Renamed to
27851 `grub_vga_mod_init'. Updated all users.
27852 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 27853
6d099807 27854 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
27855 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
27856 rules.
27857
27858 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
27859 Generate a function to initialize the module in utilities.
27860 Updated all callers.
27861 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
27862 initialize the module in utilities. Updated all callers.
27863
9046bcf0 278642005-11-09 Hollis Blanchard <hollis@penguinppc.org>
27865
27866 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
27867 escape sequence and a literal ^L to clear the screen.
27868
27869 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
27870 when returning from Open Firmware.
27871
d13ea639 278722005-11-09 Hollis Blanchard <hollis@penguinppc.org>
27873
27874 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
27875 (grub_ofconsole_height): Likewise.
27876 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
27877 manually insert a '\n'.
27878 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
27879 `grub_ofconsole_height'. Return early if these are already set.
27880
a8fcf206 278812005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
27882
27883 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
27884 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
27885 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
27886 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
27887 and `normal/script.c'.
27888 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
27889 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
27890 (test_mod_SOURCES): New variable.
27891 (test_mod_CFLAGS): Likewise.
27892 (test_mod_LDFLAGS): Likewise.
27893 (pkgdata_MODULES): Add `test.mod'.
27894 (grub_script.tab.c): New rule.
27895 (grub_script.tab.h): Likewise.
27896
b6b32745 278972005-11-07 Marco Gerards <mgerards@xs4all.nl>
27898
27899 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27900 `commands/test.c', `normal/execute.c', `normal/lexer.c',
27901 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
27902 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
27903 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
27904 (test_mod_SOURCES): New variable.
27905 (test_mod_CFLAGS): Likewise.
27906 (pkgdata_MODULES): Add `test.mod'.
27907 (grub_script.tab.c): New rule.
27908 (grub_script.tab.h): Likewise.
27909
daac212a 279102005-11-06 Marco Gerards <mgerards@xs4all.nl>
27911
27912 Add initial scripting support.
27913
27914 * commands/test.c: New file.
27915 * include/grub/script.h: Likewise.
27916 * normal/execute.c: Likewise.
27917 * normal/function.c: Likewise.
27918 * normal/lexer.c: Likewise.
27919 * normal/parser.y: Likewise.
27920 * normal/script.c: Likewise.
27921
27922 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 27923
daac212a 27924 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
27925 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
27926 `normal/function.c' and `normal/script.c'.
27927 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
27928 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 27929 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
27930 variables.
daac212a 27931 (pkgdata_MODULES): Add `test.mod'.
27932 (grub_script.tab.c): New rule.
27933 (grub_script.tab.h): Likewise.
27934
27935 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
27936
27937 * include/grub/normal.h (grub_test_init): New prototype.
27938 (grub_test_fini): Likewise.
f19dbdb7 27939
daac212a 27940 * normal/command.c: Include <grub/script.h>.
27941 (grub_command_execute): Rewritten.
f19dbdb7 27942
daac212a 27943 * util/grub-emu.c (main): Call `grub_test_init' and
27944 `grub_test_fini'.
27945
77500b2b 279462005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27947
27948 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
27949 to 0.
27950 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
27951 there are no pending characters.
27952
e45deb9e 279532005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27954
27955 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
27956 `grub_strndup' to drop device arguments. Replace unnecessary
27957 `grub_strndup' with `grub_strdup'.
27958
4ce32619 279592005-11-03 Hollis Blanchard <hollis@penguinppc.org>
27960
27961 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
27962 `debug' environment variable has been set.
27963
279642005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 27965
4ce32619 27966 * Makefile.in (install-local): Use $(DATA).
27967 (uninstall): Likewise.
27968 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
27969 (sbin_UTILITIES): ... to here.
27970 (sbin_SCRIPTS): New variable.
27971 (grub_install_SOURCES): New variable.
27972 * util/powerpc/ieee1275/grub-install.in: New file.
27973 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
27974 variable.
27975 (add_segments): Call `grub_util_get_path'.
27976
25fe6f03 279772005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
27978
27979 From Timothy Baldwin:
27980 * commands/ls.c (grub_ls_list_files): Close FILE with
27981 grub_file_close.
27982 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
27983
04ccf3ec 279842005-10-24 Marco Gerards <mgerards@xs4all.nl>
27985
27986 * include/grub/parser.h: New file.
27987
27988 * kern/parser.c: Likewise.
27989
27990 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
27991 (grub_setup_SOURCES): Likewise.
27992 (grub_probefs_SOURCES): Likewise.
27993 (grub_emu_SOURCES): Likewise.
27994 (kernel_img_HEADERS): Add `parser.h'.
27995
27996 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
27997 (grub_emu_SOURCES): Add `kern/parser.c'.
27998 (grubof_SOURCES): Likewise.
27999
28000 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
28001 (grubof_SOURCES): Add `kern/parser.c'.
28002
28003 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
28004
28005 * kern/misc.c (grub_split_cmdline): Removed function.
28006
28007 * kern/rescue.c: Include <grub/parser.h>.
28008 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
28009 of `grub_split_cmdline'.
28010
28011 * normal/command.c: Include <grub/parser.h>.
28012 (grub_command_execute): Use `grub_parser_split_cmdline' instead
28013 of `grub_split_cmdline'.
28014
28015 * normal/completion.c: Include <grub/parser.h>.
28016 (cmdline_state): New variable.
28017 (iterate_dir): End the filename with a quote depending on the
28018 command line state.
28019 (get_state): new function.
28020 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
28021 split the arguments and determine the current argument. When the
28022 argument string is not quoted, escape all spaces.
28023
6d8f4b0e 280242005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28025
28026 * normal/sparc64/setjmp.S: New file.
28027
15cf03ed 280282005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28029
28030 * include/grub/sparc64/libgcc.h: New file.
28031 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
28032 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
28033 normal/sparc64/setjmp.c.
28034
03e8661a 280352005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28036
28037 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
28038 * kern/sparc64/cache.S: New file.
28039 * kern/sparc64/cache.c: Removed.
28040 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
28041 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
28042 -mtune=ultrasparc.
28043 (COMMON_LDFLAGS): Add -melf64_sparc.
28044 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
28045 (grubof_SOURCES): Use cache.S instead of cache.c.
28046 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
28047 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
28048 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
28049 commented though.
28050 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
28051 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
28052 (linux_mod_CFLAGS): Commented out.
28053 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
28054 out because module isn't built.
28055 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
28056 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
28057 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
28058 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
28059 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
28060 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
28061 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
28062 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
28063 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
28064 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
28065 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
28066 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
28067 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
28068 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
28069
34eeec8a 280702005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
28071
28072 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
28073 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
28074 longer, because HFS should not be used on PC.
28075
708367a3 280762005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28077
28078 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
28079 consistently within the loop.
28080
6fa1251a 280812005-10-15 Marco Gerards <mgerards@xs4all.nl>
28082
28083 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
28084 directory can not be read.
28085
4801580b 280862005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28087
28088 * configure.ac (AC_INIT): Increase the version number to 1.91.
28089
28090 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
28091 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
28092 term/i386/pc/serial.c.
28093
219ad426 280942005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28095
28096 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
28097 file size must be permitted.
28098
28099 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
28100 between %ah and %al.
28101
688e5699 281022005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28103
28104 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
28105 grub_uint64_t.
28106 Call the hook with a NUL-terminated filename.
28107 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
28108 grub_cpu_to_be32.
28109
28110 * kern/term.c (cursor_state): New variable.
28111 (grub_term_set_current): Reset the cursor state on a new
28112 terminal.
28113 (grub_setcursor): Rewritten to use CURSOR_STATE.
28114 (grub_getcursor): New function.
28115
28116 * include/grub/term.h (grub_getcursor): New prototype.
28117
28118 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
28119 integers on ARM. Reported by Timothy Baldwin
28120 <T.E.Baldwin99@members.leeds.ac.uk>.
28121
bb34586c 281222005-10-11 Marco Gerards <mgerards@xs4all.nl>
28123
28124 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
28125 allocated.
28126 (grub_sfs_dir): Likewise.
28127
9a909877 281282005-10-09 Marco Gerards <mgerards@xs4all.nl>
28129
28130 Add support for the SFS filesystem.
28131
28132 * fs/sfs.c: New file.
28133
28134 * DISTLIST: Added `fs/sfs.c'.
28135
28136 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
28137 (grub_probefs_SOURCES): Likewise.
28138 (grub_emu_SOURCES): Likewise.
28139 (pkgdata_MODULES): Add `sfs.mod'.
28140 (sfs_mod_SOURCES): New variable.
28141 (sfs_mod_CFLAGS): Likewise.
28142 (sfs_mod_LDFLAGS): Likewise.
28143
28144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
28145 (pkgdata_MODULES): Add `sfs.mod'.
28146 (sfs_mod_SOURCES): New variable.
28147 (sfs_mod_CFLAGS): Likewise.
28148
28149 * util/grub-emu.c (main): Call `grub_sfs_init' and
28150 `grub_sfs_fini'.
28151
28152 * include/grub/fs.h (grub_sfs_init): New prototype.
28153 (grub_sfs_fini): Likewise.
28154
57bdbde3 281552005-10-07 Marco Gerards <mgerards@xs4all.nl>
28156
28157 Add support for the AFFS filesystem.
28158
28159 * fs/affs.c: New file.
28160
28161 * DISTLIST: Added `fs/affs.c'.
28162
28163 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
28164 (grub_probefs_SOURCES): Likewise.
28165 (grub_emu_SOURCES): Likewise.
28166 (pkgdata_MODULES): Add `affs.mod'.
28167 (affs_mod_SOURCES): New variable.
28168 (affs_mod_CFLAGS): Likewise.
28169 (affs_mod_LDFLAGS): Likewise.
28170
28171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
28172 (pkgdata_MODULES): Add `affs.mod'.
28173 (affs_mod_SOURCES): New variable.
28174 (affs_mod_CFLAGS): Likewise.
28175
28176 * util/grub-emu.c (main): Call `grub_affs_init' and
28177 `grub_affs_fini'.
28178
28179 * include/grub/fs.h (grub_affs_init): New prototype.
28180 (grub_affs_fini): Likewise.
28181
047b67e0 281822005-10-01 Marco Gerards <mgerards@xs4all.nl>
28183
28184 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
28185
59b8208a 281862005-10-01 Marco Gerards <mgerards@xs4all.nl>
28187
28188 * configure.ac: Accept `x86_64' as host_cpu. In that case add
28189 `-m32' to CFLAGS.
28190
28191 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
28192 linking.
f19dbdb7 28193
59b8208a 28194 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
28195 (COMMON_LDFLAGS): New variable.
28196 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
28197 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
28198 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
28199 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
28200 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
28201 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
28202 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
28203 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
28204 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
28205 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
28206 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
28207 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
28208 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
28209 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
28210 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
28211 variables.
28212 (normal_mod_ASFLAGS): Add `-m32'.
28213
28214 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
28215 (grub_host_size_t, grub_host_ssize_t): New types.
28216 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 28217 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 28218 `GRUB_HOST_SIZEOF_VOID_P'.
28219
28220 * include/grub/kernel.h (struct grub_module_header): Type of
28221 member offset changed to `grub_host_off_t'. Type of member size
28222 changed to `grub_host_size_t'.
28223 (struct grub_module_info): Type of member offset changed to
28224 `grub_host_off_t'. Type of member size changed to
28225 `grub_host_size_t'.
28226
b4093103 282272005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
28228
28229 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 28230
b4093103 28231 * kern/i386/pc/startup.S (multiboot_header): New label.
28232 (multiboot_entry): Likewise.
28233 (multiboot_trampoline): Likewise.
28234
28235 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28236 Increased to 0x4A0.
28237
28238 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
28239 put parentheses after a question mark.
28240 [!GRUB_UTIL] (my_mod): New variable.
28241
28242 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
28243
b2499b29 282442005-09-28 Marco Gerards <mgerards@xs4all.nl>
28245
28246 Adds support for the XFS filesystem. Btrees are not supported
28247 yet.
28248
28249 * fs/xfs.c: New file.
28250
28251 * DISTLIST: Added `fs/xfs.c'.
28252
28253 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
28254 (grub_probefs_SOURCES): Likewise.
28255 (grub_emu_SOURCES): Likewise.
28256 (pkgdata_MODULES): Add `xfs.mod'.
28257 (xfs_mod_SOURCES): New variable.
28258 (xfs_mod_CFLAGS): Likewise.
28259
28260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
28261 (pkgdata_MODULES): Add `xfs.mod'.
28262 (xfs_mod_SOURCES): New variable.
28263 (xfs_mod_CFLAGS): Likewise.
28264
28265 * util/grub-emu.c (main): Call `grub_xfs_init' and
28266 `grub_xfs_fini'.
28267
28268 * include/grub/fs.h (grub_xfs_init): New prototype.
28269 (grub_xfs_fini): Likewise.
28270
f19dbdb7 28271
83d37a62 282722005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
28273
28274 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
28275 color modes, allow greater than 16 colors to be configured as
28276 a default palette.
28277
47d2d65e 282782005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28279
28280 * normal/completion.c (complete_arguments): Add the qualifier
28281 const into OPTIONS.
28282
28283 From Omniflux <omniflux+lists@omniflux.com>:
28284 * include/grub/terminfo.h: New file.
28285 * include/grub/tparm.h: Likewise.
28286 * include/grub/i386/pc/serial.h: Likewise.
28287 * term/terminfo.c: Likewise.
28288 * term/tparm.c: Likewise.
28289 * term/i386/pc/serial.c: Likewise.
28290 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
28291 serial.mod.
28292 (terminfo_mod_SOURCES): New variable.
28293 (terminfo_mod_CFLAGS): Likewise.
28294 (serial_mod_SOURCES): Likewise.
28295 (serial_mod_CFLAGS): Likewise.
28296
48b671ff 282972005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
28298
28299 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
28300 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
28301 and kern/powerpc/ieee1275/cmain.c, respectively.
28302
28303 * boot/powerpc/ieee1275/crt0.S: Moved to ...
28304 * kern/powerpc/ieee1275/crt0.S: ... here.
28305
28306 * boot/powerpc/ieee1275/cmain.c: Moved to ...
28307 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 28308
48b671ff 28309 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
28310 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
28311 instead of boot/powerpc/ieee1275/crt0.S and
28312 boot/powerpc/ieee1275/cmain.c, respectively.
28313
28314 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
28315 sectors. It was not used anyway.
28316
09fc77a7 283172005-08-30 Hollis Blanchard <hollis@penguinppc.org>
28318
28319 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
28320 `unused parameter' warning.
28321
003789c7 283222005-08-30 Hollis Blanchard <hollis@penguinppc.org>
28323
28324 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
28325 function.
28326 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
28327 getcharwidth.
28328
67f44c86 283292005-08-28 Marco Gerards <metgerards@student.han.nl>
28330
28331 * include/grub/normal.h (enum grub_completion_type): Added
28332 `GRUB_COMPLETION_TYPE_ARGUMENT'.
28333
28334 * normal/cmdline.c (print_completion): Handle
28335 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
28336 * normal/menu_entry.c (store_completion): Likewise.
28337
28338 * normal/completion.c (complete_arguments): New function.
28339 (grub_normal_do_completion): Call `complete_arguments' when the
28340 current words start with a dash.
28341
0b5abe02 283422005-08-27 Marco Gerards <metgerards@student.han.nl>
28343
28344 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
28345 `gzio.mod' instead of `io.mod').
28346
d9864ee1 283472005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
28348
28349 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
28350 (DISTDIRS): Added io and video.
28351 Rewrite the search routine to make an output consistently.
28352
28353 * DISTLIST: Added conf/sparc64-ieee1275.mk,
28354 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
28355 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
28356 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
28357 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
28358 util/powerpc/ieee1275/misc.c.
f19dbdb7 28359
d9864ee1 28360 * include/grub/gzio.h: New file.
28361 * io/gzio.c: Likewise.
f19dbdb7 28362
d9864ee1 28363 * kern/file.c (grub_file_close): Call grub_device_close only if
28364 FILE->DEVICE is not NULL.
28365
28366 * include/grub/mm.h [!NULL] (NULL): New macro.
28367
28368 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
28369
28370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
28371 (pkgdata_MODULES): Added gzio.mod.
28372 (gzio_mod_SOURCES): New variable.
28373 (gzio_mod_CFLAGS): Likewise.
28374
28375 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
28376 (pkgdata_MODULES): Added gzio.mod.
28377 (gzio_mod_SOURCES): New variable.
28378 (gzio_mod_CFLAGS): Likewise.
28379
28380 * commands/cat.c: Include grub/gzio.h.
28381 (grub_cmd_cat): Use grub_gzfile_open instead of
28382 grub_file_open.
f19dbdb7 28383
d9864ee1 28384 * commands/cmp.c: Include grub/gzio.h.
28385 (grub_cmd_cmp): Use grub_gzfile_open instead of
28386 grub_file_open.
28387
28388 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
28389 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
28390 grub_file_open.
28391 (grub_rescue_cmd_module): Likewise.
28392
fa46f4b5 283932005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
28394
28395 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
28396 kern/sparc64/ieee1275/init.c because it contains _start.
28397 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
28398
e9211b5d 283992005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
28400
28401 * configure.ac: Add support for sparc64 host with ieee1275
28402 firmware.
28403 * configure: Generated from configure.ac.
28404 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
28405 instead of int.
28406 (grub_ofdisk_read): Likewise.
28407 (grub_ofdisk_open): Use %p to print pointer values, and cast the
28408 pointers as (void *) to remove a warning.
28409 (grub_ofdisk_close): Likewise.
28410 (grub_ofdisk_read): Likewise.
28411 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
28412 returns, so make it return void to remove a warning.
28413 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
28414 Corresponding prototype change.
28415 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
28416 values, and cast the pointers as (void *) to remove a warning.
28417 (grub_mm_dump): Likewise.
28418 * conf/sparc64-ieee1275.mk: New file.
28419 * conf/sparc64-ieee1275.rmk: Likewise.
28420 * include/grub/sparc64/setjmp.h: Likewise.
28421 * include/grub/sparc64/types.h: Likewise.
28422 * include/grub/sparc64/ieee1275/console.h: Likewise.
28423 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28424 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28425 * include/grub/sparc64/ieee1275/time.h: Likewise.
28426 * kern/sparc64/cache.c: Likewise.
28427 * kern/sparc64/dl.c: Likewise.
28428 * kern/sparc64/ieee1275/init.c: Likewise.
28429 * kern/sparc64/ieee1275/openfw.c: Likewise.
28430
385c6a92 284312005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
28432
28433 * util/console.c (grub_ncurses_putchar): If C is greater than
28434 0x7f, set C to a question mark.
28435 (grub_ncurses_getcharwidth): New function.
28436 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
28437 getcharwidth.
28438
28439 * normal/menu.c (print_entry): Made aware of Unicode. First,
28440 convert TITLE to UCS-4, and predict the cursor position by
28441 grub_getcharwidth.
28442
28443 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
28444 const to SRC.
28445 * kern/misc.c (grub_utf16_to_utf8): Likewise.
28446
16ccb8b1 284472005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
28448
28449 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
28450 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
28451 grub_strcat.
28452
28453 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
28454 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
28455 grub_strcpy and grub_strlen. Take it into account that a space
28456 character is inserted as a delimiter.
28457
6a85ce79 284582005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
28459
28460 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 28461 invalid magic in the error.
6a85ce79 28462
28463 * commands/search.c: New file.
f19dbdb7 28464
6a85ce79 28465 * util/grub-emu.c (main): Call grub_search_init and
28466 grub_search_fini.
28467
28468 * kern/rescue.c (grub_rescue_print_disks): Removed.
28469 (grub_rescue_print_devices): New function.
28470 (grub_rescue_cmd_ls): Use grub_device_iterate with
28471 grub_rescue_print_devices instead of grub_disk_dev_iterate with
28472 grub_rescue_print_disks.
28473
28474 * kern/partition.c (grub_partition_iterate): Return the result of
28475 PARTMAP->ITERATE instead of GRUB_ERRNO.
28476
28477 * kern/device.c: Include grub/partition.h.
28478 (grub_device_iterate): New function.
28479
28480 * include/grub/partition.h (grub_partition_iterate): Return int
28481 instead of grub_err_t.
28482
28483 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
28484 prototype.
28485 [GRUB_UTIL] (grub_search_fini): Likewise.
28486
28487 * include/grub/device.h (grub_device_iterate): New prototype.
28488
28489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
28490 commands/search.c.
28491 (pkgdata_MODULES): Added search.mod.
28492 (search_mod_SOURCES): New variable.
28493 (search_mod_CFLAGS): Likewise.
28494
28495 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
28496 (pkgdata_MODULES): Added search.mod.
28497 (search_mod_SOURCES): New variable.
28498 (search_mod_CFLAGS): Likewise.
28499
28500 * commands/ls.c (grub_ls_list_disks): Renamed to ...
28501 (grub_ls_list_devices): ... this, and use grub_device_iterate.
28502 All callers changed.
28503
28504 * DISTLIST: Added commands/search.c.
28505
ef095434 285062005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
28507
28508 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
28509 conversion.
28510 (grub_getcharwidth): New function.
28511
28512 * kern/misc.c (grub_utf8_to_ucs4): New function.
28513
28514 * include/grub/term.h (struct grub_term): Added a new member
28515 "getcharwidth".
28516 (grub_getcharwidth): New prototype.
28517
28518 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
28519
28520 * term/i386/pc/console.c (map_char): New function. Segregated from
28521 grub_console_putchar.
28522 (grub_console_putchar): Use map_char.
28523 (grub_console_getcharwidth): New function.
28524 (grub_console_term): Specified grub_console_getcharwidth as
28525 getcharwidth.
28526
28527 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
28528 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
28529
28530 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
28531 GRUB_ERRNO.
28532 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
28533 on grub_strtoul completely.
28534 (write_char): Declare local variables in the beginning of the
28535 function.
28536 (grub_vesafb_getcharwidth): New function.
28537 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
28538 getcharwidth.
28539
1f0a95e4 285402005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
28541
28542 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
28543 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
28544 commands/i386/pc/vbetest.c.
28545
28546 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
28547 call grub_vbe_get_controller_info again, because the returned
28548 information is volatile.
28549 (grub_vbe_set_video_mode): Mostly rewritten.
28550 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
28551 grub_vbe_status_t correctly.
28552 (grub_vbe_get_video_mode_info): Likewise.
28553 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
28554 several if statements.
28555
28556 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
28557 * commands/i386/pc/vbeinfo.c: ... this.
28558
28559 * commands/i386/pc/vbe_test.c: Renamed to ...
28560 * commands/i386/pc/vbetest.c: ... this.
28561
28562 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
28563 ...
28564 (grub_cmd_vbeinfo): ... this. Save video modes before
28565 iterating. Skip a video mode, if it is not available, not enough
28566 information is given or it is monochrome. Show the memory
28567 model. Leave the interpretation of MODEVAR to grub_strtoul
28568 completely.
28569 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
28570 (GRUB_MOD_FINI): Likewise.
28571
28572 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
28573 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
28574 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
28575 duplicated grub_env_get. Leave the interpretation of MODEVAR to
28576 grub_strtoul completely.
28577 (real2pm): Removed.
28578 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
28579 (GRUB_MOD_FINI): Likewise.
28580
28581 * normal/misc.c: Include grub/mm.h.
28582
28583 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
28584 vbe_list_modes with vbetest.mod and vbeinfo.mod.
28585 (vbe_list_modes_mod_SOURCES): Removed.
28586 (vbe_list_modes_mod_CFLAGS): Likewise.
28587 (vbe_test_mod_SOURCES): Likewise.
28588 (vbe_test_mod_CFLAGS): Likewise.
28589 (vbeinfo_mod_SOURCES): New variable.
28590 (vbeinfo_mod_CFLAGS): Likewise.
28591 (vbetest_mod_SOURCES): Likewise.
28592 (vbetest_mod_CFLAGS): Likewise.
28593
992ffbbe 285942005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
28595
28596 * normal/misc.c: New file.
28597
28598 * DISTLIST: Added normal/misc.c.
f19dbdb7 28599
992ffbbe 28600 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
28601 DISK to HOOK. Call HOOK with DISK.
28602 * partmap/apple.c (apple_partition_map_iterate): Likewise.
28603 * partmap/pc.c (pc_partition_map_iterate): Likewise.
28604 * partmap/sun.c (sun_partition_map_iterate): Likewise.
28605
28606 * normal/menu_entry.c (struct screen): Added a new member
28607 "completion_shown".
28608 (completion_buffer): New global variable.
28609 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
28610 (store_completion): New function.
28611 (complete): Likewise.
28612 (clear_completions): Likewise.
28613 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
28614 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
28615 a tab, call complete.
28616
28617 * normal/completion.c (disk_dev): Removed.
28618 (print_simple_completion): Likewise.
28619 (print_partition_completion): Likewise.
28620 (print_func): New global variable.
28621 (add_completion): Do not take the arguments WHAT or PRINT any
28622 longer. Added a new argument TYPE. Instead of printing directly,
28623 call PRINT_FUNC if not NULL.
28624 All callers changed.
28625 (complete_device): Use a local variable DEV instead of
28626 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
28627 (grub_normal_do_completion): Take a new argument HOOK. Do not
28628 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
28629 empty string, return NULL instead.
28630 All callers changed.
28631
28632 * normal/cmdline.c (print_completion): New function.
28633
28634 * kern/partition.c (grub_partition_iterate): Add an argument DISK
28635 to HOOK.
28636 All callers changed.
28637
28638 * kern/disk.c (grub_print_partinfo): Removed.
28639
28640 * include/grub/partition.h (struct grub_partition_map): Add a new
28641 argument DISK into HOOK of ITERATE.
28642 (grub_partition_iterate): Add a new argument DISK to HOOK.
28643
28644 * include/grub/normal.h (enum grub_completion_type): New enum.
28645 (grub_completion_type_t): New type.
28646 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
28647 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
28648 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
28649 (GRUB_COMPLETION_TYPE_FILE): Likewise.
28650 (grub_normal_do_completion): Added a new argument HOOK.
28651 (grub_normal_print_device_info): New prototype.
28652
28653 * include/grub/disk.h (grub_print_partinfo): Removed.
28654
28655 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
28656 (normal_mod_SOURCES): Likewise.
28657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28658 (normal_mod_SOURCES): Likewise.
28659
28660 * commands/ls.c (grub_ls_list_disks): Use
28661 grub_normal_print_device_info instead of grub_print_partinfo. Free
28662 PNAME.
28663 (grub_ls_list_files): Use grub_normal_print_device_info instead of
28664 duplicating the code.
28665
0bd41162 286662005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
28667
28668 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 28669 follow GCS more precisely.
28670 * commands/i386/pc/vbe_test.c: Likewise.
28671 * include/grub/i386/pc/vbe.h: Likewise.
28672 * term/i386/pc/vesafb.c: Likewise.
28673 * video/i386/pc/vbe.c: Likewise.
0bd41162 28674
6323696a 286752005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
28676
28677 * DISTLIST: Added term/i386/pc/vesafb.c
28678 DISTLIST: Added video/i386/pc/vbe.c
28679 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
28680 DISTLIST: Added commands/i386/pc/vbe_test.c.
28681 * commands/i386/pc/vbe_list_modes.c: New file.
28682 * commands/i386/pc/vbe_test.c: Likewise.
28683 * term/i386/pc/vesafb.c: Likewise.
28684 * video/i386/pc/vbe.c: Likewise.
28685 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
28686 (grub_vbe_probe) Added prototype.
28687 (grub_vbe_set_video_mode) Likewise.
28688 (grub_vbe_get_video_mode) Likewise.
28689 (grub_vbe_get_video_mode_info) Likewise.
28690 (grub_vbe_set_pixel_rgb) Likewise.
28691 (grub_vbe_set_pixel_index) Likewise.
28692 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
28693 (pkgdata_MODULES): Added vesafb.mod.
28694 (pkgdata_MODULES): Added vbe_list_modes.mod.
28695 (pkgdata_MODULES): Added vbe_test.mod.
28696 (vbe_mod_SOURCES): Added.
28697 (vbe_mod_CFLAGS): Likewise.
28698 (vesafb_mod_SOURCES): Likewise.
28699 (vesafb_mod_CFLAGS): Likewise.
28700 (vbe_list_modes_mod_SOURCES): Likewise.
28701 (vbe_list_modes_mod_CFLAGS): Likewise.
28702 (vbe_test_mod_SOURCES): Likewise.
28703 (vbe_test_mod_CFLAGS): Likewise.
28704
0a74e62f 287052005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
28706
0a74e62f 28707 * normal/command.c (grub_command_execute): If INTERACTIVE is
28708 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
28709 CMDLINE. Disable the pager if INTERACTIVE is true.
28710 All callers are changed.
28711
28712 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
28713 before reading a config file.
28714 * normal/main.c (read_config_file): Even if a command is not
28715 found, register it if it is within an entry.
28716
28717 * util/grub-emu.c: Include sys/types.h and unistd.h.
28718 (options): Added --hold.
28719 (struct arguments): Added a new member "hold".
28720 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
28721 missing.
28722 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
28723 cleared by a debugger, if it is not zero.
28724
28725 * include/grub/normal.h (grub_command_execute): Add an argument
28726 INTERACTIVE.
28727
e51f85ae 287282005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
28729
28730 * DISTLIST: Added include/grub/i386/pc/vbe.h.
28731
e9c6f39b 287322005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
28733
28734 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
28735 program with another one, because the old one didn't detect a bug
28736 in gcc-3.4. Always use regparm 2, because the new test is still
28737 not enough for gcc-4.0. Someone must investigate a simple test
28738 case which detects a bug in gcc-4.0.
28739
8de3495c 287402005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
28741
28742 * DISTLIST: Added normal/completion.c.
28743
28744 * normal/completion.c: New file.
f19dbdb7 28745
8de3495c 28746 * term/i386/pc/console.c (grub_console_getwh): New function.
28747 (grub_console_term): Assign grub_console_getwh to getwh.
28748
28749 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
28750 function is defined in normal/completion.c as
28751 grub_normal_do_completion.
28752 (grub_cmdline_get): Use grub_normal_do_completion instead of
28753 grub_tab_complete.
28754
28755 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
28756 returns non-zero, otherwise return 0.
28757 (grub_partition_iterate): First, probe the partition map. Then,
28758 call ITERATE only for this partition map.
28759
28760 * kern/misc.c (grub_strncmp): Rewritten.
28761
28762 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
28763 returns non-zero. Otherwise return 0.
28764
28765 * include/grub/partition.h (grub_partition_map_iterate): Return
28766 int instead of void.
28767
28768 * include/grub/normal.h (grub_normal_do_completion): New prototype.
28769
28770 * include/grub/misc.h (grub_strncmp): Change the type of N to
28771 grub_size_t.
28772
28773 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
28774 of void.
28775
28776 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 28777 unsigned explicitly before comparing it with I.
8de3495c 28778
28779 * kern/main.c (grub_env_write_root): Add the attribute unused into
28780 VAR.
28781
28782 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
28783 normal/completion.c.
28784 (normal_mod_SOURCES): Likewise.
28785 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28786 (normal_mod_SOURCES): Likewise.
28787
28788 * normal/command.c (grub_iterate_commands): If ITERATE returns
28789 non-zero, return one immediately.
28790
e85e144b 287912005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
28792
28793 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
28794 * kern/i386/pc/startup.S: Updated Global Descriptor table's
28795 descriptions.
28796 (grub_vbe_get_controller_info): New function.
28797 (grub_vbe_get_mode_info): Likewise.
28798 (grub_vbe_set_mode): Likewise.
28799 (grub_vbe_get_mode): Likewise.
28800 (grub_vbe_set_memory_window): Likewise.
28801 (grub_vbe_get_memory_window): Likewise.
28802 (grub_vbe_set_scanline_length): Likewise.
28803 (grub_vbe_get_scanline_length): Likewise.
28804 (grub_vbe_set_display_start): Likewise.
28805 (grub_vbe_get_display_start): Likewise.
28806 (grub_vbe_set_palette_data): Likewise.
28807 * include/grub/i386/pc/vbe.h: New file.
28808
c46153d2 288092005-08-08 Hollis Blanchard <hollis@penguinppc.org>
28810
28811 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
28812 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
28813 * DISTLIST: Likewise.
28814 * kern/ieee1275/of.c: Moved to ...
28815 * kern/ieee1275/ieee1275.c: ... here.
28816
0cb90c45 288172005-08-08 Hollis Blanchard <hollis@penguinppc.org>
28818
28819 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
28820 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
28821 Pass 0 as `end' parameter to grub_strtoul().
28822
a19fb360 288232005-08-08 Hollis Blanchard <hollis@penguinppc.org>
28824
28825 * include/grub/powerpc/ieee1275/console.h: Do not include
28826 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
28827 ifdef.
28828 (grub_console_cur_color): Remove i386-specific prototype.
28829 (grub_console_real_putchar): Likewise.
28830 (grub_console_checkkey): Likewise.
28831 (grub_console_getkey): Likewise.
28832 (grub_console_getxy): Likewise.
28833 (grub_console_gotoxy): Likewise.
28834 (grub_console_cls): Likewise.
28835 (grub_console_setcursor): Likewise.
28836 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
28837 Include <grub/machine/console.h>.
28838 * term/ieee1275/ofconsole.c: Likewise.
28839
4ac9bd04 288402005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
28841
28842 * Makefile.in (LIBLZO): New variable.
28843
28844 * configure.ac: Check for LZO version 2.
28845
28846 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
28847 lzo/lzo1x.h instead of lzo1x.h.
28848
28849 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
28850 of -llzo.
28851
28852 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
28853 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
28854
28855 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
28856 copying the data from PARTITION to P.
28857
f4917dfd 288582005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
28859
28860 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
28861 negative, unload the module.
28862
28863 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
28864 map is "pc_partition_map" but not "pc".
28865 (usage): Fix the description. The options are --boot-image and
28866 --core-image but not --boot-file or --core-file.
28867 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
28868 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
28869 DEFAULT_DIRECTORY.
28870
28871 * util/i386/pc/grub-install.in: Do not specify --boot-file or
28872 --core-file. Specify INSTALL_DEVICE as an argument.
28873
28874 * util/console.c: Include config.h.
28875 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
28876 [HAVE_NCURSES_H]: Include ncurses.h.
28877 [HAVE_CURSES_H]: Include curses.h.
28878 [!A_NORMAL] (A_NORMAL): Defined as zero.
28879 [!A_STANDOUT] (A_STANDOUT): Likewise.
28880
28881 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
28882 -lncurses.
28883 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
28884
28885 * configure.ac: Check for curses libraries and headers.
28886
28887 * Makefile.in (LIBCURSES): New variable.
28888
28889 * genmk.rb (Script::rule): Set the executable bits.
28890
28891 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
28892 name of the PC partition map is "pc_partition_map" but not "pc".
28893
0e143073 288942005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
28895
28896 * util/i386/pc/grub-install.in (grub_probefs): New variable.
28897 (modules): Likewise.
28898 (usage): Added descriptions for --modules and --grub-probefs.
28899 Handle --modules and --grub-probefs. Save the arguments in MODULES
28900 and GRUB_PROBEFS, respectively.
28901 Auto-detect a filesystem module against GRUBDIR. If the result is
28902 empty and modules are not specified explicitly, abort the
28903 installation. Add the result to MODULES.
28904
28905 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
28906 disk/powerpc/ieee1275/ofdisk.c,
28907 include/grub/powerpc/ieee1275/init.h and
28908 term/powerpc/ieee1275/ofconsole.c.
28909 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
28910 term/ieee1275/ofconsole.c.
28911
28912 * include/grub/powerpc/ieee1275/console.h: Resurrected.
28913
28914 * COPYING: Upgraded to the latest version. Only the address of the
28915 FSF office has changed.
f19dbdb7 28916
efd6e6d5 289172005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
28918
28919 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
28920 kern/ieee1275.c with kern/ieee1275/of.c.
28921
28922 * kern/ieee1275.c: Moved to ...
28923 * kern/ieee1275/of.c: ... here.
28924
8ceafda2 289252005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
28926
28927 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 28928 readability.
8ceafda2 28929
28930 * config.guess: Updated to the latest version from gnulib.
28931 * config.sub: Likewise.
28932 * install.sh: Likewise.
28933 * mkinstalldirs: Likewise.
28934
28935 * include/grub/console.h: Removed. This file is arch-specific. Do
28936 not put this in include/grub.
28937
28938 * include/grub/i386/pc/console.h: Resurrected.
28939
28940 * util/console.c: Include grub/machine/console.h instead of
28941 grub/console.h.
28942 * util/grub-emu.c: Likewise.
28943
267f6cd9 289442005-08-04 Marco Gerards <metgerards@student.han.nl>
28945
28946 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
28947 hardcoded value.
f19dbdb7 28948
267f6cd9 28949 From Vincent Pelletier <subdino2004@yahoo.fr>
28950 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
28951 Redefined to use grub_getwh.
28952 (grub_term): New member named getwh.
28953 (grub_getwh): New prototype.
28954 * kern/term.c (grub_getwh): New function.
28955 * term/i386/pc/console.c (grub_console_getwh): New function.
28956 (grub_console_term): New member `getwh'.
28957 * term/i386/pc/vga.c (grub_vga_getwh): New function.
28958 (grub_vga_term): New member `getwh'.
0b5abe02 28959 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 28960 grub_ssize_t.
28961 (grub_ofconsole_getw): New function.
28962 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
28963 (grub_ofconsole_term): New field named getwh and new initial
28964 value.
28965
3be7266d 289662005-08-03 Hollis Blanchard <hollis@penguinppc.org>
28967
28968 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
28969 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
28970 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
28971 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
28972 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
28973 of <grub/machine/ieee1275.h>.
28974 * commands/ieee1275/reboot.c: Likewise.
28975 * boot/powerpc/ieee1275/ieee1275.c: Move ...
28976 * kern/ieee1275.c: ... to here. All users updated. Change all
28977 parameter structs to use new type `grub_ieee1275_cell_t'.
28978 * term/powerpc/ieee1275/ofconsole.c: Move ...
28979 * term/ieee1275/ofconsole.c: ... to here. All users updated.
28980 * disk/powerpc/ieee1275/ofdisk.c: Move ...
28981 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
28982 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
28983 to return int.
28984 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
28985 Remove unused prototypes. All users updated.
28986 * include/grub/powerpc/ieee1275/console.h: Removed.
28987 * include/grub/powerpc/ieee1275/ieee1275.h: Define
28988 `grub_ieee1275_cell_t'.
28989 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
28990 Cast comparisons with -1 to the correct type.
28991 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
28992 type to match `grub_ieee1275_entry_fn'.
28993
8b5f3938 289942005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
28995
28996 * DISTLIST: Added util/i386/pc/grub-probefs.c.
28997
28998 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
28999 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
29000 partmap/sun.c.
29001 (grub_probefs_SOURCES): New variable.
29002
29003 * util/i386/pc/grub-probefs.c: New file.
29004
29005 * util/i386/pc/grub-setup.c (main): Call
29006 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
29007 grub_hfs_init and grub_jfs_init to initialize the system. Call
29008 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
29009 grub_pc_partition_map_fini to finish the system.
29010
ea409713 290112005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
29012
29013 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
29014 function.
29015 (grub_multiboot_load_elf32): Likewise.
29016 (grub_multiboot_is_elf64): Likewise.
29017 (grub_multiboot_load_elf64): Likewise.
29018 (grub_multiboot_load_elf): Likewise.
29019 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
29020 an ELF32 or ELF64 file.
29021 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
29022
29023 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
29024 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
29025 NULL before calling FS->LABEL.
29026 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
29027 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
29028 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
29029 before calling FS->LABEL.
29030
141a288b 290312005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
29032
29033 * util/i386/pc/grub-install.in (datadir): New variable.
29034 (libdir): Removed.
29035 (pkgdatadir): New variable.
29036 (pkglibdir): Removed.
29037
0d5f8a54 290382005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
29039
29040 * DISTLIST: Added util/i386/pc/grub-install.in.
29041
29042 * util/i386/pc/grub-install.in: New file.
29043
29044 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
29045 (grub_install_SOURCES): Likewise.
29046
29047 * genmk.rb: Added support for scripts.
29048 (Script): New class.
29049 (scripts): New variable.
29050
29051 * Makefile.in (install-local): Install sbin_SCRIPTS by
29052 INSTALL_SCRIPT.
29053 (uninstall): Remove sbin_SCRIPTS.
29054
29055 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
29056 device, try to get a GRUB device by
29057 grub_util_biosdisk_get_grub_dev.
29058 Free DEST_DEV.
29059
29060 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
29061 description for --device-map.
29062
5f968e1e 290632005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
29064
29065 Change the semantics of variable hooks. They now return strings
29066 instead of error values.
f19dbdb7 29067
5f968e1e 29068 * util/i386/pc/grub-setup.c: Include grub/env.h.
29069 (setup): Use grub_device_set_root instead of grub_env_set.
29070
29071 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
29072 grub_env_get instead of grub_device_set_root and
29073 grub_device_get_root, respectively.
29074
29075 * kern/main.c (grub_env_write_root): New function.
29076 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
29077 grub_env_set instead of grub_device_set_root.
29078
29079 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
29080 many variables.
29081 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
29082 rather than calling ENV->WRITE_HOOK afterwards.
29083 (grub_env_get): Return the result of ENV->READ_HOOK rather than
29084 passing a pointer of a pointer.
29085 (grub_register_variable_hook): Change the types of "read_hook" and
29086 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
29087 respectively.
29088 Allocate the default empty string on the heap, because this string
29089 may be freed later.
29090
29091 * kern/device.c: Include grub/env.h.
29092 (grub_device_set_root): Removed.
29093 (grub_device_get_root): Likewise.
29094 (grub_device_open): Use grub_env_get instead of
29095 grub_device_get_root.
29096
29097 * include/grub/env.h (grub_env_read_hook_t): New type.
29098 (grub_env_write_hook_t): Likewise.
29099 (grub_env_var): Change the types of "read_hook" and "write_hook"
29100 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
29101 (grub_register_variable_hook): Likewise.
29102
29103 * include/grub/device.h (grub_device_set_root): Removed.
29104 (grub_device_set_root): Likewise.
29105
29106 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
29107 make sure that DIRNAME terminates with '/', so that
29108 grub_fat_find_dir will fail if PATH is not a directory.
29109
29110 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
29111 from DIRNAME.
29112 Use the qualifier auto for print_files and print_files_long.
29113 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
29114 as a regular file.
29115 Put a newline only if there is no error.
29116 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
29117 used.
29118
896f0afd 291192005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
29120
29121 * kern/partition.c (grub_partition_probe): Initialize PART to
29122 NULL. Otherwise, when no partition map is registered, this returns
29123 a garbage.
29124
b28b81b2 291252005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
29126
29127 * partmap/apple.c (apple_partition_map_iterate): Check if POS
29128 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
29129 valid.
29130
5f3607e0 291312005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
29132
29133 * commands/ls.c (grub_ls_list_disks): Print the filesystem
29134 information on each device, if it does not have partitions. Print
29135 "Device" instead of "Disk", because this function is not specific
29136 to disk devices.
29137
29138 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
29139 static to ensure that it is put on the memory rather than a
29140 register.
29141
502c87e8 291422005-07-17 Yoshinori Okuji <okuji@enbug.org>
29143
29144 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
29145 (grub_cat_init): Likewise.
29146 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
29147 (options): Likewise.
29148 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29149 (grub_configfile_init): Likewise.
29150 * font/manager.c (GRUB_MOD_INIT): Likewise.
29151 * commands/help.c (GRUB_MOD_INIT): Likewise.
29152 (grub_help_init): Likewise.
29153 * normal/command.c (grub_command_init): Likewise.
29154 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
29155 * disk/loopback.c (grub_loop_init): Likewise.
29156 (GRUB_MOD_INIT): Likewise.
29157 * commands/ls.c (grub_ls_init): Likewise.
29158 (GRUB_MOD_INIT): Likewise.
29159 (options): Likewise.
29160 * commands/boot.c (grub_boot_init): Likewise.
29161 (GRUB_MOD_INIT): Likewise.
29162 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
29163 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
29164 (GRUB_MOD_INIT): Likewise.
29165 * commands/cmp.c (grub_cmp_init): Likewise.
29166 (GRUB_MOD_INIT): Likewise.
29167
29168 * normal/arg.c: Use <> instead of "" to include header files.
29169 (SHORT_ARG_HELP): New macro.
29170 (SHORT_ARG_USAGE): Likewise.
29171 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
29172 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
29173 descriptions.
29174 (find_short): Check if C is 'h' or 'u' explicitly.
29175 (grub_arg_show_help): Use space characters instead of tabs. Treat
29176 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
29177 are shown with --help and --usage only if they are not used for
29178 the command itself.
29179 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
29180 'h' and 'u'.
29181
29182 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
29183 const into "longarg". Change the type of "shortarg" to int.
29184
f806d18e 291852005-07-17 Yoshinori Okuji <okuji@enbug.org>
29186
29187 * boot/i386/pc/boot.S (boot_drive_check): New label.
29188
29189 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
29190 macro.
29191
29192 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
29193 which do not pass a boot drive correctly. Copied from GRUB Legacy.
29194
e293232b 291952005-07-17 Yoshinori Okuji <okuji@enbug.org>
29196
29197 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
29198 When turning off Gate A20, skip the check and return immediately,
29199 because this is not fatal usually.
29200
ebedfd00 292012005-07-17 Yoshinori Okuji <okuji@enbug.org>
29202
29203 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
29204 be 0x7C00 instead of 0x8000.
29205
29206 * boot/i386/pc/pxeboot.S: Rewritten.
29207
29208 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
29209 EXT_C.
29210 (gate_a20_check_state): Read a byte from 0x108000. Invert the
29211 result.
29212
654fc59f 292132005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
29214
29215 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
29216 robustness. This routine now supports a BIOS call and System
29217 Control Port A to modify the gate A20.
29218
29219 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29220 Increased to 0x440.
29221
09f9923f 292222005-07-12 Hollis Blanchard <hollis@penguinppc.org>
29223
29224 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
29225 device path and resulting ihandle.
29226 (grub_ofdisk_close): dprintf the ihandle being closed.
29227 (grub_ofdisk_read): dprintf function parameters.
29228 * kern/mm.c (grub_mm_init_region): Likewise.
29229 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
29230 (grub_linux_boot): dprintf the Linux entry point, initrd address and
29231 size, and boot arguments.
29232 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
29233 before loading into memory.
29234 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
29235 before loading into memory.
29236
7ef504d8 292372005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
29238
29239 * kern/mm.c: Added much documentation.
29240 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
29241 8, set to 5 instead of 8.
29242
e0f050c2 292432005-07-10 Yoshinori Okuji <okuji@enbug.org>
29244
29245 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
29246
29247 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
29248 (grub_mkdevicemap_SOURCES): New variable.
29249
29250 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
29251 lib/device.c of GRUB Legacy.
29252
7224189a 292532005-07-10 Yoshinori Okuji <okuji@enbug.org>
29254
29255 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
29256 instead of PATH is NULL.
29257
68c864eb 292582005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
29259
29260 * commands/cmp.c (BUFFER_SIZE): New macro.
29261 (grub_cmd_cmp): Close the right file at the right time. Compare
29262 only data just read. Don't report files of different size as
29263 identical. Dynamically allocate buffers. Move variable
29264 declarations at the beginning of function.
29265
e6f3e614 292662005-07-09 Yoshinori Okuji <okuji@enbug.org>
29267
29268 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
29269 reverse.
29270
f8f1559a 292712004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
29272
29273 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
29274 when backspace is pressed at beginning of line.
29275
39c9d41d 292762005-07-03 Yoshinori Okuji <okuji@enbug.org>
29277
29278 * DISTLIST: Added genfslist.sh.
29279
29280 * normal/main.c (fs_module_list): New variable.
29281 (autoload_fs_module): New function.
29282 (read_fs_list): Likewise.
29283 (grub_normal_execute): Call read_fs_list.
29284
29285 * kern/fs.c (grub_fs_autoload_hook): New variable.
29286 (grub_fs_probe): Added support for auto-loading.
29287
29288 * include/grub/normal.h (struct grub_fs_module_list): New struct.
29289 (grub_fs_module_list_t): New type.
29290
29291 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
29292 (grub_fs_autoload_hook): New prototype.
29293
29294 * genfslist.sh: New file.
f19dbdb7 29295
39c9d41d 29296 * genmk.rb: Added a rule to generate a filesystem list.
29297
121c1d83 292982005-06-30 Marco Gerards <metgerards@student.han.nl>
29299
29300 * configure.ac: Fix the test for cross-compiling.
29301
29302 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
29303 define GRUB_UTIL anymore.
29304
29305 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
29306 so this function works on other systems than just big endian.
29307 (load_modules): Likewise.
29308 (add_segments): Likewise.
29309
e75d76e1 293102005-06-23 Hollis Blanchard <hollis@penguinppc.org>
29311
29312 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
29313 contains `l' modifier, get a long from va_arg().
29314
50b5a0a7 293152005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
29316
29317 * kern/mm.c (grub_free): If the next free block which is being
29318 merged is the first free block, set the first block to the block
29319 being freed.
29320 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
29321
89371b20 293222005-05-08 Hollis Blanchard <hollis@penguinppc.org>
29323
29324 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
29325 `grub_ieee1275_chosen'.
29326
168d6e58 293272005-05-08 Hollis Blanchard <hollis@penguinppc.org>
29328
29329 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
29330 (grub_ieee1275_chosen): New variable.
29331 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
29332 `chosen'.
29333 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
29334 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
29335 Rename first argument to `phandle' for consistency.
29336 (grub_ieee1275_get_property_length): Likewise.
29337 (grub_ieee1275_next_property): Likewise. Change type of first argument
29338 to grub_ieee1275_phandle_t.
29339 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
29340 Move export next to declaration.
29341 (grub_ieee1275_chosen): New variable.
29342 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
29343 Correct cosmetic typo.
29344 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
29345 `grub_ieee1275_chosen'.
29346 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
29347 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
29348 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
29349 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
29350 `grub_ieee1275_chosen'.
29351
ca5baa3f 293522005-05-10 Hollis Blanchard <hollis@penguinppc.org>
29353
29354 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
29355 /chosen/bootargs.
29356 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
29357 /chosen/bootargs as "variable=value" pairs.
29358
708b345f 293592005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
29360
29361 * include/grub/misc.h (grub_dprintf): New macro.
29362 (grub_real_dprintf): New prototype.
29363 (grub_strword): Likewise.
29364 (grub_iswordseparator): Likewise.
29365 * kern/misc.c (grub_real_dprintf): New function.
29366 (grub_strword): Likewise.
29367 (grub_iswordseparator): Likewise.
29368
f4c5e67c 293692005-04-30 Hollis Blanchard <hollis@penguinppc.org>
29370
29371 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
29372 (roundup): Remove macro.
29373 (grub_ieee1275_flags): Make static.
29374 (grub_ieee1275_realmode): Remove.
29375 (grub_ieee1275_test_flag): New function.
29376 (grub_ieee1275_set_flag): Likewise.
29377 (find_options): Rename to `grub_ieee1275_find_options'; update
29378 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
29379 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
29380 (cmain): New prototype.
29381 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
29382 `grub_ieee1275_flags' directly.
29383 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
29384 machine/biosdisk.h.
29385 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
29386 Don't include grub/machine/init.h.
29387 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
29388 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
29389 Remove prototype.
29390 (grub_ieee1275_realmode): Likewise.
29391 (grub_ieee1275_flag): New enum.
29392 (grub_ieee1275_test_flag): New prototype.
29393 (grub_ieee1275_set_flag): New prototype.
29394 * include/grub/powerpc/ieee1275/init.h: Remove file.
29395 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
29396 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
29397 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
29398 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
29399 comment.
29400 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
29401 `grub_ieee1275_test_flag'.
29402 (grub_ieee1275_encode_devname): Likewise.
29403
ed16607e 294042005-04-21 Hollis Blanchard <hollis@penguinppc.org>
29405
29406 * include/grub/powerpc/ieee1275/ieee1275.h
29407 (grub_ieee1275_encode_devname): New prototype.
29408 (grub_ieee1275_get_filename): Likewise.
29409 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
29410 function.
29411 (grub_set_prefix): Likewise.
29412 (grub_machine_init): Call grub_set_prefix.
29413 * kern/powerpc/ieee1275/openfw.c: Fix typos.
29414 (grub_parse_type): New enum.
29415 (grub_ieee1275_get_devargs): New function.
29416 (grub_ieee1275_get_devname): Likewise.
29417 (grub_ieee1275_parse_args): Likewise.
29418 (grub_ieee1275_get_filename): Likewise.
29419 (grub_ieee1275_encode_devname): Likewise.
29420
be369920 294212005-03-30 Marco Gerards <metgerards@student.han.nl>
29422
29423 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
29424 `grub_loader_unset'.
29425
a5ce3a4a 294262005-03-26 Hollis Blanchard <hollis@penguinppc.org>
29427
29428 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
29429 instead of grub_ieee1275_interpret.
29430 (grub_halt_init): New function.
29431 (grub_halt_fini): Likewise.
29432 (GRUB_MOD_INIT): Correct message grammar.
29433 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
29434 instead of grub_ieee1275_interpret.
29435 (grub_reboot_init): New function.
29436 (grub_reboot_fini): Likewise.
29437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
29438 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
29439 util/i386/pc/misc.c with commands/ieee1275/halt.c,
29440 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
29441 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
29442 function.
29443 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
29444 Add prototype.
29445 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
29446 prototype.
29447 (grub_halt): Likewise.
29448 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
29449 (cmain): Remove __attribute__((unused)).
29450 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
29451 (grub_heap_len): Likewise.
29452 (grub_machine_fini): New function.
29453 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
29454 (grub_halt): Likewise.
29455 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
29456 function.
29457 * util/powerpc/ieee1275/misc.c: New file.
29458
0058f771 294592005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
29460
29461 * DISTLIST: New file.
29462 * gendistlist.sh: Likewise.
f19dbdb7 29463
0058f771 29464 * Makefile.in (COMMON_DISTFILES): Removed.
29465 (BOOT_DISTFILES): Likewise.
29466 (CONF_DISTFILES): Likewise.
29467 (DISK_DISTFILES): Likewise.
29468 (FS_DISTFILES): Likewise.
29469 (INCLUDE_DISTFILES): Likewise.
29470 (KERN_DISTFILES): Likewise.
29471 (LOADER_DISTFILES): Likewise.
29472 (TERM_DISTFILES): Likewise.
29473 (UTIL_DISTFILES): Likewise.
29474 (DISTFILES): Likewise.
29475 (uninstall): Uninstall files in $(pkgdata_DATA).
29476 (DISTLIST): New target.
29477 (distdir): Use the contents of the file DISTLIST to get a list of
29478 distributed files.
29479
46b3b8a5 294802005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
29481
29482 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
29483 descriptor. This is ported from GRUB Legacy.
29484
29485 * gencmdlist.sh: Added an extra semicolon to make it work with
29486 old sed versions. Reported by Robert Bihlmeyer
29487 <robbe@orcus.priv.at>.
29488
5822ff87 294892005-03-08 Yoshinori Okuji <okuji@enbug.org>
29490
29491 Automatic loading of commands is supported.
f19dbdb7 29492
5822ff87 29493 * normal/main.c (read_command_list): New function.
29494 (grub_normal_execute): Call read_command_list.
29495
29496 * normal/command.c (grub_register_command): Return zero or CMD.
29497 Allocate CMD->NAME from the heap.
29498 Initialize CMD->MODULE_NAME to zero.
29499 Find the same name as well. If the same command is found and it is
29500 a dummy command, overwrite members. If it is not a dummy command,
29501 return zero.
29502 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
29503 (grub_command_find): If a dummy command is found, load a module
29504 and retry to find a command only once.
29505
29506 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
29507 make sure that each command is loaded.
29508
29509 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
29510 macro.
29511 (struct grub_command): Remove const from the member `name'.
29512 Add a new member `module_name'.
29513 (grub_register_command): Return grub_command_t.
29514
29515 * commands/help.c (grub_cmd_help): Call grub_command_find to make
29516 sure that each command is loaded.
29517
29518 * genmk.rb (PModule::rule): Specify a module name without the
29519 suffix ".mod" to gencmdlist.sh.
29520
7b1f4b57 295212005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
29522
29523 * gencmdlist.sh: New file.
f19dbdb7 29524
7b1f4b57 29525 * genmk.rb (PModule::rule): Generate a rule for a command list.
29526 Clean command.lst.
29527 Generate command.lst from $(COMMANDFILES).
29528
29529 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
29530 (DATA): Added $(pkgdata_DATA).
29531 (install-local): Install files in $(pkgdata_DATA).
29532
062aaf39 295332005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
29534
29535 * term/i386/pc/vga.c (debug_command): Removed.
29536 (GRUB_MOD_INIT): Do not register the command "debug".
29537
29538 From Hollis Blanchard:
29539 * commands/configfile.c: New file.
29540 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
29541 commands/configfile.c.
29542 (pkgdata_MODULES): Added configfile.mod.
29543 (configfile_mod_SOURCES): New variable.
29544 (configfile_mod_CFLAGS): Likewise.
29545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
29546 commands/configfile.c.
29547 (pkgdata_MODULES): Added configfile.mod.
29548 (configfile_mod_SOURCES): New variable.
29549 (configfile_mod_CFLAGS): Likewise.
29550 * util/grub-emu.c (main): Call grub_configfile_init and
29551 grub_configfile_fini.
29552 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
29553 prototype.
29554 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 29555
cee01aa6 295562005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
29557
29558 * normal/arg.c (grub_arg_show_help): Do not show the bug report
29559 address.
29560
29561 * commands/help.c (grub_cmd_help): Do not print newlines after
29562 the last command in print_command_help.
29563
93f3a1d8 295642005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
29565
29566 * commands/default.h: New file.
29567 * commands/timeout.h: Likewise.
29568 * normal/context.c: Likewise.
f19dbdb7 29569
93f3a1d8 29570 * util/misc.c: Do not include sys/times.h.
29571 Include sys/time.h and grub/machine/time.h.
29572 (grub_get_rtc): Rewritten with gettimeofday.
29573
29574 * util/grub-emu.c (main): Call grub_default_init and
29575 grub_timeout_init before grub_normal_init, and call
29576 grub_timeout_fini and grub_default_fini after grub_main.
29577
29578 * util/console.c (grub_ncurses_checkkey): Return the read
29579 character or -1.
29580
29581 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
29582 timeouts.
29583
29584 * normal/main.c (read_config_file): Push MENU. If this fails,
29585 print an error and wait for a user input.
29586 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
29587 If a menu is empty or an error occurs, pop MENU.
29588 (grub_normal_execute): Pop and free MENU after grub_menu_run
29589 returns.
29590
29591 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
29592
29593 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
29594 include time.h.
29595 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
29596 without GRUB_UTIL.
29597 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
29598 time.h.
29599 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
29600 without GRUB_UTIL.
29601
29602 * include/grub/normal.h (struct grub_menu_list): New struct.
29603 (grub_menu_list_t): New type.
29604 (struct grub_context): New struct.
29605 (grub_context_t): New type.
29606 (grub_register_command): Got rid of EXPORT_FUNC.
29607 (grub_unregister_command): Likewise.
29608 (grub_context_get): New prototype.
29609 (grub_context_get_current_menu): Likewise.
29610 (grub_context_push_menu): Likewise.
29611 (grub_context_pop_menu): Likewise.
29612 [GRUB_UTIL] (grub_default_init): Likewise.
29613 [GRUB_UTIL] (grub_default_fini): Likewise.
29614 [GRUB_UTIL] (grub_timeout_init): Likewise.
29615 [GRUB_UTIL] (grub_timeout_fini): Likewise.
29616
29617 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
29618 commands/timeout.c and normal/context.c.
29619 (pkgdata_MODULES): Added default.mod and timeout.mod.
29620 (normal_mod_SOURCES): Added normal/context.c.
29621 (default_mod_SOURCES): New variable.
29622 (default_mod_CFLAGS): Likewise.
29623 (timeout_mod_SOURCES): Likewise.
29624 (timeout_mod_CFLAGS): Likewise.
29625 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
29626 conf/i386-pc.rmk.
29627 (pkgdata_MODULES): Added default.mod and timeout.mod.
29628 (normal_mod_SOURCES): Added normal/context.c.
29629 (default_mod_SOURCES): New variable.
29630 (default_mod_CFLAGS): Likewise.
29631 (timeout_mod_SOURCES): Likewise.
29632 (timeout_mod_CFLAGS): Likewise.
29633
29634 * Makefile.in (all-local): Added $(MKFILES).
29635
4ed2e1dd 296362005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
29637
29638 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
29639 (grub_emu_SOURCES): Likewise.
29640 (pkgdata_MODULES): Add `sun.mod'.
29641 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
29642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29643 `partmap/sun.c'.
29644 (pkgdata_MODULES): Add `sun.mod'.
29645 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
29646 * include/grub/partition.h (grub_sun_partition_map_init): New
29647 prototype.
29648 (grub_sun_partition_map_fini): Likewise.
29649 * partmap/sun.c: New file.
29650 * util/grub-emu.c (main): Initialize and de-initialize the sun
29651 partitionmap support.
29652
4d4e372e 296532005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
29654
29655 This implements an Emacs-like menu entry editor.
f19dbdb7 29656
4d4e372e 29657 * normal/menu_entry.c: New file.
f19dbdb7 29658
4d4e372e 29659 * util/console.c (grub_ncurses_putchar): Translate some Unicode
29660 characters to ASCII.
29661 (saved_char): New variable.
29662 (grub_ncurses_checkkey): Rewritten completely.
29663 (grub_ncurses_getkey): Likewise.
29664 (grub_ncurses_init): Call raw instead of cbreak.
29665
29666 * normal/menu.c (print_entry): Do not put a space.
29667 (init_page): Renamed to ...
29668 (grub_menu_init_page): ... this. All callers changed.
29669 (edit_menu_entry): Removed.
29670 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
29671
29672 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
29673
29674 * kern/misc.c (grub_vprintf): Call grub_refresh.
29675
29676 * normal/menu.c (DISP_LEFT): Renamed to ...
29677 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
29678 * normal/menu.c (DISP_UP): Renamed to ...
29679 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
29680 * normal/menu.c (DISP_RIGHT): Renamed to ...
29681 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
29682 * normal/menu.c (DISP_DOWN): Renamed to ...
29683 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
29684 * normal/menu.c (DISP_HLINE): Renamed to ...
29685 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
29686 * normal/menu.c (DISP_VLINE): Renamed to ...
29687 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
29688 * normal/menu.c (DISP_UL): Renamed to ...
29689 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
29690 * normal/menu.c (DISP_UR): Renamed to ...
29691 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
29692 * normal/menu.c (DISP_LL): Renamed to ...
29693 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
29694 * normal/menu.c (DISP_LR): Renamed to ...
29695 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
29696 * normal/menu.c (TERM_WIDTH): Renamed to ...
29697 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
29698 * normal/menu.c (TERM_HEIGHT): Renamed to ...
29699 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
29700 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
29701 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
29702 * normal/menu.c (TERM_MARGIN): Renamed to ...
29703 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
29704 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
29705 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
29706 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
29707 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
29708 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
29709 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
29710 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
29711 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
29712 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
29713 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
29714 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
29715 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
29716 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
29717 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
29718 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
29719 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
29720 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
29721 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
29722 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
29723 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
29724 All callers changed.
29725
29726 * include/grub/normal.h: New prototype.
29727
29728 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
29729 normal/menu_entry.c.
29730 (normal_mod_SOURCES): Likewise.
29731 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29732 (normal_mod_SOURCES): Likewise.
29733
e6b92c8a 297342005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
29735
29736 * include/grub/normal.h (grub_halt_init): New prototype.
29737 (grub_halt_fini): Likewise.
29738 (grub_reboot_init): Likewise.
29739 (grub_reboot_fini): Likewise.
29740
29741 * util/grub-emu.c: Include signal.h.
29742 (main_env): New global variable.
29743 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
29744 catch C-c.
29745 (grub_machine_fini): New function.
29746 (main): Call grub_halt_init and grub_reboot_init before
29747 grub_main, and grub_reboot_fini and grub_halt_fini after it.
29748 Call setjmp with MAIN_ENV to go back afterwards.
29749 Call grub_machine_fini right before return.
29750
29751 * include/grub/util/misc.h: Include setjmp.h.
29752 (main_env): New prototype.
29753
29754 * include/grub/kernel.h (grub_machine_fini): New prototype.
29755 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
29756 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
29757
29758 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
29759 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
29760 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 29761
e6b92c8a 29762 * util/i386/pc/misc.c: New file.
f19dbdb7 29763
e6b92c8a 29764 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
29765 util/i386/pc/misc.c, commands/i386/pc/halt.c and
29766 commands/i386/pc/reboot.c.
29767
c642636f 297682005-02-14 Guillem Jover <guillem@hadrons.org>
29769
29770 * include/grub/dl.h (grub_dl_check_header): New prototype.
29771 (grub_arch_dl_check_header): Change return type to grub_err_t,
29772 remove size parameter and export function. Update all callers.
29773 * kern/dl.c (grub_dl_check_header): New function.
29774 (grub_dl_load_core): Use `grub_dl_check_header' instead of
29775 `grub_arch_dl_check_header'. Check ELF type. Check if sections
29776 are inside the core.
29777 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
29778 independent ELF header checks.
29779 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
29780 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
29781 `grub_dl_check_header' instead of explicit checks. Check for the
29782 ELF type.
29783 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
29784 `grub_dl_check_header' instead of explicit checks. Remove arch
29785 specific ELF header checks.
29786
e6b92c8a 29787 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
29788 argument SIZE.
29789
5eabe94b 297902005-02-13 Hollis Blanchard <hollis@penguinppc.org>
29791
29792 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
29793 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
29794
1b14a681 297952005-02-12 Hollis Blanchard <hollis@penguinppc.org>
29796
29797 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 29798 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 29799 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 29800 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 29801 * partmap/amiga.c (amiga_partition_map_iterate): Return
29802 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
29803 * partmap/apple.c (apple_partition_map_iterate): Likewise.
29804
aca108aa 298052005-02-01 Guillem Jover <guillem@hadrons.org>
29806
29807 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
29808 help info.
29809
c9f9c556 298102005-01-31 Marco Gerards <metgerards@student.han.nl>
29811
29812 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
29813 Removed prototype.
29814 (grub_rescue_cmd_linux): New prototype.
29815 (grub_rescue_cmd_initrd): Likewise.
29816 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
29817 `bi_rec'.
29818 (grub_linux_release_mem): Release the memory for the initrd.
29819 (grub_load_linux): Renamed from this...
29820 (grub_rescue_cmd_linux): ...To this. Changed all callers.
29821 Changed `entry' not to be static. Loop over memory regions to
29822 find another one when the default fails.
29823 (grub_rescue_cmd_initrd): New function.
29824 (grub_linux_init): Remove function.
29825 (grub_linux_fini): Likewise.
29826 (GRUB_MOD_INIT): Register `initrd'.
29827 (GRUB_MOD_FINI): Unregister `initrd'.
29828 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
29829 Function removed.
29830 (grub_linux_normal_fini): Likewise.
29831 (GRUB_MOD_INIT): Register `initrd'.
29832 (GRUB_MOD_FINI): Unregister `initrd'.
29833
990cf3aa 298342005-01-31 Marco Gerards <metgerards@student.han.nl>
29835
29836 * commands/help.c: New file.
29837 * normal/arg.c (show_help): Renamed to...
29838 (grub_arg_show_help): ... this.
29839 * commands/i386/pc/halt.c: New file.
29840 * commands/i386/pc/reboot.c: Likewise.
29841 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
29842 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
29843 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
29844 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
29845 variables.
29846 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29847 `commands/help.c'.
29848 (pkgdata_MODULES): Add `help.mod'.
29849 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
29850 * grub/i386/pc/init.h (grub_reboot): New prototype.
29851 (grub_halt): Likewise.
29852 * include/grub/normal.h (grub_arg_show_help): New prototype.
29853 (grub_help_init): Likewise.
29854 (grub_help_fini): Likewise.
29855 * util/grub-emu.c (main): Initialize and deinitialize the help
29856 command.
29857
29858 * normal/cmdline.c (grub_cmdline_get): Doc fix.
29859
29860 * normal/command.c (grub_command_init): Fixed the description of
29861 the `set' and `unset' commands.
29862
298632005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 29864
29865 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
29866 function.
29867 * commands/ieee1275/halt.c: New file.
29868 * commands/ieee1275/reboot.c: Likewise.
29869 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
29870 `__attribute__ ((unused))'. Some GCS related fixed.
29871 (grub_suspend_init) [GRUB_UTIL]: Function removed.
29872 (grub_suspend_fini): Likewise.
29873 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
29874 and `halt.mod'.
29875 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
29876 (halt_mod_CFLAGS): New variables.
29877 * include/grub/powerpc/ieee1275/ieee1275.h
29878 (grub_ieee1275_interpret): New prototype.
29879
1ab09cc7 298802005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
29881
29882 * include/grub/misc.h (memmove): New prototype.
29883 (memcpy): Likewise.
29884
8b8cbdb2 298852005-01-22 Hollis Blanchard <hollis@penguinppc.org>
29886
29887 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
29888 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
29889
e3741a27 298902005-01-22 Marco Gerards <metgerards@student.han.nl>
29891
29892 * kern/misc.c (grub_strndup): Function rewritten.
29893
776bd780 298942005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
29895
29896 * normal/menu.c (TERM_WIDTH): Macro redefined.
29897 (TERM_TOP_BORDER_Y): Likewise.
29898 (draw_border): Replaced while-loop by a for-loop. Make the number
29899 of lines consistent with the number of lines displayed in
29900 print_entries. Added a margin below the rectangle.
29901 (print_entry): Make the entry fit in the rectangle.
29902 (print_entries): Display the scroll arrows next to the right
29903 border.
29904
78026bce 299052005-01-21 Marco Gerards <metgerards@student.han.nl>
29906
29907 * fs/minix.c (grub_minix_find_file): Reserve more space for
29908 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
29909 `grub_strncpy' to copy `path' into it.
29910
67bbaf0f 299112005-01-21 Marco Gerards <metgerards@student.han.nl>
29912
29913 Add the loopback device, a device via which files can be accessed
29914 as devices.
f19dbdb7 29915
67bbaf0f 29916 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
29917 (pkgdata_MODULES): Add loopback.mod.
29918 (loopback_mod_SOURCES): New variable.
29919 (loopback_mod_CFLAGS): Likewise.
29920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29921 `disk/loopback.c'.
29922 (pkgdata_MODULES): Add loopback.mod.
29923 (loopback_mod_SOURCES): New variable.
29924 (loopback_mod_CFLAGS): Likewise.
29925 * disk/loopback.c: new file.
29926 * include/grub/normal.h (grub_loop_init): New prototype.
29927 (grub_loop_fini): New prototype.
29928 * util/grub-emu.c (main): Initialize and de-initialize loopback
29929 support.
29930 * include/grub/disk.h (grub_disk_dev_id): Add
29931 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
29932
6f1c18bd 299332005-01-20 Hollis Blanchard <hollis@penguinppc.org>
29934
29935 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
29936 function.
29937 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
29938 (suspend_mod_SOURCES): New variable.
29939 (suspend_mod_CFLAGS): Likewise.
29940 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
29941 New prototype.
29942 * commands/ieee1275/suspend.c: New file.
29943
b38551da 299442005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29945
29946 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 29947 ((unused))' to `__attribute__ ((used))'.
b38551da 29948 (GRUB_MOD_FINI): Likewise.
29949 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
29950 * genmk.rb (PModule): Assign space to common symbols when linking
29951 modules.
29952
777aff39 299532005-01-20 Marco Gerards <metgerards@student.han.nl>
29954
29955 * include/grub/mm.h (grub_mm_init_region): Change the type of the
29956 `unsigned' arguments to `grub_size_t'.
29957 (grub_malloc): Likewise.
29958 (grub_realloc): Likewise.
29959 (grub_memalign): Likewise.
29960 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
29961 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
29962 * util/misc.c (grub_malloc): Likewise.
29963 (grub_realloc): Likewise.
29964 * kern/mm.c (get_header_from_pointer): Change the casts to
29965 `unsigned' into a cast to `grub_size_t'.
29966
29967 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
29968 point to `currnode' when `currnode' is changed.
29969
29970 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
29971 Schottelius <nico-linux@schottelius.org>.
29972
d0ff18e1 299732005-01-09 Hollis Blanchard <hollis@penguinppc.org>
29974
29975 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
29976 (note_path): Remove variable.
29977 (GRUB_IEEE1275_NOTE_NAME): New macro.
29978 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
29979 (grub_ieee1275_note_hdr): New structure.
29980 (grub_ieee1275_note_desc): Likewise.
29981 (grub_ieee1275_note): Likewise.
29982 (load_note): Remove `dir' argument. All callers updated. Remove
29983 `note_img' and `path'. Do not load a file from `note_path'.
29984 Initialize a struct grub_ieee1275_note and write that to `out'.
29985 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
29986
4ca7004c 299872005-01-05 Marco Gerards <metgerards@student.han.nl>
29988
29989 * util/misc.c (grub_util_read_image): Revert last change. It
29990 called `grub_util_read_at', which seeks from the beginning of the
29991 file.
29992
0b412211 299932005-01-04 Hollis Blanchard <hollis@penguinppc.org>
29994
29995 * TODO: Add note about endianness in grub-mkimage.
29996 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
29997 section.
29998 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
29999 (grub_mkimage_SOURCES): New target.
30000 * include/grub/kernel.h (grub_start_addr): Remove variable.
30001 (grub_end_addr): Likewise.
30002 (grub_total_module_size): Likewise.
30003 (grub_kernel_image_size): Likewise.
30004 (GRUB_MODULE_MAGIC): New constant.
30005 (grub_module_info): New structure.
30006 (grub_arch_modules_addr): New prototype.
30007 (grub_get_end_addr): Remove prototype.
30008 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
30009 * include/grub/powerpc/ieee1275/kernel.h: New file.
30010 * include/grub/util/misc.h (grub_util_get_fp_size): New
30011 prototype.
30012 (grub_util_read_at): Likewise.
30013 (grub_util_write_image_at): Likewise.
30014 * kern/main.c (grub_get_end_addr): Remove function.
30015 (grub_load_modules): Call grub_arch_modules_addr instead of using
30016 grub_end_addr. Look for a grub_module_info struct in memory. Use
30017 the grub_module_info fields instead of calling grub_get_end_addr
30018 as loop conditions. Move grub_add_unused_region code here.
30019 (grub_add_unused_region): Remove function.
30020 * kern/i386/pc/init.c: Include grub/cache.h.
30021 (grub_machine_init): Remove call to grub_get_end_addr. Remove
30022 one call to add_mem_region.
30023 (grub_arch_modules_addr): New function.
30024 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
30025 (grub_total_module_size): Likewise.
30026 Include grub/machine/kernel.h.
30027 (grub_arch_modules_addr): New function.
30028 * util/grub-emu.c (grub_end_addr): Remove variable.
30029 (grub_total_module_size): Likewise.
30030 (grub_arch_modules_addr): New function.
30031 * util/misc.c: Include unistd.h.
30032 (grub_util_get_fp_size): New function.
30033 (grub_util_read_at): Likewise.
30034 (grub_util_write_image_at): Likewise.
30035 (grub_util_read_image): Call grub_util_read_at.
30036 (grub_util_write_image): Call grub_util_write_image_at.
30037 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
30038 additional memory in kernel_img for a struct grub_module_info.
30039 Fill in that grub_module_info.
30040 * util/powerpc/ieee1275/grub-mkimage.c: New file.
30041
458786f8 300422005-01-03 Hollis Blanchard <hollis@penguinppc.org>
30043
30044 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
30045 New function.
30046 * include/grub/powerpc/ieee1275/ieee1275.h
30047 (grub_ieee1275_milliseconds): New prototype.
30048 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
30049 Change to 1000.
30050 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
30051 grub_ieee1275_milliseconds.
30052
ac507d1b 300532005-01-03 Hollis Blanchard <hollis@penguinppc.org>
30054
30055 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
30056 variable.
30057 (find_options): New function.
30058 (cmain): Call find_options.
30059 * include/grub/powerpc/ieee1275/ieee1275.h
30060 (grub_ieee1275_realmode): New extern variable.
30061 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
30062 grub_map if grub_ieee1275_realmode is false.
30063
6b8fd1c4 300642004-12-29 Marco Gerards <metgerards@student.han.nl>
30065
30066 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
30067 lines are inserted and make it work like readline. Reported by
30068 Vincent Pelletier <subdino2004@yahoo.fr>.
30069
8514a1e0 300702004-12-28 Marco Gerards <metgerards@student.han.nl>
30071
30072 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
30073
30074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
30075 `kern/powerpc/cache.S'.
30076
924b6140 300772004-12-27 Marco Gerards <metgerards@student.han.nl>
30078
30079 * genmk.rb: Handle the `Program' class in the main loop. Written
30080 by Johan Rydberg <jrydberg@gnu.org>.
30081 (Program): New class.
30082 (programs): New variable.
30083 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
30084 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
30085 instead of "grub/kernel.h". Include <grub/machine/init.h>.
30086 (help_arch): Function removed.
30087 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
30088 `powerpc/libgcc.h' and `loader.h'.
30089 (pkgdata_PROGRAMS): New variable.
30090 (sbin_UTILITIES): Variable removed.
30091 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
30092 (grubof_SOURCES): Variable re-defined so it only includes the
30093 core functionality.
30094 (grubof_CFLAGS): Remove `-DGRUBOF'.
30095 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
30096 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
30097 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
30098 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
30099 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
30100 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
30101 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
30102 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
30103 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
30104 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
30105 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
30106 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
30107 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
30108 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
30109 (pc_mod_CFLAGS): New variables.
30110 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
30111 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
30112 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
30113 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
30114 Moved from here...
30115 * include/grub/i386/pc/init.h (grub_os_area_addr)
30116 (rub_os_area_size): ... to here.
30117 * include/grub/powerpc/ieee1275/ieee1275.h
30118 (grub_ieee1275_entry_fn): Export symbol.
30119 * include/grub/powerpc/ieee1275/init.h: New file.
30120 * include/grub/powerpc/libgcc.h: Likewise.
30121 * include/grub/cache.h: Likewise.
30122 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
30123 <hollis@penguinppc.org>.
30124 * kern/dl.c: Include <grub/cache.h>.
30125 (grub_dl_flush_cache): New function.
30126 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
30127 for this module.
30128 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
30129 (grub_console_init): Removed prototypes.
30130 (grub_machine_init): Don't initialize the modules anymore.
30131 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
30132 static.
30133 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
30134 Macro undef removed.
30135 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
30136 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
30137 relocation `R_PPC_REL32'. Return an error when the relocation is
30138 unknown.
30139 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
30140 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
30141 * util/misc.c (grub_arch_sync_caches): Likewise.
30142
e4b47e0c 301432004-12-19 Marco Gerards <metgerards@student.han.nl>
30144
30145 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
30146 `symlist.c', add `grubof_symlist.c'.
30147 (symlist.c): Variable removed.
30148 (grubof_HEADERS): Variable added.
30149 (grubof_symlist.c): New target.
30150 (kernel_syms.lst): Use `grubof_HEADERS' instead of
30151 `kernel_img_HEADERS'.
30152 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
30153 * kern/powerpc/dl.c: New file.
30154 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
30155 Function removed.
30156 (grub_arch_dl_relocate_symbols): Likewise.
30157 (grub_register_exported_symbols): Likewise.
30158
4ceb3636 301592004-12-13 Marco Gerards <metgerards@student.han.nl>
30160
30161 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
30162 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
30163 to fail instead. Reported by Vincent Pelletier
30164 <subdino2004@yahoo.fr>.
30165
30166 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
30167 it is not allocated. Reported by Vincent Pelletier
30168 <subdino2004@yahoo.fr>.
30169
30170 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
30171 output so the output looks better.
f19dbdb7 30172
3f1578fe 301732004-12-04 Marco Gerards <metgerards@student.han.nl>
30174
30175 Modulize the partition map support and add support for the amiga
30176 partition map.
f19dbdb7 30177
3f1578fe 30178 * commands/ls.c: Include <grub/partition.h> instead of
30179 <grub/machine/partition.h>.
30180 * kern/disk.c: Likewise.
30181 * kern/rescue.c: Likewise.
30182 * loader/i386/pc/chainloader.c: Likewise.
30183 * normal/cmdline.c: Likewise.
30184 * kern/powerpc/ieee1275/init.c: Likewise.
30185 (grub_machine_init): Call `grub_pc_partition_map_init',
30186 `grub_amiga_partition_map_init' and
30187 `grub_apple_partition_map_init'.
30188 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
30189 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
30190 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
30191 `partition.h' and `pc_partition.h'.
30192 (grub_setup_SOURCES): Remove
30193 `disk/i386/pc/partition.c'. Add `kern/partition.c',
30194 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
30195 (grub_emu_SOURCES): Likewise.
30196 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
30197 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
30198 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
30199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
30200 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
30201 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
30202 (grubof_SOURCES): Likewise.
30203 * disk/i386/pc/partition.c: File removed.
30204 * disk/powerpc/ieee1275/partition.c: Likewise.
30205 * include/grub/powerpc/ieee1275/partition.h: Likewise.
30206 * include/grub/i386/pc/partition.h: Likewise.
30207 * kern/partition.c: New file.
30208 * partmap/amiga.c: Likewise.
30209 * partmap/apple.c: Likewise.
30210 * partmap/pc.c: Likewise.
30211 * include/grub/partition.h: Likewise..
30212 * include/grub/pc_partition.h: Likewise.
30213 * util/grub-emu.c: Include <grub/partition.h> instead of
30214 <grub/machine/partition.h>.
30215 (main): Call `grub_pc_partition_map_init',
30216 `grub_amiga_partition_map_init' and
30217 `grub_apple_partition_map_init' and deinitialize afterwards.
30218 * util/i386/pc/biosdisk.c: Include `#include
30219 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
30220 `<grub/machine/partition.h>'.
30221 * util/i386/pc/grub-setup.c: Likewise.
30222 * util/i386/pc/biosdisk.c: Likewise.
30223 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
30224 partition information in case of a PC partition.
30225 * util/i386/pc/grub-setup.c: Include `#include
30226 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
30227 `<grub/machine/partition.h>'.
30228 (setup): Only access the PC specific partition information in case
30229 of a PC partition.
30230
0ef4ced9 302312004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 30232
0ef4ced9 30233 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
30234 (grub_longjmp): Likewise.
30235 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
30236 20.
30237 * normal/powerpc/setjmp.S: New file.
30238 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
30239 `normal/powerpc/setjmp.S'.
30240 (grubof_CFLAGS): Add `-DGRUBOF'.
30241 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
30242 [GRUB_UTIL && !GRUBOF].
f19dbdb7 30243
19950e29 302442004-11-16 Marco Gerards <metgerards@student.han.nl>
30245
30246 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
30247 property named `name'. Correctly handle the error returned by
30248 `grub_ieee1275_finddevice' if a device can not be opened.
30249
a2fea427 302502004-11-02 Hollis Blanchard <hollis@penguinppc.org>
30251
30252 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
30253 `actual' for negativity.
30254 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
30255 kern/fshelp.c.
30256
41ea0ea3 302572004-11-01 Marco Gerards <metgerards@student.han.nl>
30258
30259 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
30260 (PAGE_OFFSET): New macro.
30261 (CRTC_ADDR_PORT): Likewise.
30262 (CRTC_DATA_PORT): Likewise.
30263 (START_ADDR_HIGH_REGISTER): Likewise.
30264 (START_ADDR_LOW_REGISTER): Likewise.
30265 (GRAPHICS_ADDR_PORT): Likewise.
30266 (GRAPHICS_DATA_PORT): Likewise.
30267 (READ_MAP_REGISTER): Likewise.
30268 (INPUT_STATUS1_REGISTER): Likewise.
30269 (INPUT_STATUS1_VERTR_BIT): Likewise.
30270 (page): New variable.
30271 (wait_vretrace): New function.
30272 (set_read_map): Likewise.
30273 (set_start_address): Likewise.
30274 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
30275 the right page.
30276 (check_vga_mem): Take the page into account.
30277 (write_char): Likewise.
30278 (write_cursor): Likewise.
30279 (scroll_up): Likewise. Copy the page to the page that is not
30280 shown and switch between both pages.
30281 (grub_vga_putchar): Fix off by one error.
30282 (grub_vga_cls): Wait for the vertical retrace. Take the page into
30283 account.
30284
ad0bd20b 302852004-11-01 Marco Gerards <metgerards@student.han.nl>
30286
30287 Add support for iso9660 (including rockridge).
f19dbdb7 30288
ad0bd20b 30289 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
30290 (iso9660_mod_SOURCES): New variable.
30291 (iso9660_mod_CFLAGS): Likewise.
30292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
30293 * include/grub/fs.h (grub_iso9660_init): New prototype.
30294 * util/grub-emu.c (main): Call `grub_iso9660_init'.
30295 * fs/iso9660.c: New file.
30296
30297 * include/grub/misc.h (grub_strncat): New prototype.
30298 * kern/misc.c (grub_strncat): New function.
f19dbdb7 30299
ad0bd20b 30300 * fs/hfs.c (grub_hfs_mount): Translate the error
30301 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
30302 * fs/jfs.c (grub_jfs_mount): Likewise.
30303 * fs/ufs.c (grub_ufs_mount): Likewise.
30304
a5477a59 303052004-10-28 Hollis Blanchard <hollis@penguinppc.org>
30306
30307 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
30308 which initialized BAT registers.
30309 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
30310 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
30311 Move from here...
30312 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
30313 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
30314 ... to here.
30315 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
30316 (grub_mapclaim): Likewise.
30317 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
30318 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
30319 hand.
30320
9304c1f8 303212004-10-19 Hollis Blanchard <hollis@penguinppc.org>
30322
30323 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
30324 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
30325 -ffreestanding and -msoft-float.
30326
86f4ae25 303272004-10-15 Hollis Blanchard <hollis@penguinppc.org>
30328
30329 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
30330 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
30331 set in grub_ieee1275_flags.
30332
38912228 303332004-10-14 Hollis Blanchard <hollis@penguinppc.org>
30334
30335 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
30336 prototype.
30337 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
30338 grub_console_init first.
30339 Change the memory range used for grub_ieee1275_claim and
30340 grub_mm_init_region.
30341 Print an error message if the claim fails.
30342 Include <grub/misc.h>.
30343
d1923dc8 303442004-10-13 Hollis Blanchard <hollis@penguinppc.org>
30345
30346 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
30347 Call grub_children_iterate for device nodes of type `scsi',
30348 `ide', or `ata'.
30349 (grub_ofdisk_open): Remove manual device alias resolution.
30350 Fix memory leak when device cannot be opened.
f19dbdb7 30351 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 30352 (grub_children_iterate): New prototype.
30353 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
30354 New function.
30355 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
30356 Return -1 if args.size was -1.
30357
4512e4f3 303582004-10-11 Hollis Blanchard <hollis@penguinppc.org>
30359
30360 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
30361 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
30362 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
30363 Open Firmware's memory for it; claim memory from _start to _end.
30364 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
30365 (_end): New extern.
30366 (_start): Zero BSS from __bss_start to _end.
30367 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
30368 New extern.
30369 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
30370
4d61feb0 303712004-10-11 Hollis Blanchard <hollis@penguinppc.org>
30372
ad0bd20b 30373 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
30374 -1 if args.base was -1.
4d61feb0 30375
026fa2f9 303762004-10-08 Hollis Blanchard <hollis@penguinppc.org>
30377
30378 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
30379 escape sequence instead of a literal ^L. Also call
30380 grub_ofconsole_gotoxy.
30381
9f2220ef 303822004-10-03 Hollis Blanchard <hollis@penguinppc.org>
30383
30384 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
30385 void * arguments to grub_addr_t. All callers updated. Also make
30386 the `result' argument optional.
30387 (grub_ieee1275_release): change void * arguments to grub_addr_t.
30388 All callers updated.
30389
8a572cd7 303902004-09-22 Hollis Blanchard <hollis@penguinppc.org>
30391
30392 * commands/ls.c (grub_ls_list_files): Use the string following the
30393 initial ')', if present, as the filesystem path.
30394 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
30395
30396 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
30397
18aa81f2 303982004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
30399
30400 Make the source code of the menu interface more readable.
f19dbdb7 30401
18aa81f2 30402 * normal/menu.c: Include grub/mm.h.
30403 (TERM_WIDTH): New macro.
30404 (TERM_HEIGHT): Likewise.
30405 (TERM_INFO_HEIGHT): Likewise.
30406 (TERM_MARGIN): Likewise.
30407 (TERM_SCROLL_WIDTH): Likewise.
30408 (TERM_TOP_BORDER_Y): Likewise.
30409 (TERM_LEFT_BORDER_X): Likewise.
30410 (TERM_BORDER_WIDTH): Likewise.
30411 (TERM_MESSAGE_HEIGHT): Likewise.
30412 (TERM_BORDER_HEIGHT): Likewise.
30413 (TERM_NUM_ENTRIES): Likewise.
30414 (TERM_FIRST_ENTRY_Y): Likewise.
30415 (TERM_ENTRY_WIDTH): Likewise.
30416 (TERM_CURSOR_X): Likewise.
30417 (draw_border): Use macros instead of magic numbers.
30418 (print_entry): Likewise.
30419 (print_entries): Likewise.
30420 (run_menu): Likewise. Also, handle the key 'e'.
30421 (run_menu_entry): Ignore empty command lines.
30422 (print_message): Added a new argument EDIT. If EDIT is true,
30423 print a different message.
30424 (init_page): Likewise.
30425 (edit_menu_entry): New function. Not implemented yet.
30426
b47efe30 304272004-09-17 Marco Gerards <metgerards@student.han.nl>
30428
30429 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
30430 can be loaded from normal mode.
f19dbdb7 30431
b47efe30 30432 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
30433 `multiboot.mod'.
30434 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
30435 (multiboot_mod_CFLAGS): New variables.
30436 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 30437 * loader/i386/pc/multiboot_normal.c: Likewise.
30438
b47efe30 30439 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
30440 attribute `unused'.
f19dbdb7 30441
b47efe30 30442 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
30443 `fdiro' to read the mode information from instead of `diro'.
30444
30445 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
30446 looking up a symlink.
30447
30448 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
30449 macro.
30450 * normal/command.c (grub_command_execute): Don't parse the
30451 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
30452 flags of the command.
30453
30454 * normal/menu.c (grub_menu_run): Fix typo.
30455
da75ac71 304562004-09-14 Hollis Blanchard <hollis@penguinppc.org>
30457
30458 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
30459
30460 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
30461 `y + 1' instead of `y - 1'.
30462
30463 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 30464
062b24c2 304652004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
30466
30467 From Hollis Blanchard <hollis@penguinppc.org>:
30468 * kern/misc.c (memmove): New alias for grub_memmove.
30469 (memcmp): New alias for grub_memcmp.
30470 (memset): New alias for grub_memset.
f19dbdb7 30471 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 30472 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 30473 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 30474 (grub_ieee1275_get_property): Likewise.
f19dbdb7 30475
8ddad845 304762004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
30477
30478 Added normal mode command `chainloader' as module chain.mod, which
30479 depends on normal.mod and _chain.mod.
f19dbdb7 30480
8ddad845 30481 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
30482 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
30483 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
30484 Deleted prototype.
30485 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
30486 but arguments parsing moved to ...
30487 (grub_chainloader_cmd): ... here. New function.
30488 * include/grub/i386/pc/chainloader.h: New file.
30489 * loader/i386/pc/chainloader_normal.c: Likewise.
30490
2c1f4ce3 304912004-09-11 Marco Gerards <metgerards@student.han.nl>
30492
30493 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
30494 (grub_mkimage_LDFLAGS): Likewise.
30495 (grub_emu_SOURCES): Likewise.
30496 (kernel_img_HEADERS): Added fshelp.h.
30497 * fs/ext2.c: Include <grub/fshelp.h>.
30498 (FILETYPE_REG): New macro.
30499 (FILETYPE_INO_REG): Likewise.
30500 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
30501 Changed all users.
30502 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
30503 all users.
30504 (grub_fshelp_node): New struct.
30505 (grub_ext2_data): Added member `diropen'. Changed member `inode'
30506 to a pointer.
30507 (grub_ext2_get_file_block): Removed function.
30508 (grub_ext2_read_block): New function.
30509 (grub_ext2_read_file): Replaced parameter `data' by `node'.
30510 This function was written.
30511 (grub_ext2_mount): Read the root inode. Create a diropen struct.
30512 (grub_ext2_find_file): Removed function.
30513 (grub_ext2_read_symlink): New function.
30514 (grub_ext2_iterate_dir): Likewise.
30515 (grub_ext2_open): Rewritten.
30516 (grub_ext2_dir): Rewritten.
30517 * include/grub/fshelp.h: New file.
30518 * fs/fshelp.c: Likewise.
30519
3c52136a 305202004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
30521
30522 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
30523 (print_message): Add a missing newline.
30524 (run_menu): Added timeout support.
30525 (run_menu_entry): New local function.
30526 (grub_menu_run): Added support for booting.
30527
30528 * kern/loader.c (grub_loader_is_loaded): New function.
30529
30530 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
30531 (grub_get_rtc): Exported.
30532
30533 * include/grub/i386/pc/time.h: Include grub/symbol.h.
30534 (grub_get_rtc): Exported.
30535
30536 * include/grub/normal.h (struct grub_command_list): Remove
30537 constant from the member `command'.
30538
30539 * include/grub/loader.h (grub_loader_is_loaded): Declared.
30540
30541 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
30542
30543 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
30544
aa033560 305452004-08-28 Marco Gerards <metgerards@student.han.nl>
30546
30547 Add support for the JFS filesystem.
30548
30549 * fs/jfs.c: New file.
30550 * include/grub/fs.h (grub_jfs_init): New prototype.
30551 (grub_jfs_fini): New prototype.
30552 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
30553 (grub_emu_SOURCES): Likewise.
30554 (pkgdata_MODULES): Add jfs.mod.
30555 (jfs_mod_SOURCES): New variable.
30556 (jfs_mod_CFLAGS): Likewise.
30557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
30558 (grubof_SOURCES): Likewise.
30559 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
30560
30561 * fs/fat.c (grub_fat_find_dir): Convert the filename little
30562 endian to the host endian.
30563 (grub_fat_utf16_to_utf8): Move function from there...
30564 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 30565 the endianness of the source string anymore.
aa033560 30566 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
30567
94bc45af 305682004-08-24 Marco Gerards <metgerards@student.han.nl>
30569
30570 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
30571 (grub_boot_fini) [GRUB_UTIL]: Likewise.
30572 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
30573 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 30574
94bc45af 30575 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
30576 (grub_hfs_iterate_dir): Make the function static. Add prototypes
30577 for `node_found' and `it_dir'.
30578 (grub_hfs_dir): Add prototype for `dir_hook'.
30579
30580 * fs/minix.c (grub_minix_get_file_block): Add prototype for
30581 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
30582 and `indir32' to silence a gcc warning.
30583
30584 * include/grub/fs.h (grub_hfs_init): New prototype.
30585 (grub_hfs_fini): Likewise.
f19dbdb7 30586
30587
97543f08 305882004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
30589
30590 Each disk device has its own id now. This is useful to make use
30591 of multiple disk devices.
f19dbdb7 30592
97543f08 30593 * include/grub/disk.h (grub_disk_dev_id): New enum.
30594 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
30595 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
30596
30597 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
30598 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
30599
30600 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
30601 GRUB_DISK_DEVICE_OFDISK_ID as an id.
30602
30603 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
30604 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
30605
30606 * include/grub/disk.h (struct grub_disk_dev): Added a new member
30607 "id" which is used by the cache manager.
30608
30609 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
30610 of just "GRUB".
30611
64372eb4 306122004-08-18 Marco Gerards <metgerards@student.han.nl>
30613
30614 * fs/hfs.c: New file.
30615 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
30616 (grub_emu_SOURCES): Likewise.
30617 (pkgdata_MODULES): Add hfs.mod.
30618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
30619 (grubof_SOURCES): Likewise.
30620 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
30621
30622 * include/grub/misc.h (grub_strncasecmp): Add prototype.
30623 * kern/misc.c (grub_strncasecmp): Add function.
30624
cc61b58f 306252004-08-14 Marco Gerards <metgerards@student.han.nl>
30626
30627 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
30628 with parentheses.
30629
30630 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
30631 (grub_ext2_dir): In case the directory entry type is unknown, read
30632 it from the inode.
30633
0ef123f6 306342004-08-02 Peter Bruin <pjbruin@dds.nl>
30635
30636 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
30637 grub_load_linux instead of grub_rescue_cmd_linux as second
30638 argument of grub_rescue_register_command.
30639
30640 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
30641
a447c5df 306422004-07-27 Marco Gerards <metgerards@student.han.nl>
30643
30644 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
30645 function.
30646 * commands/boot.c: Remove the check for `GRUB_UTIL'.
30647 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
30648 `loader/powerpc/ieee1275/linux.c',
30649 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
30650 * include/grub/powerpc/ieee1275/ieee1275.h
30651 (grub_ieee1275_release): New prototype.
30652 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
30653 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
30654 normal, boot, linux and linux_normal.
30655 * loader/powerpc/ieee1275/linux.c: New file.
30656 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
30657
5a9e3546 306582004-07-12 Marco Gerards <metgerards@student.han.nl>
30659
30660 * normal/arg.c (grub_arg_parse): Correct error handling after
30661 reallocating the argumentlist (check if `argl' is not null instead
30662 of checking if `args' is not null).
30663 * kern/mm.c (grub_realloc): Return the same pointer when using the
30664 same region, instead of returning the header address.
30665
e15199cb 306662004-07-11 Marco Gerards <metgerards@student.han.nl>
30667
30668 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
30669 one block instead of two when looking for the initial partition.
30670 (grub_partition_probe): Initialize the local variable `p' with 0.
30671 Use base 10 for the grub_strtoul call.
30672 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
30673 need for one local variable.
30674 (grub_strtoul): Don't add the new value to `num', instead of that
30675 just assign it.
30676
020616c2 306772004-07-11 Marco Gerards <metgerards@student.han.nl>
30678
30679 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
30680 (pxeboot_img_SOURCES): New variable.
30681 (pxeboot_img_ASFLAGS): Likewise.
30682 (pxeboot_img_LDFLAGS): Likewise.
30683 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
30684 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
30685 <lode_leroy@hotmail.com>.
30686
6c51eb64 306872004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
30688
30689 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
30690 there was no input.
30691
cfb12aff 306922004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
30693
30694 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
30695 the history buffer logic.
30696
6eabba74 306972004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
30698
30699 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
30700 (FILETYPE_INO_SYMLINK): New macros.
30701 (grub_ext2_find_file): Check if the node is a directory using the
30702 inode stat information instead of using the filetype in the
30703 dirent. Exclude the first character of an absolute symlink.
30704 (grub_ext2_dir): Mask out the filetype part of the mode member of
30705 the inode.
30706
66e19ef8 307072004-05-24 Marco Gerards <metgerards@student.han.nl>
30708
30709 Add support for UFS version 1 and 2. Add support for the minix
30710 filesystem version 1 and 2, both the variants with 14 and 30 long
30711 filenames.
f19dbdb7 30712
66e19ef8 30713 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
30714 fs/minix.c.
30715 (grub_emu_SOURCES): Likewise.
30716 (pkgdata_MODULES): Add ufs.mod and minix.mod.
30717 (ufs_mod_SOURCES): New variable.
30718 (ufs_mod_CFLAGS): Likewise.
30719 (minix_mod_SOURCES): Likewise.
30720 (minix_mod_CFLAGS): Likewise.
30721 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
30722 fs/minix.c.
30723 (grubof_SOURCES): Likewise.
30724 * fs/ufs.c: New file.
30725 * fs/minix.c: New file.
30726 * include/grub/fs.h (grub_ufs_init): New prototype.
30727 (grub_ufs_fini): Likewise.
30728 (grub_minix_init): Likewise.
30729 (grub_minix_fini): Likewise.
30730 * util/grub-emu.c (main): Initialize and deinitialize UFS and
30731 minix fs.
30732
cc2e748a 307332004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
30734
30735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
30736 commands/ls.c, commands/terminal.c, commands/boot.c,
30737 commands/cmp.c and commands/cat.c.
30738 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
30739
30740 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
30741 "env.h"
30742
4b13b216 307432004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
30744
30745 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
30746 and grub_, respectively. Because the conversion is trivial and
30747 mechanical, I omit the details here. Please refer to the CVS
30748 if you need more information.
30749
6a142551 307502004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
30751
30752 * include/pupa: Renamed to ...
30753 * include/grub: ... this.
30754 * util/i386/pc/pupa-mkimage.c: Renamed to ...
30755 * util/i386/pc/grub-mkimage.c: ... this.
30756 * util/i386/pc/pupa-setup.c: Renamed to ...
30757 * util/i386/pc/grub-setup.c: ... this.
30758 * util/pupa-emu.c: Renamed to ...
30759 * util/grub-emu.c: ... this.
30760
e56cdf21 307612004-03-29 Marco Gerards <metgerards@student.han.nl>
30762
30763 Add support for the newworld apple macintosh (PPC). This has been
30764 tested on the powerbook 2000 only. It only adds support for
30765 generic ieee1275 functions, console and disk support. This should
30766 be easy to port to other architectures with support for Open
30767 Firmware.
f19dbdb7 30768
e56cdf21 30769 * configure.ac: Accept the powerpc as host_cpu. In the case of
30770 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
30771 specific tests are only executed while building for the i386.
30772 Inverse test for crosscompile.
30773 * genmk.rb (Utility): Allow assembler files.
30774 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
30775 * conf/powerpc-ieee1275.rmk: New file.
30776 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
30777 * disk/powerpc/ieee1275/partition.c: Likewise.
30778 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
30779 * include/pupa/powerpc/ieee1275/console.h: Likewise.
30780 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
30781 * include/pupa/powerpc/ieee1275/time.h: Likewise.
30782 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
30783 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
30784 * include/pupa/powerpc/ieee1275/loader.h
30785 * include/pupa/powerpc/setjmp.h: Likewise.
30786 * include/pupa/powerpc/types.h: Likewise.
30787 * kern/powerpc/ieee1275/init.c: Likewise.
30788 * kern/powerpc/ieee1275/openfw.c: Likewise.
30789 * term/powerpc/ieee1275/ofconsole.c: Likewise.
30790
30791 These files were written by Johan Rydberg
30792 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 30793
e56cdf21 30794 * boot/powerpc/ieee1275/cmain.c: New file.
30795 * boot/powerpc/ieee1275/crt0.S: Likewise.
30796 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
30797 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
30798
8c8cc205 307992004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
30800
30801 * Makefile.in: Update copyright.
30802 * genmodsrc.sh: Likewise.
30803 * gensymlist.sh: Likewise.
30804 * term/i386/pc/vga.c: Indent correctly.
30805
30806 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
30807 bugreporting address.
30808 * util/i386/pc/pupa-setup.c (usage): Likewise,
30809 (main): Call pupa_ext2_init and pupa_ext2_fini.
30810
f19dbdb7 30811 * fs/fat.c (log2): Renamed to ...
8c8cc205 30812 (fat_log2): ... this.
30813 All callers changed.
30814 * kern/misc.c (memcpy): Alias to pupa_memmove.
30815 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
30816 lvalue cast.
30817 * util/console.c (pupa_ncurses_fini): Return 0.
30818
30819 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
30820 Move fail label here.
30821 [__GNU__]: Don't warn when using stat.
30822 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
30823 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
30824 long int. Use strtol instead of strtoul.
f19dbdb7 30825
db1771cf 308262004-03-14 Marco Gerards <metgerards@student.han.nl>
30827
30828 * commands/boot.c: New file.
30829 * commands/cat.c: Likewise.
30830 * commands/cmp.c: Likewise.
30831 * commands/ls.c: Likewise.
30832 * commands/terminal.c: Likewise.
30833 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
30834 (pupa_register_command): Changed interface to match the new
30835 argument parser.
30836 (pupa_command_execute): Changed (almost rewritten) so it uses
30837 pupa_split_command. Added support for setting variables using the
30838 syntax `foo=bar'.
30839 (rescue_command): Changed to work with the new argument parser.
30840 (terminal_command): Moved from here to commands/terminal.c.
30841 (set_command): New function.
30842 (unset_command): New function.
30843 (insmod_command): New function.
30844 (rmmod_command): New function.
30845 (lsmod_command): New function.
30846 (pupa_command_init): Don't initialize the command terminal
30847 anymore. Initialize the commands set, unset, insmod, rmmod and
30848 lsmod.
30849 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
30850 (kernel_img_HEADERS): Add arg.h and env.h.
30851 (pupa_mkimage_LDFLAGS): Add kern/env.c.
30852 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
30853 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
30854 normal/arg.c.
30855 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
30856 terminal.mod.
30857 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
30858 (boot_mod_SOURCES): New variable.
30859 (terminal_mod_SOURCES): Likewise.
30860 (ls_mod_SOURCES): Likewise.
30861 (cmp_mod_SOURCES): Likewise.
30862 (cat_mod_SOURCES): Likewise.
30863
30864 * normal/arg.c: New file.
30865 * kern/env.c: Likewise.
30866 * include/pupa/arg.h: Likewise.
30867 * include/pupa/env.h: Likewise.
30868 * font/manager.c (font_command): Changed to match argument parsing
30869 interface changes.
30870 (PUPA_MOD_INIT): Likewise.
30871 * hello/hello.c (pupa_cmd_hello): Likewise.
30872 (PUPA_MOD_INIT): Likewise.
30873 * include/pupa/disk.h: Include <pupa/device.h>.
30874 (pupa_print_partinfo): New prototype.
30875 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
30876 (pupa_dl_get_prefix): Likewise.
30877 * include/pupa/misc.h: Include <pupa/err.h>.
30878 (pupa_isgraph): New prototype.
30879 (pupa_isdigit): Likewise.
30880 (pupa_split_cmdline): Likewise.
30881 * include/pupa/normal.h: Include <pupa/arg.h>.
30882 (pupa_command): Changed the prototype of the member `func' to
30883 match the argument parsing interface. Added member `options'.
30884 (pupa_register_command): Updated to match function.
30885 (pupa_arg_parse): New prototype.
30886 (pupa_hello_init) [PUPA_UTIL]: New prototype.
30887 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
30888 (pupa_ls_init) [PUPA_UTIL]: Likewise.
30889 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
30890 (pupa_cat_init) [PUPA_UTIL]: Likewise.
30891 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
30892 (pupa_boot_init) [PUPA_UTIL]: Likewise.
30893 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
30894 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
30895 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
30896 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
30897 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
30898 * kern/disk.c: Include <pupa/file.h>.
30899 (pupa_print_partinfo): New function.
30900 * kern/dl.c: Include <pupa/env.h>.
30901 (pupa_dl_dir): Variable removed.
30902 (pupa_dl_load): Use the environment variable `prefix' instead of
30903 the variable pupa_dl_dir.
30904 (pupa_dl_set_prefix): Function removed.
30905 (pupa_dl_get_prefix): Likewise.
30906 * kern/i386/pc/init.c: Include <pupa/env.h>.
30907 (pupa_machine_init): Use the environment variable `prefix' instead of
30908 using pupa_dl_set_prefix to set the prefix.
30909 * kern/main.c: Include <pupa/env.h>.
30910 (pupa_set_root_dev): Use the environment variable `prefix' instead of
30911 using pupa_dl_get_prefix to get the prefix.
30912 * kern/misc.c: Include <pupa/env.h>.
30913 (pupa_isdigit): New function.
30914 (pupa_isgraph): Likewise.
30915 (pupa_ftoa): Likewise.
30916 (pupa_vsprintf): Added support for printing values of the type
30917 `double'. Make it possible to format variable output when using
30918 formatting like `%1.2%f'.
30919 (pupa_split_cmdline): New function.
30920 * kern/rescue.c: Include <pupa/env.h>.
30921 (next_word): Removed function.
30922 (pupa_rescue_cmd_prefix): Likewise.
30923 (pupa_rescue_cmd_set): New function.
30924 (pupa_rescue_cmd_unset): New function.
30925 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
30926 split the command line instead of splitting it here. Added
30927 support for setting variables using the syntax `foo=bar'. Don't
30928 initialize the prefix command anymore. Initialized the set and
30929 unset commands.
30930 * normal/cmdline.c: Include <pupa/env.h>.
30931 (pupa_tab_complete): Added prototypes for print_simple_completion,
30932 print_partition_completion, add_completion, iterate_commands,
30933 iterate_dev, iterate_part and iterate_dir. Moved code to print
30934 partition information from here to kern/disk.c.
fe6b695a 30935 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 30936 * normal/main.c: Include <pupa/env.h>.
30937 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
30938 instead of using pupa_dl_get_prefix to get the prefix.
30939 * term/i386/pc/vga.c: Include <pupa/arg.h>.
30940 (check_vga_mem): Cast pointers to `void *' to silence a gcc
30941 warning.
30942 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
30943 (pupa_vga_setcolor): Declare unused variables with `__attribute__
30944 ((unused))' to silence a gcc warning.
30945 (pupa_vga_setcolor): Likewise.
30946 (debug_command): Changed to match argument parsing
30947 interface changes.
30948 * util/pupa-emu.c: Include <pupa/env.h>.
30949 (options): Added 0's for unused fields to silence a gcc warning.
30950 (argp): Likewise.
30951 (main): Use the environment variable `prefix' instead of using
30952 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
30953 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
30954 and terminal.
30955
30956 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
30957 * util/misc.c: Include <malloc.h>.
30958 (pupa_malloc): Rewritten so errors are correctly reported.
30959 (pupa_realloc): Likewise.
30960 (pupa_memalign): Likewise.
30961 (pupa_mm_init_region): Declare unused variables with
30962 `__attribute__ ((unused))' to silence a gcc warning.
30963 * normal/i386/setjmp.S: Remove tab at the end of the file to
30964 silence a gcc warning.
30965 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
30966 variables with `__attribute__ ((unused))' to silence a gcc
30967 warning.
30968 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
30969 local variable i unsigned to silence a gcc warning.
30970
30971 * kern/term.c: Include <pupa/misc.h>.
30972 (pupa_more_lines): New variable.
30973 (pupa_more): Likewise.
30974 (pupa_putcode): When the pager is active pause at the end of every
30975 screen.
30976 (pupa_set_more): New function.
30977 * include/pupa/term.h (pupa_set_more): New prototype.
30978
30979
3b1139cb 309802004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
30981
30982 Now this project is GRUB 2 rather than PUPA. The location of
30983 the CVS repository was moved to GRUB's.
f19dbdb7 30984
3b1139cb 30985 * configure.ac: Use bug-grub as the reporting address.
30986 Use GRUB instead of PUPA.
30987 Change the version number to 1.90.
30988
8367695c 309892004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
30990
30991 * genkernsyms.sh: Updated copyright information.
30992 * genmk.rb: Likewise.
30993 * genmodsrc.sh: Likewise.
30994 * gensymlist.sh: Likewise.
30995 * boot/i386/pc/boot.S: Likewise.
30996 * boot/i386/pc/diskboot.S: Likewise.
30997 * disk/i386/pc/biosdisk.c: Likewise.
30998 * disk/i386/pc/partition.c: Likewise.
30999 * font/manager.c: Likewise.
31000 * fs/ext2.c: Likewise.
31001 * fs/fat.c: Likewise.
31002 * include/pupa/boot.h: Likewise.
31003 * include/pupa/device.h: Likewise.
31004 * include/pupa/disk.h: Likewise.
31005 * include/pupa/dl.h: Likewise.
31006 * include/pupa/elf.h: Likewise.
31007 * include/pupa/err.h: Likewise.
31008 * include/pupa/file.h: Likewise.
31009 * include/pupa/font.h: Likewise.
31010 * include/pupa/fs.h: Likewise.
31011 * include/pupa/kernel.h: Likewise.
31012 * include/pupa/loader.h: Likewise.
31013 * include/pupa/misc.h: Likewise.
31014 * include/pupa/mm.h: Likewise.
31015 * include/pupa/net.h: Likewise.
31016 * include/pupa/normal.h: Likewise.
31017 * include/pupa/rescue.h: Likewise.
31018 * include/pupa/setjmp.h: Likewise.
31019 * include/pupa/symbol.h: Likewise.
31020 * include/pupa/term.h: Likewise.
31021 * include/pupa/types.h: Likewise.
31022 * include/pupa/i386/setjmp.h: Likewise.
31023 * include/pupa/i386/types.h: Likewise.
31024 * include/pupa/i386/pc/biosdisk.h: Likewise.
31025 * include/pupa/i386/pc/boot.h: Likewise.
31026 * include/pupa/i386/pc/console.h: Likewise.
31027 * include/pupa/i386/pc/init.h: Likewise.
31028 * include/pupa/i386/pc/kernel.h: Likewise.
31029 * include/pupa/i386/pc/linux.h: Likewise.
31030 * include/pupa/i386/pc/loader.h: Likewise.
31031 * include/pupa/i386/pc/memory.h: Likewise.
31032 * include/pupa/i386/pc/multiboot.h: Likewise.
31033 * include/pupa/i386/pc/partition.h: Likewise.
31034 * include/pupa/i386/pc/time.h: Likewise.
31035 * include/pupa/i386/pc/vga.h: Likewise.
31036 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
31037 * include/pupa/util/getroot.h: Likewise.
31038 * include/pupa/util/misc.h: Likewise.
31039 * include/pupa/util/resolve.h: Likewise.
31040 * kern/device.c: Likewise.
31041 * kern/disk.c: Likewise.
31042 * kern/dl.c: Likewise.
31043 * kern/err.c: Likewise.
31044 * kern/file.c: Likewise.
31045 * kern/fs.c: Likewise.
31046 * kern/loader.c: Likewise.
31047 * kern/main.c: Likewise.
31048 * kern/misc.c: Likewise.
31049 * kern/mm.c: Likewise.
31050 * kern/rescue.c: Likewise.
31051 * kern/term.c: Likewise.
31052 * kern/i386/dl.c: Likewise.
31053 * kern/i386/pc/init.c: Likewise.
31054 * kern/i386/pc/lzo1x.S: Likewise.
31055 * kern/i386/pc/startup.S: Likewise.
31056 * loader/i386/pc/chainloader.c: Likewise.
31057 * loader/i386/pc/linux.c: Likewise.
31058 * loader/i386/pc/multiboot.c: Likewise.
31059 * normal/cmdline.c: Likewise.
31060 * normal/command.c: Likewise.
31061 * normal/main.c: Likewise.
31062 * normal/menu.c: Likewise.
31063 * normal/i386/setjmp.S: Likewise.
31064 * term/i386/pc/console.c: Likewise.
31065 * term/i386/pc/vga.c: Likewise.
31066 * util/console.c: Likewise.
31067 * util/genmoddep.c: Likewise.
31068 * util/misc.c: Likewise.
31069 * util/pupa-emu.c: Likewise.
31070 * util/resolve.c: Likewise.
31071 * util/unifont2pff.rb: Likewise.
31072 * util/i386/pc/biosdisk.c: Likewise.
31073 * util/i386/pc/getroot.c: Likewise.
31074 * util/i386/pc/pupa-mkimage.c: Likewise.
31075 * util/i386/pc/pupa-setup.c: Likewise.
31076
e6eced71 310772004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
31078
31079 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
31080 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
31081 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
31082 reading and reset it after reading.
31083 (pupa_ext2_close): Return PUPA_ERR_NONE.
31084
31085 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
31086 Correct value.
31087 (struct linux_kernel_header): Add kernel_version and
31088 initrd_addr_max.
31089 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
31090 pupa_file_read succeeds.
31091 (pupa_rescue_cmd_initrd): Implement.
31092
5aded270 310932003-12-03 Marco Gerards <metgerards@student.han.nl>
31094
31095 * fs/ext2.c (pupa_ext2_label): New function.
31096 (pupa_ext2_fs): Added label.
31097 * fs/fat.c (pupa_fat_label): New function.
31098 (pupa_fat_fs): Added label.
31099 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
31100
31101 * kern/misc.c (pupa_strndup): New function.
31102 * include/pupa/misc.h (pupa_strndup): New prototype.
31103
31104 * include/pupa/normal.h: Include <pupa/err.h>.
31105 (pupa_set_history): New prototype.
31106 (pupa_iterate_commands): New prototype.
31107 * normal/cmdline.c: Include <pupa/machine/partition.h>,
31108 <pupa/disk.h>, <pupa/file.h>.
31109 (hist_size): New variable.
31110 (hist_lines): Likewise.
31111 (hist_end): Likewise.
31112 (hist_used): Likewise.
31113 (pupa_set_history): New function.
31114 (pupa_history_get): Likewise.
31115 (pupa_history_add): Likewise.
31116 (pupa_history_replace): Likewise.
31117 (pupa_tab_complete): Likewise.
31118 (pupa_cmdline_run): Added tab completion and history buffer. Tab
31119 completion shows partitionnames while completing partitions, this
31120 feature was suggested by Jeff Bailey.
31121 * normal/command.c (pupa_iterate_commands): New function.
31122 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
31123 (pupa_normal_init): Initialize history buffer.
31124 (PUPA_MOD_INIT): Likewise.
31125 (pupa_normal_fini): Free the history buffer.
31126 (PUPA_MOD_FINI): Likewise.
31127
31128 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
31129 key.
31130
31131 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
31132 * configure.ac [i386]: Check for regparam bug.
31133 (NESTED_FUNC_ATTR) [! i386]: Defined.
31134
1f7315a3 311352003-11-17 Marco Gerards <metgerards@student.han.nl>
31136
31137 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
31138 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
31139 (pupa_emu_SOURCES): New variable.
31140 (pupa_emu_LDFLAGS): Likewise.
31141 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
31142 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
31143 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
31144 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
31145 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
31146 (pupa_jmp_buf): New typedef.
31147 (pupa_setjmp) [PUPA_UTIL]: New macro.
31148 (pupa_longjmp) [PUPA_UTIL]: Likewise.
31149 * include/pupa/term.h (struct pupa_term): New member `refresh'.
31150 (pupa_refresh): New prototype.
31151 * include/pupa/util/getroot.h: New file.
31152 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
31153 it.
31154 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
31155 (pupa_rescue_cmd_cat): Likewise.
31156 (pupa_rescue_cmd_ls): Likewise.
31157 (pupa_rescue_cmd_testload): Likewise.
31158 (pupa_rescue_cmd_lsmod): Likewise.
31159 * normal/cmdline.c (pupa_cmdline_get): Likewise.
31160 * normal/menu.c (run_menu): Likewise.
31161 * kern/term.c (pupa_cls): Likewise.
31162 (pupa_refresh): New function.
31163 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
31164 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
31165 * util/console.c: New file.
f19dbdb7 31166
1f7315a3 31167 * util/i386/pc/getroot.c: New file.
31168 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
31169 (pupa_putchar): New function.
31170 (pupa_refresh): Likewise.
31171 (xgetcwd): Function moved to ...
31172 (strip_extra_slashes): Likewise.
31173 (get_prefix): Likewise.
f19dbdb7 31174 * util/i386/pc/getroot.c: ... here.
1f7315a3 31175 (find_root_device): Function moved and renamed to...
31176 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
31177 Changed all callers.
31178 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
31179 and renamed to...
31180 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
31181 Changed all callers.
31182 * util/misc.c (pupa_memalign): New function.
31183 (pupa_mm_init_region): Likewise.
31184 (pupa_register_exported_symbols): Likewise.
31185 (pupa_putchar): Function removed.
31186 * util/pupa-emu.c: New file.
31187
9a5c1ade 311882003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
31189
31190 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
31191 (_multiboot_mod_SOURCES): New variable.
31192 (_multiboot_mod_CFLAGS): Likewise.
31193 * loader/i386/pc/multiboot.c: New file.
31194 * include/pupa/i386/pc/multiboot.h: Likewise.
31195 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
31196 (pupa_multiboot_real_boot): New function.
31197 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
31198 (pupa_multiboot_real_boot): New prototype.
31199 (pupa_rescue_cmd_multiboot): Likewise
31200 (pupa_rescue_cmd_module): Likewise.
31201
31202 * kern/loader.c (pupa_loader_set): Continue when
31203 pupa_loader_unload_func() fails.
31204 (pupa_loader_unset): New function.
31205 * include/pupa/loader.h (pupa_loader_unset): New prototype.
31206
31207 * kern/misc.c (pupa_stpcpy): New function.
31208 * include/pupa/misc.h (pupa_stpcpy): New prototype.
31209
8e72a9c0 312102003-11-12 Marco Gerards <metgerards@student.han.nl>
31211
31212 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
31213 for available extensions.
31214
31215 * include/pupa/i386/pc/time.h: New file.
31216 * kern/disk.c: Include <pupa/machine/time.h>.
31217 (PUPA_CACHE_TIMEOUT): New macro.
31218 (pupa_last_time): New variable.
31219 (pupa_disk_open): Flush the cache when there was a timeout.
31220 (pupa_disk_close): Reset the timer.
31221 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
31222 pupa_currticks.
31223 * util/misc.c: Include <sys/times.h>
31224 (pupa_get_rtc): New function.
31225
c4adbd32 312262003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
31227
31228 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
31229 as blocks.
31230 (pupa_ext2_get_file_block): Use blocks member.
31231
31232 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
31233 first block. Return -1 instead of pupa_errno on error.
31234
bfd30f06 312352003-10-27 Marco Gerards <metgerards@student.han.nl>
31236
31237 * README: In the pupa-mkimage example use _chain instead of chain
31238 and ext2 instead of fat.
31239 * TODO: Replace ext2fs with jfs as an example. Add an item for
31240 adding journal playback for ext2fs.
31241 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
31242 (pkgdata_MODULES): Added ext2.mod.
31243 (ext2_mod_SOURCES): New variable.
31244 (ext2_mod_CFLAGS): Likewise.
31245 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
31246 * include/pupa/misc.h (pupa_strncpy): New prototype.
31247 (pupa_strcat): Likewise.
31248 (pupa_strncmp): Likewise.
31249 * kern/misc.c (pupa_strcat): Enable function.
31250 (pupa_strncpy): New function.
31251 (pupa_strncmp): Likewise.
31252 * fs/ext2.c: New file.
f19dbdb7 31253
bfd30f06 31254 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
31255 when the read failed before retrying.
31256 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
31257 (_FILE_OFFSET_BITS): Likewise.
31258 * configure.ac: Added AC_SYS_LARGEFILE.
31259
98d15063 312602003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
31261
31262 * genmk.rb (PModule#rule): Make sure to get only symbol names
31263 from the output of nm.
59cad637 31264 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 31265
18d9c7cd 312662003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
31267
31268 I forgot to check in these changes for a long time. This adds
31269 incomplete support for VGA console, and this is still very
31270 buggy. Also, a lot of consideration is required for I18N,
31271 UNICODE, and VGA font issues. Therefore, assume that this is
31272 such that "better than nothing".
f19dbdb7 31273
18d9c7cd 31274 * font/manager.c: New file.
31275 * include/pupa/font.h: Likewise.
31276 * include/pupa/i386/pc/vga.h: Likewise.
31277 * term/i386/pc/vga.c: Likewise.
31278 * util/unifont2pff.rb: Likewise.
31279
31280 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
31281 (pkgdata_MODULES): Added vga.mod and font.mod.
31282 (vga_mod_SOURCES): New variables.
31283 (vga_mod_CFLAGS): Likewise.
31284 (font_mod_SOURCES): Likewise.
31285 (font_mod_CFLAGS): Likewise.
31286
31287 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
31288
31289 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 31290 (struct pupa_term): Added init and fini.
18d9c7cd 31291 Changed the argument of putchar to pupa_uint32_t.
31292
31293 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
31294 (pupa_console_real_putchar): New prototype.
31295 (pupa_console_putchar): Removed.
31296 (pupa_console_checkkey): Exported.
31297 (pupa_console_getkey): Likewise.
31298
31299 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
31300 characters.
31301
31302 * kern/term.c (pupa_term_set_current): Rewritten.
31303 (pupa_putchar): Likewise.
31304 (pupa_putcode): New function.
31305
31306 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
31307 (pupa_console_real_putchar): ... this.
31308 (pupa_vga_set_mode): New function.
31309 (pupa_vga_get_font): Likewise.
31310
31311 * normal/command.c: Include pupa/term.h.
31312 (terminal_command): New function.
31313 (pupa_command_init): Register the command "terminal".
31314
31315 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
31316 (DISP_UP): Likewise.
31317 (DISP_RIGHT): Likewise.
31318 (DISP_DOWN): Likewise.
31319 (DISP_HLINE): Likewise.
31320 (DISP_VLINE): Likewise.
31321 (DISP_UL): Likewise.
31322 (DISP_UR): Likewise.
31323 (DISP_LL): Likewise.
31324 (DISP_LR): Likewise.
31325
31326 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 31327
977329f5 313282003-02-08 NIIBE Yutaka <gniibe@m17n.org>
31329
31330 * util/resolve.c (pupa_util_resolve_dependencies): BUG
31331 FIX. Reverse the path_list.
31332
31333 * include/pupa/normal.h: Export pupa_register_command and
31334 pupa_unregister_command.
31335
31336 * hello/hello.c (pupa_cmd_hello): New module.
31337 * conf/i386-pc.rmk: Added hello.mod.
31338
1f5ab428 313392003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
31340
31341 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 31342
1f5ab428 31343 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
31344 (compress_kernel): New variable.
31345 (generate_image): Heavily modified to support compressing a
31346 large part of the core image.
31347
31348 * util/misc.c (pupa_util_read_image): Fix a file descriptor
31349 leak.
31350 (pupa_util_load_image): New function.
31351
31352 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
31353 (pupa_compressed_size): New variable.
31354 (codestart): Enable Gate A20 here.
31355 Decompress the compressed part of the core image.
31356 Rearrange the code to put functions and variables which are
31357 required for initialization in the non-compressed part.
31358 Include lzo1x.S.
31359
31360 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
31361 here.
31362
31363 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
31364
f19dbdb7 31365 * include/pupa/i386/pc/kernel.h
1f5ab428 31366 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
31367 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
31368 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
31369 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
31370 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
31371
31372 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
31373
31374 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
31375 (Utility#rule): Likewise.
31376
31377 * configure.ac: Check if LZO is available.
31378
ce5bf700 313792003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
31380
31381 * include/pupa/normal.h: New file.
31382 * include/pupa/setjmp.h: Likewise.
31383 * include/pupa/i386/setjmp.h: Likewise.
31384 * normal/cmdline.c: Likewise.
31385 * normal/command.c: Likewise.
31386 * normal/main.c: Likewise.
31387 * normal/menu.c: Likewise.
31388 * normal/i386/setjmp.S: Likewise.
f19dbdb7 31389
ce5bf700 31390 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
31391 (pupa_rescue_cmd_initrd): Likewise.
31392
31393 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
31394 Likewise.
31395
31396 * kern/i386/pc/startup.S (translation_table): New variable.
31397 (translate_keycode): New function.
31398 (pupa_console_getkey): Call translate_keycode.
31399
31400 * kern/rescue.c (attempt_normal_mode): New function.
31401 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
31402 it failed, print a message.
31403
31404 * kern/mm.c (pupa_real_malloc): Print more information when a
31405 free magic is broken.
31406 (pupa_free): If the first free header is not free actually, set
31407 it to P.
31408
31409 * kern/main.c (pupa_load_normal_mode): Just load the module
31410 "normal".
31411 (pupa_main): Don't print the message
31412 "Entering into rescue mode..." here.
31413
31414 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
31415 Declared.
31416 (pupa_rescue_cmd_initrd): Likewise.
31417 (pupa_rescue_cmd_initrd): Likewise.
31418
31419 * include/pupa/symbol.h (FUNCTION): Specify the type.
31420 (VARIABLE): Likewise.
31421
31422 * include/pupa/err.h (pupa_err_t): Added
31423 PUPA_ERR_UNKNOWN_COMMAND.
31424
31425 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
31426 (pupa_dl_get_prefix): Likewise.
31427
31428 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
31429 Added _chain.mod and _linux.mod instead of chain.mod and
31430 linux.mod.
31431 (chain_mod_SOURCES): Renamed to ...
31432 (_chain_mod_SOURCES): ... this.
31433 (chain_mod_CFLAGS): Renamed to ...
31434 (_chain_mod_CFLAGS): ... this.
31435 (linux_mod_SOURCES): Renamed to ...
31436 (_linux_mod_SOURCES): ... this.
31437 (linux_mod_CFLAGS): Renamed to ...
31438 (_linux_mod_CFLAGS): ... this.
31439 (normal_mod_SOURCES): New variable.
31440 (normal_mod_CFLAGS): Likewise.
31441 (normal_mod_ASFLAGS): Likewise.
31442
314432003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
31444
31445 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
31446 possible.
31447
fe6b695a 31448 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 31449 recursively.
31450 (pupa_dl_unref): Unrefer depending modules recursively.
31451 Don't call pupa_dl_unload implicitly, because PUPA can crash if
31452 a module is unloaded before one depending on that module is
31453 unloaded.
31454 (pupa_dl_unload): Unload depending modules explicitly,
31455 if possible.
31456
c04da074 314572003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
31458
31459 * include/pupa/i386/pc/linux.h: New file.
31460 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 31461
c04da074 31462 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
31463 Removed.
31464 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
31465 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
31466 of PUPA_CHAINLOADER_BOOT_SECTOR.
31467
31468 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
31469 (pupa_linux_prot_size): New variable.
31470 (pupa_linux_tmp_addr): Likewise.
31471 (pupa_linux_real_addr): Likewise.
31472 (pupa_linux_boot_zimage): New function.
31473 (pupa_linux_boot_bzimage): Likewise.
31474
31475 * kern/i386/pc/init.c (struct mem_region): New structure.
31476 (MAX_REGIONS): New macro.
31477 (mem_regions): New variable.
31478 (num_regions): Likewise.
31479 (pupa_os_area_addr): Likewise.
31480 (pupa_os_area_size): Likewise.
31481 (pupa_lower_mem): Likewise.
31482 (pupa_upper_mem): Likewise.
31483 (add_mem_region): New function.
31484 (compact_mem_regions): Likewise.
31485 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
31486 the size of the conventional memory and that of so-called upper
31487 memory (before the first memory hole).
31488 Instead of adding each found region to free memory, use
31489 add_mem_region and add them after removing overlaps.
31490 Also, add only 1/4 of the upper memory to free memory. The rest
31491 is used for loading OS images. Maybe this is ad hoc, but this
31492 makes it much easier to relocate OS images when booting.
31493
31494 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
31495 (pupa_enter_rescue_mode): Don't register initrd and module.
31496
31497 * kern/mm.c: Include pupa/dl.h.
31498
31499 * kern/main.c: Include pupa/file.h and pupa/device.h.
31500
31501 * kern/loader.c (pupa_loader_load_module_func): Removed.
31502 (pupa_loader_load_module): Likewise.
31503
31504 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
31505 ``.o''.
31506
31507 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
31508 (pupa_linux_tmp_addr): Likewise.
31509 (pupa_linux_real_addr): Likewise.
31510 (pupa_linux_boot_zimage): Likewise.
31511 (pupa_linux_boot_bzimage): Likewise.
31512
31513 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
31514 (pupa_upper_mem): Likewise.
31515 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
31516 module is too dangerous.
31517
31518 * include/pupa/loader.h (pupa_os_area_addr): Declared.
31519 (pupa_os_area_size): Likewise.
31520 (pupa_loader_set): Remove the first argument. Loader doesn't
31521 manage modules or initrd any longer.
31522 (pupa_loader_load_module): Removed.
31523
31524 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
31525 (linux_mod_SOURCES): New variable.
31526 (linux_mod_CFLAGS): Likewise.
31527
a13f9237 315282003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
31529
31530 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
31531 the length of a blocklist correctly.
31532
31533 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
31534 Use ioctl only if the OS file is a block device.
31535 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
31536 not very useful for normal files.
31537
31538 * kern/main.c (pupa_set_root_dev): New function.
31539 (pupa_load_normal_mode): Likewise.
31540 (pupa_main): Call those above.
31541
31542 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
31543 pupa_uint16_t.
31544
31545 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
31546
a5ffe966 315472003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
31548
31549 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
31550 (setup): Configure the installed partition information and the
31551 dl prefix.
31552
31553 * loader/i386/pc/chainloader.c (my_mod): New variable.
31554 (pupa_chainloader_unload): New function.
31555 (pupa_rescue_cmd_chainloader): Refer itself.
31556 (PUPA_MOD_INIT): Save its own module in MY_MOD.
31557
31558 * kern/i386/pc/startup.S (install_partition): Removed.
31559 (version_string): Likewise.
31560 (config_file): Likewise.
31561 (pupa_install_dos_part): New variable.
31562 (pupa_install_bsd_part): Likewise.
31563 (pupa_prefix): Likewise.
31564 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
31565
31566 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
31567 and pupa/misc.h.
31568 (make_install_device): New function.
31569 (pupa_machine_init): Set the dl prefix.
31570
31571 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
31572 (buf): Renamed to ...
31573 (linebuf): ... this.
31574 (pupa_rescue_cmd_prefix): New function.
31575 (pupa_rescue_cmd_insmod): Likewise.
31576 (pupa_rescue_cmd_rmmod): Likewise.
31577 (pupa_rescue_cmd_lsmod): Likewise.
31578 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
31579 rmmod and lsmod.
31580
31581 * kern/mm.c (pupa_memalign): If failed even after invalidating
31582 disk caches, unload unneeded modules and retry.
31583
31584 * kern/misc.c (pupa_memmove): New function.
31585 (pupa_memcpy): Removed.
31586 (pupa_strcpy): New function.
31587 (pupa_itoa): Made static.
31588
31589 * kern/dl.c (pupa_dl_iterate): New function.
31590 (pupa_dl_ref): Likewise.
31591 (pupa_dl_unref): Likewise.
31592 (pupa_dl_unload): Return if succeeded or not.
31593 (pupa_dl_unload_unneeded): New function.
31594 (pupa_dl_unload_all): Likewise.
31595 (pupa_dl_init): Renamed to ...
31596 (pupa_dl_set_prefix): ... this.
31597 (pupa_dl_get_prefix): New function.
31598
31599 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
31600 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
31601 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
31602 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
31603 (pupa_install_dos_part): Declared.
31604 (pupa_install_bsd_part): Likewise.
31605 (pupa_prefix): Likewise.
31606 (pupa_boot_drive): Likewise.
31607
31608 * include/pupa/types.h: Fix a typo.
31609
31610 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
31611 pupa_memmove.
31612 (pupa_memmove): Declared.
31613 (pupa_strcpy): Likewise.
31614
31615 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
31616 pupa_mod_init takes one argument, its own module.
31617 (pupa_dl_unload_unneeded): Declared.
31618 (pupa_dl_unload_all): Likewise.
31619 (pupa_dl_ref): Likewise.
31620 (pupa_dl_unref): Likewise.
31621 (pupa_dl_iterate): Likewise.
31622 (pupa_dl_init): Renamed to ...
31623 (pupa_dl_set_prefix): ... this.
31624 (pupa_dl_get_prefix): Declared.
31625
31626 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 31627 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 31628 unloaded.
31629 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
31630 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
31631
31632 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
31633 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
31634
012d7999 316352003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
31636
31637 * util/i386/pc/pupa-setup.c (setup): Define the internal
31638 function find_first_partition_start at the top level, because GCC
31639 3.0.x cannot compile internal functions in deeper scopes
31640 correctly.
31641 (find_root_device): Use lstat instead of stat.
31642 Don't follow symbolic links.
31643 Fix the path-constructing code.
31644
31645 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
31646 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
31647 by a BLKGETSIZE ioctl first, because block devices don't fill
31648 the member st_mode of the structure stat on Linux.
31649 [__linux__] (linux_find_partition): Use a temporary buffer
31650 REAL_DEV for the working space. Copy it to DEV before returning.
31651 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
31652 buffer cache consistent.
31653 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
31654 strncmp. The previous value was merely wrong.
31655 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
31656
31657 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
31658 FAT size is 12. The previous value was merely wrong.
31659
31660 * kern/main.c (pupa_main): Don't split the starting message from
31661 newlines.
31662
31663 * kern/term.c (pupa_putchar): Put CR after LF instead of before
31664 LF, because BIOS goes crazy about character attributes in this
31665 case.
31666
1cc73a62 316672003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
31668
31669 * include/i386/pc/util/biosdisk.h: New file.
31670 * util/i386/pc/biosdisk.c: Likewise.
31671 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 31672
1cc73a62 31673 * Makefile.in (INCLUDE_DISTFILES): Added
31674 include/pupa/i386/pc/util/biosdisk.h.
31675 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
31676 directory util/i386/pc.
31677 (install-local): Added a rule for sbin_UTILITIES.
31678 (uninstall): Likewise.
31679
31680 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
31681
31682 * util/misc.c (xrealloc): New function.
31683 (pupa_malloc): Likewise.
31684 (pupa_free): Likewise.
31685 (pupa_realloc): Likewise.
31686 (pupa_stop): Likewise.
31687 (pupa_putchar): Likewise.
31688
31689 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
31690
31691 * include/pupa/util/misc.h (xrealloc): Declared.
31692
31693 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
31694 macro.
31695 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
31696 (PUPA_BOOT_MACHINE_BPB_END): ... this.
31697
31698 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
31699 [PUPA_UTIL] (pupa_fat_fini): Likewise.
31700
31701 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
31702 way should be implemented.
31703 [PUPA_UTIL] (pupa_fat_fini): Likewise.
31704
31705 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
31706 the size of NAME for safety.
31707 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
31708 0x88.
31709
31710 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
31711 (pupa_setup_SOURCES): Likewise.
31712
31713 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
31714
08b70fe8 317152002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
31716
31717 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
31718 bunch of pushl's from pusha, because this destroys the return
31719 value.
31720
62ddcc8f 317212002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
31722
31723 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
31724 This means that any missing prototypes could be fatal. Also, you
31725 must take care when writing assembly code. See the comments at
31726 the beginning of startup.S, for more details.
f19dbdb7 31727
62ddcc8f 31728 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
31729 compilation mechanism.
31730 (pupa_chainloader_real_boot): Likewise.
31731 (pupa_biosdisk_rw_int13_extensions): Likewise.
31732 (pupa_biosdisk_rw_standard): Likewise.
31733 (pupa_biosdisk_check_int13_extensions): Likewise.
31734 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
31735 (pupa_biosdisk_get_diskinfo_standard): Likewise.
31736 (pupa_get_memsize): Likewise.
31737 (pupa_get_mmap_entry): Likewise.
31738 (pupa_console_putchar): Likewise.
31739 (pupa_console_setcursor): Likewise.
31740 (pupa_getrtsecs): Use pushl instead of push.
31741
31742 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
31743 memory instead of the stack for a mmap entry, because some
31744 BIOSes may ignore the maximum size and overflow.
31745
31746 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
31747
31748 * genmk.rb (PModule#rule): Compile automatically generated
31749 sources with module-specific CFLAGS as well as other sources.
31750
9962ed99 317512002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
31752
31753 * configure.ac: Check ld.
31754 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
31755 respectively, before checking endianness and sizes.
31756
31757 * Makefile.in (LD): New variable.
f19dbdb7 31758
abdfc3c5 317592002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
31760
31761 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
31762
6a161fa9 317632002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
31764
31765 * Changelog: New file.
31766