]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Changelog
[grub2.git] / ChangeLog
1 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Workaround for broken ATI VBE.
4
5 * video/i386/pc/vbe.c (last_set_mode): New variable.
6 (grub_vbe_set_video_mode): Set 'last_set_mode'.
7 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
8 (grub_video_vbe_setup): Don't check for reserved flag.
9
10 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
11
12 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
13 the `find' command.
14
15 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
16
17 UUID support for HFS.
18
19 * fs/hfs.c (grub_hfs_uuid): New function.
20 (grub_hfs_fs): New value .uuid.
21 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
22
23 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
24
25 Fix a segfault with parsing unknown long options.
26
27 * util/grub-mkrelpath.c (options): Zero terminate it.
28
29 2009-12-13 Carles Pina i Estany <carles@pina.cat>
30
31 * include/grub/misc.h (grub_puts): New declaration.
32 (grub_puts_): Likewise.
33 * kern/mis.c (grub_puts): New definition.
34 (grub_puts_): Likewise.
35
36 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
37
38 * util/grub-probe.c (probe): Improve error message.
39
40 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
41
42 * loader/i386/multiboot_elfxx.c
43 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
44 initialization.
45
46 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
47
48 Relocator framework
49
50 * loader/i386/xnu_helper.S: Removed. All users updated.
51 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
52 (relocator_mod_SOURCES): New variable.
53 (relocator_mod_CFLAGS): Likewise.
54 (relocator_mod_LDFLAGS): Likewise.
55 (relocator_mod_ASFLAGS): Likewise.
56 * conf/x86_64.rmk: Likewise.
57 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
58 (grub_multiboot_payload_entry_offset): Likewise.
59 (grub_multiboot_forward_relocator): Likewise.
60 (grub_multiboot_forward_relocator_end): Likewise.
61 (grub_multiboot_backward_relocator): Likewise.
62 (grub_multiboot_backward_relocator_end): Likewise.
63 (grub_multiboot_payload_eip): New variable.
64 (grub_multiboot_payload_orig): Likewise.
65 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
66 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
67 * include/grub/i386/memory.h
68 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
69 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
70 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
71 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
72 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
73 * include/grub/i386/relocator.h: New file.
74 * include/grub/x86_64/relocator.h: Likewise.
75 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
76 (XNU_RELOCATOR): New macro.
77 (grub_xnu_launcher_start): Remove.
78 (grub_xnu_launcher_end): Likewise.
79 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
80 (grub_xnu_heap_real_start): Remove.
81 (grub_xnu_heap_start): Change to void *. All users updated.
82 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
83 * lib/i386/relocator.c: New file.
84 * lib/i386/relocator_asm.S: Likewise.
85 * lib/i386/relocator_backward.S: Likewise.
86 * lib/mips/relocator.c: Likewise.
87 * lib/mips/relocator_asm.S: Likewise.
88 * lib/relocator.c: Likewise.
89 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
90 (entry): Removed.
91 (playground): Likewise.
92 (grub_multiboot_payload_orig): New variable.
93 (grub_multiboot_payload_dest): Likewise.
94 (grub_multiboot_payload_size): Likewise.
95 (grub_multiboot_payload_eip): Likewise.
96 (grub_multiboot_payload_esp): Likewise.
97 (grub_multiboot_boot): Use grub_relocator32_boot.
98 (grub_multiboot_unload): Free relocators.
99 (grub_multiboot): Setup stack. Use relocators.
100 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
101 (grub_multiboot_load_elfXX): Use relocators.
102 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
103 (grub_multiboot_payload_size): Likewise.
104 (grub_multiboot_payload_dest): Likewise.
105 (grub_multiboot_payload_entry_offset): Likewise.
106 (grub_multiboot_forward_relocator): Likewise.
107 (grub_multiboot_backward_relocator): Likewise.
108 (grub_multiboot_real_boot): Likewise.
109 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
110 (grub_xnu_entry_point): Likewise.
111 (grub_xnu_arg1): Likewise.
112 (grub_xnu_stack): Likewise.
113 (grub_xnu_launch): Removed.
114 (grub_xnu_boot_resume): New function.
115 (grub_xnu_boot): Use relocators.
116 * loader/i386/xnu_helper.S: Removed.
117 * loader/xnu.c (grub_xnu_heap_start): New variable.
118 (grub_xnu_heap_size): Likewise.
119 (grub_xnu_heap_malloc): Use relocators.
120 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
121
122 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
123
124 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
125 anything.
126
127 2009-12-13 Carles Pina i Estany <carles@pina.cat>
128
129 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
130 GRUB_ERR_NONE before calling grub_env_set.
131
132 2009-12-12 Robert Millan <rmh@aybabtu.com>
133
134 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
135 * genmk.rb (video): New variable.
136 (CLEANFILES, VIDEOFILES): Add #{video}.
137 (#{video}): New target rule.
138 * genvideolist.sh: New file.
139 * Makefile.in (pkglib_DATA): Add video.lst.
140 (video.lst): New target rule.
141 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
142 `video.lst'.
143 * util/grub.d/30_os-prober.in: Replace `vbe' with
144 ${GRUB_VIDEO_BACKEND}.
145
146 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
147
148 * THANKS: Add David Miller.
149
150 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
151
152 libpciaccess support.
153
154 * Makefile.in (LIBPCIACCESS): New variable.
155 (enable_grub_emu_pci): Likewise.
156 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
157 util/pci.c and commands/lspci.c.
158 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
159 * configure.ac (grub-emu-pci): New option.
160 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
161 (grub_pci_device_unmap_range): Likewise.
162 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
163 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
164 (grub_pci_address_t) [!GRUB_UTIL]: New type.
165 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
166 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
167 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
168 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
169 * include/grub/pciutils.h: New file.
170 * util/pci.c: Likewise.
171
172 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
173
174 * util/misc.c: Don't include <errno.h> twice.
175
176 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
177
178 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
179 name in an error message.
180 (grub_biosdisk_rw): Likewise.
181
182 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
183
184 Eliminate NTFS 4Gib barrier.
185
186 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
187 (read_run_data): Likewise.
188 (grub_ntfs_read_run_list): Likewise.
189 (grub_ntfs_read_block): Likewise.
190 (grub_ntfs_iterate_dir): Likewise.
191 (read_mft): Likewise.
192 (read_data): Likewise.
193 Use COM_LOG_LEN.
194 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
195 to avoid 64-bit division
196 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
197 (grub_ntfs_rlst): Use grub_disk_addr_t.
198
199 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
200
201 Eliminate grub-fstest 4Gib barrier.
202
203 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
204 (read_file): Fix error reporting.
205
206 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
207
208 Eliminate hexdump 4Gib barrier.
209
210 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
211 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
212
213 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
214
215 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
216 Fixes amarsh bug.
217
218 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
219
220 Remove miscellaneous files in distclean target.
221
222 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
223
224 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
225
226 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
227 if they're already set. This resolves the conflict between my
228 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
229 fixing the --grub-probe option again.
230 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
231 change on 2009-10-06, so that we now once again source
232 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
233
234 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
235
236 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
237 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
238 `util/devicemap.c'.
239
240 2009-12-08 Carles Pina i Estany <carles@pina.cat>
241
242 * include/grub/misc.h (grub_printf_): New declaration.
243 * kern/misc.c (grub_printf_): New definition.
244 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
245 instead of `grub_printf' and `_'.
246 * normal/menu_entry.c (store_completion): Likewise.
247 (run): Likewise.
248 (grub_menu_entry_run): Likewise.
249 * normal/menu_text.c (grub_wait_after_message): Likewise.
250 (notify_booting): Likewise.
251 (notify_fallback): Likewise.
252 (notify_execution_failure): Likewise.
253
254 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
255
256 * configure.ac: Check for vasprintf.
257 * util/misc.c (asprintf): Move allocation from here ...
258 (vasprintf): ... to here. New function.
259 (xasprintf): New function.
260 * include/grub/util/misc.h (vasprintf, xasprintf): Add
261 prototypes.
262 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
263 * util/grub-mkfont.c (write_font): Likewise.
264 * util/grub-probe.c (probe): Likewise.
265 * util/hostdisk.c (make_device_name): Likewise.
266
267 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
268
269 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
270 anything even prefixed with 'cdrom' as a cdrom.
271
272 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
273
274 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
275 mount points.
276
277 2009-12-05 Carles Pina i Estany <carles@pina.cat>
278
279 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
280 grub_gettext_msg_list.
281 (grub_gettext_gettranslation_from_position): Return const char *
282 and not char *.
283 (grub_gettext_translate): Add the translated strings into a list,
284 returns from the list if existing there.
285 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
286 (grub_gettext_delete_list): Delete the list.
287 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
288 lang environment variable is changed.
289 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
290
291 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
292
293 Rename kernel.mod to kernel.img.
294
295 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
296 (kernel_mod_EXPORTS): Rename to ...
297 (kernel_img_EXPORTS): ... this.
298 (kernel_mod_SOURCES): Rename to ...
299 (kernel_img_SOURCES): ... this.
300 (kernel_mod_HEADERS): Rename to ...
301 (kernel_img_HEADERS): ... this. All users updated.
302 (kernel_mod_CFLAGS): Rename to ...
303 (kernel_img_CFLAGS): ... this.
304 (kernel_mod_ASFLAGS): Rename to ...
305 (kernel_img_ASFLAGS): ... this.
306 (kernel_mod_LDFLAGS): Rename to ...
307 (kernel_img_LDFLAGS): ... this.
308 * conf/x86_64-efi.rmk: Likewise.
309 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
310 (read_kernel_image): ... this. All users updated.
311 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
312
313 2009-12-05 Carles Pina i Estany <carles@pina.cat>
314
315 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
316 (print_spaces): New function.
317 (grub_print_ucs4): New function.
318 (getstringwidth): New function.
319 (print_message_indented): New function.
320 (print_message): Gettexttize strings using print_message_indented.
321 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
322 width.
323 (get_entry_number): Gettextize and uses dynamic terminal width.
324 (notify_booting, notify_fallback, notify_execution_failure):
325 Gettextize.
326 * normal/menu_entry.c (store_completion): Cleanup the gettextized
327 string.
328 (run): Likewise.
329 (grub_menu_entry_run): Likewise.
330 * PO/POTFILES: Add normal/menu_entry.c.
331
332 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
335
336 2009-12-05 Carles Pina i Estany <carles@pina.cat>
337
338 * util/grub-install.in: Install gettext .mo files.
339 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
340
341 2009-12-05 Carles Pina i Estany <carles@pina.cat>
342
343 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
344 grub_dprintf.
345
346 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
347
348 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
349 non-firmware-dependant one in realmode.S takes precedence.
350
351 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
352
353 * commands/halt.c: Replace misc arch-specific headers with
354 `<grub/misc.h>'.
355 * commands/reboot.c: Likewise.
356 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
357 `<grub/misc.h>'.
358 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
359 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
360 (kernel_img_SOURCES): ... to here.
361
362 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
363 * include/grub/i386/pc/init.h: Likewise.
364 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
365 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
366
367 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
368
369 * include/grub/i386/halt.h: Remove.
370 * include/grub/i386/reboot.h: Likewise.
371
372 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
373
374 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
375
376 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
377 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
378 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
379 "progname.h"
380 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
381 * util/sparc64/ieee1275/grub-setup.c: Likewise.
382 (usage): Add missing comma in printf.
383
384 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
385
386 Use the same reboot approach on i386 coreboot and qemu as we do on
387 BIOS.
388
389 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
390 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
391 * kern/i386/reboot.c: Remove.
392 * include/grub/i386/reboot.h (grub_reboot): Export function.
393 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
394 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
395 0xf000:0xfff0 instead of 0xffff:0x0000.
396 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
397 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
398
399 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
400
401 Fix $srcdir != $objdir build.
402
403 * Makefile.in (po/%.po): Rewrite as ...
404 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
405
406 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
407
408 Fix GNU/Hurd grub-install crash.
409 * util/grub-probe.c (probe): Try to access `path' only when it is not
410 NULL.
411
412 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
413
414 Correct module naming.
415
416 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
417 (GRUB_MOD_INIT(efi_uga)): ... to this
418 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
419 (GRUB_MOD_FINI(efi_uga)): ... to this
420 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
421 (GRUB_MOD_INIT(efi_gop)): ... to this
422 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
423 (GRUB_MOD_FINI(efi_gop)): ... to this
424
425 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
426
427 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
428 translatable.
429 (usage): Translate `arg' strings using gettext().
430 Thanks to Jordi Mallach for the suggestion.
431
432 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
433
434 GOP support. Based on patch from Bean
435 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
436
437 * video/efi_gop.c: New file.
438 * include/grub/efi/graphics_output.h: Likewise.
439 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
440 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
441 variables.
442 * conf/x86_64-efi.rmk: Likewise.
443
444 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
445
446 Rename efi_fb to efi_uga.
447
448 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
449 'efi_uga.mod'.
450 (efi_fb_mod_SOURCES): Rename this ...
451 (efi_uga_mod_SOURCES): ... to this.
452 (efi_fb_mod_CFLAGS): Rename this ...
453 (efi_uga_mod_CFLAGS): ... to this.
454 (efi_fb_mod_LDFLAGS): Rename this ...
455 (efi_uga_mod_LDFLAGS): ... to this.
456 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
457 'efi_uga.mod'.
458 (efi_fb_mod_SOURCES): Rename this ...
459 (efi_uga_mod_SOURCES): ... to this.
460 (efi_fb_mod_CFLAGS): Rename this ...
461 (efi_uga_mod_CFLAGS): ... to this.
462 (efi_fb_mod_LDFLAGS): Rename this ...
463 (efi_uga_mod_LDFLAGS): ... to this.
464 * video/efi_fb.c: Move this ...
465 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
466
467 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
468
469 * po/README: New file. Explain our PO file workflow.
470
471 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
472
473 * po/ChangeLog: Remove. Move relevant entries back to ...
474 * ChangeLog: ... here.
475 * po/ca.po: Remove (now handled by TLP).
476 * po/id.po: Likewise.
477 * po/zh_CN.po: Likewise.
478 * Makefile.in (LINGUAS): Initialize in a way that supports
479 empty set.
480
481 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
482
483 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
484 reliing on po/LINGUAS.
485 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
486 (po/%.po): ... this.
487
488 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
489
490 * util/i386/efi/grub-mkimage.c: Include "progname.h".
491 (main): Use `program_name' instead of nonexistent `progname'.
492
493 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
494
495 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
496 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
497
498 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
499
500 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
501 commit.
502 * conf/i386-efi.rmk: Likewise.
503 * conf/i386-ieee1275.rmk: Likewise.
504 * conf/powerpc-ieee1275.rmk: Likewise.
505 * conf/sparc64-ieee1275.rmk: Likewise.
506 * conf/x86_64-efi.rmk: Likewise.
507
508 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
509
510 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
511
512 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
513
514 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
515
516 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
517
518 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
519 (grub_mkdevicemap_SOURCES): New variable.
520 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
521 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
522 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
523 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
524 (grub_mkdevicemap_SOURCES): Remove.
525 * conf/i386-efi.rmk: Likewise.
526 * conf/i386-ieee1275.rmk: Likewise.
527 * conf/i386-pc.rmk: Likewise.
528 * conf/powerpc-ieee1275.rmk: Likewise.
529 * conf/sparc64-ieee1275.rmk: Likewise.
530 * conf/x86_64-efi.rmk: Likewise.
531 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
532 (usage): Fix strings to use `program_name'.
533 (main): Initialize gettext.
534 * util/grub-editenv.c: Likewise.
535 * util/grub-emu.c: Likewise.
536 * util/grub-fstest.c: Likewise.
537 * util/grub-mkdevicemap.c: Likewise.
538 * util/grub-mkfont.c: Likewise.
539 * util/grub-mkrelpath.c: Likewise.
540 * util/grub-pe2elf.c: Likewise.
541 * util/grub-probe.c: Likewise.
542 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
543 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
544 * util/sparc64/ieee1275/grub-setup.c: Likewise.
545
546 * util/misc.c: Include `"progname.h"'.
547 (progname): Remove variable.
548 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
549
550 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
551
552 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
553 printf and print a newline after the menuentry header line.
554 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
555
556 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
557
558 autoconf >= 2.60 support $(localedir).
559
560 * INSTALL: Note that autoconf 2.60 is required.
561 * configure.ac (AC_PREREQ): Bump to 2.60.
562 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
563 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
564
565 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
566
567 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
568 aclocal is run.
569
570 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
571
572 * normal/main.c (grub_normal_read_line): Fix off-by-one
573 buffer overflow.
574
575 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
576
577 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
578 "parser.grub" in grub_command_execute() call.
579
580 2009-11-24 Carles Pina i Estany <carles@pina.cat>
581
582 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
583 * conf/i386-efi.rmk: Likewise.
584 * conf/i386-ieee1275.rmk: Likewise.
585 * conf/i386-pc.rmk: Likewise.
586 * conf/powerpc-ieee1275.rmk: Likewise.
587 * conf/sparc64-ieee1275.rmk: Likewise.
588 * conf/x86_64-efi.rmk: Likewise.
589 * gettext/gettex.c: Include <grub/i18n.h>.
590 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
591 here ...
592 * include/grub/i18n.h: ... to here
593 * include/grub/i18n.h: ... to here.
594 * kern/misc.c: Include <grub/i18n.h>
595 (grub_gettext_dummy): Move above user.
596
597 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
598
599 * util/Makefile.in (install-local): Convert a `for' into a normal
600 shell expansion.
601
602 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
603
604 * autogen.sh: Add automake call.
605 * config.guess: Remove.
606 * config.sub: Likewise.
607 * install-sh: Likewise.
608
609 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
610
611 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
612
613 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
614
615 * util/Makefile.in (install-local): Convert a make `$(foreach)'
616 function to a normal shell `for'.
617
618 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
619
620 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
621
622 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
623
624 * util/grub-mkrelpath.c: New file.
625 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
626 (grub_mkrelpath_SOURCES): New variable.
627 * include/grub/util/misc.h: New function prototype.
628 * util/misc.c (make_system_path_relative_to_its_root): New function.
629
630 * util/grub-mkconfig_lib.in (bindir): New variable.
631 (grub_mkrelpath): Likewise.
632 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
633
634 * util/probe.c (probe): Make the file path relative to its root.
635 Change a info message to use the GRUB path. Enable again the
636 check if we can read the file with GRUB facilities.
637
638 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
639 to its root.
640
641 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
642
643 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
644 platform.
645
646 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
647
648 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
649 strncmp().
650
651 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
652
653 * util/getroot.c (grub_util_is_dmraid): New function.
654 (grub_util_get_dev_abstraction): Treat dmraid and multipath
655 devices as normal ones, not as LVM.
656
657 2009-11-23 Carles Pina i Estany <carles@pina.cat>
658
659 * conf/common.rmk: Add grub-gettext_lib target and updates
660 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
661 LDFLAGS.
662 * gettext/gettext.c: New file. (Reads mo files).
663 * include/grub/file.h (grub_file_pread): New prototype.
664 * include/grub/i18n.h (_): New prototype.
665 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
666 prototypes.
667 * kern/misc.c (grub_gettext_dummy): New function.
668 * normal/menu_text.c: Include <grub/i18n.h>.
669 * normal/menu_text.c (print_timeout): Gettexttize string.
670 * normal/menu_text.c (print_message): Gettexttize string.
671 * po/POTFILES: Add `normal/menu_text.c'.
672 * po/ca.po: Add new translations.
673 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
674 gettext module and defines locale_dir and lang in grub.cfg.
675 * NEWS: Add gettext support.
676
677 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
678
679 * util/hostdisk.c: Include `<grub/i18n.h>'.
680 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
681 (make_device_name): Rewrite using asprintf.
682 (convert_system_partition_to_system_disk): Replace 0 with NULL.
683 (find_system_device): If a device is not found, generate one just
684 by reusing the OS path name.
685 (read_device_map): Make it permissible for device.map not to exist.
686
687 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
688
689 * script/sh/execute.c: Move from here ...
690 * script/execute.c: ... to here. Update all users.
691 * script/sh/function.c: Move from here ...
692 * script/function.c: ... to here. Update all users.
693 * script/sh/lexer.c: Move from here ...
694 * script/lexer.c: ... to here. Update all users.
695 * script/sh/main.c: Move from here ...
696 * script/main.c: ... to here. Update all users.
697 * script/sh/parser.y: Move from here ...
698 * script/parser.y: ... to here. Update all users.
699 * script/sh/script.c: Move from here ...
700 * script/script.c: ... to here. Update all users.
701
702 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
703
704 * configure.ac: Detect all `emu' platforms. Define
705 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
706 --enable-grub-emu logic. Disable include/grub/machine
707 symlink on `emu' platforms.
708
709 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
710 * gensymlist.sh.in: Likewise.
711
712 * include/grub/i386/coreboot/machine.h: Remove file.
713 * include/grub/i386/efi/machine.h: Likewise.
714 * include/grub/i386/ieee1275/machine.h: Likewise.
715 * include/grub/i386/pc/machine.h: Likewise.
716 * include/grub/i386/qemu/machine.h: Likewise.
717 * include/grub/powerpc/ieee1275/machine.h: Likewise.
718 * include/grub/sparc64/ieee1275/machine.h: Likewise.
719 * include/grub/x86_64/efi/machine.h: Likewise.
720
721 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
722 * commands/halt.c: Likewise.
723 * commands/reboot.c: Likewise.
724 * include/grub/autoefi.h: Likewise.
725 * include/grub/i386/at_keyboard.h: Likewise.
726 * include/grub/i386/kernel.h: Likewise.
727 * include/grub/i386/loader.h: Likewise.
728 * include/grub/i386/pc/memory.h: Likewise.
729 * kern/dl.c: Likewise.
730 * kern/i386/coreboot/init.c: Likewise.
731 * loader/i386/bsd.c: Likewise.
732 * loader/i386/linux.c: Likewise.
733 * loader/multiboot_loader.c: Likewise.
734 * term/i386/pc/serial.c: Likewise.
735 * term/usb_keyboard.c: Likewise.
736
737 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
738 `<grub/machine/machine.h>'
739 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
740 * util/misc.c: Remove `<grub/machine/machine.h>' and
741 `<grub/machine/time.h>'.
742
743 * Makefile.in (enable_grub_emu): Remove variable.
744 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
745
746 * conf/any-emu.rmk: New file.
747 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
748 (grub_emu_init.c): Move from here ...
749 * conf/any-emu.rmk: ... to here.
750
751 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
752 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
753 * conf/any-emu.rmk: ... to here.
754
755 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
756
757 * include/grub/parser.h (grub_parser_register): Document need
758 of `name' parameter.
759 * normal/main.c (grub_normal_read_line): Simplify prompt string.
760 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
761 "sh" to "grub".
762
763 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
764
765 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
766 `$(XGETTEXT)'.
767 * include/grub/i18n.h (N_): New macro.
768 * util/mkisofs/mkisofs.h: Likewise.
769 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
770 around N_().
771 (usage): Use gettext() to translate help strings when printing them.
772
773 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
774
775 Based on patch from Bean
776 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
777
778 * video/efi_fb.c: New file.
779 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
780 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
781 variables.
782 * conf/x86_64-efi.rmk: Likewise.
783
784 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
785
786 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
787 * util/i386/pc/grub-setup.c: Likewise.
788
789 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
790
791 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
792 <hurd/fs.h>
793 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
794 file_get_storage_info to implement grub_guess_root_device.
795
796 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
797
798 * Makefile.in (target): Use make's builtin $(shell) function
799 instead of calling directly $(SHELL) to create the locale directories,
800 inside the $(foreach) function.
801
802 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
803
804 * util/grub-mkrescue.in: Print an error and usage if output option
805 has not been given.
806
807 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
808
809 Patch from Loïc Minier <loic.minier@ubuntu.com>.
810 * util/grub.d/30_os-prober.in: Cope with Linux entries where
811 root and /boot are on different devices.
812
813 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
814
815 Fix build for srcdir != objdir.
816
817 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
818 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
819 $(srcdir).
820 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
821 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
822 reference for input.
823
824 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
825
826 * util/grub-mkrescue.in: Use source directory direcly (without copiing
827 or hardlinking it). Remove -J option, Joliet is not compatible with
828 multiple source directories.
829
830 2009-11-21 Carles Pina i Estany <carles@pina.cat>
831 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
832
833 * util/grub-mkrescue.in: Recognize `--override-directory' option.
834 (process_input_dir): New function. Process an arbitrary input
835 directory.
836 Misc adjustments to support both "override mode" and system-wide mode.
837
838 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
839
840 * configure.ac (UNIFONT_BDF): Rename to ...
841 (FONT_SOURCE): ... this. Update all users.
842
843 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
844
845 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
846 to the list of unifont files to look for.
847
848 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
849
850 Patch from Joe Auricchio <jauricchio@gmail.com>
851 * commands/minicmd.c (grub_mini_cmd_clear): New function.
852 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
853 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
854
855 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
856
857 * Makefile.in (install-local): Add a missing backslash.
858
859 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
860
861 * include/grub/x86_64/io.h: New file.
862
863 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
864
865 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
866 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
867 Include `"progname.h"'.
868 (main): Initialize gettext.
869 * util/i386/pc/grub-setup.c: Gettexttize.
870 * util/i386/pc/grub-mkimage.c: Likewise.
871
872 * Makefile.in (po/*.po): Redefine as ...
873 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
874
875 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
876
877 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
878
879 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
880 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
881 (program_name): Remove.
882 (main): Initialize gettext support.
883 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
884 Include `<libintl.h>'.
885 (_): New macro.
886
887 * util/mkisofs/eltorito.c: Gettexttize.
888 * util/mkisofs/joliet.c: Likewise.
889 * util/mkisofs/mkisofs.c: Likewise.
890 * util/mkisofs/multi.c: Likewise.
891 * util/mkisofs/rock.c: Likewise.
892 * util/mkisofs/tree.c: Likewise.
893 * util/mkisofs/write.c: Likewise.
894
895 * po/POTFILES: Update with new files.
896
897 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
898
899 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
900 * util/mkisofs/iso9660.h: Likewise.
901 * util/mkisofs/joliet.c: Likewise.
902 * util/mkisofs/mkisofs.c: Likewise.
903 * util/mkisofs/mkisofs.h: Likewise.
904 * util/mkisofs/rock.c: Likewise.
905 * util/mkisofs/tree.c: Likewise.
906 * util/mkisofs/write.c: Likewise.
907
908 * util/mkisofs/eltorito.c (rcsid): Remove.
909 * util/mkisofs/hash.c: Likewise.
910 * util/mkisofs/joliet.c: Likewise.
911 * util/mkisofs/name.c: Likewise.
912 * util/mkisofs/rock.c: Likewise.
913 * util/mkisofs/tree.c: Likewise.
914 * util/mkisofs/write.c: Likewise.
915
916 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
917
918 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
919 instead of static allocation.
920 * util/mkisofs/match.h: Likewise.
921
922 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
923
924 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
925 and `util/grub.d/10_linux.in'.
926 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
927 translatable Shell files.
928
929 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
930
931 * Makefile.in ($(srcdir)/aclocal.m4): New target.
932
933 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
934
935 * INSTALL: Document Automake is needed for bootstrap.
936 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
937 * util/grub.d/10_kfreebsd.in (bindir): New variable.
938 Add gettext initialization.
939 (kfreebsd_entry): Make menuentry output translatable.
940
941 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
942
943 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
944 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
945 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
946 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
947 (LINGUAS): Auto-generate using `po/LINGUAS'.
948 * po/LINGUAS: New file.
949
950 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
951
952 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
953 other things).
954 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
955 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
956 bindtextdomain() calls for gettext initialization.
957
958 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
959
960 * gnulib/progname.c: New file (imported from Gnulib).
961 * gnulib/progname.h: Likewise.
962 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
963 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
964 (usage): Replace `progname' with `program_name'.
965 (main): Use set_program_name() for program name initialization.
966
967 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
968
969 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
970 from here ...
971 * Makefile.in (CPPFLAGS): ... to here.
972
973 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
974
975 * aclocal.m4: Move from here ...
976 * acinclude.m4: ... to here.
977 * autogen.sh: Add call to `aclocal'.
978 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
979
980 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
981
982 * Makefile.in (CLEANFILES): Add `po/*.mo'.
983 (LINGUAS): New variable.
984 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
985 (install-local): Install MO files.
986 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
987 * include/grub/i18n.h: New file.
988 * po/POTFILES: New file.
989 * po/ca.po: New file.
990 * util/grub.d/10_linux.in (bindir): New variable.
991 Add gettext initialization.
992 (linux_entry): Make menuentry output translatable.
993 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
994 (usage): Make --help output translatable.
995 (main): Initialize gettext.
996
997 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
998
999 * import_gcry.py: New file (written by Vladimir with minor
1000 adjustments).
1001 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
1002 ciphers.
1003 * INSTALL: Document that Python is required for bootstrap.
1004
1005 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
1006
1007 Import ciphers from libgcrypt 1.4.4.
1008
1009 * lib/libgcrypt/cipher/ChangeLog
1010 * lib/libgcrypt/cipher/ac.c
1011 * lib/libgcrypt/cipher/arcfour.c
1012 * lib/libgcrypt/cipher/bithelp.h
1013 * lib/libgcrypt/cipher/blowfish.c
1014 * lib/libgcrypt/cipher/camellia-glue.c
1015 * lib/libgcrypt/cipher/camellia.c
1016 * lib/libgcrypt/cipher/camellia.h
1017 * lib/libgcrypt/cipher/cast5.c
1018 * lib/libgcrypt/cipher/cipher.c
1019 * lib/libgcrypt/cipher/crc.c
1020 * lib/libgcrypt/cipher/des.c
1021 * lib/libgcrypt/cipher/dsa.c
1022 * lib/libgcrypt/cipher/ecc.c
1023 * lib/libgcrypt/cipher/elgamal.c
1024 * lib/libgcrypt/cipher/hash-common.c
1025 * lib/libgcrypt/cipher/hash-common.h
1026 * lib/libgcrypt/cipher/hmac-tests.c
1027 * lib/libgcrypt/cipher/md.c
1028 * lib/libgcrypt/cipher/md4.c
1029 * lib/libgcrypt/cipher/md5.c
1030 * lib/libgcrypt/cipher/primegen.c
1031 * lib/libgcrypt/cipher/pubkey.c
1032 * lib/libgcrypt/cipher/rfc2268.c
1033 * lib/libgcrypt/cipher/rijndael-tables.h
1034 * lib/libgcrypt/cipher/rijndael.c
1035 * lib/libgcrypt/cipher/rmd.h
1036 * lib/libgcrypt/cipher/rmd160.c
1037 * lib/libgcrypt/cipher/rsa.c
1038 * lib/libgcrypt/cipher/seed.c
1039 * lib/libgcrypt/cipher/serpent.c
1040 * lib/libgcrypt/cipher/sha1.c
1041 * lib/libgcrypt/cipher/sha256.c
1042 * lib/libgcrypt/cipher/sha512.c
1043 * lib/libgcrypt/cipher/tiger.c
1044 * lib/libgcrypt/cipher/twofish.c
1045 * lib/libgcrypt/cipher/whirlpool.c
1046
1047 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
1048
1049 Fix build for systems without error().
1050
1051 * gnulib/error.c: New file (imported from Gnulib).
1052 * gnulib/error.h: Likewise.
1053 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
1054 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
1055 (this variable is now used by error()).
1056
1057 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
1058
1059 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
1060 instead of relying that char is signed.
1061
1062 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
1065 blocksize different from specified.
1066 (grub_pxefs_read): Likewise.
1067
1068 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
1069
1070 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
1071
1072 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
1073 (grub_ata_readwrite): Likewise. Update 2 format strings.
1074 (grub_atapi_read): Likewise.
1075
1076 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
1077 * conf/i386.rmk (pkglib_MODULES): ... to here ...
1078 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
1079 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
1080 (ata_mod_LDFLAGS): Move from here ...
1081 * conf/i386.rmk: ... to here ...
1082 * conf/x86_64-efi.rmk: ... and here.
1083 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
1084 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
1085
1086 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
1087
1088 Relicense multiboot.h, with RMS' blessing.
1089
1090 * include/multiboot.h: Change to X11 license.
1091
1092 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
1093
1094 Support --version in grub-mkisofs.
1095
1096 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
1097 (OPTION_VERSION): New macro.
1098 (ld_options): Recognize --version.
1099 (usage): Move `program_name' from here ...
1100 (program_name): ... to here. Add `static' qualifier.
1101 (main): Recognize `OPTION_VERSION'.
1102
1103 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
1104
1105 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
1106 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
1107
1108 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
1109
1110 Fix help2man generation for mkisofs.
1111
1112 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
1113 (usage): Send output to stdout (rather than stderr).
1114
1115 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
1116
1117 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
1118 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
1119 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
1120 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
1121 (bin_SCRIPTS): Add `grub-mkfloppy'.
1122 (grub_mkfloppy_SOURCES): New variable.
1123
1124 * util/grub-mkrescue.in: New file.
1125 * util/i386/pc/grub-mkfloppy.in: New file.
1126
1127 * util/i386/coreboot/grub-mkrescue.in: Remove.
1128 * util/i386/pc/grub-mkrescue.in: Remove.
1129
1130 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
1131
1132 * include/grub/multiboot.h (struct grub_multiboot_header): Move
1133 from here ...
1134 * include/multiboot.h (struct multiboot_header): ... to here. Update
1135 all users.
1136 * include/grub/multiboot.h (struct grub_multiboot_info): Move
1137 from here ...
1138 * include/multiboot.h (struct multiboot_info): ... to here. Update
1139 all users.
1140 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
1141 from here ...
1142 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
1143 Update all users.
1144 * include/grub/multiboot.h (struct grub_mod_list): Move
1145 from here ...
1146 * include/multiboot.h (struct multiboot_mod_list): ... to here.
1147 Update all users.
1148
1149 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
1150
1151 * include/multiboot2.h (multiboot_word): Rename from this ...
1152 (multiboot2_word): ... to this. Update all users.
1153 (multiboot_header): Rename from this ...
1154 (multiboot2_header): ... to this. Update all users.
1155 (multiboot_tag_header): Rename from this ...
1156 (multiboot2_tag_header): ... to this. Update all users.
1157 (multiboot_tag_start): Rename from this ...
1158 (multiboot2_tag_start): ... to this. Update all users.
1159 (multiboot_tag_name): Rename from this ...
1160 (multiboot2_tag_name): ... to this. Update all users.
1161 (multiboot_tag_module): Rename from this ...
1162 (multiboot2_tag_module): ... to this. Update all users.
1163 (multiboot_tag_memory): Rename from this ...
1164 (multiboot2_tag_memory): ... to this. Update all users.
1165 (multiboot_tag_unused): Rename from this ...
1166 (multiboot2_tag_unused): ... to this. Update all users.
1167 (multiboot_tag_end): Rename from this ...
1168 (multiboot2_tag_end): ... to this. Update all users.
1169
1170 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
1171
1172 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
1173 this platform we should support Multiboot1 first.
1174
1175 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
1176 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
1177 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
1178
1179 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
1180
1181 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
1182 of write calls (converting them to fwrite() if they aren't already).
1183 (get_torito_desc): Likewise.
1184 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
1185
1186 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
1187
1188 * util/i386/pc/grub-install.in: Move from here ...
1189 * util/grub-install.in: ... to here. Update all users.
1190
1191 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
1192
1193 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
1194
1195 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
1196
1197 Support for El Torito without floppy emulation.
1198
1199 * util/mkisofs/eltorito.c: Include `<errno.h>'.
1200 (init_boot_catalog): Improve error handling.
1201 (get_torito_desc): Don't use floppy emulation unless requested by
1202 user. Patch boot information table when requested via
1203 `-boot-info-table'.
1204 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
1205 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
1206 (use_boot_info_table): New variables.
1207 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
1208 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
1209 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
1210 `--eltorito-emul-floppy'.
1211 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
1212 and `OPTION_ELTORITO_EMUL_FLOPPY'.
1213 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
1214 (use_boot_info_table, get_731): New prototypes.
1215 * util/mkisofs/write.c (get_731): New function.
1216
1217 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
1218
1219 Fix the generation of the man page.
1220
1221 * util/pc/i386/grub-install.in: Source
1222 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
1223
1224 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
1225
1226 Large file support for grub-mkisofs.
1227
1228 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
1229 * util/mkisofs/mkisofs.c (next_extent, last_extent)
1230 (session_start): Upgrade type to `uint64_t'. Update all users.
1231 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
1232 (struct directory_entry): Upgrade type of `starting_block' and
1233 `size' to `uint64_t'. Update all users.
1234 (struct deferred): Remove unused structure.
1235 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
1236 Update all users.
1237 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
1238 file is larger than `UINT32_MAX'.
1239 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
1240 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
1241 return value.
1242 (struct deferred_write): Upgrade type of `extent' and `size' to
1243 `uint64_t'. Update all users.
1244 (last_extent_written): Upgrade type to `uint64_t'. Update all
1245 users.
1246 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
1247 Update all users. Upgrade type of `remain' to `int64_t' and
1248 `use' to `size_t'. Use error() to handle fread() errors.
1249 (write_files): Rely on write_one_file() rather than calling
1250 xfwrite() directly.
1251
1252 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
1253
1254 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
1255
1256 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1257
1258 * util/mkisofs/fnmatch.c: Remove.
1259 * util/mkisofs/getopt1.c: Likewise.
1260 * util/mkisofs/getopt.c: Likewise.
1261 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
1262 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
1263 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
1264 `gnulib/getopt1.c' and `gnulib/getopt.c'.
1265 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
1266
1267 * configure.ac: Detect `mingw32msvc' host_os.
1268 Check for lstat(), getuid() and getgid().
1269
1270 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
1271 instances of `u_char' with `uint8_t'.
1272
1273 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
1274 [!HAVE_GETUID] (getuid): New function (stub).
1275 [!HAVE_GETGID] (getgid): Likewise.
1276 [!HAVE_LSTAT] (lstat): Likewise.
1277 [!S_IROTH] (S_IROTH): New macro (dummy).
1278 [!S_IRGRP] (S_IRGRP): Likewise.
1279
1280 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1281
1282 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
1283 conditional expression).
1284
1285 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1286
1287 Import from Gnulib.
1288
1289 * gnulib/fnmatch.c: New file.
1290 * gnulib/fnmatch.h: Likewise.
1291 * gnulib/fnmatch_loop.c: Likewise.
1292 * gnulib/getopt.c: Likewise.
1293 * gnulib/getopt.h: Likewise.
1294 * gnulib/getopt1.c: Likewise.
1295 * gnulib/getopt_int.h: Likewise.
1296 * gnulib/gettext.h: Likewise.
1297
1298 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1299
1300 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
1301 * normal/handler.c (read_handler_list): Likewise.
1302
1303 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1304
1305 Misc cleanup.
1306
1307 * kern/command.c (grub_register_command_prio): Use
1308 grub_zalloc() instead of explicitly zeroing data.
1309 * kern/list.c: Include `<grub/mm.h>'.
1310 (grub_named_list_find): Replace `0' with `NULL'.
1311 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
1312 (fs_module_list): Change type to `grub_named_list_t'. Update all
1313 users.
1314 * normal/dyncmd.c (read_command_list): Add space between function
1315 call and parenthesis.
1316 * normal/handler.c (read_handler_list): Likewise.
1317
1318 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1319
1320 * normal/auth.c (punishment_delay): Moved from here ...
1321 (grub_auth_strcmp): ... to here (inside function).
1322
1323 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1324
1325 * include/grub/list.h (struct grub_named_list): Remove `const'
1326 qualifier from `name'.
1327 (struct grub_prio_list): Likewise.
1328
1329 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1330
1331 * normal/auth.c: Include `<grub/time.h>'.
1332 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
1333
1334 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1335
1336 * normal/auth.c (punishment_delay): New variable.
1337 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
1338 (grub_auth_check_authentication): Punish failed login attempts with
1339 an incremental (2^N) delay.
1340
1341 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1342
1343 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
1344 path with $(srcdir).
1345
1346 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1347
1348 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
1349
1350 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1351
1352 * util/i386/coreboot/grub-mkrescue.in: New file.
1353 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
1354 variables.
1355
1356 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
1357 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
1358 * configure.ac: Add header and function checks to satisfy grub-mkisofs
1359 requirements.
1360 * util/mkisofs/defaults.h: New file.
1361 * util/mkisofs/eltorito.c: Likewise.
1362 * util/mkisofs/exclude.h: Likewise.
1363 * util/mkisofs/fnmatch.c: Likewise.
1364 * util/mkisofs/getopt.c: Likewise.
1365 * util/mkisofs/getopt1.c: Likewise.
1366 * util/mkisofs/hash.c: Likewise.
1367 * util/mkisofs/include/fctldefs.h: Likewise.
1368 * util/mkisofs/include/mconfig.h: Likewise.
1369 * util/mkisofs/include/prototyp.h: Likewise.
1370 * util/mkisofs/include/statdefs.h: Likewise.
1371 * util/mkisofs/iso9660.h: Likewise.
1372 * util/mkisofs/joliet.c: Likewise.
1373 * util/mkisofs/match.c: Likewise.
1374 * util/mkisofs/match.h: Likewise.
1375 * util/mkisofs/mkisofs.c: Likewise.
1376 * util/mkisofs/mkisofs.h: Likewise.
1377 * util/mkisofs/multi.c: Likewise.
1378 * util/mkisofs/name.c: Likewise.
1379 * util/mkisofs/rock.c: Likewise.
1380 * util/mkisofs/tree.c: Likewise.
1381 * util/mkisofs/write.c: Likewise.
1382
1383 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
1386 being insecure.
1387
1388 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1389
1390 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
1391 `grub-mkimage' (and use $0 when possible).
1392
1393 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1394
1395 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
1396 error message for excessively large memory map.
1397
1398 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1399
1400 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
1401 executable bit.
1402
1403 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1404
1405 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
1406 message for coreboot users.
1407
1408 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
1409
1410 Fix build with GNU gold.
1411
1412 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
1413 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
1414 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
1415 link addresses.
1416 * aclocal.m4: Likewise.
1417
1418 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
1419
1420 * configure.ac (AC_PREREQ): Bump to 2.59d.
1421 * INSTALL: Make it more clear when Autoconf and Ruby are
1422 needed and when to run `./autogen.sh'.
1423
1424 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1425
1426 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
1427 OSes.
1428
1429 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1430
1431 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
1432
1433 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1434
1435 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
1436 giving it to GNU Mach.
1437
1438 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1439
1440 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
1441 GNU partition number to get internal GRUB partition number.
1442
1443 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1444
1445 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
1446 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
1447
1448 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
1449
1450 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
1451 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
1452 case.
1453
1454 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
1455
1456 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
1457
1458 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
1459
1460 Fix build problem.
1461
1462 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
1463 `-isystem=$(srcdir)/include'.
1464
1465 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
1466
1467 * util/i386/pc/grub-install.in: Remove hint that device.map should be
1468 checked (grub-install doesn't currently rely on it).
1469
1470 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
1471
1472 Revert SVN r2660.
1473
1474 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
1475 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
1476 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
1477 * conf/i386-ieee1275.rmk: Likewise.
1478 * conf/i386-pc.rmk: Likewise.
1479 * conf/powerpc-ieee1275.rmk: Likewise.
1480 * conf/sparc64-ieee1275.rmk: Likewise.
1481 * conf/x86_64-efi.rmk: Likewise.
1482
1483 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1484
1485 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
1486
1487 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1488
1489 * include/grub/misc.h: Stop checking for APPLE_CC.
1490
1491 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1492
1493 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
1494 doesn't cause an infinite call loop.
1495
1496 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
1497
1498 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
1499 strings.
1500
1501 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1502
1503 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
1504 variable.
1505 * Makefile.in: Likewise.
1506
1507 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1508
1509 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
1510
1511 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1512
1513 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
1514
1515 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1516
1517 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
1518
1519 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1520
1521 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
1522 from here ...
1523 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
1524
1525 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1526
1527 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
1528 in $(MAKEINFO) invocation. This makes it clear in output that
1529 errors are being ignored.
1530
1531 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1532
1533 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
1534 from here ...
1535 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
1536 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
1537 * conf/i386-ieee1275.rmk: Likewise.
1538 * conf/i386-pc.rmk: Likewise.
1539 * conf/powerpc-ieee1275.rmk: Likewise.
1540 * conf/sparc64-ieee1275.rmk: Likewise.
1541 * conf/x86_64-efi.rmk: Likewise.
1542
1543 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
1544
1545 * util/grub-editenv.c (main): If only a command is given, use
1546 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
1547 (usage): FILENAME is now optional and has a default.
1548
1549 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
1550
1551 Improve grub-mkconfig performance when there are several menu
1552 entries on a single filesystem.
1553
1554 * util/grub.d/10_linux.in (linux_entry): Cache the output of
1555 prepare_grub_to_access_device.
1556 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1557 * util/grub.d/30_os-prober.in: Likewise.
1558
1559 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1560
1561 * util/grub.d/10_freebsd.in: Remove.
1562 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
1563 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
1564
1565 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1566
1567 * docs/grub.cfg: Fix example usage of *BSD loaders.
1568
1569 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1570
1571 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
1572 grub_util_error() call.
1573
1574 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1575
1576 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
1577 `reserved_first_sector' member.
1578 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
1579 `reserved_first_sector' to 1.
1580 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
1581 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
1582 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
1583 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
1584 filesystems which begin at first sector.
1585 (options): New option --skip-fs-probe.
1586 (main): Handle --skip-fs-probe and pass it to setup().
1587
1588 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1589
1590 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
1591 (memset): Fix function prototype.
1592
1593 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1594 2009-10-25 Vasily Averin <vvs@parallels.com>
1595
1596 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
1597 `dirent.direntlen == 0'.
1598
1599 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1600
1601 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
1602 `cpio'.
1603 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
1604
1605 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1606
1607 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
1608 `__trampoline_setup' and `__ucmpdi2'.
1609 * include/grub/powerpc/libgcc.h: Only export symbols for functions
1610 that libgcc provides.
1611
1612 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1613
1614 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
1615 * include/grub/sparc64/libgcc.h (memset): Likewise.
1616 * include/grub/misc.h (memset, memcmp): New function prototypes.
1617
1618 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1619
1620 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
1621 `cpio'.
1622 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
1623
1624 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1625
1626 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
1627 * docs/grub.cfg: Compensate for recent change in multiboot
1628 loader (since 2009-08-14 it won't pass filename to payload).
1629 * util/grub.d/10_hurd.in: Likewise.
1630
1631 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
1632
1633 * config.guess: Update to latest version from config git
1634 repository.
1635 * config.sub: Likewise.
1636
1637 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
1638
1639 Fix build on sparc64.
1640
1641 * configure.ac: Perform checks for libgcc symbols before
1642 adding `-nostdlib' to LDFLAGS.
1643
1644 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 Let user specify OpenBSD root device.
1647
1648 * loader/i386/bsd.c (openbsd_root): New variable.
1649 (openbsd_opts): New option 'root'.
1650 (OPENBSD_ROOT_ARG): New macro.
1651 (grub_openbsd_boot): Use 'openbsd_root'.
1652 (grub_cmd_openbsd): Fill 'openbsd_root'.
1653
1654 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
1655
1656 * NEWS: Misc adjustments.
1657
1658 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
1661
1662 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
1663
1664 * configure.ac: Bump version to 1.97.
1665
1666 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
1667
1668 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
1669 -mno-3dnow on x86 architectures. Some toolchains enable these
1670 features by default, but they rely on registers that aren't enabled
1671 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
1672
1673 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
1674
1675 Make entry text a bit more readable.
1676
1677 * util/grub.d/10_linux.in: Add `with' before `Linux'.
1678
1679 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
1682
1683 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
1686 operations.
1687
1688 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * configure.ac: Add missing dollar.
1691
1692 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
1695
1696 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
1697 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
1698 exports.
1699 * include/grub/sparc64/libgcc.h: Likewise. Use
1700 preprocessor conditionals.
1701
1702 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1703
1704 * conf/common.rmk (grub-dumpbios): Remove rule.
1705 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
1706 * util/grub-dumpbios.in: Remove file.
1707
1708 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1709
1710 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
1711 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
1712
1713 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
1714 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
1715 users.
1716
1717 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
1718 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
1719 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
1720 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
1721 users.
1722
1723 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
1724
1725 * term/tparm.c: Switch to GPLv3.
1726
1727 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1728
1729 * include/grub/i386/cpuid.h: Add header protection.
1730
1731 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1732
1733 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
1734
1735 * include/grub/i386/cpuid.h: New file.
1736 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
1737 (has_longmode): Rename to ...
1738 (grub_cpuid_has_longmode): ... this. Update all users. Remove
1739 `static' attribute.
1740 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
1741 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
1742 on a CPU that doesn't implement AMD64 instruction set.
1743
1744 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1745
1746 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
1747 that version.texi is rebuilt on version number changes.
1748
1749 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1750
1751 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
1752 Fixes bug #27602.
1753
1754 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
1755
1756 * util/i386/pc/grub-install.in: Source
1757 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
1758 that the --grub-probe option will work.
1759 * util/sparc64/ieee1275/grub-install.in: Likewise.
1760
1761 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
1762
1763 * configure.ac: Bump version to 1.97~beta4.
1764
1765 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
1766
1767 Resync grub-mkdevicemap in x86_64-efi.
1768
1769 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
1770 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
1771 `util/devicemap.c'.
1772
1773 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
1774
1775 * util/grub-editenv.c (create_envblk_file): Write new block with a
1776 .new suffix and then rename it into place, to ensure atomic
1777 creation.
1778
1779 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
1780
1781 Do not automatically install headers.
1782
1783 * Makefile.in (include_DATA): Remove. Update all users.
1784
1785 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
1786
1787 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
1788 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
1789
1790 * util/osdetect.lua: Remove.
1791 * script/lua/lauxlib.c: Likewise.
1792 * script/lua/ldebug.c: Likewise.
1793 * script/lua/grub_main.c: Likewise.
1794 * script/lua/lauxlib.h: Likewise.
1795 * script/lua/ldebug.h: Likewise.
1796 * script/lua/ltablib.c: Likewise.
1797 * script/lua/liolib.c: Likewise.
1798 * script/lua/lstrlib.c: Likewise.
1799 * script/lua/lualib.h: Likewise.
1800 * script/lua/ldo.c: Likewise.
1801 * script/lua/ldump.c: Likewise.
1802 * script/lua/ldo.h: Likewise.
1803 * script/lua/loslib.c: Likewise.
1804 * script/lua/lundump.c: Likewise.
1805 * script/lua/grub_lib.c: Likewise.
1806 * script/lua/ldblib.c: Likewise.
1807 * script/lua/lundump.h: Likewise.
1808 * script/lua/lmem.c: Likewise.
1809 * script/lua/grub_lib.h: Likewise.
1810 * script/lua/lmathlib.c: Likewise.
1811 * script/lua/lstate.c: Likewise.
1812 * script/lua/ltm.c: Likewise.
1813 * script/lua/lvm.c: Likewise.
1814 * script/lua/lmem.h: Likewise.
1815 * script/lua/lstate.h: Likewise.
1816 * script/lua/ltm.h: Likewise.
1817 * script/lua/ltable.c: Likewise.
1818 * script/lua/lvm.h: Likewise.
1819 * script/lua/llex.c: Likewise.
1820 * script/lua/lgc.c: Likewise.
1821 * script/lua/grub_lua.h: Likewise.
1822 * script/lua/loadlib.c: Likewise.
1823 * script/lua/lfunc.c: Likewise.
1824 * script/lua/lopcodes.c: Likewise.
1825 * script/lua/lparser.c: Likewise.
1826 * script/lua/ltable.h: Likewise.
1827 * script/lua/llex.h: Likewise.
1828 * script/lua/lgc.h: Likewise.
1829 * script/lua/lfunc.h: Likewise.
1830 * script/lua/lbaselib.c: Likewise.
1831 * script/lua/lopcodes.h: Likewise.
1832 * script/lua/lparser.h: Likewise.
1833 * script/lua/lzio.c: Likewise.
1834 * script/lua/linit.c: Likewise.
1835 * script/lua/lobject.c: Likewise.
1836 * script/lua/llimits.h: Likewise.
1837 * script/lua/lstring.c: Likewise.
1838 * script/lua/lzio.h: Likewise.
1839 * script/lua/lapi.c: Likewise.
1840 * script/lua/lcode.c: Likewise.
1841 * script/lua/lua.h: Likewise.
1842 * script/lua/lobject.h: Likewise.
1843 * script/lua/lstring.h: Likewise.
1844 * script/lua/lapi.h: Likewise.
1845 * script/lua/lcode.h: Likewise.
1846 * script/lua/luaconf.h: Likewise.
1847
1848 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
1849
1850 * docs/grub.texi (Command-line and menu entry commands): Document
1851 date and echo commands.
1852
1853 2009-09-24 Pavel Roskin <proski@gnu.org>
1854
1855 * include/grub/kernel.h (struct grub_module_header): Remove
1856 `grub_module_header_types'. Make `type' unsigned. Make `size'
1857 32-bit on all platforms.
1858 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
1859 8-bit field. Use grub_host_to_target32() for `size'.
1860 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
1861 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
1862 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
1863
1864 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1865
1866 Fix "lost keypress" bug in at_keyboard.
1867
1868 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
1869 Checks for readyness of input buffer (without flushing it).
1870 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
1871 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
1872
1873 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1874
1875 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
1876 size check within GRUB_MACHINE_PCBIOS section.
1877
1878 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1879
1880 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
1881 return value.
1882 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
1883 KEYBOARD_ISREADY check.
1884 (grub_at_keyboard_checkkey): Rename to ...
1885 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
1886 Remove gratuitous cast.
1887
1888 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
1889
1890 * configure.ac: Call AC_PROG_MKDIR_P.
1891 * Makefile.in (docs/stamp-vti): Create docs directory. Create
1892 version.texi in $(builddir) rather than $(srcdir).
1893 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
1894 to makeinfo's @include search path.
1895
1896 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
1897
1898 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
1899
1900 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
1901
1902 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
1903 for `*.dpkg-new'.
1904
1905 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
1906
1907 Build info documentation. Some code borrowed from Automake.
1908
1909 * configure.ac: Check for makeinfo.
1910 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
1911 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
1912 docs/version.texi.
1913 (MOSTLYCLEANFILES): Add vti.tmp.
1914 (docs/version.texi, docs/stamp-vti): Update automatically.
1915 (docs/grub.info): Build info documentation. Use --force and ignore
1916 errors for now.
1917 (all-local): Add $(INFOS).
1918 (install-local): Install info files.
1919 (uninstall): Uninstall info files.
1920 * docs/version.texi: Remove from revision control. This file is
1921 automatically generated on build now.
1922 * gendistlist.sh: Add `*.info'.
1923
1924 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
1925
1926 * kern/term.c: Fix indentation.
1927
1928 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
1929
1930 * util/hostdisk.c: Fix a comment.
1931
1932 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
1933
1934 Fix regression introduced in r2539.
1935
1936 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
1937 to 0xA1.
1938
1939 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
1940
1941 * util/grub.d/30_os-prober.in: Don't throw away stderr from
1942 os-prober. Under normal operation, it does not print anything to
1943 stderr; if it does, we need to debug it, and throwing away stderr
1944 makes that excessively difficult.
1945
1946 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
1947
1948 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
1949
1950 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1951
1952 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
1953 AC_LANG_PROGRAM from autoconf.
1954 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
1955 prototypes (fixes warning).
1956
1957 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
1958 `--disable-werror' was used.
1959
1960 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1961
1962 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
1963 uninitialized `lastaddr'.
1964
1965 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
1968
1969 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
1970
1971 * commands/test.c (get_fileinfo): Return immediately if
1972 grub_fs_probe fails.
1973
1974 2009-09-14 José Martínez <xosemp@gmail.com>
1975
1976 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
1977
1978 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
1979
1980 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
1981 output.
1982
1983 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
1984
1985 * configure.ac: Remove --enable-grub-pe2elf. Only build
1986 grub-pe2elf when needed by the build system itself.
1987 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
1988
1989 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1990
1991 * configure.ac: Bump version to 1.97~beta3.
1992 * docs/version.texi: Likewise.
1993
1994 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1995
1996 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
1997 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
1998 from here ...
1999 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
2000 (grub_linux_setup_video): ... to here (with some adjustments).
2001
2002 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
2003
2004 Fix memory corruption issue (spotted by Colin Watson).
2005
2006 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
2007 causing returned size to be stored in an incorrect memory location.
2008 Fix use of uninitialized value when storing the returned size.
2009
2010 2009-09-12 Yves Blusseau <blusseau@zetam.org>
2011
2012 Change clean rules to properly remove files
2013
2014 * genmk.rb: add new clean rules
2015 * Makefile.in (clean): add the new targets
2016 (mostlyclean): likewise
2017
2018 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
2019
2020 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
2021 to grub_uint64_t.
2022 * fs/ntfs.c (init_file): Understand 64-bit sizes for
2023 non-resident files.
2024
2025 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
2026
2027 * configure.ac: Don't look for help2man when cross-compiling. Fixes
2028 part of bug #27349.
2029
2030 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
2031
2032 * util/grub-mkconfig.in: Make the created config mode 400 and
2033 print a warning if it fails.
2034
2035 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
2036
2037 * util/grub.d/40_custom.in: Ask user to type custom entries below
2038 comment, rather than below 'exec tail' line.
2039
2040 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
2041
2042 * util/grub.d/40_custom.in: Make sure that the explanatory text is
2043 visible in grub.cfg.
2044
2045 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
2046
2047 * util/grub.d/40_custom.in: Make it a little clearer how to use this
2048 file.
2049
2050 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
2051
2052 * docs/grub.cfg: Add an example menu entry for memtest86+.
2053
2054 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
2055
2056 * config.guess: Update to latest version from config git.
2057 * config.sub: Likewise.
2058
2059 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
2060
2061 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
2062 unknown-command case. Fixes bug #27320.
2063
2064 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
2065
2066 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
2067 `help' if the command exists.
2068
2069 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
2070
2071 * INSTALL: Require GCC 4.1.3 or later.
2072
2073 2009-09-06 Yves Blusseau <blusseau@zetam.org>
2074
2075 * Makefile.in (RMKFILES): add i386-qemu.rmk
2076 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
2077 $(srcdir)/stamp-h.in
2078
2079 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
2080
2081 * util/grub-probe.c (probe): Comment out buggy codepath, which
2082 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
2083 should be re-enabled after 1.97.
2084
2085 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
2086
2087 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
2088 find searches for.
2089
2090 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
2093 unnecessary calls to grub_error.
2094
2095 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
2096
2097 * NEWS: Mention `keystatus' and Unicode fonts.
2098
2099 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
2100
2101 * configure.ac: Bump version to 1.97~beta2.
2102 * docs/version.texi: Likewise.
2103
2104 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
2105
2106 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
2107 containing unwind information in some cases where it previously did
2108 not. Use -fno-dwarf2-cfi-asm if available to restore the old
2109 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
2110 discussion.
2111
2112 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
2113
2114 Embedding loadenv module into grub-emu
2115
2116 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
2117 commands/loadenv.c
2118 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
2119 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
2120 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
2121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
2122 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
2123 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
2124
2125 2009-09-03 Magnus Granberg <zorry@ume.nu>
2126
2127 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
2128 include -fPIE in the default specs.
2129 * configure.ac: Check if pie_possible is yes and add -fno-PIE
2130 to TARGET_CFLAGS.
2131
2132 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
2133
2134 * INSTALL: Note that GNU Bison 2.3 or later is required.
2135
2136 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
2137
2138 * kern/i386/pc/startup.S: Fix typo.
2139
2140 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
2143 according to GCS.
2144
2145 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
2146
2147 * docs/grub.texi (Naming convention): Describe one-based partition
2148 numbering.
2149 (Device syntax): Likewise.
2150 (File name syntax): Likewise.
2151 (Block list syntax): Likewise.
2152 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
2153 menu.lst.
2154 (File name syntax): Likewise.
2155 (Command-line and menu entry commands): Document acpi, blocklist,
2156 crc, export, insmod, keystatus, ls, set, and unset commands.
2157
2158 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
2159
2160 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
2161 to avoid implying that only one of --shift, --ctrl, or --alt may be
2162 used.
2163
2164 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
2165
2166 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
2167 rather than comparing against S_IFREG, which will almost never work.
2168
2169 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
2172 (write_blocklists): Likewise.
2173
2174 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
2175
2176 * script/lua/grub_lua.h (fputs): Supply a format string as the first
2177 argument to grub_printf.
2178
2179 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
2180
2181 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
2182 non GNU test.
2183
2184 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 * kern/file.c (grub_file_read): Spelling fix
2187
2188 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
2191 loading of headers in some cases.
2192
2193 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
2194
2195 * configure.ac: Bump version to 1.97~beta1.
2196 * docs/version.texi: Likewise.
2197
2198 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * include/grub/i386/xnu.h: Add license header.
2201 include grub/err.h explicitly.
2202
2203 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
2204
2205 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
2206 to `ufs' in the vfs.root.mountfrom kernel parameter.
2207
2208 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
2209
2210 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
2211
2212 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
2213 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
2214
2215 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
2216 `ARRAY_SIZE' macro.
2217
2218 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * kern/file.c (grub_file_read): Check offset.
2221 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
2222 * fs/jfs.c (grub_jfs_read_file): Likewise.
2223 * fs/ntfs.c (grub_ntfs_read): Likewise.
2224 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
2225 * fs/minix.c (grub_minix_read_file): Correct offset check.
2226 * fs/ufs.c (grub_ufs_read_file): Likewise.
2227
2228 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
2229
2230 * term/i386/pc/console.c (bios_data_area): Cast
2231 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
2232
2233 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 1-bit optimised blitters.
2236
2237 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
2238 prototype.
2239 (grub_video_fbblit_replace_24bit_1bit): Likewise.
2240 (grub_video_fbblit_replace_16bit_1bit): Likewise.
2241 (grub_video_fbblit_replace_8bit_1bit): Likewise.
2242 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
2243 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
2244 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
2245 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
2246 function.
2247 (grub_video_fbblit_replace_24bit_1bit): Likewise.
2248 (grub_video_fbblit_replace_16bit_1bit): Likewise.
2249 (grub_video_fbblit_replace_8bit_1bit): Likewise.
2250 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
2251 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
2252 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
2253 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
2254 when possible.
2255 * video/video.c (grub_video_get_blit_format): Return
2256 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
2257
2258 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
2259
2260 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
2261 the first argument to grub_printf.
2262
2263 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
2264 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
2265
2266 Add `getkeystatus' terminal method. Add a new `keystatus' command
2267 to query it.
2268
2269 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
2270 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
2271 modifier key bitmasks.
2272 (struct grub_term_input): Add `getkeystatus' member.
2273 (grub_getkeystatus): Add prototype.
2274 * kern/term.c (grub_getkeystatus): New function.
2275
2276 * include/grub/i386/pc/memory.h
2277 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
2278 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
2279 Data Area layout.
2280 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
2281 (grub_console_term_input): Set `getkeystatus' member.
2282 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
2283 constants.
2284 (grub_usb_keyboard_getreport): Likewise.
2285 (grub_usb_keyboard_checkkey): Likewise.
2286 (grub_usb_keyboard_getkeystatus): New function.
2287 (grub_usb_keyboard_term): Set `getkeystatus' member.
2288
2289 * commands/keystatus.c: New file.
2290 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
2291 (keystatus_mod_SOURCES): New variable.
2292 (keystatus_mod_CFLAGS): Likewise.
2293 (keystatus_mod_LDFLAGS): Likewise.
2294 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
2295 commands/keystatus.c.
2296 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2297 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2298 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2300 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2301 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2302
2303 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 Split befs.mod and afs.mod into *_be.mod and *.mod
2306
2307 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
2308 (grub_fstest_SOURCES): Likewise.
2309 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
2310 (afs_be_mod_SOURCES): New variable.
2311 (afs_be_mod_CFLAGS): Likewise.
2312 (afs_be_mod_LDFLAGS): Likewise.
2313 (befs_be_mod_SOURCES): Likewise.
2314 (befs_be_mod_CFLAGS): Likewise.
2315 (befs_be_mod_LDFLAGS): Likewise.
2316 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
2317 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2318 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2319 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2320 (grub_emu_SOURCES): Likewise.
2321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2322 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2323 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2324 * fs/afs_be.c: New file.
2325 * fs/befs_be.c: New file.
2326 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
2327 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
2328 (U16): Replaced with ...
2329 (grub_afs_to_cpu16): ...this. All users updated.
2330 (U32): Replaced with ...
2331 (grub_afs_to_cpu32): ...this. All users updated.
2332 (U64): Replaced with ...
2333 (grub_afs_to_cpu64): ...this. All users updated.
2334 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
2335 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
2336 (grub_afs_validate_sblock): Check only one endianness.
2337 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
2338 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
2339 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
2340 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
2341 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
2342 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
2343 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
2344 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
2345
2346 2009-08-26 Bean <bean123ch@gmail.com>
2347
2348 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
2349 64-bit number.
2350 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
2351 (grub_xfs_inode_block): Change return type to grub_uint64_t.
2352 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
2353
2354 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 NetBSD memory map support.
2357
2358 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
2359 (grub_netbsd_btinfo_mmap_header): New structure.
2360 (grub_netbsd_btinfo_mmap_entry): Likewise.
2361 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
2362
2363 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 Enable bsd.mod on coreboot.
2366
2367 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
2368 (bsd_mod_SOURCES): New variable.
2369 (bsd_mod_CFLAGS): Likewise.
2370 (bsd_mod_LDFLAGS): Likewise.
2371 (bsd_mod_ASFLAGS): Likewise.
2372 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
2373 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
2374
2375 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 Cleanup NetBSD root support.
2378
2379 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
2380 grub_bsd_get_device.
2381 Fix typo.
2382
2383 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
2384
2385 * util/grub.d/00_header.in: Move check for the video backend of
2386 gfxterm from here ...
2387 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
2388 a suitable video backend.
2389
2390 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2391
2392 Fix breakage in grub-setup.
2393
2394 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
2395 "msdos_partition_map".
2396
2397 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 Fix breakage in normal/auth.c.
2400
2401 * normal/auth.c (grub_iswordseparator): New function.
2402
2403 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 Authentication support.
2406
2407 * commands/password.c: New file.
2408 * conf/common.rmk (pkglib_MODULES): Add password.mod.
2409 (password_mod_SOURCES): New variable.
2410 (password_mod_CFLAGS): Likewise.
2411 (password_mod_LDFLAGS): Likewise.
2412 (normal_mod_SOURCES): Add normal/auth.c.
2413 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
2414 normal/auth.c.
2415 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2416 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2417 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2418 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2419 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2420 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2421 * include/grub/auth.h: New file.
2422 * include/grub/err.h (grub_err_t): New enum value
2423 GRUB_ERR_ACCESS_DENIED.
2424 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
2425 'users'.
2426 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
2427 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
2428 users updated.
2429 * normal/auth.c: New file.
2430 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
2431 (grub_cmdline_run): Don't allow to go to command line without
2432 authentication.
2433 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
2434 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
2435 menuentry without superuser rights.
2436 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
2437 user isn't a superuser.
2438
2439 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 Save space by inlining misc.c functions.
2442
2443 * kern/misc.c (grub_iswordseparator): Made static.
2444 * kern/misc.c (grub_strcat): Moved from here ...
2445 * include/grub/misc.h (grub_strcat): ... here. Inlined.
2446 * kern/misc.c (grub_strncat): Moved from here ...
2447 * include/grub/misc.h (grub_strncat): ... here. Inlined.
2448 * kern/misc.c (grub_strcasecmp): Moved from here ...
2449 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
2450 * kern/misc.c (grub_strncasecmp): Moved from here ...
2451 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
2452 * kern/misc.c (grub_isalpha): Moved from here ...
2453 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
2454 * kern/misc.c (grub_isdigit): Moved from here ...
2455 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
2456 * kern/misc.c (grub_isgraph): Moved from here ...
2457 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
2458 * kern/misc.c (grub_tolower): Moved from here ...
2459 * include/grub/misc.h (grub_tolower): ... here. Inlined.
2460
2461 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * script/sh/function.c (grub_script_function_find): Cut error message
2464 not to flood terminal.
2465 * script/sh/lexer.c (grub_script_yylex): Remove command line length
2466 limit.
2467 * script/sh/script.c (grub_script_arg_add): Duplicate string.
2468
2469 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
2470
2471 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
2472 `report' grub_uint8_t *.
2473 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
2474 Use a 50-millisecond timeout rather than just repeating
2475 grub_usb_keyboard_getreport 50 times.
2476 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
2477
2478 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2479
2480 Rename *_partition_map to part_*
2481
2482 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
2483 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
2484 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
2485 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
2486 All users updated.
2487 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
2488 All users updated.
2489 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
2490 * util/grub-probe.c (probe_partmap): Don't transform partition name
2491 to get module name.
2492
2493 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 Fix OpenBSD and NetBSD support.
2496
2497 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
2498 memory address conflict.
2499 (OPENBSD_MMAP_ACPI): New definition.
2500 (OPENBSD_MMAP_NVS): Likewise.
2501 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
2502 and OPENBSD_MMAP_NVS.
2503 Add memory map terminator
2504 Explicit cast when calling grub_unix_real_boot.
2505 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
2506
2507 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 Let user specify NetBSD root device.
2510
2511 * loader/i386/bsd.c (netbsd_root): New variable.
2512 (netbsd_opts): New option 'root'.
2513 (NETBSD_ROOT_ARG): New macro.
2514 (grub_netbsd_boot): Use 'netbsd_root'.
2515 (grub_bsd_unload): Free 'netbsd_root'.
2516 (grub_cmd_netbsd): Fill 'netbsd_root'.
2517
2518 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 Support for 64-bit NetBSD.
2521
2522 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
2523 point when booting non-FreeBSD.
2524
2525 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2526
2527 Support --no-smp and --no-acpi for NetBSD.
2528
2529 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
2530 (NETBSD_AB_NOACPI): Likewise.
2531 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
2532 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
2533
2534 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
2537 errors.
2538 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
2539 errors. Call grub_error when needed.
2540
2541 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * commands/search.c (search_fs): Try searching without autoload first.
2544 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
2545 filesystem module explicitly for faster booting.
2546
2547 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
2548
2549 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
2550
2551 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
2552
2553 * util/grub.d/30_os-prober.in: Disable os-prober if
2554 `GRUB_DISABLE_OS_PROBER' was set to true.
2555
2556 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
2557
2558 * partmap/pc.c: Rename to ...
2559 * partmap/msdos.c: ... this. Update all users.
2560 (grub_pc_partition_map): Rename to ...
2561 (grub_msdos_partition_map): ... this. Update all users.
2562
2563 * parttool/pcpart.c: Rename to ...
2564 * parttool/msdospart.c: ... this. Update all users.
2565
2566 * include/grub/pc_partition.h: Rename to ...
2567 * include/grub/msdos_partition.h: ... this. Update all users.
2568 (grub_pc_partition_bsd_entry): Rename to ...
2569 (grub_msdos_partition_bsd_entry): ... this. Update all users.
2570 (grub_pc_partition_disk_label): Rename to ...
2571 (grub_msdos_partition_disk_label): ... this. Update all users.
2572 (grub_pc_partition_entry): Rename to ...
2573 (grub_msdos_partition_entry): ... this. Update all users.
2574 (grub_pc_partition_mbr): Rename to ...
2575 (grub_msdos_partition_mbr): ... this. Update all users.
2576 (grub_pc_partition): Rename to ...
2577 (grub_msdos_partition): ... this. Update all users.
2578 (grub_pc_partition_is_empty): Rename to ...
2579 (grub_msdos_partition_is_empty): ... this. Update all users.
2580 (grub_pc_partition_is_extended): Rename to ...
2581 (grub_msdos_partition_is_extended): ... this. Update all users.
2582 (grub_pc_partition_is_bsd): Rename to ...
2583 (grub_msdos_partition_is_bsd): ... this. Update all users.
2584
2585 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
2586 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
2587 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
2588 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
2589 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
2590 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
2591 (gpt_mod_LDFLAGS): Rename to ...
2592 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
2593 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
2594 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
2595 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
2596 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
2597 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
2598 (part_gpt_mod_LDFLAGS): ... this.
2599 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
2600 `pcpart.mod' to `msdospart.mod'.
2601 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
2602 to ...
2603 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
2604 (msdospart_mod_LDFLAGS): ... this.
2605
2606 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2607
2608 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
2609 (openbsd_opts): Likewise.
2610 (netbsd_opts): Likewise.
2611 (freebsd_flags): Added 0 terminator.
2612 (openbsd_flags): Likewise.
2613 (netbsd_flags): Likewise.
2614 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
2615 (grub_cmd_freebsd): Transformed into extended command.
2616 (grub_cmd_openbsd): Likewise.
2617 (grub_cmd_netbsd): Likewise.
2618 (cmd_freebsd): Changed type to grub_extcmd_t.
2619 (cmd_openbsd): Likewise.
2620 (cmd_netbsd): Likewise.
2621 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
2622 grub_cmd_openbsd as extended commands.
2623 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
2624 cmd_netbsd and cmd_openbsd
2625
2626 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
2629
2630 2009-08-21 Pavel Roskin <proski@gnu.org>
2631
2632 * Makefile.in (install-local): When checking if a file is in the
2633 build directory, use "test -e" to detect symlinks.
2634
2635 * Makefile.in (install-local): Remove all files in
2636 $(DESTDIR)$(pkglibdir) before installing new files there.
2637
2638 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
2639
2640 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
2641 grub-mkelfimage.
2642
2643 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
2644
2645 * util/grub-mkconfig.in: Don't use gfxterm by default if not
2646 explicitly specified by the user.
2647
2648 2009-08-18 Pavel Roskin <proski@gnu.org>
2649
2650 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
2651 grub_uint8_t pointer for data.
2652 * include/grub/fbutil.h (struct grub_video_fbblit_info):
2653 Likewise.
2654 * video/fb/fbutil.c: Remove unnecessary casts.
2655
2656 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
2657
2658 VBE cleanup.
2659
2660 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
2661 (grub_vbe_set_video_mode): Save active mode info
2662 only after setting the mode.
2663 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
2664 second argument.
2665
2666 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
2667
2668 Rename variables for clarity.
2669
2670 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
2671 (active_vbe_mode_info): ... this. All users updated.
2672 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
2673 All users updated.
2674 (initial_mode): Rename to ...
2675 (initial_vbe_mode): ... this. All users updated.
2676 (mode_in_use): Rename to ..
2677 (vbe_mode_in_use): ... this. All users updated.
2678 (mode_list): Rename to ..
2679 (vbe_mode_list): ... this. All users updated.
2680 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
2681 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
2682 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
2683 'mode_list_size' to 'vbe_mode_list_size'.
2684 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
2685 'best_mode_info' to 'best_vbe_mode_info' and
2686 'best_mode' to 'best_vbe_mode'
2687
2688 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
2689
2690 Remove duplicate grub_video_fb_get_video_ptr.
2691
2692 * include/grub/fbutil.h (get_data_ptr): Rename to ...
2693 (grub_video_fb_get_video_ptr): ... this.
2694 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
2695 * video/fb/fbutil.c: Add comment about addressing.
2696 (get_data_ptr): Rename to ...
2697 (grub_video_fb_get_video_ptr): ... this. All users updated.
2698 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
2699
2700 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2701
2702 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
2703 grub_dprintf() that was just added.
2704
2705 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2706
2707 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
2708 (DEFAULT_VIDEO_MODE): Remove macros.
2709 (grub_linux_boot): Remove assumption that Linux has FB support,
2710 and use "text" as default video mode.
2711
2712 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
2715 grub_dprintf.
2716 * fs/fat.c (grub_fat_read_data): Likewise.
2717
2718 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
2721 payload.
2722 (grub_module): Likewise.
2723
2724 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2725
2726 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
2727 mbi->cmdline but free playground.
2728
2729 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 Handle group offset on UFS1.
2732
2733 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
2734 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
2735
2736 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 Split ufs.mod into ufs1.mod and ufs2.mod.
2739
2740 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
2741 (grub_fstest_SOURCES): Likewise.
2742 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
2743 (ufs_mod_SOURCES): Remove.
2744 (ufs_mod_CFLAGS): Likewise.
2745 (ufs_mod_LDFLAGS): Likewise.
2746 (ufs1_mod_SOURCES): New variable.
2747 (ufs1_mod_CFLAGS): Likewise.
2748 (ufs1_mod_LDFLAGS): Likewise.
2749 (ufs2_mod_SOURCES): New variable.
2750 (ufs2_mod_CFLAGS): Likewise.
2751 (ufs2_mod_LDFLAGS): Likewise.
2752 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
2753 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2754 Likewise.
2755 (grub_emu_SOURCES): Likewise.
2756 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2757 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2758 (grub_setup_SOURCES): Likewise.
2759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2760 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
2761 (grub_setup_SOURCES): Likewise.
2762 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2763 Likewise.
2764 * fs/ufs2.c: New file.
2765 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
2766
2767 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 Framebuffer split.
2770
2771 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
2772 subsystem at the end.
2773 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
2774 (video_fb_mod_SOURCES): New variable.
2775 (video_fb_mod_CFLAGS): Likewise.
2776 (video_fb_mod_LDFLAGS): Likewise.
2777 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
2778 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
2779 * video/i386/pc/vbeblit.c: Moved from here ...
2780 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
2781 * video/i386/pc/vbefill.c: Moved from here ...
2782 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
2783 * video/i386/pc/vbeutil.c: Moved from here ...
2784 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
2785 * include/grub/i386/pc/vbeblit.h: Moved from here ...
2786 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
2787 * include/grub/i386/pc/vbefill.h: Moved from here ...
2788 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
2789 * include/grub/i386/pc/vbeutil.h: Moved from here ...
2790 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
2791 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
2792 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
2793 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
2794 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
2795 (grub_video_adapter): Added 'get_info_and_fini'.
2796 (grub_video_get_info_and_fini): New prototype.
2797 (grub_video_set_mode): make modestring const char *.
2798 * loader/i386/linux.c (grub_linux_setup_video): Use
2799 grub_video_get_info_and_fini.
2800 (grub_linux_boot): Move modesetting just before booting.
2801 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
2802 grub_video_get_info_and_fini.
2803 * video/i386/pc/vbe.c: Moved framebuffer part ...
2804 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
2805 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
2806 grub_video_fbstd_colors and grub_video_fb_set_palette.
2807 (grub_video_vbe_init): Clear 'framebuffer' variable and use
2808 grub_video_fb_init.
2809 (grub_video_vbe_fini): Use grub_video_fb_fini.
2810 (grub_video_vbe_setup): Use framebuffer.render_target instead of
2811 render_target and use grub_video_fb_set_active_render_target and
2812 grub_video_fb_set_palette.
2813 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
2814 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
2815 (grub_video_vbe_adapter): Use framebuffer.
2816 * video/video.c (grub_video_get_info_and_fini): New function.
2817 (grub_video_set_mode): Make modestring const char *.
2818 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
2819 values are already initialised.
2820
2821 2009-08-14 Pavel Roskin <proski@gnu.org>
2822
2823 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
2824 ABS and APPLE_CC.
2825 * boot/i386/pc/diskboot.S: Likewise.
2826 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
2827 sectors allow compilation on MacOSX.
2828 * conf/i386-pc.rmk: Enable unconditional compilation of
2829 lnxboot.img.
2830
2831 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
2832
2833 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
2834 * util/grub.d/00_header.in: Enter interruptible sleep if
2835 GRUB_HIDDEN_TIMEOUT is set.
2836
2837 2009-08-13 Yves Blusseau <blusseau@zetam.org>
2838
2839 * include/grub/symbol.h: Add the LOCAL macro.
2840 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
2841 starting with "L_".
2842
2843 2009-08-13 Pavel Roskin <proski@gnu.org>
2844
2845 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
2846 any modern compilers we support.
2847
2848 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
2849 Use local labels starting with "L_" so that Apple assembler
2850 knows they are local.
2851
2852 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
2853
2854 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
2855 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
2856 (bsd_kernel_types): ... this enum.
2857
2858 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
2859 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
2860 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
2861
2862 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
2863 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
2864 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
2865 messages.
2866
2867 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2868
2869 * util/grub-dumpdevtree: Moved from here ...
2870 * util/i386/efi/grub-dumpdevtree: ... to here.
2871 (hexify): New function. Converts a string to its hex version.
2872 Generate hex versions of "efi" and "device-properties" by calling
2873 hexify() on the ASCII strings rather than by hardcoding numbers.
2874
2875 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2876
2877 * fs/jfs.c: Update copyright year.
2878
2879 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
2880
2881 * util/grub.d/00_header.in: Fix a comment.
2882 * util/grub.d/10_linux.in: Likewise.
2883 * util/grub.d/10_windows.in: Likewise.
2884 * util/grub.d/10_hurd.in: Likewise.
2885
2886 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
2887
2888 * util/grub-mkconfig.in: Allow the user to specify the used font
2889 with GRUB_FONT.
2890
2891 2009-08-08 Pavel Roskin <proski@gnu.org>
2892
2893 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
2894 available, xfs.mod needs it now.
2895
2896 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
2897 the "g" modifier in sed when the intention is to strip something
2898 once. This fixes comparison of kernels with multiple dashes.
2899
2900 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
2901 on it. Add missing space before closing bracket. Fix
2902 misleading formatting.
2903
2904 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2905
2906 * docs/grub.texi: Major overhaul. Remove all sections that are
2907 specific to GRUB Legacy, or mostly composed of Legacy-specific
2908 information.
2909
2910 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2911
2912 * docs/version.texi: New file. Provides version information for
2913 grub.texi.
2914
2915 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2916
2917 * docs/grub.texi: Update CVS information to SVN.
2918 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
2919
2920 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2921
2922 * util/grub-mkconfig.in: Remove a wrong `fi'.
2923
2924 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2925
2926 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
2927 (grub_jfs_uuid): New function.
2928 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
2929
2930 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
2931
2932 * util/grub-mkconfig_lib.in (font_path): Move the functionality
2933 of it to ...
2934 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
2935 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
2936
2937 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2938
2939 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
2940 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
2941 Update all users.
2942
2943 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
2944 not just "vmlinu[zx]".
2945 Moved from here ...
2946 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
2947 all users.
2948
2949 * util/grub.d/10_linux.in (find_latest): Moved from here ...
2950 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
2951 all users.
2952
2953 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2954
2955 * util/grub.d/10_freebsd.in: Use an absolute device path for
2956 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
2957
2958 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
2959
2960 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2961 handling of multiple abstraction modules.
2962
2963 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
2964
2965 Fix a bug resulting in black screen when loading Linux using a
2966 packed video mode.
2967
2968 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
2969 function.
2970
2971 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
2972 (grub_vbe_bios_getset_dac_palette_width): New function.
2973 (grub_vbe_bios_get_dac_palette_width)
2974 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
2975 grub_vbe_bios_getset_dac_palette_width()).
2976
2977 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
2978 check for return status.
2979 (grub_vbe_get_video_mode_info): When getting information for a packed
2980 mode (<= 8 bpp), obtain DAC palette width using
2981 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
2982 {red,green,blue}_mark_size.
2983
2984 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
2985
2986 * commands/search.c (options): Fix help output to match actual code.
2987
2988 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2989
2990 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
2991 of homegrown code.
2992
2993 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
2996 on XFS or ReiserFS.
2997
2998 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 Support Apple partition map with sector size different from 512 bytes.
3001
3002 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
3003 (apple_partition_map_iterate): Respect 'aheader.blocksize'
3004 and 'apart.partmap_size'.
3005
3006 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
3007 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
3008
3009 Fix cpuid command.
3010
3011 * commands/i386/cpuid.c (options): New variable.
3012 (grub_cmd_cpuid): Return real error.
3013 (GRUB_MOD_INIT(cpuid)): Declare options.
3014
3015 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
3018 valid.
3019
3020 2009-07-31 Bean <bean123ch@gmail.com>
3021
3022 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
3023 log2_inode.
3024 (grub_fshelp_node): Move inode field to the end.
3025 (grub_xfs_data): Remove inode field.
3026 (grub_xfs_inode_block): Calculate inode size using sblock.
3027 (grub_xfs_inode_offset): Likewise.
3028 (grub_xfs_read_inode): Calculate inode size using sblock.
3029 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
3030 (grub_xfs_iterate_dir): Calculate inode size using sblock.
3031 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
3032 to match inode size.
3033 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
3034 not accessible when data is null.
3035 (grub_xfs_open): Likewise.
3036
3037 2009-07-31 Bean <bean123ch@gmail.com>
3038
3039 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
3040 Don't change pv->disk if it's already set.
3041
3042 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
3043 (grub_raid_register): ... here.
3044 (grub_raid_rescan): Removed.
3045
3046 * include/grub/raid.h (grub_raid_rescan): Removed.
3047
3048 * util/grub-fstest.c: Remove include file <grub/raid.h>.
3049 (fstest): Replace grub_raid_rescan with module fini function followed
3050 by init function.
3051
3052 * util/grub-probe.c: Add include file <grub/raid.h>.
3053 (probe_raid_level): New function.
3054 (probe): Detect abstraction by walking the disk device, support two
3055 level of abstraction (LVM on RAID) when detecting partition map.
3056
3057 2009-07-31 Pavel Roskin <proski@gnu.org>
3058
3059 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
3060 to grub_zalloc(), it was erroneous.
3061 Reported by Bean <bean123ch@gmail.com>
3062
3063 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
3066 embedding zone, not only the first one.
3067
3068 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
3069
3070 * term/gfxterm.c (clear_char): New function.
3071 (grub_virtual_screen_setup): Use clear_char.
3072 (scroll_up): Likewise.
3073 (grub_virtual_screen_cls): Likewise.
3074
3075 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
3076
3077 * util/deviceiter.c (get_acceleraid_disk_name): New static
3078 function.
3079 (grub_util_iterate_devices): Handle Accelraid devices.
3080 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
3081
3082 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
3083
3084 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
3085 separator for the suggested gfxpayload string (';' collides with the
3086 parser and needs escaping).
3087
3088 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
3091 Clear direction flag before jumping to OS.
3092 (grub_multiboot2_real_boot): Likewise.
3093
3094 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
3095
3096 * util/i386/pc/grub-install: Fix parsing of --disk-module
3097 option.
3098
3099 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
3100
3101 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
3102 when embedding.
3103
3104 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
3105
3106 * util/grub-mkconfig.in (package_version): New variable.
3107 Use it do display the version.
3108
3109 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
3110
3111 * kern/file.c (grub_file_open): Revert to previous check with
3112 grub_errno.
3113
3114 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
3117 from help line. It's out of sync with code.
3118
3119 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
3122 entries on failed boot.
3123
3124 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
3125
3126 * kern/file.c (grub_file_open): Fix an error check.
3127
3128 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
3131 partition map couldn't be identified.
3132
3133 2009-07-23 Pavel Roskin <proski@gnu.org>
3134
3135 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
3136 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
3137 case of little endian words becomes just an optimization.
3138 Respect const modifier.
3139 (md5_final): Use code that doesn't depend on endianness.
3140
3141 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
3142 to avoid loss of upper bits if align is unsigned and shorter
3143 than addr.
3144
3145 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 UUID support for UFS
3148
3149 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
3150 (grub_ufs_uuid): New function.
3151 (grub_ufs_fs): add .uuid
3152
3153 2009-07-21 Pavel Roskin <proski@gnu.org>
3154
3155 * kern/dl.c (grub_dl_check_header): Make static.
3156
3157 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
3158
3159 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
3160 add drivemap for Vista. It breaks Windows 7.
3161
3162 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
3165 128 bytes
3166
3167 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 Add BFS support
3170
3171 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
3172 (grub_fstest_SOURCES): Likewise.
3173 (pkglib_MODULES): Add befs.mod.
3174 (befs_mod_SOURCES): New variable.
3175 (befs_mod_CFLAGS): Likewise.
3176 (befs_mod_LDFLAGS): Likewise.
3177 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3178 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
3179 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3180 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
3181 (grub_setup_SOURCES): Likewise.
3182 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3183 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3184 (grub_setup_SOURCES): Likewise.
3185 * fs/befs.c: New file.
3186 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
3187 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
3188 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
3189 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
3190 (B_KEY_INDEX_ALIGN): New declaration.
3191 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
3192 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
3193 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
3194 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
3195 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
3196 (grub_afs_mount) [MODE_BFS]: Likewise.
3197 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
3198 (grub_afs_fs): Use GRUB_AFS_FSNAME
3199 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
3200 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
3201 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
3202 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
3203
3204 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
3205
3206 * util/getroot.c (find_root_device): Add support for MacOSX.
3207 * util/hostdisk.c: Likewise.
3208
3209 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * font/font.c (find_glyph): Check whether a font is present to avoid
3212 segmentation fault.
3213
3214 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
3215
3216 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
3217
3218 2009-07-20 Pavel Roskin <proski@gnu.org>
3219
3220 * configure.ac: Trim excessively wordy excuses.
3221
3222 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 Add symlink, mtime and label support to AtheFS.
3225
3226 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
3227 (grub_afs_iterate_dir): Handle symlinks.
3228 (grub_afs_open): Use grub_afs_read_symlink.
3229 (grub_afs_dir): Likewise.
3230 Pass mtime.
3231 (grub_afs_label): New function.
3232 (grub_afs_fs): Add grub_afs_label.
3233 (grub_afs_read_symlink): New function.
3234
3235 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 Fix AtheFS support.
3238
3239 * fs/afs.c: Fix comments style.
3240 (grub_afs_blockrun): Declare as packed.
3241 (grub_afs_datastream): Likewise.
3242 (grub_afs_bnode): Likewise.
3243 (grub_afs_btree): Likewise.
3244 (grub_afs_sblock): Likewise.
3245 Declare `name' as char.
3246 (grub_afs_inode): Declare as packed.
3247 Change void *vnode to grub_uint32_t unused.
3248 (grub_afs_iterate_dir): Check that key_size is positive.
3249 (grub_afs_mount): Don't read superblock twice.
3250 (grub_afs_dir): Don't free node in case of error,
3251 grub_fshelp_find_file already handles this.
3252 (grub_afs_open): Likewise.
3253
3254 2009-07-19 Pavel Roskin <proski@gnu.org>
3255
3256 * Makefile.in: Remove LIBLZO and enable_lzo.
3257 * conf/i386-pc.rmk: Remove lzo support.
3258 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
3259 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
3260 support.
3261 * kern/i386/pc/lzo1x.S: Remove.
3262 * kern/i386/pc/startup.S: Remove lzo support.
3263 * util/i386/pc/grub-mkimage.c: Likewise.
3264
3265 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
3268 * fs/xfs.c (grub_xfs_dir): Likewise.
3269 * fs/afs.c (grub_afs_dir): Likewise.
3270 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
3271 (grub_iso9660_open): Likewise.
3272 * fs/jfs.c (grub_jfs_open): Likewise.
3273 * fs/ext2.c (grub_ext2_dir): Likewise.
3274 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
3275 * script/sh/lexer.c (grub_script_yylex): Likewise.
3276
3277 2009-07-16 Pavel Roskin <proski@gnu.org>
3278
3279 * configure.ac: Never add "-c" to CFLAGS.
3280
3281 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
3282
3283 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
3284 grub_cv_cc_efiemu should be used.
3285
3286 * configure.ac: Typo fixes.
3287
3288 * kern/mm.c (grub_zalloc): New function.
3289 (grub_debug_zalloc): Likewise.
3290 * include/grub/mm.h: Declare grub_zalloc() and
3291 grub_debug_zalloc().
3292 * util/misc.c (grub_zalloc): New function.
3293 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
3294 instead of grub_malloc(), remove unneeded initializations.
3295 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
3296 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
3297 * commands/parttool.c (grub_cmd_parttool): Likewise.
3298 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
3299 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
3300 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
3301 * disk/usbms.c (grub_usbms_finddevs): Likewise.
3302 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
3303 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
3304 (grub_cmd_efiemu_pnvram): Likewise.
3305 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
3306 * fs/iso9660.c (grub_iso9660_mount): Likewise.
3307 (grub_iso9660_iterate_dir): Likewise.
3308 * fs/jfs.c (grub_jfs_opendir): Likewise.
3309 * fs/ntfs.c (list_file): Likewise.
3310 (grub_ntfs_mount): Likewise.
3311 * kern/disk.c (grub_disk_open): Likewise.
3312 * kern/dl.c (grub_dl_load_core): Likewise.
3313 * kern/elf.c (grub_elf_file): Likewise.
3314 * kern/env.c (grub_env_context_open): Likewise.
3315 (grub_env_set): Likewise.
3316 (grub_env_set_data_slot): Likewise.
3317 * kern/file.c (grub_file_open): Likewise.
3318 * kern/fs.c (grub_fs_blocklist_open): Likewise.
3319 * loader/i386/multiboot.c (grub_module): Likewise.
3320 * loader/xnu.c (grub_xnu_create_key): Likewise.
3321 (grub_xnu_create_value): Likewise.
3322 * normal/main.c (grub_normal_add_menu_entry): Likewise.
3323 (read_config_file): Likewise.
3324 * normal/menu_entry.c (make_screen): Likewise.
3325 * partmap/sun.c (sun_partition_map_iterate): Likewise.
3326 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
3327 * script/sh/script.c (grub_script_parse): Likewise.
3328 * video/bitmap.c (grub_video_bitmap_create): Likewise.
3329 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
3330 * video/readers/png.c (grub_png_output_byte): Likewise.
3331 (grub_video_reader_png): Likewise.
3332
3333 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 Enable all targets that can be built by default
3336
3337 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
3338 grub-mkfont and grub-fstest if they can be built
3339
3340 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 Fix hang and segmentation fault in grub-emu-usb
3343
3344 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
3345 * util/usb.c (grub_libusb_devices): likewise
3346 (grub_libusb_init): rename to ...
3347 (GRUB_MOD_INIT (libusb)):...this
3348 (grub_libusb_fini): rename to ..
3349 (GRUB_MOD_FINI (libusb)):...this
3350 * disk/usbms.c (grub_usbms_transfer): fix retry logic
3351 * include/grub/disk.h (grub_raid_init): removed, it's useless
3352 (grub_raid_fini): likewise
3353 (grub_lvm_init): likewise
3354 (grub_lvm_fini): likewise
3355 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
3356 by grub_init_all
3357
3358 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 Fix libusb
3361
3362 * Makefile.in (LIBUSB): new macro
3363 * genmk.rb (Utility/print_tail): new method
3364 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
3365 (top level): call util.print_tail at the end.
3366
3367 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 Make FreeBSD accept zpool.cache
3370
3371 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
3372 type is /boot/zfs/zpool.cache
3373
3374 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 Fix 64-bit efiemu
3377
3378 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
3379 correct wrong typedef
3380 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
3381
3382 2009-07-15 Pavel Roskin <proski@gnu.org>
3383
3384 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
3385 * kern/disk.c (struct grub_disk_cache): Likewise.
3386
3387 * commands/probe.c (options): Typo fix.
3388
3389 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
3390 Increase to 0x5a to accommodate FAT32. Adjust other offsets
3391 accordingly.
3392 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
3393
3394 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
3395 the end of "Error" to make the message more readable.
3396
3397 * boot/i386/pc/boot.S (kernel_segment): Remove.
3398 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
3399 for destination.
3400
3401 * boot/i386/pc/boot.S (boot_version): Remove.
3402 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
3403 Remove.
3404
3405 * include/grub/i386/pc/boot.h: Sort all offsets.
3406 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
3407 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
3408 * boot/i386/pc/boot.S: Assert location of every offset listed in
3409 include/grub/i386/pc/boot.h.
3410
3411 2009-07-13 Pavel Roskin <proski@gnu.org>
3412
3413 * include/grub/i386/coreboot/machine.h: Rename
3414 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
3415 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
3416 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
3417
3418 * kern/dl.c: Force native word size to suppress warnings when
3419 compiling grub-emu.
3420
3421 * kern/device.c (grub_device_iterate): Change struct part_ent to
3422 hold the name, not a pointer to it. Use one grub_malloc() per
3423 partition, not two. Free partition_name if grub_malloc() fails.
3424 Set ents to NULL only before grub_partition_iterate() is called.
3425
3426 2009-07-11 Bean <bean123ch@gmail.com>
3427
3428 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
3429 childname.
3430
3431 2009-07-10 Bean <bean123ch@gmail.com>
3432 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
3433
3434 * kern/ieee1275/openfw.c (grub_children_iterate)
3435 (grub_devalias_iterate): Fix size evaluation for property or path
3436 strings, which was broken since r2132.
3437
3438 2009-07-07 Pavel Roskin <proski@gnu.org>
3439
3440 * commands/search.c (search_file): Merge into ...
3441 (search_fs): ... this. Accept search type as argument.
3442 (grub_cmd_search): Pass search type to search_fs().
3443
3444 * include/grub/util/console.h: New file.
3445 * util/console.c: Use it instead of grub/machine/console.h.
3446 * util/grub-emu.c: Likewise.
3447
3448 * lib/arg.c (find_long_option): Remove.
3449 (find_long): Add `len' argument, make `s' const char *.
3450 (grub_arg_parse): Parse long options in place, not in a
3451 temporary buffer.
3452
3453 2009-07-06 Pavel Roskin <proski@gnu.org>
3454
3455 * commands/search.c (search_fs): Fix potential NULL pointer
3456 dereference.
3457
3458 * commands/search.c (search_fs): Replace QUID macro with quid_fn
3459 function pointer.
3460
3461 2009-07-06 Daniel Mierswa <impulze@impulze.org>
3462
3463 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
3464 comparison.
3465
3466 2009-07-05 Pavel Roskin <proski@gnu.org>
3467
3468 * include/grub/i386/linux.h (struct linux_kernel_params):
3469 Restore padding3, it's still needed.
3470
3471 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
3472 FreeBSD.
3473 * util/osdetect.lua: Likewise.
3474
3475 2009-07-05 Bean <bean123ch@gmail.com>
3476
3477 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
3478
3479 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
3480 (grub_lua_getenv): Likewise.
3481 (grub_lua_setenv): Likewise.
3482 (save_errno): New function.
3483 (push_result): Likewise.
3484 (grub_lua_enum_device): Likewise.
3485 (grub_lua_enum_file): Likewise.
3486 (grub_lua_file_open): Likewise.
3487 (grub_lua_file_close): Likewise.
3488 (grub_lua_file_seek): Likewise.
3489 (grub_lua_file_read): Likewise.
3490 (grub_lua_file_getline): Likewise.
3491 (grub_lua_file_getsize): Likewise.
3492 (grub_lua_file_getpos): Likewise.
3493 (grub_lua_file_eof): Likewise.
3494 (grub_lua_file_exist): Likewise.
3495 (grub_lua_add_menu): Likewise.
3496
3497 * script/lua/grub_lua.h (isupper): New inline function.
3498 (islower): Likewise.
3499 (ispunct): Likewise.
3500 (isxdigit): Likewise.
3501 (strcspn): Change to normal function.
3502 (strpbkr): New function declaration.
3503 (memchr): Likewise.
3504
3505 * script/lua/grub_main.c (scan_str): New function.
3506 (strcspn): Likewise.
3507 (strpbrk): Likewise.
3508 (memchr): Likewise.
3509
3510 * script/lua/linit.c (lualibs): Enable the string library.
3511
3512 * util/osdetect.lua: New file.
3513
3514 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
3515
3516 * include/grub/i386/linux.h (struct linux_kernel_params): Add
3517 `capabilities' member.
3518
3519 2009-07-02 Pavel Roskin <proski@gnu.org>
3520
3521 * genparttoollist.sh: Add missing newline at the end.
3522
3523 2009-07-01 Pavel Roskin <proski@gnu.org>
3524
3525 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
3526
3527 * util/hostdisk.c (open_device): Remove `const' from
3528 `sysctl_size', as sysctlbyname() can change it (in this case it
3529 doesn't actually happen).
3530
3531 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
3532 using signed long int constants.
3533
3534 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
3535 constant to avoid a warning on FreeBSD.
3536
3537 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
3538 where it's needed.
3539
3540 * Makefile.in: Install include/grub/machine symlink.
3541
3542 * Makefile.in: When installing symlinks, use "cp -fR", which
3543 works on FreeBSD and MacOSX.
3544 From Yves Blusseau <cl7m42e02@sneakemail.com>
3545
3546 * kern/dl.c (grub_dl_resolve_symbol): Make static.
3547 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
3548
3549 * util/misc.c: Move grub_reboot() and grub_halt() ...
3550 * util/grub-emu.c: ... here. Make main_env static.
3551 * include/grub/util/misc.h: Remove main_env.
3552
3553 * kern/mm.c: Use correct format to print size_t.
3554
3555 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
3556 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
3557 * kern/powerpc/dl.c: Likewise.
3558 * kern/sparc64/dl.c: Likewise.
3559 * kern/x86_64/dl.c: Likewise.
3560
3561 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3562
3563 Fix grub-emu build on sparc64-ieee1275.
3564
3565 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
3567
3568 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3569
3570 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
3571 (grub_reboot, grub_halt): New functions.
3572
3573 * util/i386/pc/misc.c: Delete. Update all users.
3574 * util/sparc64/ieee1275/misc.c: Likewise.
3575 * util/powerpc/ieee1275/misc.c: Likewise.
3576
3577 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3578
3579 * conf/i386.rmk (setjmp_mod_SOURCES)
3580 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
3581 * conf/common.rmk (setjmp_mod_SOURCES)
3582 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
3583 to use $(target_cpu).
3584 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
3585 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
3586 * conf/powerpc-ieee1275.rmk: Likewise.
3587 * conf/sparc64-ieee1275.rmk: Likewise.
3588
3589 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
3590 $(target_cpu) for kern/$(target_cpu)/dl.c.
3591 * conf/i386-efi.rmk: Likewise.
3592 * conf/i386-ieee1275.rmk: Likewise.
3593 * conf/x86_64-efi.rmk: Likewise.
3594 * conf/i386-coreboot.rmk: Likewise.
3595 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
3596 $(target_cpu) for kern/$(target_cpu)/dl.c and for
3597 kern/$(target_cpu)/cache.S.
3598 * conf/sparc64-ieee1275.rmk: Likewise.
3599
3600 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3601
3602 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
3603 type to `grub_uint8_t', and adjust `padding9' accordingly.
3604
3605 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3606
3607 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
3608
3609 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
3610 assembly in final jump, using register constraints.
3611
3612 (grub_linux_boot): For text mode, initialize `have_vga' using
3613 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
3614
3615 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
3616 right before the final jump.
3617
3618 Set `video_mode' to 0x3.
3619
3620 Document initialization of `video_page', `video_mode' and
3621 `video_ega_bx'.
3622
3623 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3624
3625 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
3626 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
3627 and set GRUB_LINUX_FLAG_QUIET appropriately.
3628
3629 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3630
3631 Fix build on Debian / sparc.
3632
3633 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
3634
3635 2009-06-28 Pavel Roskin <proski@gnu.org>
3636
3637 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
3638 fix a warning.
3639
3640 * util/grub.d/10_linux.in: Match SUSE style initrd names.
3641
3642 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3643
3644 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
3645 `err'.
3646
3647 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3648
3649 Revert r2338.
3650
3651 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
3652 file can't be opened. grub_file_open() is already supposed to set
3653 grub_errno / grub_errmsg appropriately.
3654 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3655
3656 2009-06-27 Pavel Roskin <proski@gnu.org>
3657 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3658
3659 * include/grub/dl.h: Include grub/elf.h.
3660 (struct grub_dl): Add symtab field.
3661 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
3662 GRUB_MODULES_MACHINE_READONLY.
3663 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
3664 of the header for read-only modules.
3665 (grub_dl_unload): Free mod->symtab for read-only modules.
3666 * kern/i386/dl.c: Use mod->symtab.
3667 * kern/powerpc/dl.c: Likewise.
3668 * kern/sparc64/dl.c: Likewise.
3669 * kern/x86_64/dl.c: Likewise.
3670
3671 * conf/i386-qemu.rmk: New file.
3672 * kern/i386/qemu/startup.S: Likewise.
3673 * kern/i386/qemu/mmap.c: Likewise.
3674 * boot/i386/qemu/boot.S: Likewise.
3675 * include/grub/i386/qemu/time.h: Likewise.
3676 * include/grub/i386/qemu/serial.h: Likewise.
3677 * include/grub/i386/qemu/kernel.h: Likewise.
3678 * include/grub/i386/qemu/console.h: Likewise.
3679 * include/grub/i386/qemu/boot.h: Likewise.
3680 * include/grub/i386/qemu/init.h: Likewise.
3681 * include/grub/i386/qemu/machine.h: Likewise.
3682 * include/grub/i386/qemu/loader.h: Likewise.
3683 * include/grub/i386/qemu/memory.h: Likewise.
3684
3685 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
3686 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
3687 [qemu] (pkglib_IMAGES): Add `boot.img'.
3688 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
3689 [qemu] (boot_img_FORMAT): New variables.
3690 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
3691 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
3692 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
3693 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3694 [qemu] (kernel_img_FORMAT): New variables.
3695
3696 * configure.ac: Recognise `i386-qemu'.
3697
3698 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
3699 (for no compression).
3700 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
3701 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
3702 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
3703 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
3704 ifdefs).
3705
3706 2009-06-27 Pavel Roskin <proski@gnu.org>
3707
3708 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
3709 read.
3710 * efiemu/prepare32.c: Likewise.
3711 * efiemu/prepare64.c: Likewise.
3712
3713 2009-06-26 Pavel Roskin <proski@gnu.org>
3714
3715 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
3716 * include/grub/elf.h: Define symbols without "32" or "64" based
3717 on GRUB_TARGET_WORDSIZE.
3718 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
3719 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
3720 ELF definitions.
3721 * efiemu/loadcore64.c: Likewise.
3722 * loader/i386/bsd32.c: Likewise.
3723 * loader/i386/bsd64.c: Likewise.
3724 * kern/dl.c: Remove own ELF definitions.
3725 * util/i386/efi/grub-mkimage.c: Likewise.
3726
3727 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
3728
3729 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
3730 segment 0x0 unconditionally, because the reference generated by
3731 GAS is an absolute address.
3732
3733 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3734
3735 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
3736 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
3737
3738 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3739
3740 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
3741 indexes. Check for -f explicitly.
3742 (search_file): Improve error message.
3743 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
3744
3745 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3746
3747 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
3748 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
3749
3750 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3751
3752 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
3753 * conf/i386-ieee1275.rmk: Likewise.
3754 * conf/i386-coreboot.rmk: Likewise.
3755
3756 * kern/i386/pc/startup.S (grub_stop): Remove function.
3757 * kern/i386/ieee1275/startup.S: Likewise.
3758 * kern/i386/coreboot/startup.S: Likewise.
3759 * kern/i386/misc.S (grub_stop): New function.
3760
3761 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3762
3763 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
3764 * kern/i386/realmode.S (real_to_prot): ... to here.
3765
3766 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3767
3768 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
3769 with `kernel.img'.
3770 (kernel_elf_SOURCES): Rename to ...
3771 (kernel_img_SOURCES): ... this.
3772 (kernel_elf_HEADERS): Rename to ...
3773 (kernel_img_HEADERS): ... this. Update all users.
3774 (kernel_elf_ASFLAGS): Rename to ...
3775 (kernel_img_ASFLAGS): ... this.
3776 (kernel_elf_CFLAGS): Rename to ...
3777 (kernel_img_CFLAGS): ... this.
3778 (kernel_elf_LDFLAGS): Rename to ...
3779 (kernel_img_LDFLAGS): ... this.
3780 * conf/i386-coreboot.rmk: Likewise.
3781 * conf/powerpc-ieee1275.rmk: Likewise.
3782
3783 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
3784 with "kernel.img".
3785
3786 2009-06-21 Pavel Roskin <proski@gnu.org>
3787
3788 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
3789 to match nested functions.
3790 * loader/sparc64/ieee1275/linux.c: Likewise.
3791
3792 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
3793
3794 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3795
3796 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
3797 all i386 platforms.
3798
3799 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3800
3801 Fix asm file handling on ELF, and remove workarounds.
3802
3803 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
3804 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
3805 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
3806 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
3807
3808 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 Load BSD ELF modules
3811
3812 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
3813 and loader/i386/bsd64.c
3814 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
3815 (FREEBSD_MODTYPE_ELF_MODULE): New definition
3816 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
3817 (grub_freebsd_load_elfmodule32): New declaration
3818 (grub_freebsd_load_elfmoduleobj64): Likewise
3819 (grub_freebsd_load_elf_meta32): Likewise
3820 (grub_freebsd_load_elf_meta64): Likewise
3821 (grub_freebsd_add_meta): Likewise
3822 (grub_freebsd_add_meta_module): Likewise
3823 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
3824 (grub_freebsd_add_meta_module): Likewise and move module-specific
3825 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
3826 (grub_cmd_freebsd): Add elf-kernel specific parts
3827 based on grub_freebsd_add_meta_module
3828 (grub_cmd_freebsd_module): Add type parsing moved from
3829 grub_freebsd_add_meta_module
3830 (grub_cmd_freebsd_module_elf): New function
3831 (cmd_freebsd_module_elf): New variable
3832 (GRUB_MOD_INIT): Register freebsd_module_elf
3833 * loader/i386/bsd32.c: New file
3834 * loader/i386/bsd64.c: Likewise
3835 * loader/i386/bsdXX.c: Likewise
3836 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
3837 (grub_elf64_load): Likewise
3838 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
3839 All users updated
3840 (grub_elf64_load_hook_t): Likewise
3841
3842 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
3843
3844 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
3845 variable.
3846 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
3847 don't write a menu entry for recovery mode.
3848
3849 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3850
3851 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
3852 after it's no longer needed.
3853
3854 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3855
3856 * include/grub/i386/loader.h (grub_linux_prot_size)
3857 (grub_linux_tmp_addr, grub_linux_real_addr)
3858 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
3859 GRUB_MACHINE_PCBIOS.
3860 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
3861 common grub_util_info() call to ...
3862 (generate_image): ... here.
3863 Fix use of uninitialized memory, comparison of signed with
3864 unsigned integers and memory leak.
3865 Remove bogus module address message.
3866
3867 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
3870 grub_raid_register
3871 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
3872
3873 2009-06-19 Pavel Roskin <proski@gnu.org>
3874
3875 * configure.ac: Remove stray AC_MSG_CHECKING.
3876
3877 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 * disk/scsi.c (grub_scsi_open): use continue instead of big if
3880
3881 2009-06-18 Pavel Roskin <proski@gnu.org>
3882
3883 * conf/common.rmk: Add fs_file.mod.
3884 * disk/fs_file.c: New file.
3885 * include/grub/disk.h (enum grub_disk_dev_id): Add
3886 GRUB_DISK_DEVICE_FILE_ID.
3887
3888 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 Fix build with Apple's toolchain. Part 2
3891
3892 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
3893 a fake start
3894
3895 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 Fix build with Apple's toolchain. Part 1
3898
3899 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
3900 for long calls
3901 * configure.ac: remove a leftover AC_MSG_RESULT
3902 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
3903 Apple's toolchain
3904
3905 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3906
3907 Fix warnings
3908
3909 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
3910 (decomp_block): initialize ch
3911 use grub_memcpy instead of memcpy
3912
3913 2009-06-17 Pavel Roskin <proski@gnu.org>
3914
3915 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
3916 version, use declarations needed to use vga_text as the startup
3917 console.
3918
3919 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
3920 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
3921 the kernel.
3922 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
3923 and grub_at_keyboard_fini(), it's done on module load and
3924 unload.
3925
3926 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
3927
3928 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
3929 file can't be found.
3930 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3931
3932 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 Fix newline handling
3935
3936 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
3937 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
3938 (grub_script_yylex): don't segfault on unterminated script
3939 newline terminates command and variable
3940
3941 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 avoid double grub_adjust_range call. Bug reported by David Simner
3944
3945 * kern/disk.c (grub_disk_write): change to raw disk access before
3946 calling disk_read
3947
3948 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
3949
3950 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
3951 spaces, for the benefit of help2man.
3952 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3953
3954 2009-06-16 Pavel Roskin <proski@gnu.org>
3955
3956 * kern/i386/halt.c: Include grub/machine/init.h.
3957 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
3958
3959 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
3960
3961 * util/grub.d/30_os-prober.in: Use ${root} in the generated
3962 drivemap menuentry.
3963
3964 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
3965
3966 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
3967 `echo' command.
3968
3969 2009-06-16 Pavel Roskin <proski@gnu.org>
3970
3971 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
3972 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
3973 save %dx, we only need %dl and we never change it.
3974 * boot/i386/pc/cdboot.S: Don't set the root drive.
3975 * boot/i386/pc/pxeboot.S: Likewise.
3976 * include/grub/i386/pc/boot.h: Remove
3977 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
3978 GRUB_BOOT_MACHINE_DRIVE_CHECK.
3979 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
3980 * kern/i386/pc/init.c (make_install_device): Remove references
3981 to grub_root_drive.
3982 * kern/i386/pc/startup.S: Likewise.
3983 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
3984
3985 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 xnu_uuid command
3988
3989 * commands/xnu_uuid.c: new file
3990 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
3991 (xnu_uuid_mod_SOURCES): new variable
3992 (xnu_uuid_mod_CFLAGS): likewise
3993 (xnu_uuid_mod_LDFLAGS): likewise
3994 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
3995 * conf/i386-ieee1275.rmk: likewise
3996 * conf/i386-pc.rmk: likewise
3997 * conf/powerpc-ieee1275.rmk: likewise
3998 * conf/sparc64-ieee1275.rmk: likewise
3999 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
4000
4001 2009-06-16 Pavel Roskin <proski@gnu.org>
4002
4003 * configure.ac: Avoid '==' in test command, it's not portable.
4004
4005 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 Probe command
4008
4009 * commands/probe.c: new file
4010 * conf/common.rmk (pkglib_MODULES): add probe.mod
4011 (probe_mod_SOURCES): new variable
4012 (probe_mod_CFLAGS): likewise
4013 (probe_mod_LDFLAGS): likewise
4014 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
4015 * conf/i386-ieee1275.rmk: likewise
4016 * conf/i386-pc.rmk: likewise
4017 * conf/powerpc-ieee1275.rmk: likewise
4018 * conf/sparc64-ieee1275.rmk: likewise
4019
4020 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 Fix handling of string like \"hello\" and "a
4023 b"
4024
4025 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
4026 (grub_script_yylex): fix parsing of quoting, escaping and newline
4027
4028 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
4031 handling
4032
4033 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
4034
4035 * util/grub-mkconfig.in: Fix parsing of --output option.
4036
4037 2009-06-12 Pavel Roskin <proski@gnu.org>
4038
4039 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
4040 genmk.rb don't need to be generated or installed.
4041
4042 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * commands/i386/pc/drivemap_int13h.S: add more comments
4045
4046 2009-06-11 Pavel Roskin <proski@gnu.org>
4047
4048 * Makefile.in (uninstall): Uninstall manuals.
4049
4050 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
4051 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
4052 and update-grub_lib in two places.
4053 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
4054
4055 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
4056 a compiler warning.
4057
4058 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
4059 `entry_lo' to fix variable shadowing.
4060
4061 2009-06-11 Christian Franke <franke@computer.org>
4062
4063 * kern/misc.c (__enable_execute_stack): Add missing return type
4064 to prevent gcc warning.
4065
4066 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
4067
4068 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
4069
4070 2009-06-11 Pavel Roskin <proski@gnu.org>
4071
4072 * Makefile.in: Don't rely on any scripts being executable.
4073 Always use $(SHELL) to run shell scripts.
4074
4075 * configure.ac: Always define ___main if using -nostdlib. This
4076 fixes tests on Cygwin.
4077
4078 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
4079
4080 UDF fix
4081
4082 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
4083 is in bytes and not in blocks
4084
4085 2009-06-11 Pavel Roskin <proski@gnu.org>
4086
4087 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
4088 warning.
4089
4090 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
4091
4092 * util/grub.d/30_os-prober.in: Fix a comment. Source
4093 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
4094 to set the root device. Place drivemap command in the generated
4095 chain entry.
4096
4097 2009-06-11 Pavel Roskin <proski@gnu.org>
4098
4099 * configure.ac: Remove host_m32. Issues with 64-bit utilities
4100 have long been resolved.
4101
4102 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
4103
4104 * util/grub.d/10_linux.in: Capitalise "Linux".
4105
4106 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
4107
4108 2009-06-11 Pavel Roskin <proski@gnu.org>
4109
4110 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
4111 fix a gcc warning and ensure that the function won't ever exit.
4112
4113 * kern/i386/ieee1275/init.c: Add missing prototype for
4114 grub_stop_floppy().
4115
4116 * loader/ieee1275/multiboot2.c [__i386__]: Include
4117 grub/cpu/multiboot.h.
4118
4119 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
4120 casts to short - they are not portable and cause warnings. Fix
4121 use of uninitialized values in input_buf. Use ARRAY_SIZE.
4122
4123 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 Drivemap fixes
4126
4127 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
4128 new function
4129 (grub_get_root_biosnumber_saved): new variable
4130 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
4131 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
4132 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
4133 %dx after the call if necessary
4134 * conf/common.rmk (pkglib_MODULES): remove boot.mod
4135 (boot_mod_SOURCES): remove
4136 (boot_mod_CFLAGS): remove
4137 (boot_mod_LDFLAGS): remove
4138 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
4139 (boot_mod_SOURCES): new variable
4140 (boot_mod_CFLAGS): likewise
4141 (boot_mod_LDFLAGS): likewise
4142 * conf/i386-efi.rmk: likewise
4143 * conf/i386-ieee1275.rmk: likewise
4144 * conf/i386-pc.rmk: likewise
4145 * conf/powerpc-ieee1275.rmk: likewise
4146 * conf/sparc64-ieee1275.rmk: likewise
4147 * conf/x86_64-efi.rmk: likewise
4148 * include/grub/i386/pc/biosnum.h: new file
4149 * lib/i386/pc/biosnum.c: likewise
4150 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
4151 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
4152 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
4153
4154 2009-06-10 Pavel Roskin <proski@gnu.org>
4155
4156 * io/gzio.c (test_header): Don't reuse one buffer for all data.
4157 Use separate variables. Read only the file size at the end, but
4158 not the checksum that we don't use.
4159
4160 * kern/file.c (grub_file_read): Use void pointer for the buffer.
4161 Adjust all callers.
4162
4163 * kern/ieee1275/openfw.c: Remove libc includes.
4164 * kern/ieee1275/cmain.c: Likewise.
4165 * include/grub/ieee1275/ieee1275.h: Likewise.
4166
4167 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
4168 compiler warnings.
4169
4170 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
4171
4172 * Makefile.in: Remove all trailing whitespace.
4173 * conf/i386-pc.rmk: Likewise.
4174 * conf/powerpc-ieee1275.rmk: Likewise.
4175 * conf/sparc64-ieee1275.rmk: Likewise.
4176 * docs/grub.texi: Likewise.
4177 * docs/texinfo.tex: Likewise.
4178 * disk/fs_uuid.c: Likewise.
4179 * disk/lvm.c: Likewise.
4180 * disk/scsi.c: Likewise.
4181 * disk/ata.c: Likewise.
4182 * disk/ieee1275/ofdisk.c: Likewise.
4183 * disk/i386/pc/biosdisk.c: Likewise.
4184 * disk/host.c: Likewise.
4185 * disk/raid.c: Likewise.
4186 * disk/efi/efidisk.c: Likewise.
4187 * disk/usbms.c: Likewise.
4188 * disk/memdisk.c: Likewise.
4189 * disk/loopback.c: Likewise.
4190 * kern/powerpc/dl.c: Likewise.
4191 * kern/device.c: Likewise.
4192 * kern/dl.c: Likewise.
4193 * kern/sparc64/dl.c: Likewise.
4194 * kern/ieee1275/ieee1275.c: Likewise.
4195 * kern/term.c: Likewise.
4196 * kern/fs.c: Likewise.
4197 * kern/i386/dl.c: Likewise.
4198 * kern/i386/pc/startup.S: Likewise.
4199 * kern/i386/pc/init.c: Likewise.
4200 * kern/i386/pc/mmap.c: Likewise.
4201 * kern/i386/pc/lzo1x.S: Likewise.
4202 * kern/i386/ieee1275/init.c: Likewise.
4203 * kern/i386/realmode.S: Likewise.
4204 * kern/i386/tsc.c: Likewise.
4205 * kern/partition.c: Likewise.
4206 * kern/corecmd.c: Likewise.
4207 * kern/file.c: Likewise.
4208 * kern/efi/efi.c: Likewise.
4209 * kern/efi/init.c: Likewise.
4210 * kern/efi/mm.c: Likewise.
4211 * kern/main.c: Likewise.
4212 * kern/err.c: Likewise.
4213 * kern/env.c: Likewise.
4214 * kern/disk.c: Likewise.
4215 * kern/generic/millisleep.c: Likewise.
4216 * kern/generic/rtc_get_time_ms.c: Likewise.
4217 * kern/misc.c: Likewise.
4218 * kern/parser.c: Likewise.
4219 * genmk.rb: Likewise.
4220 * configure.ac: Likewise.
4221 * boot/i386/pc/diskboot.S: Likewise.
4222 * boot/i386/pc/pxeboot.S: Likewise.
4223 * boot/i386/pc/boot.S: Likewise.
4224 * boot/i386/pc/lnxboot.S: Likewise.
4225 * boot/i386/pc/cdboot.S: Likewise.
4226 * parttool/pcpart.c: Likewise.
4227 * video/readers/tga.c: Likewise.
4228 * video/video.c: Likewise.
4229 * video/bitmap.c: Likewise.
4230 * lib/envblk.c: Likewise.
4231 * lib/i386/setjmp.S: Likewise.
4232 * fs/xfs.c: Likewise.
4233 * fs/afs.c: Likewise.
4234 * fs/fat.c: Likewise.
4235 * fs/ntfs.c: Likewise.
4236 * fs/udf.c: Likewise.
4237 * fs/affs.c: Likewise.
4238 * fs/iso9660.c: Likewise.
4239 * fs/hfs.c: Likewise.
4240 * fs/fshelp.c: Likewise.
4241 * fs/ext2.c: Likewise.
4242 * fs/jfs.c: Likewise.
4243 * fs/reiserfs.c: Likewise.
4244 * fs/hfsplus.c: Likewise.
4245 * fs/minix.c: Likewise.
4246 * fs/cpio.c: Likewise.
4247 * fs/sfs.c: Likewise.
4248 * fs/ufs.c: Likewise.
4249 * efiemu/prepare.c: Likewise.
4250 * efiemu/loadcore_common.c: Likewise.
4251 * efiemu/runtime/efiemu.sh: Likewise.
4252 * efiemu/runtime/efiemu.S: Likewise.
4253 * efiemu/runtime/efiemu.c: Likewise.
4254 * efiemu/pnvram.c: Likewise.
4255 * efiemu/main.c: Likewise.
4256 * efiemu/i386/pc/cfgtables.c: Likewise.
4257 * efiemu/i386/loadcore64.c: Likewise.
4258 * efiemu/i386/loadcore32.c: Likewise.
4259 * efiemu/loadcore.c: Likewise.
4260 * efiemu/symbols.c: Likewise.
4261 * efiemu/mm.c: Likewise.
4262 * include/grub/autoefi.h: Likewise.
4263 * include/grub/datetime.h: Likewise.
4264 * include/grub/term.h: Likewise.
4265 * include/grub/hfs.h: Likewise.
4266 * include/grub/lvm.h: Likewise.
4267 * include/grub/i386/tsc.h: Likewise.
4268 * include/grub/i386/linux.h: Likewise.
4269 * include/grub/i386/xnu.h: Likewise.
4270 * include/grub/i386/efiemu.h: Likewise.
4271 * include/grub/i386/pc/biosdisk.h: Likewise.
4272 * include/grub/i386/pc/memory.h: Likewise.
4273 * include/grub/i386/pc/vbe.h: Likewise.
4274 * include/grub/parttool.h: Likewise.
4275 * include/grub/video.h: Likewise.
4276 * include/grub/memory.h: Likewise.
4277 * include/grub/fs.h: Likewise.
4278 * include/grub/partition.h: Likewise.
4279 * include/grub/xnu.h: Likewise.
4280 * include/grub/efi/api.h: Likewise.
4281 * include/grub/efi/pe32.h: Likewise.
4282 * include/grub/efi/memory.h: Likewise.
4283 * include/grub/multiboot.h: Likewise.
4284 * include/grub/usbdesc.h: Likewise.
4285 * include/grub/multiboot2.h: Likewise.
4286 * include/grub/acpi.h: Likewise.
4287 * include/grub/efiemu/efiemu.h: Likewise.
4288 * include/grub/disk.h: Likewise.
4289 * include/grub/ieee1275/ieee1275.h: Likewise.
4290 * include/grub/net.h: Likewise.
4291 * include/grub/machoload.h: Likewise.
4292 * include/grub/macho.h: Likewise.
4293 * include/multiboot.h: Likewise.
4294 * genmoddep.awk: Likewise.
4295 * normal/main.c: Likewise.
4296 * normal/menu_entry.c: Likewise.
4297 * normal/menu_viewer.c: Likewise.
4298 * normal/completion.c: Likewise.
4299 * normal/cmdline.c: Likewise.
4300 * normal/misc.c: Likewise.
4301 * normal/datetime.c: Likewise.
4302 * bus/usb/usbtrans.c: Likewise.
4303 * bus/usb/ohci.c: Likewise.
4304 * bus/usb/uhci.c: Likewise.
4305 * bus/usb/usb.c: Likewise.
4306 * mmap/efi/mmap.c: Likewise.
4307 * mmap/i386/pc/mmap_helper.S: Likewise.
4308 * mmap/i386/pc/mmap.c: Likewise.
4309 * mmap/i386/mmap.c: Likewise.
4310 * mmap/i386/uppermem.c: Likewise.
4311 * mmap/mmap.c: Likewise.
4312 * commands/acpi.c: Likewise.
4313 * commands/echo.c: Likewise.
4314 * commands/blocklist.c: Likewise.
4315 * commands/loadenv.c: Likewise.
4316 * commands/usbtest.c: Likewise.
4317 * commands/boot.c: Likewise.
4318 * commands/parttool.c: Likewise.
4319 * commands/search.c: Likewise.
4320 * commands/cat.c: Likewise.
4321 * commands/i386/pc/play.c: Likewise.
4322 * commands/i386/pc/drivemap.c: Likewise.
4323 * commands/i386/pc/vbeinfo.c: Likewise.
4324 * commands/i386/pc/acpi.c: Likewise.
4325 * commands/i386/pc/vbetest.c: Likewise.
4326 * commands/ls.c: Likewise.
4327 * commands/cmp.c: Likewise.
4328 * commands/test.c: Likewise.
4329 * commands/efi/acpi.c: Likewise.
4330 * commands/gptsync.c: Likewise.
4331 * commands/help.c: Likewise.
4332 * partmap/amiga.c: Likewise.
4333 * partmap/apple.c: Likewise.
4334 * partmap/acorn.c: Likewise.
4335 * partmap/pc.c: Likewise.
4336 * partmap/sun.c: Likewise.
4337 * partmap/gpt.c: Likewise.
4338 * script/sh/lexer.c: Likewise.
4339 * script/sh/function.c: Likewise.
4340 * font/font.c: Likewise.
4341 * font/font_cmd.c: Likewise.
4342 * loader/powerpc/ieee1275/linux.c: Likewise.
4343 * loader/efi/chainloader.c: Likewise.
4344 * loader/multiboot_loader.c: Likewise.
4345 * loader/macho.c: Likewise.
4346 * loader/i386/multiboot.c: Likewise.
4347 * loader/i386/linux.c: Likewise.
4348 * loader/i386/pc/linux.c: Likewise.
4349 * loader/i386/pc/multiboot2.c: Likewise.
4350 * loader/i386/pc/chainloader.c: Likewise.
4351 * loader/i386/pc/xnu.c: Likewise.
4352 * loader/i386/bsd_trampoline.S: Likewise.
4353 * loader/i386/efi/linux.c: Likewise.
4354 * loader/i386/multiboot_elfxx.c: Likewise.
4355 * loader/i386/bsd_helper.S: Likewise.
4356 * loader/i386/bsd.c: Likewise.
4357 * loader/i386/linux_trampoline.S: Likewise.
4358 * loader/i386/xnu_helper.S: Likewise.
4359 * loader/i386/xnu.c: Likewise.
4360 * loader/i386/bsd_pagetable.c: Likewise.
4361 * loader/i386/multiboot_helper.S: Likewise.
4362 * loader/xnu.c: Likewise.
4363 * loader/xnu_resume.c: Likewise.
4364 * io/gzio.c: Likewise.
4365 * term/efi/console.c: Likewise.
4366 * term/terminfo.c: Likewise.
4367 * term/ieee1275/ofconsole.c: Likewise.
4368 * term/i386/pc/serial.c: Likewise.
4369 * term/i386/pc/vesafb.c: Likewise.
4370 * term/i386/pc/vga.c: Likewise.
4371 * term/usb_keyboard.c: Likewise.
4372 * term/gfxterm.c: Likewise.
4373 * aclocal.m4: Likewise.
4374 * util/lvm.c: Likewise.
4375 * util/grub.d/30_os-prober.in: Likewise.
4376 * util/grub.d/10_hurd.in: Likewise.
4377 * util/console.c: Likewise.
4378 * util/grub-macho2img.c: Likewise.
4379 * util/grub-probe.c: Likewise.
4380 * util/hostfs.c: Likewise.
4381 * util/i386/pc/grub-mkimage.c: Likewise.
4382 * util/i386/pc/grub-setup.c: Likewise.
4383 * util/i386/efi/grub-mkimage.c: Likewise.
4384 * util/grub-mkconfig.in: Likewise.
4385 * util/raid.c: Likewise.
4386 * util/resolve.c: Likewise.
4387 * util/grub-mkdevicemap.c: Likewise.
4388 * util/grub-emu.c: Likewise.
4389 * util/getroot.c: Likewise.
4390 * util/hostdisk.c: Likewise.
4391 * util/usb.c: Likewise.
4392 * util/grub-editenv.c: Likewise.
4393 * util/misc.c: Likewise.
4394
4395 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
4396
4397 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
4398 `genparttoollist.sh'.
4399 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
4400 Add `*.sh' to the list find searches for and change `mdate.sh'
4401 to `mdate-sh'.
4402
4403 2009-06-10 Pavel Roskin <proski@gnu.org>
4404
4405 * include/grub/multiboot2.h: Provide compatibility defines for
4406 multiboot2.h.
4407 * include/multiboot2.h: Include stdint.h only if needed, using
4408 angle brackets.
4409 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
4410 grub/multiboot2.h.
4411 * loader/ieee1275/multiboot2.c: Likewise.
4412 * loader/multiboot2.c: Likewise.
4413 * loader/multiboot_loader.c: Likewise.
4414
4415 * configure.ac: Use -nostdlib when probing for the target. It
4416 should not be required to have libc for the target.
4417
4418 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
4419 they fail without libc headers for the target.
4420 * include/grub/powerpc/libgcc.h: Use weak attribute for all
4421 exports.
4422 * include/grub/sparc64/libgcc.h: Likewise. Don't use
4423 preprocessor conditionals.
4424
4425 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
4426 build system doesn't need to be aware of the tar.c internals.
4427
4428 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
4429
4430 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
4431
4432 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
4433
4434 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
4435 disk limit to 26 for IDE, Virtio, Xen and SCSI.
4436
4437 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
4438
4439 * util/i386/pc/grub-install.in: Change the error message if UUIDs
4440 aren't available if ata.mod gets used.
4441
4442 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
4443
4444 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
4445 initialising controller.
4446 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4447
4448 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4449
4450 * util/i386/pc/grub-install.in: Add a parameter --disk-module
4451 to choose between ata and biosdisk module on i386-pc.
4452
4453 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
4454
4455 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
4456 Subclass and Programming Interface fields in terms of the 3 byte
4457 Class Code register.
4458 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4459
4460 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
4461 interface is OHCI. Add grub_dprintf for symmetry with
4462 bus/usb/uhci.c.
4463 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
4464 interface is UHCI. Add interf variable for programming
4465 interface. Print interface with class/subclass.
4466
4467 * bus/usb/ohci.c: Set interf with correct field.
4468
4469 * bus/usb/uhci.c: Remove unneeded doubled lines.
4470 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
4471 Remove whitespace inside comment.
4472
4473 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
4474
4475 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
4476 as fallback an equivalent option without depth.
4477
4478 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 Not fail if unable to retrieve C/H/S on LBA disks
4481
4482 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
4483 if unable to retrieve C/H/S on LBA disks
4484
4485 2009-06-08 Pavel Roskin <proski@gnu.org>
4486
4487 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
4488 about aliasing.
4489
4490 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4491
4492 * Makefile.in (uninstall): Remove all $lib_DATA files.
4493
4494 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 Bugfix: install on partitionless device
4497
4498 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
4499 is a whole disk
4500
4501 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4502
4503 * Makefile.in (uninstall): Remove all $include_DATA files.
4504
4505 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
4506
4507 * commands/true.c: New file. Implement the true and false commands.
4508 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
4509 (true_mod_SOURCES): New variable.
4510 (true_mod_CFLAGS): Likewise.
4511 (true_mod_LDFLAGS): Likewise.
4512
4513 2009-06-05 Colin D Bennett <colin@gibibit.com>
4514
4515 Optimized font character lookup using binary search instead of linear
4516 search. Fonts now are required to have the character index ordered by
4517 code point.
4518
4519 * font/font.c (load_font_index): Verify that fonts have ordered
4520 character indices.
4521 (find_glyph): Use binary search instead of linear search to find a
4522 character in a font.
4523
4524 2009-06-05 Michael Scherer <misc@mandriva.org>
4525
4526 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
4527 uses case sensitive btree.
4528 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
4529 only for case insensitive filesystems.
4530
4531 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4532
4533 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
4534 * conf/common.rmk (search_mod_CFLAGS): likewise
4535
4536 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4537
4538 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
4539 compensate a compiler bug
4540
4541 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
4544 instead of '\b'
4545
4546 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 Definitions for creating asm symbols with Apple's CC
4549
4550 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
4551 [APPLE_CC] (VARIABLE): likewise
4552
4553 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 Disable lnxboot.img when compiled
4556 with Apple's CC
4557
4558 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
4559 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
4560 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
4561 [! APPLE_CC] (CODE_LENG): skip
4562 [! APPLE_CC] (setup_sects): likewise
4563 [! APPLE_CC]: skip filling
4564
4565 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 Address in trampolines based on 32-bit registers when compiled
4568 with Apple's CC
4569
4570 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
4571 for addresses
4572 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
4573
4574 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 Avoid aliases when compiling with Apple's CC for PCBIOS machine
4577
4578 * kern/misc.c [APPLE_CC] (memcpy): new function
4579 [APPLE_CC] (memmove): likewise
4580 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
4581 (memcpy): define alias conditionally on !APPLE_CC
4582 (memset): likewise
4583 (abort): likewise
4584 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
4585 APPLE_CC are defined
4586 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
4587 (grub_assert_fail): make prototype conditional
4588
4589 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
4592
4593 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
4594 grub-macho2img
4595 (CLEANFILES): add grub-macho2img
4596 (grub_macho2img_SOURCES): new variable
4597 * kern/i386/pc/startup.S (bss_start): new variable
4598 (bss_end): likewise
4599 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
4600 * util/grub-macho2img.c: new file
4601
4602 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Use objconv when compiling with Apple's CC
4605
4606 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
4607 (efiemu64.o): likewise
4608 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
4609 when compiling with Apple's CC
4610 (efiemu64_s.o): likewise
4611 * configure.ac: check for objconv when compiling with Apple's CC
4612 * genmk.rb: use objconv for modules when compiled with Apple's CC
4613
4614 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 Define segment as well as section when compiling with
4617 Apple's CC
4618
4619 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
4620 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
4621 (efiemu_convert_pointer): likewise
4622 (efiemu_set_virtual_address_map): likewise
4623 (efiemu_convert_pointer): likewise
4624 (efiemu_getcrc32): likewise
4625 (init_crc32_table): likewise
4626 (reflect): likewise
4627 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
4628 (GRUB_MOD_DEP): likewise
4629
4630 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4631
4632 Allow a compilation without -mcmodel=large
4633
4634 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
4635 when compiled without -mcmodel=large
4636 (filter_memory_map): remove memory post 4 GiB when compiled
4637 without -mcmodel=large
4638 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
4639 TARGET_CFLAGS when -mcmodel=large isn't supported
4640
4641 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4642
4643 Remove nested functions in efiemu core
4644
4645 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
4646
4647 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
4650
4651 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
4652 temporary storage
4653 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
4654 using Apple's CC
4655 (grub_cpu_is_tsc_supported): likewise
4656 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
4657
4658 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 Absolute addressing through constant with Apple's cc
4661
4662 * kern/i386/pc/startup.S: Define necessary constants
4663 and address through it when using ABS with Apple's CC
4664 * boot/i386/pc/diskboot.S: likewise
4665 * boot/i386/pc/boot.S: likewise
4666 * boot/i386/pc/lnxboot.S: likewise
4667 * boot/i386/pc/cdboot.S: likewise
4668 * mmap/i386/pc/mmap_helper.S: likewise
4669 * commands/i386/pc/drivemap_int13h.S: likewise
4670
4671 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 Check if compiler is apple cc
4674
4675 * Makefile.in (ASFLAGS): new variable
4676 (TARGET_ASFLAGS): likewise
4677 (TARGET_MODULE_FORMAT): likewise
4678 (TARGET_APPLE_CC): likewise
4679 (OBJCONV): likewise
4680 (TARGET_IMG_CFLAGS): likewise
4681 (TARGET_CPPFLAGS): add includedir
4682 * configure.ac: call grub_apple_cc and grub_apple_target_cc
4683 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
4684 Check for linker script only if compiler isn't Apple's CC
4685 (TARGET_MODULE_FORMAT): set
4686 (TARGET_APPLE_CC): likewise
4687 (TARGET_ASFLAGS): likewise
4688 (ASFLAGS): likewise
4689 Check for objcopy only if compiler isn't Apple's CC
4690 Check for BSS symbol only if compiler isn't Apple's CC
4691 * genmk.rb: adapt nm options if we use Apple's utils
4692 * aclocal.m4 (grub_apple_cc): new test
4693 (grub_apple_target_cc): likewise
4694
4695 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4696
4697 Simplify sed expressions and improve awk
4698
4699 * Makefile.in (install-local): simplify sed expression
4700 * gencmdlist.sh: likewise
4701 * genmoddep.awk: avoid adding module as a dependency of itself
4702
4703 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 Add missing start symbols
4706
4707 * boot/i386/pc/boot.S: add start
4708 * boot/i386/pc/pxeboot.S: likewise
4709
4710 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 Fix wrong assumptions with grub-mkimage on EFI
4713
4714 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
4715 (relocate_addresses): consider both r_addend and value at offset
4716 (make_mods_section): zerofill modinfo and header
4717 (convert_elf): write prefix here
4718
4719 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 Use .asciz instead of .string
4722
4723 * i386/pc/diskboot.S: use .asciz instead of .string
4724 * i386/pc/boot.S: likewise
4725 * include/grub/dl.h (GRUB_MOD_DEP): likewise
4726 (GRUB_MOD_NAME): likewise
4727
4728 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 gfxpayload support
4731
4732 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
4733 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
4734 (grub_video_setup): remove
4735 (grub_video_set_mode): new prototype
4736 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
4737 (vid_mode): remove
4738 (linux_vesafb_res): compile only on PCBIOS
4739 (grub_linux_boot): support gfxpayload
4740 * loader/i386/pc/xnu.c (video_hook): new function
4741 (grub_xnu_set_video): support gfxpayload
4742 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
4743 (DEFAULT_VIDEO_HEIGHT): likewise
4744 (DEFAULT_VIDEO_FLAGS): likewise
4745 (DEFAULT_VIDEO_MODE): new definition
4746 (video_hook): new function
4747 (grub_gfxterm_init): use grub_video_set_mode
4748 * util/grub.d/30_os-prober.in: remove explicit modesetting before
4749 loading xnu
4750 * video/video.c (grub_video_setup): removed
4751 (grub_video_set_mode): new function based on grub_gfxterm_init and
4752 grub_video_setup
4753
4754 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 Avoid calling biosdisk in drivemap
4757
4758 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
4759 (revparse_biosdisk): likewise
4760 (list_mappings): derive name from id directly
4761 (grub_cmd_drivemap): use tryparse_diskstring
4762
4763 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 Script fixes
4766
4767 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
4768 (grub_lexer_param): add tokenonhold
4769 (grub_script_create_cmdline): remove cmdline. All callers updated
4770 (grub_script_function_create): make functionname
4771 grub_script_arg. All callers updated
4772 (grub_script_execute_argument_to_string): new prototype
4773 * kern/parser.c (state_transitions): reorder
4774 (grub_parser_cmdline_state): fix a bug and make more compact
4775 * script/sh/execute.c (grub_script_execute_argument_to_string):
4776 make global
4777 (grub_script_execute_cmdline): use new format
4778 * script/sh/function.c (grub_script_function_create): make functionname
4779 grub_script_arg. All callers updated
4780 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
4781 (grub_script_yylex): remove
4782 (grub_script_yylex2): renamed to ...
4783 (grub_script_yylex): ...renamed
4784 parse the expressions like a${b}c
4785 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
4786 (GRUB_PARSER_TOKEN_VAR): remove
4787 (GRUB_PARSER_TOKEN_NAME): likewise
4788 ("if"): declare as typeless
4789 ("while"): likewise
4790 ("function"): likewise
4791 ("else"): likewise
4792 ("then"): likewise
4793 ("fi"): likewise
4794 (text): remove
4795 (argument): likewise
4796 (script): accept empty scripts and make exit on error
4797 (arguments): use GRUB_PARSER_TOKEN_ARG
4798 (function): likewise
4799 (command): move error handling to script
4800 (menuentry): move grub_script_lexer_ref before
4801 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
4802 argument. All callers updated
4803
4804 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4805
4806 Prevent GRUB from probing floppies during boot.
4807
4808 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
4809 * commands/search.c (options): Add --no-floppy.
4810 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
4811 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
4812 --no-floppy when searching for UUIDs.
4813
4814 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4815
4816 Simplify the code duplication in commands/search.c.
4817
4818 * commands/search.c (search_label, search_fs_uuid): Merge into ...
4819 (search_fs): ... this. Update all users.
4820
4821 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
4822
4823 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
4824
4825 2009-05-28 Pavel Roskin <proski@gnu.org>
4826
4827 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
4828 Remove the original symlink explicitly.
4829
4830 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
4831 just one slash. That's how grub_fshelp_find_file() does it.
4832
4833 2009-05-26 Pavel Roskin <proski@gnu.org>
4834
4835 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
4836 to `str'.
4837
4838 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
4839 possibly unused.
4840
4841 2009-05-25 Christian Franke <franke@computer.org>
4842
4843 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
4844 register.
4845 (grub_atapi_identify): Add wait after drive select.
4846 (grub_ata_identify): Do more strict status register check before
4847 calling grub_atapi_identify (). Suppress error message if status
4848 register is 0x00 after command failure. Add status register
4849 check after PIO read to avoid bogus identify due to stuck DRQ.
4850 Thanks to Pavel Roskin for testing.
4851 (grub_device_initialize): Remove unsafe status register check.
4852 Thanks to 'phcoder' for problem report and patch.
4853 Prevent sign extension in debug message.
4854
4855 2009-05-23 Colin D Bennett <colin@gibibit.com>
4856
4857 Cleaned up `include/grub/normal.h'. Grouped prototypes by
4858 definition file, and functions defined in `normal/menu.c' have had
4859 their prototypes moved to `include/grub/menu.h' for consistency.
4860
4861 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
4862 from normal.h.
4863 (grub_menu_get_entry): Likewise.
4864 (grub_menu_get_timeout): Likewise.
4865 (grub_menu_set_timeout): Likewise.
4866 (grub_menu_execute_entry): Likewise.
4867 (grub_menu_execute_with_fallback): Likewise.
4868 (grub_menu_entry_run): Likewise.
4869
4870 * include/grub/normal.h: Re-ordered and grouped function
4871 prototypes by file that the function is defined in.
4872 (grub_menu_execute_callback): Removed; moved to menu.h.
4873 (grub_menu_get_entry): Likewise.
4874 (grub_menu_get_timeout): Likewise.
4875 (grub_menu_set_timeout): Likewise.
4876 (grub_menu_execute_entry): Likewise.
4877 (grub_menu_execute_with_fallback): Likewise.
4878 (grub_menu_entry_run): Likewise.
4879 (grub_menu_addentry): Renamed from this ...
4880 (grub_normal_add_menu_entry): ... to this.
4881
4882 * normal/main.c (grub_menu_addentry): Renamed from this ...
4883 (grub_normal_add_menu_entry): ... to this.
4884
4885 * script/sh/execute.c (grub_script_execute_menuentry): Update
4886 reference to renamed grub_menu_addentry function.
4887
4888 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
4889
4890 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
4891
4892 2009-05-22 Pavel Roskin <proski@gnu.org>
4893
4894 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
4895 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
4896 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
4897 compiling for the i386 targets, but not for the utilities.
4898
4899 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
4900 to grub_uint8_t.
4901 (grub_root_drive): Likewise.
4902 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
4903 remove alignment.
4904 (grub_root_drive): Change size to byte.
4905 (grub_start_addr): Remove.
4906 (grub_end_addr): Likewise.
4907 (grub_apm_bios_info): Likewise.
4908
4909 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
4910
4911 * normal/i386: Remove.
4912 * normal/powerpc: Likewise.
4913 * normal/sparc64: Likewise.
4914 * normal/x86_64: Likewise.
4915
4916 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
4919 * loader/i386/linux_trampoline.S: Fix indentation
4920 * loader/i386/xnu_helper.S: Likewise
4921
4922 2009-05-18 Colin D Bennett <colin@gibibit.com>
4923
4924 Display error messages when parsing a Lua statement fails.
4925 Previously, executing a syntactically invalid statement like
4926 ")foo" or "bar;" would silently fail.
4927
4928 * script/lua/grub_main.c (handle_lua_error): New function.
4929 (grub_lua_parse_line): Improved reporting of Lua parser and
4930 execution errors.
4931
4932 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 Remove -Werror which causes build to fail on some systems
4935
4936 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
4937 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
4938 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
4939
4940 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 trampoline for linux on 64-bit platform
4943
4944 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
4945 loader/i386/efi/linux_trampoline.S
4946 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
4947 declaration
4948 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
4949 here
4950 * loader/i386/linux_trampoline.S: moved here
4951 * loader/i386/efi/linux.c (allocate_pages): reserve space for
4952 trampoline
4953 (jumpvector): removed
4954 (grub_linux_trampoline_start): new declaration
4955 (grub_linux_trampoline_end): likewise
4956 (grub_linux_boot): use trampoline when on 64-bit platform
4957 * loader/i386/linux.c: likewise
4958
4959 2009-05-16 Pavel Roskin <proski@gnu.org>
4960
4961 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
4962 const to avoid a warning.
4963 (grub_lua_setenv): Likewise.
4964 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
4965 lmsg to fix a warning.
4966
4967 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
4968
4969 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
4970 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4971 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
4972 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4973 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4974 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4975 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4976 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4977
4978 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
4979
4980 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
4981
4982 2009-05-16 Bean <bean123ch@gmail.com>
4983
4984 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
4985 (lua_mod_SOURCES): New variable.
4986 (lua_mod_CFLAGS): Likewise.
4987 (lua_mod_LDFLAGS): Likewise.
4988
4989 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
4990 (setjmp_mod_SOURCES): New variable.
4991 (setjmp_mod_CFLAGS): Likewise.
4992 (setjmp_LDFLAGS): Likewise.
4993
4994 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
4995 (setjmp_mod_SOURCES): New variable.
4996 (setjmp_mod_CFLAGS): Likewise.
4997 (setjmp_LDFLAGS): Likewise.
4998
4999 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
5000 (setjmp_mod_SOURCES): New variable.
5001 (setjmp_mod_CFLAGS): Likewise.
5002 (setjmp_LDFLAGS): Likewise.
5003
5004 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
5005 (setjmp_mod_SOURCES): New variable.
5006 (setjmp_mod_CFLAGS): Likewise.
5007 (setjmp_LDFLAGS): Likewise.
5008
5009 * normal/i386/setjmp.S: Moved from here ...
5010 * lib/i386/setjmp.S: ... Moved here
5011 * normal/x86_64/setjmp.S: Moved from here ...
5012 * lib/x86_64/setjmp.S: ... Moved here
5013 * normal/powerpc/setjmp.S: Moved from here ...
5014 * lib/powerpc/setjmp.S: ... Moved here
5015 * normal/sparc64/setjmp.S: Moved from here ...
5016 * lib/sparc64/setjmp.S: ... Moved here
5017
5018 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
5019 returns_twice in mingw.
5020
5021 * script/lua/grub_lib.c: New file.
5022 * script/lua/grub_lib.h: Likewise.
5023 * script/lua/grub_lua.h: Likewise.
5024 * script/lua/grub_main.c: Likewise.
5025 * script/lua/lapi.c: Likewise.
5026 * script/lua/lapi.h: Likewise.
5027 * script/lua/lauxlib.c: Likewise.
5028 * script/lua/lauxlib.h: Likewise.
5029 * script/lua/lbaselib.c: Likewise.
5030 * script/lua/lcode.c: Likewise.
5031 * script/lua/lcode.h: Likewise.
5032 * script/lua/ldblib.c: Likewise.
5033 * script/lua/ldebug.c: Likewise.
5034 * script/lua/ldebug.h: Likewise.
5035 * script/lua/ldo.c: Likewise.
5036 * script/lua/ldo.h: Likewise.
5037 * script/lua/ldump.c: Likewise.
5038 * script/lua/lfunc.c: Likewise.
5039 * script/lua/lfunc.h: Likewise.
5040 * script/lua/lgc.c: Likewise.
5041 * script/lua/lgc.h: Likewise.
5042 * script/lua/linit.c: Likewise.
5043 * script/lua/liolib.c: Likewise.
5044 * script/lua/llex.c: Likewise.
5045 * script/lua/llex.h: Likewise.
5046 * script/lua/llimits.h: Likewise.
5047 * script/lua/lmathlib.c: Likewise.
5048 * script/lua/lmem.c: Likewise.
5049 * script/lua/lmem.h: Likewise.
5050 * script/lua/loadlib.c: Likewise.
5051 * script/lua/lobject.c: Likewise.
5052 * script/lua/lobject.h: Likewise.
5053 * script/lua/lopcodes.c: Likewise.
5054 * script/lua/lopcodes.h: Likewise.
5055 * script/lua/loslib.c: Likewise.
5056 * script/lua/lparser.c: Likewise.
5057 * script/lua/lparser.h: Likewise.
5058 * script/lua/lstate.c: Likewise.
5059 * script/lua/lstate.h: Likewise.
5060 * script/lua/lstring.c: Likewise.
5061 * script/lua/lstring.h: Likewise.
5062 * script/lua/lstrlib.c: Likewise.
5063 * script/lua/ltable.c: Likewise.
5064 * script/lua/ltable.h: Likewise.
5065 * script/lua/ltablib.c: Likewise.
5066 * script/lua/ltm.c: Likewise.
5067 * script/lua/ltm.h: Likewise.
5068 * script/lua/lua.h: Likewise.
5069 * script/lua/luaconf.h: Likewise.
5070 * script/lua/lualib.h: Likewise.
5071 * script/lua/lundump.c: Likewise.
5072 * script/lua/lundump.h: Likewise.
5073 * script/lua/lvm.c: Likewise.
5074 * script/lua/lvm.h: Likewise.
5075 * script/lua/lzio.c: Likewise.
5076 * script/lua/lzio.h: Likewise.
5077
5078 2009-05-16 Bean <bean123ch@gmail.com>
5079
5080 * include/grub/kernel.h (grub_module_header_types): Add type
5081 OBJ_TYPE_CONFIG.
5082
5083 * kern/main.c (grub_load_config): New function.
5084 (grub_main): Call grub_load_config to read boot config.
5085
5086 * grub-mkimage (generate_image): New parameter config_path.
5087 (options): New option --config.
5088 (main): Parse --config option, and pass it to generate_image.
5089
5090 2009-05-14 Christian Franke <franke@computer.org>
5091
5092 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
5093 This fixes build on Cygwin.
5094
5095 2009-05-14 Pavel Roskin <proski@gnu.org>
5096
5097 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
5098 jump. This saves two bytes, so the typical case of 2 swapped
5099 drives would fit 32 bytes.
5100
5101 2009-05-13 Pavel Roskin <proski@gnu.org>
5102
5103 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
5104 grub_uint32_t to avoid a warning.
5105
5106 * loader/i386/linux.c (allocate_pages): When assigning
5107 real_mode_mem, cast through grub_size_t to fix a warning. The
5108 code already makes sure that the value would fit a pointer.
5109 (grub_linux_setup_video): Cast render_target->data to
5110 grub_size_t to fix a warning.
5111
5112 2009-05-13 Javier Martín <lordhabbit@gmail.com>
5113
5114 * commands/i386/pc/drivemap.c: New file - implement drivemap
5115 command.
5116 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
5117 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
5118
5119 2009-05-13 Pavel Roskin <proski@gnu.org>
5120
5121 * util/i386/pc/grub-setup.c (setup): Remove unused variable
5122 embedding_area_exists.
5123
5124 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
5125
5126 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
5127 it easier to understand / work with.
5128 Improve warning messages for cases where there's no embedding area,
5129 or when it is too small (or core.img too large).
5130
5131 2009-05-13 Pavel Roskin <proski@gnu.org>
5132
5133 * loader/i386/pc/multiboot2.c: Add necessary includes for
5134 grub_multiboot2_real_boot().
5135
5136 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
5137 PX record is always little-endian. We only need the lower 2
5138 bytes of the mode.
5139
5140 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
5141 facilitate code reuse.
5142 (grub_cpio_mount): Use "struct head", not a char buffer. This
5143 fixes a warning reported by gcc 4.4.
5144
5145 * kernel/disk.c (grub_disk_read): Use void pointer for the
5146 buffer.
5147 (grub_disk_write): Use const void pointer for the buffer.
5148 Adjust all callers. Remove unnecessary casts.
5149
5150 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
5151
5152 * util/i386/pc/grub-install.in: Update copyright year.
5153
5154 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 gptsync
5157
5158 * commands/gptsync.c: new file
5159 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
5160 (gptsync_mod_SOURCES): new variable
5161 (gptsync_mod_CFLAGS): likewise
5162 (gptsync_mod_LDFLAGS): likewise
5163 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
5164 new definition
5165 (GRUB_PC_PARTITION_TYPE_HFS): likewise
5166 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
5167 * conf/i386-ieee1275.rmk: likewise
5168 * conf/i386-pc.rmk: likewise
5169 * conf/powerpc-ieee1275.rmk: likewise
5170
5171 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 Fixed grub-emu
5174
5175 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
5176 (grub_dl_ref): likewise
5177
5178 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
5179
5180 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
5181 split in two functions (one for msdos and one for gpt).
5182
5183 2009-05-08 Pavel Roskin <proski@gnu.org>
5184
5185 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
5186 not modified.
5187
5188 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
5189 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
5190 Initialize them with -1. Add sanity check for bad1. Eliminate
5191 nerr variable.
5192
5193 2009-05-08 David S. Miller <davem@davemloft.net>
5194
5195 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
5196
5197 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
5198
5199 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
5200 existence.
5201
5202 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
5203
5204 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
5205 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
5206
5207 2009-05-05 David S. Miller <davem@davemloft.net>
5208
5209 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
5210
5211 2009-05-05 Pavel Roskin <proski@gnu.org>
5212
5213 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
5214 of grub_dl_ref() and grub_dl_unref().
5215 * commands/parttool.c: Remove preprocessor conditionals around
5216 grub_dl_ref() and grub_dl_unref().
5217 * fs/affs.c: Likewise.
5218 * fs/afs.c: Likewise.
5219 * fs/cpio.c: Likewise.
5220 * fs/ext2.c: Likewise.
5221 * fs/fat.c: Likewise.
5222 * fs/hfs.c: Likewise.
5223 * fs/hfsplus.c: Likewise.
5224 * fs/iso9660.c: Likewise.
5225 * fs/jfs.c: Likewise.
5226 * fs/minix.c: Likewise.
5227 * fs/ntfs.c: Likewise.
5228 * fs/reiserfs.c: Likewise.
5229 * fs/sfs.c: Likewise.
5230 * fs/udf.c: Likewise.
5231 * fs/ufs.c: Likewise.
5232 * fs/xfs.c: Likewise.
5233 * include/grub/dl.h: Likewise.
5234 * loader/xnu.c: Likewise.
5235
5236 2009-05-04 Pavel Roskin <proski@gnu.org>
5237
5238 * commands/acpi.c: Remove unused variable my_mod.
5239 * partmap/amiga.c: Likewise.
5240 * partmap/apple.c: Likewise.
5241 * partmap/gpt.c: Likewise.
5242 * partmap/pc.c: Likewise.
5243 * partmap/sun.c: Likewise.
5244 * term/gfxterm.c: Likewise.
5245 * term/i386/pc/vesafb.c: Likewise.
5246 * term/i386/pc/vga.c: Likewise.
5247
5248 2009-05-04 David S. Miller <davem@davemloft.net>
5249
5250 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
5251 pointer args to grub_ieee1275_get_property().
5252
5253 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
5254
5255 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
5256 devices, and do not traverse down under controller nodes.
5257
5258 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
5259 (grub_ofdisk_open): Use it to un-escape "," characters.
5260 * kern/disk.c (find_part_sep): New.
5261 (grub_disk_open): Use it to find the first non-escaped ','
5262 character in the disk name.
5263 * util/ieee1275/devicemap.c (escape_of_path): New.
5264 (grub_util_emit_devicemap_entry): Use it.
5265 * util/sparc64/ieee1275/grub-install.in: Update script to
5266 strip partition specifiers properly by not triggering on
5267 '\' escaped ',' characters.
5268
5269 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5270
5271 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
5272 to 0x300.
5273 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
5274 resolutions.
5275 (linux_vesafb_modes): Add a lot of additional modes to the list (based
5276 on documentation from Wikipedia).
5277
5278 2009-05-04 Pavel Roskin <proski@gnu.org>
5279
5280 * disk/ata.c: Spelling fixes.
5281 * disk/raid.c: Likewise.
5282 * disk/usbms.c: Likewise.
5283 * disk/dmraid_nvidia.c: Likewise.
5284 * kern/ieee1275/openfw.c: Likewise.
5285 * kern/ieee1275/init.c: Likewise.
5286 * kern/ieee1275/cmain.c: Likewise.
5287 * boot/i386/pc/cdboot.S: Likewise.
5288 * video/readers/png.c: Likewise.
5289 * video/i386/pc/vbe.c: Likewise.
5290 * fs/udf.c: Likewise.
5291 * fs/hfs.c: Likewise.
5292 * fs/reiserfs.c: Likewise.
5293 * efiemu/runtime/efiemu.c: Likewise.
5294 * efiemu/main.c: Likewise.
5295 * efiemu/mm.c: Likewise.
5296 * include/grub/elf.h: Likewise.
5297 * include/grub/xnu.h: Likewise.
5298 * include/grub/usbdesc.h: Likewise.
5299 * include/grub/usb.h: Likewise.
5300 * include/grub/script_sh.h: Likewise.
5301 * include/grub/lib/LzmaEnc.h: Likewise.
5302 * include/grub/efiemu/efiemu.h: Likewise.
5303 * include/grub/command.h: Likewise.
5304 * normal/menu.c: Likewise.
5305 * normal/main.c: Likewise.
5306 * normal/datetime.c: Likewise.
5307 * bus/usb/uhci.c: Likewise.
5308 * mmap/i386/uppermem.c: Likewise.
5309 * mmap/mmap.c: Likewise.
5310 * commands/acpi.c: Likewise.
5311 * commands/test.c: Likewise.
5312 * partmap/apple.c: Likewise.
5313 * font/font.c: Likewise.
5314 * loader/sparc64/ieee1275/linux.c: Likewise.
5315 * loader/macho.c: Likewise.
5316 * loader/i386/bsd_trampoline.S: Likewise.
5317 * loader/i386/bsd.c: Likewise.
5318 * loader/xnu.c: Likewise.
5319 * term/i386/pc/vesafb.c: Likewise.
5320 * term/usb_keyboard.c: Likewise.
5321 * util/resolve.c: Likewise.
5322 * util/getroot.c: Likewise.
5323
5324 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
5325
5326 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
5327
5328 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5329
5330 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
5331 build error.
5332
5333 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5334
5335 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
5336 parameter only available on BIOS.
5337
5338 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 Removed wrong semicolon in declaration
5341
5342 * grub/misc.h (grub_dprintf): remove semicolon
5343
5344 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5345
5346 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
5347 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
5348 is done by grub_cmd_linux() now).
5349 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
5350 restore video to text mode.
5351 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
5352 indicates lack of "vga=" parameter. "vga=0" is mapped to
5353 `GRUB_LINUX_VID_MODE_NORMAL'.
5354
5355 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
5356
5357 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
5358 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
5359 and `normal/script.c'. Add `kern/rescue_reader.c',
5360 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
5361 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
5362 `grub_script.tab.c'.
5363
5364 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5365 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5366 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5368 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5369
5370 * Makefile.in: Remove duplicated 2008 in Copyright line.
5371
5372 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5373
5374 * util/misc.c (grub_util_warn): New function. Emits a warning
5375 unconditionally.
5376 * include/grub/util/misc.h (grub_util_warn): New declaration.
5377
5378 * util/i386/pc/grub-install.in: Understand --force and pass it down
5379 to grub-setup.
5380
5381 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
5382 down to setup().
5383 (setup): Improve error messages and add warnings when requested to
5384 install in odd layouts. Refuse to install using blocklists unless
5385 --force was set.
5386
5387 2009-05-04 martin f. krafft <madduck@madduck.net>
5388
5389 * disk/raid.c (grub_raid_scan_device): Improve debug message.
5390
5391 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 Updated copyright year
5394
5395 * fs/hfsplus.c: updated copyright year
5396
5397 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 HFS+ UUID
5400
5401 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
5402 in the space previously used by unused3
5403 (grub_hfsplus_uuid): new function
5404 (grub_hfsplus_fs): added uuid field
5405
5406 2009-05-03 Pavel Roskin <proski@gnu.org>
5407
5408 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
5409 suppress warnings. It's no longer needed.
5410 * disk/host.c: Likewise.
5411 * disk/ata_pthru.c: Likewise.
5412 * disk/loopback.c: Likewise.
5413 * hook/datehook.c: Likewise.
5414 * parttool/pcpart.c: Likewise.
5415 * fs/i386/pc/pxe.c: Likewise.
5416 * fs/ntfscomp.c: Likewise.
5417 * efiemu/main.c: Likewise.
5418 * mmap/mmap.c: Likewise.
5419 * commands/crc.c: Likewise.
5420 * commands/hexdump.c: Likewise.
5421 * commands/hdparm.c: Likewise.
5422 * commands/acpi.c: Likewise.
5423 * commands/echo.c: Likewise.
5424 * commands/minicmd.c: Likewise.
5425 * commands/blocklist.c: Likewise.
5426 * commands/memrw.c: Likewise.
5427 * commands/loadenv.c: Likewise.
5428 * commands/usbtest.c: Likewise.
5429 * commands/lsmmap.c: Likewise.
5430 * commands/boot.c: Likewise.
5431 * commands/parttool.c: Likewise.
5432 * commands/configfile.c: Likewise.
5433 * commands/search.c: Likewise.
5434 * commands/ieee1275/suspend.c: Likewise.
5435 * commands/cat.c: Likewise.
5436 * commands/i386/pc/pxecmd.c: Likewise.
5437 * commands/i386/pc/play.c: Likewise.
5438 * commands/i386/pc/halt.c: Likewise.
5439 * commands/i386/pc/vbeinfo.c: Likewise.
5440 * commands/i386/pc/vbetest.c: Likewise.
5441 * commands/lspci.c: Likewise.
5442 * commands/date.c: Likewise.
5443 * commands/handler.c: Likewise.
5444 * commands/ls.c: Likewise.
5445 * commands/test.c: Likewise.
5446 * commands/cmp.c: Likewise.
5447 * commands/efi/loadbios.c: Likewise.
5448 * commands/efi/fixvideo.c: Likewise.
5449 * commands/halt.c: Likewise.
5450 * commands/help.c: Likewise.
5451 * commands/reboot.c: Likewise.
5452 * hello/hello.c: Likewise.
5453 * script/sh/main.c: Likewise.
5454 * loader/xnu.c: Likewise.
5455 * term/terminfo.c: Likewise.
5456 * term/i386/pc/serial.c: Likewise.
5457 * term/usb_keyboard.c: Likewise.
5458
5459 2009-05-03 David S. Miller <davem@davemloft.net>
5460
5461 * normal/menu.c: Include grub/parser.h
5462
5463 2009-05-03 Pavel Roskin <proski@gnu.org>
5464
5465 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
5466 not char*.
5467 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
5468 Suggested by Javier Martín <lordhabbit@gmail.com>
5469
5470 * util/i386/pc/grub-mkrescue.in: Allow for the case when
5471 efiemu??.o doesn't exist.
5472 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
5473 copying.
5474
5475 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 FreeBSD 64-bit support
5478
5479 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
5480 and loader/i386/bsd_trampoline.S
5481 (bsd_mod_ASFLAGS): new variable
5482 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
5483 (FREEBSD_MODTYPE_KERNEL64): likewise
5484 (grub_bsd64_trampoline_start): likewise
5485 (grub_bsd64_trampoline_end): likewise
5486 (grub_bsd64_trampoline_selfjump): likewise
5487 (grub_bsd64_trampoline_gdt): likewise
5488 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
5489 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
5490 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
5491 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
5492 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
5493 of "attrib" member
5494 * loader/i386/bsd_pagetable.c: new file
5495 * loader/i386/bsd_trampoline.S: likewise
5496 * loader/i386/bsd.c (ALIGN_QWORD): new macro
5497 (ALIGN_VAR): likewise
5498 (entry_hi): new variable
5499 (kern_end_mdofs): likewise
5500 (is_64bit): likewise
5501 (grub_freebsd_add_meta): use ALIGN_VAR
5502 (grub_e820_mmap): new declaration
5503 (grub_freebsd_add_mmap): new function
5504 (grub_freebsd_add_meta_module): support 64 bit kernels
5505 (grub_freebsd_list_modules): use ALIGN_VAR
5506 (gdt_descriptor): new declaration
5507 (grub_freebsd_boot): support 64 bit kernels
5508 (grub_bsd_elf64_hook): new function
5509 (grub_bsd_load_elf): support elf64
5510
5511 2009-05-03 Bean <bean123ch@gmail.com>
5512
5513 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
5514 after we get the result of if statement.
5515
5516 2009-05-03 Bean <bean123ch@gmail.com>
5517
5518 * Makefile.in (enable_efiemu): New variable.
5519
5520 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
5521 set.
5522 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
5523 path.
5524 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
5525 path, add -mno-red-zone option.
5526 (efiemu64_s.o): Likewise.
5527 (efiemu64.o): Use macro $^ for source file.
5528
5529 * configure.ac (--enable-efiemu): New option.
5530
5531 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 xnu support
5534
5535 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
5536 (pkglib_MODULES): add xnu.mod
5537 (xnu_mod_SOURCES): new variable
5538 (xnu_mod_CFLAGS): likewise
5539 (xnu_mod_LDFLAGS): likewise
5540 (xnu_mod_ASFLAGS): likewise
5541 * conf/i386-pc.rmk: likewise
5542 * conf/x86_64-efi.rmk: likewise
5543 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
5544 new declaration
5545 * include/grub/i386/macho.h: new file
5546 * include/grub/i386/xnu.h: likewise
5547 * include/grub/macho.h: likewise
5548 * include/grub/machoload.h: likewise
5549 * include/grub/x86_64/macho.h: likewise
5550 * include/grub/x86_64/xnu.h: likewise
5551 * include/grub/xnu.h: likewise
5552 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
5553 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
5554 * loader/i386/efi/xnu.c: new file
5555 * loader/i386/pc/xnu.c: likewise
5556 * loader/i386/xnu.c: likewise
5557 * loader/i386/xnu_helper.S: likewise
5558 * loader/macho.c: likewise
5559 * loader/xnu.c: likewise
5560 * loader/xnu_resume.c: likewise
5561 * util/grub-dumpdevtree: likewise
5562 * include/grub/i386/pit.h: include grub/err.h
5563 (grub_pit_wait): export
5564 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
5565
5566 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 Efiemu
5569
5570 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
5571 _linux_efi, linux_efi.
5572 new files in grub-emu
5573 new targets efiemu32.o and efiemu64.o
5574 * loader/linux_normal_efiemu.c: likewise
5575 * loader/i386/efi/linux.c: added preliminary efiemu support
5576 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5577 files to copy
5578 * include/grub/autoefi.h: new file
5579 * include/grub/i386/efiemu.h: likewise
5580 * include/grub/i386/pc/efiemu.h: likewise
5581 * include/grub/efi/api.h: add LL suffix when necessary
5582 new definitions relating to tables
5583 * include/grub/efiemu/efiemu.h: new file
5584 * include/grub/efiemu/runtime.h: likewise
5585 * efiemu/prepare.c: likewise
5586 * efiemu/loadcore_common.c: likewise
5587 * efiemu/loadcore64.c: likewise
5588 * efiemu/runtime/efiemu.sh: likewise
5589 * efiemu/runtime/efiemu.S: likewise
5590 * efiemu/runtime/efiemu.c: likewise
5591 * efiemu/runtime/config.h: likewise
5592 * efiemu/prepare32.c: likewise
5593 * efiemu/main.c: likewise
5594 * efiemu/modules/pnvram.c: likewise
5595 * efiemu/modules/i386: likewise
5596 * efiemu/modules/i386/pc: likewise
5597 * efiemu/modules/acpi.c: likewise
5598 * efiemu/i386/pc/cfgtables.c: likewise
5599 * efiemu/i386/loadcore64.c: likewise
5600 * efiemu/i386/loadcore32.c: likewise
5601 * efiemu/prepare64.c: likewise
5602 * efiemu/loadcore.c: likewise
5603 * efiemu/symbols.c: likewise
5604 * efiemu/mm.c: likewise
5605 * efiemu/loadcore32.c: likewise
5606
5607 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 ACPI spoofing
5610
5611 * commands/acpi.c: new file
5612 * commands/i386/pc/acpi.c: likewise
5613 * commands/efi/acpi.c: likewise
5614 * include/grub/acpi.h: likewise
5615 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
5616 (acpi_mod_SOURCES): new variable
5617 (acpi_mod_CFLAGS): likewise
5618 (acpi_mod_LDFLAGS): likewise
5619 * conf/i386-efi.rmk: likewise
5620 * conf/x86_64-efi.rmk: likewise
5621
5622 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 Missing part from mmap patch
5625
5626 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
5627 (grub_mmap_unregister)
5628 (grub_mmap_free_and_unregister): use grub_mmap_register
5629
5630 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 Mmap services
5633
5634 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
5635 * loader/i386/linux.c (find_mmap_size): likewise
5636 (allocate_pages): likewise
5637 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
5638 (grub_fill_multiboot_mmap): likewise
5639 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
5640 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
5641 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
5642 (OPENBSD_MMAP_RESERVED): likewise
5643 * include/grub/i386/pc/memory.h: include grub/memory.h
5644 (grub_lower_mem): removed
5645 (grub_upper_mem): likewise
5646 (GRUB_MACHINE_MEMORY_ACPI): new definition
5647 (GRUB_MACHINE_MEMORY_NVS): likewise
5648 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
5649 (GRUB_MACHINE_MEMORY_HOLE): likewise
5650 (grub_machine_mmap_register): likewise
5651 (grub_machine_mmap_unregister): likewise
5652 (grub_machine_get_upper): likewise
5653 (grub_machine_get_lower): likewise
5654 (grub_machine_get_post64): likewise
5655 * include/grub/i386/efi/memory.h: new file
5656 * include/grub/x86_64/efi/memory.h: likewise
5657 * include/grub/efi/memory.h: likewise
5658 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
5659 (mmap_mod_SOURCES): new variable
5660 (mmap_mod_LDFLAGS): likewise
5661 (mmap_mod_ASFLAGS): likewise
5662 * conf/i386-coreboot.rmk: likewise
5663 * conf/i386-ieee1275.rmk: likewise
5664 * conf/i386-efi.rmk: likewise
5665 * conf/x86_64-efi.rmk: likewise
5666 * include/grub/types.h (UINT_TO_PTR): new macro
5667 (PTR_TO_UINT32): likewise
5668 (PTR_TO_UINT64): likewise
5669 * include/grub/memory.h: new file
5670 * mmap/i386/pc/mmap.c: likewise
5671 * mmap/i386/pc/mmap_helper.S: likewise
5672 * mmap/i386/uppermem.c: likewise
5673 * mmap/mmap.c: likewise
5674 * mmap/efi/mmap.c: likewise
5675 * kern/i386/coreboot/init.c (grub_machine_init): don't use
5676 grub_upper_mem
5677 * kern/i386/pc/init.c (grub_lower_mem): removed variable
5678 (grub_upper_mem): likewise
5679 (grub_machine_init): don't use grub_upper_mem,
5680 make grub_lower_mem local
5681 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
5682 grub_mmap_iterate and grub_mmap_get_upper
5683 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
5684
5685 2009-05-02 Bean <bean123ch@gmail.com>
5686
5687 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
5688 script/sh/parser.y.
5689 (pkglib_MODULES): Add normal.mod and sh.mod.
5690 (normal_SOURCES): New variable.
5691 (normal_mod_CFLAGS): Likewise.
5692 (normal_mod_LDFLAGS): Likewise.
5693 (sh_mod_SOURCES): Likewise.
5694 (sh_mod_CFLAGS): Likewise.
5695 (sh_mod_LDFLAGS): Likewise.
5696
5697 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
5698 script/sh/lexer.c_DEPENDENCIES.
5699 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
5700 kern/rescue_reader.c and kern/rescue_parser.c.
5701 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
5702 (grub_emu_SOURCES): Change source files.
5703 (pkglib_MODULES): Remove normal.mod.
5704 (normal_SOURCES): Removed.
5705 (normal_mod_CFLAGS): Likewise.
5706 (normal_mod_LDFLAGS): Likewise.
5707 * conf/i386-coreboot.rmk: Likewise.
5708 * conf/i386-efi.rmk: Likewise.
5709 * conf/i386-ieee1276.rmk: Likewise.
5710 * conf/powerpc-ieee1275.rmk: Likewise.
5711 * conf/sparc64-ieee1275.rmk: Likewise.
5712 * conf/x86_64-efi.rmk: Likewise.
5713
5714 * include/grub/command.h (grub_command_execute): New inline function.
5715
5716 * include/grub/menu.h (grub_menu_entry): Removed commands field.
5717
5718 * include/grub/normal.h: Remove <grub/setjmp.h>.
5719 (grub_fs_module_list): Moved to normal/autofs.c.
5720 (grub_exit_env): Removed.
5721 (grub_command_execute): Likewise.
5722 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
5723 parameter script.
5724 (read_command_list): New function declaration.
5725 (read_fs_list): Likewise.
5726
5727 * include/parser.h: Include <grub/reader.h>.
5728 (grub_parser_split_cmdline): Change type of getline parameter.
5729 (grub_parser): New structure.
5730 (grub_parser_class): New variable.
5731 (grub_parser_execute): New function declaration.
5732 (grub_register_rescue_parser): Likewise.
5733 (grub_parser_register): New inline function.
5734 (grub_parser_unregister): Likewise.
5735 (grub_parser_get_current): Likewise.
5736 (grub_parser_set_current): Likewise.
5737
5738 * include/grub/reader.h: New file.
5739 * kern/reader.c: Likewise.
5740 * kern/rescue_parser.c: Likewise.
5741 * kern/rescue_reader.c: Likewise.
5742 * normal/autofs.c: Likewise.
5743 * normal/dyncmd.c: Likewise.
5744
5745 * include/grub/rescue.h: Removed.
5746 * normal/command.h: Likewise.
5747
5748 * include/grub/script.h: Moved to ...
5749 * include/grub/script_sh.h: ... Moved here.
5750 * normal/execute.c: Moved to ...
5751 * script/sh/execute.c: ... Moved here.
5752 * normal/function.c: Moved to ...
5753 * script/sh/function.c: ... Moved here.
5754 * normal/lexer.c: Moved to ...
5755 * script/sh/lexer.c: ... Moved here.
5756 * normal/parser.y: Moved to ...
5757 * script/sh/parser.y: ... Moved here.
5758 * normal/script.c: Moved to ...
5759 * script/sh/script.c: ... Moved here.
5760
5761 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
5762 <grub/reader.h>.
5763 (grub_exit_env): Removed.
5764 (fs_module_list): Moved to normal/autofs.c.
5765 (grub_file_getline): Don't handle comment here.
5766 (free_menu): Skip removed field entry->commands.
5767 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
5768 script parameter.
5769 (read_config_file): Removed nested parameter, change getline function.
5770 (grub_enter_normal_mode): Removed.
5771 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
5772 (read_command_list): Likewise.
5773 (autoload_fs_module): Moved to normal/autofs.c.
5774 (read_fs_list): Likewise.
5775 (reader_nested): New variable.
5776 (grub_normal_execute): Run parser.sh to switch to sh parser.
5777 (grub_cmd_rescue): Removed.
5778 (cmd_normal): Removed.
5779 (grub_cmd_normal): Unregister itself at the beginning. Don't register
5780 rescue command.
5781 (grub_cmdline_run): New function.
5782 (grub_normal_reader_init): Likewise.
5783 (grub_normal_read_line): Likewise.
5784 (grub_env_write_pager): Likewise.
5785 (cmdline): New variable.
5786 (grub_normal_reader): Likewise.
5787 (GRUB_MOD_INIT): Register normal reader and set as current, register
5788 pager hook, register normal command with grub_register_command_prio,
5789 so that it won't show up in command.lst.
5790 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
5791 grub_fs_autoload_hook.
5792
5793 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
5794 (grub_menu_execute_entry): Replace grub_script_execute with
5795 grub_parser_execute, change parameter to grub_command_execute.
5796
5797 * normal/menu_text.c: Remove <grub/script.h>.
5798
5799 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
5800 and <grub/parser.h>.
5801 (run): Change editor_getline to use new parser interface. Change
5802 parameter to grub_command_execute.
5803
5804 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
5805 <grub/reader.h> and <grub/parser.h>.
5806 (grub_load_normal_mode): Execute normal command.
5807 (grub_main): Call grub_register_core_commands,
5808 grub_register_rescue_parser and grub_register_rescue_reader, use
5809 grub_reader_loop to enter input loop.
5810
5811 * kern/parser.c (grub_parser_split_cmdline): Change type of
5812 getline parameter.
5813 (grub_parser_class): New variable.
5814 (grub_parser_execute): New function.
5815
5816 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
5817 * loader/multiboot2.c: Likewise.
5818 * loader/sparc64/ieee1275/linux.c: Likewise.
5819
5820 * util/grub-emu.c (read_command_list): New dummy function.
5821
5822 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5823
5824 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
5825 count to 16 for CCISS and IDA.
5826
5827 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5828
5829 * normal/menu_text.c (grub_wait_after_message): Print a newline
5830 after waiting for user input.
5831
5832 * loader/i386/linux.c: Include `<grub/normal.h>'.
5833 (grub_cmd_linux): Improve the error message about `ask' mode, by
5834 waiting for user input so it's not missed (we can do this, since
5835 user requested interaction).
5836
5837 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 Added missing lst to grub-mkrescue
5840
5841 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
5842 and ${input_dir}/parttool.lst
5843
5844 2009-04-30 David S. Miller <davem@davemloft.net>
5845
5846 * util/hostdisk.c (device_is_wholedisk): New function.
5847 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
5848 zero only if device_is_wholedisk() returns true.
5849
5850 * util/hostdisk.c (convert_system_partition_to_system_disk):
5851 Handle virtual disk devices named /dev/vdiskX as found on sparc
5852 and powerpc.
5853
5854 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
5855 lettered partition specifier is found, convert to numbered.
5856
5857 2009-04-29 David S. Miller <davem@davemloft.net>
5858
5859 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
5860 * include/grub/sparc64/ieee1275/memory.h: Likewise.
5861
5862 * normal/command.c: Add missing newline at end of file.
5863
5864 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
5865 warnings.
5866 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
5867 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
5868 grub_ofdisk_read): Likewise, and deal similarly with the fact that
5869 ihandles have a 32-bit type but need to be stored in a "void *".
5870
5871 2009-04-28 Pavel Roskin <proski@gnu.org>
5872
5873 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
5874 not disk. Adjust all dependencies.
5875 (grub_fs_uuid_close): Use grub_device_close(), not
5876 grub_disk_close().
5877
5878 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
5879 parent's partition, don't copy it by reference, as it gets freed
5880 on close.
5881
5882 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5883
5884 Preboot hooks support
5885
5886 * commands/boot.c (struct grub_preboot_t): new declaration
5887 (preboots_head): new variable
5888 (preboots_tail): likewise
5889 (grub_loader_register_preboot_hook): new function
5890 (grub_loader_unregister_preboot_hook): likewise
5891 (grub_loader_set): launch preboot hooks
5892 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
5893 (grub_loader_register_preboot_hook): new declaration
5894 (grub_loader_unregister_preboot_hook): likewise
5895
5896 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5897
5898 Warning fix
5899
5900 * disk/scsi.c (grub_scsi_open): added missing cast when
5901 calling grub_dprintf
5902
5903 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 Bug and warning fixes
5906
5907 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
5908 declaration
5909 * commands/test.c (test_parse): fixed bug with file tests and corrected
5910 declaration of find_file
5911
5912 2009-04-26 Pavel Roskin <proski@gnu.org>
5913
5914 * Makefile.in: Don't install empty manual pages if help2man is
5915 missing. Use help2man option for output, not shell redirection.
5916
5917 2009-04-26 David S. Miller <davem@davemloft.net>
5918
5919 * util/grub-mkdevicemap.c (make_device_map): Add missing
5920 NESTED_FUNC_ATTR to process_device().
5921
5922 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 Test command
5925
5926 * commands/test.c: rewritten to use bash-like test
5927
5928 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 Parttool autoloading and improvements
5931
5932 * Makefile.in (pkglib_DATA): add parttool.lst
5933 (parttool.lst): new target
5934 * genmk.rb: generate parttool-*
5935 (CLEANFILES): add #{parttool}
5936 (PARTTOOLFILES): new variable
5937 * genparttoollist.sh: new file
5938 * parttool/pcpart.c (grub_pcpart_boot): more feedback
5939 (grub_pcpart_type): likewise
5940 * commands/parttool.c (helpmsg): new variable
5941 (grub_cmd_parttool): output help if not enough arguments are supplied
5942 autoload modules
5943 (GRUB_MOD_INIT(parttool)): use helpmsg
5944
5945 2009-04-24 David S. Miller <davem@davemloft.net>
5946
5947 Avoiding opening same device multiple times in device iterator.
5948
5949 * kern/device.c: (grub_device_iterate): Define struct part_ent,
5950 and use it to build a list of partitions in iterate_disk() and
5951 iterate_partition().
5952
5953 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
5954 on disk->data.
5955
5956 * disk/ieee1275/nand.c (grub_nand_iterate): Return
5957 grub_devalias_iterate() result instead of unconditional 0.
5958 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
5959 Also, capture hook return value, either directly or via
5960 grub_children_iterate(), and propagate to caller.
5961 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
5962 grub_children_iterate): Return value is now 'int' instead of
5963 'grub_err_t'.
5964 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
5965 like a proper iterator, stopping when hooks return non-zero.
5966 (grub_devalias_iterate): Likewise.
5967
5968 2009-04-23 David S. Miller <davem@davemloft.net>
5969
5970 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
5971
5972 2009-04-22 David S. Miller <davem@davemloft.net>
5973
5974 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
5975 is larger than address_cells, use that value for address_cells too.
5976
5977 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
5978 IEEE1275_MAX_PATH_LEN): Define.
5979 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
5980 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
5981 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
5982 'devtype'. Explicitly NULL terminate devalias expansion.
5983
5984 * util/sparc64/ieee1275/misc.c: New file.
5985 * util/sparc64/ieee1275/grub-setup.c: New file.
5986 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
5987 * util/sparc64/ieee1275/grub-mkimage.c: New file.
5988 * util/sparc64/ieee1275/grub-install.in: New file.
5989 * util/ieee1275/ofpath.c: New file.
5990 * util/ieee1275/devicemap.c: New file.
5991 * util/devicemap.c: New file.
5992 * util/deviceiter.c: New file.
5993 * kern/sparc64/ieee1275/init.c: New file.
5994 * include/grub/util/ofpath.h: New file.
5995 * include/grub/util/deviceiter.h: New file.
5996 * util/grub-mkdevicemap.c: Include deviceiter.h.
5997 Implement using grub_util_emit_devicemap_entry and
5998 grub_util_iterate_devices.
5999 * conf/i386-corebook.rmk: Build util/deviceiter.c and
6000 util/devicemap.c into grub-mkdevicemap
6001 * conf/i386-efi.rmk: Likewise.
6002 * conf/i386-ieee1275.rmk: Likewise.
6003 * conf/i386-pc.rmk: Likewise.
6004 * conf/powerpc-ieee1275.rmk: Likewise.
6005 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
6006 images and installation utilities. Build kernel as image
6007 instead of as elf binary. Use common rules as much as possible.
6008
6009 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6010
6011 Correct GPT definition
6012
6013 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
6014 of "attrib" member
6015
6016 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
6017
6018 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
6019
6020 2009-04-19 David S. Miller <davem@davemloft.net>
6021
6022 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
6023 (grub_rescue_cmd_linux): Rename to...
6024 (grub_cmd_linux): and fix prototype.
6025 (grub_rescue_cmd_initrd): Rename to...
6026 (grub_cmd_initrd): and fix prototype.
6027 (cmd_linux, cmd_initrd): New.
6028 (GRUB_MOD_INIT(linux)): Use grub_register_command().
6029 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
6030
6031 2009-04-17 Pavel Roskin <proski@gnu.org>
6032
6033 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
6034 format.
6035 (grub_ohci_transfer): Likewise.
6036
6037 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
6038
6039 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
6040 return without a value. Fix inconsistent indentation.
6041
6042 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
6043 match struct grub_fs.
6044
6045 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
6046 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
6047 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
6048 * commands/lspci.c (grub_lspci_iter): Likewise.
6049
6050 2009-04-16 Bean <bean123ch@gmail.com>
6051
6052 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
6053 value.
6054
6055 2009-04-15 Pavel Roskin <proski@gnu.org>
6056
6057 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
6058 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
6059 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
6060 definitions.
6061
6062 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
6063
6064 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
6065 that no multiple data or metadata areas are supported and `Unknown
6066 metadata header'.
6067
6068 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6069
6070 Move loader out of the kernel
6071
6072 * kern/loader.c: moved to ...
6073 * commands/boot.c: ... moved here
6074 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
6075 * commands/boot.c (grub_cmd_boot): moved here. All users updated
6076 * include/grub/kernel.h (grub_machine_fini): export
6077 * include/grub/loader.h (grub_loader_is_loaded): update declaration
6078 (grub_loader_set): likewise
6079 (grub_loader_unset): likewise
6080 (grub_loader_boot): likewise
6081 * conf/common.rmk: new module boot.mod
6082 (pkglib_MODULES): add boot.mod
6083 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
6084 (grub_emu_SOURCES): likewise
6085 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
6086 (grub_emu_SOURCES): likewise
6087 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
6088 (grub_emu_SOURCES): likewise
6089 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
6090 (grub_emu_SOURCES): likewise
6091 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
6092 (grub_emu_SOURCES): likewise
6093 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
6094 (grub_emu_SOURCES): likewise
6095 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
6096 (grub_emu_SOURCES): likewise
6097
6098 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
6101
6102 * kern/misc.c (grub_itoa): Removed function
6103 (grub_ltoa): likewise
6104 (grub_vsprintf): use grub_lltoa
6105
6106 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 Restore grub-emu
6109
6110 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
6111 * conf/i386-coreboot.rmk: likewise
6112 * conf/i386-ieee1275.rmk: likewise
6113 * conf/powerpc-ieee1275.rmk: likewise
6114
6115 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
6116
6117 * INSTALL: Add that `./autogen.sh' needs to be run before
6118 `./configure.'.
6119
6120 2009-04-14 Bean <bean123ch@gmail.com>
6121
6122 * Makefile.in (pkglib_DATA): Add handler.lst.
6123 (handler.lst): New rule.
6124
6125 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
6126 * conf/i386-coreboot.rmk: Likewise.
6127 * conf/i386-ieee1275.rmk: Likewise.
6128 * conf/i386-efi.rmk: Likewise.
6129 * conf/x86_64-efi.rmk: Likewise.
6130 * conf/powerpc-ieee1275.rmk: Likewise.
6131 * conf/sparc64-ieee1275.rmk: Likewise.
6132
6133 * genhandlerlist.sh: New file.
6134
6135 * genmk.rb: Add rules to generate handler.lst.
6136
6137 * include/grub/normal.h (grub_file_getline): New function definition.
6138 (read_handler_list): Likewise.
6139 (free_handler_list): Likewise.
6140
6141 * include/grub/term.h (grub_term_register_input): Add name parameter
6142 for auto generation of handler.lst.
6143 (grub_term_register_output): Likewise.
6144
6145 * normal/handler.c: New file.
6146
6147 * normal/main.c (get_line): Renamed to grub_file_getline.
6148 (read_config_file): Use the newly renamed grub_file_getline.
6149 (read_command_list): Likewise.
6150 (read_fs_list): Likewise.
6151 (grub_normal_execute): Call read_handler_list to parse handler.lst.
6152 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
6153
6154 * term/efi/console.c (grub_console_init): Add name parameter for auto
6155 generation of handler.lst.
6156 * term/gfxterm.c: Likewise.
6157 * term/i386/pc/at_keyboard.c: Likewise.
6158 * term/i386/pc/console.c: Likewise.
6159 * term/i386/pc/serial.c: Likewise.
6160 * term/i386/pc/vesafb.c: Likewise.
6161 * term/i386/pc/vga.c: Likewise.
6162 * term/i386/pc/vga_text.c: Likewise.
6163 * term/ieee1275/ofconsole.c: Likewise.
6164 * term/usb_keyboard.c: Likewise.
6165
6166 2009-04-14 Bean <bean123ch@gmail.com>
6167
6168 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
6169 properly with null character.
6170
6171 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
6172
6173 * configure: Remove.
6174 * config.h.in: Likewise.
6175 * stamp-h.in: Likewise.
6176 * DISTLIST: Likewise.
6177 * conf/common.mk: Likewise.
6178 * conf/i386-coreboot.mk: Likewise.
6179 * conf/i386-efi.mk: Likewise.
6180 * conf/i386-ieee1275.mk: Likewise.
6181 * conf/i386.mk: Likewise.
6182 * conf/i386-pc.mk: Likewise.
6183 * conf/powerpc-ieee1275.mk: Likewise.
6184 * conf/sparc64-ieee1275.mk: Likewise.
6185 * conf/x86_64-efi.mk: Likewise.
6186
6187 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
6188 develop on GRUB.
6189
6190 2009-04-14 John Stanley <jpsinthemix@verizon.net>
6191 David S. Miller <davem@davemloft.net>
6192
6193 * util/hostdisk.c (make_device_name): Fix buffer length
6194 calculations.
6195
6196 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
6197
6198 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
6199 <sys/param.h> and <sys/sysctl.h>.
6200 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
6201 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
6202 opening the device and reset them afterwards.
6203
6204 2009-04-13 Pavel Roskin <proski@gnu.org>
6205
6206 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
6207 Reported by John Stanley <jpsinthemix@verizon.net>
6208
6209 2009-04-13 Robert Millan <rmh@aybabtu.com>
6210
6211 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
6212 that name for menuentries when appropriate.
6213
6214 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
6215
6216 * util/grub.d/10_freebsd.in: Add a missing `fi'.
6217
6218 2009-04-13 Robert Millan <rmh@aybabtu.com>
6219
6220 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
6221 to Linux, simply abort telling the user it's no longer supported.
6222
6223 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
6224
6225 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
6226 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
6227 `freebsd_loadenv' only when devices.hints exist.
6228
6229 2009-04-13 Pavel Roskin <proski@gnu.org>
6230
6231 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
6232
6233 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
6234
6235 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
6236 partition number.
6237 (grub_drive): Likewise.
6238
6239 2009-04-13 David S. Miller <davem@davemloft.net>
6240
6241 * kern/sparc64/ieee1275/ieee1275.c: New file.
6242 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
6243 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
6244 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
6245 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
6246 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
6247 grub_ieee1275_alloc_physmem): Declare new exported functions.
6248
6249 * include/grub/sparc64/ieee1275/loader.h: New file.
6250 * include/grub/sparc64/ieee1275/memory.h: Likewise.
6251 * include/grub/sparc64/kernel.h: Likewise.
6252 * loader/sparc64/ieee1275/linux.c: Likewise.
6253
6254 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
6255 (grub_fstest_SOURCES): Likewise.
6256
6257 * util/hostdisk.c (make_device_name): Do not make any assumptions
6258 about the length of drive names.
6259
6260 * kern/dl.c (grub_dl_load_file): Close file immediately when
6261 we are done using it.
6262
6263 2009-04-12 David S. Miller <davem@davemloft.net>
6264
6265 * kern/misc.c (grub_ltoa): Fix cast when handling negative
6266 values. Noticed by Pavel Roskin.
6267
6268 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
6269 target compiler.
6270
6271 * genmk.rb: Add more flexible image type specification, also
6272 pass --strip-unneeded to objcopy.
6273 * conf/i386-pc.rmk: Use *_FORMAT.
6274 * conf/i386-pc.mk: Rebuilt.
6275
6276 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
6277 (OFDISK_HASH_SZ): Define.
6278 (ofdisk_hash): New hash table.
6279 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
6280 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
6281 instead of device phandle which is not unique.
6282
6283 * kern/sparc64/ieee1275/init.c: Delete, replace with...
6284 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
6285 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
6286 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
6287 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
6288 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
6289 GRUB_KERNEL_MACHINE_DATA_END): Define.
6290 (grub_kernel_image_size, grub_total_module_size): Declare.
6291
6292 2009-04-12 Pavel Roskin <proski@gnu.org>
6293
6294 * configure.ac: Change the logic when we check for target tools.
6295 Do it when the target is specified and it's different from the
6296 specified value of the host.
6297
6298 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
6299
6300 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
6301 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
6302 GNU/kFreeBSD. Check if a device is a character device. Use
6303 DIOCGMEDIASIZE to get the size.
6304 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
6305 support for GNU/kFreeBSD.
6306 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
6307 is a character device instead of a block device. Add support for
6308 FreeBSD device names.
6309
6310 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
6311 is a character device instead of a block device.
6312
6313 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
6314 is a character device instead of a block device.
6315
6316 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
6317
6318 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
6319 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
6320 FreeBSD. Check if a device is a character device. Use
6321 DIOCGMEDIASIZE to get the size.
6322 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
6323 support for FreeBSD.
6324 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
6325 is a character device instead of a block device. Add support for
6326 FreeBSD device names.
6327
6328 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
6329 a character device instead of a block device.
6330 (grub_util_check_char_device): New function.
6331
6332 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
6333 a character device instead of a block device.
6334
6335 * include/grub/util/getroot.h (grub_util_check_char_device): New
6336 prototype.
6337
6338 2009-04-11 David S. Miller <davem@davemloft.net>
6339
6340 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
6341 static libgcc.
6342 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
6343 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
6344 function, if present.
6345 (__bswapdi2): Likewise.
6346
6347 * include/grub/sparc64/ieee1275/boot.h: New file.
6348 * boot/sparc64/ieee1275/boot.S: Likewise.
6349 * boot/sparc64/ieee1275/diskboot.S: Likewise.
6350
6351 * kern/misc.c (grub_ltoa): New function.
6352 (grub_vsprintf): Use it to format 'long' integers.
6353
6354 2009-04-10 David S. Miller <davem@davemloft.net>
6355
6356 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
6357 slots are of type grub_ieee1275_cell_t.
6358 (grub_nand_read): Likewise.
6359 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
6360 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
6361 macros are used to compare values in arg/ret block of the call.
6362 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
6363 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
6364 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
6365 grub_ieee1275_instance_to_path, grub_ieee1275_write,
6366 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
6367 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
6368 grub_ieee1275_close, grub_ieee1275_set_property,
6369 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
6370 grub_ieee1275_cell_t.
6371 * kern/ieee1275/openfw.c (grub_map): Likewise.
6372 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
6373 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
6374
6375 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
6376 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
6377 (grub_devalias_iterate): Likewise.
6378
6379 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 UFS improvements
6382
6383 * fs/ufs.c (INODE_NBLOCKS): new definition
6384 (struct grub_ufs_dirent): added fields for non-BSD dirents
6385 (grub_ufs_get_file_block): fixed double indirect handling
6386 (grub_ufs_lookup_symlink): use more robust way to determine whether
6387 symlink is inline
6388 (grub_ufs_find_file): support for non-BSD dirents
6389 (grub_ufs_dir): support for non-BSD dirents
6390
6391 2009-04-10 Bean <bean123ch@gnail.com>
6392
6393 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
6394 attribute, otherwise the size would be wrong for i386 platform.
6395
6396 * include/grub/pci.h (grub_pci_read_word): New inline function.
6397 (grub_pci_read_byte): Likewise.
6398 (grub_pci_write): Likewise.
6399 (grub_pci_write_word): Likewise.
6400 (grub_pci_write_byte): Likewise.
6401
6402 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
6403
6404 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
6405 (find_framebuf): Scan pci to locate the frame buffer address.
6406
6407 * commands/efi/fixvideo.c: New file.
6408
6409 * commands/efi/loadbios.c: Likewise.
6410
6411 * commands/memrw.c: Likewise.
6412
6413 * util/grub-dumpbios.in: Likewise.
6414
6415 * conf/common.rmk (grub-dumpbios): New utility.
6416 (pkglib_MODULES): New module memrw.mod.
6417 (memrw_mod_SOURCE): New macro.
6418 (memrw_mod_CFLAGS): Likewise.
6419 (memrw_mod_LDFLAGS): Likewise.
6420
6421 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
6422 fixvideo.mod.
6423 (loadbios_mod_SOURCE): New macro.
6424 (loadbios_mod_CFLAGS): Likewise.
6425 (loadbios_mod_LDFLAGS): Likewise.
6426 (fixvideo_mod_SOURCE): Likewise.
6427 (fixvideo_mod_CFLAGS): Likewise.
6428 (fixvideo_mod_LDFLAGS): Likewise.
6429
6430 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
6431 fixvideo.mod.
6432 (loadbios_mod_SOURCE): New macro.
6433 (loadbios_mod_CFLAGS): Likewise.
6434 (loadbios_mod_LDFLAGS): Likewise.
6435 (fixvideo_mod_SOURCE): Likewise.
6436 (fixvideo_mod_CFLAGS): Likewise.
6437 (fixvideo_mod_LDFLAGS): Likewise.
6438
6439 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
6440
6441 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
6442
6443 2009-04-07 David S. Miller <davem@davemloft.net>
6444
6445 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
6446 support for R_SPARC_OLO10 relocations. Fix compile warning for
6447 R_SPARC_WDISP30 case.
6448 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
6449
6450 2009-04-06 Pavel Roskin <proski@gnu.org>
6451
6452 * include/grub/misc.h (ARRAY_SIZE): New macro.
6453 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
6454 New macro.
6455 * loader/i386/linux.c (allocate_pages): Use free_pages().
6456 (grub_linux_unload): Don't use free_pages().
6457 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
6458 wrong index. Treat all other modes as text modes.
6459 (grub_cmd_linux): Initialize vid_mode unconditionally to
6460 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
6461
6462 * commands/help.c (print_command_help): Use cmd->prio, not
6463 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
6464
6465 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6466
6467 Parttool
6468
6469 * parttool/pcpart.c: new file
6470 * commands/parttool.c: likewise
6471 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
6472 (parttool_mod_SOURCES): new variable
6473 (parttool_mod_CFLAGS): likewise
6474 (parttool_mod_LDFLAGS): likewise
6475 (pcpart_mod_SOURCES): likewise
6476 (pcpart_mod_CFLAGS): likewise
6477 (pcpart_mod_LDFLAGS): likewise
6478 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
6479 and parttool/pcpart.c
6480 * conf/i386-efi.rmk: likewise
6481 * conf/i386-ieee1275.rmk: likewise
6482 * conf/i386-pc.rmk: likewise
6483 * conf/powerpc-ieee1275.rmk: likewise
6484 * conf/sparc64-ieee1275.rmk: likewise
6485 * conf/x86_64-ieee1275.rmk: likewise
6486
6487 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 Support for mtime and further expandability of dir command
6490
6491 * include/grub/lib/datetime.h: moved to ...
6492 * include/grub/datetime.h: ... moved here and added
6493 declaration of grub_unixtime2datetime. All users updated
6494 * include/grub/fs.h: new syntax for dir and mtime functions in
6495 struct grub_fs
6496 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
6497 and GRUB_FSHELP_FLAGS_MASK
6498 * commands/ls.c (grub_ls_list_files): Write mtime in long format
6499 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
6500 (grub_ext2_mtime): new function
6501 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
6502 (grub_hfsplus_mtime): new function
6503 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
6504 (GRUB_UFS_ATTR_FILE): likewise
6505 (GRUB_UFS_ATTR_LNK): likewise
6506 (struct grub_ufs_sblock): new fields mtime
6507 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
6508 all users updated
6509 (grub_ufs_dir): mtime support
6510 (grub_ufs_mtime): new function
6511 * fs/affs.c (grub_affs_dir): use new dir syntax
6512 * fs/afs.c (grub_afs_dir): likewise
6513 * fs/cpio.c (grub_cpio_dir): likewise
6514 * fs/fat.c (grub_fat_find_dir): likewise
6515 * fs/hfs.c (grub_hfs_dir): likewise
6516 * fs/iso9660.c (grub_iso9660_dir): likewise
6517 * fs/jfs.c (grub_jfs_dir): likewise
6518 * fs/minix.c (grub_minix_dir): likewise
6519 * fs/ntfs.c (grub_ntfs_dir): likewise
6520 * fs/reiserfs.c (grub_reiserfs_dir): likewise
6521 * fs/sfs.c (grub_sfs_dir): likewise
6522 * fs/xfs.c (grub_xfs_dir): likewise
6523 * util/hostfs.c (grub_hostfs_dir): likewise
6524 * lib/datetime.c: moved to ...
6525 * normal/datetime.c: ... moved here
6526 (grub_unixtime2datetime): new function
6527 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
6528 * normal/completion.c (iterate_dir): use new dir syntax
6529 * normal/misc.c (grub_normal_print_device_info): tell the
6530 last modification time of a volume
6531 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
6532 * conf/common.rmk: added lib/datetime.c to ls.mod
6533 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
6534 (normal_mod_SOURCES): likewise
6535 (datetime_mod_SOURCES): Removed lib/datetime.c
6536 * conf/i386-efi.rmk: likewise
6537 * conf/i386-ieee1275.rmk: likewise
6538 * conf/i386-pc.rmk: likewise
6539 * conf/powerpc-ieee1275.rmk: likewise
6540 * conf/sparc64-ieee1275.rmk: likewise
6541 * conf/x86_64-efi.rmk: likewise
6542
6543 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6544
6545 Trim trailing spaces in FAT label and support mtools-like labels
6546
6547 * fs/fat.c (grub_fat_iterate_dir): New function based
6548 on grub_fat_find_dir
6549 (grub_fat_find_dir): use grub_fat_iterate_dir
6550 (grub_fat_label): likewise
6551
6552 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
6555 and command.h
6556 remove extraneous kernel_elf_HEADERS
6557
6558 2009-04-04 Bean <bean123ch@gnail.com>
6559
6560 * include/grub/util/misc.h: Add dummy function fsync for mingw.
6561
6562 * util/misc.c: Likewise.
6563
6564 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
6565
6566 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
6567 instead of grub_printf.
6568
6569 2009-04-03 Robert Millan <rmh@aybabtu.com>
6570
6571 * loader/i386/linux.c (grub_linux_setup_video): Fill
6572 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
6573 values from `mode info' structure instead of hardcoded
6574 values.
6575
6576 2009-04-01 Pavel Roskin <proski@gnu.org>
6577
6578 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
6579 unused now.
6580 * genmk.rb: Likewise.
6581 * configure.ac: Likewise.
6582
6583 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
6584
6585 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
6586 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
6587
6588 2009-04-01 David S. Miller <davem@davemloft.net>
6589
6590 * normal/sparc64/setjmp.S: Fix setjmp implementation.
6591 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
6592 (grub_setjmp): Mark with 'returns_twice' attribute.
6593 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
6594 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
6595 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
6596
6597 2009-04-01 Robert Millan <rmh@aybabtu.com>
6598
6599 Reapply fix from 2008-07-28 which was accidentally reverted; also
6600 perform the same fix to a similar check in same function.
6601
6602 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
6603 with the same number are found, just use issue a warning with
6604 grub_dprintf(), as this error has been reported to be non-fatal.
6605
6606 2009-03-31 Pavel Roskin <proski@gnu.org>
6607
6608 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
6609 for cross-compilation.
6610
6611 2009-03-30 Robert Millan <rmh@aybabtu.com>
6612
6613 Fix i386-ieee1275 build.
6614
6615 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
6616 Remove declaration.
6617
6618 2009-03-30 Pavel Roskin <proski@gnu.org>
6619
6620 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
6621 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
6622 zero-terminated, rely only on the strlen value. Fix comparison
6623 of strings differing in length.
6624
6625 2009-03-30 Robert Millan <rmh@aybabtu.com>
6626
6627 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
6628 checking for abi version. Improve error messages on BIOS to notify
6629 user about `linux16' command.
6630
6631 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 Leak fixes
6634
6635 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
6636 in case of collision
6637 * disk/scsi.c (grub_scsi_open): free scsi in case of error
6638
6639 2009-03-29 Robert Millan <rmh@aybabtu.com>
6640
6641 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
6642 set `vid_mode' accordingly.
6643 (grub_linux_boot): Process `vid_mode' and set video mode.
6644
6645 2009-03-29 Robert Millan <rmh@aybabtu.com>
6646
6647 * util/grub.d/10_linux.in (linux_entry): New function.
6648 Factorize generation of Linux boot entries.
6649
6650 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
6651
6652 Make the format of Environment Block plain text. The boot loader
6653 part is not tested well yet.
6654
6655 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
6656 (buffer): Removed.
6657 (envblk): Likewise.
6658 (usage): Remove "info" and "clear". Add "unset". Update the
6659 description of "set", as this does not delete variables any
6660 longer.
6661 (create_envblk_file): Complete rewrite.
6662 (open_envblk_file): Likewise.
6663 (cmd_info): Removed.
6664 (cmd_list): Likewise.
6665 (cmd_set): Likewise.
6666 (cmd_clear): Likewise.
6667 (list_variables): New function.
6668 (write_envblk): Likewise.
6669 (set_variables): Likewise.
6670 (unset_variables): Likewise.
6671 (main): Complete rewrite.
6672
6673 * commands/loadenv.c (buffer): Removed.
6674 (envblk): Likewise.
6675 (open_envblk_file): New function.
6676 (read_envblk_file): Complete rewrite.
6677 (grub_cmd_load_env): Likewise.
6678 (grub_cmd_list_env): Likewise.
6679 (struct blocklist): New struct.
6680 (free_blocklists): New function.
6681 (check_blocklists): Likewise.
6682 (write_blocklists): Likewise.
6683 (grub_cmd_save_env): Complete rewrite.
6684
6685 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
6686 a plain text signature.
6687 (GRUB_ENVBLK_MAXLEN): Removed.
6688 (struct grub_envblk): Complete rewrite.
6689 (grub_envblk_find): Removed.
6690 (grub_envblk_insert): Likewise.
6691 (grub_envblk_open): New prototype.
6692 (grub_envblk_set): Likewise.
6693 (grub_envblk_delete): Put const to VALUE.
6694 (grub_envblk_iterate): Put const to NAME and VALUE.
6695 (grub_envblk_close): New prototype.
6696 (grub_envblk_buffer): New inline function.
6697 (grub_envblk_size): Likewise.
6698
6699 * lib/envblk.c: Include grub/mm.h.
6700 (grub_env_find): Removed.
6701 (grub_envblk_open): New function.
6702 (grub_envblk_close): Likewise.
6703 (escaped_value_len): Likewise.
6704 (find_next_line): Likewise.
6705 (grub_envblk_insert): Removed.
6706 (grub_envblk_set): New function.
6707 (grub_envblk_delete): Complete rewrite.
6708 (grub_envblk_iterate): Likewise.
6709
6710 2009-03-28 Robert Millan <rmh@aybabtu.com>
6711
6712 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
6713 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
6714 variables. Use 16-bit loader.
6715 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
6716 loader.
6717 * kern/i386/loader.S (grub_linux_boot): Rename to ...
6718 (grub_linux16_boot): ... this. Update all users.
6719 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
6720 (grub_linux_boot): ... this. Update all users.
6721
6722 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
6723 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
6724 commands to `linux16' and `initrd16'.
6725 (GRUB_MOD_FINI(linux)): Rename to ...
6726 (GRUB_MOD_FINI(linux16)): ... this.
6727
6728 2009-03-24 Pavel Roskin <proski@gnu.org>
6729
6730 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
6731 not just for compilation.
6732
6733 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 Move multiboot helper out of kernel
6736
6737 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
6738 `loader/i386/multiboot_helper.S'.
6739 * conf/i386-coreboot.rmk: Likewise
6740 * conf/i386-ieee1275.rmk: Likewise
6741
6742 * kern/i386/loader.S: Move multiboot helpers from here...
6743 * loader/i386/multiboot_helper.S: ...moved here
6744 * include/grub/i386/loader.h: Move declarations of multiboot
6745 helpers from here...
6746 * include/grub/i386/multiboot.h: ...moved here
6747 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
6748
6749 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6750
6751 * kern/env.c (grub_env_context_open): Added an argument to specify
6752 whether a new context inherits exported variables from current
6753 one. This is useful when making a sandbox to interpret a config
6754 file.
6755 All callers updated.
6756
6757 * include/grub/env.h (grub_env_context_open): Updated the prototype.
6758
6759 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6760
6761 * kern/env.c (grub_env_context_close): Fix memory leaks.
6762
6763 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6764
6765 * normal/main.c (grub_normal_execute): Added an argument
6766 BATCH to specify if an interactive interface should be provided
6767 after reading a config file.
6768 All callers updated.
6769 (read_command_list): Prevent being executed twice.
6770 (read_fs_list): Likewise.
6771
6772 * include/grub/normal.h (grub_normal_execute): Updated the
6773 prototype.
6774
6775 2009-03-22 Pavel Roskin <proski@gno.org>
6776
6777 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
6778 _start.
6779 * kern/i386/pc/startup.S: Likewise.
6780 * kern/i386/efi/startup.S: Likewise.
6781 * kern/i386/ieee1275/startup.S: Likewise.
6782 * kern/i386/coreboot/startup.S: Likewise.
6783 * kern/x86_64/efi/startup.S: Likewise.
6784
6785 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
6786 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
6787 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
6788
6789 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 Bugfixes in multiboot for bugs uncovered by solaris kernel.
6792
6793 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
6794 limit detection.
6795 Use vaddr of correct segment for entry_point.
6796
6797 2009-03-21 Bean <bean123ch@gmail.com>
6798
6799 * commands/blocklist.c: Add include file <grub/command.h>, remove
6800 <grub/normal.h> and <grub/arg.h>.
6801 (grub_cmd_blocklist): Use the new command interface.
6802 (GRUB_MOD_INIT): Likewise.
6803 (GRUB_MOD_FINI): Likewise.
6804 * commands/boot.c: Likewise.
6805 * commands/cat.c: Likewise.
6806 * commands/cmp.c: Likewise.
6807 * commands/configfile.c: Likewise.
6808 * commands/crc.c: Likewise.
6809 * commands/echo.c: Likewise.
6810 * commands/halt.c: Likewise.
6811 * commands/handler.c: Likewise.
6812 * commands/hdparm.c: Likewise.
6813 * commands/help.c: Likewise.
6814 * commands/hexdump.c: Likewise.
6815 * commands/loadenv.c: Likewise.
6816 * commands/ls.c: Likewise.
6817 * commands/lsmmap.c: Likewise.
6818 * commands/lspci.c: Likewise.
6819 * commands/loadenv.c: Likewise.
6820 * commands/read.c: Likewise.
6821 * commands/reboot.c: Likewise.
6822 * commands/search.c: Likewise.
6823 * commands/sleep.c: Likewise.
6824 * commands/test.c: Likewise.
6825 * commands/usbtest.c: Likewise.
6826 * commands/videotest.c: Likewise.
6827 * commands/i386/cpuid.c: Likewise.
6828 * commands/i386/pc/halt.c: Likewise.
6829 * commands/i386/pc/play.c: Likewise.
6830 * commands/i386/pc/pxecmd.c: Likewise.
6831 * commands/i386/pc/vbeinfo.c: Likewise.
6832 * commands/i386/pc/vbetest.c: Likewise.
6833 * commands/ieee1275/suspend.c: Likewise.
6834 * disk/loopback.c: Likewise.
6835 * font/font_cmd.c: Likewise.
6836 * hello/hello.c: Likewise.
6837 * loader/efi/appleloader.c: Likewise.
6838 * loader/efi/chainloader.c: Likewise.
6839 * loader/i386/bsd.c: Likewise.
6840 * loader/i386/efi/linux.c: Likewise.
6841 * loader/i386/ieee1275/linux.c: Likewise.
6842 * loader/i386/linux.c: Likewise.
6843 * loader/i386/pc/chainloader.c: Likewise.
6844 * loader/i386/pc/linux.c: Likewise.
6845 * loader/powerpc/ieee1275/linux.c: Likewise.
6846 * loader/multiboot_loader.c: Likewise.
6847 * term/gfxterm.c: Likewise.
6848 * term/i386/pc/serial.c: Likewise.
6849 * term/terminfo.c: Likewise.
6850
6851 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
6852 * term/i386/pc/vga.c: Likewise.
6853 * video/readers/jpeg.c: Likewise.
6854 * video/readers/png.c: Likewise.
6855 * video/readers/tga.c: Likewise.
6856
6857 * util/grub-fstest (cmd_loopback): Removed.
6858 (cmd_blocklist): Likewise.
6859 (cmd_ls): Likewise.
6860 (grub_register_command): Likewise.
6861 (grub_unregister_command): Likewise.
6862 (execute_command): Use grub_command_find to locate command and execute
6863 it.
6864
6865 * include/grub/efi/chainloader.h: Removed.
6866 * loader/efi/chainloader_normal.c: Likewise.
6867 * loader/i386/bsd_normal.c: Likewise.
6868 * loader/i386/pc/chainloader_normal.c: Likewise.
6869 * loader/i386/pc/multiboot_normal.c: Likewise.
6870 * loader/linux_normal.c: Likewise.
6871 * loader/multiboot_loader_normal.c: Likewise.
6872 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
6873
6874 * gencmdlist.sh: Scan new registration command grub_register_extcmd
6875 and grub_register_command_p1.
6876
6877 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
6878 kern/command.c, lib/arg.c and commands/extcmd.c.
6879 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
6880 (minicmd_mod_SOURCES): New variable.
6881 (minicmd_mod_CFLAGS): Likewise.
6882 (minicmd_mod_LDFLAGS): Likewise.
6883 (extcmd_mod_SOURCES): Likewise.
6884 (extcmd_mod_CFLAGS): Likewise.
6885 (extcmd_mod_LDFLAGS): Likewise.
6886 (boot_mod_SOURCES): Removed.
6887 (boot_mod_CFLAGS): Likewise.
6888 (boot_mod_LDFLAGS): Likewise.
6889
6890 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
6891 kern/corecmd.c.
6892 (kernel_img_HEADERS): Add command.h.
6893 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
6894 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
6895 and lib/arg.c.
6896 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
6897 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
6898 remove the corresponding normal mode command.
6899 (normal_mod_SOURCES): Remove normal/arg.c.
6900 * conf/i386-coreboot.rmk: Likewise.
6901 * conf/i386-efi.rmk: Likewise.
6902 * conf/i386-ieee1275.rmk: Likewise.
6903 * conf/powerpc-ieee1275.rmk: Likewise.
6904 * conf/x86_64-efi.rmk: Likewise.
6905
6906 * include/grub/arg.h: Move from here ...
6907 * include/grub/lib/arg.h: ... to here.
6908
6909 * normal/arg.c: Move from here ...
6910 * lib/arg.c: ... to here.
6911
6912 * commands/extcmd.c: New file.
6913 * commands/minicmd.c: Likewise.
6914 * include/grub/command.h: Likewise.
6915 * include/grub/extcmd.h: Likewise.
6916 * kern/command.c: Likewise.
6917 * kern/corecmd.c: Likewise.
6918
6919 * kern/list.c (grub_list_iterate): Return int instead of void.
6920 (grub_list_insert): New function.
6921 (grub_prio_list_insert): Likewise.
6922
6923 * kern/rescue.c (grub_rescue_command): Removed.
6924 (grub_rescue_command_list): Likewise.
6925 (grub_rescue_register_command): Likewise.
6926 (grub_rescue_unregister_command): Likewise.
6927 (grub_rescue_cmd_boot): Move to minicmd.c
6928 (grub_rescue_cmd_help): Likewise.
6929 (grub_rescue_cmd_info): Likewise.
6930 (grub_rescue_cmd_boot): Likewise.
6931 (grub_rescue_cmd_testload): Likewise.
6932 (grub_rescue_cmd_dump): Likewise.
6933 (grub_rescue_cmd_rmmod): Likewise.
6934 (grub_rescue_cmd_lsmod): Likewise.
6935 (grub_rescue_cmd_exit): Likewise.
6936 (grub_rescue_print_devices): Moved to corecmd.c.
6937 (grub_rescue_print_files): Likewise.
6938 (grub_rescue_cmd_ls): Likewise.
6939 (grub_rescue_cmd_insmod): Likewise.
6940 (grub_rescue_cmd_set): Likewise.
6941 (grub_rescue_cmd_unset): Likewise.
6942 (attempt_normal_mode): Use grub_command_find to get normal module.
6943 (grub_enter_rescue_mode): Use grub_register_core_commands to register
6944 commands, remove grub_rescue_register_command calls.
6945
6946 * normal/command.c (grub_register_command): Removed.
6947 (grub_unregister_command): Likewise.
6948 (grub_command_find): Likewise.
6949 (grub_iterate_commands): Likewise.
6950 (rescue_command): Likewise.
6951 (export_command): Moved to corecmd.c.
6952 (set_command): Removed.
6953 (unset_command): Likewise.
6954 (insmod_command): Likewise.
6955 (rmmod_command): Likewise.
6956 (lsmod_command): Likewise.
6957 (grub_command_init): Likewise.
6958
6959 * normal/completion.c (iterate_command): Use cmd->prio to check for
6960 active command.
6961 (complete_arguments): Use grub_extcmd_t structure to find options.
6962 (grub_normal_do_completion): Change function grub_iterate_commands to
6963 grub_command_iterate.
6964
6965 * normal/execute.c (grub_script_execute_cmd): No need to parse
6966 argument here.
6967
6968 * normal/main.c (grub_dyncmd_dispatcher): New function.
6969 (read_command_list): Register unload commands as dyncmd.
6970 (grub_cmd_normal): Use new command interface, register rescue,
6971 unregister normal at entry, register normal, unregister rescue at exit.
6972
6973 * include/grub/list.h (grub_list_test_t): New type.
6974 (grub_list_iterate): Return int instead of void.
6975 (grub_list_insert): New function.
6976 (GRUB_AS_NAMED_LIST_P): New macro.
6977 (GRUB_AS_PRIO_LIST): Likewise.
6978 (GRUB_AS_PRIO_LIST_P): Likewise.
6979 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
6980 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
6981 (grub_prio_list): New structure.
6982 (grub_prio_list_insert): New function.
6983 (grub_prio_list_remove): New inline function.
6984
6985 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
6986 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
6987 (GRUB_COMMAND_FLAG_MENU): Likewise.
6988 (GRUB_COMMAND_FLAG_BOTH): Likewise.
6989 (GRUB_COMMAND_FLAG_TITLE): Likewise.
6990 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
6991 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
6992 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
6993 (grub_command): Likewise.
6994 (grub_register_command): Likewise.
6995 (grub_command_find): Likewise.
6996 (grub_iterate_commands): Likewise.
6997 (grub_command_init): Likewise.
6998 (grub_arg_parse): Likewise.
6999 (grub_arg_show_help): Likewise.
7000
7001 * include/grub/rescue.h (grub_rescue_register_command): Removed.
7002 (grub_rescue_unregister_command): Likewise.
7003
7004 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
7005 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
7006 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
7007
7008 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
7009 grub_rescue_cmd_initrd.
7010 * include/grub/i386/loader.h: Likewise.
7011 * include/grub/x86_64/loader.h: Likewise.
7012
7013 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
7014
7015 2009-03-21 Bean <bean123ch@gmail.com>
7016
7017 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
7018 instead of stat in mingw environment.
7019
7020 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
7021
7022 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
7023
7024 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
7025 AC_CONFIG_LINKS.
7026
7027 2009-03-21 Bean <bean123ch@gmail.com>
7028
7029 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
7030 out of range error.
7031
7032 2009-03-18 Michel Dänzer <michel@daenzer.net>
7033
7034 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
7035 checking inode flags for EXT4_EXTENTS_FLAG.
7036
7037 2009-03-18 Robert Millan <rmh@aybabtu.com>
7038
7039 * loader/i386/linux.c: Include `<grub/video.h>' and
7040 `<grub/i386/pc/vbe.h>'..
7041 (grub_linux_setup_video): New function. Loosely based on the EFI one.
7042 (grub_linux32_boot): Attempt to configure video settings with
7043 grub_linux_setup_video().
7044 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
7045 to avoid grub_console_fini() which would step out of graphical mode
7046 unconditionally.
7047
7048 2009-03-14 Robert Millan <rmh@aybabtu.com>
7049
7050 Fix build on powerpc.
7051 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
7052
7053 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
7054
7055 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
7056 background image command.
7057
7058 2009-03-12 Colin D Bennett <colin@gibibit.com>
7059
7060 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
7061 (grub_gfxterm_putchar): Extract pairs of identical calls to
7062 draw_cursor out of conditional blocks.
7063
7064 2009-03-11 Pavel Roskin <proski@gnu.org>
7065
7066 * fs/hfs.c (grub_hfs_strncasecmp): New function.
7067 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
7068
7069 2009-03-11 Robert Millan <rmh@aybabtu.com>
7070
7071 * loader/i386/multiboot_elfxx.c
7072 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
7073
7074 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
7075
7076 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
7077 `kern/handler.c'.
7078
7079 2009-03-11 Robert Millan <rmh@aybabtu.com>
7080
7081 * loader/i386/multiboot.c (code_size): New variable.
7082 (grub_multiboot): Define offsets by adding to `code_size' rather
7083 than subtracting from `grub_multiboot_payload_size'. Provide
7084 4-byte alignment to MBI and others by increasing
7085 `boot_loader_name_length' appropriately.
7086
7087 * loader/i386/multiboot_elfxx.c
7088 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
7089
7090 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
7091
7092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
7093 `fs/ext2.c'.
7094
7095 2009-03-08 Robert Millan <rmh@aybabtu.com>
7096
7097 Make loader/i386/linux.c usable on i386-pc again.
7098
7099 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
7100 memory to heap.
7101 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
7102 `#error' stanza.
7103
7104 2009-03-07 Bean <bean123ch@gmail.com>
7105
7106 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
7107 allocation.
7108
7109 2009-03-06 Robert Millan <rmh@aybabtu.com>
7110
7111 Fix display issue on terminals with screen size other than 80x25
7112 (e.g. gfxterm with resolution higher than 640x480).
7113
7114 * normal/main.c (grub_normal_init_page): Display title text in a
7115 position relative to the center of the terminal instead of relying
7116 on a hardcoded offset.
7117
7118 2009-03-04 Robert Millan <rmh@aybabtu.com>
7119
7120 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
7121 installed.
7122
7123 * Makefile.in (host_kernel): New variable.
7124 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
7125 scripts instead of just the windows one.
7126 * configure.ac: Initialize and AC_SUBST `host_kernel'.
7127
7128 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
7129
7130 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
7131 `kern/handler.c'.
7132 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7133 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7134 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
7135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7136 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7137 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7138
7139 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
7140
7141 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
7142 or if there's no space for the disk label and print the partition number on a
7143 invalid magic.
7144
7145 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
7146
7147 * util/misc.c: Include <time.h>.
7148 (grub_millisleep): New function.
7149
7150 2009-03-04 Bean <bean123ch@gmail.com>
7151
7152 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
7153 another option -mno-red-zone.
7154
7155 * commands/handler.c: Change module description.
7156
7157 * kern/handler.c: Add missing space at the end of description line.
7158
7159 * kern/list.c: Likewise.
7160
7161 2009-03-03 Robert Millan <rmh@aybabtu.com>
7162
7163 Move more components to the relocation area, and fix mbi pointer
7164 handling to use the destination rather than the origin (thanks to
7165 Vladimir Serbinenko for spotting).
7166
7167 * loader/i386/multiboot.c (mbi_dest): New variable.
7168 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
7169 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
7170 relocation area.
7171
7172 2009-03-01 Bean <bean123ch@gmail.com>
7173
7174 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
7175 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
7176 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
7177 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
7178
7179 * loader/i386/efi/linux.c (acpi_guid): New variable.
7180 (acpi_guid): Likewise.
7181 (EBDA_SEG_ADDR): New constant.
7182 (LOW_MEM_ADDR): Likewise.
7183 (FAKE_EBDA_SEG): Likewise.
7184 (fake_bios_data): New function.
7185 (grub_linux_boot): Call fake_bios_data.
7186
7187 2009-03-01 Bean <bean123ch@gmail.com>
7188
7189 * commands/terminal.c: Removed.
7190
7191 * commands/handler.c: New file.
7192
7193 * include/grub/list.h: Likewise.
7194
7195 * include/grub/handler.h: Likewise.
7196
7197 * kern/list.c: Likewise.
7198
7199 * kern/handler.c: Likewise.
7200
7201 * kern/term.h: Include header file <grub/handler.h>.
7202 (grub_term_input): Move next field to the beginning.
7203 (grub_term_output): Likewise.
7204 (grub_term_input_class): New variable.
7205 (grub_term_output_class): Likewise.
7206 (grub_term_register_input): Changed to inline function.
7207 (grub_term_register_output): Likewise.
7208 (grub_term_unregister_input): Likewise.
7209 (grub_term_unregister_output): Likewise.
7210 (grub_term_set_current_input): Likewise.
7211 (grub_term_set_current_output): Likewise.
7212 (grub_term_get_current_input): Likewise.
7213 (grub_term_get_current_output): Likewise.
7214 (grub_term_iterate_input): Removed.
7215 (grub_term_iterate_output): Likewise.
7216
7217 * kern/term.c (grub_term_list_input): Removed.
7218 (grub_term_list_output): Likewise.
7219 (grub_term_input_class): New variable.
7220 (grub_term_output_class): Likewise.
7221 (grub_cur_term_input): Change variable as macro.
7222 (grub_cur_term_output): Likewise.
7223 (grub_term_register_input): Removed.
7224 (grub_term_register_output): Likewise.
7225 (grub_term_unregister_input): Likewise.
7226 (grub_term_unregister_output): Likewise.
7227 (grub_term_set_current_input): Likewise.
7228 (grub_term_set_current_output): Likewise.
7229 (grub_term_iterate_input): Likewise.
7230 (grub_term_iterate_output): Likewise.
7231 (grub_term_get_current_input): Likewise.
7232 (grub_term_get_current_output): Likewise.
7233
7234 * util/grub-editenv.c: Include header file <grub/handler.h>.
7235 (grub_term_get_current_input): Removed.
7236 (grub_term_get_current_output): Likewise.
7237 (grub_term_input_class): New variable.
7238 (grub_term_output_class): Likewise.
7239
7240 * util/grub-fstest.c (grub_term_get_current_input): Removed.
7241 (grub_term_get_current_output): Likewise.
7242 (grub_term_input_class): New variable.
7243 (grub_term_output_class): Likewise.
7244
7245 * util/grub-probe.c (grub_term_get_current_input): Removed.
7246 (grub_term_get_current_output): Likewise.
7247 (grub_term_input_class): New variable.
7248 (grub_term_output_class): Likewise.
7249
7250 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
7251 (grub_term_get_current_output): Likewise.
7252 (grub_term_input_class): New variable.
7253 (grub_term_output_class): Likewise.
7254
7255 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
7256 (terminal_mod_SOURCES): Likewise.
7257 (terminal_mod_CFLAGS): Likewise.
7258 (terminal_mod_LDFLAGS): Likewise.
7259
7260 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
7261 handler.c.
7262 (kernel_img_SOURCES): Add list.c and handler.c.
7263 (kernel_img_HEADERS): Add list.h and handler.h.
7264
7265 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
7266 handler.c.
7267 (kernel_mod_SOURCES): Add list.c and handler.c.
7268 (kernel_mod_HEADERS): Add list.h and handler.h.
7269
7270 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
7271 handler.c.
7272 (kernel_elf_SOURCES): Add list.c and handler.c.
7273 (kernel_elf_HEADERS): Add list.h and handler.h.
7274
7275 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
7276 handler.c.
7277 (kernel_elf_SOURCES): Add list.c and handler.c.
7278 (kernel_elf_HEADERS): Add list.h and handler.h.
7279
7280 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
7281 handler.c.
7282 (kernel_mod_SOURCES): Add list.c and handler.c.
7283 (kernel_mod_HEADERS): Add list.h and handler.h.
7284
7285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
7286 handler.c.
7287 (kernel_elf_SOURCES): Add list.c and handler.c.
7288 (kernel_elf_HEADERS): Add list.h and handler.h.
7289
7290 2009-02-27 Robert Millan <rmh@aybabtu.com>
7291
7292 Factorize elf32 / elf64 code in Multiboot loader. This will
7293 prevent it from getting out of sync again.
7294
7295 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
7296 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
7297 grub_multiboot_load_elf64): Move from here ...
7298 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
7299 grub_multiboot_load_elf): ... to here (new file).
7300
7301 2009-02-27 Robert Millan <rmh@aybabtu.com>
7302
7303 * util/grub.d/10_linux.in: Rename "single-user mode" to
7304 "recovery mode".
7305
7306 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7307
7308 Don't leak in SCSI code.
7309 * disk/scsi.c (grub_scsi_close): free `scsi'.
7310
7311 2009-02-27 Robert Millan <rmh@aybabtu.com>
7312
7313 * loader/i386/pc/multiboot.c: Move from here ...
7314 * loader/i386/multiboot.c: ... to here. Update all users.
7315
7316 2009-02-27 Robert Millan <rmh@aybabtu.com>
7317
7318 Patch from Alexandre Bique <bique.alexandre@gmail.com>
7319 * util/i386/pc/grub-setup.c (setup): Fix directory path.
7320
7321 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
7322
7323 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
7324 b-tree.
7325
7326 2009-02-27 Robert Millan <rmh@aybabtu.com>
7327
7328 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
7329 `0x' qualifier as 0 when base is specified as parameter).
7330
7331 2009-02-24 Bean <bean123ch@gmail.com>
7332
7333 * configure.ac: Check for -mcmodel=large in x86_64 target.
7334
7335 * include/grub/efi/api.h (efi_call_10): New macro.
7336 (efi_wrap_10): New function.
7337
7338 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
7339 (GRUB_PE32_REL_BASED_HIGH): Likewise.
7340 (GRUB_PE32_REL_BASED_LOW): Likewise.
7341 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
7342 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
7343 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
7344 (GRUB_PE32_REL_BASED_SECTION): Likewise.
7345 (GRUB_PE32_REL_BASED_REL): Likewise.
7346 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
7347 (GRUB_PE32_REL_BASED_DIR64): Likewise.
7348 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
7349
7350 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
7351 issue.
7352
7353 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
7354 (efi_wrap_10): New function.
7355
7356 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
7357
7358 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
7359 MB/MBP model (NV chipset).
7360 (devdata_devs): Add devpath_5 to the list.
7361
7362 * load/i386/efi/linux.c (video_base): Remove variable.
7363 (RGB_MASK): New macro.
7364 (RGB_MAGIC): Likewise.
7365 (LINE_MIN): Likewise.
7366 (LINE_MAX): Likewise.
7367 (FBTEST_STEP): Likewise.
7368 (FBTEST_COUNT): Likewise.
7369 (fb_list): New variable.
7370 (grub_find_video_card): Remove function.
7371 (find_framebuf): New function.
7372 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
7373 line length.
7374
7375 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
7376 problem for x86_64.
7377
7378 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
7379
7380 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
7381
7382 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
7383 coding tool name.
7384
7385 2009-02-22 Robert Millan <rmh@aybabtu.com>
7386
7387 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
7388 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
7389 in our relocation, instead of using it directly from heap. Also
7390 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
7391
7392 2009-02-21 Robert Millan <rmh@aybabtu.com>
7393
7394 Implement USB keyboard support (based on patch by Marco Gerards)
7395
7396 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
7397 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
7398 (usb_keyboard_mod_LDFLAGS): New variables.
7399
7400 * term/usb_keyboard.c: New file.
7401
7402 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7403
7404 Corrected wrong declaration
7405
7406 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
7407
7408 2009-02-14 Christian Franke <franke@computer.org>
7409
7410 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
7411 (grub_lspci_iter): Print class code and programming interface byte.
7412
7413 2009-02-14 Christian Franke <franke@computer.org>
7414
7415 * gendistlist.sh: Ignore `.svn' directories.
7416
7417 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
7418
7419 * fs/fat.c: Add 2009 to Copyright line.
7420
7421 2009-02-14 Christian Franke <franke@computer.org>
7422
7423 * commands/hdparm.c: New file. Provides `hdparm' command
7424 which sends ATA commands via grub_disk_ata_pass_through ().
7425
7426 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
7427
7428 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
7429 and <grub/cpu/io.h> to include/grub/ata.h.
7430 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
7431 (GRUB_CDROM_SECTOR_SIZE): Remove.
7432 (GRUB_ATA_*): Move to include/grub/ata.h.
7433 (GRUB_ATAPI_*): Likewise.
7434 (enum grub_ata_commands): Likewise.
7435 (enum grub_ata_timeout_milliseconds): Likewise.
7436 (struct grub_ata_device): Likewise.
7437 (grub_ata_regset): Likewise.
7438 (grub_ata_regget): Likewise.
7439 (grub_ata_regset2): Likewise.
7440 (grub_ata_regget2): Likewise.
7441 (grub_ata_check_ready): Likewise.
7442 (grub_ata_wait_not_busy): Remove static, exported in
7443 include/grub/ata.h.
7444 (grub_ata_wait_drq): Likewise.
7445 (grub_ata_pio_read): Likewise.
7446
7447 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
7448 function for hdparm.mod.
7449
7450 * include/grub/ata.h: New file, contains declarations from
7451 disk/ata.c.
7452 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
7453
7454 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
7455 (grub_disk_ata_pass_through): New exported variable.
7456
7457 * kern/disk.c (grub_disk_ata_pass_through): New variable.
7458
7459 2009-02-13 Colin D Bennett <colin@gibibit.com>
7460
7461 Support multiple fallback entries, and provide an API to support
7462 executing default+fallback menu entries. Renamed the `terminal' menu
7463 viewer to `text'.
7464
7465 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
7466 variable declaration.
7467 (grub_menu_execute_callback): New structure declaration.
7468 (grub_menu_execute_callback_t): New typedef.
7469 (grub_menu_execute_with_fallback): New function declaration.
7470 (grub_menu_get_entry): Likewise.
7471 (grub_menu_get_timeout): Likewise.
7472 (grub_menu_set_timeout): Likewise.
7473
7474 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
7475
7476 * normal/menu.c (grub_wait_after_message): Moved to
7477 `normal/menu_text.c'.
7478 (draw_border): Likewise.
7479 (print_message): Likewise.
7480 (print_entry): Likewise.
7481 (print_entries): Likewise.
7482 (grub_menu_init_page): Likewise.
7483 (get_entry_number): Likewise.
7484 (print_timeout): Likewise.
7485 (run_menu): Likewise.
7486 (grub_menu_execute_entry): Likewise.
7487 (show_text_menu): Likewise.
7488 (get_and_remove_first_entry_number): New function.
7489 (grub_menu_execute_with_fallback): Likewise.
7490 (get_entry): Renamed to ...
7491 (grub_menu_get_entry): .. this and made it global.
7492 (get_timeout): Renamed to ...
7493 (grub_menu_get_timeout): ... this and made it global.
7494 (set_timeout): Renamed to ...
7495 (grub_menu_set_timeout): ... this and made it global.
7496 (grub_normal_terminal_menu_viewer): Renamed to ...
7497 (grub_normal_text_menu_viewer): ... this.
7498
7499 * normal/menu_text.c: New file. Extracted text-menu-specific code
7500 from normal/menu.c.
7501
7502 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
7503 (normal_mod_SOURCES): Likewise.
7504
7505 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7506 (normal_mod_SOURCES): Likewise.
7507
7508 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7509 (normal_mod_SOURCES): Likewise.
7510
7511 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
7512 (normal_mod_SOURCES): Likewise.
7513
7514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7515 (normal_mod_SOURCES): Likewise.
7516
7517 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7518 (normal_mod_SOURCES): Likewise.
7519
7520 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7521 (normal_mod_SOURCES): Likewise.
7522
7523 2009-02-11 Robert Millan <rmh@aybabtu.com>
7524
7525 * util/grub.d/00_header.in: Update old reference to `font' command.
7526
7527 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
7528
7529 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
7530
7531 Based on patch from Javier Martín.
7532
7533 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
7534
7535 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
7536 to avoid false positives with FAT.
7537 (grub_fstest_SOURCES): Likewise.
7538 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7539 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7541 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
7542 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7543 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7544
7545 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
7546
7547 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
7548 bpb.version_specific.fat12_or_fat16.fstype and
7549 bpb.version_specific.fat32.fstype.
7550
7551 2009-02-08 Robert Millan <rmh@aybabtu.com>
7552
7553 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
7554
7555 2009-02-08 Robert Millan <rmh@aybabtu.com>
7556
7557 * Makefile.in (host_os, host_cpu): New variables.
7558 (target_os): Remove. Update all users.
7559
7560 2009-02-08 Marco Gerards <marco@gnu.org>
7561
7562 * Makefile.in (enable_grub_emu_usb): New variable.
7563 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
7564 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
7565 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
7566 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
7567 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
7568 `usbtest.mod' and `usbms.mod'.
7569 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
7570 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
7571 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
7572 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
7573 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
7574 variables.
7575
7576 * disk/usbms.c: New file.
7577
7578 * include/grub/usb.h: Likewise.
7579
7580 * include/grub/usbtrans.h: Likewise.
7581
7582 * include/grub/usbdesc.h: Likewise.
7583
7584 * bus/usb/usbtrans.c: Likewise.
7585
7586 * bus/usb/ohci.c: Likewise.
7587
7588 * bus/usb/uhci.c: Likewise.
7589
7590 * bus/usb/usbhub.c: Likewise.
7591
7592 * bus/usb/usb.c: Likewise.
7593
7594 * commands/usbtest.c: Likewise.
7595
7596 * util/usb.c: Likewise.
7597
7598 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
7599
7600 * configure.ac: Test for libusb presence.
7601
7602 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
7603
7604 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
7605
7606 * kern/mm.c: Add more comments.
7607
7608 2009-02-08 Robert Millan <rmh@aybabtu.com>
7609
7610 Patch from Javier Martín.
7611 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
7612 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
7613
7614 2009-02-08 Robert Millan <rmh@aybabtu.com>
7615
7616 * fs/cpio.c: Split tar functionality to ...
7617 * fs/tar.c: ... here (new file). Update all users.
7618
7619 2009-02-07 Robert Millan <rmh@aybabtu.com>
7620
7621 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
7622 backward-incompatible features.
7623
7624 Based on patch from Javier Martín, with some adjustments.
7625
7626 2009-02-07 Michael Scherer <misc@mandriva.org>
7627
7628 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
7629
7630 2009-02-07 Robert Millan <rmh@aybabtu.com>
7631
7632 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
7633 position of `disk/lvm.c' to ensure grub_init_all() always picks it
7634 after the RAID stuff.
7635
7636 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
7637
7638 Fixes problem when running vbetest command as reported by
7639 Vladimir Serbinenko <phcoder@gmail.com>.
7640
7641 * (grub_vbe_set_video_mode): Fixed problem with text modes.
7642
7643 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
7644
7645 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
7646 /dev/md/NpN style mdraid devices.
7647
7648 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
7649
7650 * util/unifont2pff.rb: Remove.
7651
7652 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
7653
7654 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
7655 `#'.
7656
7657 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
7658
7659 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
7660 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7661 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7662 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
7663 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7664 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7665 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7666
7667 2009-02-02 Christian Franke <franke@computer.org>
7668
7669 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
7670
7671 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
7672
7673 * INSTALL: Note that we now require at least autoconf 2.59 and
7674 that LZO is optional.
7675
7676 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7677
7678 Base on patch on bug #24154 created by Tomas Tintera
7679 <trosos@seznam.cz>.
7680
7681 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
7682
7683 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7684
7685 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
7686 <bero@arklinux.org>.
7687
7688 * normal/parser.y (script_init): Add missing semicolon.
7689
7690 2009-01-31 Colin D Bennett <colin@gibibit.com>
7691
7692 * normal/main.c: Add include to grub/menu_viewer.h.
7693 (free_menu_entry_classes): Added.
7694 (grub_normal_menu_addentry): Added class property handling.
7695 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
7696 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
7697
7698 * normal/menu_viewer.c: New file.
7699
7700 * normal/menu.c (run_menu_entry): Renamed to ...
7701 (grub_menu_execute_entry): ... this and made it as global.
7702 (grub_menu_run): Renamed to ...
7703 (show_text_menu): ... this and made it local.
7704 (show_text_menu): Adapt to new function names.
7705 (grub_normal_terminal_menu_viewer): New global variable.
7706
7707 * include/grub/menu.h: New file.
7708
7709 * include/grub/menu_viewer.h: New file.
7710
7711 * include/grub/normal.h: Added include to grub/menu.h.
7712 (grub_menu_entry): Moved to include/grub/menu.h.
7713 (grub_menu_entry_t): Likewise.
7714 (grub_menu): Likewise.
7715 (grub_menu_t): Likewise.
7716 (grub_normal_terminal_menu_viewer): Added.
7717 (grub_menu_execute_entry): Likewise.
7718 (grub_menu_run): Removed.
7719
7720 * DISTLIST: Added include/grub/menu.h.
7721 Added include/grub/menu_viewer.h.
7722 Added normal/menu_viewer.c.
7723
7724 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
7725
7726 * normal/execute.c (grub_script_execute_menuentry): Changed to use
7727 arglist for menutitle arguments.
7728
7729 * normal/main.c (grub_normal_menu_addentry): Likewise.
7730
7731 * normal/parser.y (menuentry): Likewise.
7732
7733 * normal/script.c (grub_script_create_cmdmenu): Likewise.
7734
7735 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
7736 (grub_script_create_cmdmenu): Likewise.
7737
7738 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
7739
7740 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
7741 changes.
7742
7743 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
7744
7745 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
7746
7747 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
7748
7749 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7750
7751 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7752
7753 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7754
7755 2009-01-30 Christian Franke <franke@computer.org>
7756
7757 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
7758 in option help text.
7759
7760 2009-01-27 Pavel Roskin <proski@gnu.org>
7761
7762 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
7763
7764 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7765
7766 * commands/lsmmap.c: Add include to grub/machine/memory.h.
7767
7768 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
7769
7770 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
7771 unregister function.
7772
7773 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7774
7775 * disk/scsi.c (grub_scsi_read): Fix sign problem.
7776
7777 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
7778
7779 * util/grub-mkfont.c (usage): Fix typo.
7780
7781 * util/elf/grub-mkimage.c (load_modules): Fix warning.
7782
7783 2009-01-26 Daniel Mierswa <impulze@impulze.org>
7784
7785 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
7786
7787 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
7788
7789 * kern/misc.c (grub_strcasecmp): New function.
7790 (grub_strcasecmp): Use grub_size_t instead of int for length.
7791 Fix return value.
7792 * include/grub/misc.h: Update function prototypes.
7793
7794 2009-01-26 Robert Millan <rmh@aybabtu.com>
7795
7796 * configure.ac: Fix cross-compilation check.
7797
7798 2009-01-22 Christian Franke <franke@computer.org>
7799
7800 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
7801 (precision) digit string. Allow `.format2' without `format1' (width).
7802 Limit input chars for `%s' output to `format2' if specified. This is
7803 compatible with standard printf ().
7804
7805 2009-01-22 Christian Franke <franke@computer.org>
7806
7807 * disk/ata.c (grub_ata_wait_status): Replace by ...
7808 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
7809 other status bits may be invalid while BSY is asserted.
7810 (grub_ata_check_ready): New function.
7811 (grub_ata_cmd): Removed.
7812 (grub_ata_wait_drq): New function.
7813 (grub_ata_strncpy): Remove inline.
7814 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
7815 and error check now done by grub_ata_wait_drq ().
7816 (grub_ata_pio_write): Likewise.
7817 (grub_atapi_identify): Set DEV before check for !BSY. Use
7818 grub_ata_wait_drq () to wait for data.
7819 (grub_ata_device_initialize): Add status register check to
7820 detect missing SATA slave devices. Add debug messages.
7821 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
7822 (grub_atapi_packet): Set DEV before check for !BSY. Replace
7823 transfer loop by grub_ata_pio_write ().
7824 (grub_ata_identify): Set DEV before check for !BSY. Use
7825 grub_ata_wait_drq () to wait for data.
7826 (grub_ata_setaddress): Set DEV before check for !BSY.
7827 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
7828 read/write in one loop. Fix invalid command on write. Fix incomplete
7829 command on (size % batch) == 0. Add missing error check after write of
7830 last block. Add debug messages.
7831 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
7832
7833 2009-01-19 Christian Franke <franke@computer.org>
7834
7835 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
7836 (GRUB_ATAPI_IREASON_*): Likewise.
7837 (grub_ata_pio_write): Fix timeout error return.
7838 (grub_atapi_identify): Add grub_ata_wait () after cmd.
7839 (grub_atapi_wait_drq): New function.
7840 (grub_atapi_packet): New parameter `size'.
7841 Use grub_atapi_wait_drq () and direct write instead of
7842 grub_ata_pio_write ().
7843 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
7844 reads the number of bytes requested by the device for each DRQ
7845 assertion.
7846 (grub_atapi_write): Remove old implementation, return not
7847 implemented instead.
7848
7849 2009-01-19 Christian Franke <franke@computer.org>
7850
7851 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
7852 of 512 to calculate data size.
7853 (grub_scsi_read12): Likewise.
7854 (grub_scsi_write10): Likewise.
7855 (grub_scsi_write12): Likewise.
7856 (grub_scsi_read): Adjust size according to blocksize.
7857 Add checks for invalid blocksize and unaligned transfer.
7858
7859 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
7860
7861 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
7862
7863 * term/gfxterm.c (write_char): Fix background rendering for wide
7864 width glyphs.
7865
7866 2009-01-19 Robert Millan <rmh@aybabtu.com>
7867
7868 * config.guess: Update to latest version from config git.
7869 * config.sub: Likewise.
7870
7871 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
7872
7873 * Makefile.in: Change font compilation to use new grub-mkfont instead
7874 of java version.
7875
7876 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
7877 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
7878 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7879 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7880 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
7881 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
7882 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
7883 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
7884 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7885
7886 2009-01-16 Christian Franke <franke@computer.org>
7887
7888 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
7889 (enum grub_ata_timeout_milliseconds): New enum.
7890 (grub_ata_wait_status): Add parameter milliseconds.
7891 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
7892 recovery from timed-out commands.
7893 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
7894 return grub_errno instead of REG_ERROR.
7895 (grub_ata_pio_write): Add parameter milliseconds.
7896 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
7897 Pass milliseconds to grub_ata_wait_status () and
7898 grub_ata_pio_read ().
7899 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
7900 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
7901 grub_ata_wait_status (). Fix IDENTIFY timeout check.
7902 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
7903 It is not suitable for device detection, because DEV bit is ignored,
7904 the command may run too long, and not all devices set the signature
7905 properly.
7906 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
7907 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
7908 Fix device selection, DEV bit must be set first to address the registers
7909 of the correct device.
7910 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
7911 grub_ata_pio_read/write ().
7912 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
7913 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
7914
7915 2009-01-13 Carles Pina i Estany <carles@pina.cat>
7916
7917 * util/grub-editenv.c (main): Use fseeko(), not fseek().
7918
7919 2009-01-13 Bean <bean123ch@gmail.com>
7920
7921 * util/grub-mkfont.c (write_font): forget to remove some debug code.
7922
7923 2009-01-13 Bean <bean123ch@gmail.com>
7924
7925 * Makefile.in: (enable_grub_mkfont): New variable.
7926 (freetype_cflags): Likewise.
7927 (freetype_libs): Likewise.
7928
7929 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
7930 (grub_mkfont_SOURCES): New variable.
7931 (grub_mkfont_CFLAGS): Likewise.
7932 (grub_mkfont_LDFLAGS): Likewise.
7933
7934 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
7935 library if `--enable-grub-mkfont' is requested.
7936 (enable_grub_mkfont): New variable.
7937 (freetype_cflags): Likewise.
7938 (freetype_libs): Likewise.
7939
7940 * util/grub-mkfont.c: New file.
7941
7942 2009-01-12 Christian Franke <franke@computer.org>
7943
7944 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
7945 mode check. Fix setting of compat_use[].
7946
7947 2009-01-10 Robert Millan <rmh@aybabtu.com>
7948
7949 Update a few copyright years which we forgot to do in 2008 (only for
7950 files whose changes made in 2008 were copyright-significant)
7951
7952 * Makefile.in: Add 2008 to Copyright line.
7953 * disk/ieee1275/ofdisk.c: Likewise.
7954 * disk/efi/efidisk.c: Likewise.
7955 * kern/dl.c: Likewise.
7956 * kern/sparc64/ieee1275/init.c: Likewise.
7957 * kern/mm.c: Likewise.
7958 * kern/efi/mm.c: Likewise.
7959 * boot/i386/pc/boot.S: Likewise.
7960 * genfslist.sh: Likewise.
7961 * fs/iso9660.c: Likewise.
7962 * fs/hfs.c: Likewise.
7963 * fs/jfs.c: Likewise.
7964 * fs/minix.c: Likewise.
7965 * fs/ufs.c: Likewise.
7966 * gensymlist.sh.in: Likewise.
7967 * genkernsyms.sh.in: Likewise.
7968 * include/grub/misc.h: Likewise.
7969 * include/grub/types.h: Likewise.
7970 * include/grub/symbol.h: Likewise.
7971 * include/grub/elf.h: Likewise.
7972 * include/grub/kernel.h: Likewise.
7973 * include/grub/disk.h: Likewise.
7974 * include/grub/dl.h: Likewise.
7975 * include/grub/i386/linux.h: Likewise.
7976 * include/grub/i386/pc/biosdisk.h: Likewise.
7977 * include/grub/efi/api.h: Likewise.
7978 * include/grub/efi/pe32.h: Likewise.
7979 * include/grub/util/misc.h: Likewise.
7980 * normal/execute.c: Likewise.
7981 * normal/arg.c: Likewise.
7982 * normal/completion.c: Likewise.
7983 * normal/lexer.c: Likewise.
7984 * normal/parser.y: Likewise.
7985 * normal/misc.c: Likewise.
7986 * commands/i386/pc/vbeinfo.c: Likewise.
7987 * commands/hexdump.c: Likewise.
7988 * commands/terminal.c: Likewise.
7989 * commands/ls.c: Likewise.
7990 * commands/help.c: Likewise.
7991 * partmap/pc.c: Likewise.
7992 * loader/efi/chainloader.c: Likewise.
7993 * loader/multiboot_loader.c: Likewise.
7994 * loader/i386/pc/multiboot2.c: Likewise.
7995 * term/efi/console.c: Likewise.
7996 * term/i386/pc/serial.c: Likewise.
7997 * util/lvm.c: Likewise.
7998 * util/console.c: Likewise.
7999 * util/i386/efi/grub-mkimage.c: Likewise.
8000 * util/raid.c: Likewise.
8001
8002 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
8003
8004 * commands/videotest.c: Removed include to grub/machine/memory.h.
8005
8006 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
8007 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
8008 (video_mod_SOURCES): Removed.
8009 (video_mod_CFLAGS): Likewise.
8010 (video_mod_LDFLAGS): Likewise.
8011 (gfxterm_mod_SOURCES): Likewise.
8012 (gfxterm_mod_CFLAGS): Likewise.
8013 (gfxterm_mod_LDFLAGS): Likewise.
8014 (videotest_mod_SOURCES): Likewise.
8015 (videotest_mod_CFLAGS): Likewise.
8016 (videotest_mod_LDFLAGS): Likewise.
8017 (bitmap_mod_SOURCES): Likewise.
8018 (bitmap_mod_CFLAGS): Likewise.
8019 (bitmap_mod_LDFLAGS): Likewise.
8020 (tga_mod_SOURCES): Likewise.
8021 (tga_mod_CFLAGS): Likewise.
8022 (tga_mod_LDFLAGS): Likewise.
8023 (jpeg_mod_SOURCES): Likewise.
8024 (jpeg_mod_CFLAGS): Likewise.
8025 (jpeg_mod_LDFLAGS): Likewise.
8026 (png_mod_SOURCES): Likewise.
8027 (png_mod_CFLAGS): Likewise.
8028 (png_mod_LDFLAGS): Likewise.
8029
8030 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
8031 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
8032 (video_mod_SOURCES): Added.
8033 (video_mod_CFLAGS): Likewise.
8034 (video_mod_LDFLAGS): Likewise.
8035 (videotest_mod_SOURCES): Likewise.
8036 (videotest_mod_CFLAGS): Likewise.
8037 (videotest_mod_LDFLAGS): Likewise.
8038 (bitmap_mod_SOURCES): Likewise.
8039 (bitmap_mod_CFLAGS): Likewise.
8040 (bitmap_mod_LDFLAGS): Likewise.
8041 (tga_mod_SOURCES): Likewise.
8042 (tga_mod_CFLAGS): Likewise.
8043 (tga_mod_LDFLAGS): Likewise.
8044 (jpeg_mod_SOURCES): Likewise.
8045 (jpeg_mod_CFLAGS): Likewise.
8046 (jpeg_mod_LDFLAGS): Likewise.
8047 (png_mod_SOURCES): Likewise.
8048 (png_mod_CFLAGS): Likewise.
8049 (png_mod_LDFLAGS): Likewise.
8050 (gfxterm_mod_SOURCES): Likewise.
8051 (gfxterm_mod_CFLAGS): Likewise.
8052 (gfxterm_mod_LDFLAGS): Likewise.
8053
8054 * term/gfxterm.c: Removed include to grub/machine/memory.h,
8055 grub/machine/console.h.
8056
8057 2009-01-04 Jerone Young <jerone@gmail.com>
8058
8059 Make on screen instructions clearer
8060
8061 Based on patch created by Jidanni <jidanni@jidanni.org>
8062
8063 * normal/menu.c: print clearer instructions on the screen
8064
8065 2009-01-02 Colin D Bennett <colin@gibibit.com>
8066
8067 New font engine.
8068
8069 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
8070 build system and fixed gfxterm.c to work with different sized fonts.
8071
8072 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
8073
8074 * configure: Re-generated.
8075
8076 * DISTLIST: Removed font/manager.c.
8077 Added font/font.c.
8078 Added font/font_cmd.c.
8079
8080 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
8081 compilation.
8082
8083 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
8084
8085 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
8086
8087 * kern/term.c: Changed users of grub_utf8_to_ucs4.
8088
8089 * normal/menu.c: Likewise.
8090
8091 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
8092 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
8093
8094 * include/grub/font.h: Replaced with new file.
8095
8096 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
8097 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
8098 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
8099 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
8100 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
8101 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
8102 fg_red, fg_green, fg_blue, fg_alpha.
8103 (grub_video_adapter): Removed blit_glyph.
8104 (grub_video_blit_glyph): Removed.
8105
8106 * font/manager.c: Removed file.
8107
8108 * font/font.c: New file.
8109
8110 * font/font_cmd.c: Likewise.
8111
8112 * video/video.c (grub_video_blit_glyph): Removed.
8113
8114 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
8115 (grub_video_vbe_map_rgba): Likewise.
8116 (grub_video_vbe_unmap_color_int): Likewise.
8117 (grub_video_vbe_blit_glyph): Removed.
8118 (grub_video_vbe_adapter): Removed blit_glyph.
8119
8120 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
8121 (get_pixel): Likewise.
8122 (set_pixel): Likewise.
8123
8124 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
8125
8126 * term/gfxterm.c: Adapted to new font engine.
8127
8128 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
8129
8130 * term/i386/pc/vga.c: Likewise.
8131
8132 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
8133
8134 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
8135
8136 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
8137
8138 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
8139
8140 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
8141
8142 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
8143
8144 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
8145
8146 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
8147
8148 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
8149
8150 * util/grub.d/00_header.in: Changed to use new loadfont command.
8151
8152 * util/grub-mkconfig_lib.in: Changed font extension.
8153
8154 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
8155
8156 * util/getroot.c (grub_util_get_grub_dev): Add support for
8157 /dev/md/dNNpNN style partitionable mdraid devices.
8158
8159 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
8160
8161 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
8162 at a time limit of the PXE TFTP API correctly.
8163 (grub_pxefs_close): Likewise.
8164
8165 2008-11-29 Robert Millan <rmh@aybabtu.com>
8166
8167 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
8168 grub_ata_device_initialize() calls.
8169
8170 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
8171
8172 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
8173 iteration failed.
8174 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
8175
8176 2008-11-28 Robert Millan <rmh@aybabtu.com>
8177
8178 Fix build on powerpc-ieee1275. Based on patch created by
8179 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
8180 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8181 `kern/ieee1275/mmap.c'.
8182 * include/grub/powerpc/ieee1275/memory.h: New file.
8183
8184 Provide grub-install on coreboot.
8185 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
8186 (grub_install_SOURCES): New variable.
8187 * util/i386/pc/grub-install.in: Add a few condition checks to make it
8188 usable on coreboot.
8189
8190 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
8191
8192 * util/grub-fstest.c (grub_term_get_current_input): Change return type
8193 to `grub_term_input_t'.
8194 (grub_term_get_current_output): Change return type to
8195 `grub_term_output_t'.
8196
8197 2008-11-22 Robert Millan <rmh@aybabtu.com>
8198
8199 Fix breakage on coreboot due to declaration mismatch.
8200 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
8201 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
8202 grub_vga_text_cls().
8203
8204 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
8205 comments. Avoid copying one more byte than necessary (just in case).
8206
8207 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
8208 to 0x200000 (avoids trouble with some OFW implementations, and matches
8209 with the one in Yaboot).
8210 Reported by Manoel Abranches
8211
8212 2008-11-20 Robert Millan <rmh@aybabtu.com>
8213
8214 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
8215 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
8216
8217 * util/grub-mkconfig_lib.in (grub_warn): New function.
8218 (convert_system_path_to_grub_path): Use grub_warn() when issuing
8219 warnings, to obtain consistent formatting.
8220 * util/grub.d/00_header.in: Likewise.
8221 * util/update-grub_lib.in: Likewise.
8222
8223 * loader/i386/linux.c (allocate_pages): Fix a warning.
8224 Move comment text to `#error' stanza.
8225
8226 Harmonize ieee1275's grub_available_iterate() with the generic
8227 grub_machine_mmap_iterate() interface (fixes a recently-introduced
8228 build problem on i386-ieee1275):
8229 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
8230 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
8231 parameter `type'. Update all users of this function.
8232 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
8233 `kern/ieee1275/mmap.c'.
8234 * kern/ieee1275/init.c
8235 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
8236 with ...
8237 (grub_machine_mmap_iterate): ... this.
8238 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
8239 return type to `grub_err_t'. Update all implementations of this
8240 function prototype.
8241 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
8242 Likewise.
8243
8244 Add `lsmmap' command (lists firmware-provided memory map):
8245 * commands/lsmmap.c: New file.
8246 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
8247 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
8248 variables.
8249 * conf/powerpc-ieee1275.rmk: Likewise.
8250 * conf/i386-coreboot.rmk: Likewise.
8251 * conf/i386-ieee1275.rmk: Likewise.
8252
8253 2008-11-19 Robert Millan <rmh@aybabtu.com>
8254
8255 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
8256 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
8257 constraints to initrd allocation (based on code from
8258 loader/i386/pc/linux.c). Without them, initrd was allocated too high
8259 for Linux to find it.
8260
8261 2008-11-14 Robert Millan <rmh@aybabtu.com>
8262
8263 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
8264 order to cope with duplicate slashes.
8265
8266 2008-11-14 Robert Millan <rmh@aybabtu.com>
8267
8268 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
8269 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
8270 don't want to mess with lower memory, because it is used in the Linux
8271 loader.
8272
8273 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
8274 an appropriate place in lower memory, between 0x10000 and 0x90000,
8275 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
8276 is in our heap (probably as a result of it being corrupted during
8277 decompression). Add #error instance with comment to explain why this
8278 loader isn't currently usable on PC/BIOS.
8279
8280 2008-11-14 Robert Millan <rmh@aybabtu.com>
8281
8282 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
8283 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
8284
8285 2008-11-12 Robert Millan <rmh@aybabtu.com>
8286
8287 Make loader/i386/linux.c buildable on i386-pc (although disabled).
8288
8289 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
8290 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
8291 from here ...
8292 * include/grub/i386/pc/memory.h: ... to here.
8293
8294 2008-11-12 Robert Millan <rmh@aybabtu.com>
8295
8296 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
8297 split).
8298
8299 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
8300 (grub_console_cur_color, grub_console_real_putchar)
8301 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
8302 (grub_console_setcolorstate, grub_console_setcolor)
8303 (grub_console_getcolor): Move from here ...
8304 * include/grub/i386/vga_common.h: ... to here (new file).
8305
8306 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
8307 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
8308 `<grub/i386/io.h>'.
8309 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
8310 `<grub/i386/vga_common.h>'.
8311
8312 2008-11-12 Robert Millan <rmh@aybabtu.com>
8313
8314 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
8315 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
8316 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
8317 variables.
8318 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
8319 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
8320
8321 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
8322 grub_console_init() with call to grub_vga_text_init().
8323 (grub_machine_fini): Replace call to
8324 grub_console_fini() with call to grub_vga_text_fini() and
8325 grub_at_keyboard_fini().
8326
8327 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
8328 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
8329 (grub_console_setcolorstate, grub_console_setcolor)
8330 (grub_console_getcolor): New function prototypes.
8331
8332 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
8333 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
8334 (grub_vga_text_setcursor): Static-ize.
8335 (grub_vga_text_term): New structure.
8336 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
8337
8338 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
8339 (grub_console_cur_color, grub_console_standard_color)
8340 (grub_console_normal_color, grub_console_highlight_color)
8341 (map_char, grub_console_putchar, grub_console_getcharwidth)
8342 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
8343 (grub_console_getcolor): Move from here ...
8344 * term/i386/vga_common.c: ... to here (same function names).
8345
8346 2008-11-12 Robert Millan <rmh@aybabtu.com>
8347
8348 Use newly-added Multiboot support in coreboot.
8349
8350 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
8351 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
8352
8353 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
8354 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
8355 (codestart): Store the MBI in `startup_multiboot_info' when we're
8356 being loaded using Multiboot.
8357
8358 * kern/i386/coreboot/init.c (grub_machine_init): Move
8359 grub_at_keyboard_init() call to beginning of function (useful for
8360 debugging). Call grub_machine_mmap_init() before attempting to use
8361 grub_machine_mmap_iterate().
8362 (grub_lower_mem, grub_upper_mem): Move from here ...
8363 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
8364 here (new file).
8365
8366 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
8367 function prototype.
8368
8369 2008-11-12 Robert Millan <rmh@aybabtu.com>
8370
8371 Fix a regression introduced by the at_keyboard.mod split. Because
8372 some terminals are default on some platforms and non-default on
8373 others, the first terminal being registered determines which is
8374 going to be default.
8375
8376 * kern/term.c (grub_term_register_input): If this is the first
8377 terminal being registered, set it as the current one.
8378 (grub_term_register_output): Likewise.
8379
8380 * term/efi/console.c (grub_console_init): Do not call
8381 grub_term_set_current_output() or grub_term_set_current_input().
8382 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
8383 * term/i386/pc/console.c (grub_console_init): Likewise.
8384 (grub_console_fini): Do not call grub_term_set_current_input()
8385 (but leave grub_term_set_current_output() to restore text mode).
8386
8387 2008-11-10 Robert Millan <rmh@aybabtu.com>
8388
8389 * util/grub.d/00_header.in: Add backward compatibility check for
8390 versions of terminal.mod that don't understand `terminal_input' or
8391 `terminal_output'.
8392
8393 2008-11-09 Robert Millan <rmh@aybabtu.com>
8394
8395 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
8396 `terminal_input' / `terminal_output', not `terminal'.
8397
8398 2008-11-08 Robert Millan <rmh@aybabtu.com>
8399
8400 * Makefile.in (include_DATA): Fix srcdir=. assumption.
8401 (DISTCLEANFILES): Add `build_env.mk'.
8402
8403 2008-11-08 Robert Millan <rmh@aybabtu.com>
8404
8405 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
8406 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8407 members. Update all users.
8408 * util/console.c (grub_ncurses_term): Split in ...
8409 (grub_ncurses_term_input): ... this, and ...
8410 (grub_ncurses_term_output): ... this. Update all users.
8411 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
8412
8413 2008-11-08 Robert Millan <rmh@aybabtu.com>
8414
8415 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
8416 (PKGDATA): Add $(pkgdata_SRCDIR).
8417 (pkglib_BUILDDIR): New variable.
8418 (pkgdata_SRCDIR): New variable.
8419 (build_env.mk): New target.
8420 (include_DATA): New variable.
8421 (install-local): Install $(include_DATA) files in $(includedir).
8422
8423 2008-11-07 Pavel Roskin <proski@gnu.org>
8424
8425 * gendistlist.sh: Use C locale for sorting to ensure consistent
8426 output on all systems.
8427
8428 * util/grub.d/00_header.in: Remove incorrect space before
8429 "serial".
8430
8431 2008-11-07 Robert Millan <rmh@aybabtu.com>
8432
8433 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
8434 per specification.
8435 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
8436 * loader/multiboot_loader.c (find_multi_boot2_header): New function
8437 (based on find_multi_boot1_header).
8438 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
8439 using find_multi_boot2_header(), and abort if neither Multiboot or
8440 Multiboot headers were found.
8441
8442 2008-11-07 Robert Millan <rmh@aybabtu.com>
8443
8444 Modularize at_keyboard.mod:
8445
8446 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
8447 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
8448 (at_keyboard_mod_LDFLAGS): New variables.
8449
8450 Actual terminal split:
8451
8452 * include/grub/term.h (struct grub_term): Split in ...
8453 (struct grub_term_input): ... this, and ...
8454 (struct grub_term_output): ... this. Update all users.
8455 (grub_term_set_current): Split in ...
8456 (grub_term_set_current_input): ... this, and ...
8457 (grub_term_set_current_output): ... this.
8458 (grub_term_get_current): Split in ...
8459 (grub_term_get_current_input): ... this, and ...
8460 (grub_term_get_current_output): ... this.
8461 (grub_term_register): Split in ...
8462 (grub_term_register_input): ... this, and ...
8463 (grub_term_register_output): ... this.
8464 (grub_term_unregister): Split in ...
8465 (grub_term_unregister_input): ... this, and ...
8466 (grub_term_unregister_output): ... this.
8467 (grub_term_iterate): Split in ...
8468 (grub_term_iterate_input): ... this, and ...
8469 (grub_term_iterate_output): ... this.
8470
8471 * kern/term.c (grub_term_list): Split in ...
8472 (grub_term_list_input): ... this, and ...
8473 (grub_term_list_output): ... this. Update all users.
8474 (grub_cur_term): Split in ...
8475 (grub_cur_term_input): ... this, and ...
8476 (grub_cur_term_output): ... this. Update all users.
8477 (grub_term_set_current): Split in ...
8478 (grub_term_set_current_input): ... this, and ...
8479 (grub_term_set_current_output): ... this.
8480 (grub_term_get_current): Split in ...
8481 (grub_term_get_current_input): ... this, and ...
8482 (grub_term_get_current_output): ... this.
8483 (grub_term_register): Split in ...
8484 (grub_term_register_input): ... this, and ...
8485 (grub_term_register_output): ... this.
8486 (grub_term_unregister): Split in ...
8487 (grub_term_unregister_input): ... this, and ...
8488 (grub_term_unregister_output): ... this.
8489 (grub_term_iterate): Split in ...
8490 (grub_term_iterate_input): ... this, and ...
8491 (grub_term_iterate_output): ... this.
8492
8493 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
8494 a check for input and one for output (and only attempt to get keys
8495 from user when input works).
8496
8497 * util/grub-probe.c (grub_term_get_current): Split in ...
8498 (grub_term_get_current_input): ... this, and ...
8499 (grub_term_get_current_output): ... this.
8500 * util/grub-fstest.c: Likewise.
8501 * util/i386/pc/grub-setup.c: Likewise.
8502 * util/grub-editenv.c: Likewise.
8503
8504 Portability adjustments:
8505
8506 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
8507 `term/i386/pc/at_keyboard.c'.
8508 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
8509 grub_keyboard_controller_init() (now handled by terminal .init).
8510 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
8511 grub_at_keyboard_init().
8512 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
8513 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
8514 at_keyboard.mod via input terminal interface).
8515 * include/grub/i386/coreboot/console.h: Convert into a stub for
8516 `<grub/i386/pc/console.h>'.
8517
8518 Migrate full terminals to new API:
8519
8520 * term/efi/console.c (grub_console_term): Split into ...
8521 (grub_console_term_input): ... this, and ...
8522 (grub_console_term_output): ... this. Update all users.
8523 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
8524 (grub_ofconsole_init): Split into ...
8525 (grub_ofconsole_init_input): ... this, and ...
8526 (grub_ofconsole_init_output): ... this.
8527 (grub_ofconsole_term): Split into ...
8528 (grub_ofconsole_term_input): ... this, and ...
8529 (grub_ofconsole_term_output): ... this. Update all users.
8530 * term/i386/pc/serial.c (grub_serial_term): Split into ...
8531 (grub_serial_term_input): ... this, and ...
8532 (grub_serial_term_output): ... this. Update all users.
8533 * term/i386/pc/console.c (grub_console_term): Split into ...
8534 (grub_console_term_input): ... this, and ...
8535 (grub_console_term_output): ... this. Update all users.
8536 (grub_console_term_input): Only enable it on PC/BIOS platform.
8537 (grub_console_init): Remove grub_keyboard_controller_init() call.
8538
8539 Migrate input terminals to new API:
8540
8541 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
8542 `i386' and `i386/pc' to enable build on x86_64 (this driver is
8543 i386-specific anyway).
8544 (grub_console_checkkey): Rename to ...
8545 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
8546 users.
8547 (grub_keyboard_controller_orig): New variable.
8548 (grub_console_getkey): Rename to ...
8549 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
8550 users.
8551 (grub_keyboard_controller_init): Static-ize. Save original
8552 controller value so that it can be restored ...
8553 (grub_keyboard_controller_fini): ... here (new function).
8554 (grub_at_keyboard_term): New structure.
8555 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
8556 functions.
8557
8558 Migrate output terminals to new API:
8559
8560 * term/i386/pc/vga.c (grub_vga_term): Change type to
8561 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8562 members. Update all users.
8563 * term/gfxterm.c (grub_video_term): Change type to
8564 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8565 members. Update all users.
8566 * include/grub/i386/pc/console.h (grub_console_checkkey)
8567 (grub_console_getkey): Do not export (no longer needed by gfxterm,
8568 etc).
8569
8570 Migrate `terminal' command and userland tools to new API:
8571
8572 * commands/terminal.c (grub_cmd_terminal): Split into ...
8573 (grub_cmd_terminal_input): ... this, and ...
8574 (grub_cmd_terminal_output): ... this.
8575 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
8576 `terminal_input' and `terminal_output'.
8577 * util/grub.d/00_header.in: Adjust `terminal' calls to new
8578 `terminal_input' / `terminal_output' API.
8579 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
8580 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
8581 provided ${GRUB_TERMINAL}, convert it).
8582
8583 2008-11-04 Robert Millan <rmh@aybabtu.com>
8584
8585 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
8586 for FreeBSD.
8587 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
8588
8589 2008-11-03 Bean <bean123ch@gmail.com>
8590
8591 * kern/elf.c (grub_elf32_load): Revert to previous code.
8592 (grub_elf64_load): Likewise.
8593
8594 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
8595
8596 2008-11-01 Robert Millan <rmh@aybabtu.com>
8597
8598 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
8599 (TARGET_CPPFLAGS): Likewise.
8600 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
8601
8602 2008-11-01 Carles Pina i Estany <carles@pina.cat>
8603
8604 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
8605
8606 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
8607
8608 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
8609 addition of objects until the code is not going to be able to fail.
8610
8611 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
8612
8613 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
8614 (add a missing NULL check, and correct them by moving the pointer
8615 operations after the actual check).
8616
8617 2008-10-29 Robert Millan <rmh@aybabtu.com>
8618
8619 * util/i386/pc/grub-install.in: Handle empty string as output from
8620 make_system_path_relative_to_its_root().
8621
8622 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
8623
8624 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
8625 circular metadata worst case scenario. If the metadata is circular
8626 then copy the wrap in place.
8627 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
8628 project lib/format_text/layout.h
8629 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
8630
8631 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
8632
8633 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
8634
8635 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
8636
8637 * util/update-grub_lib.in: Mention filename in warning message.
8638
8639 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
8640
8641 * NEWS: Update for rename of update-grub to grub-mkconfig.
8642
8643 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
8644
8645 * util/update-grub_lib.in: Copy to ...
8646 * util/grub-mkconfig_lib.in: ... this. Update all users.
8647 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
8648 * util/update-grub.in: Rename to ...
8649 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
8650 option. Add `--output' option to allow users to specify the generated
8651 configuration file. Default to stdout.
8652 (update_grub_dir): Rename to ...
8653 (grub_mkconfig_dir): ... this.
8654 (grub_cfg): Default to an empty string.
8655 * conf/common.rmk (update-grub): Rename to ...
8656 (grub-mkconfig): ... this.
8657 (update-grub_lib): Copy to ...
8658 (grub-mkconfig_lib): ... this.
8659 (update-grub_SCRIPTS): Copy to ...
8660 (grub-mkconfig_SCRIPTS): ... this. Update all users.
8661 (update-grub_DATA): Rename to ...
8662 (grub-mkconfig_DATA): ... this.
8663
8664 2008-09-28 Robert Millan <rmh@aybabtu.com>
8665
8666 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
8667 to `modified'. Add the real `created' field.
8668 (grub_iso9660_uuid): Use `modified' rather than `created' for
8669 constructing the UUID.
8670
8671 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
8672
8673 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
8674 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
8675
8676 2008-09-28 Bean <bean123ch@gmail.com>
8677
8678 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
8679 Thanks to Christian Franke for finding this bug.
8680
8681 2008-09-25 Robert Millan <rmh@aybabtu.com>
8682
8683 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
8684 instances of grub_util_get_disk_name() (see previous commit).
8685
8686 2008-09-25 Robert Millan <rmh@aybabtu.com>
8687
8688 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
8689 `util/i386/get_disk_name.c'.
8690 * conf/i386-efi.rmk: Likewise.
8691 * conf/x86_64-efi.rmk: Likewise.
8692 * conf/i386-coreboot.rmk: Likewise.
8693 * conf/i386-ieee1275.rmk: Likewise.
8694 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
8695 `util/ieee1275/get_disk_name.c'.
8696 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
8697 * util/ieee1275/get_disk_name.c: Remove file.
8698 * util/i386/get_disk_name.c: Remove file.
8699 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
8700 "hd%d" for device.map entries, rather than using
8701 grub_util_get_disk_name().
8702
8703 2008-09-24 Carles Pina i Estany <carles@pina.cat>
8704
8705 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
8706 warning.
8707 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
8708
8709 2008-09-24 Carles Pina i Estany <carles@pina.cat>
8710
8711 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
8712 Changed to 0x5100.
8713 (GRUB_TERM_PPAGE): Changed to 0x4900.
8714
8715 2008-09-24 Robert Millan <rmh@aybabtu.com>
8716
8717 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
8718 macros (they were i386-pc specific).
8719 * include/grub/sparc64/ieee1275/console.h: Likewise.
8720 * include/grub/efi/console.h: Likewise.
8721
8722 2008-09-22 Bean <bean123ch@gmail.com>
8723
8724 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
8725 resident and in attribute list.
8726
8727 * include/grub/ntfs.h (BMP_LEN): Removed.
8728
8729 2008-09-22 Bean <bean123ch@gmail.com>
8730
8731 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
8732 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
8733
8734 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
8735 error occurs, as grub_disk_open will call grub_disk_close, which will
8736 call p->close (scsi).
8737
8738 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
8739
8740 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
8741 (AC_PREREQ): Bumped to 2.59.
8742 (AC_TRY_COMPILE): Replace obsolete macro with ...
8743 (AC_COMPILE_IFELSE): ... this.
8744 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
8745 (AC_LINK_IFELSE): ... this.
8746
8747 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
8748
8749 * autogen.sh: Add a call to `gendistlist.sh'.
8750
8751 2008-09-19 Christian Franke <franke@computer.org>
8752
8753 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
8754 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
8755 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
8756 Export __enable_execute_stack() to modules.
8757 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
8758 New function.
8759
8760 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
8761
8762 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
8763 Sort the list.
8764
8765 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
8766
8767 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
8768 #include <grub/util/hostdisk.h>.
8769
8770 2008-09-08 Robert Millan <rmh@aybabtu.com>
8771
8772 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
8773 segments when their filesz is zero (grub_file_read() interprets
8774 zero-size as "read until EOF", which results in memory corruption).
8775 Use `lowest_segment' rather than 0 for calculating the current
8776 segment load address.
8777
8778 2008-09-08 Robert Millan <rmh@aybabtu.com>
8779
8780 * util/hostdisk.c (open_device): Replace a grub_util_info() call
8781 with grub_dprintf("hostdisk", ...), as it was so verbose that it
8782 clobbered useful information.
8783
8784 2008-09-08 Robert Millan <rmh@aybabtu.com>
8785
8786 * include/grub/util/biosdisk.h: Move to ...
8787 * include/grub/util/hostdisk.h: ... here. Update all users.
8788 * util/biosdisk.c: Move to ...
8789 * util/hostdisk.c: ... here. Update all users.
8790
8791 2008-09-07 Robert Millan <rmh@aybabtu.com>
8792
8793 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
8794 variables.
8795 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
8796 and length can be stored directly in the `mbi->mmap_addr' and
8797 `mbi->mmap_length' struct fields.
8798
8799 2008-09-07 Robert Millan <rmh@aybabtu.com>
8800
8801 * conf/i386.rmk: New file. Provides declaration for building
8802 `cpuid.mod'.
8803 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
8804 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
8805 variables.
8806 Include `conf/i386.mk'.
8807 * conf/i386-efi.rmk: Likewise.
8808 * conf/x86_64-efi.rmk: Likewise.
8809 * conf/i386-coreboot.rmk: Likewise.
8810 * conf/i386-ieee1275.rmk: Likewise.
8811
8812 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
8813
8814 Based on patch created by Colin D Bennett <colin@gibibit.com>.
8815 Adds optimization support for BGR based modes.
8816
8817 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
8818 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8819 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8820 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8821 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8822 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8823 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8824 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8825 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8826 (grub_video_i386_vbeblit_index_index): Likewise.
8827 (grub_video_i386_vbeblit_replace_directN): Added.
8828 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8829 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8830 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8831 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8832 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8833 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
8834 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
8835 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8836 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8837 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8838 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8839 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8840 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
8841
8842 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
8843 (grub_video_i386_vbefill_R8G8B8): Likewise.
8844 (grub_video_i386_vbefill_index): Likewise.
8845 (grub_video_i386_vbefill_direct32): Added.
8846 (grub_video_i386_vbefill_direct24): Likewise.
8847 (grub_video_i386_vbefill_direct16): Likewise.
8848 (grub_video_i386_vbefill_direct8): Likewise.
8849
8850 * include/grub/video.h (grub_video_blit_format): Removed
8851 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
8852 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
8853 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
8854 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
8855 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
8856
8857 * video/video.c (grub_video_get_blit_format): Updated to use new
8858 blit formats. Added handling for 16 bit color modes.
8859
8860 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
8861 fillers.
8862 (common_blitter): Updated to use new blitters.
8863
8864 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
8865 Removed.
8866 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8867 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8868 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8869 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8870 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8871 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8872 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8873 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8874 (grub_video_i386_vbeblit_index_index): Likewise.
8875 (grub_video_i386_vbeblit_replace_directN): Added.
8876 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8877 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8878 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8879 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8880 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8881 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
8882 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
8883 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8884 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8885 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8886 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8887 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8888 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
8889
8890 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
8891 (grub_video_i386_vbefill_R8G8B8): Likewise.
8892 (grub_video_i386_vbefill_index): Likewise.
8893 (grub_video_i386_vbefill_direct32): Added.
8894 (grub_video_i386_vbefill_direct24): Likewise.
8895 (grub_video_i386_vbefill_direct16): Likewise.
8896 (grub_video_i386_vbefill_direct8): Likewise.
8897
8898 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
8899 types.
8900
8901 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
8902 types.
8903
8904 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
8905 blitter types.
8906
8907 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
8908 types.
8909
8910 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
8911
8912 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
8913 RAID level 1.
8914
8915 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
8916
8917 * fs/iso9660.c (grub_iso9660_date): New structure.
8918 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
8919 (grub_iso9660_uuid): New function.
8920
8921 2008-09-05 Bean <bean123ch@gmail.com>
8922
8923 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
8924
8925 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
8926 insensitive bit for names in Win32 and Win32 & DOS namespace.
8927
8928 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
8929
8930 * include/grub/types.h (LONG_MAX): Likewise.
8931
8932 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
8933
8934 * util/getroot.c: Include <config.h>.
8935 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
8936 add support for /dev/md/N devices and handle LVM double dash escaping.
8937
8938 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
8939
8940 * config.guess: Update to latest version from config git.
8941 * config.sub: Likewise.
8942
8943 2008-09-03 Robert Millan <rmh@aybabtu.com>
8944
8945 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
8946 `disk->total_sectors'.
8947
8948 2008-09-01 Colin D Bennett <colin@gibibit.com>
8949
8950 * include/grub/normal.h: Fixed incorrect comment for
8951 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
8952
8953 2008-09-01 Colin D Bennett <colin@gibibit.com>
8954
8955 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
8956 values with defines.
8957
8958 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
8959 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
8960 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
8961 (GRUB_VBE_MODEATTR_COLOR): Likewise.
8962 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
8963 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
8964 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
8965 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
8966 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
8967 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
8968 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
8969 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
8970 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
8971 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
8972 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
8973 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
8974 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
8975 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
8976 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
8977
8978 2008-08-31 Robert Millan <rmh@aybabtu.com>
8979
8980 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
8981 declaration.
8982 (grub_multiboot): Fix a few warnings.
8983
8984 2008-08-31 Robert Millan <rmh@aybabtu.com>
8985
8986 * loader/i386/pc/multiboot.c: Update comment not to say that
8987 boot_device support is unimplemented.
8988
8989 2008-08-31 Robert Millan <rmh@aybabtu.com>
8990
8991 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
8992 or memory map support are unimplemented.
8993
8994 2008-08-31 Colin D Bennett <colin@gibibit.com>
8995
8996 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
8997
8998 2008-08-31 Colin D Bennett <colin@gibibit.com>
8999
9000 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
9001 total video memory in 'vbeinfo' output; show color format details for
9002 each video mode.
9003
9004 2008-08-30 Pavel Roskin <proski@gnu.org>
9005
9006 * util/genmoddep.c: Remove for real this time.
9007 * DISTLIST: Remove util/genmoddep.c.
9008
9009 2008-08-30 Robert Millan <rmh@aybabtu.com>
9010
9011 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
9012 as required by Multiboot spec (it was already 4-byte aligned, but
9013 only by chance).
9014
9015 2008-08-29 Pavel Roskin <proski@gnu.org>
9016
9017 * kern/powerpc/ieee1275/crt0.S: Rename to ...
9018 * kern/powerpc/ieee1275/startup.S: ... this.
9019 * conf/powerpc-ieee1275.rmk: Adjust for the above.
9020 * DISTLIST: Likewise.
9021
9022 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
9023 grub/cpu/kernel.h. Add start label for consistency with other
9024 platforms. Add grub_prefix immediately after start. Add jump
9025 to the code after grub_prefix.
9026 * include/grub/powerpc/kernel.h: Provide valid values for
9027 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
9028
9029 2008-08-29 Bean <bean123ch@gmail.com>
9030
9031 * configure.ac: Change host_os to cygwin for mingw.
9032 (asprintf): New check for function.
9033
9034 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
9035 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
9036
9037 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
9038 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
9039 sync, sleep and grub_util_get_disk_size for mingw.
9040
9041 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
9042 to get size in mingw.
9043 (open_device): Use flag O_BINARY if it's defined.
9044 (find_root_device): Add dummy code for mingw.
9045
9046 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
9047 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
9048 (get_scsi_disk_name): Return 0 for mingw.
9049
9050 * util/hostfs.c: #include <grub/util/misc.h>.
9051 (grub_hostfs_open): Use "rb" flag to open file, use
9052 grub_util_get_disk_size to get disk size for mingw.
9053
9054 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
9055 (asprintf): New function if HAVE_ASPRINTF is not set.
9056 (sync): New function for mingw.
9057 (sleep): Likewise.
9058 (grub_util_get_disk_size): Likewise.
9059
9060 2008-08-28 Pavel Roskin <proski@gnu.org>
9061
9062 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
9063 kern/time.c.
9064
9065 2008-08-28 Robert Millan <rmh@aybabtu.com>
9066
9067 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
9068
9069 2008-08-28 Robert Millan <rmh@aybabtu.com>
9070
9071 Change find_grub_drive() syntax so it doesn't prevent it from
9072 detecting NULL names as errors.
9073
9074 * util/biosdisk.c (find_grub_drive): Move free slot search code
9075 from here ...
9076 (find_free_slot): ... to here.
9077 (read_device_map): Use find_free_slot() to search for free slots.
9078
9079 2008-08-27 Marco Gerards <marco@gnu.org>
9080
9081 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
9082 (scsi_mod_SOURCES): New variable.
9083 (scsi_mod_CFLAGS): Likewise
9084 (scsi_mod_LDFLAGS): Likewise.
9085
9086 * disk/scsi.c: New file.
9087
9088 * include/grub/scsi.h: Likewise.
9089
9090 * include/grub/scsicmd.h: Likewise.
9091
9092 * disk/ata.c: Include <grub/scsi.h>.
9093 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
9094 instead.
9095 (grub_ata_iterate): Skip ATAPI devices.
9096 (grub_ata_open): Only handle ATAPI devices.
9097 (struct grub_atapi_read): Removed.
9098 (grub_atapi_readsector): Likewise.
9099 (grub_ata_read): No longer handle ATAPI devices.
9100 (grub_ata_write): Likewise.
9101 (grub_atapi_iterate): New function.
9102 (grub_atapi_read): Likewise.
9103 (grub_atapi_write): Likewise.
9104 (grub_atapi_open): Likewise.
9105 (grub_atapi_close): Likewise.
9106 (grub_atapi_dev): New variable.
9107 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
9108 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
9109
9110 * include/grub/disk.h (enum grub_disk_dev_id): Add
9111 `GRUB_DISK_DEVICE_SCSI_ID'.
9112
9113 2008-08-26 Robert Millan <rmh@aybabtu.com>
9114
9115 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
9116 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
9117 descriptive.
9118
9119 2008-08-23 Bean <bean123ch@gmail.com>
9120
9121 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
9122 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
9123 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
9124 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
9125 dm_nv.mod.
9126 (raid5rec_mod_SOURCES): New macro.
9127 (raid5rec_mod_CFLAGS): Likewise.
9128 (raid5rec_mod_LDFLAGS): Likewise.
9129 (raid6rec_mod_SOURCES): Likewise.
9130 (raid6rec_mod_CFLAGS): Likewise.
9131 (raid6rec_mod_LDFLAGS): Likewise.
9132 (mdraid_mod_SOURCES): Likewise.
9133 (mdraid_mod_CFLAGS): Likewise.
9134 (mdraid_mod_LDFLAGS): Likewise.
9135 (dm_nv_mod_SOURCES): Likewise.
9136 (dm_nv_mod_CFLAGS): Likewise.
9137 (dm_nv_mod_LDFLAGS): Likewise.
9138
9139 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
9140 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
9141 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
9142
9143 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
9144 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
9145
9146 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9147
9148 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9149
9150 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9151
9152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9153
9154 * disk/raid5_recover.c: New file.
9155
9156 * disk/raid6_recover.c: Likewise.
9157
9158 * disk/mdraid_linux.c: Likewise.
9159
9160 * disk/dmraid_nvidia.c: Likewise.
9161
9162 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
9163 ULONG_MAX.
9164
9165 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
9166 calculate the size of raid device.
9167 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
9168 different layout of raid5.
9169 (grub_raid_scan_device): Remove code specific to mdraid.
9170 (grub_raid_list): New variable.
9171 (free_array): New function.
9172 (grub_raid_register): Likewise.
9173 (grub_raid_unregister): Likewise.
9174 (grub_raid_rescan): Likewise.
9175 (GRUB_MOD_INIT): Don't iterate device here.
9176 (GRUB_MOD_FINI): Use free_array to release resource.
9177
9178 * include/grub/raid.h: Remove macro and structure specific to mdraid.
9179 (grub_raid5_recover_func_t): New function variable type.
9180 (grub_raid6_recover_func_t): Likewise.
9181 (grub_raid5_recover_func): New variable.
9182 (grub_raid6_recover_func): Likewise.
9183 (grub_raid_register): New function.
9184 (grub_raid_unregister): Likewise.
9185 (grub_raid_rescan): Likewise.
9186 (grub_raid_block_xor): Likewise.
9187
9188 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
9189 (CMD_CRC): New macro.
9190 (part): Removed.
9191 (read_file): Handle device as well as file.
9192 (cmd_crc): New function.
9193 (fstest): Handle multiple disks.
9194 (options): Remove part, raw and long, add root and diskcount.
9195 (usage): Add crc, remove -p, -r, -l, add -r and -c.
9196 (main): Find the first non option entry and ignore subsequent options,
9197 add handling for the new options, support multiple disks.
9198
9199 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
9200
9201 2008-08-23 Bean <bean123ch@gmail.com>
9202
9203 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
9204
9205 * genfslist.sh: Ignore kernel.mod.
9206
9207 * genpartmaplist.sh: Likewise.
9208
9209 2008-08-23 Robert Millan <rmh@aybabtu.com>
9210
9211 * util/getroot.c (find_root_device): Skip anything that starts with
9212 a dot, not just directories. This avoids things like /dev/.tmp.md0.
9213
9214 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
9215
9216 * util/update-grub.in (GRUB_GFXMODE): Export variable.
9217 * util/grub.d/00_header.in: Allow the administrator to change default
9218 gfxmode via ${GRUB_GFXMODE}.
9219
9220 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
9221
9222 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
9223
9224 2008-08-21 Robert Millan <rmh@aybabtu.com>
9225
9226 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
9227 loader.
9228 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
9229 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
9230
9231 2008-08-20 Carles Pina i Estany <carles@pina.cat>
9232
9233 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
9234 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
9235
9236 2008-08-19 Robert Millan <rmh@aybabtu.com>
9237
9238 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
9239 (struct grub_virtual_screen): Remove `cursor_color'.
9240 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
9241 initialization.
9242 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
9243
9244 2008-08-18 Robert Millan <rmh@aybabtu.com>
9245
9246 Unify (identical) linux_normal.c files.
9247 * loader/i386/efi/linux_normal.c: Move from here ...
9248 * loader/linux_normal.c: ... to here. Update all users.
9249 * loader/i386/pc/linux_normal.c: Delete. Update all users.
9250 * loader/i386/ieee1275/linux_normal.c: Likewise.
9251
9252 2008-08-18 Robert Millan <rmh@aybabtu.com>
9253
9254 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
9255 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
9256 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
9257 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
9258 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
9259 New macros.
9260 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
9261 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
9262 (GRUB_LINUX_CL_END_OFFSET): ... to here.
9263 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
9264 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
9265 (GRUB_EFI_CL_END_OFFSET): Rename to ...
9266 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
9267 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
9268 Initialize `params->video_cursor_x' and `params->video_cursor_y'
9269 portably using grub_getxy().
9270 Replace `-EFI' with `-bzImage' in boot message.
9271
9272 2008-08-17 Robert Millan <rmh@aybabtu.com>
9273
9274 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
9275
9276 2008-08-17 Robert Millan <rmh@aybabtu.com>
9277
9278 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
9279
9280 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
9281 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
9282 (grub_machine_mmap_iterate): New function declaration.
9283 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
9284 structure.
9285 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
9286 macros.
9287
9288 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
9289 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
9290 Move e820 parsing from here ...
9291 * kern/i386/pc/mmap.c: New file.
9292 (grub_machine_mmap_iterate): ... to here.
9293
9294 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
9295 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
9296 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
9297 (grub_available_iterate): Redeclare to return `void', and redeclare
9298 its hook to use grub_uint64_t as addr and size parameters, and rename
9299 to ...
9300 (grub_machine_mmap_iterate): ... this. Update all users.
9301
9302 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
9303 to make it more readable. Rename to ...
9304 (grub_machine_mmap_iterate): ... this.
9305
9306 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
9307 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
9308 (grub_multiboot): Allocate an extra region after the payload, and fill
9309 it with a Multiboot memory map. Adjust a.out loader to calculate size
9310 with the extra space.
9311 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
9312 with the extra space.
9313
9314 2008-08-17 Carles Pina i Estany <carles@pina.cat>
9315
9316 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
9317
9318 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
9319
9320 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
9321 mdate-sh to the list `find' searches for.
9322 * DISTLIST: Regenerated.
9323
9324 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
9325
9326 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
9327 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
9328 genmoddep.awk, gensymlist.sh.in.
9329 (DISTDIRS): Add bus, docs, hook, lib.
9330 * DISTLIST: Regenerated.
9331 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
9332
9333 2008-08-16 Robert Millan <rmh@aybabtu.com>
9334
9335 * disk/raid.c (grub_raid_init): Handle/report errors set by
9336 grub_device_iterate().
9337 * disk/lvm.c (grub_lvm_init): Likewise.
9338
9339 2008-08-15 Bean <bean123ch@gmail.com>
9340
9341 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9342 and datehook.mod.
9343 (datetime_mod_SOURCES): New macro.
9344 (datetime_mod_CFLAGS): Likewise.
9345 (datetime_mod_LDFLAGS): Likewise.
9346 (date_mod_SOURCES): Likewise.
9347 (date_mod_CFLAGS): Likewise.
9348 (date_mod_LDFLAGS): Likewise.
9349 (datehook_mod_SOURCES): Likewise.
9350 (datehook_mod_CFLAGS): Likewise.
9351 (datehook_mod_LDFLAGS): Likewise.
9352
9353 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9354 and datehook.mod.
9355 (datetime_mod_SOURCES): New macro.
9356 (datetime_mod_CFLAGS): Likewise.
9357 (datetime_mod_LDFLAGS): Likewise.
9358 (date_mod_SOURCES): Likewise.
9359 (date_mod_CFLAGS): Likewise.
9360 (date_mod_LDFLAGS): Likewise.
9361 (datehook_mod_SOURCES): Likewise.
9362 (datehook_mod_CFLAGS): Likewise.
9363 (datehook_mod_LDFLAGS): Likewise.
9364
9365 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9366 and datehook.mod.
9367 (datetime_mod_SOURCES): New macro.
9368 (datetime_mod_CFLAGS): Likewise.
9369 (datetime_mod_LDFLAGS): Likewise.
9370 (date_mod_SOURCES): Likewise.
9371 (date_mod_CFLAGS): Likewise.
9372 (date_mod_LDFLAGS): Likewise.
9373 (datehook_mod_SOURCES): Likewise.
9374 (datehook_mod_CFLAGS): Likewise.
9375 (datehook_mod_LDFLAGS): Likewise.
9376
9377 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9378 and datehook.mod.
9379 (datetime_mod_SOURCES): New macro.
9380 (datetime_mod_CFLAGS): Likewise.
9381 (datetime_mod_LDFLAGS): Likewise.
9382 (date_mod_SOURCES): Likewise.
9383 (date_mod_CFLAGS): Likewise.
9384 (date_mod_LDFLAGS): Likewise.
9385 (datehook_mod_SOURCES): Likewise.
9386 (datehook_mod_CFLAGS): Likewise.
9387 (datehook_mod_LDFLAGS): Likewise.
9388
9389 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9390 and datehook.mod.
9391 (datetime_mod_SOURCES): New macro.
9392 (datetime_mod_CFLAGS): Likewise.
9393 (datetime_mod_LDFLAGS): Likewise.
9394 (date_mod_SOURCES): Likewise.
9395 (date_mod_CFLAGS): Likewise.
9396 (date_mod_LDFLAGS): Likewise.
9397 (datehook_mod_SOURCES): Likewise.
9398 (datehook_mod_CFLAGS): Likewise.
9399 (datehook_mod_LDFLAGS): Likewise.
9400
9401 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
9402
9403 * commands/date.c: New file.
9404
9405 * hook/datehook.c: Likewise.
9406
9407 * include/grub/lib/datetime.h: Likewise.
9408
9409 * include/grub/i386/cmos.h: Likewise.
9410
9411 * lib/datetime.c: Likewise.
9412
9413 * lib/i386/datetime.c: Likewise.
9414
9415 * lib/efi/datetime.c: Likewise.
9416
9417 2008-08-14 Robert Millan <rmh@aybabtu.com>
9418
9419 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
9420 (grub_mkelfimage_SOURCES): New variable.
9421 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
9422
9423 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
9424 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
9425 * conf/powerpc-ieee1275.rmk: Likewise.
9426 * conf/i386-ieee1275.rmk: Likewise.
9427
9428 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
9429 * kern/i386/coreboot/init.c: Likewise.
9430
9431 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
9432 with `<grub/cpu/kernel.h>'.
9433 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
9434 to ...
9435 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
9436 * kern/i386/coreboot/startup.S: Likewise.
9437
9438 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
9439 (GRUB_MOD_GAP): Remove.
9440 * include/grub/powerpc/kernel.h: New file.
9441 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
9442 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
9443 * include/grub/i386/kernel.h: New file.
9444 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
9445 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
9446 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
9447
9448 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
9449 `grub-mkelfimage'.
9450 Use --directory when invoking grub_mkimage.
9451
9452 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
9453 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
9454 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
9455 and GRUB_KERNEL_CPU_PREFIX.
9456
9457 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
9458
9459 * include/grub/err.h (grub_err_printf): New function prototype.
9460 * util/misc.c (grub_err_printf): New function.
9461 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
9462 grub_printf.
9463 * kern/err.c (grub_print_error): Use grub_err_printf.
9464
9465 2008-08-13 Robert Millan <rmh@aybabtu.com>
9466
9467 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
9468
9469 2008-08-13 Robert Millan <rmh@aybabtu.com>
9470
9471 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
9472 boot entry.
9473
9474 2008-08-12 Robert Millan <rmh@aybabtu.com>
9475
9476 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
9477 of the relocation code from here ...
9478 (grub_multiboot): ... to here.
9479 (forward_relocator, backward_relocator): Move from here ...
9480 * kern/i386/loader.S (grub_multiboot_forward_relocator)
9481 (grub_multiboot_backward_relocator): ... to here.
9482 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
9483 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
9484 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
9485 (grub_multiboot_forward_relocator_end)
9486 (grub_multiboot_backward_relocator)
9487 (grub_multiboot_backward_relocator_end): New variables.
9488
9489 2008-08-12 Bean <bean123ch@gmail.com>
9490
9491 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
9492
9493 2008-08-11 Robert Millan <rmh@aybabtu.com>
9494
9495 * kern/i386/linuxbios/startup.S: Move from here ...
9496 * kern/i386/coreboot/startup.S: ... to here.
9497
9498 * kern/i386/linuxbios/init.c: Move from here ...
9499 * kern/i386/coreboot/init.c: ... to here.
9500
9501 * kern/i386/linuxbios/table.c: Move from here ...
9502 * kern/i386/coreboot/mmap.c: ... to here.
9503
9504 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
9505
9506 2008-08-11 Robert Millan <rmh@aybabtu.com>
9507
9508 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
9509 errors. Leave it to the upper layer to handle them.
9510
9511 2008-08-09 Christian Franke <franke@computer.org>
9512
9513 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
9514 * conf/common.rmk: Install `grub-pe2elf' only if requested.
9515 Install `grub.d/10_windows' only on Cygwin.
9516 * configure.ac: Add subst of `target_os'.
9517 Check `target_os' also before setting TARGET_OBJ2ELF.
9518 Add `--enable-grub-pe2elf'.
9519
9520 2008-08-08 Robert Millan <rmh@aybabtu.com>
9521
9522 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
9523 (grub_last_time): Change type to grub_uint64_t.
9524 (grub_disk_open): Migrate code from to using grub_get_time_ms().
9525 (grub_disk_close): Likewise.
9526
9527 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
9528 (run_menu): Migrate code from to using grub_get_time_ms().
9529
9530 * util/misc.c (grub_get_time_ms): New function.
9531
9532 2008-08-08 Marco Gerards <marco@gnu.org>
9533
9534 * disk/ata.c (grub_ata_regget): Change return type to
9535 `grub_uint8_t'.
9536 (grub_ata_regget2): Likewise.
9537 (grub_ata_wait_status): New function.
9538 (grub_ata_wait_busy): Removed function, updated all users to use
9539 `grub_ata_wait_status'.
9540 (grub_ata_wait_drq): Likewise.
9541 (grub_ata_cmd): New function.
9542 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
9543 error handling.
9544 (grub_ata_pio_write): Add error handling.
9545 (grub_atapi_identify): Likewise.
9546 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
9547 handling.
9548 (grub_ata_identify): Use `grub_ata_cmd' and improve error
9549 handling. Actually use the detected registers. Reorder the
9550 detection logic such that it is easier to read.
9551 (grub_ata_pciinit): Do not assign the same ID to each controller.
9552 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
9553 handling.
9554 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
9555
9556 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
9557
9558 2008-08-08 Marco Gerards <marco@gnu.org>
9559
9560 * NEWS: Update.
9561
9562 2008-08-07 Bean <bean123ch@gmail.com>
9563
9564 * include/grub/x86_64/pci.h: New file.
9565
9566 2008-08-07 Christian Franke <franke@computer.org>
9567
9568 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
9569 (TIMER2_GATE): Likewise.
9570 (grub_pit_wait): Add enable/disable of the timer2 gate
9571 bit of port 0x61. This fixes a possible infinite loop.
9572
9573 2008-08-07 Bean <bean123ch@gmail.com>
9574
9575 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
9576 kern/i386/tsc.c and kern/i386/pit.c.
9577
9578 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
9579 x86_64 platform.
9580
9581 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
9582 <grub/i386/tsc.h>.
9583
9584 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
9585
9586 2008-08-07 Bean <bean123ch@gmail.com>
9587
9588 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
9589
9590 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
9591
9592 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
9593 multiple inclusion. Add #include <grub/types.h>.
9594
9595 2008-08-06 Christian Franke <franke@computer.org>
9596
9597 * conf/common.rmk: Build and install `10_windows'.
9598 * util/grub.d/10_windows.in: New script.
9599
9600 2008-08-06 Pavel Roskin <proski@gnu.org>
9601
9602 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
9603
9604 2008-08-06 Robert Millan <rmh@aybabtu.com>
9605
9606 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
9607 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
9608
9609 2008-08-06 Bean <bean123ch@gmail.com>
9610
9611 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
9612 (grub_pxefs_fs_int): Remove dummy definition.
9613 (grub_pxefs_open): Use data->block_size to store the current block
9614 size setting.
9615 (grub_pxefs_read): Use block size stored in data->block_size. As the
9616 value of grub_pxe_blksize can be changed after the file is opened.
9617
9618 2008-08-06 Bean <bean123ch@gmail.com>
9619
9620 * fs/i386/pc/pxe.c (curr_file): new variable.
9621 (grub_pxefs_open): Simply the handling of pxe file system. Don't
9622 require the dummy internal file system anymore.
9623 (grub_pxefs_read): Removed.
9624 (grub_pxefs_close): Likewise.
9625 (grub_pxefs_fs_int): Likewise.
9626 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
9627 connection when we switch file.
9628 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
9629
9630 2008-08-06 Robert Millan <rmh@aybabtu.com>
9631
9632 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
9633 `halt.mod'.
9634 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
9635 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
9636
9637 * kern/i386/halt.c: New file.
9638 * kern/i386/reboot.c: Likewise.
9639 * include/grub/i386/reboot.h: Likewise.
9640 * include/grub/i386/halt.h: Likewise.
9641
9642 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
9643 Include `<grub/cpu/halt.h>'.
9644 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
9645 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
9646
9647 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
9648 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
9649 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
9650 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
9651 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
9652 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
9653 from here ...
9654 * include/grub/i386/at_keyboard.h: ... to here.
9655
9656 2008-08-05 Robert Millan <rmh@aybabtu.com>
9657
9658 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
9659 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
9660 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
9661 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
9662 `kern/generic/millisleep.c'.
9663
9664 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
9665 instead of grub_get_rtc().
9666 (grub_tsc_init): Initialize `tsc_boot_time'.
9667
9668 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
9669 (grub_machine_init): Use grub_tsc_init() rather than
9670 installing an RTC-based handler via grub_install_get_time_ms().
9671
9672 * kern/i386/pit.c: New file.
9673 * include/grub/i386/pit.h: Likewise.
9674
9675 2008-08-05 Bean <bean123ch@gmail.com>
9676
9677 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
9678
9679 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
9680 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
9681 (pxe_mod_SOURCES): New macro.
9682 (pxe_mod_CFLAGS): Likewise.
9683 (pxe_mod_LDFLAGS): Likewise.
9684 (pxecmd_mod_SOURCES): Likewise.
9685 (pxecmd_mod_CFLAGS): Likewise.
9686 (pxecmd_mod_LDFLAGS): Likewise.
9687
9688 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
9689 (grub_pxe_call): Likewise.
9690
9691 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
9692
9693 * commands/i386/pc/pxecmd.c: New file.
9694
9695 * fs/i386/pc/pxe.c: Likewise.
9696
9697 * include/grub/i386/pc/pxe.h: Likewise.
9698
9699 2008-08-05 Bean <bean123ch@gmail.com>
9700
9701 * util/console.c (grub_console_cur_color): New variable.
9702 (grub_console_standard_color): Likewise.
9703 (grub_console_normal_color): Likewise.
9704 (grub_console_highlight_color): Likewise.
9705 (color_map): Likewise.
9706 (use_color): Likewise.
9707 (NUM_COLORS): New macro.
9708 (grub_ncurses_setcolorstate): Handle color properly.
9709 (grub_ncurses_setcolor): Don't change color here, just remember the
9710 settings, color will be set in grub_ncurses_setcolorstate.
9711 (grub_ncurses_getcolor): New function.
9712 (grub_ncurses_init): Initialize color pairs.
9713 (grub_ncurses_term): New member grub_ncurses_getcolor.
9714
9715 2008-08-05 Colin D Bennett <colin@gibibit.com>
9716
9717 High resolution timer support. Implemented for x86 CPUs using TSC.
9718 Extracted generic grub_millisleep() so it's linked in only as needed.
9719 This requires a Pentium compatible CPU; if the RDTSC instruction is
9720 not supported, then it falls back on the generic grub_get_time_ms()
9721 implementation that uses the machine's RTC.
9722
9723 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
9724 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
9725 `kern/generic/millisleep.c'.
9726
9727 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
9728 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
9729
9730 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
9731 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
9732
9733 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9734
9735 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
9736 `kern/generic/millisleep.c'.
9737
9738 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9739
9740 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
9741
9742 * kern/generic/rtc_get_time_ms.c: New file.
9743
9744 * kern/generic/millisleep.c: New file.
9745
9746 * kern/misc.c: Don't include
9747 <kern/time.h> anymore.
9748 (grub_millisleep_generic): Removed.
9749
9750 * commands/sleep.c (grub_interruptible_millisleep): Uses
9751 grub_get_time_ms() instead of grub_get_rtc().
9752
9753 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
9754 function.
9755 (grub_cpu_is_cpuid_supported): New inline function.
9756 (grub_cpu_is_tsc_supported): New inline function.
9757 (grub_tsc_init): New function prototype.
9758 (grub_tsc_get_time_ms): New function prototype.
9759
9760 * kern/i386/tsc.c (grub_get_time_ms): New file.
9761
9762 * include/grub/time.h: Include <grub/types.h.
9763 (grub_millisleep_generic): Removed.
9764 (grub_get_time_ms): New prototype.
9765 (grub_install_get_time_ms): New prototype.
9766 (grub_rtc_get_time_ms): New prototype.
9767
9768 * kern/time.c (grub_get_time_ms): New function.
9769 (grub_install_get_time_ms): New function.
9770
9771 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
9772 <grub/time.h> anymore.
9773 (grub_millisleep): Removed.
9774 (grub_machine_init): Call grub_tsc_init.
9775
9776 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
9777 get_time_ms() implementation.
9778
9779 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
9780 (ieee1275_get_time_ms): New function.
9781 (grub_machine_init): Install get_time_ms() implementation.
9782
9783 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
9784 (grub_machine_init): Call grub_tsc_init().
9785 (grub_millisleep): Removed.
9786
9787 * kern/ieee1275/init.c (grub_millisleep): Removed.
9788 (grub_machine_init): Install ieee1275_get_time_ms()
9789 implementation.
9790 (ieee1275_get_time_ms): New function.
9791 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
9792 real work.
9793
9794 2008-08-05 Marco Gerards <marco@gnu.org>
9795
9796 * disk/ata.c: Include <grub/pci.h>.
9797 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
9798 (grub_ata_initialize): Rewritten.
9799 (grub_ata_device_initialize): New function.
9800
9801 2008-08-04 Pavel Roskin <proski@gnu.org>
9802
9803 * kern/main.c: Include grub/mm.h.
9804
9805 2008-08-04 Robert Millan <rmh@aybabtu.com>
9806
9807 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
9808 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
9809 corruption problem).
9810
9811 2008-08-04 Robert Millan <rmh@aybabtu.com>
9812
9813 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
9814 warnings introduced in my last commit.
9815
9816 2008-08-03 Robert Millan <rmh@aybabtu.com>
9817
9818 Make PCI available on all i386 architectures.
9819
9820 * include/grub/i386/pc/pci.h: Move from here ...
9821 * include/grub/i386/pci.h: ... to here.
9822
9823 * include/grub/i386/pc/pci.h: Remove.
9824 * include/grub/i386/efi/pci.h: Remove.
9825 * include/grub/x86_64/efi/pci.h: Remove.
9826
9827 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
9828 `<grub/cpu/pci.h>'.
9829
9830 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
9831 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
9832 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
9833
9834 * conf/i386-ieee1275.rmk: Likewise.
9835
9836 2008-08-03 Robert Millan <rmh@aybabtu.com>
9837
9838 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
9839 (grub_console_setcursor): Make it possible to set cursor off.
9840
9841 2008-08-03 Robert Millan <rmh@aybabtu.com>
9842
9843 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
9844 of modules instead of assuming which platform provides what.
9845 * util/update-grub.in: Likewise.
9846
9847 2008-08-03 Robert Millan <rmh@aybabtu.com>
9848
9849 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
9850 instead of `grub_install_dos_part' to determine whether a drive needs
9851 to be prepended to prefix (`grub_install_dos_part' is not reliable,
9852 because it can be overridden when loading GRUB via Multiboot).
9853
9854 2008-08-02 Robert Millan <rmh@aybabtu.com>
9855
9856 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
9857
9858 2008-08-02 Robert Millan <rmh@aybabtu.com>
9859
9860 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
9861 of informational grub_dprintf() calls.
9862
9863 2008-08-02 Robert Millan <rmh@aybabtu.com>
9864
9865 * disk/memdisk.c (memdisk_size): Don't initialize.
9866 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
9867
9868 * include/grub/i386/pc/kernel.h
9869 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
9870 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
9871 (grub_memdisk_image_size, grub_arch_memdisk_addr)
9872 (grub_arch_memdisk_size): Remove.
9873
9874 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
9875 field (was only used to transfer a constant). Add `type' field to
9876 support multiple module types.
9877 (grub_module_iterate): New function.
9878
9879 * kern/device.c (grub_device_open): Do not hide error messages
9880 when grub_disk_open() fails. Use grub_print_error() instead.
9881
9882 * kern/i386/pc/init.c (grub_arch_modules_addr)
9883 (grub_arch_memdisk_size): Remove functions.
9884 (grub_arch_modules_addr): Return the module address in high memory
9885 (now that it isn't copied anymore).
9886
9887 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
9888 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
9889 decompression routine (grub_total_module_size already includes that
9890 now). Don't copy modules back to low memory.
9891
9892 * kern/main.c: Include `<grub/mm.h>'.
9893 (grub_load_modules): Split out (and use) ...
9894 (grub_module_iterate): ... this function, which iterates through
9895 module objects and runs a hook.
9896 Comment out grub_mm_init_region() call, as it would cause non-ELF
9897 modules to be overwritten.
9898
9899 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
9900 the memdisk image in its own region, make it part of the module list.
9901 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
9902 (main): Parse --memdisk|-m option, and pass user-provided path as
9903 parameter to generate_image().
9904 (add_segments): Pass `memdisk_path' down to load_modules().
9905 (load_modules): Embed memdisk image in module section when requested.
9906 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
9907 `header.type' instead of `header.offset'.
9908
9909 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
9910 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
9911 (memdisk_mod_LDFLAGS): New variables.
9912 * conf/i386-coreboot.rmk: Likewise.
9913 * conf/i386-ieee1275.rmk: Likewise.
9914
9915 2008-08-02 Robert Millan <rmh@aybabtu.com>
9916
9917 * loader/i386/pc/multiboot.c (playground, forward_relocator)
9918 (backward_relocator): New variables. Used to allocate and relocate
9919 the payload, respectively.
9920 (grub_multiboot_load_elf32): Load into heap instead of requested
9921 address, install the appropriate relocator code in each bound of
9922 the payload, and set the entry point such that
9923 grub_multiboot_real_boot() will jump to one of them.
9924
9925 * kern/i386/loader.S (grub_multiboot_payload_size)
9926 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9927 (grub_multiboot_payload_entry_offset): New variables.
9928 (grub_multiboot_real_boot): Set cpu context to what the relocator
9929 expects, and jump to the relocator instead of the payload.
9930
9931 * include/grub/i386/loader.h (grub_multiboot_payload_size)
9932 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9933 (grub_multiboot_payload_entry_offset): Export.
9934
9935 2008-08-01 Bean <bean123ch@gmail.com>
9936
9937 * normal/menu_entry.c (editor_getline): Don't return the original
9938 string as result, as it will be released by lexer once it has done
9939 using it.
9940
9941 2008-08-01 Robert Millan <rmh@aybabtu.com>
9942
9943 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
9944 within menuentries, not before them.
9945 util/grub.d/10_hurd.in: Likewise.
9946
9947 2008-08-01 Bean <bean123ch@gmail.com>
9948
9949 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
9950 (bufio_mod_SOURCES): New macro.
9951 (bufio_mod_CFLAGS): Likewise.
9952 (bufio_mod_LDFLAGS): Likewise.
9953
9954 * include/grub/bufio.h: New file.
9955
9956 * io/bufio.c: Likewise.
9957
9958 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
9959 (grub_video_reader_png): Use grub_buffile_open to open file.
9960
9961 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
9962 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
9963
9964 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
9965 (grub_video_reader_tga): Use grub_buffile_open to open file.
9966
9967 * font/manager.c: Include <grub/bufio.h>.
9968 (add_font): Use grub_buffile_open to open file.
9969
9970 2008-07-31 Robert Millan <rmh@aybabtu.com>
9971
9972 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
9973 ELF segments, use a macro for arbitrarily accessing any of them instead
9974 of preparing a pointer that allows access to one at a time.
9975 (grub_multiboot_load_elf64): Likewise.
9976
9977 2008-07-31 Bean <bean123ch@gmail.com>
9978
9979 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
9980 GRUB_KERNEL_MACHINE_DATA_END.
9981
9982 2008-07-30 Robert Millan <rmh@aybabtu.com>
9983
9984 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
9985 Increase from 0x50 to 0x60.
9986 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
9987 use UUIDs to identify the root drive for them. If that's not
9988 possible, abort.
9989 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
9990 check, for cross-disk installs.
9991
9992 2008-07-30 Robert Millan <rmh@aybabtu.com>
9993
9994 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
9995 is non-empty, use it to set the `prefix' environment variable instead
9996 of the usual approach.
9997 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
9998 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
9999 environment variable instead of dummy make_install_device().
10000
10001 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
10002 (start): Insert a data section, with `grub_prefix' variable.
10003 * kern/i386/linuxbios/startup.S: Likewise.
10004
10005 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
10006 New variable reference.
10007 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
10008 New macro. Defines offset of `grub_prefix' within startup.S (relative
10009 to `start').
10010 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
10011 section within startup.S (relative to `start').
10012 * include/grub/i386/coreboot/kernel.h: Likewise.
10013
10014 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
10015 Overwrite grub_prefix with its contents, at the beginning of the
10016 first segment.
10017 (main): Understand -p|--prefix.
10018
10019 2008-07-30 Robert Millan <rmh@aybabtu.com>
10020
10021 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
10022
10023 2008-07-30 Robert Millan <rmh@aybabtu.com>
10024
10025 * term/i386/pc/vga_text.c (grub_console_cls): Use
10026 grub_console_gotoxy() to go back to beginning of the screen.
10027 Found by Patrick Georgi <patrick.georgi@coresystems.de>
10028
10029 2008-07-29 Christian Franke <franke@computer.org>
10030
10031 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
10032 Add conversion of emulated mount points on Cygwin.
10033
10034 2008-07-29 Christian Franke <franke@computer.org>
10035
10036 * util/update-grub.in: Add a check for admin
10037 group on Cygwin.
10038 Remove old `grub.cfg.new' before creation.
10039 Add `-f' to `mv' to handle the different filesystem
10040 semantics of Windows.
10041
10042 2008-07-29 Bean <bean123ch@gmail.com>
10043
10044 * normal/main.c (get_line): Fix buffer overflow bug.
10045
10046 2008-07-28 Robert Millan <rmh@aybabtu.com>
10047
10048 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
10049 (struct grub_apple_header): New struct. Describes the layout of
10050 the partmap header.
10051 (apple_partition_map_iterate): Check the header magic as well as the
10052 partition magic (which was already being checked).
10053
10054 2008-07-28 Pavel Roskin <proski@gnu.org>
10055
10056 * genmk.rb: Add a warning to the beginning of the output that
10057 it's a generated file and should not be edited.
10058
10059 2008-07-28 Robert Millan <rmh@aybabtu.com>
10060
10061 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
10062 with the same number are found, just use issue a warning with
10063 grub_dprintf(), as this error has been reported to be non-fatal.
10064
10065 2008-07-27 Robert Millan <rmh@aybabtu.com>
10066
10067 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
10068 information.
10069
10070 2008-07-27 Bean <bean123ch@gmail.com>
10071
10072 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
10073 (grub_fat_find_dir): Ignore case when comparing filename.
10074
10075 2008-07-27 Bean <bean123ch@gmail.com>
10076
10077 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
10078 smallino, as it's more descriptive, and i8count can be confused with
10079 the other field count.
10080 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
10081 inode type.
10082
10083 2008-07-27 Bean <bean123ch@gmail.com>
10084
10085 * commands/crc.c: New file.
10086
10087 * lib/crc.c: Likewise.
10088
10089 * include/grub/lib/crc.h: Likewise.
10090
10091 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
10092
10093 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
10094 (hexdump): Move this function to ...
10095
10096 * lib/hexdump.c: ... here.
10097
10098 * include/grub/hexdump.h: Renamed to ...
10099
10100 * include/grub/lib/hexdump.h: ... this.
10101
10102 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
10103
10104 * util/grub-editenv.c: Likewise.
10105
10106 * include/envblk.h: Renamed to ...
10107
10108 * include/lib/envblk.h: ... this.
10109
10110 * util/envblk.c: Renamed to ...
10111
10112 * lib/envblk.c: ... this.
10113
10114 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
10115 lib/hexdump.c.
10116 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
10117 (pkglib_MODULES): Add crc.mod.
10118 (hexdump_mod_SOURCES): Add lib/hexdump.c.
10119 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
10120 (crc_mod_SOURCES): New macro.
10121 (crc_mod_CFLAGS): Likewise.
10122 (crc_mod_LDFLAGS): Likewise.
10123
10124 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
10125
10126 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10127
10128 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10129
10130 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10131
10132 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10133
10134 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
10135
10136 * commands/help.c: Include <grub/term.h>.
10137 (TERM_WIDTH): Removed. Updated all users.
10138
10139 2008-07-27 Pavel Roskin <proski@gnu.org>
10140
10141 * util/getroot.c (find_root_device): Rephrase a comment to avoid
10142 spurious warnings about a comment within a comment.
10143
10144 2008-07-25 Robert Millan <rmh@aybabtu.com>
10145
10146 * util/getroot.c (find_root_device): Skip devices that match
10147 /dev/dm-[0-9]. This lets the real device be found for any type of
10148 abstraction (LVM, EVMS, RAID..).
10149 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
10150 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
10151 device is found first, find_root_device() will now skip it.
10152
10153 2008-07-24 Pavel Roskin <proski@gnu.org>
10154
10155 * include/grub/types.h: Use __builtin_bswap32() and
10156 __builtin_bswap64() with gcc 4.3 and newer.
10157
10158 2008-07-24 Christian Franke <franke@computer.org>
10159
10160 * util/i386/pc/grub-install.in: If `--debug' is specified,
10161 pass `--verbose' to grub-setup.
10162 Abort script if make_system_path_relative_to_its_root() fails.
10163
10164 2008-07-24 Bean <bean123ch@gmail.com>
10165
10166 * configure.ac: Fixed a bug caused by the previous cygwin patch,
10167 variable `target_platform' should be `platform'.
10168
10169 2008-07-24 Bean <bean123ch@gmail.com>
10170
10171 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
10172 (grub_png_init_fixed_block): New function.
10173 (grub_png_decode_image_data): Handle fixed huffman code compression.
10174
10175 2008-07-24 Bean <bean123ch@gmail.com>
10176
10177 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
10178 (grub_pe2elf_SOURCES): New macro.
10179 (CLEANFILES): Add grub-pe2elf.
10180
10181 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
10182 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
10183 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
10184 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
10185 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
10186 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
10187 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
10188 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
10189 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
10190 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
10191 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
10192 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
10193 (GRUB_PE32_DT_FUNCTION): Likewise.
10194 (GRUB_PE32_REL_I386_DIR32): Likewise.
10195 (GRUB_PE32_REL_I386_REL32): Likewise.
10196 (grub_pe32_symbol): New structure.
10197 (grub_pe32_reloc): Likewise.
10198
10199 * util/grub-pe2elf.c: New file.
10200
10201 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
10202 start symbol in non pc platform.
10203
10204 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
10205
10206 The following patches are from Christian Franke.
10207
10208 * include/grub/dl.h: Remove .previous, gas supports this only
10209 for ELF format.
10210
10211 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
10212 Remove .type, gas supports this only for ELF format.
10213
10214 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
10215 nullbytes in symbol table. This fixes an infinite loop if table is
10216 zero filled.
10217
10218 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
10219 TARGET_IMG_LDFLAGS and EXEEXT.
10220
10221 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
10222 TARGET_IMG_LDFLAGS_AC.
10223 (grub_CHECK_STACK_ARG_PROBE): New function.
10224
10225 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
10226
10227 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
10228
10229 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
10230 to set TARGET_IMG_LD* accordingly.
10231 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
10232 Add call to grub_CHECK_STACK_ARG_PROBE.
10233 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
10234
10235 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
10236
10237 * genmk.rb: Add EXEEXT to CLEANFILES.
10238
10239 2008-07-23 Robert Millan <rmh@aybabtu.com>
10240
10241 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
10242 define the codes for arrows and lines used for the menu).
10243 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
10244 as well.
10245
10246 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
10247 fonts, because the latter are too slow.
10248
10249 2008-07-21 Bean <bean123ch@gmail.com>
10250
10251 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
10252 a20. Run keyboard test last, as it will cause macbook to halt.
10253
10254 2008-07-18 Pavel Roskin <proski@gnu.org>
10255
10256 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
10257 load foreign architecture modules correctly anyway. Keep
10258 support for loading host architecture modules, whether we
10259 compile them or not.
10260
10261 2008-07-17 Pavel Roskin <proski@gnu.org>
10262
10263 * configure.ac: Use -m32 or -m64 regardless of whether we had to
10264 change target_cpu. The compiler default can mismatch target_cpu
10265 in any case.
10266
10267 * disk/efi/efidisk.c: Fix format warnings on x86_64.
10268 * kern/efi/efi.c: Likewise.
10269
10270 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
10271 target compiler is functional.
10272 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
10273 are set up.
10274
10275 * configure.ac: Default to efi platform for x86_64-apple. Allow
10276 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
10277 adjustments from the rest, only do them if target is not
10278 explicitly given. Merge other adjustments with the final sanity
10279 check. Remove an extraneous check for supported CPU. Be
10280 specific which CPU and which platform is not supported.
10281
10282 * configure.ac: Default to pc platform for x86_64.
10283
10284 2008-07-17 Robert Millan <rmh@aybabtu.com>
10285
10286 Partial LinuxBIOS -> Coreboot rename.
10287
10288 * conf/i386-linuxbios.rmk: Renamed to ...
10289 * conf/i386-coreboot.rmk: ... this.
10290 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
10291 * configure.ac: Accept "coreboot" as input platform (but maintain
10292 compatibility with "linuxbios").
10293 * include/grub/i386/linuxbios: Renamed to ...
10294 * include/grub/i386/coreboot: ... this.
10295
10296 2008-07-17 Bean <bean123ch@gmail.com>
10297
10298 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
10299 (appleldr_mod_SOURCE): New variable.
10300 (appleldr_mod_CFLAGS): Likewise.
10301 (appleldr_mod_LDFLAGS): Likewise.
10302 (pci_mod_SOURCES): Likewise.
10303 (pci_mod_CFLAGS): Likewise.
10304 (pci_mod_LDFLAGS): Likewise.
10305 (lspci_mod_SOURCES): Likewise.
10306 (lspci_mod_CFLAGS): Likewise.
10307 (lspci_mod_LDFLAGS): Likewise.
10308
10309 * conf/x86_64-efi.rmk: New file.
10310
10311 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
10312 macro.
10313 (grub_efidisk_write): Likewise.
10314
10315 * include/efi/api.h (efi_call_0): New macro.
10316 (efi_call_1): Likewise.
10317 (efi_call_2): Likewise.
10318 (efi_call_3): Likewise.
10319 (efi_call_4): Likewise.
10320 (efi_call_5): Likewise.
10321 (efi_call_6): Likewise.
10322
10323 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
10324 grub_rescue_cmd_chainloader.
10325
10326 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
10327 (grub_pe32_optional_header): Change some fields based on i386 or
10328 x86_64 platform.
10329 (GRUB_PE32_PE32_MAGIC): Likewise.
10330
10331 * include/grub/efi/uga_draw.h: New file.
10332
10333 * include/grub/elf.h (STN_ABS): New constant.
10334 (R_X86_64_NONE): Relocation constant for x86_64.
10335 (R_X86_64_64): Likewise.
10336 (R_X86_64_PC32): Likewise.
10337 (R_X86_64_GOT32): Likewise.
10338 (R_X86_64_PLT32): Likewise.
10339 (R_X86_64_COPY): Likewise.
10340 (R_X86_64_GLOB_DAT): Likewise.
10341 (R_X86_64_JUMP_SLOT): Likewise.
10342 (R_X86_64_RELATIVE): Likewise.
10343 (R_X86_64_GOTPCREL): Likewise.
10344 (R_X86_64_32): Likewise.
10345 (R_X86_64_32S): Likewise.
10346 (R_X86_64_16): Likewise.
10347 (R_X86_64_PC16): Likewise.
10348 (R_X86_64_8): Likewise.
10349 (R_X86_64_PC8): Likewise.
10350
10351 * include/grub/i386/efi/pci.h: New file.
10352
10353 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
10354 Change it value based on platform.
10355 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
10356 (GRUB_E820_RAM): Likewise.
10357 (GRUB_E820_RESERVED): Likewise.
10358 (GRUB_E820_ACPI): Likewise.
10359 (GRUB_E820_NVS): Likewise.
10360 (GRUB_E820_EXEC_CODE): Likewise.
10361 (GRUB_E820_MAX_ENTRY): Likewise.
10362 (grub_e820_mmap): New structure.
10363 (linux_kernel_header): Change the efi field according to different
10364 kernel version, also field from linux_kernel_header.
10365
10366 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
10367
10368 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
10369 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
10370 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
10371 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
10372 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
10373 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
10374 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
10375 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
10376 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
10377 (GRUB_PCI_ADDR_IO_MASK): Likewise.
10378
10379 * include/grub/x86_64/efi/kernel.h: New file.
10380
10381 * include/grub/x86_64/efi/loader.h: Likewise.
10382
10383 * include/grub/x86_64/efi/machine.h: Likewise.
10384
10385 * include/grub/x86_64/efi/pci.h: Likewise.
10386
10387 * include/grub/x86_64/efi/time.h: Likewise.
10388
10389 * include/grub/x86_64/linux.h: Likewise.
10390
10391 * include/grub/x86_64/setjmp.h: Likewise.
10392
10393 * include/grub/x86_64/time.h: Likewise.
10394
10395 * include/grub/x86_64/types.h: Likewise.
10396
10397 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
10398 GRUB_TARGET_SIZEOF_VOID_P.
10399
10400 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
10401 (grub_efi_locate_handle): Likewise.
10402 (grub_efi_open_protocol): Likewise.
10403 (grub_efi_set_text_mode): Likewise.
10404 (grub_efi_stall): Likewise.
10405 (grub_exit): Likewise.
10406 (grub_reboot): Likewise.
10407 (grub_halt): Likewise.
10408 (grub_efi_exit_boot_services): Likewise.
10409 (grub_get_rtc): Likewise.
10410
10411 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
10412 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
10413 (grub_efi_allocate_pages): Wrap efi calls.
10414 (grub_efi_free_pages): Wrap efi calls.
10415 (grub_efi_get_memory_map): Wrap efi calls.
10416
10417 * kern/x86_64/dl.c: New file.
10418
10419 * kern/x86_64/efi/callwrap.S: Likewise.
10420
10421 * kern/x86_64/efi/startup.S: Likewise.
10422
10423 * loader/efi/appleloader.c: Likewise.
10424
10425 * loader/efi/chainloader.c (cmdline): New variable.
10426 (grub_chainloader_unload): Wrap efi calls.
10427 (grub_chainloader_boot): Likewise.
10428 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
10429 command line.
10430
10431 * loader/efi/chainloader_normal.c (chainloader_command):
10432 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
10433 command line.
10434
10435 * loader/i386/efi/linux.c (allocate_pages): Change allocation
10436 method.
10437 (grub_e820_add_region): New function.
10438 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
10439 booting.
10440 (grub_find_video_card): New function.
10441 (grub_linux_setup_video): New function.
10442 (grub_rescue_cmd_linux): Probe for video information.
10443
10444 * normal/x86_64/setjmp.S: New file.
10445
10446 * term/efi/console.c (map_char): New function.
10447 (grub_console_putchar): Map unicode char.
10448 (grub_console_checkkey): Wrap efi calls.
10449 (grub_console_getkey): Likewise.
10450 (grub_console_getwh): Likewise.
10451 (grub_console_gotoxy): Likewise.
10452 (grub_console_cls): Likewise.
10453 (grub_console_setcolorstate): Likewise.
10454 (grub_console_setcursor): Likewise.
10455
10456 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
10457
10458 2008-07-16 Pavel Roskin <proski@gnu.org>
10459
10460 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
10461 format strings.
10462
10463 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
10464 pointer, not an integer. This fixes a warning and prevents
10465 precision loss on 64-bit systems.
10466 (relocate_addresses): Remove unneeded cast.
10467
10468 2008-07-15 Pavel Roskin <proski@gnu.org>
10469
10470 * kern/i386/ieee1275/init.c: Include grub/cache.h.
10471
10472 * term/ieee1275/ofconsole.c: Disable code unused on i386.
10473
10474 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
10475 Fix comparison between signed and unsigned.
10476
10477 * include/grub/i386/ieee1275/console.h: Declare
10478 grub_console_init() and grub_console_fini().
10479
10480 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
10481 It's empty and unused.
10482
10483 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
10484 beginning to avoid warnings with some compilers.
10485
10486 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
10487 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
10488
10489 2008-07-14 Pavel Roskin <proski@gnu.org>
10490
10491 * kern/env.c (grub_register_variable_hook): Don't copy empty
10492 string, it leaks memory. Pass "" to grub_env_set(), it should
10493 handle constant strings.
10494
10495 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
10496 * commands/cmp.c (grub_cmd_cmp): Likewise.
10497 * kern/dl.c (grub_dl_flush_cache): Likewise.
10498 (grub_dl_load_core): Likewise.
10499 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
10500 (grub_elf64_load_phdrs): Likewise.
10501
10502 2008-07-13 Pavel Roskin <proski@gnu.org>
10503
10504 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
10505 between signed and unsigned.
10506 (LzmaEnc_Finish): Fix warning about an unused parameter.
10507
10508 2008-07-13 Bean <bean123ch@gmail.com>
10509
10510 * Makefile.in (enable_lzo): New rule.
10511
10512 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
10513
10514 * configure.ac (ENABLE_LZO): New option --enable-lzo.
10515
10516 * boot/i386/pc/lnxboot.S: #include <config.h>.
10517
10518 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
10519 its value according to the compression algorithm used, lzo or lzma.
10520
10521 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
10522 compression algorithm according to configure macro.
10523
10524 * kern/i386/pc/startup.S (codestart): Likewise.
10525
10526 * kern/i386/pc/lzma_decode.S: New file.
10527
10528 * include/grub/lib/LzFind.h: Likewise.
10529
10530 * include/grub/lib/LzHash.h: Likewise.
10531
10532 * include/grub/lib/LzmaDec.h: Likewise.
10533
10534 * include/grub/lib/LzmaEnc.h: Likewise.
10535
10536 * include/grub/lib/LzmaTypes.h: Likewise.
10537
10538 * lib/LzFind.c: Likewise.
10539
10540 * lib/LzmaDec.c: Likewise.
10541
10542 * lib/LzmaEnc.c: Likewise.
10543
10544 2008-07-13 Bean <bean123ch@gmail.com>
10545
10546 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
10547 (grub_ext4_extent_header): New structure.
10548 (grub_ext4_extent): Likewise.
10549 (grub_ext4_extent_idx): Likewise.
10550 (grub_ext4_find_leaf): New function.
10551 (grub_ext2_read_block): Handle extents.
10552
10553 2008-07-12 Robert Millan <rmh@aybabtu.com>
10554
10555 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
10556
10557 2008-07-11 Robert Millan <rmh@aybabtu.com>
10558
10559 * util/grub.d/40_custom.in: New file. Example on how to add custom
10560 entries to /etc/grub.d.
10561 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
10562 40_custom (implicitly, by merging all the grub.d rules).
10563
10564 2008-07-11 Pavel Roskin <proski@gnu.org>
10565
10566 * commands/read.c (grub_getline): Fix invalid memory access.
10567 Don't add newline to the variable value.
10568
10569 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
10570 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
10571 (serial_hw_get_port): Check validity of the port number.
10572 (grub_cmd_serial): Check return value of serial_hw_get_port().
10573
10574 2008-07-07 Pavel Roskin <proski@gnu.org>
10575
10576 * boot/i386/pc/diskboot.S (notification_string): Replace
10577 "Loading kernel" with just "loading". This is shorter, less
10578 confusing and saves a few bytes for possible future changes.
10579
10580 2008-07-05 Pavel Roskin <proski@gnu.org>
10581
10582 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
10583 size for ATAPI devices, they are undefined. Output sector
10584 number in decimal form.
10585
10586 * disk/ata.c: Use named constants for status bits.
10587
10588 2008-07-04 Pavel Roskin <proski@gnu.org>
10589
10590 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
10591 grub_addr_t before casting it to the void pointer to fix a
10592 warning. Non-addressable regions are discarded earlier.
10593 (grub_arch_modules_addr): Cast _end to grub_addr_t.
10594 * kern/i386/linuxbios/table.c: Include grub/misc.h.
10595 (check_signature): Don't shadow table_header.
10596 (grub_linuxbios_table_iterate): Cast numeric constants to
10597 grub_linuxbios_table_header_t.
10598 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
10599 grub_stop().
10600
10601 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
10602 prevent warnings.
10603
10604 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
10605 pointer, which can cause warnings. Support 64-bit addresses.
10606
10607 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
10608 of sizeof(long). This fixes PowerPC image generation on x86_64.
10609
10610 2008-07-04 Robert Millan <rmh@aybabtu.com>
10611
10612 This fixes a performance issue when pc & gpt partmap iterators
10613 didn't abort iteration even after our hook found what it was
10614 looking for (often causing expensive probes of non-existent drives).
10615
10616 Some callers relied on previous buggy behaviour, since they would
10617 raise an error when their own hooks caused early abortion of its
10618 iteration.
10619
10620 * kern/device.c (grub_device_open): Improve error message.
10621 * disk/lvm.c (grub_lvm_open): Likewise.
10622 * disk/raid.c (grub_raid_open): Likewise.
10623
10624 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
10625 when hook requests it, independently of grub_errno.
10626 (pc_partition_map_probe): Do not fail when find_func() caused
10627 early abortion of pc_partition_map_iterate().
10628
10629 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
10630 when hook requests it, independently of grub_errno.
10631 (gpt_partition_map_probe): Do not fail when find_func() caused
10632 early abortion of gpt_partition_map_iterate().
10633
10634 * kern/partition.c (grub_partition_iterate): Abort parent iteration
10635 when hook requests it, independently of grub_errno. Do not fail when
10636 part_map_iterate_hook() caused early abortion of p->iterate().
10637
10638 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
10639 when grub_partition_iterate() returned with non-zero.
10640
10641 2008-07-03 Pavel Roskin <proski@gnu.org>
10642
10643 * disk/ata.c (grub_ata_pio_write): Check status before writing,
10644 like we do in grub_ata_pio_read().
10645 (grub_ata_readwrite): Always write individual sectors. Fix the
10646 sector count for the remainder.
10647 (grub_ata_write): Enable writing to ATA devices. Correctly
10648 report error for ATAPI devices.
10649
10650 2008-07-02 Pavel Roskin <proski@gnu.org>
10651
10652 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
10653 warning.
10654
10655 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
10656 for every read sector, we already increment it for the whole
10657 batch. This fixes reading more than 256 sectors at once.
10658
10659 * util/grub-editenv.c (cmd_info): Cast argument to long
10660 explicitly. ptrdiff_t reduces to int on i386.
10661
10662 * util/grub-editenv.c (main): Be specific which parameter is
10663 missing.
10664
10665 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
10666 (memdisk): Make memdisk_orig_addr a pointer.
10667
10668 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
10669 for file offsets, use grub_off_t instead. Fix printf format
10670 warnings.
10671
10672 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
10673 there. Real unexpected warnings should not drown in the noise
10674 about known problems.
10675
10676 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
10677 grub_disk_addr_t for memory addresses.
10678
10679 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
10680 explicitly to fix a warning.
10681
10682 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
10683
10684 * Makefile.in (MODULE_LDFLAGS): New variable.
10685 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
10686 the linker accepts --build-id=none.
10687 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
10688 MODULE_LDFLAGS.
10689 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
10690
10691 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
10692 those in Linux XFS code. Provide a way to access 64-bit parent
10693 inode.
10694 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
10695 the end of struct grub_xfs_dir_header.
10696
10697 2008-07-02 Bean <bean123ch@gmail.com>
10698
10699 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
10700 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10701 and GRUB_IEEE1275_FLAG_NO_ANSI.
10702
10703 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
10704 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10705 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
10706
10707 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
10708 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
10709
10710 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
10711 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
10712
10713 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
10714 esc sequence on non ANSI terminal.
10715 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
10716
10717 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
10718 beginning of file.
10719
10720 2008-07-02 Bean <bean123ch@gmail.com>
10721
10722 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
10723 (grub_editenv_SOURCES): New variable.
10724 (pkglib_MODULES): Add loadenv.mod.
10725 (loadenv_mod_SOURCES): New variable.
10726 (loadenv_mod_CFLAGS): Likewise.
10727 (loadenv_mod_LDFLAGS): Likewise.
10728
10729 * include/grub/envblk.h: New file.
10730
10731 * util/envblk.c: New file.
10732
10733 * util/grub-editenv.c: New file.
10734
10735 * commands/loadenv.c: New file.
10736
10737 2008-07-01 Pavel Roskin <proski@gnu.org>
10738
10739 * include/multiboot2.h (struct multiboot_tag_module): Use char,
10740 not unsigned char. This fixes warnings and is consistent with
10741 other tags.
10742
10743 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
10744
10745 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
10746
10747 * term/tparm.c (analyze): Always set *popcount.
10748
10749 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
10750 cast to fix a warning.
10751
10752 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
10753 cast to suppress a warning.
10754
10755 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
10756 grub_fshelp_read_file() expects.
10757
10758 * fs/fat.c: Fix UUID calculation on big-endian systems. We
10759 write uuid as a 32-bit value in CPU byte order, so declare and
10760 use it as such.
10761
10762 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
10763 long if the format specifier expects it.
10764 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
10765 * partmap/pc.c (pc_partition_map_iterate): Likewise.
10766 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
10767 long to fix a warning.
10768 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
10769 grub_dprintf() arguments to fix warnings.
10770
10771 2008-06-30 Pavel Roskin <proski@gnu.org>
10772
10773 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
10774 install_bsd_part immediately before core.img is embedded or
10775 modified on disk. This fixes core.img verification if core.img
10776 cannot be embedded.
10777
10778 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
10779 core_path to calculate the blocklist.
10780 Patch from Javier Martín <lordhabbit@gmail.com>
10781
10782 2008-06-29 Robert Millan <rmh@aybabtu.com>
10783
10784 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
10785 block to disk block.
10786 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
10787 Patch from Niels Böhm <bitbucket@arcor.de>
10788
10789 2008-06-29 Robert Millan <rmh@aybabtu.com>
10790
10791 * util/update-grub_lib.in (font_path): Search for fonts in
10792 /boot/grub first, which is more likely to be readable (we aren't
10793 deciding where fonts live, just looking for them).
10794
10795 2008-06-26 Pavel Roskin <proski@gnu.org>
10796
10797 * util/biosdisk.c (read_device_map): Don't leave dead map
10798 entries for devices failing stat() check.
10799
10800 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
10801 core_path_dev for the core.img path on the target device.
10802
10803 2008-06-26 Robert Millan <rmh@aybabtu.com>
10804
10805 * disk/fs_uuid.c: New file.
10806 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
10807 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
10808 (fs_uuid_mod_LDFLAGS): New variables.
10809 * include/grub/disk.h (grub_disk_dev_id): Add
10810 `GRUB_DISK_DEVICE_UUID_ID'.
10811 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
10812 implement iterate().
10813
10814 2008-06-26 Robert Millan <rmh@aybabtu.com>
10815
10816 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
10817 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
10818 Linux image includes no initrd.
10819
10820 2008-06-21 Javier Martín <lordhabbit@gmail.com>
10821
10822 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
10823 call to resolve the core image location that effectively appended the
10824 name twice.
10825
10826 2008-06-21 Robert Millan <rmh@aybabtu.com>
10827
10828 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
10829 call from here ...
10830
10831 * util/grub.d/10_hurd.in: ... to here ...
10832 * util/grub.d/10_linux.in: ... and here.
10833
10834 2008-06-19 Robert Millan <rmh@aybabtu.com>
10835
10836 * kern/main.c (grub_main): Export `prefix' variable immediately
10837 after it has been set by grub_machine_set_prefix().
10838
10839 2008-06-19 Robert Millan <rmh@aybabtu.com>
10840
10841 * commands/search.c (search_label, search_fs_uuid, search_file): Print
10842 search result when not saving to variable, not the other way around.
10843 When saving to variable, abort iteration as soon as a match is found.
10844
10845 2008-06-19 Robert Millan <rmh@aybabtu.com>
10846
10847 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
10848 check for partition that provides /boot/grub. Its logic is flawed,
10849 as it prevents prepare_grub_to_access_device() from being called
10850 multiple times.
10851
10852 2008-06-19 Robert Millan <rmh@aybabtu.com>
10853
10854 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
10855 "insmod" command directly when abstraction modules are needed,
10856 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
10857 since it had already been processed).
10858
10859 2008-06-19 Pavel Roskin <proski@gnu.org>
10860
10861 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
10862 changed. This is needed in case GRUB_LIBDIR changes.
10863 * conf/i386-ieee1275.rmk: Likewise.
10864 * conf/i386-linuxbios.rmk: Likewise.
10865 * conf/i386-pc.rmk: Likewise.
10866 * conf/powerpc-ieee1275.rmk: Likewise.
10867
10868 2008-06-18 Pavel Roskin <proski@gnu.org>
10869
10870 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
10871 kernel_elf_symlist.c to symlist.c for consistency with other
10872 architectures. Update all users.
10873 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
10874
10875 2008-06-18 Robert Millan <rmh@aybabtu.com>
10876
10877 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
10878 it in prefix.
10879
10880 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
10881 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
10882 a RAID device, run setup() for all members independently on whether
10883 LVM abstraction is being used.
10884 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
10885 If grub-mkimage has set `*install_dos_part == -2', don't override this
10886 value.
10887 Perform *install_dos_part adjustments independently on whether
10888 we're embedding or not.
10889 Clarify error message when image is too big for embedding.
10890 Remove duplicate *install_dos_part stanza.
10891
10892 2008-06-17 Robert Millan <rmh@aybabtu.com>
10893
10894 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
10895 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
10896 variables.
10897 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
10898 values in grub_ofconsole_normal_color and
10899 grub_ofconsole_highlight_color (they're not directly related to
10900 background and foreground).
10901 (grub_ofconsole_setcolorstate): Extract background and foreground
10902 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
10903
10904 2008-06-17 Robert Millan <rmh@aybabtu.com>
10905
10906 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
10907 /boot/grub for the check in last commit, not /boot (they could be
10908 different partitions).
10909
10910 2008-06-16 Robert Millan <rmh@aybabtu.com>
10911
10912 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
10913 asked to setup access for the same partition that provides /boot,
10914 don't bother using UUIDs since our root already has the value we
10915 want.
10916
10917 2008-06-16 Robert Millan <rmh@aybabtu.com>
10918
10919 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
10920 I2O devices.
10921 Patch from Sven Mueller <sven@debian.org>.
10922
10923 2008-06-16 Robert Millan <rmh@aybabtu.com>
10924
10925 * util/update-grub.in: Check for $EUID instead of $UID.
10926 Reported by Vincent Zweije.
10927
10928 2008-06-16 Bean <bean123ch@gmail.com>
10929
10930 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
10931 (grub_ext2_read_block): Likewise.
10932 (grub_ext2_read_inode): Likewise.
10933 (grub_ext2_mount): Likewise.
10934 (grub_ext2_close): Likewise.
10935 (grub_ext3_get_journal): Removed.
10936
10937 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
10938 (grub_reiserfs_read_symlink): Likewise.
10939 (grub_reiserfs_mount): Likewise.
10940 (grub_reiserfs_open): Likewise.
10941 (grub_reiserfs_read): Likewise.
10942 (grub_reiserfs_close): Likewise.
10943 (grub_reiserfs_get_journal): Removed.
10944
10945 * fs/fshelp.c (grub_fshelp_read): Removed.
10946 (grub_fshelp_map_block): Likewise.
10947
10948 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
10949 (grub_fshelp_journal): Likewise.
10950 (grub_fshelp_read): Likewise.
10951 (grub_fshelp_map_block): Likewise.
10952
10953 2008-06-16 Pavel Roskin <proski@gnu.org>
10954
10955 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
10956 floating point anymore.
10957 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
10958
10959 2008-06-15 Pavel Roskin <proski@gnu.org>
10960
10961 * commands/ls.c (grub_ls_list_files): Use integer calculations
10962 for human readable format, avoid floating point use.
10963 * kern/misc.c (grub_ftoa): Remove.
10964 (grub_vsprintf): Remove floating point support.
10965
10966 2008-06-15 Robert Millan <rmh@aybabtu.com>
10967
10968 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
10969 devices.
10970 Reported by Max Vozeler.
10971
10972 2008-06-15 Robert Millan <rmh@aybabtu.com>
10973
10974 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
10975 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
10976 skipped later.
10977 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
10978 the beginning of the prefix.
10979
10980 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
10981 It is assumed that if we have a memdisk, grub-mkimage has set
10982 grub_prefix to include the "(memdisk)" drive in it.
10983
10984 2008-06-15 Robert Millan <rmh@aybabtu.com>
10985
10986 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
10987 Initialize keyboard controller after registering the terminal, so that
10988 grub_printf() can be called from grub_keyboard_controller_init().
10989
10990 2008-06-15 Robert Millan <rmh@aybabtu.com>
10991
10992 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
10993 extent-btree which is written as big endian on disk.
10994 Reported by Alain Greppin <al@chilibi.org>.
10995
10996 2008-06-14 Robert Millan <rmh@aybabtu.com>
10997
10998 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
10999 * util/i386/pc/grub-install.in (modules): Likewise.
11000
11001 2008-06-13 Pavel Roskin <proski@gnu.org>
11002
11003 * commands/ls.c (grub_ls_list_files): Fix format warnings.
11004
11005 2008-06-13 Bean <bean123ch@gmail.com>
11006
11007 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
11008
11009 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
11010
11011 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
11012 to indicate sparse block.
11013
11014 2008-06-12 Pavel Roskin <proski@gnu.org>
11015
11016 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
11017 number, grub_fshelp_read() does it for us.
11018
11019 * fs/fshelp.c (grub_fshelp_read): New function. Implement
11020 linear disk read with journal translation.
11021 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
11022 * include/grub/fshelp.h: Declare grub_fshelp_read().
11023
11024 2008-06-09 Pavel Roskin <proski@gnu.org>
11025
11026 * fs/minix.c (grub_minix_mount): Handle error reading
11027 superblock.
11028
11029 2008-06-08 Robert Millan <rmh@aybabtu.com>
11030
11031 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
11032 don't append the RAID prefix afterwards.
11033 Reported by Clint Adams.
11034
11035 2008-06-08 Robert Millan <rmh@aybabtu.com>
11036
11037 Based on description from Pavel:
11038 * kern/disk.c (grub_disk_check_range): Rename to ...
11039 (grub_disk_adjust_range): ... this. Add a comment explaining the
11040 tasks performed by this function.
11041
11042 2008-06-08 Robert Millan <rmh@aybabtu.com>
11043
11044 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
11045 `num_serial' (for consistency with other variables).
11046 (struct grub_ntfs_data): Add `uuid' member.
11047 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
11048 (grub_ntfs_uuid): New function.
11049 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
11050
11051 2008-06-07 Pavel Roskin <proski@gnu.org>
11052
11053 * util/biosdisk.c (open_device): Revert last change to the
11054 function, it broke installation. The sector needs to be
11055 different dependent on which device is opened.
11056
11057 2008-06-06 Robert Millan <rmh@aybabtu.com>
11058
11059 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
11060 rest of GRUB, and breakage doesn't happen if its value were modified.
11061
11062 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
11063 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
11064 a constant (same value).
11065 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
11066 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
11067
11068 2008-06-06 Robert Millan <rmh@aybabtu.com>
11069
11070 * util/biosdisk.c (open_device): Do not modify sector offset when
11071 accessing a partition. kern/disk.c already handles this for us.
11072
11073 2008-06-06 Robert Millan <rmh@aybabtu.com>
11074
11075 * util/grub-emu.c (grub_machine_init): Move code in this function from
11076 here ...
11077 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
11078 segfault in case grub_printf() is called).
11079
11080 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
11081 grub_probe. Update all users not to explicitly add it again.
11082 (grub_device): New variable; contains corresponding device for grubdir.
11083 (fs_module, partmap_module, devabstraction_module): Pass
11084 `--device ${grub_device}' to grub_probe to avoid traversing /dev
11085 every time.
11086
11087 2008-06-05 Robert Millan <rmh@aybabtu.com>
11088
11089 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
11090 is found, print it (same layout as with labels).
11091
11092 2008-06-04 Robert Millan <rmh@aybabtu.com>
11093
11094 * util/biosdisk.c (get_drive): Rename to ...
11095 (find_grub_drive): ... this. Update all users.
11096
11097 (get_os_disk): Rename to ...
11098 (convert_system_partition_to_system_disk): ... this. Update all users.
11099
11100 (find_drive): Rename to ...
11101 (find_system_device): ... this. Update all users.
11102
11103 2008-06-04 Robert Millan <rmh@aybabtu.com>
11104
11105 * util/biosdisk.c (get_os_disk): Handle IDA devices.
11106 * util/grub-mkdevicemap.c (get_mmc_disk_name)
11107 (make_device_map): Likewise.
11108
11109 2008-06-01 Robert Millan <rmh@aybabtu.com>
11110
11111 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
11112 before dereferencing it.
11113
11114 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
11115 union with fat12/fat16-specific ones. Add some new fields, including
11116 `num_serial' for both versions.
11117 (struct grub_fat_data): Add `uuid' member.
11118 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
11119 names. Initialize `data->uuid' using `num_serial'.
11120 (grub_fat_uuid): New function.
11121 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
11122
11123 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
11124 (grub_reiserfs_uuid): New function.
11125 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
11126 member.
11127
11128 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
11129 (grub_xfs_uuid): New function.
11130 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
11131
11132 2008-06-01 Robert Millan <rmh@aybabtu.com>
11133
11134 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
11135 code that is backward compatible with pre-uuid search command.
11136
11137 2008-05-31 Robert Millan <rmh@aybabtu.com>
11138
11139 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
11140 floppies after everything else, to ensure floppy drive isn't accessed
11141 unnecessarily (patch from Bean).
11142
11143 2008-05-31 Robert Millan <rmh@aybabtu.com>
11144
11145 * commands/search.c (search_label, search_fs_uuid, search_file): Do
11146 not print device names when we were asked to set a variable.
11147
11148 2008-05-31 Robert Millan <rmh@aybabtu.com>
11149
11150 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
11151 using "cursor-on" and "cursor-off" commands (understood at least by
11152 the Open Firmware flavour on OLPC).
11153
11154 2008-05-31 Michael Gorven <michael@gorven.za.net>
11155
11156 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
11157 on and off sequences.
11158
11159 2008-05-31 Robert Millan <rmh@aybabtu.com>
11160
11161 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
11162 * util/update-grub.in: Likewise.
11163
11164 2008-05-30 Pavel Roskin <proski@gnu.org>
11165
11166 * util/biosdisk.c (linux_find_partition): Simplify logic and
11167 make the code more universal. Keep special processing for
11168 devfs, but use a simple rule for all other devices. If the
11169 device ends with a number, append 'p' and the partition number.
11170 Otherwise, append only the partition number.
11171
11172 2008-05-30 Robert Millan <rmh@aybabtu.com>
11173
11174 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
11175 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
11176 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
11177 the `root' parameter to Linux.
11178
11179 2008-05-30 Robert Millan <rmh@aybabtu.com>
11180
11181 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
11182 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
11183 --fs_uuid with --fs-uuid.
11184 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
11185 all filesystems support them).
11186
11187 2008-05-30 Robert Millan <rmh@aybabtu.com>
11188
11189 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
11190 grub_printf() flags, since we're printing in units of 2 bytes.
11191
11192 2008-05-30 Robert Millan <rmh@aybabtu.com>
11193
11194 * util/grub.d/00_header.in: Remove obsolete comment referencing
11195 convert_system_path_to_grub_path().
11196 * util/update-grub.in: Likewise.
11197 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
11198 (convert_system_path_to_grub_path): Add a warning message explaining
11199 that this function is deprecated. Rely on is_path_readable_by_grub()
11200 for the readability checks.
11201 (font_path): Use is_path_readable_by_grub() for the readability
11202 check rather than convert_system_path_to_grub_path().
11203
11204 2008-05-30 Robert Millan <rmh@aybabtu.com>
11205
11206 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
11207 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
11208 converting it first.
11209 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
11210 grub.cfg for access to font file, and afterwards call it again to set
11211 the root device.
11212
11213 2008-05-30 Robert Millan <rmh@aybabtu.com>
11214
11215 * commands/search.c (options): Add --fs_uuid option.
11216 (search_fs_uuid): New function.
11217 (grub_cmd_search): Fix --set argument passing.
11218 Use search_fs_uuid() when requested via --fs_uuid.
11219 (grub_search_init): Update help message.
11220 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
11221 and redeclare it as an array of 16-bit words.
11222 (grub_ext2_uuid): New function.
11223 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
11224 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
11225 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
11226 (GRUB_DEVICE_BOOT_UUID): New variables.
11227 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
11228 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
11229 whenever possible.
11230 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
11231 just assume `root' variable has the right value.
11232 * util/grub.d/10_linux.in: Likewise.
11233 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
11234 via PRINT_FS_UUID.
11235 (main): Recognise `-t fs_uuid' argument.
11236
11237 2008-05-30 Robert Millan <rmh@aybabtu.com>
11238
11239 * util/biosdisk.c (map): Redefine structure to hold information
11240 about GRUB drive name.
11241 (get_drive): Reimplement without assuming (and verifying) BIOS-like
11242 drive names.
11243 (call_hook): Remove.
11244 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
11245 member. Assume drive has partitions.
11246 (grub_util_biosdisk_open): Access device names via `.device' struct
11247 member.
11248 (open_device): Likewise.
11249 (find_drive): Likewise.
11250 (read_device_map): Adjust map[] usage to match the new struct
11251 definition. Don't check for duplicates (still possible, but not cheap
11252 anymore).
11253 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
11254 (make_device_name): Remove assumption of BIOS-like drive names.
11255
11256 2008-05-30 Pavel Roskin <proski@gnu.org>
11257
11258 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
11259 compiling execute.c doesn't need grub_script.tab.h anymore.
11260 (normal/command.c_DEPENDENCIES): Likewise.
11261 (normal/function.c_DEPENDENCIES): Likewise.
11262 * conf/i386-ieee1275.rmk: Likewise.
11263 * conf/i386-linuxbios.rmk: Likewise.
11264 * conf/i386-pc.rmk: Likewise.
11265 * conf/powerpc-ieee1275.rmk: Likewise.
11266 * conf/sparc64-ieee1275.rmk: Likewise.
11267
11268 2008-05-29 Pavel Roskin <proski@gnu.org>
11269
11270 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
11271 when scanning metadata for volume group name.
11272
11273 * include/grub/script.h: Don't include grub_script.tab.h. It's
11274 a generated file, which may only be included from the files with
11275 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
11276 use union YYSTYPE, as the later allows forward declaration.
11277 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
11278
11279 2008-05-29 Robert Millan <rmh@aybabtu.com>
11280
11281 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
11282 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
11283 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
11284 (grub_console_checkkey): Add grub_dprintf() call to report unknown
11285 scan codes.
11286
11287 2008-05-29 Robert Millan <rmh@aybabtu.com>
11288
11289 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
11290 control key combinations.
11291
11292 2008-05-29 Robert Millan <rmh@aybabtu.com>
11293
11294 * util/powerpc/ieee1275/grub-install.in: Move from here ...
11295 * util/ieee1275/grub-install.in: ... to here.
11296 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
11297 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
11298 (grub_install_SOURCES): Likewise.
11299
11300 2008-05-29 Robert Millan <rmh@aybabtu.com>
11301
11302 * fs/affs.c: Update copyright year.
11303 * fs/ext2.c: Likewise.
11304 * fs/fshelp.c: Likewise.
11305 * fs/hfsplus.c: Likewise.
11306 * fs/ntfs.c: Likewise.
11307 * fs/xfs.c: Likewise.
11308 * include/grub/fshelp.h: Likewise.
11309 * util/grub-mkdevicemap.c: Likewise.
11310
11311 2008-05-28 Robert Millan <rmh@aybabtu.com>
11312
11313 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
11314 might need to be fatfs to support some firmware implementations
11315 (e.g. OFW or EFI).
11316
11317 2008-05-28 Robert Millan <rmh@aybabtu.com>
11318
11319 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
11320 devices.
11321 * util/grub-mkdevicemap.c (get_mmc_disk_name)
11322 (make_device_map): Likewise.
11323
11324 2008-05-20 Bean <bean123ch@gmail.com>
11325
11326 * fs/fshelp.c (grub_fshelp_map_block): New function.
11327 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
11328 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
11329
11330 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
11331 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
11332 (grub_fshelp_journal): New structure.
11333 (grub_fshelp_map_block): New function prototype.
11334 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
11335 (grub_fshelp_map_block): Likewise.
11336
11337 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
11338 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
11339 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
11340 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
11341 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
11342 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
11343 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
11344 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
11345 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
11346 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
11347 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
11348 (grub_ext2_sblock): New members for journal support.
11349 (grub_ext3_journal_header): New structure.
11350 (grub_ext3_journal_revoke_header): Likewise.
11351 (grub_ext3_journal_block_tag): Likewise.
11352 (grub_ext3_journal_sblock): Likewise.
11353 (grub_fshelp_node): New members logfile and journal.
11354 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
11355 grub_fshelp_map_block to get real block number.
11356 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
11357 number.
11358 (grub_ext2_read_inode): Likewise.
11359 (grub_ext3_get_journal): New function.
11360 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
11361 (grub_ext2_close): Release memory used by journal.
11362
11363 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
11364 (REISERFS_MAGIC_DESC_BLOCK): New macro.
11365 (grub_reiserfs_transaction_header): Renamed to
11366 grub_reiserfs_description_block, replace field data with real_blocks.
11367 (grub_reiserfs_commit_block): New structure.
11368 (grub_reiserfs_data): New member journal.
11369 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
11370 number.
11371 (grub_reiserfs_read_symlink): Likewise.
11372 (grub_reiserfs_iterate_dir): Likewise.
11373 (grub_reiserfs_open): Likewise.
11374 (grub_reiserfs_read): Likewise.
11375 (grub_reiserfs_get_journal): New function.
11376 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
11377 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
11378 using grub_reiserfs_get_journal.
11379 (grub_reiserfs_close): Release memory used by journal.
11380
11381 * fs/affs.c (grub_affs_read_block): Change block type to
11382 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
11383
11384 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
11385
11386 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
11387
11388 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
11389
11390 * fs/udf.c (grub_udf_read_block): Change block type to
11391 grub_disk_addr_t. Use type cast to avoid warning.
11392
11393 * fs/xfs.c (grub_xfs_read_block): Likewise.
11394
11395 2008-05-16 Christian Franke <franke@computer.org>
11396
11397 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
11398 to ensure that break with ESC will always work.
11399 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
11400 Remove ESC from keyboard queue.
11401
11402 2008-05-16 Christian Franke <franke@computer.org>
11403
11404 * util/biosdisk.c: [__CYGWIN__] Add includes.
11405 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
11406 (get_os_disk): Move variable declarations to OS specific
11407 parts to avoid warning.
11408 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
11409 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
11410 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
11411 Cygwin.
11412 * util/getroot.c: [__CYGWIN__] Add includes.
11413 (strip_extra_slashes): Fix "/" case.
11414 [__CYGWIN__] (get_win32_path): New function.
11415 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
11416 [__CYGWIN__] (find_root_device): Disable.
11417 [__CYGWIN__] (get_bootsec_serial): New function.
11418 [__CYGWIN__] (find_cygwin_root_device): Likewise.
11419 [__linux__] (grub_guess_root_device): Add early returns to simplify
11420 structure.
11421 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
11422 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
11423 check for Linux only.
11424
11425 2008-05-15 Bean <bean123ch@gmail.com>
11426
11427 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
11428 keyboard hang problem in apple's intel mac.
11429
11430 2008-05-09 Robert Millan <rmh@aybabtu.com>
11431
11432 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
11433 devices.
11434 * util/grub-mkdevicemap.c (get_virtio_disk_name)
11435 (make_device_map): Likewise.
11436 Reported by Aurelien Jarno <aurel32@debian.org>
11437
11438 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
11439
11440 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
11441 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
11442 (make_device_map): Output entries for xvd type disks.
11443
11444 2008-05-07 Robert Millan <rmh@aybabtu.com>
11445
11446 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
11447 devices.
11448 * util/grub-mkdevicemap.c (get_cciss_disk_name)
11449 (make_device_map): Likewise.
11450 Reported by Roland Dreier <rdreier@cisco.com>
11451
11452 2008-05-07 Robert Millan <rmh@aybabtu.com>
11453
11454 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
11455 grub_strstr() call. Correct a few mistakes in failure path handling.
11456
11457 2008-05-06 Robert Millan <rmh@aybabtu.com>
11458
11459 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
11460 Do not print a trailing slash (therefore, the root directory is an
11461 empty string).
11462 (convert_system_path_to_grub_path): Do not remove trailing slash
11463 from make_system_path_relative_to_its_root() output.
11464
11465 * util/i386/pc/grub-install.in: Add trailing slash to output from
11466 make_system_path_relative_to_its_root().
11467
11468 2008-05-06 Robert Millan <rmh@aybabtu.com>
11469
11470 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
11471 ensures that output lines aren't intermangled with those sent to
11472 stderr (via grub_util_info()).
11473 * util/grub-probe.c (grub_refresh): Likewise.
11474 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
11475
11476 2008-05-05 Christian Franke <franke@computer.org>
11477
11478 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
11479 Add Cygwin device names.
11480 (get_ide_disk_name) [__CYGWIN__]: Likewise.
11481 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
11482 (check_device): Return error instead of success on empty name.
11483 (make_device_map): Move label inside linux specific code to
11484 prevent compiler warning.
11485
11486 2008-04-30 Robert Millan <rmh@aybabtu.com>
11487
11488 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
11489 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
11490 first boot option.
11491 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
11492
11493 2008-04-29 Robert Millan <rmh@aybabtu.com>
11494
11495 * docs/grub.cfg: New file (example GRUB configuration).
11496
11497 2008-04-26 Robert Millan <rmh@aybabtu.com>
11498
11499 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
11500 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
11501 and `disk/ieee1275/nand.c'.
11502
11503 2008-04-25 Bean <bean123ch@gmail.com>
11504
11505 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
11506 i386-linuxbios.
11507
11508 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
11509 change the buffer size to 4096 for cdrom device.
11510
11511 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
11512 and nand.mod.
11513 (_linux_mod_SOURCES): New variable.
11514 (_linux_mod_CFLAGS): Likewise.
11515 (_linux_mod_LDFLAGS): Likewise.
11516 (linux_mod_SOURCES): Likewise.
11517 (linux_mod_CFLAGS): Likewise.
11518 (linux_mod_LDFLAGS): Likewise.
11519 (nand_mod_SOURCES): Likewise.
11520 (nand_mod_CFLAGS): Likewise.
11521 (nand_mod_LDFLAGS): Likewise.
11522
11523 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
11524 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
11525 type property. (nand device in olpc don't have this property)
11526
11527 * include/grub/disk.h (grub_disk_dev_id): New macro
11528 GRUB_DISK_DEVICE_NAND_ID.
11529
11530 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
11531 function prototype.
11532 (grub_rescue_cmd_initrd): Likewise.
11533
11534 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
11535 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
11536 ofw_cif_handler and ofw_idt, adjust padding number.
11537
11538 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
11539 GRUB_MACHINE_IEEE1275 is defined.
11540
11541 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
11542 Use NESTED_FUNC_ATTR attribute on the hook parameter.
11543
11544 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
11545 on nested function heap_init.
11546 (grub_upper_mem): New variable for i386-ieee1275.
11547 (grub_get_extended_memory): New function for i386-ieee1275.
11548 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
11549
11550 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
11551 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
11552 property.
11553
11554 * loader/i386/ieee1275/linux.c: New file.
11555
11556 * loader/i386/ieee1275/linux_normal.c: New file.
11557
11558 * disk/ieee1275/nand.c: New file.
11559
11560 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
11561
11562 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
11563 value.
11564 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
11565
11566 2008-04-18 Robert Millan <rmh@aybabtu.com>
11567
11568 Restructures early code path on ieee1275 to unify grub_main() as
11569 the first C function that is executed in every platform.
11570
11571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
11572 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
11573 cmain().
11574 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
11575 * kern/ieee1275/cmain.c (cmain): Rename to ...
11576 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
11577 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
11578 at the beginning.
11579
11580 2008-04-18 Robert Millan <rmh@aybabtu.com>
11581
11582 * util/update-grub.in: Fix syntax error when setting
11583 `GRUB_PRELOAD_MODULES'.
11584 Reported by Stephane Chazelas <stephane@artesyncp.com>
11585
11586 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
11587
11588 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
11589 section into account, newer toolchains generate unique build ids
11590 * configure.ac: remove the test for --build-id=none acceptance,
11591 we want build ids to be preserved
11592 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
11593 far from other sections don't cause the raw binary images grow
11594 size
11595
11596 2008-04-15 Robert Millan <rmh@aybabtu.com>
11597
11598 * disk/lvm.c: Update copyright year.
11599 * kern/misc.c: Likewise.
11600
11601 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
11602
11603 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
11604 there is no memory left for physical volume name.
11605
11606 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
11607
11608 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
11609 volume name mapping to support bigger than 9 character names properly.
11610
11611 2008-04-13 Robert Millan <rmh@aybabtu.com>
11612
11613 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
11614 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
11615
11616 2008-04-13 Christian Franke <franke@computer.org>
11617
11618 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
11619 to create a floppy emulation boot CD when non emulation mode
11620 does not work.
11621 Enable Joliet CD filesystem extension.
11622
11623 2008-04-13 Robert Millan <rmh@aybabtu.com>
11624
11625 * kern/misc.c (grub_strncat): Fix off-by-one error.
11626 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
11627
11628 * kern/env.c (grub_env_context_close): Clear current context, not
11629 previous one.
11630 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
11631
11632 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
11633
11634 2008-04-13 Robert Millan <rmh@aybabtu.com>
11635
11636 Improve robustness when handling LVM.
11637
11638 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
11639 (and leave `*p' unmodified).
11640 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
11641 through it.
11642 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
11643 iterating through it.
11644 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
11645 through it.
11646 (grub_lvm_scan_device): Check the return value (and fail gracefully
11647 when due) on each grub_lvm_getvalue() or grub_strstr() call.
11648 Don't assume `vg->pvs != NULL' when iterating through it.
11649
11650 2008-04-13 Robert Millan <rmh@aybabtu.com>
11651
11652 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
11653 * genmk.rb (partmap): New variable.
11654 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
11655 (#{partmap}): New target rule.
11656 * genpartmaplist.sh: New file.
11657 * Makefile.in (pkglib_DATA): Add partmap.lst.
11658 (partmap.lst): New target rule.
11659 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
11660 modules (including all partition maps), instead of preloading them.
11661
11662 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
11663
11664 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
11665 `linux-boot-prober' (if installed) to detect other operating
11666 systems which are installed on the computer and add them to
11667 the boot menu.
11668 * conf/common.rmk: Build and install 30_os-prober.
11669
11670 2008-04-12 Robert Millan <rmh@aybabtu.com>
11671
11672 * kern/powerpc/ieee1275/init.c: Move from here ...
11673 * kern/ieee1275/init.c: ... to here. Update all users.
11674
11675 * kern/powerpc/ieee1275/cmain.c: Move from here ...
11676 * kern/ieee1275/cmain.c: ... to here. Update all users.
11677
11678 * kern/powerpc/ieee1275/openfw.c: Move from here ...
11679 * kern/ieee1275/openfw.c: ... to here. Update all users.
11680
11681 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
11682 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
11683
11684 2008-04-10 Pavel Roskin <proski@gnu.org>
11685
11686 * configure.ac: Always use "_cv_" in cache variables for
11687 compatibility with Autoconf 2.62.
11688
11689 2008-04-07 Robert Millan <rmh@aybabtu.com>
11690
11691 Revert grub/machine/init.h addition by Pavel (since it breaks on
11692 i386-ieee1275 and others):
11693 * util/i386/pc/misc.c: Remove grub/machine/init.h.
11694 * util/powerpc/ieee1275/misc.c: Likewise.
11695
11696 2008-04-07 Robert Millan <rmh@aybabtu.com>
11697
11698 * util/grub-probe.c (probe): Improve error message.
11699
11700 2008-04-07 Robert Millan <rmh@aybabtu.com>
11701
11702 * util/biosdisk.c (read_device_map): Skip devices that don't exist
11703 (this prevents the presence of a bogus entry from ruining the whole
11704 thing).
11705
11706 2008-04-06 Pavel Roskin <proski@gnu.org>
11707
11708 * util/biosdisk.c: Include grub/util/biosdisk.h.
11709 * util/grub-fstest.c (execute_command): Make static.
11710 * util/grub-mkdevicemap.c (check_device): Likewise.
11711 * util/i386/pc/misc.c: Include grub/machine/init.h.
11712 * util/powerpc/ieee1275/misc.c: Likewise.
11713 * util/lvm.c: Include grub/util/lvm.h.
11714 * util/misc.c: Include grub/kernel.h, grub/misc.h and
11715 grub/cache.h.
11716 * util/raid.c: Include grub/util/raid.h.
11717 (grub_util_getdiskname): Make static.
11718
11719 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
11720 grub_hostfs_fini(), as they are called from grub_init_all() and
11721 grub_fini_all() respectively. This fixes an infinite loop in
11722 grub-fstest due to double registration of hostfs.
11723 Reported by Christian Franke <Christian.Franke@t-online.de>
11724
11725 2008-04-05 Pavel Roskin <proski@gnu.org>
11726
11727 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
11728 all 8 functions. Otherwise, probe function 0 only.
11729
11730 2008-04-04 Pavel Roskin <proski@gnu.org>
11731
11732 * commands/lspci.c (grub_lspci_iter): Print the bus number
11733 correctly.
11734
11735 * commands/lspci.c (grub_pci_classes): Fix typos.
11736 (grub_lspci_iter): Don't print func twice. Print vendor ID
11737 before device ID, as it's normally done.
11738
11739 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
11740 Fix signedness warnings.
11741 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
11742 Likewise.
11743 * util/ieee1275/get_disk_name.c: Include config.h so that
11744 _GNU_SOURCE is defined and getline() is declared. Mark an
11745 unused argument as such. Fix a signedness warning.
11746
11747 2008-04-02 Pavel Roskin <proski@gnu.org>
11748
11749 * genkernsyms.sh.in: Use more robust assignments for CC and
11750 srcdir. Quote srcdir.
11751 * gensymlist.sh.in: Likewise. Assert at the compile time that
11752 the symbol table is not empty.
11753
11754 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
11755 * fs/cpio.c (grub_cpio_read): Likewise.
11756
11757 2008-04-01 Pavel Roskin <proski@gnu.org>
11758
11759 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
11760 * disk/host.c (grub_host_open): Likewise.
11761 * disk/loopback.c (grub_loopback_open): Likewise.
11762 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
11763 disk->id as in disk/host.c, not a multi-character constant.
11764
11765 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
11766 later is obsolete, potentially dangerous and sets a bad example.
11767 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
11768 * util/misc.c (grub_util_get_image_size): Likewise.
11769
11770 * disk/loopback.c (options): Improve help for "--partitions".
11771
11772 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
11773 options to align them with the short options, e.g. "echo -e".
11774
11775 2008-03-31 Bean <bean123ch@gmail.com>
11776
11777 * video/reader/png.c (grub_png_data): New member is_16bit and
11778 image_data.
11779 (grub_png_decode_image_header): Detect 16 bit png image.
11780 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
11781 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
11782 (grub_video_reader_png): Release memory occupied by image_data.
11783
11784 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
11785 4096 bytes.
11786 (grub_nfs_mount): Skip the test for sector per cluster.
11787
11788 * include/grub/ntfs.h (MAX_SPC): Removed.
11789
11790 2008-03-31 Bean <bean123ch@gmail.com>
11791
11792 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
11793 (grub_probe_SOURCES): Add fs/afs.c.
11794 (grub_fstest_SOURCES): Likewise.
11795 (afs_mod_SOURCES): New variable.
11796 (afs_mod_CFLAGS): Likewise.
11797 (afs_mod_LDFLAGS): Likewise.
11798
11799 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
11800 (grub_emu_SOURCES): Likewise.
11801
11802 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11803
11804 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11805
11806 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11807
11808 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11809
11810 * fs/afs.c: New file.
11811
11812 2008-03-30 Pavel Roskin <proski@gnu.org>
11813
11814 * disk/host.c: Include grub/misc.h to fix a warning.
11815 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
11816 warnings about implicit declarations.
11817
11818 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
11819 variable.
11820 * include/grub/i386/loader.h: Change declaration of
11821 grub_linux_boot() to match what grub_loader_set() expects.
11822 * util/getroot.c (grub_guess_root_device): Return const char* to
11823 fix a warning.
11824 * util/grub-probe.c (probe): Fix a warning about uninitialized
11825 abstraction_name variable.
11826 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
11827 second argument as unused to fix a warning.
11828
11829 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
11830 missing grub_error() call.
11831
11832 * util/update-grub_lib.in: Define datarootdir, since Autoconf
11833 2.60 and newer uses it to define datadir.
11834
11835 * commands/sleep.c: Fix warning about implicit declaration.
11836 * disk/memdisk.c: Likewise.
11837 * loader/aout.c: Likewise.
11838 * loader/i386/bsd_normal.c: Likewise.
11839 * util/grub-probe.c: Likewise.
11840
11841 * commands/i386/cpuid.c (has_longmode): Make static.
11842 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
11843 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
11844
11845 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
11846 GDT. This is more robust, as %ds can change.
11847 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
11848 calling real_to_prot().
11849 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
11850
11851 2008-03-28 Pavel Roskin <proski@gnu.org>
11852
11853 * kern/i386/pc/startup.S: Assert that uncompressed functions
11854 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
11855 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
11856 code, as they push parts of the code (error handlers) beyond
11857 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
11858 code as correctness and size.
11859
11860 2008-03-28 Pavel Roskin <proski@gnu.org>
11861
11862 * kern/i386/pc/startup.S
11863 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
11864 data block address to the real mode, keep offset minimal. This
11865 works around a bug in AWARD BIOS on old Athlon systems, which
11866 makes CD detection hang.
11867
11868 2008-03-26 Pavel Roskin <proski@gnu.org>
11869
11870 * normal/color.c (grub_parse_color_name_pair): Make `name' a
11871 const.
11872 * include/grub/normal.h: Add grub_parse_color_name_pair()
11873 declaration.
11874
11875 2008-03-24 Bean <bean123ch@gmail.com>
11876
11877 * disk/i386/pc/biosdisk.c (cd_start): Removed.
11878 (cd_count): Removed.
11879 (cd_drive): New variable.
11880 (grub_biosdisk_get_drive): Don't check for (cdN) device.
11881 (grub_biosdisk_call_hook): Likewise.
11882 (grub_biosdisk_iterate): Change cdrom detection method.
11883 (grub_biosdisk_open): Replace cd_start with cd_drive.
11884 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
11885 detect cdrom device.
11886
11887 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
11888 Removed.
11889 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
11890 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
11891 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
11892 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
11893 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
11894 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
11895 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
11896 (grub_biosdisk_cdrp): New structure.
11897 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
11898
11899 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
11900
11901 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
11902 device.
11903
11904 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
11905 New function.
11906
11907 2008-03-20 Robert Millan <rmh@aybabtu.com>
11908
11909 Remove 2 TiB limit in ata.mod.
11910 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
11911 (grub_ata_dumpinfo): Print sector count with 0x%llx.
11912 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
11913 grub_uint64_t instead of grub_uint32_t.
11914
11915 2008-03-05 Bean <bean123ch@gmail.com>
11916
11917 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
11918 (grub_multiboot): Set boot device.
11919
11920 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
11921
11922 2008-03-02 Bean <bean123ch@gmail.com>
11923
11924 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
11925 symlink_buffer.
11926
11927 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
11928
11929 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
11930 texinfo.tex.
11931
11932 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
11933 modified.
11934
11935 * docs/fdl.texi: New file.
11936
11937 * docs/mdate-sh: New file. Copied from gnulib.
11938 * docs/texinfo.tex: Likewise.
11939
11940 * config.guess: Updated from gnulib.
11941 * install-sh: Likewise.
11942
11943 2008-02-28 Robert Millan <rmh@aybabtu.com>
11944
11945 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
11946 (aout_mod_SOURCES): New variable.
11947 (aout_mod_CFLAGS): Likewise.
11948 (aout_mod_LDFLAGS): Likewise.
11949
11950 * conf/i386-ieee1275.rmk: Likewise.
11951
11952 2008-02-28 Robert Millan <rmh@aybabtu.com>
11953
11954 * util/update-grub.in: Reorganise terminal validity check. Accept
11955 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
11956 Based on suggestion by Franklin PIAT.
11957
11958 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
11959
11960 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
11961 function.
11962 * util/getroot.c (grub_util_check_block_device): New function that
11963 returns the given argument if it is a block device and returns NULL else.
11964 * util/grub-probe.c (argument_is_device): New variable.
11965 (probe): Promote device_name from a variable to an argument. Receive
11966 device_name from grub_util_check_block_device() if path is NULL and from
11967 grub_guess_root_device() else. Do not free() device_name anymore.
11968 (options): Introduce new parameter '-d, --device'.
11969 (main): Add description of the new parameter to the help screen.
11970 Rename path variable to argument. Set argument_is_device if the '-d'
11971 option is given. Pass argument to probe() depending on
11972 argument_is_device.
11973
11974 2008-02-24 Bean <bean123ch@gmail.com>
11975
11976 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
11977 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
11978 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
11979 (GRUB_ISO9660_VOLDESC_PART): Likewise.
11980 (GRUB_ISO9660_VOLDESC_END): Likewise.
11981 (grub_iso9660_primary_voldesc): New member escape.
11982 (grub_iso9660_data): New member joliet.
11983 (grub_iso9660_convert_string): New function.
11984 (grub_iso9660_mount): Detect joliet extension.
11985 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
11986 (grub_iso9660_iso9660_label): Likewise.
11987
11988 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
11989 (grub_setup_SOURCES): Add fs/udf.c.
11990 (grub_fstest_SOURCES): Likewise.
11991 (udf_mod_SOURCES): New variable.
11992 (udf_mod_CFLAGS): Likewise.
11993 (udf_mod_LDFLAGS): Likewise.
11994
11995 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
11996 (grub_emu_SOURCES): Likewise.
11997
11998 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11999
12000 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12001
12002 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12003
12004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12005
12006 * fs/udf.c: New file.
12007
12008 2008-02-24 Robert Millan <rmh@aybabtu.com>
12009
12010 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
12011 (normal/lexer.c_DEPENDENCIES): New variables.
12012 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
12013 (normal/lexer.c_DEPENDENCIES): Likewise.
12014 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
12015 (normal/lexer.c_DEPENDENCIES): Likewise.
12016 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
12017 (normal/lexer.c_DEPENDENCIES): Likewise.
12018 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
12019 (normal/lexer.c_DEPENDENCIES): Likewise.
12020 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
12021 (normal/lexer.c_DEPENDENCIES): Likewise.
12022
12023 2008-02-23 Robert Millan <rmh@aybabtu.com>
12024
12025 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
12026 since they were intended to be in hex. This didn't break previously
12027 because of a bug in gpt_partition_map_iterate() (see below).
12028
12029 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
12030 when checking the validity of GPT header.
12031 Remove `partno', since it always provides the same information as `i'.
12032
12033 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
12034
12035 * include/grub/efi/time.h: Fix a wrong comment.
12036
12037 2008-02-19 Pavel Roskin <proski@gnu.org>
12038
12039 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
12040 message.
12041
12042 2008-02-19 Bean <bean123ch@gmail.com>
12043
12044 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
12045 (aout_mod_SOURCES): New variable.
12046 (aout_mod_CFLAGS): Likewise.
12047 (aout_mod_LDFLAGS): Likewise.
12048 (_bsd_mod_SOURCES): New variable.
12049 (_bsd_mod_CFLAGS): Likewise.
12050 (_bsd_mod_LDFLAGS): Likewise.
12051 (bsd_mod_SOURCES): New variable.
12052 (bsd_mod_CFLAGS): Likewise.
12053 (bsd_mod_LDFLAGS): Likewise.
12054
12055 * include/grub/aout.h: New file.
12056
12057 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
12058
12059 * include/grub/i386/bsd.h: New file.
12060
12061 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
12062 to make it public.
12063
12064 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
12065 function is called, so that it's possible to change it inside the hook.
12066 (grub_elf64_load): Likewise.
12067 (grub_elf_file): Don't close the file if elf header is not found.
12068 (grub_elf_close): Close the file if grub_elf_file fails (The new
12069 grub_elf_file won't close it).
12070 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
12071 (grub_elf64_size): Likewise.
12072
12073 * kern/i386/loader.S (grub_unix_real_boot): New function.
12074
12075 * loader/aout.c: New file.
12076
12077 * loader/i386/bsd.c: New file.
12078
12079 * loader/i386/bsd_normal.c: New file.
12080
12081 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
12082
12083 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
12084 can test other formats.
12085
12086 2008-02-19 Robert Millan <rmh@aybabtu.com>
12087
12088 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
12089 (grub_gpt_partition_type_empty): Redefine with macro from
12090 `<grub/gpt_partition.h>'.
12091 (gpt_partition_map_iterate): Adjust partition type comparison.
12092
12093 Export `entry' as partmap-specific `part.data' struct.
12094 (grub_gpt_header, grub_gpt_partentry): Move from here ...
12095
12096 * include/grub/gpt_partition.h (grub_gpt_header)
12097 (grub_gpt_partentry): ... to here (new file).
12098
12099 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
12100
12101 (grub_gpt_partition_type_bios_boot): New const variable, defined
12102 with macro from `<grub/gpt_partition.h>'.
12103
12104 (setup): Replace `first_start' with `embed_region', which keeps
12105 track of the embed region (and is partmap-agnostic).
12106
12107 Replace find_first_partition_start() with find_usable_region(),
12108 which finds a usable region for embedding using partmap-specific
12109 knowledge (supports PC/MSDOS and GPT).
12110
12111 Fix all assumptions that the embed region start at sector 1, using
12112 `embed_region.start' from now on. Similarly, use `embed_region.end'
12113 rather than `first_start' to calculate available size.
12114
12115 In grub_util_info() message, replace "into after the MBR" with an
12116 indication of the specific sector our embed region starts at.
12117
12118 2008-02-19 Robert Millan <rmh@aybabtu.com>
12119
12120 * DISTLIST: Replace `commands/ieee1275/halt.c' and
12121 `commands/ieee1275/reboot.c' with `commands/halt.c' and
12122 `commands/reboot.c'.
12123 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
12124 (halt_mod_SOURCES): Likewise.
12125 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
12126 (halt_mod_SOURCES): Likewise.
12127
12128 2008-02-17 Christian Franke <franke@computer.org>
12129
12130 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
12131
12132 2008-02-17 Robert Millan <rmh@aybabtu.com>
12133
12134 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
12135 set `first_start' to 0 for non-PC/MSDOS partition maps.
12136
12137 2008-02-16 Robert Millan <rmh@aybabtu.com>
12138
12139 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
12140 do not assume partition map is PC/MSDOS before performing checks that
12141 are specific to that layout.
12142
12143 2008-02-13 Robert Millan <rmh@aybabtu.com>
12144
12145 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
12146 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
12147 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
12148
12149 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
12150
12151 * configure.ac: Only a cosmetic change on the handling of
12152 -fno-stack-protector.
12153
12154 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
12155
12156 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
12157 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
12158 reboot.c.
12159 (grub_install_SOURCES): Add halt.mod and reboot.mod.
12160 (halt_mod_SOURCES): New variable.
12161 (halt_mod_CFLAGS): Likewise.
12162 (halt_mod_LDFLAGS): Likewise.
12163 (reboot_mod_SOURCES): Likewise.
12164 (reboot_mod_CFLAGS): Likewise.
12165 (reboot_mod_LDFLAGS): Likewise.
12166
12167 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
12168 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
12169 reboot.c.
12170 (halt_mod_SOURCES): Likewise.
12171 (reboot_mod_SOURCES): Likewise.
12172
12173 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
12174 commands/i386/pc/reboot.c by commands/reboot.c.
12175 (reboot_mod_SOURCES): Likewise.
12176
12177 * commands/i386/pc/reboot.c: merge this file ...
12178
12179 * commands/ieee1275/reboot.c: ... and this file ...
12180
12181 * commands/reboot.c: ... to this file.
12182 Add some precompiler directive to include the correct header for
12183 each machine.
12184
12185 * commands/ieee1275/halt.c: move this file ...
12186
12187 * commands/halt.c: ... to here.
12188 Add some precompiler directive to include the correct header for
12189 each machine.
12190
12191 * include/grub/efi/efi.h (grub_reboot): New function declaration.
12192 (grub_halt): Likewise.
12193
12194 * kern/efi/efi.c (grub_reboot): New function.
12195 (grub_halt): Likewise.
12196
12197 2008-02-12 Robert Millan <rmh@aybabtu.com>
12198
12199 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
12200 /dev (like it is done for /dev/mapper). This doesn't provide support
12201 for EVMS, but at least it is now easy to identify the problem when it
12202 arises.
12203
12204 2008-02-11 Robert Millan <rmh@aybabtu.com>
12205
12206 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
12207 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
12208 comparing it with -1, not 0.
12209
12210 2008-02-10 Robert Millan <rmh@aybabtu.com>
12211
12212 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
12213 `disk/lvm.c'.
12214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12215 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12216
12217 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
12218 `disk/lvm.c' to the end of the list.
12219 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12220 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12221
12222 2008-02-10 Robert Millan <rmh@aybabtu.com>
12223
12224 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
12225 grub_print_error() instead. This will let user know why we're entering
12226 rescue mode.
12227 Based on suggestions from Sam Morris.
12228
12229 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
12230
12231 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
12232 on remaining N args, instead of "--" arg N times.
12233
12234 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
12235
12236 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
12237 (fill_with_default_glyph): Changed to use unknown_glyph for fill
12238 pattern for unknown glyphs.
12239
12240 2008-02-09 Robert Millan <rmh@aybabtu.com>
12241
12242 * configure.ac: Probe for `help2man'.
12243 * Makefile.in (builddir): New variable.
12244 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
12245 or otherwise add a few flags/options to it.
12246 (install-local): For every executable utility or script that is
12247 installed, invoke $(HELP2MAN) to install a manpage based on --help
12248 output.
12249
12250 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
12251 that it doesn't prevent --help from working in build tree.
12252
12253 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
12254 with `bug-grub@gnu.org'.
12255 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
12256 * util/update-grub.in (usage): New function.
12257 Implement proper argument check, with support for --help and --version
12258 (as well as existing -y).
12259
12260 2008-02-09 Christian Franke <franke@computer.org>
12261
12262 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
12263 avoid overwriting previous output.
12264 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
12265
12266 2008-02-09 Robert Millan <rmh@aybabtu.com>
12267
12268 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
12269 drawing the menu.
12270
12271 2008-02-09 Robert Millan <rmh@aybabtu.com>
12272
12273 * commands/sleep.c: New file.
12274 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
12275 (sleep_mod_SOURCES): New variable.
12276 (sleep_mod_CFLAGS): Likewise.
12277 (sleep_mod_LDFLAGS): Likewise.
12278
12279 2008-02-09 Robert Millan <rmh@aybabtu.com>
12280
12281 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
12282 situations in which we can deduce the RAID size and the superblock
12283 doesn't match it.
12284
12285 2008-02-09 Robert Millan <rmh@aybabtu.com>
12286
12287 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
12288 and return a grub_diskmemberlist_t composed of LVM physical volumes.
12289 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
12290
12291 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
12292 and return a grub_diskmemberlist_t composed of physical array members.
12293 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
12294
12295 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
12296 prototype.
12297 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
12298 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
12299 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
12300
12301 * util/grub-probe.c (probe): Move partmap probing code from here ...
12302 (probe_partmap): ... to here.
12303 (probe): Use probe_partmap() once for the disk we're probing, and
12304 additionally, when such disk contains a memberlist() struct member,
12305 once for each disk that is contained in the structure returned by
12306 memberlist().
12307
12308 2008-02-09 Robert Millan <rmh@aybabtu.com>
12309
12310 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
12311 environment variable to 'all' in order to obtain debug output from
12312 non-util/ code.
12313 * util/i386/pc/grub-setup.c (main): Likewise.
12314
12315 2008-02-08 Robert Millan <rmh@aybabtu.com>
12316
12317 * disk/raid.c (grub_raid_scan_device): Check for
12318 `array->device[sb.this_disk.number]' rather than for
12319 `array->device[sb.this_disk.number]->name', since the latter is not
12320 guaranteed to be accessible.
12321
12322 2008-02-08 Robert Millan <rmh@aybabtu.com>
12323
12324 * disk/raid.c: Update copyright.
12325 * fs/cpio.c: Likewise.
12326 * include/grub/raid.h: Likewise.
12327 * loader/i386/pc/multiboot.c: Likewise.
12328 * util/hostfs.c: Likewise.
12329
12330 2008-02-08 Robert Millan <rmh@aybabtu.com>
12331
12332 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
12333 to a grub_disk_t array.
12334 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
12335 `device[x]'.
12336 (grub_raid_scan_device): Replace `device[x].name' accesses with
12337 `device[x]->name'. Simplify initialization of `array->device[x]'.
12338
12339 2008-02-08 Robert Millan <rmh@aybabtu.com>
12340
12341 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
12342 grub_dprintf() calls.
12343 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
12344 error message.
12345
12346 2008-02-07 Christian Franke <franke@computer.org>
12347
12348 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
12349 instead of fseek and ftell to support large files.
12350 (grub_hostfs_read): Likewise.
12351
12352 2008-02-07 Robert Millan <rmh@aybabtu.com>
12353
12354 Patch from Jeroen Dekkers.
12355 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
12356 failure, since successfully reading all array members might not be
12357 required.
12358
12359 2008-02-06 Robert Millan <rmh@aybabtu.com>
12360
12361 * util/grub-probe.c (probe): Simplify partmap probing (with the
12362 assumption that the first word up to the underscore equals to
12363 the module name).
12364
12365 2008-02-06 Christian Franke <franke@computer.org>
12366
12367 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
12368 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
12369 last block of a cpio or tar stream.
12370 Check for "TRAILER!!!" instead of any empty data
12371 block to detect last block of a cpio stream.
12372 (grub_cpio_dir): Fix constness of variable np.
12373 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
12374 cpio or tar trailer is detected. This fixes a crash
12375 on open of a non existing file.
12376
12377 2008-02-05 Bean <bean123ch@gmail.com>
12378
12379 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
12380 address of entry.
12381 (grub_multiboot_load_elf64): Likewise.
12382 (grub_multiboot): Initialize mbi structure.
12383
12384 * util/grub-fstest.c: Don't include unused header file script.h.
12385
12386 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
12387 of file.
12388 (grub_fstest_SOURCES): Likewise.
12389
12390 2008-02-05 Robert Millan <rmh@aybabtu.com>
12391
12392 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
12393 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
12394 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
12395 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
12396
12397 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
12398 (translation_table): Replace hardcoded values with macros
12399 provided by `<grub/term.h>'.
12400
12401 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
12402 (keyboard_map): Correct/add a few values, with macros provided
12403 by `<grub/term.h>'.
12404 (keyboard_map_shift): Zero values that don't differ from their
12405 `keyboard_map' equivalents.
12406 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
12407 Discard the second scan code that is always sent by Caps lock.
12408 Only use `keyboard_map_shift' when it provides a non-zero value,
12409 otherwise fallback to `keyboard_map'.
12410
12411 2008-02-04 Bean <bean123ch@gmail.com>
12412
12413 * Makefile.in (enable_grub_fstest): New variable.
12414
12415 * conf/common.rmk (grub_fstest_init.lst): New rule.
12416 (grub_fstest_init.h): Likewise.
12417 (grub_fstest_init.c): Likewise.
12418 (util/grub-fstest.c_DEPENDENCIES): New variable.
12419 (grub_fstest_SOURCES): Likewise.
12420
12421 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
12422
12423 * util/grub-fstest.c: New file.
12424
12425 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12426
12427 Make grub-setup handle a separate root device.
12428
12429 * util/i386/pc/grub-setup.c (setup): Always open the root device,
12430 so that the root device can be compared with the destination
12431 device.
12432 When embedding the core image, if the root and destination devices
12433 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
12434 0xFF.
12435 When not embedding, set ROOT_DRIVE to 0xFF.
12436
12437 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12438
12439 Add support for having a grub directory in a different drive. This
12440 is still only the data handling part.
12441
12442 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
12443 (codestart): Save %dh in GRUB_ROOT_DRIVE.
12444 (grub_root_drive): New variable.
12445
12446 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
12447 instead of GRUB_BOOT_DRIVE to construct a device name. Set
12448 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
12449 as it was.
12450
12451 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
12452
12453 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
12454 macro.
12455 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
12456
12457 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
12458 is bogus, because PXE booting does not specify any drive
12459 correctly.
12460
12461 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
12462 am not sure if this is really correct.
12463
12464 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
12465 is always identical to the boot drive when booting from a CD.
12466
12467 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
12468 longer.
12469 (root_drive): New variable.
12470 (real_start): Unconditionally set %dh to ROOT_DRIVE.
12471 (setup_sectors): Push %dx right after popping it, because %dh will
12472 be modified later.
12473 (copy_buffer): Restore %dx.
12474
12475 2008-02-03 Robert Millan <rmh@aybabtu.com>
12476
12477 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
12478 use `cdboot.img' for cdrom images.
12479
12480 2008-02-03 Robert Millan <rmh@aybabtu.com>
12481
12482 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
12483 only setup gfxterm when `font' command has succeeded.
12484
12485 2008-02-03 Robert Millan <rmh@aybabtu.com>
12486
12487 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
12488 (grub_rescue_cmd_multiboot_loader)
12489 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
12490
12491 2008-02-03 Pavel Roskin <proski@gnu.org>
12492
12493 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
12494 %edx and %esi from stack only after grub_gate_a20() is called.
12495 grub_gate_a20() clobbers %edx.
12496
12497 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12498
12499 * configure.ac (AC_INIT): Bumped to 1.96.
12500
12501 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
12502 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
12503 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
12504 video/readers/png.c.
12505
12506 2008-02-03 Bean <bean123ch@gmail.com>
12507
12508 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
12509 (cdboot_img_SOURCES): New variable.
12510 (cdboot_img_ASFLAGS): New variable.
12511 (cdboot_img_LDFLAGS): New variable.
12512
12513 * boot/i386/pc/cdboot.S: New file.
12514
12515 * disk/i386/pc/biosdisk.c (cd_start): New variable.
12516 (cd_count): Likewise.
12517 (grub_biosdisk_get_drive): Add support for cd device.
12518 (grub_biosdisk_call_hook): Likewise.
12519 (grub_biosdisk_iterate): Likewise.
12520 (grub_biosdisk_open): Likewise.
12521 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
12522 (grub_biosdisk_rw): Support reading from cd device.
12523 (GRUB_MOD_INIT): Iterate cd devices.
12524
12525 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
12526 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
12527 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
12528
12529 * kern/i386/pc/init.c (make_install_device): Check for cd device.
12530
12531 2008-02-02 Robert Millan <rmh@aybabtu.com>
12532
12533 * commands/read.c: New file.
12534 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
12535 (read_mod_SOURCES): New variable.
12536 (read_mod_CFLAGS): Likewise.
12537 (read_mod_LDFLAGS): Likewise.
12538
12539 2008-02-02 Robert Millan <rmh@aybabtu.com>
12540
12541 * normal/main.c (grub_normal_execute): Check for `menu->size' when
12542 determining whether menu has to be displayed.
12543
12544 2008-02-02 Marco Gerards <marco@gnu.org>
12545
12546 * bus/pci.c: New file.
12547
12548 * include/grub/pci.h: Likewise.
12549
12550 * include/grub/i386/pc/pci.h: Likewise.
12551
12552 * commands/lspci.c: Likewise.
12553
12554 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
12555 `lspci.mod'.
12556 (pci_mod_SOURCES): New variable.
12557 (pci_mod_CFLAGS): Likewise.
12558 (pci_mod_LDFLAGS): Likewise.
12559 (lspci_mod_SOURCES): Likewise.
12560 (lspci_mod_CFLAGS): Likewise.
12561 (lspci_mod_LDFLAGS): Likewise.
12562
12563 2008-02-02 Bean <bean123ch@gmail.com>
12564
12565 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
12566 (grub_ufs_get_file_block): Fix indirect block calculation problem.
12567
12568 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
12569 (grub_xfs_btree_node): New structure.
12570 (grub_xfs_btree_root): New structure.
12571 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
12572 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
12573 (GRUB_XFS_EXTENT_BLOCK): Likewise.
12574 (GRUB_XFS_EXTENT_SIZE): Likewise.
12575 (grub_xfs_read_block): Support btree format type.
12576 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
12577 Use directory block as basic unit.
12578
12579 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
12580
12581 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
12582 __attribute__ ((__regparm__ (1))).
12583
12584 2008-02-01 Robert Millan <rmh@aybabtu.com>
12585
12586 Correct a mistake in previous commit.
12587
12588 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
12589 top.
12590 (normal/command.c_DEPENDENCIES): New variable.
12591
12592 2008-02-01 Robert Millan <rmh@aybabtu.com>
12593
12594 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
12595 top.
12596 (normal/command.c_DEPENDENCIES): New variable.
12597 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
12598 * conf/i386-ieee1275.rmk: Likewise.
12599 * conf/i386-linuxbios.rmk: Likewise.
12600 * conf/i386-pc.rmk: Likewise.
12601 * conf/sparc64-ieee1275.rmk: Likewise.
12602 * conf/powerpc-ieee1275.rmk: Likewise.
12603 (grub_emu_SOURCES): Add `fs/fshelp.c'.
12604
12605 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
12606
12607 2008-02-01 Robert Millan <rmh@aybabtu.com>
12608
12609 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
12610 call at beginning of function.
12611
12612 2008-01-31 Pavel Roskin <proski@gnu.org>
12613
12614 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
12615 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
12616 (grub_mkrescue_SOURCES): Likewise.
12617 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
12618
12619 2008-01-30 Robert Millan <rmh@aybabtu.com>
12620
12621 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
12622 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
12623 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
12624 (grub_probe_SOURCES): ... to here.
12625
12626 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
12627 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
12628 * conf/i386-ieee1275.rmk: Likewise.
12629 * conf/i386-linuxbios.rmk: Likewise.
12630 * conf/powerpc-ieee1275.rmk: Likewise.
12631
12632 2008-01-30 Tristan Gingold <gingold@free.fr>
12633
12634 * kern/rescue.c: Silently accept empty lines.
12635
12636 2008-01-29 Bean <bean123ch@gmail.com>
12637
12638 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
12639 (real_code_2): Code cleanup and change comment style.
12640 (move_memory): Avoid using 32-bit address mode.
12641
12642 2008-01-29 Bean <bean123ch@gmail.com>
12643
12644 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
12645 (png_mod_SOURCES): New variable.
12646 (png_mod_CFLAGS): Likewise.
12647 (png_mod_LDFLAGS): Likewise.
12648
12649 * video/readers/png.c: New file.
12650
12651 2008-01-28 Robert Millan <rmh@aybabtu.com>
12652
12653 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
12654 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
12655 `ifndef GRUB_MOD_GAP' hack.
12656 * util/elf/grub-mkimage.c (add_segments): Likewise.
12657
12658 2008-01-27 Robert Millan <rmh@aybabtu.com>
12659
12660 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
12661 `GRUB_MOD_GAP' for platforms in which it's not defined.
12662 * util/elf/grub-mkimage.c (add_segments): Likewise.
12663
12664 2008-01-27 Robert Millan <rmh@aybabtu.com>
12665
12666 Get grub-emu to build again (including parallel builds).
12667
12668 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
12669 Split into ...
12670 (util/grub-emu.c_DEPENDENCIES): ... this, ...
12671 (normal/execute.c_DEPENDENCIES): ... this, ...
12672 (grub-emu_DEPENDENCIES): ... and this.
12673
12674 * conf/i386-efi.rmk: Likewise.
12675 * conf/i386-linuxbios.rmk: Likewise.
12676 * conf/i386-ieee1275.rmk: Likewise.
12677 * conf/powerpc-ieee1275.rmk: Likewise.
12678 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
12679
12680 2008-01-27 Robert Millan <rmh@aybabtu.com>
12681
12682 * NEWS: Add a few items.
12683
12684 2008-01-27 Robert Millan <rmh@aybabtu.com>
12685
12686 Fix parallel builds with grub-emu. Based on earlier commit for
12687 grub-probe and grub-setup.
12688
12689 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12690 (util/grub-emu.c_DEPENDENCIES): ... this.
12691 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12692 (util/grub-emu.c_DEPENDENCIES): ... this.
12693 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12694 (util/grub-emu.c_DEPENDENCIES): ... this.
12695 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12696 (util/grub-emu.c_DEPENDENCIES): ... this.
12697 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12698 (util/grub-emu.c_DEPENDENCIES): ... this.
12699
12700 2008-01-27 Pavel Roskin <proski@gnu.org>
12701
12702 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
12703 to create a gap between _end and the modules added to the image
12704 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
12705 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
12706 * util/elf/grub-mkimage.c (add_segments): Likewise.
12707
12708 2008-01-26 Pavel Roskin <proski@gnu.org>
12709
12710 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
12711 just return an error.
12712
12713 2008-01-26 Bean <bean123ch@gmail.com>
12714
12715 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
12716 (grub_reiserfs_get_item): Save offset of the next item.
12717 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
12718
12719 2008-01-25 Robert Millan <rmh@aybabtu.com>
12720
12721 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
12722 make all filesystem sources appear together (possibly fixing omissions
12723 while at it).
12724 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12725 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12726 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12727 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12728
12729 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
12730 add `kern/file.c'.
12731 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
12732 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12733 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
12734 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12735
12736 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
12737 (probe): Add a sanity check to make sure of our ability to read
12738 requested files when probing for filesystem type.
12739
12740 * genmk.rb: Update copyright year (2007).
12741
12742 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
12743 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
12744 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
12745 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
12746 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
12747 : Remove function prototypes.
12748
12749 2008-01-25 Robert Millan <rmh@aybabtu.com>
12750
12751 Revert my previous commits (based on wrong assumption of how grub_errno
12752 works).
12753
12754 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
12755 * kern/file.c (grub_file_open): Likewise.
12756
12757 2008-01-24 Pavel Roskin <proski@gnu.org>
12758
12759 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
12760 that hang if GRUB tries to setup colors.
12761 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
12762 colors for firmwares that don't support it.
12763 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
12764 Recognize Open Hack'Ware, set flags to work around its
12765 limitations.
12766
12767 2008-01-24 Robert Millan <rmh@aybabtu.com>
12768
12769 * kern/file.c (grub_file_open): Do not account previous failures of
12770 unrelated functions when grub_errno is checked for.
12771 Reported by Oleg Strikov.
12772
12773 2008-01-24 Bean <bean123ch@gmail.com>
12774
12775 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
12776 (grub_ufs_sblock): New member volume name.
12777 (grub_ufs_find_file): Fix string copy bug.
12778 (grub_ufs_label): Implement this function properly.
12779
12780 * fs/hfs.c (grub_hfs_cnid_type): New enum.
12781 (grub_hfs_iterate_records): Use the correct file number for extents
12782 and catalog file. Fix problem in next index calculation.
12783 (grub_hfs_find_node): Replace recursive function call with loop.
12784 (grub_hfs_iterate_dir): Replace recursive function call with loop.
12785
12786 2008-01-23 Robert Millan <rmh@aybabtu.com>
12787
12788 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
12789 `<grub/symbol.h>' and `<grub/multiboot.h>'.
12790 (grub_multiboot2_real_boot): New function prototype.
12791
12792 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
12793 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
12794
12795 * kern/i386/ieee1275/init.c (grub_os_area_addr)
12796 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
12797
12798 2008-01-23 Robert Millan <rmh@aybabtu.com>
12799
12800 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
12801 #ifdef'ed out grub_printf().
12802
12803 2008-01-23 Robert Millan <rmh@aybabtu.com>
12804
12805 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
12806 grub_dprintf calls, since they make "debug=all" mode unusable.
12807 (grub_console_checkkey): Likewise.
12808
12809 2008-01-23 Robert Millan <rmh@aybabtu.com>
12810
12811 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
12812 `term/i386/pc/at_keyboard.c'.
12813 (pkglib_MODULES): Add `serial.mod'.
12814 (serial_mod_SOURCES): New variable.
12815 (serial_mod_CFLAGS): Likewise.
12816 (serial_mod_LDFLAGS): Likewise.
12817
12818 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
12819 `<grub/powerpc/ieee1275/console.h>'.
12820 (grub_keyboard_controller_init): New function prototype.
12821 (grub_console_checkkey): Likewise.
12822 (grub_console_getkey): Likewise.
12823
12824 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
12825 keyboard on i386.
12826
12827 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
12828 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
12829
12830 2008-01-23 Robert Millan <rmh@aybabtu.com>
12831
12832 * kern/i386/pc/init.c (make_install_device): When memdisk image is
12833 present, "(memdisk)/boot/grub" becomes the default prefix.
12834
12835 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
12836 a memdisk tarball with all the modules. Add --overlay=DIR option that
12837 allows users to overlay additional files into the image.
12838
12839 2008-01-23 Robert Millan <rmh@aybabtu.com>
12840
12841 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
12842 and `machine/memory.h'.
12843 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
12844 (_multiboot_mod_SOURCES): New variable.
12845 (_multiboot_mod_CFLAGS): Likewise.
12846 (_multiboot_mod_LDFLAGS): Likewise.
12847 (multiboot_mod_SOURCES): Likewise.
12848 (multiboot_mod_CFLAGS): Likewise.
12849 (multiboot_mod_LDFLAGS): Likewise.
12850
12851 * include/grub/i386/ieee1275/loader.h: New file.
12852
12853 * include/grub/i386/ieee1275/machine.h: Likewise.
12854
12855 * include/grub/i386/ieee1275/memory.h: Likewise.
12856
12857 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
12858 variable declaration.
12859 (grub_os_area_size): Likewise.
12860
12861 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
12862 (grub_lower_mem, grub_upper_mem): New variables.
12863 (grub_stop_floppy): New function (just to make
12864 grub_multiboot2_real_boot() happy).
12865
12866 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
12867 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
12868 (grub_stop): New function.
12869 Include `"../realmode.S"' and `"../loader.S"'.
12870
12871 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
12872 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
12873
12874 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
12875 rely on grub_multiboot2_real_boot() for final boot.
12876
12877 2008-01-22 Robert Millan <rmh@aybabtu.com>
12878
12879 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
12880 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
12881 device that doesn't look like an SD card.
12882 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12883 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
12884 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
12885 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
12886 found.
12887
12888 2008-01-22 Robert Millan <rmh@aybabtu.com>
12889
12890 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
12891 avoid claiming over our own code.
12892
12893 2008-01-22 Bean <bean123ch@gmail.com>
12894
12895 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
12896 (jpeg_mod_SOURCES): New variable.
12897 (jpeg_mod_CFLAGS): Likewise.
12898 (jpeg_mod_LDFLAGS): Likewise.
12899
12900 * video/readers/jpeg.c : New file.
12901
12902 2008-01-22 Bean <bean123ch@gmail.com>
12903
12904 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
12905 there are no more items.
12906
12907 2008-01-21 Robert Millan <rmh@aybabtu.com>
12908
12909 * kern/mm.c (grub_mm_init_region): Improve debug message.
12910
12911 2008-01-21 Robert Millan <rmh@aybabtu.com>
12912
12913 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
12914 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
12915 address.
12916 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
12917 a C macro.
12918 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
12919 Indicates start of upper memory.
12920 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
12921 (generate_image): Abort when image size is big enough to corrupt
12922 upper memory.
12923
12924 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
12925 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
12926 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12927 instead of hardcoding 0xA0000.
12928 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
12929 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12930 instead of hardcoding 0xA0000.
12931
12932 2008-01-21 Robert Millan <rmh@aybabtu.com>
12933
12934 * disk/memdisk.c (memdisk_size): New variable.
12935 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
12936 `memdisk_size'.
12937 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
12938 image to dynamic memory.
12939 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
12940 `memdisk_size'. Free memdisk block.
12941
12942 2008-01-21 Robert Millan <rmh@aybabtu.com>
12943
12944 Fix detection of very small filesystems (like tar).
12945
12946 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
12947 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
12948 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
12949 a problem with this disk).
12950
12951 2008-01-21 Robert Millan <rmh@aybabtu.com>
12952
12953 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
12954 on grub_biosdisk_rw_standard() error.
12955
12956 2008-01-21 Robert Millan <rmh@aybabtu.com>
12957
12958 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
12959 recent changes.
12960 * kern/elf.c: Likewise.
12961 * kern/ieee1275/ieee1275.c: Likewise.
12962 * kern/powerpc/ieee1275/openfw.c: Likewise.
12963 * term/ieee1275/ofconsole.c: Likewise.
12964
12965 2008-01-21 Robert Millan <rmh@aybabtu.com>
12966
12967 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
12968
12969 * include/grub/kernel.h (grub_arch_memdisk_addr)
12970 (grub_arch_memdisk_size): Moved from here ...
12971
12972 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
12973 (grub_arch_memdisk_size): ... to here.
12974
12975 2008-01-21 Robert Millan <rmh@aybabtu.com>
12976
12977 Mostly based on bugfix from Bean.
12978
12979 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
12980 attribute with hook() parameter.
12981 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
12982 declaration.
12983 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
12984 attribute with hook() parameter.
12985 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
12986 declaration.
12987
12988 2008-01-21 Robert Millan <rmh@aybabtu.com>
12989
12990 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
12991 (pkglib_MODULES): Add `memdisk.mod'.
12992 (memdisk_mod_SOURCES): New variable.
12993 (memdisk_mod_CFLAGS): Likewise.
12994 (memdisk_mod_LDFLAGS): Likewise.
12995
12996 * disk/memdisk.c: New file.
12997
12998 * include/grub/disk.h (grub_disk_dev_id): Add
12999 `GRUB_DISK_DEVICE_MEMDISK_ID'.
13000
13001 * include/grub/i386/pc/kernel.h
13002 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
13003 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
13004 (grub_kernel_image_size): New variable declaration.
13005 (grub_total_module_size): Likewise.
13006 (grub_memdisk_image_size): Likewise.
13007
13008 * include/grub/i386/pc/memory.h
13009 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
13010
13011 * include/grub/kernel.h: Include `<grub/symbol.h>'.
13012 (grub_arch_memdisk_addr): New variable declaration.
13013 (grub_arch_memdisk_size): Likewise.
13014
13015 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
13016 (grub_arch_memdisk_size): Likewise.
13017
13018 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
13019 (codestart): Replace hardcoded `0x100000' with
13020 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
13021
13022 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
13023 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
13024 not NULL, append the contents of the file it refers to, at the end of
13025 the compressed kernel image. Initialize `grub_memdisk_image_size'
13026 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
13027 (options): Add "memdisk"|'m' option.
13028 (main): Parse --memdisk|-m option, and pass user-provided path as
13029 parameter to generate_image().
13030
13031 2008-01-20 Robert Millan <rmh@aybabtu.com>
13032
13033 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
13034 grub_dprintf() calls from here ...
13035 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
13036
13037 2008-01-20 Robert Millan <rmh@aybabtu.com>
13038
13039 Fix detection of "real mode" when /options/real-mode? doesn't exist.
13040
13041 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
13042 declaration.
13043 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
13044 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
13045 `GRUB_IEEE1275_FLAG_REAL_MODE'.
13046 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
13047 property).
13048 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
13049 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
13050
13051 2008-01-19 Robert Millan <rmh@aybabtu.com>
13052
13053 Get rid of confusing function (superseded by
13054 `grub_ieee1275_get_integer_property')
13055 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
13056 prototype.
13057 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
13058 function.
13059 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
13060 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
13061 in native endianness from grub_ieee1275_get_integer_property().
13062
13063 2008-01-19 Robert Millan <rmh@aybabtu.com>
13064
13065 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
13066 command after "shut-down", since implementations differ on which
13067 the command for halt is.
13068
13069 2008-01-19 Robert Millan <rmh@aybabtu.com>
13070
13071 * include/grub/i386/linuxbios/console.h: Add header protection.
13072 (grub_keyboard_controller_init): New function prototype.
13073 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
13074 (KEYBOARD_COMMAND_READ): Likewise.
13075 (KEYBOARD_COMMAND_WRITE): Likewise.
13076 (KEYBOARD_SCANCODE_SET1): Likewise.
13077 (grub_keyboard_controller_write): New function.
13078 (grub_keyboard_controller_read): Likewise.
13079 (grub_keyboard_controller_init): Likewise.
13080
13081 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
13082 (grub_console_init): On coreboot/LinuxBIOS, call
13083 grub_keyboard_controller_init().
13084
13085 2008-01-19 Robert Millan <rmh@aybabtu.com>
13086
13087 PowerPC changes provided by Pavel Roskin.
13088
13089 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
13090 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
13091 don't rely on cmain() doing it.
13092 * kern/i386/ieee1275/startup.S (_start): Store %eax in
13093 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
13094
13095 2008-01-16 Robert Millan <rmh@aybabtu.com>
13096
13097 * include/grub/i386/linuxbios/memory.h
13098 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
13099 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
13100 receive `table_header' as argument. Instead, probe for it in the
13101 known memory ranges where it can be present.
13102 (grub_available_iterate): Do not pass a fixed `table_header' address
13103 to grub_linuxbios_table_iterate().
13104
13105 2008-01-15 Robert Millan <rmh@aybabtu.com>
13106
13107 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
13108 * conf/i386-ieee1275.rmk: New file.
13109 * include/grub/i386/ieee1275/console.h: Likewise.
13110 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
13111 * include/grub/i386/ieee1275/kernel.h: Likewise.
13112 * include/grub/i386/ieee1275/time.h: Likewise.
13113 * kern/i386/ieee1275/init.c: Likewise.
13114 * kern/i386/ieee1275/startup.S: Likewise.
13115
13116 2008-01-15 Robert Millan <rmh@aybabtu.com>
13117
13118 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
13119 when pointers are 32-bit (but still do set it to one when they are
13120 64-bit).
13121
13122 2008-01-15 Robert Millan <rmh@aybabtu.com>
13123
13124 * include/grub/ieee1275/ieee1275.h
13125 (grub_ieee1275_get_integer_property): New function prototype.
13126
13127 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
13128 (grub_ieee1275_get_integer_property): New function. Wraps around
13129 grub_ieee1275_get_property() to handle endianness.
13130
13131 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
13132 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
13133 where appropriate.
13134 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
13135 (grub_map): Likewise.
13136 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
13137
13138 2008-01-15 Bean <bean123ch@gmail.com>
13139
13140 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
13141 (grub_script_execute_cmdline): Reset grub_errno.
13142
13143 * normal/main.c (read_config_file): Reset grub_errno.
13144
13145 * normal/parse.y (script_init): New.
13146 (script): Move function and menuentry here.
13147 (delimiter): New.
13148 (command): Add delimiter at the end of command.
13149 (commands): Adjust to match the new command.
13150 (commandblock): Remove grub_script_lexer_record_start.
13151 (menuentry): Add grub_script_lexer_record_start, use the new commands.
13152 (if): Use the new commands.
13153
13154 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
13155
13156 2008-01-15 Robert Millan <rmh@aybabtu.com>
13157
13158 * normal/menu.c (run_menu): Move timeout message from here ...
13159 (print_timeout): ... to here.
13160 (run_menu): Use print_timeout() once during initial draw to print
13161 the whole message, and again in every clock tick to update only
13162 the number of seconds.
13163
13164 2008-01-15 Robert Millan <rmh@aybabtu.com>
13165
13166 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
13167 actual size of `available' from grub_ieee1275_get_property(), and
13168 restrict parsing to that bound.
13169
13170 2008-01-15 Christian Franke <franke@computer.org>
13171
13172 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
13173 (argp_program_version): Remove variable.
13174 (argp_program_bug_address): Likewise.
13175 (options): Convert from struct argp_option to struct option.
13176 (struct arguments): Remove.
13177 (parse_opt): Remove.
13178 (usage): New function.
13179 (main): Replace struct args members by simple variables.
13180 Replace argp_parse() by getopt_long().
13181 Add switch to evaluate options.
13182 Add missing "(...)" around root_dev in prefix string.
13183
13184 2008-01-14 Robert Millan <rmh@aybabtu.com>
13185
13186 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
13187 for grub_ieee1275_exit(), in order to improve portability.
13188
13189 2008-01-14 Robert Millan <rmh@aybabtu.com>
13190
13191 * util/grub.d/10_linux.in (prefix): Define.
13192 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
13193
13194 2008-01-13 Pavel Roskin <proski@gnu.org>
13195
13196 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
13197 grub_errno if no errors have been detected.
13198
13199 2008-01-12 Robert Millan <rmh@aybabtu.com>
13200
13201 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
13202 (grub_util_get_dev_abstraction): New function prototype.
13203
13204 * util/getroot.c: Include `<grub/util/getroot.h>'
13205 (grub_util_get_grub_dev): Move detection of abstraction type to ...
13206 (grub_util_get_dev_abstraction): ... here (new function).
13207
13208 * util/grub-probe.c: Convert PRINT_* to an enum. Add
13209 `PRINT_ABSTRACTION'.
13210 (probe): Probe for abstraction type when requested.
13211 (main): Understand `--target=abstraction'.
13212
13213 * util/i386/efi/grub-install.in: Add abstraction module to core
13214 image when it is found to be necessary.
13215 * util/i386/pc/grub-install.in: Likewise.
13216 * util/powerpc/ieee1275/grub-install.in: Likewise.
13217
13218 * util/update-grub_lib.in (font_path): Return system path without
13219 converting to GRUB path.
13220 * util/update-grub.in: Convert system path returned by font_path()
13221 to a GRUB path. Use `grub-probe -t abstraction' to determine what
13222 abstraction module is needed for loading fonts (if any). Export
13223 that as `GRUB_PRELOAD_MODULES'.
13224 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
13225 insmod commands).
13226
13227 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
13228
13229 Remove some unused code from reiserfs.
13230
13231 * fs/reiserfs.c (struct grub_reiserfs_key)
13232 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
13233 (struct grub_reiserfs_node_body): Removed.
13234 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
13235 Likewise.
13236 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
13237 Likewise.
13238 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
13239 Likewise.
13240 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
13241 Likewise.
13242 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
13243 Likewise.
13244 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
13245 Likewise.
13246 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
13247 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
13248 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
13249
13250 2008-01-10 Robert Millan <rmh@aybabtu.com>
13251
13252 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
13253 Determines if a file is garbage left by packaging systems, etc.
13254 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
13255 for processing /etc/grub.d scripts.
13256 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
13257 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
13258 as a condition for processing Linux images.
13259
13260 2008-01-10 Pavel Roskin <proski@gnu.org>
13261
13262 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
13263 to compile reiserfs.c on PowerPC.
13264
13265 2008-01-10 Robert Millan <rmh@aybabtu.com>
13266
13267 * kern/device.c (grub_device_iterate): Do not abort device iteration
13268 when one of the devices cannot be opened.
13269 * kern/disk.c (grub_disk_open): Do not account previous failures of
13270 unrelated functions when grub_errno is checked for.
13271
13272 2008-01-08 Robert Millan <rmh@aybabtu.com>
13273
13274 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
13275 `! grub_linux_is_bzimage', change order of address comparison to make
13276 it more intuitive, and improve "too big zImage" error message.
13277
13278 2008-01-08 Robert Millan <rmh@aybabtu.com>
13279
13280 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
13281 `$(update-grub_DATA)'.
13282 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
13283 targets.
13284
13285 2008-01-07 Robert Millan <rmh@aybabtu.com>
13286
13287 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
13288 which instruction is modified by grub-setup during installation
13289 (since it wasn't obvious by only looking at this file).
13290
13291 2008-01-07 Robert Millan <rmh@aybabtu.com>
13292
13293 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
13294 listing actual TODO items.
13295
13296 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
13297
13298 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
13299 correctly.
13300 (grub_reiserfs_get_key_offset): Likewise.
13301 (grub_reiserfs_set_key_offset): Likewise.
13302 (grub_reiserfs_set_key_type): Likewise.
13303 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
13304
13305 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
13306 better to remove the bitfield version completely.
13307
13308 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
13309
13310 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
13311 allocated from the heap, due to the fshelp implementation.
13312 (grub_reiserfs_dir): Free NODE, due to the same reason.
13313
13314 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
13315
13316 Mostly from Vincent Pelletier:
13317
13318 * fs/reiserfs.c: New file.
13319
13320 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
13321 (reiserfs_mod_SOURCES): New variable.
13322 (reiserfs_mod_CFLAGS): Likewise.
13323 (reiserfs_mod_LDFLAGS): Likewise.
13324
13325 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
13326 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
13327 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
13328 normal/color.c.
13329
13330 2008-01-06 Robert Millan <rmh@aybabtu.com>
13331
13332 * normal/color.c: Remove `<grub/env.h>'.
13333
13334 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
13335
13336 * include/grub/normal.h: Include <grub/env.h>.
13337
13338 2008-01-05 Robert Millan <rmh@aybabtu.com>
13339
13340 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
13341 usage example with `(hd0,1)'.
13342 Reported by Samuel Thibault.
13343
13344 2008-01-05 Robert Millan <rmh@aybabtu.com>
13345
13346 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
13347 (grub_linux_boot_zimage): Rename to ...
13348 (grub_linux_boot): ... this.
13349 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
13350 (grub_linux_boot_zimage): Conditionalize zImage copy.
13351
13352 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
13353 (grub_linux_boot_bzimage): Remove prototype.
13354 (grub_linux_boot_zimage): Rename to ...
13355 (grub_linux_boot): ... this.
13356
13357 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
13358 (grub_linux_boot): Remove function.
13359
13360 2008-01-05 Robert Millan <rmh@aybabtu.com>
13361
13362 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
13363 (grub_env_write_color_highlight): Likewise.
13364 (grub_wait_after_message): Likewise.
13365
13366 * normal/color.c: New file.
13367
13368 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13369 (normal_mod_DEPENDENCIES): Likewise.
13370
13371 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13372 (normal_mod_DEPENDENCIES): Likewise.
13373
13374 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13375 (normal_mod_DEPENDENCIES): Likewise.
13376
13377 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13378 (normal_mod_DEPENDENCIES): Likewise.
13379
13380 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
13381 for waiting after a message is printed.
13382 * normal/main.c (read_config_file): Likewise.
13383 (grub_normal_init): Register grub_env_write_color_normal() and
13384 grub_env_write_color_highlight() hooks. Mark `color_normal' and
13385 `color_highlight' variables as global.
13386
13387 * normal/menu.c (grub_wait_after_message): New function.
13388 (grub_color_menu_normal): New variable. Replaces ...
13389 (GRUB_COLOR_MENU_NORMAL): ... this macro.
13390 (grub_color_menu_highlight): New variable. Replaces ...
13391 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
13392 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
13393 `GRUB_TERM_COLOR_STANDARD'.
13394 (print_message): Use `grub_setcolorstate' to reload colors. Rename
13395 `normal_code' and `highlight_code' to `old_color_normal' and
13396 `old_color_highlight', respectively.
13397 (grub_menu_init_page): Update colors when drawing the menu, based on
13398 `menu_color_normal' and `menu_color_highlight' variables.
13399 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
13400 a message is printed.
13401
13402 2008-01-05 Robert Millan <rmh@aybabtu.com>
13403
13404 * kern/env.c (grub_env_context_open): Propagate hooks for global
13405 variables to new context.
13406
13407 * kern/main.c (grub_set_root_dev): Export `root' variable.
13408
13409 2008-01-05 Robert Millan <rmh@aybabtu.com>
13410
13411 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
13412 discs unconditionally, since udev and others have options to provide
13413 them.
13414
13415 2008-01-05 Robert Millan <rmh@aybabtu.com>
13416
13417 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
13418
13419 2008-01-04 Christian Franke <franke@computer.org>
13420
13421 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
13422 of eisa_mmap.
13423
13424 2008-01-03 Pavel Roskin <proski@gnu.org>
13425
13426 * kern/i386/linuxbios/init.c: Put "void" to all function
13427 declarations with no arguments.
13428 * kern/powerpc/ieee1275/init.c: Likewise.
13429 * term/i386/pc/at_keyboard.c: Likewise.
13430 * term/i386/pc/vga_text.c: Likewise.
13431 * util/grub-mkdevicemap.c: Likewise.
13432
13433 2008-01-02 Robert Millan <rmh@aybabtu.com>
13434
13435 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
13436 message when loaded image is out of bounds.
13437 (grub_multiboot_load_elf64): Likewise.
13438
13439 2008-01-02 Pavel Roskin <proski@gnu.org>
13440
13441 * util/grub.d/10_linux.in: Try version without ".old" when
13442 looking for initrd. It's better to use initrd from the newer
13443 kernel of the same version than no initrd at all.
13444
13445 2008-01-01 Robert Millan <rmh@aybabtu.com>
13446
13447 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
13448
13449 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
13450
13451 * include/grub/video.h: Added grub_video_unmap_color and
13452 grub_video_get_active_render_target.
13453 (grub_video_adapter): Added unmap_color and get_active_render_target.
13454
13455 * video/video.c: Added grub_video_unmap_color and
13456 grub_video_get_active_render_target.
13457 (grub_video_get_info): Changed method to accept NULL pointer as an
13458 argument to allow detection of active video adapter.
13459
13460 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
13461 grub_video_vbe_unmap_color_int.
13462 Added grub_video_vbe_unmap_color and
13463 grub_video_vbe_get_active_render_target.
13464 (grub_video_vbe_adapter): Added unmap_color and
13465 get_active_render_target.
13466
13467 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
13468 with grub_video_vbe_unmap_color_int.
13469
13470 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
13471 (DEFAULT_NORMAL_COLOR): Likewise.
13472 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
13473 (DEFAULT_FG_COLOR): Removed.
13474 (DEFAULT_BG_COLOR): Likewise.
13475 (DEFAULT_CURSOR_COLOR): Changed value.
13476 (grub_virtual_screen): Added standard_color_setting,
13477 normal_color_setting, highlight_color_setting and term_color.
13478 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
13479 (bitmap_width): Added.
13480 (bitmap_height): Likewise.
13481 (bitmap): Likewise.
13482 (set_term_color): Likewise.
13483 (grub_virtual_screen_setup): Changed to use new terminal coloring
13484 settings.
13485 (grub_gfxterm_init): Added init for bitmap.
13486 (grub_gfxterm_fini): Added destroy for bitmap.
13487 (redraw_screen_rect): Updated to use background bitmap and new
13488 terminal coloring.
13489 (scroll_up): Added optimization for case when there is no bitmap.
13490 (grub_gfxterm_cls): Fixed to use correct background color.
13491 (grub_virtual_screen_setcolorstate): Changed to use new terminal
13492 coloring.
13493 (grub_virtual_screen_setcolor): Likewise.
13494 (grub_virtual_screen_getcolor): Added.
13495 (grub_gfxterm_background_image_cmd): Likewise.
13496 (grub_video_term): Added setcolor and getcolor.
13497 (MOD_INIT): Added registration of background_image command.
13498 (MOD_TERM): Added unregistration for background_image command.
13499
13500 2007-12-30 Pavel Roskin <proski@gnu.org>
13501
13502 * loader/multiboot_loader.c: Fix multiboot command
13503 unregistration. Fix all typos in the word "multiboot".
13504
13505 2007-12-29 Pavel Roskin <proski@gnu.org>
13506
13507 * util/grub.d/10_linux.in: Refactor search for initrd. Add
13508 support for initrd names used in Fedora.
13509
13510 2007-12-26 Bean <bean123ch@gmail.com>
13511
13512 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
13513 (cpio_mod_SOURCES): New variable.
13514 (cpio_mod_CFLAGS): Likewise.
13515 (cpio_mod_LDFLAGS): Likewise.
13516
13517 * fs/cpio.c: New file.
13518
13519 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
13520
13521 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13522
13523 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
13524
13525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13526
13527 2007-12-25 Robert Millan <rmh@aybabtu.com>
13528
13529 * include/grub/term.h (struct grub_term): Add `getcolor' function.
13530 (grub_getcolor): New function.
13531
13532 * kern/term.c (grub_getcolor): New function.
13533 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
13534 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
13535 (print_entry): Set normal and highlight colors to
13536 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
13537 respectively, before printing and restore them to old
13538 values afterwards.
13539 (grub_menu_init_page): Likewise. Fill an additional colored space
13540 that would otherwise be left blank.
13541
13542 * term/efi/console.c (grub_console_getcolor): New function.
13543 (struct grub_console_term.getcolor): New variable.
13544 * term/i386/pc/console.c (grub_console_getcolor): New function.
13545 (struct grub_console_term.getcolor): New variable.
13546 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
13547 (struct grub_console_term.getcolor): New variable.
13548
13549 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
13550 (struct grub_console_term.setcolor): Remove variable.
13551 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
13552 (struct grub_console_term.setcolor): Remove variable.
13553 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
13554 (struct grub_console_term.setcolor): Remove variable.
13555 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
13556 (struct grub_console_term.setcolor): Remove variable.
13557
13558 2007-12-25 Robert Millan <rmh@aybabtu.com>
13559
13560 * configure.ac: Search for possible unifont.hex locations, and
13561 define UNIFONT_HEX if found.
13562
13563 * Makefile.in (UNIFONT_HEX): Define variable.
13564 (DATA): Rename to ...
13565 (PKGLIB): ... this. Update all users.
13566 (PKGDATA): New variable.
13567 (pkgdata_IMAGES): Rename to ...
13568 (pkglib_IMAGES): ... this. Update all users.
13569 (pkgdata_MODULES): Rename to ...
13570 (pkglib_MODULES): ... this. Update all users.
13571 (pkgdata_PROGRAMS): Rename to ...
13572 (pkglib_PROGRAMS): ... this. Update all users.
13573 (pkgdata_DATA): Rename to ...
13574 (pkglib_DATA): ... this. Update all users.
13575 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
13576 (unicode.pff, ascii.pff): New rules.
13577 (all-local): Add `$(PKGDATA)' dependency.
13578 (install-local): Process `$(PKGDATA)'.
13579
13580 * util/update-grub_lib.in (font_path): Search for *.pff files in
13581 a few more locations, including `${pkgdata}'.
13582
13583 2007-12-23 Robert Millan <rmh@aybabtu.com>
13584
13585 Patch from Bean <bean123ch@gmail.com>:
13586 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
13587 `size'.
13588
13589 2007-12-21 Bean <bean123ch@gmail.com>
13590
13591 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
13592 (ntfscomp_mod_SOURCES): New variable.
13593 (ntfscomp_mod_CFLAGS): Likewise.
13594 (ntfscomp_mod_LDFLAGS): Likewise.
13595
13596 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
13597 (grub_probe_SOURCES): Likewise.
13598 (grub_emu_SOURCES): Likewise.
13599
13600 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13601 (grub_emu_SOURCES): Likewise.
13602
13603 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13604 (grub_emu_SOURCES): Likewise.
13605
13606 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13607 (grub_emu_SOURCES): Likewise.
13608
13609 * fs/ntfs.c (grub_ntfscomp_func): New variable.
13610 (read_run_list): Renamed to grub_ntfs_read_run_list.
13611 (decomp_nextvcn): Moved to ntfscomp.c.
13612 (decomp_getch): Likewise.
13613 (decomp_get16): Likewise.
13614 (decomp_block): Likewise.
13615 (read_block): Likewise.
13616 (read_data): Partially moved to ntfscomp.c.
13617 (fixup): Change unsigned to grub_uint16_t.
13618 (read_mft): Change unsigned long to grub_uint32_t.
13619 (read_attr): Likewise.
13620 (read_data): Likewise.
13621 (read_run_data): Likewise.
13622 (read_run_list): Likewise.
13623 (read_mft): Likewise.
13624
13625 * fs/ntfscomp.c: New file.
13626
13627 * include/grub/ntfs.h: New file.
13628
13629 2007-12-16 Robert Millan <rmh@aybabtu.com>
13630
13631 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
13632 IDE disk check, since Linux is known to support 20 IDE disks.
13633 Reported by Colin Watson.
13634
13635 2007-12-15 Bean <bean123ch@gmail.com>
13636
13637 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
13638 (lnxboot_img_SOURCES): New variable.
13639 (lnxboot_img_ASFLAGS): Likewise.
13640 (lnxboot_img_LDFLAGS): Likewise.
13641
13642 * boot/i386/pc/lnxboot.S: New file.
13643
13644 2007-11-24 Pavel Roskin <proski@gnu.org>
13645
13646 * configure.ac: Test if '--build-id=none' is supported by the
13647 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
13648 objcopy to generate incorrect binary files (binutils
13649 2.17.50.0.18-1 as shipped by Fedora 8).
13650 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
13651 linking, so that build ID doesn't break the test.
13652
13653 2007-11-24 Pavel Roskin <proski@gnu.org>
13654
13655 * include/grub/i386/time.h: use "void" in the argument list
13656 of grub_cpu_idle().
13657 * include/grub/powerpc/time.h: Likewise.
13658 * include/grub/sparc64/time.h: Likewise.
13659
13660 2007-11-18 Christian Franke <franke@computer.org>
13661
13662 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
13663 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
13664 This fixes the problem that function keys did not work in grub-emu.
13665
13666 2007-11-18 Christian Franke <franke@computer.org>
13667
13668 * disk/host.c (grub_host_open): Remove attribute unused from
13669 name parameter. Add check for "host". This fixes the problem
13670 that grub-emu does not find partitions.
13671
13672 2007-11-18 Christian Franke <franke@computer.org>
13673
13674 * util/hostfs.c (is_dir): New function.
13675 (grub_hostfs_dir): Handle missing dirent.d_type case.
13676 (grub_hostfs_read): Add missing fseek().
13677 (grub_hostfs_label): Clear label pointer. This fixes a crash
13678 of grub-emu on "ls (host)".
13679
13680 2007-11-18 Christian Franke <franke@computer.org>
13681
13682 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
13683 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
13684 to 64 bit boundary by default.
13685
13686 2007-11-18 Bean <bean123ch@gmail.com>
13687
13688 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
13689 (hexdump_mod_SOURCES): New variable.
13690 (hexdump_mod_CFLAGS): Likewise.
13691 (hexdump_mod_LDFLAGS): Likewise.
13692
13693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13694
13695 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13696
13697 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13698
13699 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13700
13701 * include/grub/hexdump.h: New file.
13702
13703 * commands/hexdump.c: New file.
13704
13705 2007-11-10 Robert Millan <rmh@aybabtu.com>
13706
13707 * commands/i386/pc/play.c (beep_off): Switch order of arguments
13708 in grub_outb() calls.
13709 (beep_on): Likewise.
13710
13711 2007-11-10 Christian Franke <franke@computer.org>
13712
13713 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
13714 (grub_menu_run): Likewise.
13715
13716 2007-11-10 Robert Millan <rmh@aybabtu.com>
13717
13718 * include/grub/i386/efi/machine.h: New file.
13719 * include/grub/i386/linuxbios/machine.h: Likewise.
13720 * include/grub/i386/pc/machine.h: Likewise.
13721 * include/grub/powerpc/ieee1275/machine.h: Likewise.
13722 * include/grub/sparc64/ieee1275/machine.h: Likewise.
13723
13724 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
13725 (serial_hw_io_addr): New variable.
13726 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
13727 instead of `(unsigned short *) 0x400'.
13728
13729 2007-11-10 Bean <bean123ch@gmail.com>
13730
13731 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
13732
13733 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13734
13735 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
13736 (vga_mod_SOURCES): Added.
13737 (vga_mod_CFLAGS): Likewise.
13738 (vga_mod_LDFLAGS): Likewise.
13739
13740 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
13741 grub_outb() calls.
13742 (set_map_mask): Likewise.
13743 (set_read_map): Likewise.
13744 (set_read_address): Likewise.
13745 (vga_font): Removed variable.
13746 (get_vga_glyph): Removed function.
13747 (invalidate_char): Likewise.
13748 (write_char): Changed to use grub_font_get_glyph() for font
13749 information.
13750 (grub_vga_putchar): Likewise.
13751 (grub_vga_getcharwidth): Likewise.
13752
13753 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13754
13755 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
13756 flags.
13757 (pxeboot_img_LDFLAGS): Likewise.
13758 (diskboot_img_LDFLAGS): Likewise.
13759 (kernel_img_LDFLAGS): Likewise.
13760
13761 2007-11-06 Robert Millan <rmh@aybabtu.com>
13762
13763 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
13764 in grub_outb() calls.
13765 (serial_hw_init): Likewise.
13766
13767 2007-11-05 Robert Millan <rmh@aybabtu.com>
13768
13769 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
13770 spaces. Skip non-regular files.
13771
13772 2007-11-05 Robert Millan <rmh@aybabtu.com>
13773
13774 * kern/disk.c (grub_disk_firmware_fini)
13775 (grub_disk_firmware_is_tainted): New variables.
13776
13777 * include/grub/disk.h (grub_disk_firmware_fini)
13778 (grub_disk_firmware_is_tainted): Likewise.
13779
13780 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
13781 (grub_disk_biosdisk_fini): ... to here.
13782 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
13783 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
13784 is set. Register grub_disk_biosdisk_fini() in
13785 `grub_disk_firmware_fini'.
13786
13787 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
13788 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
13789 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
13790 to finish existing firmware disk interface.
13791
13792 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
13793 (ata_mod_SOURCES): New variable.
13794 (ata_mod_CFLAGS): Likewise.
13795 (ata_mod_LDFLAGS): Likewise.
13796
13797 2007-11-05 Robert Millan <rmh@aybabtu.com>
13798
13799 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
13800 (grub_ata_wait): Reimplement using grub_millisleep().
13801
13802 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
13803 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
13804
13805 2007-11-03 Marco Gerards <marco@gnu.org>
13806
13807 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
13808 (CRTC_ADDR_PORT): New macro.
13809 (CRTC_DATA_PORT): Likewise.
13810 (CRTC_CURSOR): Likewise.
13811 (CRTC_CURSOR_ADDR_HIGH): Likewise.
13812 (CRTC_CURSOR_ADDR_LOW): Likewise.
13813 (update_cursor): New function.
13814 (grub_console_real_putchar): Call `update_cursor'.
13815 (grub_console_gotoxy): Likewise.
13816 (grub_console_cls): Set the default color when clearing the
13817 screen.
13818 (grub_console_setcursor): Implemented.
13819
13820 2007-11-03 Marco Gerards <marco@gnu.org>
13821
13822 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
13823 become activate.
13824 (grub_ata_pio_write): Likewise.
13825
13826 (grub_atapi_identify): Wait after issuing an ATA command.
13827 (grub_atapi_packet): Likewise.
13828 (grub_ata_identify): Likewise.
13829 (grub_ata_readwrite): Likewise.
13830
13831 2007-11-03 Marco Gerards <marco@gnu.org>
13832
13833 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
13834 (grub_ata_pio_write): Likewise.
13835 (grub_ata_readwrite): Use `grub_error', instead of
13836 returning `grub_errno'.
13837
13838 2007-11-03 Marco Gerards <marco@gnu.org>
13839
13840 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
13841 grub_ata_pio_write once for every single sector, instead of for
13842 multiple sectors.
13843
13844 2007-10-31 Robert Millan <rmh@aybabtu.com>
13845
13846 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
13847
13848 * conf/i386-linuxbios.rmk: New file.
13849
13850 * kern/i386/pc/hardware.c: Likewise.
13851 * term/i386/pc/at_keyboard.c: Likewise.
13852 * term/i386/pc/vga_text.c: Likewise.
13853
13854 * include/grub/i386/linuxbios/boot.h: Likewise.
13855 * include/grub/i386/linuxbios/console.h: Likewise.
13856 * include/grub/i386/linuxbios/init.h: Likewise.
13857 * include/grub/i386/linuxbios/kernel.h: Likewise.
13858 * include/grub/i386/linuxbios/loader.h: Likewise.
13859 * include/grub/i386/linuxbios/memory.h: Likewise.
13860 * include/grub/i386/linuxbios/serial.h: Likewise.
13861 * include/grub/i386/linuxbios/time.h: Likewise.
13862
13863 * kern/i386/linuxbios/init.c: Likewise.
13864 * kern/i386/linuxbios/startup.S: Likewise.
13865 * kern/i386/linuxbios/table.c: Likewise.
13866
13867 2007-10-31 Marco Gerards <marco@gnu.org>
13868
13869 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
13870 (ata_mod_SOURCES): New variable.
13871 (ata_mod_CFLAGS): Likewise.
13872 (ata_mod_LDFLAGS): Likewise.
13873
13874 * disk/ata.c: New file.
13875
13876 * include/grub/disk.h (grub_disk_dev_id): Add
13877 `GRUB_DISK_DEV_ATA_ID'.
13878
13879 2007-10-31 Robert Millan <rmh@aybabtu.com>
13880
13881 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
13882 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
13883
13884 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
13885 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
13886
13887 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
13888 `<grub/types.h>'.
13889
13890 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
13891
13892 2007-10-27 Robert Millan <rmh@aybabtu.com>
13893
13894 * include/grub/types.h (ULONG_MAX): Define macro.
13895
13896 2007-10-22 Robert Millan <rmh@aybabtu.com>
13897
13898 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
13899 `"../realmode.S"'.
13900 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
13901
13902 2007-10-22 Robert Millan <rmh@aybabtu.com>
13903
13904 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
13905 (pkgdata_MODULES): Add `biosdisk.mod'.
13906 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
13907 variables.
13908
13909 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
13910 (grub_biosdisk_init): Replace with ...
13911 (GRUB_MOD_INIT(biosdisk)): ... this.
13912 (grub_biosdisk_fini): Replace with ...
13913 (GRUB_MOD_FINI(biosdisk)): ... this.
13914
13915 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
13916 (grub_machine_init): Remove call to grub_biosdisk_init().
13917 (grub_machine_fini): Remove call to grub_machine_fini().
13918
13919 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
13920
13921 2007-10-22 Robert Millan <rmh@aybabtu.com>
13922
13923 * include/grub/time.h: New file.
13924 * include/grub/i386/time.h: Likewise.
13925 * include/grub/powerpc/time.h: Likewise.
13926 * include/grub/sparc64/time.h: Likewise.
13927
13928 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
13929 instances to ...
13930 (KERNEL_MACHINE_TIME_HEADER): ... this.
13931 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13932 instances to ...
13933 (KERNEL_MACHINE_TIME_HEADER): ... this.
13934 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13935 instances to ...
13936 (KERNEL_MACHINE_TIME_HEADER): ... this.
13937
13938 * kern/i386/efi/init.c: Include `<grub/time.h>'.
13939 (grub_millisleep): New function.
13940 * kern/i386/pc/init.c: Include `<grub/time.h>'.
13941 (grub_millisleep): New function.
13942 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
13943 Remove `grub/machine/time.h' include.
13944 (grub_millisleep): New function.
13945 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
13946 Remove `grub/machine/time.h' include.
13947 (grub_millisleep): New function.
13948
13949 * include/grub/misc.h (grub_div_roundup): New function.
13950
13951 * kern/misc.c: Include `<grub/time.h>'.
13952 (grub_millisleep_generic): New function.
13953
13954 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
13955 Add `time.h'.
13956 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
13957 Add `time.h'.
13958 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
13959 `machine/time.h'. Add `time.h'.
13960 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13961
13962 2007-10-21 Robert Millan <rmh@aybabtu.com>
13963
13964 * include/grub/misc.h (grub_max): New function.
13965
13966 2007-10-21 Robert Millan <rmh@aybabtu.com>
13967
13968 * util/misc.c (grub_util_info): Call fflush() before returning.
13969
13970 2007-10-20 Robert Millan <rmh@aybabtu.com>
13971
13972 * genmk.rb (Image): Copy `extra_flags' from here ...
13973 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
13974
13975 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
13976 to `argc' and `args' arguments.
13977
13978 2007-10-17 Robert Millan <rmh@aybabtu.com>
13979
13980 * kern/i386/loader.S: New file.
13981
13982 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
13983 * kern/i386/loader.S (grub_linux_prot_size)... to here.
13984 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
13985 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
13986 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
13987 * kern/i386/loader.S (grub_linux_real_addr)... to here.
13988 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
13989 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
13990 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
13991 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
13992 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
13993 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
13994 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
13995 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
13996
13997 * kern/i386/realmode.S: New file.
13998
13999 * kern/i386/pc/startup.S (protstack): Moved from here ...
14000 * kern/i386/realmode.S (protstack)... to here.
14001 * kern/i386/pc/startup.S (gdt): Moved from here ...
14002 * kern/i386/realmode.S (gdt)... to here.
14003 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
14004 * kern/i386/realmode.S (prot_to_real)... to here.
14005
14006 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
14007 `kern/i386/realmode.S'.
14008
14009 2007-10-17 Robert Millan <rmh@aybabtu.com>
14010
14011 * include/grub/i386/loader.h: New file.
14012
14013 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
14014 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
14015 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
14016 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
14017 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
14018 * include/grub/i386/loader.h (grub_linux_prot_size)
14019 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
14020 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
14021 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
14022 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
14023
14024 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
14025
14026 2007-10-15 Robert Millan <rmh@aybabtu.com>
14027
14028 * normal/misc.c (grub_normal_print_device_info): Do not probe for
14029 filesystem when dev->disk is unset.
14030 Do probe for filesystem even when dev->disk->has_partitions is set.
14031 In case a filesystem is found, always report it.
14032 In case it isn't, if dev->disk->has_partitions is set, report that
14033 a partition table was found instead of reporting that no filesystem
14034 could be identified.
14035
14036 2007-10-12 Robert Millan <rmh@aybabtu.com>
14037
14038 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
14039 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
14040
14041 * include/grub/types.h (grub_host_to_target16): New macro.
14042 (grub_host_to_target32): Likewise.
14043 (grub_host_to_target64): Likewise.
14044 (grub_target_to_host16): Likewise.
14045 (grub_target_to_host32): Likewise.
14046 (grub_target_to_host64): Likewise.
14047
14048 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
14049 Renamed from to ...
14050 (GRUB_MOD_ALIGN): ...this. Update all users.
14051
14052 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
14053 grub_host_to_target32.
14054 Replace grub_be_to_cpu32 with grub_target_to_host32.
14055 (load_modules): Likewise.
14056 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
14057 Replace grub_be_to_cpu32 with grub_target_to_host32.
14058 Replace grub_cpu_to_be16 with grub_host_to_target16.
14059 Replace grub_cpu_to_be32 grub_host_to_target32.
14060
14061 2007-10-12 Robert Millan <rmh@aybabtu.com>
14062
14063 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
14064 * util/elf/grub-mkimage.c: ... here.
14065
14066 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
14067 `util/powerpc/ieee1275/grub-mkimage.c'.
14068
14069 2007-10-07 Robert Millan <rmh@aybabtu.com>
14070
14071 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
14072 and make it easier to figure out.
14073 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
14074 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
14075 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
14076 leave us with less than HEAP_MIN_SIZE total heap.
14077 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
14078
14079 2007-10-03 Robert Millan <rmh@aybabtu.com>
14080
14081 * include/grub/i386/io.h: New file.
14082 * commands/i386/pc/play.c (inb): Removed.
14083 (outb): Removed.
14084 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
14085 with grub_outb().
14086 * term/i386/pc/serial.c (inb): Removed.
14087 (outb): Removed.
14088 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
14089 with grub_outb().
14090 * term/i386/pc/vga.c (inb): Removed.
14091 (outb): Removed.
14092 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
14093 with grub_outb().
14094
14095 2007-10-02 Robert Millan <rmh@aybabtu.com>
14096
14097 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
14098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14099 Reported by Marcin Kurek.
14100
14101 2007-09-07 Robert Millan <rmh@aybabtu.com>
14102
14103 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
14104 SmartFirmware version updates (as released by Sven Luther), and avoid
14105 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
14106 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
14107 known broken.
14108
14109 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
14110
14111 From Hitoshi Ozeki:
14112 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
14113 when merging two regions.
14114
14115 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
14116
14117 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
14118 * normal/completion.c (grub_normal_do_completion): Likewise.
14119 Reported by Hitoshi Ozeki.
14120
14121 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
14122
14123 Do not use devices at boot in chainloading.
14124
14125 * loader/i386/pc/chainloader.c (boot_drive): New variable.
14126 (boot_part_addr): Likewise.
14127 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
14128 with BOOT_DRIVE and BOOT_PART_ADDR.
14129 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
14130 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
14131
14132 2007-08-29 Robert Millan <rmh@aybabtu.com>
14133
14134 Patch from Simon Peter <dn.tlp@gmx.net>:
14135 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
14136 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
14137 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
14138 util/i386/pc/grub-setup.c_DEPENDENCIES.
14139 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
14140 util/grub-probe.c_DEPENDENCIES.
14141 * conf/powerpc-ieee1275.rmk: Likewise.
14142
14143 2007-08-28 Robert Millan <rmh@aybabtu.com>
14144
14145 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
14146 to tell grub-mkdevicemap how to name devices.
14147 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
14148 feature).
14149
14150 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
14151 util/i386/get_disk_name.c.
14152 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
14153 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
14154 util/ieee1275/get_disk_name.c.
14155
14156 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
14157
14158 * DISTLIST: Add util/i386/get_disk_name.c and
14159 util/ieee1275/get_disk_name.c.
14160
14161 * util/grub-mkdevicemap.c: Replace device naming logic with
14162 grub_util_get_disk_name() calls.
14163
14164 2007-08-20 Robert Millan <rmh@aybabtu.com>
14165
14166 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
14167 (so that it works for both plural and singular quantities).
14168
14169 2007-08-05 Robert Millan <rmh@aybabtu.com>
14170
14171 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
14172 so that [xz] isn't taken into account when determining order.
14173
14174 2007-08-02 Marco Gerards <marco@gnu.org>
14175
14176 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
14177 `include/multiboot2.h', `include/grub/elfload.h',
14178 `include/multiboot.h', `include/grub/multiboot.h',
14179 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
14180 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
14181 `kern/elf.c', `loader/multiboot_loader.c',
14182 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
14183 `loader/i386/pc/multiboot2.c',
14184 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
14185 `util/i386/pc/grub-mkrescue.in'. Remove
14186 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
14187 `include/grub/i386/pc/util/biosdisk.h' and
14188 `include/grub/powerpc/ieee1275/multiboot.h'.
14189
14190 2007-08-02 Bean <bean123ch@gmail.com>
14191
14192 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
14193 (ntfs_mod_SOURCES): New variable.
14194 (ntfs_mod_CFLAGS): Likewise.
14195 (ntfs_mod_LDFLAGS): Likewise.
14196
14197 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
14198 (grub_probe_SOURCES): Likewise.
14199 (grub_emu_SOURCES): Likewise.
14200
14201 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
14202 (grub_emu_SOURCES): Likewise.
14203
14204 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
14205 (grub_emu_SOURCES): Likewise.
14206
14207 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
14208
14209 * fs/ntfs.c: New file.
14210
14211 2007-08-02 Bean <bean123ch@gmail.com>
14212
14213 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
14214
14215 * file.h (grub_file): Likewise.
14216
14217 * fshelp.h (grub_fshelp_read_file): Likewise.
14218
14219 * util/i386/pc/grub-setup.c (setup): Likewise.
14220 (save_first_sector): Likewise.
14221 (save_blocklists): Likewise.
14222
14223 * fs/affs.c (grub_affs_read_file): Likewise.
14224
14225 * fs/ext2.c (grub_ext2_read_file): Likewise.
14226
14227 * fs/fat.c (grub_fat_read_data): Likewise.
14228
14229 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
14230
14231 * fs/hfs.c (grub_hfs_read_file): Likewise.
14232
14233 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14234
14235 * fs/jfs.c (grub_jfs_read_file): Likewise.
14236
14237 * fs/minix.c (grub_minix_read_file): Likewise.
14238
14239 * fs/sfs.c (grub_sfs_read_file): Likewise.
14240
14241 * fs/ufs.c (grub_ufs_read_file): Likewise.
14242
14243 * fs/xfs.c (grub_xfs_read_file): Likewise.
14244
14245 * command/blocklist.c (read_blocklist): Likewise.
14246 (print_blocklist): Likewise.
14247
14248 2007-08-02 Marco Gerards <marco@gnu.org>
14249
14250 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
14251 `util/hostfs.c'.
14252
14253 * disk/host.c: New file.
14254
14255 * util/hostfs.c: Likewise.
14256
14257 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
14258 return `GRUB_ERR_BAD_FS'.
14259 * fs/sfs.c (grub_sfs_mount): Likewise.
14260 * fs/xfs.c (grub_xfs_mount): Likewise.
14261
14262 * include/grub/disk.h (enum grub_disk_dev_id): Add
14263 `GRUB_DISK_DEVICE_HOST_ID'.
14264
14265 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
14266
14267 2007-07-24 Jerone Young <jerone@gmail.com>
14268
14269 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
14270 modules for compilation.
14271 * conf/powerpc-ieee1275.rmk: Likewise.
14272
14273 * include/multiboot.h: Move multiboot definitions to one file. Rename
14274 many definitions to not get grub specific.
14275 * include/multiboot2.h: Create header with multiboot 2 definitions.
14276 * include/grub/multiboot.h: Header for grub specific function
14277 prototypes and definitions.
14278 * include/grub/multiboot2.h: Likewise.
14279 * include/grub/multiboot_loader.h: Likewise.
14280 * include/grub/i386/pc/multiboot.h: Removed.
14281 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
14282
14283 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
14284 and 2 to allow for one multiboot and module commands.
14285 * loader/multiboot2.c: Add multiboot2 functionality.
14286 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
14287 and definition names.
14288 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
14289 2 functions.
14290 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
14291 ieee1275 specific multiboot2 code.
14292
14293 * kern/i386/pc/startup.S: Change headers and definition names for
14294 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
14295
14296 2007-07-22 Robert Millan <rmh@aybabtu.com>
14297
14298 * geninitheader.sh: Process file specified in first parameter rather
14299 than hardcoding grub_modules_init.lst.
14300 * geninit.sh: Likewise. Also, construct header name dynamically rather
14301 than hardcoding grub_modules_init.h.
14302
14303 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
14304 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
14305 grub_probe_init.[ch] and grub_setup_init.[ch].
14306
14307 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
14308 grub_modules_init.h with grub_emu_init.h.
14309 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
14310 grub_probe_init.[ch] files.
14311 * conf/i386-efi.rmk: Likewise.
14312 * conf/i386-pc.rmk: Likewise.
14313 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
14314 grub_setup_init.[ch] files.
14315
14316 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
14317 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
14318 to initialize modules rather than a list of hardcoded functions.
14319 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
14320 grub_init_all() to initialize modules rather than a list of hardcoded
14321 functions.
14322
14323 2007-07-22 Robert Millan <rmh@aybabtu.com>
14324
14325 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14326 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
14327
14328 2007-07-22 Robert Millan <rmh@aybabtu.com>
14329
14330 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
14331 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
14332 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
14333 flag when running on SmartFirmware.
14334 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
14335 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
14336 was set.
14337
14338 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14339 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
14340 rather than decreasing it.
14341
14342 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
14343 there's not enough space to do it, fail in the same way as when it
14344 can't be done because there are no partitions.
14345
14346 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
14347 when nvsetenv failed.
14348
14349 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
14350
14351 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
14352 because this rule is automatically generated.
14353 (grub-mkrescue): Removed for the same reason as above.
14354
14355 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
14356
14357 Migrate to GNU General Public License Version 3.
14358
14359 * COPYING: Replaced with the plain text version of GPLv3.
14360
14361 * config.guess: Updated from gnulib.
14362 * config.sub: Likewise.
14363
14364 * geninit.sh: Output a GPLv3 copyright notice.
14365 * geninitheader.sh: Likewise.
14366 * genmodsrc.sh: Likewise.
14367 * gensymlist.sh.in: Likewise.
14368
14369 * boot/i386/pc/boot.S: Upgraded to GPLv3.
14370 * boot/i386/pc/diskboot.S: Likewise.
14371 * boot/i386/pc/pxeboot.S: Likewise.
14372 * commands/blocklist.c: Likewise.
14373 * commands/boot.c: Likewise.
14374 * commands/cat.c: Likewise.
14375 * commands/cmp.c: Likewise.
14376 * commands/configfile.c: Likewise.
14377 * commands/echo.c: Likewise.
14378 * commands/help.c: Likewise.
14379 * commands/ls.c: Likewise.
14380 * commands/search.c: Likewise.
14381 * commands/terminal.c: Likewise.
14382 * commands/test.c: Likewise.
14383 * commands/videotest.c: Likewise.
14384 * commands/i386/cpuid.c: Likewise.
14385 * commands/i386/pc/halt.c: Likewise.
14386 * commands/i386/pc/play.c: Likewise.
14387 * commands/i386/pc/reboot.c: Likewise.
14388 * commands/i386/pc/vbeinfo.c: Likewise.
14389 * commands/i386/pc/vbetest.c: Likewise.
14390 * commands/ieee1275/halt.c: Likewise.
14391 * commands/ieee1275/reboot.c: Likewise.
14392 * commands/ieee1275/suspend.c: Likewise.
14393 * disk/loopback.c: Likewise.
14394 * disk/lvm.c: Likewise.
14395 * disk/raid.c: Likewise.
14396 * disk/efi/efidisk.c: Likewise.
14397 * disk/i386/pc/biosdisk.c: Likewise.
14398 * disk/ieee1275/ofdisk.c: Likewise.
14399 * font/manager.c: Likewise.
14400 * fs/affs.c: Likewise.
14401 * fs/ext2.c: Likewise.
14402 * fs/fat.c: Likewise.
14403 * fs/fshelp.c: Likewise.
14404 * fs/hfs.c: Likewise.
14405 * fs/hfsplus.c: Likewise.
14406 * fs/iso9660.c: Likewise.
14407 * fs/jfs.c: Likewise.
14408 * fs/minix.c: Likewise.
14409 * fs/sfs.c: Likewise.
14410 * fs/ufs.c: Likewise.
14411 * fs/xfs.c: Likewise.
14412 * hello/hello.c: Likewise.
14413 * include/grub/acorn_filecore.h: Likewise.
14414 * include/grub/arg.h: Likewise.
14415 * include/grub/bitmap.h: Likewise.
14416 * include/grub/boot.h: Likewise.
14417 * include/grub/cache.h: Likewise.
14418 * include/grub/device.h: Likewise.
14419 * include/grub/disk.h: Likewise.
14420 * include/grub/dl.h: Likewise.
14421 * include/grub/elfload.h: Likewise.
14422 * include/grub/env.h: Likewise.
14423 * include/grub/err.h: Likewise.
14424 * include/grub/file.h: Likewise.
14425 * include/grub/font.h: Likewise.
14426 * include/grub/fs.h: Likewise.
14427 * include/grub/fshelp.h: Likewise.
14428 * include/grub/gzio.h: Likewise.
14429 * include/grub/hfs.h: Likewise.
14430 * include/grub/kernel.h: Likewise.
14431 * include/grub/loader.h: Likewise.
14432 * include/grub/lvm.h: Likewise.
14433 * include/grub/misc.h: Likewise.
14434 * include/grub/mm.h: Likewise.
14435 * include/grub/net.h: Likewise.
14436 * include/grub/normal.h: Likewise.
14437 * include/grub/parser.h: Likewise.
14438 * include/grub/partition.h: Likewise.
14439 * include/grub/pc_partition.h: Likewise.
14440 * include/grub/raid.h: Likewise.
14441 * include/grub/rescue.h: Likewise.
14442 * include/grub/script.h: Likewise.
14443 * include/grub/setjmp.h: Likewise.
14444 * include/grub/symbol.h: Likewise.
14445 * include/grub/term.h: Likewise.
14446 * include/grub/terminfo.h: Likewise.
14447 * include/grub/tparm.h: Likewise.
14448 * include/grub/types.h: Likewise.
14449 * include/grub/video.h: Likewise.
14450 * include/grub/efi/api.h: Likewise.
14451 * include/grub/efi/chainloader.h: Likewise.
14452 * include/grub/efi/console.h: Likewise.
14453 * include/grub/efi/console_control.h: Likewise.
14454 * include/grub/efi/disk.h: Likewise.
14455 * include/grub/efi/efi.h: Likewise.
14456 * include/grub/efi/pe32.h: Likewise.
14457 * include/grub/efi/time.h: Likewise.
14458 * include/grub/i386/linux.h: Likewise.
14459 * include/grub/i386/setjmp.h: Likewise.
14460 * include/grub/i386/types.h: Likewise.
14461 * include/grub/i386/efi/kernel.h: Likewise.
14462 * include/grub/i386/efi/loader.h: Likewise.
14463 * include/grub/i386/efi/time.h: Likewise.
14464 * include/grub/i386/pc/biosdisk.h: Likewise.
14465 * include/grub/i386/pc/boot.h: Likewise.
14466 * include/grub/i386/pc/chainloader.h: Likewise.
14467 * include/grub/i386/pc/console.h: Likewise.
14468 * include/grub/i386/pc/init.h: Likewise.
14469 * include/grub/i386/pc/kernel.h: Likewise.
14470 * include/grub/i386/pc/loader.h: Likewise.
14471 * include/grub/i386/pc/memory.h: Likewise.
14472 * include/grub/i386/pc/multiboot.h: Likewise.
14473 * include/grub/i386/pc/serial.h: Likewise.
14474 * include/grub/i386/pc/time.h: Likewise.
14475 * include/grub/i386/pc/vbe.h: Likewise.
14476 * include/grub/i386/pc/vbeblit.h: Likewise.
14477 * include/grub/i386/pc/vbefill.h: Likewise.
14478 * include/grub/i386/pc/vbeutil.h: Likewise.
14479 * include/grub/i386/pc/vga.h: Likewise.
14480 * include/grub/ieee1275/ieee1275.h: Likewise.
14481 * include/grub/ieee1275/ofdisk.h: Likewise.
14482 * include/grub/powerpc/libgcc.h: Likewise.
14483 * include/grub/powerpc/setjmp.h: Likewise.
14484 * include/grub/powerpc/types.h: Likewise.
14485 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14486 * include/grub/powerpc/ieee1275/console.h: Likewise.
14487 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
14488 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14489 * include/grub/powerpc/ieee1275/loader.h: Likewise.
14490 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
14491 * include/grub/powerpc/ieee1275/time.h: Likewise.
14492 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
14493 * include/grub/sparc64/libgcc.h: Likewise.
14494 * include/grub/sparc64/setjmp.h: Likewise.
14495 * include/grub/sparc64/types.h: Likewise.
14496 * include/grub/sparc64/ieee1275/console.h: Likewise.
14497 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
14498 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14499 * include/grub/sparc64/ieee1275/time.h: Likewise.
14500 * include/grub/util/biosdisk.h: Likewise.
14501 * include/grub/util/getroot.h: Likewise.
14502 * include/grub/util/lvm.h: Likewise.
14503 * include/grub/util/misc.h: Likewise.
14504 * include/grub/util/raid.h: Likewise.
14505 * include/grub/util/resolve.h: Likewise.
14506 * io/gzio.c: Likewise.
14507 * kern/device.c: Likewise.
14508 * kern/disk.c: Likewise.
14509 * kern/dl.c: Likewise.
14510 * kern/elf.c: Likewise.
14511 * kern/env.c: Likewise.
14512 * kern/err.c: Likewise.
14513 * kern/file.c: Likewise.
14514 * kern/fs.c: Likewise.
14515 * kern/loader.c: Likewise.
14516 * kern/main.c: Likewise.
14517 * kern/misc.c: Likewise.
14518 * kern/mm.c: Likewise.
14519 * kern/parser.c: Likewise.
14520 * kern/partition.c: Likewise.
14521 * kern/rescue.c: Likewise.
14522 * kern/term.c: Likewise.
14523 * kern/efi/efi.c: Likewise.
14524 * kern/efi/init.c: Likewise.
14525 * kern/efi/mm.c: Likewise.
14526 * kern/i386/dl.c: Likewise.
14527 * kern/i386/efi/init.c: Likewise.
14528 * kern/i386/efi/startup.S: Likewise.
14529 * kern/i386/pc/init.c: Likewise.
14530 * kern/i386/pc/lzo1x.S: Likewise.
14531 * kern/i386/pc/startup.S: Likewise.
14532 * kern/ieee1275/ieee1275.c: Likewise.
14533 * kern/powerpc/cache.S: Likewise.
14534 * kern/powerpc/dl.c: Likewise.
14535 * kern/powerpc/ieee1275/cmain.c: Likewise.
14536 * kern/powerpc/ieee1275/crt0.S: Likewise.
14537 * kern/powerpc/ieee1275/init.c: Likewise.
14538 * kern/powerpc/ieee1275/openfw.c: Likewise.
14539 * kern/sparc64/cache.S: Likewise.
14540 * kern/sparc64/dl.c: Likewise.
14541 * kern/sparc64/ieee1275/init.c: Likewise.
14542 * kern/sparc64/ieee1275/openfw.c: Likewise.
14543 * loader/efi/chainloader.c: Likewise.
14544 * loader/efi/chainloader_normal.c: Likewise.
14545 * loader/i386/efi/linux.c: Likewise.
14546 * loader/i386/efi/linux_normal.c: Likewise.
14547 * loader/i386/pc/chainloader.c: Likewise.
14548 * loader/i386/pc/chainloader_normal.c: Likewise.
14549 * loader/i386/pc/linux.c: Likewise.
14550 * loader/i386/pc/linux_normal.c: Likewise.
14551 * loader/i386/pc/multiboot.c: Likewise.
14552 * loader/i386/pc/multiboot_normal.c: Likewise.
14553 * loader/powerpc/ieee1275/linux.c: Likewise.
14554 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
14555 * normal/arg.c: Likewise.
14556 * normal/cmdline.c: Likewise.
14557 * normal/command.c: Likewise.
14558 * normal/completion.c: Likewise.
14559 * normal/execute.c: Likewise.
14560 * normal/function.c: Likewise.
14561 * normal/lexer.c: Likewise.
14562 * normal/main.c: Likewise.
14563 * normal/menu.c: Likewise.
14564 * normal/menu_entry.c: Likewise.
14565 * normal/misc.c: Likewise.
14566 * normal/parser.y: Likewise.
14567 * normal/script.c: Likewise.
14568 * normal/i386/setjmp.S: Likewise.
14569 * normal/powerpc/setjmp.S: Likewise.
14570 * normal/sparc64/setjmp.S: Likewise.
14571 * partmap/acorn.c: Likewise.
14572 * partmap/amiga.c: Likewise.
14573 * partmap/apple.c: Likewise.
14574 * partmap/gpt.c: Likewise.
14575 * partmap/pc.c: Likewise.
14576 * partmap/sun.c: Likewise.
14577 * term/gfxterm.c: Likewise.
14578 * term/terminfo.c: Likewise.
14579 * term/efi/console.c: Likewise.
14580 * term/i386/pc/console.c: Likewise.
14581 * term/i386/pc/serial.c: Likewise.
14582 * term/i386/pc/vesafb.c: Likewise.
14583 * term/i386/pc/vga.c: Likewise.
14584 * term/ieee1275/ofconsole.c: Likewise.
14585 * util/biosdisk.c: Likewise.
14586 * util/console.c: Likewise.
14587 * util/genmoddep.c: Likewise.
14588 * util/getroot.c: Likewise.
14589 * util/grub-emu.c: Likewise.
14590 * util/grub-mkdevicemap.c: Likewise.
14591 * util/grub-probe.c: Likewise.
14592 * util/lvm.c: Likewise.
14593 * util/misc.c: Likewise.
14594 * util/raid.c: Likewise.
14595 * util/resolve.c: Likewise.
14596 * util/update-grub.in: Likewise.
14597 * util/update-grub_lib.in: Likewise.
14598 * util/grub.d/00_header.in: Likewise.
14599 * util/grub.d/10_hurd.in: Likewise.
14600 * util/grub.d/10_linux.in: Likewise.
14601 * util/i386/efi/grub-install.in: Likewise.
14602 * util/i386/efi/grub-mkimage.c: Likewise.
14603 * util/i386/pc/grub-install.in: Likewise.
14604 * util/i386/pc/grub-mkimage.c: Likewise.
14605 * util/i386/pc/grub-mkrescue.in: Likewise.
14606 * util/i386/pc/grub-setup.c: Likewise.
14607 * util/i386/pc/misc.c: Likewise.
14608 * util/powerpc/ieee1275/grub-install.in: Likewise.
14609 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
14610 * util/powerpc/ieee1275/misc.c: Likewise.
14611 * video/bitmap.c: Likewise.
14612 * video/video.c: Likewise.
14613 * video/i386/pc/vbe.c: Likewise.
14614 * video/i386/pc/vbeblit.c: Likewise.
14615 * video/i386/pc/vbefill.c: Likewise.
14616 * video/i386/pc/vbeutil.c: Likewise.
14617 * video/readers/tga.c: Likewise.
14618
14619 2007-07-02 Robert Millan <rmh@aybabtu.com>
14620
14621 * conf/i386-efi.rmk: Replace obsolete reference to
14622 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
14623 with util/getroot.c.
14624 * conf/powerpc-ieee1275.rmk: Likewise.
14625 * conf/sparc64-ieee1275.rmk: Likewise.
14626
14627 * util/grub-emu.c (main): Fix unchecked pointer handling.
14628
14629 2007-07-02 Robert Millan <rmh@aybabtu.com>
14630
14631 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
14632 invocation to fail, in order to support partition-less media.
14633
14634 * util/i386/pc/grub-install.in: Likewise.
14635
14636 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
14637 which fs or partmap modules are needed (akin to its sister scripts).
14638
14639 Also use grub-probe to get rid of unportable /proc/mounts check.
14640
14641 Print the same informational message that the other scripts do, before
14642 exiting.
14643
14644 2007-06-23 Robert Millan <rmh@aybabtu.com>
14645
14646 * util/update-grub_lib.in (font_path): New function. Determine whether
14647 a font file can be found and, if so, echo the GRUB path to it.
14648
14649 * util/update-grub.in: Handle multiple terminals depending on user
14650 input, platform availability and font file presence. Propagate
14651 variables of our findings to /etc/grub.d/ children.
14652
14653 * util/grub.d/00_header.in: Handle multiple terminals, based on
14654 environment setup by update-grub.
14655
14656 2007-06-23 Robert Millan <rmh@aybabtu.com>
14657
14658 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
14659
14660 2007-06-21 Robert Millan <rmh@aybabtu.com>
14661
14662 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
14663 indicate end of data section in kernel image.
14664 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
14665 GRUB_KERNEL_MACHINE_DATA_END.
14666
14667 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
14668 space for it.
14669 * kern/i386/efi/startup.S: Likewise.
14670
14671 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
14672 during image generation. Implement --prefix option to override this
14673 patch.
14674 * util/i386/efi/grub-mkimage.c: Likewise.
14675
14676 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
14677 code to make path relative to its root into a separate function.
14678
14679 * util/i386/pc/grub-install.in: Use newly provided
14680 make_system_path_relative_to_its_root() to convert ${grubdir}, then
14681 pass the result to grub-install --prefix.
14682
14683 2007-06-13 Robert Millan <rmh@aybabtu.com>
14684
14685 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
14686 DEFAULT_DEVICE_MAP.
14687 * util/grub-emu.c: Use above definitions from misc.h instead of
14688 defining them.
14689 * util/grub-mkdevicemap.c: Likewise.
14690 * util/i386/pc/grub-setup.c: Likewise.
14691 * util/grub-probe.c: Likewise.
14692 (probe): Abort with grub_util_error() when either
14693 grub_guess_root_device or grub_util_get_grub_dev fails.
14694
14695 2007-06-12 Robert Millan <rmh@aybabtu.com>
14696
14697 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
14698 "pager" assignment.
14699 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
14700 "pcdata".
14701 * util/grub-probe.c (probe): Likewise for "drive_name".
14702
14703 2007-06-11 Robert Millan <rmh@aybabtu.com>
14704
14705 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
14706 not just the cdrom one.
14707
14708 2007-06-11 Robert Millan <rmh@aybabtu.com>
14709
14710 * util/i386/pc/grub-mkrescue.in: Add "set -e".
14711 Add --pkglibdir=DIR option to override pkglibdir.
14712 Mention --image-type=TYPE in help output.
14713 Fix --grub-mkimage (it was a no-op).
14714 Abort gracefully when no parameter is given.
14715
14716 2007-06-11 Robert Millan <rmh@aybabtu.com>
14717
14718 * util/i386/pc/grub-mkrescue.in: New file.
14719 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
14720 * Makefile.in: Handle bin_SCRIPTS.
14721
14722 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
14723
14724 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
14725 list of video modes.
14726
14727 2007-06-06 Robert Millan <rmh@aybabtu.com>
14728
14729 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
14730 file doesn't exist, or if it is in a filesystem grub can't read.
14731
14732 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
14733 not abort if GRUB_DRIVE could not be defined. Rearrange generated
14734 header comment to fit in 80 columns when the variables are resolved.
14735
14736 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
14737 could be identified by update-grub. Remove redundant check for
14738 unifont.pff existence (since convert_system_path_to_grub_path now
14739 handles that).
14740
14741 2007-06-04 Robert Millan <rmh@aybabtu.com>
14742
14743 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
14744
14745 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
14746
14747 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
14748
14749 2007-06-04 Robert Millan <rmh@aybabtu.com>
14750
14751 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
14752
14753 * include/grub/partition.h: Declare grub_apple_partition_map_init and
14754 grub_apple_partition_map_fini.
14755
14756 * util/biosdisk.c
14757 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
14758 to access >2 TiB disks).
14759
14760 Print disk->total_sectors with %llu instead of %lu, since this
14761 variable is always 64-bit (prevents wrong disk size from being displayed
14762 on either >2 TiB disk or big-endian CPU).
14763
14764 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
14765 into a generic case that supports all (sane) partition maps.
14766
14767 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
14768 breaks big-endian.
14769
14770 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
14771 and grub_apple_partition_map_fini() after that.
14772
14773 2007-06-01 Robert Millan <rmh@aybabtu.com>
14774
14775 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
14776
14777 * util/grub.d/00_header.in: Only enable gfxterm when
14778 convert_system_path_to_grub_path() succeeds.
14779
14780 2007-05-20 Robert Millan <rmh@aybabtu.com>
14781
14782 * util/update-grub_lib.in: New file.
14783 * DISTLIST: Add update-grub_lib.in.
14784 * conf/common.rmk: Generate update-grub_lib and install it in
14785 $(lib_DATA).
14786 * Makefile.in: Add install routine for $(lib_DATA).
14787
14788 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
14789 function provided by update-grub_lib to support arbitrary paths of
14790 unifont.pff.
14791 * util/update-grub.in: Use convert_system_path_to_grub_path() to
14792 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
14793
14794 2007-05-19 Robert Millan <rmh@aybabtu.com>
14795
14796 * commands/i386/cpuid.c: New module.
14797 * DISTLIST: Add it.
14798 * conf/i386-efi.rmk: Enable cpuid.mod.
14799 * conf/i386-pc.rmk: Likewise.
14800
14801 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14802
14803 * kern/disk.c (grub_disk_read): Check return value of
14804 grub_realloc().
14805
14806 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14807
14808 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
14809 arrays.
14810 * disk/raid.c (grub_raid_open): Likewise.
14811
14812 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14813
14814 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
14815 stack instead of on the heap.
14816
14817 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
14818 before doing a read on it.
14819
14820 * configure.ac: Only use -fno-stack-protector for the target
14821 environment.
14822
14823 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14824
14825 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
14826 __attribute_ ((unused)) to mode_type argument.
14827
14828 * util/getroot.c (grub_guess_root_device): Fix #endif.
14829
14830 * kern/misc.c (memcmp): Fix prototype.
14831
14832 * include/grub/partition.h [GRUB_UTIL]
14833 (grub_gpt_partition_map_init): Add prototype.
14834 (grub_gpt_partition_map_fini): Likewise.
14835
14836 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
14837 at the right place.
14838
14839 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
14840 (grub_fat_read_data): Likewise.
14841 (grub_fat_find_dir): Likewise.
14842
14843 * font/manager.c (find_glyph): Make table a const.
14844 (grub_font_get_glyph): Remove bitmap from if statement.
14845
14846 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
14847
14848 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
14849 code, first search for device in /dev/mapper, then in /dev.
14850 (grub_util_get_grub_dev): New function.
14851 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
14852 prototype.
14853 * util/grub-probe.c (probe): Remove check for RAID, call
14854 grub_util_get_grub_dev() instead of
14855 grub_util_biosdisk_get_grub_dev().
14856 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
14857 grub_util_biosdisk_get_grub_dev().
14858 * util/i386/pc/grub-setup.c (main): Likewise.
14859
14860 2007-05-16 Robert Millan <rmh@aybabtu.com>
14861
14862 * DISTLIST: Update for the latest changes.
14863 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
14864 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
14865 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
14866 grub/util/biosdisk.h.
14867 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
14868 grub/util/biosdisk.h.
14869
14870 2007-05-16 Robert Millan <rmh@aybabtu.com>
14871
14872 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
14873
14874 2007-05-16 Robert Millan <rmh@aybabtu.com>
14875
14876 * util/i386/efi/grub-install.in: New.
14877 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
14878 newly added grub-install.
14879 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
14880 include.
14881 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
14882 grub/util/biosdisk.h.
14883 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
14884 grub/util/biosdisk.h.
14885
14886 2007-05-16 Robert Millan <rmh@aybabtu.com>
14887
14888 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
14889 * include/grub/util/biosdisk.h: ... here.
14890 * util/i386/pc/biosdisk.c: Moved to ...
14891 * util/biosdisk.c: ... here.
14892 * util/i386/pc/getroot.c: Moved to ...
14893 * util/getroot.c: ... here.
14894 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
14895 * util/grub-mkdevicemap.c: ... here.
14896 * util/i386/pc/grub-probe.c: Moved to ...
14897 * util/grub-probe.c: ... here.
14898
14899 2007-05-15 Robert Millan <rmh@aybabtu.com>
14900
14901 * util/update-grub.in: Remove duplicated line in grub.cfg header
14902 message.
14903
14904 2007-05-13 Robert Millan <rmh@aybabtu.com>
14905
14906 * util/update-grub.in: Fix a few assumptions about the devices holding
14907 /, /boot and /boot/grub being the same.
14908 * util/grub.d/00_header.in: Likewise.
14909 * util/grub.d/10_hurd.in: Likewise.
14910 * util/grub.d/10_linux.in: Likewise.
14911
14912 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
14913 patterns. Use that to define the `.old' suffix as older than `'.
14914
14915 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
14916
14917 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
14918 the grub.cfg header message.
14919
14920 2007-05-11 Robert Millan <rmh@aybabtu.com>
14921
14922 * util/update-grub.in: Create device.map if it doesn't already exist,
14923 before attempting to run grub-probe.
14924 Check for grub-probe and grub-mkdevicemap with the same code
14925 grub-install is using.
14926 Remove test mode.
14927
14928 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
14929
14930 * Makefile.in: Add the datarootdir autoconf variable.
14931
14932 2007-05-09 Robert Millan <rmh@aybabtu.com>
14933
14934 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
14935 fail gracefully if dev->disk->partition == NULL.
14936
14937 2007-05-07 Robert Millan <rmh@aybabtu.com>
14938
14939 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
14940 determine partition map module.
14941 * util/i386/pc/grub-install.in: Use this feature to decide which
14942 partition module to load, instead of hardcoding pc and gpt.
14943
14944 2007-05-07 Robert Millan <rmh@aybabtu.com>
14945
14946 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
14947 source directory differs from build directory.
14948
14949 2007-05-05 Robert Millan <rmh@aybabtu.com>
14950
14951 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
14952 initialisation.
14953
14954 2007-05-05 Robert Millan <rmh@aybabtu.com>
14955
14956 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
14957
14958 2007-05-05 Robert Millan <rmh@aybabtu.com>
14959
14960 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
14961 command-line arguments via ${GRUB_CMDLINE_LINUX}.
14962
14963 2007-05-05 Robert Millan <rmh@aybabtu.com>
14964
14965 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
14966 (grub_probe_SOURCES): Likewise.
14967 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
14968 GPT and initialize dos_part and bsd_part accordingly.
14969 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
14970 install_bsd_part.
14971 (main): Activate gpt module for use during partition identification,
14972 and deactivate it afterwards.
14973 * util/i386/pc/grub-install.in: Add gpt module to core.img.
14974 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
14975 partition identification, and deactivate it afterwards.
14976
14977 2007-05-05 Robert Millan <rmh@aybabtu.com>
14978
14979 * term/i386/pc/console.c (grub_console_fini): Call
14980 grub_term_set_current() before grub_term_unregister().
14981
14982 2007-05-04 Robert Millan <rmh@aybabtu.com>
14983
14984 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
14985 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
14986 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
14987 and update-grub_DATA.
14988 * conf/common.rmk: Build and install update-grub components.
14989 * conf/common.mk: Regenerate.
14990 * util/update-grub.in: New. Core of update-grub.
14991 * util/grub.d/00_header.in: New. Generates grub.cfg header.
14992 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
14993 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
14994 * util/grub.d/README: New. Document grub.d directory layout.
14995
14996 2007-05-01 Robert Millan <rmh@aybabtu.com>
14997
14998 * util/grub-emu.c: Move initialization functions
14999 grub_util_biosdisk_init() and grub_init_all() before
15000 grub_util_biosdisk_get_grub_dev(), which relies on them.
15001
15002 2007-04-19 Robert Millan <rmh@aybabtu.com>
15003
15004 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
15005 it is used later.
15006
15007 2007-04-18 Jerone Young <jerone@gmail.com>
15008
15009 * kernel/elf.c: Add missing parenthesis for conditional statement
15010 stanza.
15011
15012 2007-04-10 Jerone Young <jerone@gmail.com>
15013
15014 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
15015 continue on and look for device node with real device name.
15016
15017 2007-04-10 Jerone Young <jerone@gmail.com>
15018
15019 * configure.ac: Add argument for autoconf to use transformation
15020 ability.
15021 * Makefile.in: Add autoconf package transformation code.
15022 * util/i386/pc/grub-install.in: Likewise.
15023 * util/powerpc/ieee1275/grub-install.in: Likewise.
15024
15025 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
15026
15027 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
15028 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
15029 (EXT2_REVISION): Likewise.
15030 (EXT2_INODE_SIZE): Likewise.
15031 (struct grub_ext2_block_group): Added a missing member
15032 "used_dirs".
15033 (grub_ext2_read_inode): Divide by the inode size in a superblock
15034 instead of 128 to obtain INODES_PER_BLOCK.
15035 Use the macro EXT2_INODE_SIZE instead of directly using
15036 SBLOCK->INODE_SIZE.
15037
15038 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
15039
15040 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
15041 superblock instead of the structure size to compute an
15042 offset. This fixes the problem that GRUB could not read a
15043 filesystem when inode size is different from 128-byte.
15044
15045 2007-03-05 Marco Gerards <marco@gnu.org>
15046
15047 * normal/main.c (read_config_file): When "menu" is not set, create
15048 an initial context.
15049
15050 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
15051
15052 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
15053 (HEAP_LIMIT): New macro.
15054 (grub_claim_heap): Claim memory up to `heaplimit'.
15055
15056 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
15057
15058 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
15059 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
15060 (_start): Likewise.
15061 (grub_arch_modules_addr): Return address after `_end'.
15062 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
15063 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
15064 (add_segments): Calculate `_end' from phdr size and location.
15065 (ALIGN_UP): Moved to ...
15066 * include/grub/misc.h: here.
15067 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
15068 New macro.
15069 (GRUB_IEEE1275_MODULE_BASE): Removed.
15070
15071 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
15072
15073 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
15074 loop boundary.
15075
15076 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
15077
15078 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
15079 All users updated.
15080 (grub_elf64_load_hook_t): Likewise.
15081 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
15082 debug output.
15083
15084 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
15085
15086 * kern/mm.c: Update copyright.
15087 (grub_mm_debug): Correct syntax error.
15088 (grub_mm_dump_free): New function.
15089 (grub_debug_free): Call `grub_free'.
15090 * include/grub/mm.h: Update copyright.
15091 (grub_mm_dump_free): Add declaration.
15092
15093 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
15094
15095 * include/grub/ieee1275/ieee1275.h: Update copyright.
15096 * kern/powerpc/ieee1275/init.c: Likewise.
15097 * kern/powerpc/ieee1275/openfw.c: Likewise.
15098
15099 * loader/powerpc/ieee1275/linux.c: Likewise.
15100 * include/grub/elfload.h: Likewise.
15101 * kern/elf.c: Likewise.
15102 (grub_elf32_load): Pass `base' and `size' parameters. Update all
15103 callers.
15104 (grub_elf64_load): Likewise.
15105 (grub_elf32_load_segment): Move to a nested function.
15106 (grub_elf64_load_segment): Likewise.
15107
15108 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
15109
15110 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
15111 prototype.
15112 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
15113 (grub_heap_len): Likewise.
15114 (HEAP_SIZE): New macro.
15115 (grub_claim_heap): New function.
15116 (grub_machine_init): Don't claim heap directly. Call
15117 `grub_claim_heap'.
15118 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
15119 (grub_available_iterate): New function.
15120
15121 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
15122
15123 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
15124 * configure.ac: Use it for testing the HOST and TARGET compilers.
15125
15126 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
15127
15128 * Makefile.in (enable_grub_emu): New variable.
15129 * configure.ac (--enable-grub-emu): New option.
15130 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
15131 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
15132 * conf/i386-pc.rmk: Likewise.
15133 * conf/powerpc-ieee1275.rmk: Likewise.
15134 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
15135
15136 2006-12-12 Marco Gerards <marco@gnu.org>
15137
15138 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
15139
15140 * kern/env.c (grub_env_unset): Don't free the member `value' when
15141 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
15142 pointer.
15143
15144 * normal/main.c (current_menu): Removed.
15145 (free_menu): Unset the `menu' environment variable.
15146 (grub_normal_menu_addentry): Make use of the environment variable
15147 `menu', instead of using the global `current_menu'. Allocate
15148 memory for the sourcecode of this entry.
15149 (read_config_file): New argument `nested', changed all callers.
15150 Only in the case of a new context, initialize a new menu. Set the
15151 `menu' environment variable.
15152 (grub_normal_execute): Don't set and unset the environment
15153 variable `menu' here anymore. Only free the menu when leaving the
15154 context.
15155
15156 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
15157 leak.
15158
15159 2006-12-11 Marco Gerards <marco@gnu.org>
15160
15161 * normal/menu_entry.c (run): Fix off by one bug so the last line
15162 is executed. Move the loader check to outside the loop.
15163
15164 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
15165
15166 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
15167
15168 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
15169
15170 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
15171 the number of sectors. Reported by Andrey Shuvikov
15172 <mr_hyro@yahoo.com>.
15173
15174 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
15175
15176 * kern/disk.c (grub_disk_read): When there is a read error, always
15177 try to read only the necessary data.
15178
15179 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
15180 disk/raid.c.
15181 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
15182 prototype.
15183 [GRUB_UTIL] (grub_raid_fini): Likewise.
15184 [GRUB_UTIL] (grub_lvm_init): Likewise.
15185 [GRUB_UTIL] (grub_lvm_fini): Likewise.
15186 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
15187 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
15188 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
15189 and grub_raid_fini().
15190
15191 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
15192
15193 * include/grub/types.h (__unused): Rename to UNUSED.
15194 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
15195 (grub_elf64_size): Likewise.
15196
15197 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
15198
15199 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
15200 grub_error_push and grub_error_pop in the error-handling path.
15201 (grub_elf32_load_segment): Only call grub_file_read with non-zero
15202 length.
15203
15204 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
15205
15206 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
15207 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15208 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15209 (kernel_elf_SOURCES): Likewise.
15210 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
15211 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
15212 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
15213 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
15214 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
15215 (elf_mod_SOURCES): New variable.
15216 (elf_mod_CFLAGS): Likewise.
15217 (elf_mod_LDFLAGS): Likewise.
15218 * include/grub/types.h (__unused): New macro.
15219 * include/grub/elfload.h: New file.
15220 * kern/elf.c: Likewise.
15221 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
15222 (ELF32_LOADMASK): New macro.
15223 (ELF64_LOADMASK): Likewise.
15224 (vmlinux): Removed.
15225 (grub_linux_load32): New function.
15226 (grub_linux_load64): Likewise.
15227 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
15228 Use grub_elf_t instead of grub_file_t.
15229
15230 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
15231
15232 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
15233 `catch_result' to struct set_color_args.
15234
15235 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
15236
15237 * normal/menu.c: Include grub/script.h.
15238 * normal/menu_entry.c: Likewise.
15239 * include/grub/normal.h: Do not include grub/script.h.
15240
15241 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
15242
15243 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
15244
15245 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
15246
15247 * kern/disk.c (grub_disk_open): Print debug messages when opening a
15248 disk.
15249 (grub_disk_close): Print debug messages when closing a disk.
15250 (grub_disk_read): Print debug messages when disk read fails.
15251 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
15252 filesystem type.
15253 * kern/partition.c: Include misc.h.
15254 (grub_partition_iterate): Print debug messages when detecting
15255 partition type.
15256
15257 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
15258
15259 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
15260 is negative.
15261 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
15262
15263 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
15264
15265 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15266 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
15267
15268 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
15269
15270 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
15271 instead of sizeof(lv). Patch by Michael Guntsche.
15272
15273 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
15274
15275 * disk/lvm.c: Rename VGS to VG_LIST.
15276 (grub_lvm_iterate): Change VGS->LV to VG-LV.
15277 (grub_lvm_open): Likewise.
15278 Thanks to Michael Guntsche for finding this bug.
15279
15280 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15281
15282 * configure.ac (AC_INIT): Bumped to 1.95.
15283
15284 2006-10-14 Robert Millan <rmh@aybabtu.com>
15285
15286 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
15287 with "/dev/.static/dev/md".
15288
15289 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
15290
15291 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
15292 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
15293 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
15294 DRIVE_NAME are always freed.
15295
15296 * util/i386/pc/biosdisk.c (make_device_name): Add one into
15297 DOS_PART, as a DOS partition is counted from one instead of zero
15298 now. Reported by Robert Millan.
15299
15300 2006-10-14 Robert Millan <rmh@aybabtu.com>
15301
15302 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
15303 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
15304 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
15305 string returned by grub_guess_root_device.
15306 * util/i386/pc/grub-setup.c: Likewise.
15307 * util/i386/pc/grub-probefs.c: Likewise.
15308
15309 * util/i386/pc/grub-probefs.c: Rename to ...
15310 * util/i386/pc/grub-probe.c: ... this.
15311 * DISTLIST: Remove grub-probefs, add grub-probe.
15312 * conf/i386-efi.rmk: Likewise.
15313 * conf/i386-pc.rmk: Likewise.
15314 * util/i386/pc/grub-install.in: Likewise.
15315
15316 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
15317 choose which information we want to print.
15318
15319 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
15320
15321 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
15322 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
15323 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
15324 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
15325 video/readers/tga.c and video/i386/pc/vbeutil.c.
15326
15327 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
15328
15329 Added support for RAID and LVM.
15330
15331 * disk/lvm.c: New file.
15332 * disk/raid.c: Likewise.
15333 * include/grub/lvm.h: Likewise.
15334 * include/grub/raid.h: Likewise.
15335 * include/grub/util/lvm.h: Likewise.
15336 * include/grub/util/raid.h: Likewise.
15337 * util/lvm.c: Likewise.
15338 * util/raid.c: Likewise.
15339
15340 * include/grub/disk.h (grub_disk_dev_id): Add
15341 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
15342 (grub_disk_get_size): New prototype.
15343 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
15344 returns a partition.
15345 (grub_disk_get_size): New function.
15346
15347 * kern/i386/pc/init.c (make_install_device): Copy the prefix
15348 verbatim if grub_install_dos_part is -2.
15349
15350 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
15351 and LVM devices.
15352
15353 * util/i386/pc/grub-setup.c (setup): New argument
15354 MUST_EMBED. Force embedding of GRUB when the argument is
15355 true. Close FILE before returning.
15356 (main): Add support for RAID and LVM.
15357
15358 * conf/common.rmk: Add RAID and LVM modules.
15359 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
15360 util/lvm.c.
15361 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
15362
15363 * kern/misc.c (grub_strstr): New function.
15364 * include/grub/misc.h (grub_strstr): New prototype.
15365
15366 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
15367
15368 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
15369
15370 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
15371
15372 * kern/misc.c (grub_strtoull): Guess the base only if not
15373 specified.
15374
15375 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
15376
15377 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
15378 PowerMac support.
15379
15380 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
15381
15382 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
15383
15384 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
15385 Remove `flags' argument. All callers changed.
15386 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
15387 (IEEE1275_IHANDLE_INVALID): New variable.
15388 (IEEE1275_CELL_INVALID): New variable.
15389 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
15390 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
15391 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
15392 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
15393 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
15394 codes from Open Firmware. All callers updated.
15395 (grub_ieee1275_next_property): Directly return Open Firmware return
15396 code.
15397 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
15398 Standardize error checking from `grub_ieee1275_get_property'.
15399 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
15400 `devalias' to `aliases'. Correct comments. Consolidate error paths.
15401
15402 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
15403
15404 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
15405 `instance_to_package_args' to `instance_to_path_args'.
15406
15407 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
15408 `grub_ieee1275_chosen'.
15409
15410 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
15411 `grub_ieee1275_interpret'.
15412
15413 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
15414
15415 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
15416
15417 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
15418
15419 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
15420 (__cmpdi): Likewise.
15421
15422 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
15423 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
15424 `grub_ssize_t'.
15425
15426 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
15427
15428 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
15429 to type `grub_ssize_t'.
15430 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
15431
15432 2006-09-22 Marco Gerards <marco@gnu.org>
15433
15434 * normal/script.c (grub_script_create_cmdmenu): Skip leading
15435 newlines.
15436
15437 2006-09-22 Marco Gerards <marco@gnu.org>
15438
15439 * commands/echo.c: New file.
15440
15441 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
15442
15443 * conf/common.rmk (echo_mod_SOURCES): New variable.
15444 (echo_mod_CFLAGS): Likewise.
15445 (echo_mod_LDFLAGS): Likewise.
15446
15447 2006-09-22 Marco Gerards <marco@gnu.org>
15448
15449 * normal/main.c (get_line): Malloc memory instead of using
15450 preallocated memory. Removed the arguments `cmdline' and
15451 `max_len'. Updated all callers.
15452
15453 2006-09-22 Marco Gerards <marco@gnu.org>
15454
15455 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
15456 (normal_mod_DEPENDENCIES): Likewise.
15457
15458 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
15459 (normal_mod_DEPENDENCIES): Likewise.
15460
15461 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
15462
15463 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
15464
15465 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
15466 programs.
15467 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
15468 (normal_mod_DEPENDENCIES): Likewise.
15469 * conf/i386-pc.mk: Regenerate.
15470 * conf/i386-efi.mk: Likewise
15471 * conf/common.mk: Likewise.
15472 * conf/powerpc-ieee1275.mk: Likewise.
15473 * conf/sparc64-ieee1275.mk: Likewise.
15474
15475 2006-09-22 Robert Millan <rmh@aybabtu.com>
15476
15477 Sync with i386 version.
15478 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
15479 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
15480
15481 2006-09-21 Robert Millan <rmh@aybabtu.com>
15482
15483 Import from GRUB Legacy (lib/device.c):
15484 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
15485 (init_device_map) [__linux__]: Add support for I2O devices.
15486
15487 2006-09-14 Marco Gerards <marco@gnu.org>
15488
15489 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
15490 `-melf_i386'.
15491
15492 2006-09-14 Robert Millan <rmh@aybabtu.com>
15493
15494 * util/i386/pc/grub-install.in: Skip menu.lst when removing
15495 /boot/grub/*.lst.
15496
15497 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
15498
15499 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
15500 before adding it to device.map.
15501
15502 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
15503
15504 * genmk.rb: Let GCC generate dependencies the first time it
15505 compiles a file; using the -MD option.
15506 * conf/common.mk: Regenerate.
15507 * conf/i386-pc.mk: Likewise.
15508 * conf/i386-efi.mk: Likewise.
15509 * conf/powerpc-ieee1275.mk: Likewise.
15510 * conf/sparc64-ieee1275.mk: Likewise.
15511
15512 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
15513
15514 Move the prototypes of grub_setjmp and grub_longjmp to
15515 cpu/setjmp.h, so that each architecture may specify different
15516 attributes.
15517
15518 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
15519 (grub_longjmp): Likewise.
15520 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
15521 (grub_longjmp): Likewise.
15522 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
15523 (grub_longjmp): Likewise.
15524
15525 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
15526 [!GRUB_UTIL] (grub_longjmp): Removed.
15527
15528 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
15529
15530 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
15531 "color!" method does not return any value.
15532
15533 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15534
15535 * include/grub/bitmap.h: New file.
15536
15537 * include/grub/i386/pc/vbeutil.h: Likewise.
15538
15539 * video/bitmap.c: Likewise.
15540
15541 * video/readers/tga.c: Likewise.
15542
15543 * video/i386/pc/vbeutil.c: Likewise.
15544
15545 * commands/videotest.c: Code cleanup and updated to reflect to new
15546 video API.
15547
15548 * term/gfxterm.c: Likewise.
15549
15550 * video/video.c: Likewise.
15551
15552 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
15553 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
15554 (bitmap_mod_SOURCES): New entry.
15555 (bitmap_mod_CFLAGS): Likewise.
15556 (bitmap_mod_LDFLAGS): Likewise.
15557 (tga_mod_SOURCES): Likewise.
15558 (tga_mod_CFLAGS): Likewise.
15559 (tga_mod_LDFLAGS): Likewise.
15560
15561 * include/grub/video.h (grub_video_blit_operators): New enum type.
15562 (grub_video_render_target): Changed as forward declaration and moved
15563 actual definition to be video driver specific.
15564 (grub_video_adapter.blit_bitmap): Added blitting operator.
15565 (grub_video_adapter.blit_render_target): Likewise.
15566 (grub_video_blit_bitmap): Likewise.
15567 (grub_video_blit_render_target): Likewise.
15568
15569 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
15570 driver specific render target definition.
15571 (grub_video_vbe_map_rgba): Added driver internal helper.
15572 (grub_video_vbe_unmap_color): Updated to use
15573 grub_video_i386_vbeblit_info.
15574 (grub_video_vbe_get_video_ptr): Likewise.
15575
15576 * include/grub/i386/pc/vbeblit.h
15577 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
15578 grub_video_i386_vbeblit_info.
15579 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15580 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15581 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15582 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15583 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15584 (grub_video_i386_vbeblit_index_index): Likewise.
15585 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
15586 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15587 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15588 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
15589 operator.
15590 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
15591 operator.
15592
15593 * video/i386/pc/vbeblit.c: Updated to reflect changes on
15594 include/grub/i386/pc/vbeblit.h.
15595
15596 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
15597 Updated to use grub_video_i386_vbeblit_info.
15598 (grub_video_i386_vbefill_R8G8B8): Likewise.
15599 (grub_video_i386_vbefill_index): Likewise.
15600 (grub_video_i386_vbefill): Added generic filler.
15601
15602 * video/i386/pc/vbefill.c: Updated to reflect changes on
15603 include/grub/i386/pc/vbefill.h.
15604
15605 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
15606 grub_video_i386_vbeblit_info.
15607 (grub_video_vbe_unmap_color): Likewise.
15608 (grub_video_vbe_blit_glyph): Likewise.
15609 (grub_video_vbe_scroll): Likewise.
15610 (grub_video_vbe_draw_pixel): Removed function.
15611 (grub_video_vbe_get_pixel): Likewise.
15612 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
15613 updated code to use it.
15614 (common_blitter): Added common blitter for render target and bitmap.
15615 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
15616 (grub_video_vbe_blit_render_target): Likewise.
15617
15618 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
15619
15620 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
15621 is in text mode if there is no console control protocol instance
15622 available.
15623
15624 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15625
15626 * include/grub/video.h: Code cleanup.
15627
15628 * include/grub/i386/pc/vbe.h: Likewise.
15629
15630 * video/i386/pc/vbe.c: Likewise.
15631
15632 * video/i386/pc/vbeblit.c: Likewise.
15633
15634 * video/i386/pc/vbefill.c: Likewise.
15635
15636 * video/video.c: Likewise. Also added more comments.
15637
15638 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15639
15640 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
15641 (struct grub_biosdisk_dap): Likewise.
15642
15643 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
15644 linkage settings for all functions.
15645
15646 2006-07-12 Marco Gerards <marco@gnu.org>
15647
15648 * configure.ac (--enable-mm-debug): Fix typo.
15649
15650 * genkernsyms.sh.in: Use proper quoting for `CC'.
15651
15652 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
15653
15654 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
15655 (normal_mod_ASFLAGS): Remove "-m32".
15656
15657 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
15658
15659 * util/misc.c: Include config.h.
15660 [!HAVE_MEMALIGN]: Do not include malloc.h.
15661 (grub_memalign): Use posix_memalign, if present. Then, use
15662 memalign, if present. Otherwise, emit an error.
15663
15664 * util/grub-emu.c: Do not include malloc.h.
15665
15666 * include/grub/util/misc.h: Include unistd.h. This is required for
15667 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
15668 D. Eades III <hde@foobar-qux.org>.
15669
15670 * configure.ac (AC_GNU_SOURCE): Added.
15671 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
15672 type.
15673
15674 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
15675
15676 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
15677 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
15678
15679 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
15680
15681 * include/grub/types.h (grub_host_addr_t): Rename to
15682 grub_target_addr_t.
15683 (grub_host_off_t): Rename to grub_target_off_t.
15684 (grub_host_size_t): Rename to grub_target_size_t.
15685 (grub_host_ssize_t): Rename to grub_target_ssize_t.
15686 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
15687
15688 * include/grub/kernel.h (struct grub_module_header): Change type
15689 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
15690 (grub_module_info): Likewise.
15691
15692 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15693
15694 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
15695 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
15696 Velazquez <jesus.velazquez@gmail.com>.
15697
15698 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15699
15700 Count partitions from 1 instead of 0 in the string representation
15701 of partitions. Still use 0-based internally.
15702
15703 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
15704 (sun_partition_map_iterate): Use grub_partition_t instead of
15705 struct grub_partition *. Cast DESC->START_CYLINDER to
15706 grub_uint64_t after converting the endian.
15707 (sun_partition_map_probe): Subtract 1 for PARTNUM.
15708 (sun_partition_map_get_name): Add 1 to P->INDEX.
15709
15710 * partmap/pc.c (grub_partition_parse): Subtract 1 for
15711 PCDATA->DOS_PART.
15712 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
15713
15714 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
15715 zero instead of one.
15716 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
15717 (gpt_partition_map_get_name): Add 1 into P->INDEX.
15718
15719 * partmap/apple.c (apple_partition_map_iterate): Change the type
15720 of POS to unsigned.
15721 (apple_partition_map_probe): Subtract 1 for PARTNUM.
15722 (apple_partition_map_get_name): Add 1 into P->INDEX.
15723
15724 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
15725 of POS to unsigned.
15726 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
15727 calculate the offset of a partition.
15728 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
15729 (amiga_partition_map_get_name): Add 1 into P->INDEX.
15730
15731 * partmap/acorn.c (acorn_partition_map_find): Change the type of
15732 SECTOR to grub_disk_addr_t.
15733 (acorn_partition_map_iterate): Likewise.
15734 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
15735 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
15736 top.
15737 (acorn_partition_map_get_name): Add 1 into P->INDEX.
15738
15739 * kern/i386/pc/init.c (make_install_device): Add 1 into
15740 GRUB_INSTALL_DOS_PART.
15741
15742 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
15743 conditional.
15744
15745 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15746
15747 Clean up the code to support 64-bit addressing in disks and
15748 files. This change is not enough for filesystems yet.
15749
15750 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
15751 type of "start" to grub_uint64_t.
15752 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
15753 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
15754 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
15755 convert addresses.
15756
15757 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
15758 to grub_disk_addr_t.
15759
15760 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
15761 string.
15762
15763 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15764
15765 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
15766 to char *.
15767
15768 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
15769
15770 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
15771
15772 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
15773
15774 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
15775 to grub_off_t, to detect an error from grub_file_seek.
15776 (grub_multiboot_load_elf32): Likewise.
15777
15778 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
15779 maximum unsigned long value when an overflow is detected.
15780 (grub_strtoull): New function.
15781 (grub_divmod64): Likewise.
15782 (grub_lltoa): use grub_divmod64.
15783
15784 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
15785 grub_disk_addr_t.
15786 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
15787 the pointer to next character. Use grub_strtoull instead of
15788 grub_strtoul.
15789 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
15790 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
15791 respectively.
15792
15793 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
15794 return value is signed.
15795 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
15796 test if OFFSET is less than zero, as OFFSET is unsigned now.
15797
15798 * kern/disk.c (struct grub_disk_cache): Change the type of
15799 "sector" to grub_disk_addr_t.
15800 (grub_disk_cache_get_index): Change the type of SECTOR to
15801 grub_disk_addr_t. Calculate the hash with SECTOR casted to
15802 unsigned after shifting.
15803 (grub_disk_cache_invalidate): Change the type of SECTOR to
15804 grub_disk_addr_t.
15805 (grub_disk_cache_unlock): Likewise.
15806 (grub_disk_cache_store): Likewise.
15807 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
15808 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
15809 grub_disk_addr_t and grub_uint64_t, respectively.
15810 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
15811 body, as the value of OFFSET is tweaked by
15812 grub_disk_check_range. Change the types of START_SECTOR, LEN and
15813 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
15814 respectively.
15815 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
15816 body, as the value of OFFSET is tweaked by
15817 grub_disk_check_range. Change the types of LEN and N to
15818 grub_size_t.
15819
15820 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
15821 and "saved_offset" to grub_off_t.
15822 (test_header): Cast BUF to char *.
15823 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
15824 to char *.
15825 (grub_gzio_read): Change the types of OFFSET and SIZE to
15826 grub_off_t and grub_size_t, respectively.
15827
15828 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
15829 Removed.
15830 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
15831 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
15832 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
15833 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
15834 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
15835
15836 * include/grub/types.h (grub_off_t): Unconditionally set to
15837 grub_uint64_t.
15838 (grub_disk_addr_t): Changed to grub_uint64_t.
15839
15840 * include/grub/partition.h (struct grub_partition): Change the
15841 types of "start", "len" and "offset" to grub_disk_addr_t,
15842 grub_uint64_t and grub_disk_addr_t, respectively.
15843 (grub_partition_get_start): Return grub_disk_addr_t.
15844 (grub_partition_get_len): Return grub_uint64_t.
15845
15846 * include/grub/misc.h (grub_strtoull): New prototype.
15847 (grub_divmod64): Likewise.
15848
15849 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
15850 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
15851 grub_off_t, respectively.
15852 All callers and references changed.
15853
15854 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
15855 grub_size_t in "read".
15856 All callers and references changed.
15857
15858 * include/grub/file.h (struct grub_file): Change the types of
15859 "offset" and "size" to grub_off_t and grub_off_t,
15860 respectively. Change the type of SECTOR to grub_disk_addr_t in
15861 "read_hook".
15862 (grub_file_read): Change the type of LEN to grub_size_t.
15863 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
15864 grub_off_t.
15865 (grub_file_size): Return grub_off_t.
15866 (grub_file_tell): Likewise.
15867 All callers and references changed.
15868
15869 * include/grub/disk.h (struct grub_disk_dev): Change the types of
15870 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
15871 "write".
15872 (struct grub_disk): Change the type of "total_sectors" to
15873 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
15874 "read_hook".
15875 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
15876 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
15877 (grub_disk_write): Likewise.
15878 All callers and references changed.
15879
15880 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
15881 char * for grub_strncmp to silence gcc.
15882 (grub_iso9660_mount): Likewise.
15883 (grub_iso9660_mount): Likewise.
15884 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
15885 return statement.
15886 (grub_iso9660_iterate_dir): Likewise.
15887 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
15888
15889 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
15890 LEN to grub_disk_addr_t and grub_size_t, respectively.
15891
15892 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
15893
15894 * fs/jfs.c (grub_jfs_read_file): Likewise.
15895
15896 * fs/minix.c (grub_jfs_read_file): Likewise.
15897
15898 * fs/sfs.c (grub_jfs_read_file): Likewise.
15899
15900 * fs/ufs.c (grub_jfs_read_file): Likewise.
15901
15902 * fs/xfs.c (grub_jfs_read_file): Likewise.
15903
15904 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
15905 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
15906 respectively.
15907
15908 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
15909 BLKNR to -1 instead of returning GRUB_ERRNO.
15910 (grub_ext2_read_file): Change the types of SECTOR and
15911 LEN to grub_disk_addr_t and grub_size_t, respectively.
15912
15913 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
15914 LEN to grub_disk_addr_t and grub_size_t, respectively.
15915
15916 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
15917 grub_file_read.
15918
15919 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
15920 string. Do not cast SECTOR explicitly.
15921
15922 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
15923 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
15924 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
15925 grub_disk_addr_t and grub_size_t, respectively. If the sector is
15926 over 2TB and LBA mode is not supported, raise an error.
15927 (get_safe_sectors): New function.
15928 (grub_biosdisk_read): Use get_safe_sectors.
15929 (grub_biosdisk_write): Likewise.
15930
15931 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
15932 (grub_efidisk_write): Likewise.
15933
15934 * disk/loopback.c (delete_loopback): Cosmetic changes.
15935 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
15936 correctly.
15937 (grub_loopback_open): Likewise.
15938 (grub_loopback_read): Likewise. Also, change the type of POS to
15939 grub_off_t, and fix the usage of grub_memset.
15940
15941 * commands/i386/pc/play.c: Include grub/machine/time.h.
15942
15943 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
15944 print FILE->SIZE.
15945
15946 * commands/configfile.c: Include grub/env.h.
15947
15948 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
15949 GRUB_ERRNO directly instead. Change the type of POS to
15950 grub_off_t. Follow the coding standard.
15951
15952 * commands/blocklist.c: Include grub/partition.h.
15953 (grub_cmd_blocklist): Return an error if the underlying device is
15954 not a disk. Take the starting sector of a partition into account,
15955 if a partition is used.
15956
15957 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
15958 a length field.
15959 (lba_mode): Support 64-bit addresses.
15960 (chs_mode): Likewise.
15961 (copy_buffer): Adapted to the new offsets of a length field and a
15962 segment field.
15963 (blocklist_default_start): Allocate 64-bit space.
15964
15965 * boot/i386/pc/boot.S (force_lba): Removed.
15966 (boot_drive): Moved to under KERNEL_SECTOR.
15967 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
15968 space.
15969 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
15970 is useless.
15971 (lba_mode): Refactored to support a 64-bit address. More size
15972 optimization.
15973 (setup_sectors): Likewise.
15974
15975 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15976
15977 * DISTLIST: Added include/grub/i386/linux.h. Removed
15978 include/grub/i386/pc/linux.h
15979
15980 * configure.ac (AC_INIT): Bumped to 1.94.
15981
15982 * config.guess: Updated from gnulib.
15983 * config.sub: Likewise.
15984 * install-sh: Likewise.
15985 * mkinstalldirs: Likewise.
15986
15987 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15988
15989 * conf/common.rmk (grub_modules_init.lst): Depended on
15990 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
15991 MODSRCFILES.
15992
15993 * genmk.rb (PModule::rule): Reverted the previous change.
15994
15995 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15996
15997 * conf/common.rmk (grub_modules_init.lst): Depends on
15998 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
15999 that the target does not exist before producing.
16000 (grub_modules_init.h): Remove the target before generating.
16001 (grub_emu_init.c): Likewise.
16002
16003 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
16004
16005 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
16006
16007 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
16008 for the target-specific tests. Make sure that we also have the
16009 up-to-date target variables for those tests.
16010
16011 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
16012
16013 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
16014 (PModule::rule): Likewise.
16015
16016 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
16017
16018 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
16019 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
16020 target-specific flags should be prefixed.
16021 (PModule::rule): Likewise.
16022
16023 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
16024
16025 * configure.ac (CMP): Check if cmp is available explicitly.
16026
16027 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
16028
16029 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
16030 (target_cpu): New variable.
16031 (pkglibdir): Use target_cpu instead of host_cpu.
16032
16033 * util/i386/pc/grub-install.in (host_cpu): Removed.
16034 (target_cpu): New variable.
16035 (pkglibdir): Use target_cpu instead of host_cpu.
16036
16037 * util/genmoddep.c: Removed.
16038
16039 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
16040 instead of GRUB_HOST_SIZEOF_VOID_P.
16041 * kern/dl.c: Likewise.
16042
16043 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
16044 ...
16045 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
16046 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
16047 (GRUB_TARGET_SIZEOF_LONG): ... this.
16048 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
16049 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
16050 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
16051 to ...
16052 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
16053 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
16054 (GRUB_TARGET_SIZEOF_LONG): ... this.
16055 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
16056 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
16057 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
16058 to ...
16059 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
16060 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
16061 (GRUB_TARGET_SIZEOF_LONG): ... this.
16062 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
16063 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
16064
16065 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
16066 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
16067 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
16068 instead of GRUB_HOST_SIZEOF_LONG.
16069 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
16070 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
16071 GRUB_CPU_WORDS_BIGENDIAN.
16072 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
16073 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
16074 grub_host_ssize_t.
16075
16076 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
16077 (genmoddep_SOURCES): Likewise.
16078 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
16079 (genmoddep_SOURCES): Likewise.
16080 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
16081 (genmoddep_SOURCES): Likewise.
16082 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
16083 Likewise.
16084 (genmoddep_SOURCES): Likewise.
16085
16086 * genmoddep.awk: New file.
16087
16088 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
16089 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
16090 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
16091 (PModule::rule): Likewise.
16092 (Program::rule): Likewise.
16093 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
16094 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
16095 respectively.
16096
16097 * configure.ac: Rewritten intensively to use host and target
16098 instead of build and host, respectively.
16099
16100 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
16101 (host_cpu): Removed.
16102 (target_cpu): New variable.
16103 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
16104 (BUILD_CC): Removed.
16105 (BUILD_CFLAGS): Likewise.
16106 (BUILD_CPPFLAGS): Likewise.
16107 (TARGET_CC): New variable.
16108 (TARGET_CFLAGS): Likewise.
16109 (TARGET_CPPFLAGS): Likewise.
16110 (TARGET_LDFLAGS): Likewise.
16111 (AWK): Likewise.
16112 (include): Use target_cpu instead of host_cpu.
16113 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
16114
16115 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
16116
16117 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
16118
16119 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
16120 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
16121 field 'false' to 'exec_on_false'.
16122 (grub_script_create_cmdif): Renamed argument names to reflect above
16123 changes.
16124
16125 * normal/execute.c (grub_script_execute_cmdif): Likewise.
16126
16127 * normal/script.c (grub_script_create_cmdif): Likewise.
16128
16129 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
16130
16131 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
16132 top.
16133 (grub_hfsplus_btree_recptr): Likewise.
16134 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
16135 FILEBLOCK both to pass a block number and store next block
16136 number.
16137 (grub_hfsplus_read_block): Rewritten heavily to support an extent
16138 overflow file correctly. Specify errors appropriately, because
16139 fshelp expects that GRUB_ERRNO is set when fails. Reuse
16140 grub_hfsplus_btree_recptr to get the pointer to a found key.
16141 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
16142 is found.
16143
16144 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
16145 linux.mod.
16146 (_linux_mod_SOURCES): New variable.
16147 (_linux_mod_CFLAGS): Likewise.
16148 (_linux_mod_LDFLAGS): Likewise.
16149 (linux_mod_SOURCES): Likewise.
16150 (linux_mod_CFLAGS): Likewise.
16151 (linux_mod_LDFLAGS): Likewise.
16152
16153 * DISTLIST: Added loader/i386/efi/linux.c,
16154 loader/i386/efi/linux_normal.c and
16155 include/grub/i386/efi/loader.h.
16156
16157 * loader/i386/efi/linux.c: New file.
16158 * loader/i386/efi/linux_normal.c: Likewise.
16159 * include/grub/i386/efi/loader.h: Likewise.
16160
16161 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
16162
16163 * commands/blocklist.c: New file.
16164
16165 * DISTLIST: Added commands/blocklist.c.
16166
16167 * term/efi/console.c (grub_console_highlight_color): Use a lighter
16168 color for the background, and a darker color for the foreground.
16169 (grub_console_checkkey): Return READ_KEY.
16170 (grub_console_cls): Set the background to
16171 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
16172
16173 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
16174
16175 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
16176 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
16177
16178 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
16179 prototype.
16180
16181 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
16182 BG. The spec is wrong again.
16183
16184 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
16185 prototype.
16186 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
16187
16188 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16189 commands/blocklist.c.
16190 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16191
16192 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
16193 (blocklist_mod_SOURCES): New variable.
16194 (blocklist_mod_CFLAGS): Likewise.
16195 (blocklist_mod_LDFLAGS): Likewise.
16196
16197 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
16198
16199 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
16200 duplication.
16201 (lba_mode): Use %eax more intensively to reduce the code size.
16202
16203 2006-05-20 Marco Gerards <marco@gnu.org>
16204
16205 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
16206
16207 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
16208 for `menuentry'.
16209 (script): Accept leading newlines.
16210 (newlines): New rule to describe 0 or more newlines.
16211 (commands): Accept `command' with trailing newline. Fixed the
16212 order in which arguments were passed to `grub_script_add_cmd'.
16213 Accept commands separated by newlines.
16214 (function): Changed to accept newlines.
16215 (menuentry) Rewritten.
16216
16217 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
16218 front of the list, instead of to the end.
16219
16220 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
16221
16222 * util/i386/pc/grub-install.in (bindir): New variable.
16223 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
16224 Shaver <lbgwjl@gmail.com>.
16225
16226 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
16227
16228 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
16229 grub/machine/linux.h
16230 * loader/i386/pc/linux.c: Likewise.
16231
16232 * include/grub/i386/pc/linux.h: Moved to ...
16233 * include/grub/i386/linux.h: ... here.
16234
16235 * include/grub/i386/linux.h (struct linux_kernel_params): New
16236 struct.
16237
16238 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
16239
16240 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
16241 checking.
16242 (grub_video_vbe_blit_glyph): Likewise.
16243 (grub_video_vbe_blit_bitmap): Likewise.
16244 (grub_video_vbe_blit_render_target): Likewise.
16245
16246 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
16247
16248 * configure.ac (--with-platform): Properly quote the square
16249 brackets.
16250
16251 2006-05-08 Marco Gerards <marco@gnu.org>
16252
16253 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
16254 this...
16255 (kernel_elf_HEADERS): ...to this. Updated all users.
16256 (grubof_symlist.c): Renamed from this...
16257 (kernel_elf_symlist.c): ...to this. Updated all users.
16258 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
16259 (grubof_SOURCES): Renamed from this...
16260 (kernel_elf_SOURCES): ...to this.
16261 (grubof_HEADERS): Renamed from this...
16262 (kernel_elf_HEADERS): ...to this.
16263 (grubof_CFLAGS): Renamed from this...
16264 (kernel_elf_CFLAGS): ...to this.
16265 (grubof_ASFLAGS): Renamed from this...
16266 (kernel_elf_ASFLAGS): ...to this.
16267 (grubof_LDFLAGS): Renamed from this...
16268 (kernel_elf_LDFLAGS): ...to this.
16269
16270 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
16271 this...
16272 (kernel_elf_HEADERS): ...to this. Updated all users.
16273 (grubof_symlist.c): Renamed from this...
16274 (kernel_elf_symlist.c): ...to this. Updated all users.
16275 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
16276 (grubof_SOURCES): Renamed from this...
16277 (kernel_elf_SOURCES): ...to this.
16278 (grubof_HEADERS): Renamed from this...
16279 (kernel_elf_HEADERS): ...to this.
16280 (grubof_CFLAGS): Renamed from this...
16281 (kernel_elf_CFLAGS): ...to this.
16282 (grubof_ASFLAGS): Renamed from this...
16283 (kernel_elf_ASFLAGS): ...to this.
16284 (grubof_LDFLAGS): Renamed from this...
16285 (kernel_elf_LDFLAGS): ...to this.
16286
16287 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
16288 `kernel.elf' instead of `grubof'.
16289
16290 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
16291
16292 Add --with-platform to configure. Use pkglibdir instead of
16293 pkgdatadir. This is reported by Roger Leigh.
16294
16295 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
16296 (host_vendor): Likewise.
16297 (host_os): Likewise.
16298 (pkgdatadir): Likewise.
16299 (platform): New variable.
16300 (pkglibdir): Likewise.
16301 Use PKGLIBDIR instead of PKGDATADIR.
16302
16303 * util/i386/pc/grub-install.in (datadir): Removed.
16304 (host_vendor): Likewise.
16305 (host_os): Likewise.
16306 (pkgdatadir): Likewise.
16307 (platform): New variable.
16308 (pkglibdir): Likewise.
16309 Use PKGLIBDIR instead of PKGDATADIR.
16310
16311 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
16312 instead of GRUB_DATADIR.
16313 (main): Likewise.
16314 * util/i386/pc/grub-mkimage.c (usage): Likewise.
16315 (main): Likewise.
16316 * util/i386/efi/grub-mkimage.c (usage): Likewise.
16317 (main): Likewise.
16318
16319 * configure.ac (--with-platform): New option.
16320 Use PLATFORM instead of HOST_VENDOR to specify a platform.
16321
16322 * Makefile.in: Include a makefile based on PLATFORM instead of
16323 HOST_VENDOR.
16324 (pkgdatadir): Not appended by the machine type.
16325 (pkglibdir): Appended by the machine type.
16326 (host_vendor): Removed.
16327 (platform): New variable.
16328 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
16329 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
16330 (uninstall): Likewise.
16331
16332 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
16333
16334 Use the environment context in the menu. Remove the commands
16335 "default" and "timeout", and use variables instead.
16336
16337 * normal/menu.c: Include grub/env.h.
16338 (print_entry): Cast TITLE to silence gcc.
16339 (get_timeout): New function.
16340 (set_timeout): Likewise.
16341 (get_entry_number): Likewise.
16342 (run_menu): Use a default entry, a fallback entry and a timeout
16343 in the environment variables "default", "fallback" and
16344 "timeout". Also, tweak the default entry if it is not within the
16345 current menu entries.
16346 (grub_menu_run): Use a fallback entry in the environment variable
16347 "fallback".
16348
16349 * normal/main.c (read_config_file): Do not initialize
16350 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
16351 NEWMENU->TIMEOUT.
16352 (grub_normal_execute): Use a data slot to store the menu.
16353
16354 * include/grub/normal.h (struct grub_menu): Removed default_entry,
16355 fallback_entry and timeout.
16356 (struct grub_menu_list): Removed.
16357 (grub_menu_list_t): Likewise.
16358 (struct grub_context): Likewise.
16359 (grub_context_t): Likewise.
16360 (grub_context_get): Likewise.
16361 (grub_context_get_current_menu): Likewise.
16362 (grub_context_push_menu): Likewise.
16363 (grub_context_pop_menu): Likewise.
16364 (grub_default_init): Likewise.
16365 (grub_default_fini): Likewise.
16366 (grub_timeout_init): Likewise.
16367 (grub_timeout_fini): Likewise.
16368
16369 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
16370 and timeout.mod.
16371 (normal_mod_SOURCES): Removed normal/context.c.
16372
16373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
16374 commands/default.c, commands/timeout.c and normal/context.c.
16375 (normal_mod_SOURCES): Removed normal/context.c.
16376
16377 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
16378 commands/timeout.c and normal/context.c.
16379 (normal_mod_SOURCES): Removed normal/context.c.
16380
16381 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
16382 commands/default.c, commands/timeout.c and normal/context.c.
16383 (normal_mod_SOURCES): Removed normal/context.c.
16384
16385 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
16386 timeout.mod.
16387 (default_mod_SOURCES): Removed.
16388 (default_mod_CFLAGS): Likewise.
16389 (default_mod_LDFLAGS): Likewise.
16390 (timeout_mod_SOURCES): Removed.
16391 (timeout_mod_CFLAGS): Likewise.
16392 (timeout_mod_LDFLAGS): Likewise.
16393
16394 * DISTLIST: Removed commands/default.c, commands/timeout.c and
16395 normal/context.c.
16396
16397 * commands/default.c: Removed.
16398 * commands/timeout.c: Likewise.
16399 * normal/context.c: Likewise.
16400
16401 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
16402
16403 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
16404
16405 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
16406
16407 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
16408 "next" to "prev" for readability.
16409 (struct grub_env_sorted_var): New struct.
16410 (grub_env_context): Renamed to ...
16411 (initial_context): ... this.
16412 (grub_env_var_context): Renamed to ...
16413 (current_context): ... this.
16414 (grub_env_find): Look only at CURRENT_CONTEXT.
16415 (grub_env_context_open): Rewritten to copy exported variables from
16416 previous context.
16417 (grub_env_context_close): Rewritten according to the new
16418 scheme. Also, add an assertion to prevent the initial context from
16419 removed.
16420 (grub_env_insert): Removed the code for the sorted list.
16421 (grub_env_remove): Likewise.
16422 (grub_env_export): Simply mark the variable with
16423 GRUB_ENV_VAR_GLOBAL.
16424 (grub_env_set): A cosmetic change for naming consistency.
16425 (grub_env_get): Likewise.
16426 (grub_env_unset): Likewise.
16427 (grub_env_iterate): Rewritten to sort variables within this
16428 function.
16429 (grub_register_variable_hook): Fixed for naming consistency. Call
16430 grub_env_find again, only if NAME is not found at the first time.
16431 (mangle_data_slot_name): New function.
16432 (grub_env_set_data_slot): Likewise.
16433 (grub_env_get_data_slot): Likewise.
16434 (grub_env_unset_data_slot): Likewise.
16435
16436 * include/grub/env.h (grub_env_var_type): New enum.
16437 (GRUB_ENV_VAR_LOCAL): New constant.
16438 (GRUB_ENV_VAR_GLOBAL): Likewise.
16439 (GRUB_ENV_VAR_DATA): Likewise.
16440 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
16441 "type".
16442 (grub_env_set): Replace VAR with NAME for consistency.
16443 (grub_register_variable_hook): Likewise.
16444 (grub_env_export): Specify the name of the argument.
16445 (grub_env_set_data_slot): New prototype.
16446 (grub_env_get_data_slot): Likewise.
16447 (grub_env_unset_data_slot): Likewise.
16448
16449 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
16450
16451 Extend the loader so that GRUB can accept a loader which comes
16452 back to GRUB when a loaded image exits. Also, this change adds
16453 support for a chainloader on EFI.
16454
16455 * term/efi/console.c: Include grub/misc.h.
16456 (grub_console_checkkey): Display a scan code on the top for
16457 debugging. This will be removed once the EFI port gets stable.
16458 Correct the scan code mapping.
16459
16460 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
16461 allocate memory from larger regions, in order to reduce the number
16462 of allocated regions. Otherwise, the MacOSX loader panics.
16463 (filter_memory_map): Avoid less than 1MB for compatibility with
16464 other loaders.
16465 (add_memory_regions): Allocate from the tail of a region, if
16466 possible, to avoid allocating a region near to 1MB, for the MacOSX
16467 loader.
16468
16469 * kern/efi/init.c (grub_efi_set_prefix): Specify
16470 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
16471
16472 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
16473 argument IMAGE_HANDLE and specify it to get a loaded image.
16474 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
16475 grub_efi_get_loaded_image.
16476 (grub_efi_get_filename): Divide the length by the size of
16477 grub_efi_char16_t.
16478 (grub_efi_get_device_path): New function.
16479 (grub_efi_print_device_path): Print End Device Path nodes. Divide
16480 the length by the size of grub_efi_char16_t for a file path device
16481 path node.
16482
16483 * kern/loader.c (grub_loader_noreturn): New variable.
16484 (grub_loader_set): Accept a new argument NORETURN. Set
16485 GRUB_LOADER_NORETURN to NORETURN.
16486 All callers changed.
16487 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
16488 grub_machine_fini.
16489
16490 * include/grub/efi/efi.h (grub_efi_get_device_path): New
16491 prototype.
16492 (grub_efi_get_loaded_image): Take an argument to specify an image
16493 handle.
16494
16495 * include/grub/loader.h (grub_loader_set): Added one more argument
16496 NORETURN.
16497
16498 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
16499 instead of grub_efi_open_protocol.
16500 (grub_efidisk_get_device_name): Likewise.
16501 (grub_efidisk_close): Print a newline.
16502 (grub_efidisk_get_device_handle): Fixed to use
16503 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
16504 GRUB_EFI_DEVICE_PATH_TYPE.
16505
16506 * disk/efi/efidisk.c (device_path_guid): Moved to ...
16507 * kern/efi/efi.c (device_path_guid): ... here.
16508
16509 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
16510 chain.mod.
16511 (kernel_mod_HEADERS): Added efi/disk.h.
16512 (_chain_mod_SOURCES): New variable.
16513 (_chain_mod_CFLAGS): Likewise.
16514 (_chain_mod_LDFLAGS): Likewise.
16515 (chain_mod_SOURCES): Likewise.
16516 (chain_mod_CFLAGS): Likewise.
16517 (chain_mod_LDFLAGS): Likewise.
16518
16519 * DISTLIST: Added include/grub/efi/chainloader.h,
16520 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
16521
16522 * include/grub/efi/chainloader.h: New file.
16523 * loader/efi/chainloader.c: Likewise.
16524 * loader/efi/chainloader_normal.c: Likewise.
16525
16526 2006-04-30 Marco Gerards <marco@gnu.org>
16527
16528 * commands/configfile.c (grub_cmd_source): New function.
16529 (GRUB_MOD_INIT): Register the commands `source' and `.'.
16530 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
16531
16532 2006-04-30 Marco Gerards <marco@gnu.org>
16533
16534 * normal/execute.c (grub_script_execute_cmd): Change the return
16535 type to `grub_err_t'. Correctly return the error.
16536 (grub_script_execute_cmdline): In case a command line is not a
16537 command or a function, try to interpret it as an assignment.
16538
16539 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
16540
16541 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
16542 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
16543 skip a node whose name is obviously invalid as UTF-16,
16544 i.e. contains a NUL character. Stop the iteration when the last
16545 directory entry is found. Instead of using the return value of
16546 grub_hfsplus_btree_iterate_node, store the value in RET and use
16547 it, because the iterator can be stopped by the last directory
16548 entry.
16549
16550 2006-04-30 Marco Gerards <marco@gnu.org>
16551
16552 * include/grub/env.h (grub_env_export): New prototype. Reported
16553 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
16554
16555 2006-04-30 Marco Gerards <marco@gnu.org>
16556
16557 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
16558 size of the extents in a catalog file record.
16559
16560 2006-04-29 Marco Gerards <marco@gnu.org>
16561
16562 * commands/configfile.c (grub_cmd_configfile): Execute the
16563 configfile within its own context.
16564
16565 * include/grub/env.h (grub_env_context_open): New prototype.
16566 (grub_env_context_close): Likewise.
16567
16568 * kern/env.c (grub_env): Removed.
16569 (grub_env_sorted): Likewise.
16570 (grub_env_context): New variable.
16571 (grub_env_var_context): Likewise.
16572 (grub_env_find): Search both the active context and the global
16573 context.
16574 (grub_env_context_open): New function.
16575 (grub_env_context_close): Likewise.
16576 (grub_env_insert): Likewise.
16577 (grub_env_remove): Likewise.
16578 (grub_env_export): Likewise.
16579 (grub_env_set): Changed to use helper functions to avoid code
16580 duplication.
16581 (grub_env_iterate): Rewritten so both the current context and the
16582 global context are being used.
16583
16584 * normal/command.c (export_command): New function.
16585 (grub_command_init): Register the `export' function.
16586
16587 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
16588
16589 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
16590 explicitly to suppress gcc's warnings.
16591 * fs/fat.c (grub_fat_find_dir): Likewise.
16592 (grub_fat_label): Likewise.
16593 * fs/xfs.c (grub_xfs_read_inode): Likewise.
16594 (grub_xfs_mount): Likewise.
16595 (grub_xfs_label): Likewise.
16596 * fs/affs.c (grub_affs_mount): Likewise.
16597 (grub_affs_label): Likewise.
16598 (grub_affs_iterate_dir): Likewise.
16599 * fs/sfs.c (grub_sfs_mount): Likewise.
16600 (grub_sfs_iterate_dir): Likewise.
16601 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
16602 * fs/hfs.c (grub_hfs_mount): Likewise.
16603 (grub_hfs_cmp_catkeys): Likewise.
16604 (grub_hfs_find_dir): Likewise.
16605 (grub_hfs_dir): Likewise.
16606 (grub_hfs_label): Likewise.
16607 * fs/jfs.c (grub_jfs_mount): Likewise.
16608 (grub_jfs_opendir): Likewise.
16609 (grub_jfs_getent): Likewise.
16610 (grub_jfs_lookup_symlink): Likewise.
16611 (grub_jfs_label): Likewise.
16612 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
16613 (grub_hfsplus_iterate_dir): Likewise.
16614 (grub_hfsplus_btree_iterate_node): Made static.
16615
16616 * util/grub-emu.c (prefix): New variable.
16617 (grub_machine_set_prefix): New function.
16618 (main): Do not set the environment variable "prefix" here. Only
16619 set PREFIX, which is used later by grub_machine_set_prefix.
16620
16621 * include/grub/video.h: Do not include grub/symbol.h.
16622 (grub_video_register): Not exported. This symbol is not defined in
16623 the kernel.
16624 (grub_video_unregister): Likewise.
16625 (grub_video_iterate): Likewise.
16626 (grub_video_setup): Likewise.
16627 (grub_video_restore): Likewise.
16628 (grub_video_get_info): Likewise.
16629 (grub_video_get_blit_format): Likewise.
16630 (grub_video_set_palette): Likewise.
16631 (grub_video_get_palette): Likewise.
16632 (grub_video_set_viewport): Likewise.
16633 (grub_video_get_viewport): Likewise.
16634 (grub_video_map_color): Likewise.
16635 (grub_video_map_rgb): Likewise.
16636 (grub_video_map_rgba): Likewise.
16637 (grub_video_fill_rect): Likewise.
16638 (grub_video_blit_glyph): Likewise.
16639 (grub_video_blit_bitmap): Likewise.
16640 (grub_video_blit_render_target): Likewise.
16641 (grub_video_scroll): Likewise.
16642 (grub_video_swap_buffers): Likewise.
16643 (grub_video_create_render_target): Likewise.
16644 (grub_video_delete_render_target): Likewise.
16645 (grub_video_set_active_render_target): Likewise.
16646
16647 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
16648 Undefined.
16649 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
16650
16651 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
16652 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16653 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16654 instead of $(srcdir)/genkernsyms.sh.
16655
16656 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
16657 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16658 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16659 instead of $(srcdir)/genkernsyms.sh.
16660
16661 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
16662 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16663 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16664 instead of $(srcdir)/genkernsyms.sh.
16665
16666 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
16667 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16668 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16669 instead of $(srcdir)/genkernsyms.sh.
16670
16671 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
16672 genkernsyms.sh.
16673
16674 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
16675 genkernsyms.sh.
16676 (gensymlist.sh): New target.
16677 (genkernsyms.sh): Likewise.
16678
16679 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
16680 genkernsyms.sh.in and gensymlist.sh.in.
16681
16682 * genkernsyms.sh: Removed.
16683 * gensymlist.sh: Likewise.
16684
16685 * genkernsyms.sh.in: New file.
16686 * gensymlist.sh.in: Likewise.
16687
16688 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16689
16690 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
16691 clobber "prefix", since we may have already set it manually.
16692
16693 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16694
16695 * kern/misc.c (abort): New alias for grub_abort.
16696
16697 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
16698
16699 A new machine-specific function "grub_machine_set_prefix" is
16700 defined. This is called after loading modules, so that a prefix
16701 initialization can use modules. Also, this change adds an
16702 intensive debugging feature for the memory manager via the
16703 configure option "--enable-mm-debug".
16704
16705 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
16706 PART.LEN.
16707
16708 * kern/sparc64/ieee1275/init.c (abort): Removed.
16709 (grub_stop): Likewise.
16710 (grub_exit): New function.
16711 (grub_set_prefix): Renamed to ...
16712 (grub_machine_set_prefix): ... this.
16713 (grub_machine_init): Do not call grub_set_prefix.
16714
16715 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
16716 (grub_machine_set_prefix): ... this.
16717 (grub_machine_init): Do not call grub_set_prefix.
16718
16719 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
16720 (grub_machine_init): Do not set the prefix here.
16721
16722 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
16723
16724 * kern/efi/init.c: Include grub/mm.h.
16725 (grub_efi_set_prefix): New function.
16726
16727 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
16728 (grub_efi_get_filename): New function.
16729 (grub_print_device_path): Renamed to ...
16730 (grub_efi_print_device_path): ... this.
16731
16732 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
16733 [MM_DEBUG] (grub_realloc): Likewise.
16734 [MM_DEBUG] (grub_free): Likewise.
16735 [MM_DEBUG] (grub_memalign): Likewise.
16736 [MM_DEBUG] (grub_mm_debug): New variable.
16737 [MM_DEBUG] (grub_debug_malloc): New function.
16738 [MM_DEBUG] (grub_debug_free): New function.
16739 [MM_DEBUG] (grub_debug_realloc): New function.
16740 [MM_DEBUG] (grub_debug_memalign): New function.
16741
16742 * kern/misc.c (grub_abort): Print a newline to distinguish
16743 the message.
16744
16745 * kern/main.c (grub_main): Call grub_machine_set_prefix and
16746 grub_set_root_dev after loading modules. This is necessary when
16747 setting a prefix depends on modules.
16748
16749 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
16750 (grub_efi_print_device_path): ... this.
16751 (grub_efi_get_filename): New prototype.
16752 (grub_efi_set_prefix): Likewise.
16753
16754 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
16755 and grub/disk.h.
16756 (grub_efidisk_get_device_handle): New prototype.
16757 (grub_efidisk_get_device_name): Likewise.
16758
16759 * include/grub/mm.h: Include config.h.
16760 (MM_DEBUG): Removed.
16761 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
16762 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
16763 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
16764 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
16765 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
16766 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
16767 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
16768 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
16769 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
16770
16771 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
16772
16773 * disk/efi/efidisk.c: Include grub/partition.h.
16774 (iterate_child_devices): New function.
16775 (add_device): First, compare only last device path nodes, so that
16776 devices are sorted by the types.
16777 (grub_efidisk_get_device_handle): New function.
16778 (grub_efidisk_get_device_name): Likewise.
16779
16780 * configure.ac (--enable-mm-debug): New option to enable the
16781 memory manager debugging feature. This makes the binary much
16782 bigger, so is disabled by default.
16783
16784 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
16785
16786 Use grub_abort instead of grub_stop, and grub_exit must be
16787 define in each architecture now. Also, this change adds support
16788 for EFI disks.
16789
16790 * util/i386/pc/grub-probefs.c: Include grub/term.h.
16791 (grub_getkey): New function.
16792 (grub_term_get_current): Likewise.
16793
16794 * util/i386/pc/grub-setup.c: Include grub/term.h.
16795 (grub_getkey): New function.
16796 (grub_term_get_current): Likewise.
16797
16798 * util/misc.c (grub_stop): Renamed to ...
16799 (grub_exit): ... this.
16800
16801 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
16802 (grub_exit): ... this.
16803 (grub_machine_init): Use grub_abort instead of abort.
16804 (grub_stop): Removed.
16805
16806 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
16807 abort.
16808
16809 * kern/i386/pc/startup.S (grub_exit): New function.
16810 (cold_reboot): New label.
16811
16812 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
16813 (grub_efi_init): Call grub_efidisk_init.
16814 (grub_efi_fini): Call grub_efidisk_fini.
16815
16816 * kern/efi/efi.c: Include grub/mm.h.
16817 (grub_efi_console_control_guid): Renamed to ...
16818 (console_control_guid): ... this.
16819 (grub_efi_loaded_image_guid): Renamed to ...
16820 (loaded_image_guid): ... this.
16821 (grub_efi_locate_handle): New function.
16822 (grub_efi_open_protocol): Likewise.
16823 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
16824 GRUB_EFI_CONSOLE_CONTROL_GUID.
16825 (grub_efi_exit): Removed.
16826 (grub_stop): Likewise.
16827 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
16828 (grub_exit): New function.
16829 (grub_print_device_path): Likewise.
16830
16831 * kern/rescue.c (grub_rescue_cmd_exit): New function.
16832 (grub_enter_rescue_mode): Register "exit".
16833
16834 * kern/misc.c (grub_real_dprintf): A cosmetic change.
16835 (grub_abort): New function.
16836
16837 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
16838
16839 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
16840
16841 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
16842
16843 * include/grub/efi/efi.h (grub_efi_exit): Removed.
16844 (grub_print_device_path): New prototype.
16845 (grub_efi_locate_handle): Likewise.
16846 (grub_efi_open_protocol): Likewise.
16847
16848 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
16849 * disk/efi/efidisk.c: Likewise.
16850
16851 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
16852
16853 * include/grub/efi/console_control.h
16854 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
16855
16856 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
16857 last 8 bytes as an array.
16858 (GRUB_EFI_DISK_IO_GUID): New macro.
16859 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
16860 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
16861 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
16862 grub_uint8_t.
16863 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
16864 (struct grub_efi_device_path): Rename the member "sub_type" to
16865 "subtype".
16866 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
16867 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
16868 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
16869 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
16870 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
16871 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
16872 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
16873 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
16874 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
16875 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
16876 (struct grub_efi_pci_device_path): New structure.
16877 (grub_efi_pci_device_path_t): New type.
16878 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
16879 (struct grub_efi_pccard_device_path): New structure.
16880 (grub_efi_pccard_device_path_t): New type.
16881 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
16882 (struct grub_efi_memory_mapped_device_path): New structure.
16883 (grub_efi_memory_mapped_device_path_t): New type.
16884 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
16885 (struct grub_efi_vendor_device_path): New structure.
16886 (grub_efi_vendor_device_path_t): New type.
16887 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
16888 (struct grub_efi_controller_device_path): New structure.
16889 (grub_efi_controller_device_path_t): New type.
16890 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
16891 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
16892 (struct grub_efi_acpi_device_path): New structure.
16893 (grub_efi_acpi_device_path_t): New type.
16894 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
16895 (struct grub_efi_expanded_acpi_device_path): New structure.
16896 (grub_efi_expanded_acpi_device_path_t): New type.
16897 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
16898 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
16899 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
16900 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
16901 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
16902 (struct grub_efi_atapi_device_path): New structure.
16903 (grub_efi_atapi_device_path_t): New type.
16904 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
16905 (struct grub_efi_fibre_channel_device_path): New structure.
16906 (grub_efi_fibre_channel_device_path_t): New type.
16907 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
16908 (struct grub_efi_1394_device_path): New structure.
16909 (grub_efi_1394_device_path_t): New type.
16910 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
16911 (struct grub_efi_usb_device_path): New structure.
16912 (grub_efi_usb_device_path_t): New type.
16913 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
16914 (struct grub_efi_usb_class_device_path): New structure.
16915 (grub_efi_usb_class_device_path_t): New type.
16916 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
16917 (struct grub_efi_i2o_device_path): New structure.
16918 (grub_efi_i2o_device_path_t): New type.
16919 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
16920 (struct grub_efi_mac_address_device_path): New structure.
16921 (grub_efi_mac_address_device_path_t): New type.
16922 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
16923 (struct grub_efi_ipv4_device_path): New structure.
16924 (grub_efi_ipv4_device_path_t): New type.
16925 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
16926 (struct grub_efi_ipv6_device_path): New structure.
16927 (grub_efi_ipv6_device_path_t): New type.
16928 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
16929 (struct grub_efi_infiniband_device_path): New structure.
16930 (grub_efi_infiniband_device_path_t): New type.
16931 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
16932 (struct grub_efi_uart_device_path): New structure.
16933 (grub_efi_uart_device_path_t): New type.
16934 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
16935 (struct grub_efi_vendor_messaging_device_path): New structure.
16936 (grub_efi_vendor_messaging_device_path_t): New type.
16937 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
16938 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
16939 (struct grub_efi_hard_drive_device_path): New structure.
16940 (grub_efi_hard_drive_device_path_t): New type.
16941 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
16942 (struct grub_efi_cdrom_device_path): New structure.
16943 (grub_efi_cdrom_device_path_t): New type.
16944 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
16945 (struct grub_efi_vendor_media_device_path): New structure.
16946 (grub_efi_vendor_media_device_path_t): New type.
16947 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
16948 (struct grub_efi_file_path_device_path): New structure.
16949 (grub_efi_file_path_device_path_t): New type.
16950 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
16951 (struct grub_efi_protocol_device_path): New structure.
16952 (grub_efi_protocol_device_path_t): New type.
16953 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
16954 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
16955 (struct grub_efi_bios_device_path): New structure.
16956 (grub_efi_bios_device_path_t): New type.
16957 (struct grub_efi_disk_io): New structure.
16958 (grub_efi_disk_io_t): New type.
16959 (struct grub_efi_block_io_media): New structure.
16960 (grub_efi_block_io_media_t): New type.
16961 (struct grub_efi_block_io): New structure.
16962 (grub_efi_block_io_t): New type.
16963
16964 * include/grub/misc.h (grub_stop): Removed.
16965 (grub_exit): New prototype.
16966 (grub_abort): Likewise.
16967
16968 * include/grub/disk.h (enum grub_disk_dev_id): Added
16969 GRUB_DISK_DEVICE_EFIDISK_ID.
16970
16971 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
16972 disk/efi/efidisk.c.
16973 (kernel_syms.lst): Remove the target if an error occurs.
16974
16975 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
16976
16977 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
16978 as it was simply too buggy.
16979
16980 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
16981
16982 * kern/misc.c (grub_lltoa): New function.
16983 (grub_vsprintf): Added support for the long long suffix,
16984 i.e. "ll".
16985
16986 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
16987
16988 * Makefile.in (LDFLAGS): Add variable.
16989 (LD): Remove variable.
16990 * configure.ac: Add -m32 to LDFLAGS.
16991 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
16992 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
16993 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
16994 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
16995 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
16996 variables.
16997 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
16998 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
16999 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
17000
17001 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
17002
17003 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
17004 length for unknown glyph.
17005
17006 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
17007
17008 Add support for pre-loaded modules into the EFI port.
17009
17010 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
17011 completely. Accept one more argument DIR. The caller has changed.
17012
17013 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
17014
17015 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
17016 (grub_efi_loaded_image_guid): New variable.
17017 (grub_efi_get_loaded_image): New function.
17018 (grub_arch_modules_addr): Likewise.
17019
17020 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
17021 prototype.
17022
17023 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
17024 (struct grub_efi_loaded_image): New structure.
17025 (grub_efi_loaded_image_t): New type.
17026
17027 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
17028
17029 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
17030 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
17031 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
17032
17033 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
17034
17035 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
17036
17037 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
17038
17039 * DISTLIST: Added include/grub/efi/console.h,
17040 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
17041 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
17042
17043 * include/grub/efi/console.h: New file.
17044 * include/grub/efi/time.h: Likewise.
17045 * include/grub/i386/efi/kernel.h: Likewise.
17046 * kern/efi/init.c: Likewise.
17047 * kern/efi/mm.c: Likewise.
17048 * term/efi/console.c: Likewise.
17049
17050 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
17051 (grub_stop): Removed.
17052 (grub_get_rtc): Likewise.
17053 (grub_machine_init): Simply call grub_efi_init.
17054 (grub_machine_fini): Call grub_efi_fini.
17055
17056 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
17057 (grub_efi_output_string): Removed.
17058 (grub_efi_stall): New function.
17059 (grub_stop): Likewise.
17060 (grub_get_rtc): Likewise.
17061
17062 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
17063 (grub_efi_stall): New prototype.
17064 (grub_efi_allocate_pages): Likewise.
17065 (grub_efi_free_pages): Likewise.
17066 (grub_efi_get_memory_map): Likewise.
17067 (grub_efi_mm_init): Likewise.
17068 (grub_efi_mm_fini): Likewise.
17069 (grub_efi_init): Likewise.
17070 (grub_efi_fini): Likewise.
17071
17072 * include/grub/i386/efi/time.h: Do not include
17073 grub/symbol.h. Include grub/efi/time.h.
17074 (GRUB_TICKS_PER_SECOND): Removed.
17075 (grub_get_rtc): Likewise.
17076
17077 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
17078 Added padding. The EFI spec is buggy.
17079 (GRUB_EFI_BLACK): New macro.
17080 (GRUB_EFI_BLUE): Likewise.
17081 (GRUB_EFI_GREEN): Likewise.
17082 (GRUB_EFI_CYAN): Likewise.
17083 (GRUB_EFI_RED): Likewise.
17084 (GRUB_EFI_MAGENTA): Likewise.
17085 (GRUB_EFI_BROWN): Likewise.
17086 (GRUB_EFI_LIGHTGRAY): Likewise.
17087 (GRUB_EFI_BRIGHT): Likewise.
17088 (GRUB_EFI_DARKGRAY): Likewise.
17089 (GRUB_EFI_LIGHTBLUE): Likewise.
17090 (GRUB_EFI_LIGHTGREEN): Likewise.
17091 (GRUB_EFI_LIGHTCYAN): Likewise.
17092 (GRUB_EFI_LIGHTRED): Likewise.
17093 (GRUB_EFI_LIGHTMAGENTA): Likewise.
17094 (GRUB_EFI_YELLOW): Likewise.
17095 (GRUB_EFI_WHITE): Likewise.
17096 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
17097 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
17098 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
17099 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
17100 (GRUB_EFI_BACKGROUND_RED): Likewise.
17101 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
17102 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
17103 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
17104 (GRUB_EFI_TEXT_ATTR): Likewise.
17105
17106 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
17107 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
17108 (kernel_mod_HEADERS): Added efi/time.h.
17109
17110 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
17111
17112 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
17113 include/grub/efi/api.h, include/grub/efi/console_control.h,
17114 include/grub/efi/efi.h, include/grub/efi/pe32.h,
17115 include/grub/i386/efi/time.h, kern/efi/efi.c,
17116 kern/i386/efi/init.c, kern/i386/efi/startup.S,
17117 and util/i386/efi/grub-mkimage.c.
17118
17119 * Makefile.in (RMKFILES): Added i386-efi.rmk.
17120
17121 * genmk.rb (PModule#rule): Do not export symbols if
17122 #{prefix}_EXPORTS is set to "no".
17123
17124 * conf/i386-efi.mk: New file.
17125 * conf/i386-efi.rmk: Likewise.
17126 * include/grub/efi/api.h: Likewise.
17127 * include/grub/efi/console_control.h: Likewise.
17128 * include/grub/efi/efi.h: Likewise.
17129 * include/grub/efi/pe32.h: Likewise.
17130 * include/grub/i386/efi/time.h: Likewise.
17131 * kern/efi/efi.c: Likewise.
17132 * kern/i386/efi/init.c: Likewise.
17133 * kern/i386/efi/startup.S: Likewise.
17134 * util/i386/efi/grub-mkimage.c: Likewise.
17135
17136 2006-04-17 Marco Gerards <marco@gnu.org>
17137
17138 * include/grub/script.h: Include <grub/parser.h> and
17139 "grub_script.tab.h".
17140 (struct grub_lexer_param): New struct.
17141 (struct grub_parser_param): Likewise.
17142 (grub_script_create_arglist): Pass the state in an argument.
17143 (grub_script_add_arglist): Likewise.
17144 (grub_script_create_cmdline): Likewise.
17145 (grub_script_create_cmdblock): Likewise.
17146 (grub_script_create_cmdif): Likewise.
17147 (grub_script_create_cmdmenu): Likewise.
17148 (grub_script_add_cmd): Likewise.
17149 (grub_script_arg_add): Likewise.
17150 (grub_script_lexer_ref): Likewise.
17151 (grub_script_lexer_deref): Likewise.
17152 (grub_script_lexer_record_start): Likewise.
17153 (grub_script_lexer_record_stop): Likewise.
17154 (grub_script_mem_record): Likewise.
17155 (grub_script_mem_record_stop): Likewise.
17156 (grub_script_malloc): Likewise.
17157 (grub_script_yylex): Likewise.
17158 (grub_script_yyparse): Likewise.
17159 (grub_script_yyerror): Likewise.
17160 (grub_script_yylex): Likewise.
17161 (grub_script_lexer_init): Return the state.
17162
17163 * normal/lexer.c (grub_script_lexer_state): Removed variable.
17164 (grub_script_lexer_done): Likewise.
17165 (grub_script_lexer_getline): Likewise.
17166 (grub_script_lexer_refs): Likewise.
17167 (script): Likewise.
17168 (newscript): Likewise.
17169 (record): Likewise.
17170 (recording): Likewise.
17171 (recordpos): Likewise.
17172 (recordlen): Likewise.
17173 (grub_script_lexer_init): Return the state instead of setting
17174 global variables.
17175 (grub_script_lexer_ref): Use the newly added argument for state
17176 instead of globals.
17177 (grub_script_lexer_deref): Likewise.
17178 (grub_script_lexer_record_start): Likewise.
17179 (grub_script_lexer_record_stop): Likewise.
17180 (recordchar): Likewise.
17181 (nextchar): Likewise.
17182 (grub_script_yylex2): Likewise.
17183 (grub_script_yylex): Likewise.
17184 (grub_script_yyerror): Likewise.
17185
17186 * normal/parser.y (func_mem): Removed variable.
17187 (menu_entry): Likewise.
17188 (err): Likewise.
17189 (%lex-param): New parser option.
17190 (%parse-param): Likewise.
17191 (script): Always return the AST.
17192 (argument): Pass the state around.
17193 (arguments): Likewise.
17194 (grubcmd): Likewise.
17195 (commands): Likewise.
17196 (function): Likewise.
17197 (menuentry): Likewise.
17198 (if_statement): Likewise.
17199 (if): Likewise.
17200
17201 * normal/script.c (grub_script_memused): Removed variable.
17202 (grub_script_parsed): Likewise.
17203 (grub_script_malloc): Added a state argument. Use that instead of
17204 global variables.
17205 (grub_script_mem_record): Likewise.
17206 (grub_script_mem_record_stop): Likewise.
17207 (grub_script_arg_add): Likewise.
17208 (grub_script_add_arglist): Likewise.
17209 (grub_script_create_cmdline): Likewise.
17210 (grub_script_create_cmdif): Likewise.
17211 (grub_script_create_cmdmenu): Likewise.
17212 (grub_script_add_cmd): Likewise.
17213 (grub_script_parse): Setup the state before calling the parser.
17214
17215 2006-04-16 Marco Gerards <marco@gnu.org>
17216
17217 * normal/command.c (grub_command_init): Remove the title command.
17218
17219 * normal/lexer.c (grub_script_yylex): Renamed from this...
17220 (grub_script_yylex2): ... to this.
17221 (grub_script_yylex): New function. Temporary
17222 introduced to filter some tokens.
17223 (grub_script_yyerror): Print a newline.
17224
17225 * normal/main.c (read_config_file): Output information about the
17226 lines that contain errors. Wait for a key after all lines have
17227 been processed. Don't return an empty menu.
17228
17229 * normal/parser.y (func_mem): Don't initialize.
17230 (menu_entry): Likewise.
17231 (err): New variable.
17232 (script): Don't return anything when an error was encountered.
17233 (ws, returns): Removed rules.
17234 (argument): Disabled concatenated variable support.
17235 (arguments): Remove explicit separators.
17236 (grubcmd): Likewise.
17237 (function): Likewise.
17238 (menuentry): Likewise.
17239 (if): Likewise.
17240 (commands): Likewise. Add error handling.
17241
17242 * normal/script.c (grub_script_create_cmdline): If
17243 `grub_script_parsed' is 0, assume the parser encountered an error.
17244
17245 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
17246
17247 * configure.ac: Add support for EFI. Fix the typo
17248 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
17249
17250 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
17251
17252 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
17253 foreign multibyte characters should be shown correctly.
17254
17255 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
17256
17257 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
17258 calculation.
17259 (read_config_file): Made it to close file before returning.
17260
17261 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
17262
17263 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
17264 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
17265 video/i386/pc/vbefill.c.
17266
17267 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
17268 video/i386/pc/vbefill.c.
17269
17270 * include/grub/video.h (grub_video_blit_format): New enum.
17271 (grub_video_mode_info): Added new member blit_format.
17272 (grub_video_get_blit_format): New function prototype.
17273
17274 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
17275 function prototype.
17276 (grub_video_vbe_map_rgb): Likewise.
17277 (grub_video_vbe_unmap_color): Likewise.
17278
17279 * include/grub/i386/pc/vbeblit.h: New file.
17280
17281 * include/grub/i386/pc/vbefill.h: New file.
17282
17283 * video/video.c (grub_video_get_blit_format): New function.
17284 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
17285 (grub_video_vbe_map_rgb): Likewise.
17286 (grub_video_vbe_unmap_color): Likewise.
17287
17288 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
17289 optimized fills.
17290 (grub_video_vbe_blit_render_target): Changed to use more optimized
17291 blits.
17292 (grub_video_vbe_setup): Added detection for optimized settings.
17293 (grub_video_vbe_create_render_target): Likewise.
17294
17295 * video/i386/pc/vbeblit.c: New file.
17296
17297 * video/i386/pc/vbefill.c: New file.
17298
17299 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
17300
17301 * font/manager.c (grub_font_get_glyph): Removed font fixup from
17302 here...
17303
17304 * util/unifont2pff.rb: ... and moved it to here. Improved argument
17305 parsing to support both hex and dec ranges. If filename was missing
17306 show usage information.
17307
17308 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
17309
17310 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
17311 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
17312
17313 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
17314 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
17315 (video_mod_SOURCES): Added.
17316 (video_mod_CFLAGS): Likewise.
17317 (video_mod_LDFLAGS): Likewise.
17318 (gfxterm_mod_SOURCES): Likewise.
17319 (gfxterm_mod_CFLAGS): Likewise.
17320 (gfxterm_mod_LDFLAGS): Likewise.
17321 (videotest_mod_SOURCES): Likewise.
17322 (videotest_mod_CFLAGS): Likewise.
17323 (videotest_mod_LDFLAGS): Likewise.
17324 (vesafb_mod_SOURCES): Removed.
17325 (vesafb_mod_CFLAGS): Likewise.
17326 (vesafb_mod_LDFLAGS): Likewise.
17327 (vga_mod_SOURCES): Likewise.
17328 (vga_mod_CFLAGS): Likewise.
17329 (vga_mod_LDFLAGS): Likewise.
17330
17331 * commands/videotest.c: New file.
17332
17333 * font/manager.c (fill_with_default_glyph): Modified to use
17334 grub_font_glyph.
17335 (grub_font_get_glyph): Likewise.
17336 (fontmanager): Renamed from this...
17337 (font_manager): ... to this.
17338
17339 * include/grub/font.h (grub_font_glyph): Added new structure.
17340 (grub_font_get_glyph): Modified to use grub_font_glyph.
17341
17342 * include/grub/misc.h (grub_abs): Added as inline function.
17343
17344 * include/grub/video.h: New file.
17345
17346 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
17347 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
17348 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
17349 (grub_vbe_get_controller_info): Renamed from this...
17350 (grub_vbe_bios_get_controller_info): ... to this.
17351 (grub_vbe_get_mode_info): Renamed from this...
17352 (grub_vbe_bios_get_mode_info): ... to this.
17353 (grub_vbe_set_mode): Renamed from this...
17354 (grub_vbe_bios_set_mode): ... to this.
17355 (grub_vbe_get_mode): Renamed from this...
17356 (grub_vbe_bios_get_mode): ... to this.
17357 (grub_vbe_set_memory_window): Renamed from this...
17358 (grub_vbe_bios_set_memory_window): ... to this.
17359 (grub_vbe_get_memory_window): Renamed from this...
17360 (grub_vbe_bios_get_memory_window): ... to this.
17361 (grub_vbe_set_scanline_length): Renamed from this...
17362 (grub_vbe_set_scanline_length): ... to this.
17363 (grub_vbe_get_scanline_length): Renamed from this...
17364 (grub_vbe_bios_get_scanline_length): ... to this.
17365 (grub_vbe_set_display_start): Renamed from this...
17366 (grub_vbe_bios_set_display_start): ... to this.
17367 (grub_vbe_get_display_start): Renamed from this...
17368 (grub_vbe_bios_get_display_start): ... to this.
17369 (grub_vbe_set_palette_data): Renamed from this...
17370 (grub_vbe_bios_set_palette_data): ... to this.
17371 (grub_vbe_set_pixel_rgb): Removed.
17372 (grub_vbe_set_pixel_index): Likewise.
17373
17374 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
17375 from this...
17376 (grub_vbe_bios_get_controller_info): ... to this.
17377 (grub_vbe_get_mode_info): Renamed from this...
17378 (grub_vbe_bios_get_mode_info): ... to this.
17379 (grub_vbe_set_mode): Renamed from this...
17380 (grub_vbe_bios_set_mode): ... to this.
17381 (grub_vbe_get_mode): Renamed from this...
17382 (grub_vbe_bios_get_mode): ... to this.
17383 (grub_vbe_set_memory_window): Renamed from this...
17384 (grub_vbe_bios_set_memory_window): ... to this.
17385 (grub_vbe_get_memory_window): Renamed from this...
17386 (grub_vbe_bios_get_memory_window): ... to this.
17387 (grub_vbe_set_scanline_length): Renamed from this...
17388 (grub_vbe_set_scanline_length): ... to this.
17389 (grub_vbe_get_scanline_length): Renamed from this...
17390 (grub_vbe_bios_get_scanline_length): ... to this.
17391 (grub_vbe_set_display_start): Renamed from this...
17392 (grub_vbe_bios_set_display_start): ... to this.
17393 (grub_vbe_get_display_start): Renamed from this...
17394 (grub_vbe_bios_get_display_start): ... to this.
17395 (grub_vbe_set_palette_data): Renamed from this...
17396 (grub_vbe_bios_set_palette_data): ... to this.
17397 (grub_vbe_bios_get_controller_info): Fixed problem with registers
17398 getting corrupted after calling it. Added more pushes and pops.
17399 (grub_vbe_bios_set_mode): Likewise.
17400 (grub_vbe_bios_get_mode): Likewise.
17401 (grub_vbe_bios_get_memory_window): Likewise.
17402 (grub_vbe_bios_set_scanline_length): Likewise.
17403 (grub_vbe_bios_get_scanline_length): Likewise.
17404 (grub_vbe_bios_get_display_start): Likewise.
17405 (grub_vbe_bios_set_palette_data): Likewise.
17406
17407 * normal/cmdline.c (cl_set_pos): Refresh the screen.
17408 (cl_insert): Likewise.
17409 (cl_delete): Likewise.
17410
17411 * term/gfxterm.c: New file.
17412
17413 * term/i386/pc/vesafb.c: Removed file.
17414
17415 * video/video.c: New file.
17416
17417 * video/i386/pc/vbe.c (real2pm): Added new function.
17418 (grub_video_vbe_draw_pixel): Likewise.
17419 (grub_video_vbe_get_video_ptr): Likewise.
17420 (grub_video_vbe_get_pixel): Likewise
17421 (grub_video_vbe_init): Likewise.
17422 (grub_video_vbe_fini): Likewise.
17423 (grub_video_vbe_setup): Likewise.
17424 (grub_video_vbe_get_info): Likewise.
17425 (grub_video_vbe_set_palette): Likewise.
17426 (grub_video_vbe_get_palette): Likewise.
17427 (grub_video_vbe_set_viewport): Likewise.
17428 (grub_video_vbe_get_viewport): Likewise.
17429 (grub_video_vbe_map_color): Likewise.
17430 (grub_video_vbe_map_rgb): Likewise.
17431 (grub_video_vbe_map_rgba): Likewise.
17432 (grub_video_vbe_unmap_color): Likewise.
17433 (grub_video_vbe_fill_rect): Likewise.
17434 (grub_video_vbe_blit_glyph): Likewise.
17435 (grub_video_vbe_blit_bitmap): Likewise.
17436 (grub_video_vbe_blit_render_target): Likewise.
17437 (grub_video_vbe_scroll): Likewise.
17438 (grub_video_vbe_swap_buffers): Likewise.
17439 (grub_video_vbe_create_render_target): Likewise.
17440 (grub_video_vbe_delete_render_target): Likewise.
17441 (grub_video_vbe_set_active_render_target): Likewise.
17442 (grub_vbe_set_pixel_rgb): Remove function.
17443 (grub_vbe_set_pixel_index): Likewise.
17444 (index_color_mode): Remove static variable.
17445 (active_mode): Likewise.
17446 (framebuffer): Likewise.
17447 (bytes_per_scan_line): Likewise.
17448 (grub_video_vbe_adapter): Added new static variable.
17449 (framebuffer): Likewise.
17450 (render_target): Likewise.
17451 (initial_mode): Likewise.
17452 (mode_in_use): Likewise.
17453 (mode_list): Likewise.
17454
17455 2006-03-10 Marco Gerards <marco@gnu.org>
17456
17457 * configure.ac (AC_INIT): Bumped to 1.93.
17458
17459 * DISTLIST: Added `include/grub/hfs.h'.
17460
17461 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
17462
17463 * boot/i386/pc/boot.S (general_error): Before looping, try INT
17464 18H, which might help the BIOS falling back to next boot media.
17465
17466 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
17467
17468 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
17469 Poe Chen <poe.poechen@gmail.com>.
17470
17471 2006-01-17 Marco Gerards <marco@gnu.org>
17472
17473 * include/grub/normal.h: Include <grub/script.h>.
17474 (grub_command_list): Removed struct.
17475 (grub_command_list_t): Removed type.
17476 (grub_menu_entry): Remove members `num' and `command_list'. Add
17477 members `commands' and `sourcecode'.
17478 * include/grub/script.h: Add inclusion guards.
17479 (grub_script_cmd_menuentry): New struct.
17480 (grub_script_execute_menuentry): New prototype.
17481 (grub_script_lexer_record_start): Likewise.
17482 (grub_script_lexer_record_stop): Likewise.
17483 * normal/execute.c (grub_script_execute_menuentry): New function.
17484 * normal/lexer.c (record, recording, recordpos, recordlen): New
17485 variables.
17486 (grub_script_lexer_record_start): New function.
17487 (grub_script_lexer_record_stop): Likewise.
17488 (recordchar): Likewise.
17489 (nextchar): Likewise.
17490 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
17491 2048 as the buffer size. Add the tokens `menuentry' and `@'.
17492 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
17493 (current_menu): New variable.
17494 (free_menu): Mainly rewritten.
17495 (grub_normal_menu_addentry): New function.
17496 (read_config_file): Rewritten.
17497 * normal/menu.c (run_menu_entry): Mainly rewritten.
17498 * normal/menu_entry.c (make_screen): Rewritten the code to insert
17499 the menu entry.
17500 (run): Mainly rewritten.
17501 * normal/parser.y (menu_entry): New variable.
17502 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
17503 (menuentry): New rule.
17504 (command): Add `menuentry'.
17505 (if_statement): Allow additional returns before `fi'.
17506 * normal/script.c (grub_script_create_cmdmenu): New function.
17507
17508 2006-01-03 Marco Gerards <marco@gnu.org>
17509
17510 * INSTALL: GNU Bison is required.
17511 * configure.ac: Rewritten the test to detect Bison.
17512 * Makefile.in (YACC): New variable. Reported by Xun Sun
17513 <xun.sun.cn@gmail.com>.
17514
17515 2006-01-03 Marco Gerards <marco@gnu.org>
17516
17517 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
17518 the HFS+ filesystem to filesystem blocks.
17519 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
17520 GCC warning is silenced.
17521
17522 2006-01-03 Marco Gerards <marco@gnu.org>
17523
17524 * partmap/apple.c (apple_partition_map_iterate): Convert the data
17525 read from disk from big endian to host byte order.
17526
17527 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
17528
17529 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
17530 documentation.
17531 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
17532 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
17533 embedded HFS+ filesystem.
17534 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
17535 (grub_hfs_sblock): Move from here...
17536 * include/grub/hfs.h: To here... New file.
17537 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
17538 documentation.
17539 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
17540 New macros.
17541 (grub_hfsplus_volheader): Change type of member `magic' to
17542 `grub_uint16_t'.
17543 (grub_hfsplus_data): Add new member `embedded_offset'.
17544 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
17545 returned block.
17546 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
17547 Calculate the offset.
17548
17549 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17550
17551 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
17552 Removed.
17553 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
17554
17555 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17556
17557 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
17558 ENV->NAME is NULL after allocating ENV->VALUE.
17559
17560 2005-12-25 Marco Gerards <marco@gnu.org>
17561
17562 * kern/env.c (grub_env_set): Rewritten the error handling code.
17563
17564 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17565
17566 * geninit.sh: Made more robust, and more portable.
17567
17568 2005-12-25 Marco Gerards <marco@gnu.org>
17569
17570 Add support for Apple HFS+ filesystems.
17571
17572 * fs/hfsplus.c: New file.
17573
17574 * DISTLIST: Added `fs/hfsplus.c'.
17575
17576 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
17577 (hfsplus_mod_SOURCES): New variable.
17578 (hfsplus_mod_CFLAGS): Likewise.
17579 (hfsplus_mod_LDFLAGS): Likewise.
17580 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
17581 (grub_setup_SOURCES): Likewise.
17582 (grub_mkdevicemap_SOURCES): Likewise.
17583 (grub_emu_SOURCES): Likewise.
17584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17585
17586 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
17587
17588 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
17589
17590 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17591
17592 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
17593 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
17594 include/grub/parser.h, include/grub/script.h, kern/parser.c,
17595 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
17596 normal/lexer.c, normal/parser.y, normal/script.c, and
17597 partmap/gpt.c.
17598 Removed kern/sparc64/cache.c.
17599
17600 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
17601 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
17602 grub_emu_init.c.
17603
17604 * configure.ac (AC_INIT): Bumped to 1.92.
17605
17606 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
17607
17608 * kern/err.c (grub_error_push): Added new function to support error
17609 stacks.
17610 (grub_error_pop): Likewise.
17611 (grub_error_stack_items): New local variable to support error stacks.
17612 (grub_error_stack_pos): Likewise.
17613 (grub_error_stack_assert): Likewise.
17614 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
17615 stack depth.
17616 (grub_print_error): Added support to print errors from error stack.
17617
17618 * include/grub/err.h (grub_error_push): Added function prototype.
17619 (grub_error_pop): Likewise.
17620
17621 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
17622
17623 * configure.ac: Accept `powerpc64' as host_cpu.
17624 (amd64): Rename to `biarch32'.
17625
17626 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
17627 non-cacheline-aligned addresses.
17628
17629 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
17630 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
17631 if `size' is non-zero.
17632
17633 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
17634
17635 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
17636 and `cd' to make sure the filename is not prefixed with a
17637 directory name.
17638 (pkgdata_MODULES): Add `gpt.mod'.
17639 (gpt_mod_SOURCES): New variable.
17640 (gpt_mod_CFLAGS): Likewise.
17641 (gpt_mod_LDFLAGS): Likewise.
17642
17643 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
17644
17645 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
17646 New macro.
17647
17648 * partmap/gpt.c: New file.
17649
17650 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
17651 GPT partition map is detected.
17652
17653 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
17654
17655 * commands/i386/pc/play.c: New file.
17656 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
17657 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
17658 macros.
17659
17660 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
17661
17662 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
17663 ((unused))' to silence gcc warning.
17664
17665 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
17666
17667 * configure.ac: Correct `AC_PROG_YACC' test.
17668
17669 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17670
17671 * util/powerpc/ieee1275/grub-install.in: Run the mount point
17672 check before installing files.
17673
17674 2005-11-22 Mike Small <smallm@panix.com>
17675
17676 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
17677 number regex so multidigit numbers are recognized correctly.
17678
17679 2005-11-22 Mike Small <smallm@panix.com>
17680
17681 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
17682 debugging message before attempting to claim memory.
17683 (grub_rescue_cmd_initrd): Add a claim debugging message and try
17684 multiple addresses in case of failure.
17685
17686 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17687
17688 * term/tparm.c (get_space): Remove empty `if' statement.
17689
17690 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
17691
17692 * kern/parser.c (check_varstate): Rename `state' to 's'.
17693
17694 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17695
17696 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
17697 variable definitions to the beginning of each function. Sort stack
17698 variables by size.
17699 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
17700 `buf' argument to `char *'.
17701
17702 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17703
17704 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
17705 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
17706 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
17707 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17708 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17709 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17710 configfile.mod, search.mod, gzio.mod and test.mod.
17711 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17712 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17713 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17714 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17715 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17716 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17717 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17718 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17719 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17720 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17721 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17722 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17723 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17724 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17725 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17726 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17727 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17728 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17729 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17730 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17731 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17732 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17733 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
17734
17735 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
17736 `grep --include'.
17737 (pkgdata_MODULES): Add test.mod.
17738
17739 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17740
17741 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
17742 appending to variables with "+=".
17743 (PModule): Use full pathname to generate *.lst filenames.
17744
17745 * Makefile.in: Fixed list rules moved from genmk.rb.
17746 (.DELETE_ON_ERROR): New special target.
17747 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
17748
17749 * conf/i386-pc.rmk: Include conf/common.mk.
17750 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
17751 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
17752 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17753 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17754 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17755 configfile.mod, search.mod, gzio.mod and test.mod.
17756 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17757 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17758 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17759 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17760 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17761 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17762 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17763 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17764 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17765 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17766 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17767 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17768 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17769 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17770 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17771 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17772 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17773 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17774 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17775 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17776 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17777 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17778 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
17779 here...
17780 * conf/common.rmk: ... to here. New file.
17781
17782 * conf/common.mk: New file.
17783
17784 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
17785
17786 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
17787 (grub_script.tab.c): ... here.
17788
17789 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
17790 (grub_script.tab.c): ... here.
17791
17792 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
17793 (grub_script.tab.c): ... here.
17794
17795 * normal/command.c (grub_command_find): Fixed a memory leak of
17796 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
17797
17798 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17799
17800 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
17801 "@" which marks the start of a comment on ARM.
17802 (VARIABLE): Likewise.
17803
17804 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17805
17806 Add support for Linux/ADFS partition tables.
17807
17808 * partmap/acorn.c: New file.
17809
17810 * include/grub/acorn_filecore.h: Likewise.
17811
17812 * DISTLIST: Added `partmap/acorn.c' and
17813 `include/grub/acorn_filecore.h'.
17814
17815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17816 `partmap/acorn.c'.
17817 (pkgdata_MODULES): Add `acorn.mod'.
17818 (acorn_mod_SOURCES): New variable.
17819 (acorn_mod_CFLAGS): Likewise.
17820
17821 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17822 `partmap/acorn.c'.
17823 (pkgdata_MODULES): Add `acorn.mod'.
17824 (acorn_mod_SOURCES): New variable.
17825 (acorn_mod_CFLAGS): Likewise.
17826
17827 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
17828 (pkgdata_MODULES): Add `acorn.mod'.
17829 (acorn_mod_SOURCES): New variable.
17830 (acorn_mod_CFLAGS): Likewise.
17831 (acorn_mod_LDFLAGS): Likewise.
17832
17833 * include/types.h (grub_disk_addr_t): New typedef.
17834
17835 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
17836
17837 * geninit.sh: New file.
17838
17839 * geninitheader.sh: Likewise.
17840
17841 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
17842 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
17843 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
17844 * commands/configfile.c (grub_configfile_init)
17845 (grub_configfile_fini): Likewise.
17846 * commands/default.c (grub_default_init, grub_default_fini):
17847 Likewise.
17848 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
17849 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
17850 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
17851 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
17852 Likewise.
17853 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
17854 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
17855 Likewise.
17856 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
17857 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
17858 Likewise.
17859 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
17860 Likewise.
17861 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
17862 Likewise.
17863 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
17864 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
17865 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
17866 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
17867 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
17868 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
17869 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
17870 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
17871 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
17872 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
17873 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
17874 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
17875 * partmap/amiga.c (grub_amiga_partition_map_init)
17876 (grub_amiga_partition_map_fini): Likewise.
17877 * partmap/apple.c (grub_apple_partition_map_init)
17878 (grub_apple_partition_map_fini): Likewise.
17879 * partmap/pc.c (grub_pc_partition_map_init)
17880 (grub_pc_partition_map_fini): Likewise.
17881 * partmap/sun.c (grub_sun_partition_map_init,
17882 grub_sun_partition_map_fini): Likewise.
17883 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
17884 Likewise.
17885
17886 * util/grub-emu.c: Include <grub_modules_init.h>.
17887 (main): Don't initialize and de-initialize any modules directly,
17888 use `grub_init_all' and `grub_fini_all' instead.
17889
17890 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
17891 `grub_vesafb_mod_init'.
17892 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
17893 all users.
17894 * term/i386/pc/vga.c (grub_vga_init): Renamed to
17895 `grub_vga_mod_init'. Updated all users.
17896 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
17897
17898 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
17899 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
17900 rules.
17901
17902 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
17903 Generate a function to initialize the module in utilities.
17904 Updated all callers.
17905 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
17906 initialize the module in utilities. Updated all callers.
17907
17908 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17909
17910 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
17911 escape sequence and a literal ^L to clear the screen.
17912
17913 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
17914 when returning from Open Firmware.
17915
17916 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17917
17918 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
17919 (grub_ofconsole_height): Likewise.
17920 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
17921 manually insert a '\n'.
17922 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
17923 `grub_ofconsole_height'. Return early if these are already set.
17924
17925 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
17926
17927 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17928 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
17929 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
17930 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
17931 and `normal/script.c'.
17932 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17933 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17934 (test_mod_SOURCES): New variable.
17935 (test_mod_CFLAGS): Likewise.
17936 (test_mod_LDFLAGS): Likewise.
17937 (pkgdata_MODULES): Add `test.mod'.
17938 (grub_script.tab.c): New rule.
17939 (grub_script.tab.h): Likewise.
17940
17941 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
17942
17943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17944 `commands/test.c', `normal/execute.c', `normal/lexer.c',
17945 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17946 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17947 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17948 (test_mod_SOURCES): New variable.
17949 (test_mod_CFLAGS): Likewise.
17950 (pkgdata_MODULES): Add `test.mod'.
17951 (grub_script.tab.c): New rule.
17952 (grub_script.tab.h): Likewise.
17953
17954 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
17955
17956 Add initial scripting support.
17957
17958 * commands/test.c: New file.
17959 * include/grub/script.h: Likewise.
17960 * normal/execute.c: Likewise.
17961 * normal/function.c: Likewise.
17962 * normal/lexer.c: Likewise.
17963 * normal/parser.y: Likewise.
17964 * normal/script.c: Likewise.
17965
17966 * configure.ac: Add `AC_PROG_YACC' test.
17967
17968 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
17969 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
17970 `normal/function.c' and `normal/script.c'.
17971 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17972 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17973 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
17974 variables.
17975 (pkgdata_MODULES): Add `test.mod'.
17976 (grub_script.tab.c): New rule.
17977 (grub_script.tab.h): Likewise.
17978
17979 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
17980
17981 * include/grub/normal.h (grub_test_init): New prototype.
17982 (grub_test_fini): Likewise.
17983
17984 * normal/command.c: Include <grub/script.h>.
17985 (grub_command_execute): Rewritten.
17986
17987 * util/grub-emu.c (main): Call `grub_test_init' and
17988 `grub_test_fini'.
17989
17990 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17991
17992 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
17993 to 0.
17994 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
17995 there are no pending characters.
17996
17997 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17998
17999 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
18000 `grub_strndup' to drop device arguments. Replace unnecessary
18001 `grub_strndup' with `grub_strdup'.
18002
18003 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
18004
18005 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
18006 `debug' environment variable has been set.
18007
18008 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
18009
18010 * Makefile.in (install-local): Use $(DATA).
18011 (uninstall): Likewise.
18012 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
18013 (sbin_UTILITIES): ... to here.
18014 (sbin_SCRIPTS): New variable.
18015 (grub_install_SOURCES): New variable.
18016 * util/powerpc/ieee1275/grub-install.in: New file.
18017 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
18018 variable.
18019 (add_segments): Call `grub_util_get_path'.
18020
18021 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
18022
18023 From Timothy Baldwin:
18024 * commands/ls.c (grub_ls_list_files): Close FILE with
18025 grub_file_close.
18026 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
18027
18028 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
18029
18030 * include/grub/parser.h: New file.
18031
18032 * kern/parser.c: Likewise.
18033
18034 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
18035 (grub_setup_SOURCES): Likewise.
18036 (grub_probefs_SOURCES): Likewise.
18037 (grub_emu_SOURCES): Likewise.
18038 (kernel_img_HEADERS): Add `parser.h'.
18039
18040 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
18041 (grub_emu_SOURCES): Add `kern/parser.c'.
18042 (grubof_SOURCES): Likewise.
18043
18044 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
18045 (grubof_SOURCES): Add `kern/parser.c'.
18046
18047 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
18048
18049 * kern/misc.c (grub_split_cmdline): Removed function.
18050
18051 * kern/rescue.c: Include <grub/parser.h>.
18052 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
18053 of `grub_split_cmdline'.
18054
18055 * normal/command.c: Include <grub/parser.h>.
18056 (grub_command_execute): Use `grub_parser_split_cmdline' instead
18057 of `grub_split_cmdline'.
18058
18059 * normal/completion.c: Include <grub/parser.h>.
18060 (cmdline_state): New variable.
18061 (iterate_dir): End the filename with a quote depending on the
18062 command line state.
18063 (get_state): new function.
18064 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
18065 split the arguments and determine the current argument. When the
18066 argument string is not quoted, escape all spaces.
18067
18068 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
18069
18070 * normal/sparc64/setjmp.S: New file.
18071
18072 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
18073
18074 * include/grub/sparc64/libgcc.h: New file.
18075 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
18076 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
18077 normal/sparc64/setjmp.c.
18078
18079 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
18080
18081 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
18082 * kern/sparc64/cache.S: New file.
18083 * kern/sparc64/cache.c: Removed.
18084 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
18085 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
18086 -mtune=ultrasparc.
18087 (COMMON_LDFLAGS): Add -melf64_sparc.
18088 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
18089 (grubof_SOURCES): Use cache.S instead of cache.c.
18090 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
18091 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
18092 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
18093 commented though.
18094 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
18095 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
18096 (linux_mod_CFLAGS): Commented out.
18097 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
18098 out because module isn't built.
18099 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
18100 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
18101 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
18102 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
18103 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
18104 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
18105 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
18106 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
18107 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
18108 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
18109 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
18110 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
18111 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
18112 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
18113
18114 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
18115
18116 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
18117 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
18118 longer, because HFS should not be used on PC.
18119
18120 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
18121
18122 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
18123 consistently within the loop.
18124
18125 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
18126
18127 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
18128 directory can not be read.
18129
18130 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
18131
18132 * configure.ac (AC_INIT): Increase the version number to 1.91.
18133
18134 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
18135 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
18136 term/i386/pc/serial.c.
18137
18138 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
18139
18140 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
18141 file size must be permitted.
18142
18143 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
18144 between %ah and %al.
18145
18146 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
18147
18148 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
18149 grub_uint64_t.
18150 Call the hook with a NUL-terminated filename.
18151 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
18152 grub_cpu_to_be32.
18153
18154 * kern/term.c (cursor_state): New variable.
18155 (grub_term_set_current): Reset the cursor state on a new
18156 terminal.
18157 (grub_setcursor): Rewritten to use CURSOR_STATE.
18158 (grub_getcursor): New function.
18159
18160 * include/grub/term.h (grub_getcursor): New prototype.
18161
18162 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
18163 integers on ARM. Reported by Timothy Baldwin
18164 <T.E.Baldwin99@members.leeds.ac.uk>.
18165
18166 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
18167
18168 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
18169 allocated.
18170 (grub_sfs_dir): Likewise.
18171
18172 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
18173
18174 Add support for the SFS filesystem.
18175
18176 * fs/sfs.c: New file.
18177
18178 * DISTLIST: Added `fs/sfs.c'.
18179
18180 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
18181 (grub_probefs_SOURCES): Likewise.
18182 (grub_emu_SOURCES): Likewise.
18183 (pkgdata_MODULES): Add `sfs.mod'.
18184 (sfs_mod_SOURCES): New variable.
18185 (sfs_mod_CFLAGS): Likewise.
18186 (sfs_mod_LDFLAGS): Likewise.
18187
18188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
18189 (pkgdata_MODULES): Add `sfs.mod'.
18190 (sfs_mod_SOURCES): New variable.
18191 (sfs_mod_CFLAGS): Likewise.
18192
18193 * util/grub-emu.c (main): Call `grub_sfs_init' and
18194 `grub_sfs_fini'.
18195
18196 * include/grub/fs.h (grub_sfs_init): New prototype.
18197 (grub_sfs_fini): Likewise.
18198
18199 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
18200
18201 Add support for the AFFS filesystem.
18202
18203 * fs/affs.c: New file.
18204
18205 * DISTLIST: Added `fs/affs.c'.
18206
18207 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
18208 (grub_probefs_SOURCES): Likewise.
18209 (grub_emu_SOURCES): Likewise.
18210 (pkgdata_MODULES): Add `affs.mod'.
18211 (affs_mod_SOURCES): New variable.
18212 (affs_mod_CFLAGS): Likewise.
18213 (affs_mod_LDFLAGS): Likewise.
18214
18215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
18216 (pkgdata_MODULES): Add `affs.mod'.
18217 (affs_mod_SOURCES): New variable.
18218 (affs_mod_CFLAGS): Likewise.
18219
18220 * util/grub-emu.c (main): Call `grub_affs_init' and
18221 `grub_affs_fini'.
18222
18223 * include/grub/fs.h (grub_affs_init): New prototype.
18224 (grub_affs_fini): Likewise.
18225
18226 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
18227
18228 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
18229
18230 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
18231
18232 * configure.ac: Accept `x86_64' as host_cpu. In that case add
18233 `-m32' to CFLAGS.
18234
18235 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
18236 linking.
18237
18238 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
18239 (COMMON_LDFLAGS): New variable.
18240 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
18241 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
18242 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
18243 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
18244 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
18245 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
18246 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
18247 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
18248 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
18249 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
18250 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
18251 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
18252 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
18253 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
18254 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
18255 variables.
18256 (normal_mod_ASFLAGS): Add `-m32'.
18257
18258 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
18259 (grub_host_size_t, grub_host_ssize_t): New types.
18260 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
18261 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
18262 `GRUB_HOST_SIZEOF_VOID_P'.
18263
18264 * include/grub/kernel.h (struct grub_module_header): Type of
18265 member offset changed to `grub_host_off_t'. Type of member size
18266 changed to `grub_host_size_t'.
18267 (struct grub_module_info): Type of member offset changed to
18268 `grub_host_off_t'. Type of member size changed to
18269 `grub_host_size_t'.
18270
18271 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
18272
18273 Make GRUB's kernel compliant to Multiboot Specification.
18274
18275 * kern/i386/pc/startup.S (multiboot_header): New label.
18276 (multiboot_entry): Likewise.
18277 (multiboot_trampoline): Likewise.
18278
18279 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18280 Increased to 0x4A0.
18281
18282 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
18283 put parentheses after a question mark.
18284 [!GRUB_UTIL] (my_mod): New variable.
18285
18286 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
18287
18288 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
18289
18290 Adds support for the XFS filesystem. Btrees are not supported
18291 yet.
18292
18293 * fs/xfs.c: New file.
18294
18295 * DISTLIST: Added `fs/xfs.c'.
18296
18297 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
18298 (grub_probefs_SOURCES): Likewise.
18299 (grub_emu_SOURCES): Likewise.
18300 (pkgdata_MODULES): Add `xfs.mod'.
18301 (xfs_mod_SOURCES): New variable.
18302 (xfs_mod_CFLAGS): Likewise.
18303
18304 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
18305 (pkgdata_MODULES): Add `xfs.mod'.
18306 (xfs_mod_SOURCES): New variable.
18307 (xfs_mod_CFLAGS): Likewise.
18308
18309 * util/grub-emu.c (main): Call `grub_xfs_init' and
18310 `grub_xfs_fini'.
18311
18312 * include/grub/fs.h (grub_xfs_init): New prototype.
18313 (grub_xfs_fini): Likewise.
18314
18315
18316 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
18317
18318 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
18319 color modes, allow greater than 16 colors to be configured as
18320 a default palette.
18321
18322 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
18323
18324 * normal/completion.c (complete_arguments): Add the qualifier
18325 const into OPTIONS.
18326
18327 From Omniflux <omniflux+lists@omniflux.com>:
18328 * include/grub/terminfo.h: New file.
18329 * include/grub/tparm.h: Likewise.
18330 * include/grub/i386/pc/serial.h: Likewise.
18331 * term/terminfo.c: Likewise.
18332 * term/tparm.c: Likewise.
18333 * term/i386/pc/serial.c: Likewise.
18334 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
18335 serial.mod.
18336 (terminfo_mod_SOURCES): New variable.
18337 (terminfo_mod_CFLAGS): Likewise.
18338 (serial_mod_SOURCES): Likewise.
18339 (serial_mod_CFLAGS): Likewise.
18340
18341 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
18342
18343 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
18344 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
18345 and kern/powerpc/ieee1275/cmain.c, respectively.
18346
18347 * boot/powerpc/ieee1275/crt0.S: Moved to ...
18348 * kern/powerpc/ieee1275/crt0.S: ... here.
18349
18350 * boot/powerpc/ieee1275/cmain.c: Moved to ...
18351 * kern/powerpc/ieee1275/cmain.c: ... here.
18352
18353 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
18354 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
18355 instead of boot/powerpc/ieee1275/crt0.S and
18356 boot/powerpc/ieee1275/cmain.c, respectively.
18357
18358 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
18359 sectors. It was not used anyway.
18360
18361 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
18362
18363 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
18364 `unused parameter' warning.
18365
18366 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
18367
18368 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
18369 function.
18370 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
18371 getcharwidth.
18372
18373 2005-08-28 Marco Gerards <metgerards@student.han.nl>
18374
18375 * include/grub/normal.h (enum grub_completion_type): Added
18376 `GRUB_COMPLETION_TYPE_ARGUMENT'.
18377
18378 * normal/cmdline.c (print_completion): Handle
18379 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
18380 * normal/menu_entry.c (store_completion): Likewise.
18381
18382 * normal/completion.c (complete_arguments): New function.
18383 (grub_normal_do_completion): Call `complete_arguments' when the
18384 current words start with a dash.
18385
18386 2005-08-27 Marco Gerards <metgerards@student.han.nl>
18387
18388 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
18389 `gzio.mod' instead of `io.mod').
18390
18391 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
18392
18393 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
18394 (DISTDIRS): Added io and video.
18395 Rewrite the search routine to make an output consistently.
18396
18397 * DISTLIST: Added conf/sparc64-ieee1275.mk,
18398 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
18399 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
18400 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
18401 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
18402 util/powerpc/ieee1275/misc.c.
18403
18404 * include/grub/gzio.h: New file.
18405 * io/gzio.c: Likewise.
18406
18407 * kern/file.c (grub_file_close): Call grub_device_close only if
18408 FILE->DEVICE is not NULL.
18409
18410 * include/grub/mm.h [!NULL] (NULL): New macro.
18411
18412 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
18413
18414 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
18415 (pkgdata_MODULES): Added gzio.mod.
18416 (gzio_mod_SOURCES): New variable.
18417 (gzio_mod_CFLAGS): Likewise.
18418
18419 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
18420 (pkgdata_MODULES): Added gzio.mod.
18421 (gzio_mod_SOURCES): New variable.
18422 (gzio_mod_CFLAGS): Likewise.
18423
18424 * commands/cat.c: Include grub/gzio.h.
18425 (grub_cmd_cat): Use grub_gzfile_open instead of
18426 grub_file_open.
18427
18428 * commands/cmp.c: Include grub/gzio.h.
18429 (grub_cmd_cmp): Use grub_gzfile_open instead of
18430 grub_file_open.
18431
18432 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
18433 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
18434 grub_file_open.
18435 (grub_rescue_cmd_module): Likewise.
18436
18437 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
18438
18439 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
18440 kern/sparc64/ieee1275/init.c because it contains _start.
18441 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
18442
18443 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
18444
18445 * configure.ac: Add support for sparc64 host with ieee1275
18446 firmware.
18447 * configure: Generated from configure.ac.
18448 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
18449 instead of int.
18450 (grub_ofdisk_read): Likewise.
18451 (grub_ofdisk_open): Use %p to print pointer values, and cast the
18452 pointers as (void *) to remove a warning.
18453 (grub_ofdisk_close): Likewise.
18454 (grub_ofdisk_read): Likewise.
18455 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
18456 returns, so make it return void to remove a warning.
18457 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
18458 Corresponding prototype change.
18459 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
18460 values, and cast the pointers as (void *) to remove a warning.
18461 (grub_mm_dump): Likewise.
18462 * conf/sparc64-ieee1275.mk: New file.
18463 * conf/sparc64-ieee1275.rmk: Likewise.
18464 * include/grub/sparc64/setjmp.h: Likewise.
18465 * include/grub/sparc64/types.h: Likewise.
18466 * include/grub/sparc64/ieee1275/console.h: Likewise.
18467 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
18468 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
18469 * include/grub/sparc64/ieee1275/time.h: Likewise.
18470 * kern/sparc64/cache.c: Likewise.
18471 * kern/sparc64/dl.c: Likewise.
18472 * kern/sparc64/ieee1275/init.c: Likewise.
18473 * kern/sparc64/ieee1275/openfw.c: Likewise.
18474
18475 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
18476
18477 * util/console.c (grub_ncurses_putchar): If C is greater than
18478 0x7f, set C to a question mark.
18479 (grub_ncurses_getcharwidth): New function.
18480 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
18481 getcharwidth.
18482
18483 * normal/menu.c (print_entry): Made aware of Unicode. First,
18484 convert TITLE to UCS-4, and predict the cursor position by
18485 grub_getcharwidth.
18486
18487 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
18488 const to SRC.
18489 * kern/misc.c (grub_utf16_to_utf8): Likewise.
18490
18491 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18492
18493 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
18494 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
18495 grub_strcat.
18496
18497 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
18498 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
18499 grub_strcpy and grub_strlen. Take it into account that a space
18500 character is inserted as a delimiter.
18501
18502 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18503
18504 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
18505 invalid magic in the error.
18506
18507 * commands/search.c: New file.
18508
18509 * util/grub-emu.c (main): Call grub_search_init and
18510 grub_search_fini.
18511
18512 * kern/rescue.c (grub_rescue_print_disks): Removed.
18513 (grub_rescue_print_devices): New function.
18514 (grub_rescue_cmd_ls): Use grub_device_iterate with
18515 grub_rescue_print_devices instead of grub_disk_dev_iterate with
18516 grub_rescue_print_disks.
18517
18518 * kern/partition.c (grub_partition_iterate): Return the result of
18519 PARTMAP->ITERATE instead of GRUB_ERRNO.
18520
18521 * kern/device.c: Include grub/partition.h.
18522 (grub_device_iterate): New function.
18523
18524 * include/grub/partition.h (grub_partition_iterate): Return int
18525 instead of grub_err_t.
18526
18527 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
18528 prototype.
18529 [GRUB_UTIL] (grub_search_fini): Likewise.
18530
18531 * include/grub/device.h (grub_device_iterate): New prototype.
18532
18533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18534 commands/search.c.
18535 (pkgdata_MODULES): Added search.mod.
18536 (search_mod_SOURCES): New variable.
18537 (search_mod_CFLAGS): Likewise.
18538
18539 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
18540 (pkgdata_MODULES): Added search.mod.
18541 (search_mod_SOURCES): New variable.
18542 (search_mod_CFLAGS): Likewise.
18543
18544 * commands/ls.c (grub_ls_list_disks): Renamed to ...
18545 (grub_ls_list_devices): ... this, and use grub_device_iterate.
18546 All callers changed.
18547
18548 * DISTLIST: Added commands/search.c.
18549
18550 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18551
18552 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
18553 conversion.
18554 (grub_getcharwidth): New function.
18555
18556 * kern/misc.c (grub_utf8_to_ucs4): New function.
18557
18558 * include/grub/term.h (struct grub_term): Added a new member
18559 "getcharwidth".
18560 (grub_getcharwidth): New prototype.
18561
18562 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
18563
18564 * term/i386/pc/console.c (map_char): New function. Segregated from
18565 grub_console_putchar.
18566 (grub_console_putchar): Use map_char.
18567 (grub_console_getcharwidth): New function.
18568 (grub_console_term): Specified grub_console_getcharwidth as
18569 getcharwidth.
18570
18571 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
18572 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
18573
18574 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
18575 GRUB_ERRNO.
18576 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
18577 on grub_strtoul completely.
18578 (write_char): Declare local variables in the beginning of the
18579 function.
18580 (grub_vesafb_getcharwidth): New function.
18581 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
18582 getcharwidth.
18583
18584 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
18585
18586 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
18587 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
18588 commands/i386/pc/vbetest.c.
18589
18590 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
18591 call grub_vbe_get_controller_info again, because the returned
18592 information is volatile.
18593 (grub_vbe_set_video_mode): Mostly rewritten.
18594 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
18595 grub_vbe_status_t correctly.
18596 (grub_vbe_get_video_mode_info): Likewise.
18597 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
18598 several if statements.
18599
18600 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
18601 * commands/i386/pc/vbeinfo.c: ... this.
18602
18603 * commands/i386/pc/vbe_test.c: Renamed to ...
18604 * commands/i386/pc/vbetest.c: ... this.
18605
18606 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
18607 ...
18608 (grub_cmd_vbeinfo): ... this. Save video modes before
18609 iterating. Skip a video mode, if it is not available, not enough
18610 information is given or it is monochrome. Show the memory
18611 model. Leave the interpretation of MODEVAR to grub_strtoul
18612 completely.
18613 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
18614 (GRUB_MOD_FINI): Likewise.
18615
18616 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
18617 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
18618 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
18619 duplicated grub_env_get. Leave the interpretation of MODEVAR to
18620 grub_strtoul completely.
18621 (real2pm): Removed.
18622 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
18623 (GRUB_MOD_FINI): Likewise.
18624
18625 * normal/misc.c: Include grub/mm.h.
18626
18627 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
18628 vbe_list_modes with vbetest.mod and vbeinfo.mod.
18629 (vbe_list_modes_mod_SOURCES): Removed.
18630 (vbe_list_modes_mod_CFLAGS): Likewise.
18631 (vbe_test_mod_SOURCES): Likewise.
18632 (vbe_test_mod_CFLAGS): Likewise.
18633 (vbeinfo_mod_SOURCES): New variable.
18634 (vbeinfo_mod_CFLAGS): Likewise.
18635 (vbetest_mod_SOURCES): Likewise.
18636 (vbetest_mod_CFLAGS): Likewise.
18637
18638 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
18639
18640 * normal/misc.c: New file.
18641
18642 * DISTLIST: Added normal/misc.c.
18643
18644 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
18645 DISK to HOOK. Call HOOK with DISK.
18646 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18647 * partmap/pc.c (pc_partition_map_iterate): Likewise.
18648 * partmap/sun.c (sun_partition_map_iterate): Likewise.
18649
18650 * normal/menu_entry.c (struct screen): Added a new member
18651 "completion_shown".
18652 (completion_buffer): New global variable.
18653 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
18654 (store_completion): New function.
18655 (complete): Likewise.
18656 (clear_completions): Likewise.
18657 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
18658 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
18659 a tab, call complete.
18660
18661 * normal/completion.c (disk_dev): Removed.
18662 (print_simple_completion): Likewise.
18663 (print_partition_completion): Likewise.
18664 (print_func): New global variable.
18665 (add_completion): Do not take the arguments WHAT or PRINT any
18666 longer. Added a new argument TYPE. Instead of printing directly,
18667 call PRINT_FUNC if not NULL.
18668 All callers changed.
18669 (complete_device): Use a local variable DEV instead of
18670 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
18671 (grub_normal_do_completion): Take a new argument HOOK. Do not
18672 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
18673 empty string, return NULL instead.
18674 All callers changed.
18675
18676 * normal/cmdline.c (print_completion): New function.
18677
18678 * kern/partition.c (grub_partition_iterate): Add an argument DISK
18679 to HOOK.
18680 All callers changed.
18681
18682 * kern/disk.c (grub_print_partinfo): Removed.
18683
18684 * include/grub/partition.h (struct grub_partition_map): Add a new
18685 argument DISK into HOOK of ITERATE.
18686 (grub_partition_iterate): Add a new argument DISK to HOOK.
18687
18688 * include/grub/normal.h (enum grub_completion_type): New enum.
18689 (grub_completion_type_t): New type.
18690 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
18691 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
18692 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
18693 (GRUB_COMPLETION_TYPE_FILE): Likewise.
18694 (grub_normal_do_completion): Added a new argument HOOK.
18695 (grub_normal_print_device_info): New prototype.
18696
18697 * include/grub/disk.h (grub_print_partinfo): Removed.
18698
18699 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
18700 (normal_mod_SOURCES): Likewise.
18701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18702 (normal_mod_SOURCES): Likewise.
18703
18704 * commands/ls.c (grub_ls_list_disks): Use
18705 grub_normal_print_device_info instead of grub_print_partinfo. Free
18706 PNAME.
18707 (grub_ls_list_files): Use grub_normal_print_device_info instead of
18708 duplicating the code.
18709
18710 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18711
18712 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
18713 follow GCS more precisely.
18714 * commands/i386/pc/vbe_test.c: Likewise.
18715 * include/grub/i386/pc/vbe.h: Likewise.
18716 * term/i386/pc/vesafb.c: Likewise.
18717 * video/i386/pc/vbe.c: Likewise.
18718
18719 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18720
18721 * DISTLIST: Added term/i386/pc/vesafb.c
18722 DISTLIST: Added video/i386/pc/vbe.c
18723 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
18724 DISTLIST: Added commands/i386/pc/vbe_test.c.
18725 * commands/i386/pc/vbe_list_modes.c: New file.
18726 * commands/i386/pc/vbe_test.c: Likewise.
18727 * term/i386/pc/vesafb.c: Likewise.
18728 * video/i386/pc/vbe.c: Likewise.
18729 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
18730 (grub_vbe_probe) Added prototype.
18731 (grub_vbe_set_video_mode) Likewise.
18732 (grub_vbe_get_video_mode) Likewise.
18733 (grub_vbe_get_video_mode_info) Likewise.
18734 (grub_vbe_set_pixel_rgb) Likewise.
18735 (grub_vbe_set_pixel_index) Likewise.
18736 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
18737 (pkgdata_MODULES): Added vesafb.mod.
18738 (pkgdata_MODULES): Added vbe_list_modes.mod.
18739 (pkgdata_MODULES): Added vbe_test.mod.
18740 (vbe_mod_SOURCES): Added.
18741 (vbe_mod_CFLAGS): Likewise.
18742 (vesafb_mod_SOURCES): Likewise.
18743 (vesafb_mod_CFLAGS): Likewise.
18744 (vbe_list_modes_mod_SOURCES): Likewise.
18745 (vbe_list_modes_mod_CFLAGS): Likewise.
18746 (vbe_test_mod_SOURCES): Likewise.
18747 (vbe_test_mod_CFLAGS): Likewise.
18748
18749 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
18750
18751 * normal/command.c (grub_command_execute): If INTERACTIVE is
18752 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
18753 CMDLINE. Disable the pager if INTERACTIVE is true.
18754 All callers are changed.
18755
18756 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
18757 before reading a config file.
18758 * normal/main.c (read_config_file): Even if a command is not
18759 found, register it if it is within an entry.
18760
18761 * util/grub-emu.c: Include sys/types.h and unistd.h.
18762 (options): Added --hold.
18763 (struct arguments): Added a new member "hold".
18764 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
18765 missing.
18766 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
18767 cleared by a debugger, if it is not zero.
18768
18769 * include/grub/normal.h (grub_command_execute): Add an argument
18770 INTERACTIVE.
18771
18772 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
18773
18774 * DISTLIST: Added include/grub/i386/pc/vbe.h.
18775
18776 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
18777
18778 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
18779 program with another one, because the old one didn't detect a bug
18780 in gcc-3.4. Always use regparm 2, because the new test is still
18781 not enough for gcc-4.0. Someone must investigate a simple test
18782 case which detects a bug in gcc-4.0.
18783
18784 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
18785
18786 * DISTLIST: Added normal/completion.c.
18787
18788 * normal/completion.c: New file.
18789
18790 * term/i386/pc/console.c (grub_console_getwh): New function.
18791 (grub_console_term): Assign grub_console_getwh to getwh.
18792
18793 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
18794 function is defined in normal/completion.c as
18795 grub_normal_do_completion.
18796 (grub_cmdline_get): Use grub_normal_do_completion instead of
18797 grub_tab_complete.
18798
18799 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
18800 returns non-zero, otherwise return 0.
18801 (grub_partition_iterate): First, probe the partition map. Then,
18802 call ITERATE only for this partition map.
18803
18804 * kern/misc.c (grub_strncmp): Rewritten.
18805
18806 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
18807 returns non-zero. Otherwise return 0.
18808
18809 * include/grub/partition.h (grub_partition_map_iterate): Return
18810 int instead of void.
18811
18812 * include/grub/normal.h (grub_normal_do_completion): New prototype.
18813
18814 * include/grub/misc.h (grub_strncmp): Change the type of N to
18815 grub_size_t.
18816
18817 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
18818 of void.
18819
18820 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
18821 unsigned explicitly before comparing it with I.
18822
18823 * kern/main.c (grub_env_write_root): Add the attribute unused into
18824 VAR.
18825
18826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18827 normal/completion.c.
18828 (normal_mod_SOURCES): Likewise.
18829 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18830 (normal_mod_SOURCES): Likewise.
18831
18832 * normal/command.c (grub_iterate_commands): If ITERATE returns
18833 non-zero, return one immediately.
18834
18835 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
18836
18837 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
18838 * kern/i386/pc/startup.S: Updated Global Descriptor table's
18839 descriptions.
18840 (grub_vbe_get_controller_info): New function.
18841 (grub_vbe_get_mode_info): Likewise.
18842 (grub_vbe_set_mode): Likewise.
18843 (grub_vbe_get_mode): Likewise.
18844 (grub_vbe_set_memory_window): Likewise.
18845 (grub_vbe_get_memory_window): Likewise.
18846 (grub_vbe_set_scanline_length): Likewise.
18847 (grub_vbe_get_scanline_length): Likewise.
18848 (grub_vbe_set_display_start): Likewise.
18849 (grub_vbe_get_display_start): Likewise.
18850 (grub_vbe_set_palette_data): Likewise.
18851 * include/grub/i386/pc/vbe.h: New file.
18852
18853 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18854
18855 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18856 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
18857 * DISTLIST: Likewise.
18858 * kern/ieee1275/of.c: Moved to ...
18859 * kern/ieee1275/ieee1275.c: ... here.
18860
18861 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18862
18863 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
18864 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
18865 Pass 0 as `end' parameter to grub_strtoul().
18866
18867 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18868
18869 * include/grub/powerpc/ieee1275/console.h: Do not include
18870 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
18871 ifdef.
18872 (grub_console_cur_color): Remove i386-specific prototype.
18873 (grub_console_real_putchar): Likewise.
18874 (grub_console_checkkey): Likewise.
18875 (grub_console_getkey): Likewise.
18876 (grub_console_getxy): Likewise.
18877 (grub_console_gotoxy): Likewise.
18878 (grub_console_cls): Likewise.
18879 (grub_console_setcursor): Likewise.
18880 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
18881 Include <grub/machine/console.h>.
18882 * term/ieee1275/ofconsole.c: Likewise.
18883
18884 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
18885
18886 * Makefile.in (LIBLZO): New variable.
18887
18888 * configure.ac: Check for LZO version 2.
18889
18890 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
18891 lzo/lzo1x.h instead of lzo1x.h.
18892
18893 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
18894 of -llzo.
18895
18896 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
18897 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
18898
18899 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
18900 copying the data from PARTITION to P.
18901
18902 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18903
18904 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
18905 negative, unload the module.
18906
18907 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
18908 map is "pc_partition_map" but not "pc".
18909 (usage): Fix the description. The options are --boot-image and
18910 --core-image but not --boot-file or --core-file.
18911 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
18912 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
18913 DEFAULT_DIRECTORY.
18914
18915 * util/i386/pc/grub-install.in: Do not specify --boot-file or
18916 --core-file. Specify INSTALL_DEVICE as an argument.
18917
18918 * util/console.c: Include config.h.
18919 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
18920 [HAVE_NCURSES_H]: Include ncurses.h.
18921 [HAVE_CURSES_H]: Include curses.h.
18922 [!A_NORMAL] (A_NORMAL): Defined as zero.
18923 [!A_STANDOUT] (A_STANDOUT): Likewise.
18924
18925 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
18926 -lncurses.
18927 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
18928
18929 * configure.ac: Check for curses libraries and headers.
18930
18931 * Makefile.in (LIBCURSES): New variable.
18932
18933 * genmk.rb (Script::rule): Set the executable bits.
18934
18935 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
18936 name of the PC partition map is "pc_partition_map" but not "pc".
18937
18938 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18939
18940 * util/i386/pc/grub-install.in (grub_probefs): New variable.
18941 (modules): Likewise.
18942 (usage): Added descriptions for --modules and --grub-probefs.
18943 Handle --modules and --grub-probefs. Save the arguments in MODULES
18944 and GRUB_PROBEFS, respectively.
18945 Auto-detect a filesystem module against GRUBDIR. If the result is
18946 empty and modules are not specified explicitly, abort the
18947 installation. Add the result to MODULES.
18948
18949 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
18950 disk/powerpc/ieee1275/ofdisk.c,
18951 include/grub/powerpc/ieee1275/init.h and
18952 term/powerpc/ieee1275/ofconsole.c.
18953 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
18954 term/ieee1275/ofconsole.c.
18955
18956 * include/grub/powerpc/ieee1275/console.h: Resurrected.
18957
18958 * COPYING: Upgraded to the latest version. Only the address of the
18959 FSF office has changed.
18960
18961 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18962
18963 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18964 kern/ieee1275.c with kern/ieee1275/of.c.
18965
18966 * kern/ieee1275.c: Moved to ...
18967 * kern/ieee1275/of.c: ... here.
18968
18969 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
18970
18971 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
18972 readability.
18973
18974 * config.guess: Updated to the latest version from gnulib.
18975 * config.sub: Likewise.
18976 * install.sh: Likewise.
18977 * mkinstalldirs: Likewise.
18978
18979 * include/grub/console.h: Removed. This file is arch-specific. Do
18980 not put this in include/grub.
18981
18982 * include/grub/i386/pc/console.h: Resurrected.
18983
18984 * util/console.c: Include grub/machine/console.h instead of
18985 grub/console.h.
18986 * util/grub-emu.c: Likewise.
18987
18988 2005-08-04 Marco Gerards <metgerards@student.han.nl>
18989
18990 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
18991 hardcoded value.
18992
18993 From Vincent Pelletier <subdino2004@yahoo.fr>
18994 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
18995 Redefined to use grub_getwh.
18996 (grub_term): New member named getwh.
18997 (grub_getwh): New prototype.
18998 * kern/term.c (grub_getwh): New function.
18999 * term/i386/pc/console.c (grub_console_getwh): New function.
19000 (grub_console_term): New member `getwh'.
19001 * term/i386/pc/vga.c (grub_vga_getwh): New function.
19002 (grub_vga_term): New member `getwh'.
19003 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
19004 grub_ssize_t.
19005 (grub_ofconsole_getw): New function.
19006 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
19007 (grub_ofconsole_term): New field named getwh and new initial
19008 value.
19009
19010 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
19011
19012 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
19013 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
19014 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
19015 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
19016 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
19017 of <grub/machine/ieee1275.h>.
19018 * commands/ieee1275/reboot.c: Likewise.
19019 * boot/powerpc/ieee1275/ieee1275.c: Move ...
19020 * kern/ieee1275.c: ... to here. All users updated. Change all
19021 parameter structs to use new type `grub_ieee1275_cell_t'.
19022 * term/powerpc/ieee1275/ofconsole.c: Move ...
19023 * term/ieee1275/ofconsole.c: ... to here. All users updated.
19024 * disk/powerpc/ieee1275/ofdisk.c: Move ...
19025 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
19026 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
19027 to return int.
19028 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
19029 Remove unused prototypes. All users updated.
19030 * include/grub/powerpc/ieee1275/console.h: Removed.
19031 * include/grub/powerpc/ieee1275/ieee1275.h: Define
19032 `grub_ieee1275_cell_t'.
19033 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
19034 Cast comparisons with -1 to the correct type.
19035 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
19036 type to match `grub_ieee1275_entry_fn'.
19037
19038 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
19039
19040 * DISTLIST: Added util/i386/pc/grub-probefs.c.
19041
19042 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
19043 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
19044 partmap/sun.c.
19045 (grub_probefs_SOURCES): New variable.
19046
19047 * util/i386/pc/grub-probefs.c: New file.
19048
19049 * util/i386/pc/grub-setup.c (main): Call
19050 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
19051 grub_hfs_init and grub_jfs_init to initialize the system. Call
19052 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
19053 grub_pc_partition_map_fini to finish the system.
19054
19055 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
19056
19057 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
19058 function.
19059 (grub_multiboot_load_elf32): Likewise.
19060 (grub_multiboot_is_elf64): Likewise.
19061 (grub_multiboot_load_elf64): Likewise.
19062 (grub_multiboot_load_elf): Likewise.
19063 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
19064 an ELF32 or ELF64 file.
19065 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
19066
19067 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
19068 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
19069 NULL before calling FS->LABEL.
19070 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
19071 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
19072 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
19073 before calling FS->LABEL.
19074
19075 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
19076
19077 * util/i386/pc/grub-install.in (datadir): New variable.
19078 (libdir): Removed.
19079 (pkgdatadir): New variable.
19080 (pkglibdir): Removed.
19081
19082 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
19083
19084 * DISTLIST: Added util/i386/pc/grub-install.in.
19085
19086 * util/i386/pc/grub-install.in: New file.
19087
19088 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
19089 (grub_install_SOURCES): Likewise.
19090
19091 * genmk.rb: Added support for scripts.
19092 (Script): New class.
19093 (scripts): New variable.
19094
19095 * Makefile.in (install-local): Install sbin_SCRIPTS by
19096 INSTALL_SCRIPT.
19097 (uninstall): Remove sbin_SCRIPTS.
19098
19099 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
19100 device, try to get a GRUB device by
19101 grub_util_biosdisk_get_grub_dev.
19102 Free DEST_DEV.
19103
19104 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
19105 description for --device-map.
19106
19107 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
19108
19109 Change the semantics of variable hooks. They now return strings
19110 instead of error values.
19111
19112 * util/i386/pc/grub-setup.c: Include grub/env.h.
19113 (setup): Use grub_device_set_root instead of grub_env_set.
19114
19115 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
19116 grub_env_get instead of grub_device_set_root and
19117 grub_device_get_root, respectively.
19118
19119 * kern/main.c (grub_env_write_root): New function.
19120 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
19121 grub_env_set instead of grub_device_set_root.
19122
19123 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
19124 many variables.
19125 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
19126 rather than calling ENV->WRITE_HOOK afterwards.
19127 (grub_env_get): Return the result of ENV->READ_HOOK rather than
19128 passing a pointer of a pointer.
19129 (grub_register_variable_hook): Change the types of "read_hook" and
19130 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
19131 respectively.
19132 Allocate the default empty string on the heap, because this string
19133 may be freed later.
19134
19135 * kern/device.c: Include grub/env.h.
19136 (grub_device_set_root): Removed.
19137 (grub_device_get_root): Likewise.
19138 (grub_device_open): Use grub_env_get instead of
19139 grub_device_get_root.
19140
19141 * include/grub/env.h (grub_env_read_hook_t): New type.
19142 (grub_env_write_hook_t): Likewise.
19143 (grub_env_var): Change the types of "read_hook" and "write_hook"
19144 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
19145 (grub_register_variable_hook): Likewise.
19146
19147 * include/grub/device.h (grub_device_set_root): Removed.
19148 (grub_device_set_root): Likewise.
19149
19150 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
19151 make sure that DIRNAME terminates with '/', so that
19152 grub_fat_find_dir will fail if PATH is not a directory.
19153
19154 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
19155 from DIRNAME.
19156 Use the qualifier auto for print_files and print_files_long.
19157 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
19158 as a regular file.
19159 Put a newline only if there is no error.
19160 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
19161 used.
19162
19163 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
19164
19165 * kern/partition.c (grub_partition_probe): Initialize PART to
19166 NULL. Otherwise, when no partition map is registered, this returns
19167 a garbage.
19168
19169 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
19170
19171 * partmap/apple.c (apple_partition_map_iterate): Check if POS
19172 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
19173 valid.
19174
19175 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
19176
19177 * commands/ls.c (grub_ls_list_disks): Print the filesystem
19178 information on each device, if it does not have partitions. Print
19179 "Device" instead of "Disk", because this function is not specific
19180 to disk devices.
19181
19182 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
19183 static to ensure that it is put on the memory rather than a
19184 register.
19185
19186 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
19187
19188 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
19189 (grub_cat_init): Likewise.
19190 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
19191 (options): Likewise.
19192 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
19193 (grub_configfile_init): Likewise.
19194 * font/manager.c (GRUB_MOD_INIT): Likewise.
19195 * commands/help.c (GRUB_MOD_INIT): Likewise.
19196 (grub_help_init): Likewise.
19197 * normal/command.c (grub_command_init): Likewise.
19198 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
19199 * disk/loopback.c (grub_loop_init): Likewise.
19200 (GRUB_MOD_INIT): Likewise.
19201 * commands/ls.c (grub_ls_init): Likewise.
19202 (GRUB_MOD_INIT): Likewise.
19203 (options): Likewise.
19204 * commands/boot.c (grub_boot_init): Likewise.
19205 (GRUB_MOD_INIT): Likewise.
19206 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
19207 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
19208 (GRUB_MOD_INIT): Likewise.
19209 * commands/cmp.c (grub_cmp_init): Likewise.
19210 (GRUB_MOD_INIT): Likewise.
19211
19212 * normal/arg.c: Use <> instead of "" to include header files.
19213 (SHORT_ARG_HELP): New macro.
19214 (SHORT_ARG_USAGE): Likewise.
19215 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
19216 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
19217 descriptions.
19218 (find_short): Check if C is 'h' or 'u' explicitly.
19219 (grub_arg_show_help): Use space characters instead of tabs. Treat
19220 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
19221 are shown with --help and --usage only if they are not used for
19222 the command itself.
19223 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
19224 'h' and 'u'.
19225
19226 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
19227 const into "longarg". Change the type of "shortarg" to int.
19228
19229 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
19230
19231 * boot/i386/pc/boot.S (boot_drive_check): New label.
19232
19233 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
19234 macro.
19235
19236 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
19237 which do not pass a boot drive correctly. Copied from GRUB Legacy.
19238
19239 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
19240
19241 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
19242 When turning off Gate A20, skip the check and return immediately,
19243 because this is not fatal usually.
19244
19245 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
19246
19247 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
19248 be 0x7C00 instead of 0x8000.
19249
19250 * boot/i386/pc/pxeboot.S: Rewritten.
19251
19252 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
19253 EXT_C.
19254 (gate_a20_check_state): Read a byte from 0x108000. Invert the
19255 result.
19256
19257 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
19258
19259 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
19260 robustness. This routine now supports a BIOS call and System
19261 Control Port A to modify the gate A20.
19262
19263 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
19264 Increased to 0x440.
19265
19266 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
19267
19268 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
19269 device path and resulting ihandle.
19270 (grub_ofdisk_close): dprintf the ihandle being closed.
19271 (grub_ofdisk_read): dprintf function parameters.
19272 * kern/mm.c (grub_mm_init_region): Likewise.
19273 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
19274 (grub_linux_boot): dprintf the Linux entry point, initrd address and
19275 size, and boot arguments.
19276 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
19277 before loading into memory.
19278 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
19279 before loading into memory.
19280
19281 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
19282
19283 * kern/mm.c: Added much documentation.
19284 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
19285 8, set to 5 instead of 8.
19286
19287 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
19288
19289 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
19290
19291 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
19292 (grub_mkdevicemap_SOURCES): New variable.
19293
19294 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
19295 lib/device.c of GRUB Legacy.
19296
19297 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
19298
19299 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
19300 instead of PATH is NULL.
19301
19302 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
19303
19304 * commands/cmp.c (BUFFER_SIZE): New macro.
19305 (grub_cmd_cmp): Close the right file at the right time. Compare
19306 only data just read. Don't report files of different size as
19307 identical. Dynamically allocate buffers. Move variable
19308 declarations at the beginning of function.
19309
19310 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
19311
19312 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
19313 reverse.
19314
19315 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
19316
19317 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
19318 when backspace is pressed at beginning of line.
19319
19320 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
19321
19322 * DISTLIST: Added genfslist.sh.
19323
19324 * normal/main.c (fs_module_list): New variable.
19325 (autoload_fs_module): New function.
19326 (read_fs_list): Likewise.
19327 (grub_normal_execute): Call read_fs_list.
19328
19329 * kern/fs.c (grub_fs_autoload_hook): New variable.
19330 (grub_fs_probe): Added support for auto-loading.
19331
19332 * include/grub/normal.h (struct grub_fs_module_list): New struct.
19333 (grub_fs_module_list_t): New type.
19334
19335 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
19336 (grub_fs_autoload_hook): New prototype.
19337
19338 * genfslist.sh: New file.
19339
19340 * genmk.rb: Added a rule to generate a filesystem list.
19341
19342 2005-06-30 Marco Gerards <metgerards@student.han.nl>
19343
19344 * configure.ac: Fix the test for cross-compiling.
19345
19346 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
19347 define GRUB_UTIL anymore.
19348
19349 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
19350 so this function works on other systems than just big endian.
19351 (load_modules): Likewise.
19352 (add_segments): Likewise.
19353
19354 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
19355
19356 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
19357 contains `l' modifier, get a long from va_arg().
19358
19359 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
19360
19361 * kern/mm.c (grub_free): If the next free block which is being
19362 merged is the first free block, set the first block to the block
19363 being freed.
19364 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
19365
19366 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
19367
19368 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
19369 `grub_ieee1275_chosen'.
19370
19371 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
19372
19373 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
19374 (grub_ieee1275_chosen): New variable.
19375 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
19376 `chosen'.
19377 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
19378 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19379 Rename first argument to `phandle' for consistency.
19380 (grub_ieee1275_get_property_length): Likewise.
19381 (grub_ieee1275_next_property): Likewise. Change type of first argument
19382 to grub_ieee1275_phandle_t.
19383 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
19384 Move export next to declaration.
19385 (grub_ieee1275_chosen): New variable.
19386 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
19387 Correct cosmetic typo.
19388 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
19389 `grub_ieee1275_chosen'.
19390 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
19391 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
19392 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
19393 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
19394 `grub_ieee1275_chosen'.
19395
19396 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
19397
19398 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
19399 /chosen/bootargs.
19400 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
19401 /chosen/bootargs as "variable=value" pairs.
19402
19403 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
19404
19405 * include/grub/misc.h (grub_dprintf): New macro.
19406 (grub_real_dprintf): New prototype.
19407 (grub_strword): Likewise.
19408 (grub_iswordseparator): Likewise.
19409 * kern/misc.c (grub_real_dprintf): New function.
19410 (grub_strword): Likewise.
19411 (grub_iswordseparator): Likewise.
19412
19413 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
19414
19415 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
19416 (roundup): Remove macro.
19417 (grub_ieee1275_flags): Make static.
19418 (grub_ieee1275_realmode): Remove.
19419 (grub_ieee1275_test_flag): New function.
19420 (grub_ieee1275_set_flag): Likewise.
19421 (find_options): Rename to `grub_ieee1275_find_options'; update
19422 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
19423 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
19424 (cmain): New prototype.
19425 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
19426 `grub_ieee1275_flags' directly.
19427 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
19428 machine/biosdisk.h.
19429 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
19430 Don't include grub/machine/init.h.
19431 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
19432 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
19433 Remove prototype.
19434 (grub_ieee1275_realmode): Likewise.
19435 (grub_ieee1275_flag): New enum.
19436 (grub_ieee1275_test_flag): New prototype.
19437 (grub_ieee1275_set_flag): New prototype.
19438 * include/grub/powerpc/ieee1275/init.h: Remove file.
19439 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
19440 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
19441 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
19442 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
19443 comment.
19444 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
19445 `grub_ieee1275_test_flag'.
19446 (grub_ieee1275_encode_devname): Likewise.
19447
19448 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
19449
19450 * include/grub/powerpc/ieee1275/ieee1275.h
19451 (grub_ieee1275_encode_devname): New prototype.
19452 (grub_ieee1275_get_filename): Likewise.
19453 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
19454 function.
19455 (grub_set_prefix): Likewise.
19456 (grub_machine_init): Call grub_set_prefix.
19457 * kern/powerpc/ieee1275/openfw.c: Fix typos.
19458 (grub_parse_type): New enum.
19459 (grub_ieee1275_get_devargs): New function.
19460 (grub_ieee1275_get_devname): Likewise.
19461 (grub_ieee1275_parse_args): Likewise.
19462 (grub_ieee1275_get_filename): Likewise.
19463 (grub_ieee1275_encode_devname): Likewise.
19464
19465 2005-03-30 Marco Gerards <metgerards@student.han.nl>
19466
19467 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
19468 `grub_loader_unset'.
19469
19470 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
19471
19472 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
19473 instead of grub_ieee1275_interpret.
19474 (grub_halt_init): New function.
19475 (grub_halt_fini): Likewise.
19476 (GRUB_MOD_INIT): Correct message grammar.
19477 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
19478 instead of grub_ieee1275_interpret.
19479 (grub_reboot_init): New function.
19480 (grub_reboot_fini): Likewise.
19481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
19482 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
19483 util/i386/pc/misc.c with commands/ieee1275/halt.c,
19484 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
19485 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
19486 function.
19487 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
19488 Add prototype.
19489 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
19490 prototype.
19491 (grub_halt): Likewise.
19492 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
19493 (cmain): Remove __attribute__((unused)).
19494 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
19495 (grub_heap_len): Likewise.
19496 (grub_machine_fini): New function.
19497 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
19498 (grub_halt): Likewise.
19499 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
19500 function.
19501 * util/powerpc/ieee1275/misc.c: New file.
19502
19503 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
19504
19505 * DISTLIST: New file.
19506 * gendistlist.sh: Likewise.
19507
19508 * Makefile.in (COMMON_DISTFILES): Removed.
19509 (BOOT_DISTFILES): Likewise.
19510 (CONF_DISTFILES): Likewise.
19511 (DISK_DISTFILES): Likewise.
19512 (FS_DISTFILES): Likewise.
19513 (INCLUDE_DISTFILES): Likewise.
19514 (KERN_DISTFILES): Likewise.
19515 (LOADER_DISTFILES): Likewise.
19516 (TERM_DISTFILES): Likewise.
19517 (UTIL_DISTFILES): Likewise.
19518 (DISTFILES): Likewise.
19519 (uninstall): Uninstall files in $(pkgdata_DATA).
19520 (DISTLIST): New target.
19521 (distdir): Use the contents of the file DISTLIST to get a list of
19522 distributed files.
19523
19524 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
19525
19526 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
19527 descriptor. This is ported from GRUB Legacy.
19528
19529 * gencmdlist.sh: Added an extra semicolon to make it work with
19530 old sed versions. Reported by Robert Bihlmeyer
19531 <robbe@orcus.priv.at>.
19532
19533 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
19534
19535 Automatic loading of commands is supported.
19536
19537 * normal/main.c (read_command_list): New function.
19538 (grub_normal_execute): Call read_command_list.
19539
19540 * normal/command.c (grub_register_command): Return zero or CMD.
19541 Allocate CMD->NAME from the heap.
19542 Initialize CMD->MODULE_NAME to zero.
19543 Find the same name as well. If the same command is found and it is
19544 a dummy command, overwrite members. If it is not a dummy command,
19545 return zero.
19546 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
19547 (grub_command_find): If a dummy command is found, load a module
19548 and retry to find a command only once.
19549
19550 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
19551 make sure that each command is loaded.
19552
19553 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
19554 macro.
19555 (struct grub_command): Remove const from the member `name'.
19556 Add a new member `module_name'.
19557 (grub_register_command): Return grub_command_t.
19558
19559 * commands/help.c (grub_cmd_help): Call grub_command_find to make
19560 sure that each command is loaded.
19561
19562 * genmk.rb (PModule::rule): Specify a module name without the
19563 suffix ".mod" to gencmdlist.sh.
19564
19565 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
19566
19567 * gencmdlist.sh: New file.
19568
19569 * genmk.rb (PModule::rule): Generate a rule for a command list.
19570 Clean command.lst.
19571 Generate command.lst from $(COMMANDFILES).
19572
19573 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
19574 (DATA): Added $(pkgdata_DATA).
19575 (install-local): Install files in $(pkgdata_DATA).
19576
19577 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
19578
19579 * term/i386/pc/vga.c (debug_command): Removed.
19580 (GRUB_MOD_INIT): Do not register the command "debug".
19581
19582 From Hollis Blanchard:
19583 * commands/configfile.c: New file.
19584 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19585 commands/configfile.c.
19586 (pkgdata_MODULES): Added configfile.mod.
19587 (configfile_mod_SOURCES): New variable.
19588 (configfile_mod_CFLAGS): Likewise.
19589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
19590 commands/configfile.c.
19591 (pkgdata_MODULES): Added configfile.mod.
19592 (configfile_mod_SOURCES): New variable.
19593 (configfile_mod_CFLAGS): Likewise.
19594 * util/grub-emu.c (main): Call grub_configfile_init and
19595 grub_configfile_fini.
19596 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
19597 prototype.
19598 [GRUB_UTIL] (grub_configfile_fini): Likewise.
19599
19600 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
19601
19602 * normal/arg.c (grub_arg_show_help): Do not show the bug report
19603 address.
19604
19605 * commands/help.c (grub_cmd_help): Do not print newlines after
19606 the last command in print_command_help.
19607
19608 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
19609
19610 * commands/default.h: New file.
19611 * commands/timeout.h: Likewise.
19612 * normal/context.c: Likewise.
19613
19614 * util/misc.c: Do not include sys/times.h.
19615 Include sys/time.h and grub/machine/time.h.
19616 (grub_get_rtc): Rewritten with gettimeofday.
19617
19618 * util/grub-emu.c (main): Call grub_default_init and
19619 grub_timeout_init before grub_normal_init, and call
19620 grub_timeout_fini and grub_default_fini after grub_main.
19621
19622 * util/console.c (grub_ncurses_checkkey): Return the read
19623 character or -1.
19624
19625 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
19626 timeouts.
19627
19628 * normal/main.c (read_config_file): Push MENU. If this fails,
19629 print an error and wait for a user input.
19630 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
19631 If a menu is empty or an error occurs, pop MENU.
19632 (grub_normal_execute): Pop and free MENU after grub_menu_run
19633 returns.
19634
19635 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
19636
19637 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
19638 include time.h.
19639 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
19640 without GRUB_UTIL.
19641 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
19642 time.h.
19643 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
19644 without GRUB_UTIL.
19645
19646 * include/grub/normal.h (struct grub_menu_list): New struct.
19647 (grub_menu_list_t): New type.
19648 (struct grub_context): New struct.
19649 (grub_context_t): New type.
19650 (grub_register_command): Got rid of EXPORT_FUNC.
19651 (grub_unregister_command): Likewise.
19652 (grub_context_get): New prototype.
19653 (grub_context_get_current_menu): Likewise.
19654 (grub_context_push_menu): Likewise.
19655 (grub_context_pop_menu): Likewise.
19656 [GRUB_UTIL] (grub_default_init): Likewise.
19657 [GRUB_UTIL] (grub_default_fini): Likewise.
19658 [GRUB_UTIL] (grub_timeout_init): Likewise.
19659 [GRUB_UTIL] (grub_timeout_fini): Likewise.
19660
19661 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
19662 commands/timeout.c and normal/context.c.
19663 (pkgdata_MODULES): Added default.mod and timeout.mod.
19664 (normal_mod_SOURCES): Added normal/context.c.
19665 (default_mod_SOURCES): New variable.
19666 (default_mod_CFLAGS): Likewise.
19667 (timeout_mod_SOURCES): Likewise.
19668 (timeout_mod_CFLAGS): Likewise.
19669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
19670 conf/i386-pc.rmk.
19671 (pkgdata_MODULES): Added default.mod and timeout.mod.
19672 (normal_mod_SOURCES): Added normal/context.c.
19673 (default_mod_SOURCES): New variable.
19674 (default_mod_CFLAGS): Likewise.
19675 (timeout_mod_SOURCES): Likewise.
19676 (timeout_mod_CFLAGS): Likewise.
19677
19678 * Makefile.in (all-local): Added $(MKFILES).
19679
19680 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
19681
19682 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
19683 (grub_emu_SOURCES): Likewise.
19684 (pkgdata_MODULES): Add `sun.mod'.
19685 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19687 `partmap/sun.c'.
19688 (pkgdata_MODULES): Add `sun.mod'.
19689 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19690 * include/grub/partition.h (grub_sun_partition_map_init): New
19691 prototype.
19692 (grub_sun_partition_map_fini): Likewise.
19693 * partmap/sun.c: New file.
19694 * util/grub-emu.c (main): Initialize and de-initialize the sun
19695 partitionmap support.
19696
19697 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
19698
19699 This implements an Emacs-like menu entry editor.
19700
19701 * normal/menu_entry.c: New file.
19702
19703 * util/console.c (grub_ncurses_putchar): Translate some Unicode
19704 characters to ASCII.
19705 (saved_char): New variable.
19706 (grub_ncurses_checkkey): Rewritten completely.
19707 (grub_ncurses_getkey): Likewise.
19708 (grub_ncurses_init): Call raw instead of cbreak.
19709
19710 * normal/menu.c (print_entry): Do not put a space.
19711 (init_page): Renamed to ...
19712 (grub_menu_init_page): ... this. All callers changed.
19713 (edit_menu_entry): Removed.
19714 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
19715
19716 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
19717
19718 * kern/misc.c (grub_vprintf): Call grub_refresh.
19719
19720 * normal/menu.c (DISP_LEFT): Renamed to ...
19721 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
19722 * normal/menu.c (DISP_UP): Renamed to ...
19723 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
19724 * normal/menu.c (DISP_RIGHT): Renamed to ...
19725 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
19726 * normal/menu.c (DISP_DOWN): Renamed to ...
19727 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
19728 * normal/menu.c (DISP_HLINE): Renamed to ...
19729 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
19730 * normal/menu.c (DISP_VLINE): Renamed to ...
19731 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
19732 * normal/menu.c (DISP_UL): Renamed to ...
19733 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
19734 * normal/menu.c (DISP_UR): Renamed to ...
19735 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
19736 * normal/menu.c (DISP_LL): Renamed to ...
19737 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
19738 * normal/menu.c (DISP_LR): Renamed to ...
19739 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
19740 * normal/menu.c (TERM_WIDTH): Renamed to ...
19741 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
19742 * normal/menu.c (TERM_HEIGHT): Renamed to ...
19743 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
19744 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
19745 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
19746 * normal/menu.c (TERM_MARGIN): Renamed to ...
19747 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
19748 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
19749 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
19750 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
19751 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
19752 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
19753 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
19754 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
19755 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
19756 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
19757 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
19758 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
19759 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
19760 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
19761 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
19762 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
19763 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
19764 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
19765 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
19766 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
19767 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
19768 All callers changed.
19769
19770 * include/grub/normal.h: New prototype.
19771
19772 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19773 normal/menu_entry.c.
19774 (normal_mod_SOURCES): Likewise.
19775 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19776 (normal_mod_SOURCES): Likewise.
19777
19778 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
19779
19780 * include/grub/normal.h (grub_halt_init): New prototype.
19781 (grub_halt_fini): Likewise.
19782 (grub_reboot_init): Likewise.
19783 (grub_reboot_fini): Likewise.
19784
19785 * util/grub-emu.c: Include signal.h.
19786 (main_env): New global variable.
19787 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
19788 catch C-c.
19789 (grub_machine_fini): New function.
19790 (main): Call grub_halt_init and grub_reboot_init before
19791 grub_main, and grub_reboot_fini and grub_halt_fini after it.
19792 Call setjmp with MAIN_ENV to go back afterwards.
19793 Call grub_machine_fini right before return.
19794
19795 * include/grub/util/misc.h: Include setjmp.h.
19796 (main_env): New prototype.
19797
19798 * include/grub/kernel.h (grub_machine_fini): New prototype.
19799 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
19800 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
19801
19802 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
19803 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
19804 * term/i386/pc/console.c (grub_console_fini): Likewise.
19805
19806 * util/i386/pc/misc.c: New file.
19807
19808 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19809 util/i386/pc/misc.c, commands/i386/pc/halt.c and
19810 commands/i386/pc/reboot.c.
19811
19812 2005-02-14 Guillem Jover <guillem@hadrons.org>
19813
19814 * include/grub/dl.h (grub_dl_check_header): New prototype.
19815 (grub_arch_dl_check_header): Change return type to grub_err_t,
19816 remove size parameter and export function. Update all callers.
19817 * kern/dl.c (grub_dl_check_header): New function.
19818 (grub_dl_load_core): Use `grub_dl_check_header' instead of
19819 `grub_arch_dl_check_header'. Check ELF type. Check if sections
19820 are inside the core.
19821 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
19822 independent ELF header checks.
19823 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
19824 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
19825 `grub_dl_check_header' instead of explicit checks. Check for the
19826 ELF type.
19827 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
19828 `grub_dl_check_header' instead of explicit checks. Remove arch
19829 specific ELF header checks.
19830
19831 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
19832 argument SIZE.
19833
19834 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
19835
19836 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
19837 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
19838
19839 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
19840
19841 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
19842 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
19843 (part_map_iterate): Clear `grub_errno' and return 0 if
19844 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
19845 * partmap/amiga.c (amiga_partition_map_iterate): Return
19846 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
19847 * partmap/apple.c (apple_partition_map_iterate): Likewise.
19848
19849 2005-02-01 Guillem Jover <guillem@hadrons.org>
19850
19851 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
19852 help info.
19853
19854 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19855
19856 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
19857 Removed prototype.
19858 (grub_rescue_cmd_linux): New prototype.
19859 (grub_rescue_cmd_initrd): Likewise.
19860 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
19861 `bi_rec'.
19862 (grub_linux_release_mem): Release the memory for the initrd.
19863 (grub_load_linux): Renamed from this...
19864 (grub_rescue_cmd_linux): ...To this. Changed all callers.
19865 Changed `entry' not to be static. Loop over memory regions to
19866 find another one when the default fails.
19867 (grub_rescue_cmd_initrd): New function.
19868 (grub_linux_init): Remove function.
19869 (grub_linux_fini): Likewise.
19870 (GRUB_MOD_INIT): Register `initrd'.
19871 (GRUB_MOD_FINI): Unregister `initrd'.
19872 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
19873 Function removed.
19874 (grub_linux_normal_fini): Likewise.
19875 (GRUB_MOD_INIT): Register `initrd'.
19876 (GRUB_MOD_FINI): Unregister `initrd'.
19877
19878 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19879
19880 * commands/help.c: New file.
19881 * normal/arg.c (show_help): Renamed to...
19882 (grub_arg_show_help): ... this.
19883 * commands/i386/pc/halt.c: New file.
19884 * commands/i386/pc/reboot.c: Likewise.
19885 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
19886 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
19887 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
19888 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
19889 variables.
19890 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19891 `commands/help.c'.
19892 (pkgdata_MODULES): Add `help.mod'.
19893 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
19894 * grub/i386/pc/init.h (grub_reboot): New prototype.
19895 (grub_halt): Likewise.
19896 * include/grub/normal.h (grub_arg_show_help): New prototype.
19897 (grub_help_init): Likewise.
19898 (grub_help_fini): Likewise.
19899 * util/grub-emu.c (main): Initialize and deinitialize the help
19900 command.
19901
19902 * normal/cmdline.c (grub_cmdline_get): Doc fix.
19903
19904 * normal/command.c (grub_command_init): Fixed the description of
19905 the `set' and `unset' commands.
19906
19907 2005-01-31 Marco Gerards <metgerards@student.han.nl>
19908
19909 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
19910 function.
19911 * commands/ieee1275/halt.c: New file.
19912 * commands/ieee1275/reboot.c: Likewise.
19913 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
19914 `__attribute__ ((unused))'. Some GCS related fixed.
19915 (grub_suspend_init) [GRUB_UTIL]: Function removed.
19916 (grub_suspend_fini): Likewise.
19917 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
19918 and `halt.mod'.
19919 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
19920 (halt_mod_CFLAGS): New variables.
19921 * include/grub/powerpc/ieee1275/ieee1275.h
19922 (grub_ieee1275_interpret): New prototype.
19923
19924 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
19925
19926 * include/grub/misc.h (memmove): New prototype.
19927 (memcpy): Likewise.
19928
19929 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
19930
19931 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
19932 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
19933
19934 2005-01-22 Marco Gerards <metgerards@student.han.nl>
19935
19936 * kern/misc.c (grub_strndup): Function rewritten.
19937
19938 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
19939
19940 * normal/menu.c (TERM_WIDTH): Macro redefined.
19941 (TERM_TOP_BORDER_Y): Likewise.
19942 (draw_border): Replaced while-loop by a for-loop. Make the number
19943 of lines consistent with the number of lines displayed in
19944 print_entries. Added a margin below the rectangle.
19945 (print_entry): Make the entry fit in the rectangle.
19946 (print_entries): Display the scroll arrows next to the right
19947 border.
19948
19949 2005-01-21 Marco Gerards <metgerards@student.han.nl>
19950
19951 * fs/minix.c (grub_minix_find_file): Reserve more space for
19952 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
19953 `grub_strncpy' to copy `path' into it.
19954
19955 2005-01-21 Marco Gerards <metgerards@student.han.nl>
19956
19957 Add the loopback device, a device via which files can be accessed
19958 as devices.
19959
19960 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
19961 (pkgdata_MODULES): Add loopback.mod.
19962 (loopback_mod_SOURCES): New variable.
19963 (loopback_mod_CFLAGS): Likewise.
19964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19965 `disk/loopback.c'.
19966 (pkgdata_MODULES): Add loopback.mod.
19967 (loopback_mod_SOURCES): New variable.
19968 (loopback_mod_CFLAGS): Likewise.
19969 * disk/loopback.c: new file.
19970 * include/grub/normal.h (grub_loop_init): New prototype.
19971 (grub_loop_fini): New prototype.
19972 * util/grub-emu.c (main): Initialize and de-initialize loopback
19973 support.
19974 * include/grub/disk.h (grub_disk_dev_id): Add
19975 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
19976
19977 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
19978
19979 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
19980 function.
19981 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
19982 (suspend_mod_SOURCES): New variable.
19983 (suspend_mod_CFLAGS): Likewise.
19984 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
19985 New prototype.
19986 * commands/ieee1275/suspend.c: New file.
19987
19988 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
19989
19990 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
19991 ((unused))' to `__attribute__ ((used))'.
19992 (GRUB_MOD_FINI): Likewise.
19993 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
19994 * genmk.rb (PModule): Assign space to common symbols when linking
19995 modules.
19996
19997 2005-01-20 Marco Gerards <metgerards@student.han.nl>
19998
19999 * include/grub/mm.h (grub_mm_init_region): Change the type of the
20000 `unsigned' arguments to `grub_size_t'.
20001 (grub_malloc): Likewise.
20002 (grub_realloc): Likewise.
20003 (grub_memalign): Likewise.
20004 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
20005 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
20006 * util/misc.c (grub_malloc): Likewise.
20007 (grub_realloc): Likewise.
20008 * kern/mm.c (get_header_from_pointer): Change the casts to
20009 `unsigned' into a cast to `grub_size_t'.
20010
20011 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
20012 point to `currnode' when `currnode' is changed.
20013
20014 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
20015 Schottelius <nico-linux@schottelius.org>.
20016
20017 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
20018
20019 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
20020 (note_path): Remove variable.
20021 (GRUB_IEEE1275_NOTE_NAME): New macro.
20022 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
20023 (grub_ieee1275_note_hdr): New structure.
20024 (grub_ieee1275_note_desc): Likewise.
20025 (grub_ieee1275_note): Likewise.
20026 (load_note): Remove `dir' argument. All callers updated. Remove
20027 `note_img' and `path'. Do not load a file from `note_path'.
20028 Initialize a struct grub_ieee1275_note and write that to `out'.
20029 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
20030
20031 2005-01-05 Marco Gerards <metgerards@student.han.nl>
20032
20033 * util/misc.c (grub_util_read_image): Revert last change. It
20034 called `grub_util_read_at', which seeks from the beginning of the
20035 file.
20036
20037 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
20038
20039 * TODO: Add note about endianness in grub-mkimage.
20040 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
20041 section.
20042 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
20043 (grub_mkimage_SOURCES): New target.
20044 * include/grub/kernel.h (grub_start_addr): Remove variable.
20045 (grub_end_addr): Likewise.
20046 (grub_total_module_size): Likewise.
20047 (grub_kernel_image_size): Likewise.
20048 (GRUB_MODULE_MAGIC): New constant.
20049 (grub_module_info): New structure.
20050 (grub_arch_modules_addr): New prototype.
20051 (grub_get_end_addr): Remove prototype.
20052 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
20053 * include/grub/powerpc/ieee1275/kernel.h: New file.
20054 * include/grub/util/misc.h (grub_util_get_fp_size): New
20055 prototype.
20056 (grub_util_read_at): Likewise.
20057 (grub_util_write_image_at): Likewise.
20058 * kern/main.c (grub_get_end_addr): Remove function.
20059 (grub_load_modules): Call grub_arch_modules_addr instead of using
20060 grub_end_addr. Look for a grub_module_info struct in memory. Use
20061 the grub_module_info fields instead of calling grub_get_end_addr
20062 as loop conditions. Move grub_add_unused_region code here.
20063 (grub_add_unused_region): Remove function.
20064 * kern/i386/pc/init.c: Include grub/cache.h.
20065 (grub_machine_init): Remove call to grub_get_end_addr. Remove
20066 one call to add_mem_region.
20067 (grub_arch_modules_addr): New function.
20068 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
20069 (grub_total_module_size): Likewise.
20070 Include grub/machine/kernel.h.
20071 (grub_arch_modules_addr): New function.
20072 * util/grub-emu.c (grub_end_addr): Remove variable.
20073 (grub_total_module_size): Likewise.
20074 (grub_arch_modules_addr): New function.
20075 * util/misc.c: Include unistd.h.
20076 (grub_util_get_fp_size): New function.
20077 (grub_util_read_at): Likewise.
20078 (grub_util_write_image_at): Likewise.
20079 (grub_util_read_image): Call grub_util_read_at.
20080 (grub_util_write_image): Call grub_util_write_image_at.
20081 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
20082 additional memory in kernel_img for a struct grub_module_info.
20083 Fill in that grub_module_info.
20084 * util/powerpc/ieee1275/grub-mkimage.c: New file.
20085
20086 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
20087
20088 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
20089 New function.
20090 * include/grub/powerpc/ieee1275/ieee1275.h
20091 (grub_ieee1275_milliseconds): New prototype.
20092 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
20093 Change to 1000.
20094 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
20095 grub_ieee1275_milliseconds.
20096
20097 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
20098
20099 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
20100 variable.
20101 (find_options): New function.
20102 (cmain): Call find_options.
20103 * include/grub/powerpc/ieee1275/ieee1275.h
20104 (grub_ieee1275_realmode): New extern variable.
20105 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
20106 grub_map if grub_ieee1275_realmode is false.
20107
20108 2004-12-29 Marco Gerards <metgerards@student.han.nl>
20109
20110 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
20111 lines are inserted and make it work like readline. Reported by
20112 Vincent Pelletier <subdino2004@yahoo.fr>.
20113
20114 2004-12-28 Marco Gerards <metgerards@student.han.nl>
20115
20116 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
20117
20118 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
20119 `kern/powerpc/cache.S'.
20120
20121 2004-12-27 Marco Gerards <metgerards@student.han.nl>
20122
20123 * genmk.rb: Handle the `Program' class in the main loop. Written
20124 by Johan Rydberg <jrydberg@gnu.org>.
20125 (Program): New class.
20126 (programs): New variable.
20127 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
20128 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
20129 instead of "grub/kernel.h". Include <grub/machine/init.h>.
20130 (help_arch): Function removed.
20131 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
20132 `powerpc/libgcc.h' and `loader.h'.
20133 (pkgdata_PROGRAMS): New variable.
20134 (sbin_UTILITIES): Variable removed.
20135 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
20136 (grubof_SOURCES): Variable re-defined so it only includes the
20137 core functionality.
20138 (grubof_CFLAGS): Remove `-DGRUBOF'.
20139 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
20140 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
20141 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
20142 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
20143 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
20144 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
20145 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
20146 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
20147 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
20148 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
20149 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
20150 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
20151 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
20152 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
20153 (pc_mod_CFLAGS): New variables.
20154 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
20155 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
20156 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
20157 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
20158 Moved from here...
20159 * include/grub/i386/pc/init.h (grub_os_area_addr)
20160 (rub_os_area_size): ... to here.
20161 * include/grub/powerpc/ieee1275/ieee1275.h
20162 (grub_ieee1275_entry_fn): Export symbol.
20163 * include/grub/powerpc/ieee1275/init.h: New file.
20164 * include/grub/powerpc/libgcc.h: Likewise.
20165 * include/grub/cache.h: Likewise.
20166 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
20167 <hollis@penguinppc.org>.
20168 * kern/dl.c: Include <grub/cache.h>.
20169 (grub_dl_flush_cache): New function.
20170 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
20171 for this module.
20172 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
20173 (grub_console_init): Removed prototypes.
20174 (grub_machine_init): Don't initialize the modules anymore.
20175 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
20176 static.
20177 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
20178 Macro undef removed.
20179 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
20180 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
20181 relocation `R_PPC_REL32'. Return an error when the relocation is
20182 unknown.
20183 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
20184 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
20185 * util/misc.c (grub_arch_sync_caches): Likewise.
20186
20187 2004-12-19 Marco Gerards <metgerards@student.han.nl>
20188
20189 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
20190 `symlist.c', add `grubof_symlist.c'.
20191 (symlist.c): Variable removed.
20192 (grubof_HEADERS): Variable added.
20193 (grubof_symlist.c): New target.
20194 (kernel_syms.lst): Use `grubof_HEADERS' instead of
20195 `kernel_img_HEADERS'.
20196 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
20197 * kern/powerpc/dl.c: New file.
20198 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
20199 Function removed.
20200 (grub_arch_dl_relocate_symbols): Likewise.
20201 (grub_register_exported_symbols): Likewise.
20202
20203 2004-12-13 Marco Gerards <metgerards@student.han.nl>
20204
20205 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
20206 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
20207 to fail instead. Reported by Vincent Pelletier
20208 <subdino2004@yahoo.fr>.
20209
20210 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
20211 it is not allocated. Reported by Vincent Pelletier
20212 <subdino2004@yahoo.fr>.
20213
20214 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
20215 output so the output looks better.
20216
20217 2004-12-04 Marco Gerards <metgerards@student.han.nl>
20218
20219 Modulize the partition map support and add support for the amiga
20220 partition map.
20221
20222 * commands/ls.c: Include <grub/partition.h> instead of
20223 <grub/machine/partition.h>.
20224 * kern/disk.c: Likewise.
20225 * kern/rescue.c: Likewise.
20226 * loader/i386/pc/chainloader.c: Likewise.
20227 * normal/cmdline.c: Likewise.
20228 * kern/powerpc/ieee1275/init.c: Likewise.
20229 (grub_machine_init): Call `grub_pc_partition_map_init',
20230 `grub_amiga_partition_map_init' and
20231 `grub_apple_partition_map_init'.
20232 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
20233 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
20234 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
20235 `partition.h' and `pc_partition.h'.
20236 (grub_setup_SOURCES): Remove
20237 `disk/i386/pc/partition.c'. Add `kern/partition.c',
20238 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
20239 (grub_emu_SOURCES): Likewise.
20240 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
20241 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
20242 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
20243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
20244 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
20245 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
20246 (grubof_SOURCES): Likewise.
20247 * disk/i386/pc/partition.c: File removed.
20248 * disk/powerpc/ieee1275/partition.c: Likewise.
20249 * include/grub/powerpc/ieee1275/partition.h: Likewise.
20250 * include/grub/i386/pc/partition.h: Likewise.
20251 * kern/partition.c: New file.
20252 * partmap/amiga.c: Likewise.
20253 * partmap/apple.c: Likewise.
20254 * partmap/pc.c: Likewise.
20255 * include/grub/partition.h: Likewise..
20256 * include/grub/pc_partition.h: Likewise.
20257 * util/grub-emu.c: Include <grub/partition.h> instead of
20258 <grub/machine/partition.h>.
20259 (main): Call `grub_pc_partition_map_init',
20260 `grub_amiga_partition_map_init' and
20261 `grub_apple_partition_map_init' and deinitialize afterwards.
20262 * util/i386/pc/biosdisk.c: Include `#include
20263 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
20264 `<grub/machine/partition.h>'.
20265 * util/i386/pc/grub-setup.c: Likewise.
20266 * util/i386/pc/biosdisk.c: Likewise.
20267 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
20268 partition information in case of a PC partition.
20269 * util/i386/pc/grub-setup.c: Include `#include
20270 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
20271 `<grub/machine/partition.h>'.
20272 (setup): Only access the PC specific partition information in case
20273 of a PC partition.
20274
20275 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
20276
20277 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
20278 (grub_longjmp): Likewise.
20279 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
20280 20.
20281 * normal/powerpc/setjmp.S: New file.
20282 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
20283 `normal/powerpc/setjmp.S'.
20284 (grubof_CFLAGS): Add `-DGRUBOF'.
20285 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
20286 [GRUB_UTIL && !GRUBOF].
20287
20288 2004-11-16 Marco Gerards <metgerards@student.han.nl>
20289
20290 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
20291 property named `name'. Correctly handle the error returned by
20292 `grub_ieee1275_finddevice' if a device can not be opened.
20293
20294 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
20295
20296 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
20297 `actual' for negativity.
20298 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
20299 kern/fshelp.c.
20300
20301 2004-11-01 Marco Gerards <metgerards@student.han.nl>
20302
20303 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
20304 (PAGE_OFFSET): New macro.
20305 (CRTC_ADDR_PORT): Likewise.
20306 (CRTC_DATA_PORT): Likewise.
20307 (START_ADDR_HIGH_REGISTER): Likewise.
20308 (START_ADDR_LOW_REGISTER): Likewise.
20309 (GRAPHICS_ADDR_PORT): Likewise.
20310 (GRAPHICS_DATA_PORT): Likewise.
20311 (READ_MAP_REGISTER): Likewise.
20312 (INPUT_STATUS1_REGISTER): Likewise.
20313 (INPUT_STATUS1_VERTR_BIT): Likewise.
20314 (page): New variable.
20315 (wait_vretrace): New function.
20316 (set_read_map): Likewise.
20317 (set_start_address): Likewise.
20318 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
20319 the right page.
20320 (check_vga_mem): Take the page into account.
20321 (write_char): Likewise.
20322 (write_cursor): Likewise.
20323 (scroll_up): Likewise. Copy the page to the page that is not
20324 shown and switch between both pages.
20325 (grub_vga_putchar): Fix off by one error.
20326 (grub_vga_cls): Wait for the vertical retrace. Take the page into
20327 account.
20328
20329 2004-11-01 Marco Gerards <metgerards@student.han.nl>
20330
20331 Add support for iso9660 (including rockridge).
20332
20333 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
20334 (iso9660_mod_SOURCES): New variable.
20335 (iso9660_mod_CFLAGS): Likewise.
20336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
20337 * include/grub/fs.h (grub_iso9660_init): New prototype.
20338 * util/grub-emu.c (main): Call `grub_iso9660_init'.
20339 * fs/iso9660.c: New file.
20340
20341 * include/grub/misc.h (grub_strncat): New prototype.
20342 * kern/misc.c (grub_strncat): New function.
20343
20344 * fs/hfs.c (grub_hfs_mount): Translate the error
20345 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
20346 * fs/jfs.c (grub_jfs_mount): Likewise.
20347 * fs/ufs.c (grub_ufs_mount): Likewise.
20348
20349 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
20350
20351 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
20352 which initialized BAT registers.
20353 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
20354 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
20355 Move from here...
20356 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
20357 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
20358 ... to here.
20359 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
20360 (grub_mapclaim): Likewise.
20361 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
20362 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
20363 hand.
20364
20365 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
20366
20367 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
20368 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
20369 -ffreestanding and -msoft-float.
20370
20371 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
20372
20373 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
20374 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
20375 set in grub_ieee1275_flags.
20376
20377 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
20378
20379 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
20380 prototype.
20381 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
20382 grub_console_init first.
20383 Change the memory range used for grub_ieee1275_claim and
20384 grub_mm_init_region.
20385 Print an error message if the claim fails.
20386 Include <grub/misc.h>.
20387
20388 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
20389
20390 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
20391 Call grub_children_iterate for device nodes of type `scsi',
20392 `ide', or `ata'.
20393 (grub_ofdisk_open): Remove manual device alias resolution.
20394 Fix memory leak when device cannot be opened.
20395 * include/grub/powerpc/ieee1275/ieee1275.h
20396 (grub_children_iterate): New prototype.
20397 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
20398 New function.
20399 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
20400 Return -1 if args.size was -1.
20401
20402 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
20403
20404 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
20405 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
20406 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
20407 Open Firmware's memory for it; claim memory from _start to _end.
20408 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
20409 (_end): New extern.
20410 (_start): Zero BSS from __bss_start to _end.
20411 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
20412 New extern.
20413 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
20414
20415 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
20416
20417 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
20418 -1 if args.base was -1.
20419
20420 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
20421
20422 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
20423 escape sequence instead of a literal ^L. Also call
20424 grub_ofconsole_gotoxy.
20425
20426 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
20427
20428 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
20429 void * arguments to grub_addr_t. All callers updated. Also make
20430 the `result' argument optional.
20431 (grub_ieee1275_release): change void * arguments to grub_addr_t.
20432 All callers updated.
20433
20434 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
20435
20436 * commands/ls.c (grub_ls_list_files): Use the string following the
20437 initial ')', if present, as the filesystem path.
20438 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
20439
20440 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
20441
20442 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
20443
20444 Make the source code of the menu interface more readable.
20445
20446 * normal/menu.c: Include grub/mm.h.
20447 (TERM_WIDTH): New macro.
20448 (TERM_HEIGHT): Likewise.
20449 (TERM_INFO_HEIGHT): Likewise.
20450 (TERM_MARGIN): Likewise.
20451 (TERM_SCROLL_WIDTH): Likewise.
20452 (TERM_TOP_BORDER_Y): Likewise.
20453 (TERM_LEFT_BORDER_X): Likewise.
20454 (TERM_BORDER_WIDTH): Likewise.
20455 (TERM_MESSAGE_HEIGHT): Likewise.
20456 (TERM_BORDER_HEIGHT): Likewise.
20457 (TERM_NUM_ENTRIES): Likewise.
20458 (TERM_FIRST_ENTRY_Y): Likewise.
20459 (TERM_ENTRY_WIDTH): Likewise.
20460 (TERM_CURSOR_X): Likewise.
20461 (draw_border): Use macros instead of magic numbers.
20462 (print_entry): Likewise.
20463 (print_entries): Likewise.
20464 (run_menu): Likewise. Also, handle the key 'e'.
20465 (run_menu_entry): Ignore empty command lines.
20466 (print_message): Added a new argument EDIT. If EDIT is true,
20467 print a different message.
20468 (init_page): Likewise.
20469 (edit_menu_entry): New function. Not implemented yet.
20470
20471 2004-09-17 Marco Gerards <metgerards@student.han.nl>
20472
20473 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
20474 can be loaded from normal mode.
20475
20476 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
20477 `multiboot.mod'.
20478 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
20479 (multiboot_mod_CFLAGS): New variables.
20480 * loader/i386/pc/linux_normal.c: New file.
20481 * loader/i386/pc/multiboot_normal.c: Likewise.
20482
20483 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
20484 attribute `unused'.
20485
20486 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
20487 `fdiro' to read the mode information from instead of `diro'.
20488
20489 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
20490 looking up a symlink.
20491
20492 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
20493 macro.
20494 * normal/command.c (grub_command_execute): Don't parse the
20495 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
20496 flags of the command.
20497
20498 * normal/menu.c (grub_menu_run): Fix typo.
20499
20500 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
20501
20502 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
20503
20504 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
20505 `y + 1' instead of `y - 1'.
20506
20507 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
20508
20509 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
20510
20511 From Hollis Blanchard <hollis@penguinppc.org>:
20512 * kern/misc.c (memmove): New alias for grub_memmove.
20513 (memcmp): New alias for grub_memcmp.
20514 (memset): New alias for grub_memset.
20515 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
20516 Change "int handle" to "grub_ieee1275_phandle_t handle".
20517 * include/grub/powerpc/ieee1275/ieee1275.h
20518 (grub_ieee1275_get_property): Likewise.
20519
20520 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
20521
20522 Added normal mode command `chainloader' as module chain.mod, which
20523 depends on normal.mod and _chain.mod.
20524
20525 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
20526 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
20527 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
20528 Deleted prototype.
20529 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
20530 but arguments parsing moved to ...
20531 (grub_chainloader_cmd): ... here. New function.
20532 * include/grub/i386/pc/chainloader.h: New file.
20533 * loader/i386/pc/chainloader_normal.c: Likewise.
20534
20535 2004-09-11 Marco Gerards <metgerards@student.han.nl>
20536
20537 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
20538 (grub_mkimage_LDFLAGS): Likewise.
20539 (grub_emu_SOURCES): Likewise.
20540 (kernel_img_HEADERS): Added fshelp.h.
20541 * fs/ext2.c: Include <grub/fshelp.h>.
20542 (FILETYPE_REG): New macro.
20543 (FILETYPE_INO_REG): Likewise.
20544 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
20545 Changed all users.
20546 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
20547 all users.
20548 (grub_fshelp_node): New struct.
20549 (grub_ext2_data): Added member `diropen'. Changed member `inode'
20550 to a pointer.
20551 (grub_ext2_get_file_block): Removed function.
20552 (grub_ext2_read_block): New function.
20553 (grub_ext2_read_file): Replaced parameter `data' by `node'.
20554 This function was written.
20555 (grub_ext2_mount): Read the root inode. Create a diropen struct.
20556 (grub_ext2_find_file): Removed function.
20557 (grub_ext2_read_symlink): New function.
20558 (grub_ext2_iterate_dir): Likewise.
20559 (grub_ext2_open): Rewritten.
20560 (grub_ext2_dir): Rewritten.
20561 * include/grub/fshelp.h: New file.
20562 * fs/fshelp.c: Likewise.
20563
20564 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
20565
20566 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
20567 (print_message): Add a missing newline.
20568 (run_menu): Added timeout support.
20569 (run_menu_entry): New local function.
20570 (grub_menu_run): Added support for booting.
20571
20572 * kern/loader.c (grub_loader_is_loaded): New function.
20573
20574 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
20575 (grub_get_rtc): Exported.
20576
20577 * include/grub/i386/pc/time.h: Include grub/symbol.h.
20578 (grub_get_rtc): Exported.
20579
20580 * include/grub/normal.h (struct grub_command_list): Remove
20581 constant from the member `command'.
20582
20583 * include/grub/loader.h (grub_loader_is_loaded): Declared.
20584
20585 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
20586
20587 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
20588
20589 2004-08-28 Marco Gerards <metgerards@student.han.nl>
20590
20591 Add support for the JFS filesystem.
20592
20593 * fs/jfs.c: New file.
20594 * include/grub/fs.h (grub_jfs_init): New prototype.
20595 (grub_jfs_fini): New prototype.
20596 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
20597 (grub_emu_SOURCES): Likewise.
20598 (pkgdata_MODULES): Add jfs.mod.
20599 (jfs_mod_SOURCES): New variable.
20600 (jfs_mod_CFLAGS): Likewise.
20601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
20602 (grubof_SOURCES): Likewise.
20603 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
20604
20605 * fs/fat.c (grub_fat_find_dir): Convert the filename little
20606 endian to the host endian.
20607 (grub_fat_utf16_to_utf8): Move function from there...
20608 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
20609 the endianness of the source string anymore.
20610 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
20611
20612 2004-08-24 Marco Gerards <metgerards@student.han.nl>
20613
20614 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
20615 (grub_boot_fini) [GRUB_UTIL]: Likewise.
20616 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
20617 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
20618
20619 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
20620 (grub_hfs_iterate_dir): Make the function static. Add prototypes
20621 for `node_found' and `it_dir'.
20622 (grub_hfs_dir): Add prototype for `dir_hook'.
20623
20624 * fs/minix.c (grub_minix_get_file_block): Add prototype for
20625 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
20626 and `indir32' to silence a gcc warning.
20627
20628 * include/grub/fs.h (grub_hfs_init): New prototype.
20629 (grub_hfs_fini): Likewise.
20630
20631
20632 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
20633
20634 Each disk device has its own id now. This is useful to make use
20635 of multiple disk devices.
20636
20637 * include/grub/disk.h (grub_disk_dev_id): New enum.
20638 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
20639 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
20640
20641 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
20642 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
20643
20644 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
20645 GRUB_DISK_DEVICE_OFDISK_ID as an id.
20646
20647 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
20648 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
20649
20650 * include/grub/disk.h (struct grub_disk_dev): Added a new member
20651 "id" which is used by the cache manager.
20652
20653 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
20654 of just "GRUB".
20655
20656 2004-08-18 Marco Gerards <metgerards@student.han.nl>
20657
20658 * fs/hfs.c: New file.
20659 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
20660 (grub_emu_SOURCES): Likewise.
20661 (pkgdata_MODULES): Add hfs.mod.
20662 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
20663 (grubof_SOURCES): Likewise.
20664 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
20665
20666 * include/grub/misc.h (grub_strncasecmp): Add prototype.
20667 * kern/misc.c (grub_strncasecmp): Add function.
20668
20669 2004-08-14 Marco Gerards <metgerards@student.han.nl>
20670
20671 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
20672 with parentheses.
20673
20674 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
20675 (grub_ext2_dir): In case the directory entry type is unknown, read
20676 it from the inode.
20677
20678 2004-08-02 Peter Bruin <pjbruin@dds.nl>
20679
20680 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
20681 grub_load_linux instead of grub_rescue_cmd_linux as second
20682 argument of grub_rescue_register_command.
20683
20684 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
20685
20686 2004-07-27 Marco Gerards <metgerards@student.han.nl>
20687
20688 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
20689 function.
20690 * commands/boot.c: Remove the check for `GRUB_UTIL'.
20691 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
20692 `loader/powerpc/ieee1275/linux.c',
20693 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
20694 * include/grub/powerpc/ieee1275/ieee1275.h
20695 (grub_ieee1275_release): New prototype.
20696 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
20697 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
20698 normal, boot, linux and linux_normal.
20699 * loader/powerpc/ieee1275/linux.c: New file.
20700 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20701
20702 2004-07-12 Marco Gerards <metgerards@student.han.nl>
20703
20704 * normal/arg.c (grub_arg_parse): Correct error handling after
20705 reallocating the argumentlist (check if `argl' is not null instead
20706 of checking if `args' is not null).
20707 * kern/mm.c (grub_realloc): Return the same pointer when using the
20708 same region, instead of returning the header address.
20709
20710 2004-07-11 Marco Gerards <metgerards@student.han.nl>
20711
20712 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
20713 one block instead of two when looking for the initial partition.
20714 (grub_partition_probe): Initialize the local variable `p' with 0.
20715 Use base 10 for the grub_strtoul call.
20716 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
20717 need for one local variable.
20718 (grub_strtoul): Don't add the new value to `num', instead of that
20719 just assign it.
20720
20721 2004-07-11 Marco Gerards <metgerards@student.han.nl>
20722
20723 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
20724 (pxeboot_img_SOURCES): New variable.
20725 (pxeboot_img_ASFLAGS): Likewise.
20726 (pxeboot_img_LDFLAGS): Likewise.
20727 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
20728 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
20729 <lode_leroy@hotmail.com>.
20730
20731 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20732
20733 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
20734 there was no input.
20735
20736 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20737
20738 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
20739 the history buffer logic.
20740
20741 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20742
20743 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
20744 (FILETYPE_INO_SYMLINK): New macros.
20745 (grub_ext2_find_file): Check if the node is a directory using the
20746 inode stat information instead of using the filetype in the
20747 dirent. Exclude the first character of an absolute symlink.
20748 (grub_ext2_dir): Mask out the filetype part of the mode member of
20749 the inode.
20750
20751 2004-05-24 Marco Gerards <metgerards@student.han.nl>
20752
20753 Add support for UFS version 1 and 2. Add support for the minix
20754 filesystem version 1 and 2, both the variants with 14 and 30 long
20755 filenames.
20756
20757 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
20758 fs/minix.c.
20759 (grub_emu_SOURCES): Likewise.
20760 (pkgdata_MODULES): Add ufs.mod and minix.mod.
20761 (ufs_mod_SOURCES): New variable.
20762 (ufs_mod_CFLAGS): Likewise.
20763 (minix_mod_SOURCES): Likewise.
20764 (minix_mod_CFLAGS): Likewise.
20765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
20766 fs/minix.c.
20767 (grubof_SOURCES): Likewise.
20768 * fs/ufs.c: New file.
20769 * fs/minix.c: New file.
20770 * include/grub/fs.h (grub_ufs_init): New prototype.
20771 (grub_ufs_fini): Likewise.
20772 (grub_minix_init): Likewise.
20773 (grub_minix_fini): Likewise.
20774 * util/grub-emu.c (main): Initialize and deinitialize UFS and
20775 minix fs.
20776
20777 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
20778
20779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
20780 commands/ls.c, commands/terminal.c, commands/boot.c,
20781 commands/cmp.c and commands/cat.c.
20782 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
20783
20784 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
20785 "env.h"
20786
20787 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20788
20789 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
20790 and grub_, respectively. Because the conversion is trivial and
20791 mechanical, I omit the details here. Please refer to the CVS
20792 if you need more information.
20793
20794 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20795
20796 * include/pupa: Renamed to ...
20797 * include/grub: ... this.
20798 * util/i386/pc/pupa-mkimage.c: Renamed to ...
20799 * util/i386/pc/grub-mkimage.c: ... this.
20800 * util/i386/pc/pupa-setup.c: Renamed to ...
20801 * util/i386/pc/grub-setup.c: ... this.
20802 * util/pupa-emu.c: Renamed to ...
20803 * util/grub-emu.c: ... this.
20804
20805 2004-03-29 Marco Gerards <metgerards@student.han.nl>
20806
20807 Add support for the newworld apple macintosh (PPC). This has been
20808 tested on the powerbook 2000 only. It only adds support for
20809 generic ieee1275 functions, console and disk support. This should
20810 be easy to port to other architectures with support for Open
20811 Firmware.
20812
20813 * configure.ac: Accept the powerpc as host_cpu. In the case of
20814 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
20815 specific tests are only executed while building for the i386.
20816 Inverse test for crosscompile.
20817 * genmk.rb (Utility): Allow assembler files.
20818 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
20819 * conf/powerpc-ieee1275.rmk: New file.
20820 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
20821 * disk/powerpc/ieee1275/partition.c: Likewise.
20822 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
20823 * include/pupa/powerpc/ieee1275/console.h: Likewise.
20824 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
20825 * include/pupa/powerpc/ieee1275/time.h: Likewise.
20826 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
20827 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
20828 * include/pupa/powerpc/ieee1275/loader.h
20829 * include/pupa/powerpc/setjmp.h: Likewise.
20830 * include/pupa/powerpc/types.h: Likewise.
20831 * kern/powerpc/ieee1275/init.c: Likewise.
20832 * kern/powerpc/ieee1275/openfw.c: Likewise.
20833 * term/powerpc/ieee1275/ofconsole.c: Likewise.
20834
20835 These files were written by Johan Rydberg
20836 (jrydberg@night.trouble.net) and I only modified them slightly.
20837
20838 * boot/powerpc/ieee1275/cmain.c: New file.
20839 * boot/powerpc/ieee1275/crt0.S: Likewise.
20840 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
20841 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
20842
20843 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
20844
20845 * Makefile.in: Update copyright.
20846 * genmodsrc.sh: Likewise.
20847 * gensymlist.sh: Likewise.
20848 * term/i386/pc/vga.c: Indent correctly.
20849
20850 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
20851 bugreporting address.
20852 * util/i386/pc/pupa-setup.c (usage): Likewise,
20853 (main): Call pupa_ext2_init and pupa_ext2_fini.
20854
20855 * fs/fat.c (log2): Renamed to ...
20856 (fat_log2): ... this.
20857 All callers changed.
20858 * kern/misc.c (memcpy): Alias to pupa_memmove.
20859 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
20860 lvalue cast.
20861 * util/console.c (pupa_ncurses_fini): Return 0.
20862
20863 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
20864 Move fail label here.
20865 [__GNU__]: Don't warn when using stat.
20866 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
20867 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
20868 long int. Use strtol instead of strtoul.
20869
20870 2004-03-14 Marco Gerards <metgerards@student.han.nl>
20871
20872 * commands/boot.c: New file.
20873 * commands/cat.c: Likewise.
20874 * commands/cmp.c: Likewise.
20875 * commands/ls.c: Likewise.
20876 * commands/terminal.c: Likewise.
20877 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
20878 (pupa_register_command): Changed interface to match the new
20879 argument parser.
20880 (pupa_command_execute): Changed (almost rewritten) so it uses
20881 pupa_split_command. Added support for setting variables using the
20882 syntax `foo=bar'.
20883 (rescue_command): Changed to work with the new argument parser.
20884 (terminal_command): Moved from here to commands/terminal.c.
20885 (set_command): New function.
20886 (unset_command): New function.
20887 (insmod_command): New function.
20888 (rmmod_command): New function.
20889 (lsmod_command): New function.
20890 (pupa_command_init): Don't initialize the command terminal
20891 anymore. Initialize the commands set, unset, insmod, rmmod and
20892 lsmod.
20893 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
20894 (kernel_img_HEADERS): Add arg.h and env.h.
20895 (pupa_mkimage_LDFLAGS): Add kern/env.c.
20896 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
20897 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
20898 normal/arg.c.
20899 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
20900 terminal.mod.
20901 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
20902 (boot_mod_SOURCES): New variable.
20903 (terminal_mod_SOURCES): Likewise.
20904 (ls_mod_SOURCES): Likewise.
20905 (cmp_mod_SOURCES): Likewise.
20906 (cat_mod_SOURCES): Likewise.
20907
20908 * normal/arg.c: New file.
20909 * kern/env.c: Likewise.
20910 * include/pupa/arg.h: Likewise.
20911 * include/pupa/env.h: Likewise.
20912 * font/manager.c (font_command): Changed to match argument parsing
20913 interface changes.
20914 (PUPA_MOD_INIT): Likewise.
20915 * hello/hello.c (pupa_cmd_hello): Likewise.
20916 (PUPA_MOD_INIT): Likewise.
20917 * include/pupa/disk.h: Include <pupa/device.h>.
20918 (pupa_print_partinfo): New prototype.
20919 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
20920 (pupa_dl_get_prefix): Likewise.
20921 * include/pupa/misc.h: Include <pupa/err.h>.
20922 (pupa_isgraph): New prototype.
20923 (pupa_isdigit): Likewise.
20924 (pupa_split_cmdline): Likewise.
20925 * include/pupa/normal.h: Include <pupa/arg.h>.
20926 (pupa_command): Changed the prototype of the member `func' to
20927 match the argument parsing interface. Added member `options'.
20928 (pupa_register_command): Updated to match function.
20929 (pupa_arg_parse): New prototype.
20930 (pupa_hello_init) [PUPA_UTIL]: New prototype.
20931 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
20932 (pupa_ls_init) [PUPA_UTIL]: Likewise.
20933 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
20934 (pupa_cat_init) [PUPA_UTIL]: Likewise.
20935 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
20936 (pupa_boot_init) [PUPA_UTIL]: Likewise.
20937 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
20938 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
20939 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
20940 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
20941 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
20942 * kern/disk.c: Include <pupa/file.h>.
20943 (pupa_print_partinfo): New function.
20944 * kern/dl.c: Include <pupa/env.h>.
20945 (pupa_dl_dir): Variable removed.
20946 (pupa_dl_load): Use the environment variable `prefix' instead of
20947 the variable pupa_dl_dir.
20948 (pupa_dl_set_prefix): Function removed.
20949 (pupa_dl_get_prefix): Likewise.
20950 * kern/i386/pc/init.c: Include <pupa/env.h>.
20951 (pupa_machine_init): Use the environment variable `prefix' instead of
20952 using pupa_dl_set_prefix to set the prefix.
20953 * kern/main.c: Include <pupa/env.h>.
20954 (pupa_set_root_dev): Use the environment variable `prefix' instead of
20955 using pupa_dl_get_prefix to get the prefix.
20956 * kern/misc.c: Include <pupa/env.h>.
20957 (pupa_isdigit): New function.
20958 (pupa_isgraph): Likewise.
20959 (pupa_ftoa): Likewise.
20960 (pupa_vsprintf): Added support for printing values of the type
20961 `double'. Make it possible to format variable output when using
20962 formatting like `%1.2%f'.
20963 (pupa_split_cmdline): New function.
20964 * kern/rescue.c: Include <pupa/env.h>.
20965 (next_word): Removed function.
20966 (pupa_rescue_cmd_prefix): Likewise.
20967 (pupa_rescue_cmd_set): New function.
20968 (pupa_rescue_cmd_unset): New function.
20969 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
20970 split the command line instead of splitting it here. Added
20971 support for setting variables using the syntax `foo=bar'. Don't
20972 initialize the prefix command anymore. Initialized the set and
20973 unset commands.
20974 * normal/cmdline.c: Include <pupa/env.h>.
20975 (pupa_tab_complete): Added prototypes for print_simple_completion,
20976 print_partition_completion, add_completion, iterate_commands,
20977 iterate_dev, iterate_part and iterate_dir. Moved code to print
20978 partition information from here to kern/disk.c.
20979 (pupa_cmdline_run): Don't check if the function exists anymore.
20980 * normal/main.c: Include <pupa/env.h>.
20981 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
20982 instead of using pupa_dl_get_prefix to get the prefix.
20983 * term/i386/pc/vga.c: Include <pupa/arg.h>.
20984 (check_vga_mem): Cast pointers to `void *' to silence a gcc
20985 warning.
20986 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
20987 (pupa_vga_setcolor): Declare unused variables with `__attribute__
20988 ((unused))' to silence a gcc warning.
20989 (pupa_vga_setcolor): Likewise.
20990 (debug_command): Changed to match argument parsing
20991 interface changes.
20992 * util/pupa-emu.c: Include <pupa/env.h>.
20993 (options): Added 0's for unused fields to silence a gcc warning.
20994 (argp): Likewise.
20995 (main): Use the environment variable `prefix' instead of using
20996 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
20997 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
20998 and terminal.
20999
21000 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
21001 * util/misc.c: Include <malloc.h>.
21002 (pupa_malloc): Rewritten so errors are correctly reported.
21003 (pupa_realloc): Likewise.
21004 (pupa_memalign): Likewise.
21005 (pupa_mm_init_region): Declare unused variables with
21006 `__attribute__ ((unused))' to silence a gcc warning.
21007 * normal/i386/setjmp.S: Remove tab at the end of the file to
21008 silence a gcc warning.
21009 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
21010 variables with `__attribute__ ((unused))' to silence a gcc
21011 warning.
21012 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
21013 local variable i unsigned to silence a gcc warning.
21014
21015 * kern/term.c: Include <pupa/misc.h>.
21016 (pupa_more_lines): New variable.
21017 (pupa_more): Likewise.
21018 (pupa_putcode): When the pager is active pause at the end of every
21019 screen.
21020 (pupa_set_more): New function.
21021 * include/pupa/term.h (pupa_set_more): New prototype.
21022
21023
21024 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
21025
21026 Now this project is GRUB 2 rather than PUPA. The location of
21027 the CVS repository was moved to GRUB's.
21028
21029 * configure.ac: Use bug-grub as the reporting address.
21030 Use GRUB instead of PUPA.
21031 Change the version number to 1.90.
21032
21033 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
21034
21035 * genkernsyms.sh: Updated copyright information.
21036 * genmk.rb: Likewise.
21037 * genmodsrc.sh: Likewise.
21038 * gensymlist.sh: Likewise.
21039 * boot/i386/pc/boot.S: Likewise.
21040 * boot/i386/pc/diskboot.S: Likewise.
21041 * disk/i386/pc/biosdisk.c: Likewise.
21042 * disk/i386/pc/partition.c: Likewise.
21043 * font/manager.c: Likewise.
21044 * fs/ext2.c: Likewise.
21045 * fs/fat.c: Likewise.
21046 * include/pupa/boot.h: Likewise.
21047 * include/pupa/device.h: Likewise.
21048 * include/pupa/disk.h: Likewise.
21049 * include/pupa/dl.h: Likewise.
21050 * include/pupa/elf.h: Likewise.
21051 * include/pupa/err.h: Likewise.
21052 * include/pupa/file.h: Likewise.
21053 * include/pupa/font.h: Likewise.
21054 * include/pupa/fs.h: Likewise.
21055 * include/pupa/kernel.h: Likewise.
21056 * include/pupa/loader.h: Likewise.
21057 * include/pupa/misc.h: Likewise.
21058 * include/pupa/mm.h: Likewise.
21059 * include/pupa/net.h: Likewise.
21060 * include/pupa/normal.h: Likewise.
21061 * include/pupa/rescue.h: Likewise.
21062 * include/pupa/setjmp.h: Likewise.
21063 * include/pupa/symbol.h: Likewise.
21064 * include/pupa/term.h: Likewise.
21065 * include/pupa/types.h: Likewise.
21066 * include/pupa/i386/setjmp.h: Likewise.
21067 * include/pupa/i386/types.h: Likewise.
21068 * include/pupa/i386/pc/biosdisk.h: Likewise.
21069 * include/pupa/i386/pc/boot.h: Likewise.
21070 * include/pupa/i386/pc/console.h: Likewise.
21071 * include/pupa/i386/pc/init.h: Likewise.
21072 * include/pupa/i386/pc/kernel.h: Likewise.
21073 * include/pupa/i386/pc/linux.h: Likewise.
21074 * include/pupa/i386/pc/loader.h: Likewise.
21075 * include/pupa/i386/pc/memory.h: Likewise.
21076 * include/pupa/i386/pc/multiboot.h: Likewise.
21077 * include/pupa/i386/pc/partition.h: Likewise.
21078 * include/pupa/i386/pc/time.h: Likewise.
21079 * include/pupa/i386/pc/vga.h: Likewise.
21080 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
21081 * include/pupa/util/getroot.h: Likewise.
21082 * include/pupa/util/misc.h: Likewise.
21083 * include/pupa/util/resolve.h: Likewise.
21084 * kern/device.c: Likewise.
21085 * kern/disk.c: Likewise.
21086 * kern/dl.c: Likewise.
21087 * kern/err.c: Likewise.
21088 * kern/file.c: Likewise.
21089 * kern/fs.c: Likewise.
21090 * kern/loader.c: Likewise.
21091 * kern/main.c: Likewise.
21092 * kern/misc.c: Likewise.
21093 * kern/mm.c: Likewise.
21094 * kern/rescue.c: Likewise.
21095 * kern/term.c: Likewise.
21096 * kern/i386/dl.c: Likewise.
21097 * kern/i386/pc/init.c: Likewise.
21098 * kern/i386/pc/lzo1x.S: Likewise.
21099 * kern/i386/pc/startup.S: Likewise.
21100 * loader/i386/pc/chainloader.c: Likewise.
21101 * loader/i386/pc/linux.c: Likewise.
21102 * loader/i386/pc/multiboot.c: Likewise.
21103 * normal/cmdline.c: Likewise.
21104 * normal/command.c: Likewise.
21105 * normal/main.c: Likewise.
21106 * normal/menu.c: Likewise.
21107 * normal/i386/setjmp.S: Likewise.
21108 * term/i386/pc/console.c: Likewise.
21109 * term/i386/pc/vga.c: Likewise.
21110 * util/console.c: Likewise.
21111 * util/genmoddep.c: Likewise.
21112 * util/misc.c: Likewise.
21113 * util/pupa-emu.c: Likewise.
21114 * util/resolve.c: Likewise.
21115 * util/unifont2pff.rb: Likewise.
21116 * util/i386/pc/biosdisk.c: Likewise.
21117 * util/i386/pc/getroot.c: Likewise.
21118 * util/i386/pc/pupa-mkimage.c: Likewise.
21119 * util/i386/pc/pupa-setup.c: Likewise.
21120
21121 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
21122
21123 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
21124 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
21125 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
21126 reading and reset it after reading.
21127 (pupa_ext2_close): Return PUPA_ERR_NONE.
21128
21129 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
21130 Correct value.
21131 (struct linux_kernel_header): Add kernel_version and
21132 initrd_addr_max.
21133 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
21134 pupa_file_read succeeds.
21135 (pupa_rescue_cmd_initrd): Implement.
21136
21137 2003-12-03 Marco Gerards <metgerards@student.han.nl>
21138
21139 * fs/ext2.c (pupa_ext2_label): New function.
21140 (pupa_ext2_fs): Added label.
21141 * fs/fat.c (pupa_fat_label): New function.
21142 (pupa_fat_fs): Added label.
21143 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
21144
21145 * kern/misc.c (pupa_strndup): New function.
21146 * include/pupa/misc.h (pupa_strndup): New prototype.
21147
21148 * include/pupa/normal.h: Include <pupa/err.h>.
21149 (pupa_set_history): New prototype.
21150 (pupa_iterate_commands): New prototype.
21151 * normal/cmdline.c: Include <pupa/machine/partition.h>,
21152 <pupa/disk.h>, <pupa/file.h>.
21153 (hist_size): New variable.
21154 (hist_lines): Likewise.
21155 (hist_end): Likewise.
21156 (hist_used): Likewise.
21157 (pupa_set_history): New function.
21158 (pupa_history_get): Likewise.
21159 (pupa_history_add): Likewise.
21160 (pupa_history_replace): Likewise.
21161 (pupa_tab_complete): Likewise.
21162 (pupa_cmdline_run): Added tab completion and history buffer. Tab
21163 completion shows partitionnames while completing partitions, this
21164 feature was suggested by Jeff Bailey.
21165 * normal/command.c (pupa_iterate_commands): New function.
21166 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
21167 (pupa_normal_init): Initialize history buffer.
21168 (PUPA_MOD_INIT): Likewise.
21169 (pupa_normal_fini): Free the history buffer.
21170 (PUPA_MOD_FINI): Likewise.
21171
21172 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
21173 key.
21174
21175 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
21176 * configure.ac [i386]: Check for regparam bug.
21177 (NESTED_FUNC_ATTR) [! i386]: Defined.
21178
21179 2003-11-17 Marco Gerards <metgerards@student.han.nl>
21180
21181 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
21182 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
21183 (pupa_emu_SOURCES): New variable.
21184 (pupa_emu_LDFLAGS): Likewise.
21185 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
21186 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
21187 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
21188 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
21189 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
21190 (pupa_jmp_buf): New typedef.
21191 (pupa_setjmp) [PUPA_UTIL]: New macro.
21192 (pupa_longjmp) [PUPA_UTIL]: Likewise.
21193 * include/pupa/term.h (struct pupa_term): New member `refresh'.
21194 (pupa_refresh): New prototype.
21195 * include/pupa/util/getroot.h: New file.
21196 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
21197 it.
21198 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
21199 (pupa_rescue_cmd_cat): Likewise.
21200 (pupa_rescue_cmd_ls): Likewise.
21201 (pupa_rescue_cmd_testload): Likewise.
21202 (pupa_rescue_cmd_lsmod): Likewise.
21203 * normal/cmdline.c (pupa_cmdline_get): Likewise.
21204 * normal/menu.c (run_menu): Likewise.
21205 * kern/term.c (pupa_cls): Likewise.
21206 (pupa_refresh): New function.
21207 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
21208 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
21209 * util/console.c: New file.
21210
21211 * util/i386/pc/getroot.c: New file.
21212 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
21213 (pupa_putchar): New function.
21214 (pupa_refresh): Likewise.
21215 (xgetcwd): Function moved to ...
21216 (strip_extra_slashes): Likewise.
21217 (get_prefix): Likewise.
21218 * util/i386/pc/getroot.c: ... here.
21219 (find_root_device): Function moved and renamed to...
21220 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
21221 Changed all callers.
21222 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
21223 and renamed to...
21224 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
21225 Changed all callers.
21226 * util/misc.c (pupa_memalign): New function.
21227 (pupa_mm_init_region): Likewise.
21228 (pupa_register_exported_symbols): Likewise.
21229 (pupa_putchar): Function removed.
21230 * util/pupa-emu.c: New file.
21231
21232 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
21233
21234 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
21235 (_multiboot_mod_SOURCES): New variable.
21236 (_multiboot_mod_CFLAGS): Likewise.
21237 * loader/i386/pc/multiboot.c: New file.
21238 * include/pupa/i386/pc/multiboot.h: Likewise.
21239 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
21240 (pupa_multiboot_real_boot): New function.
21241 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
21242 (pupa_multiboot_real_boot): New prototype.
21243 (pupa_rescue_cmd_multiboot): Likewise
21244 (pupa_rescue_cmd_module): Likewise.
21245
21246 * kern/loader.c (pupa_loader_set): Continue when
21247 pupa_loader_unload_func() fails.
21248 (pupa_loader_unset): New function.
21249 * include/pupa/loader.h (pupa_loader_unset): New prototype.
21250
21251 * kern/misc.c (pupa_stpcpy): New function.
21252 * include/pupa/misc.h (pupa_stpcpy): New prototype.
21253
21254 2003-11-12 Marco Gerards <metgerards@student.han.nl>
21255
21256 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
21257 for available extensions.
21258
21259 * include/pupa/i386/pc/time.h: New file.
21260 * kern/disk.c: Include <pupa/machine/time.h>.
21261 (PUPA_CACHE_TIMEOUT): New macro.
21262 (pupa_last_time): New variable.
21263 (pupa_disk_open): Flush the cache when there was a timeout.
21264 (pupa_disk_close): Reset the timer.
21265 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
21266 pupa_currticks.
21267 * util/misc.c: Include <sys/times.h>
21268 (pupa_get_rtc): New function.
21269
21270 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21271
21272 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
21273 as blocks.
21274 (pupa_ext2_get_file_block): Use blocks member.
21275
21276 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
21277 first block. Return -1 instead of pupa_errno on error.
21278
21279 2003-10-27 Marco Gerards <metgerards@student.han.nl>
21280
21281 * README: In the pupa-mkimage example use _chain instead of chain
21282 and ext2 instead of fat.
21283 * TODO: Replace ext2fs with jfs as an example. Add an item for
21284 adding journal playback for ext2fs.
21285 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
21286 (pkgdata_MODULES): Added ext2.mod.
21287 (ext2_mod_SOURCES): New variable.
21288 (ext2_mod_CFLAGS): Likewise.
21289 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
21290 * include/pupa/misc.h (pupa_strncpy): New prototype.
21291 (pupa_strcat): Likewise.
21292 (pupa_strncmp): Likewise.
21293 * kern/misc.c (pupa_strcat): Enable function.
21294 (pupa_strncpy): New function.
21295 (pupa_strncmp): Likewise.
21296 * fs/ext2.c: New file.
21297
21298 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
21299 when the read failed before retrying.
21300 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
21301 (_FILE_OFFSET_BITS): Likewise.
21302 * configure.ac: Added AC_SYS_LARGEFILE.
21303
21304 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
21305
21306 * genmk.rb (PModule#rule): Make sure to get only symbol names
21307 from the output of nm.
21308 Reported by Robert Millan <zeratul2@wanadoo.es>.
21309
21310 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
21311
21312 I forgot to check in these changes for a long time. This adds
21313 incomplete support for VGA console, and this is still very
21314 buggy. Also, a lot of consideration is required for I18N,
21315 UNICODE, and VGA font issues. Therefore, assume that this is
21316 such that "better than nothing".
21317
21318 * font/manager.c: New file.
21319 * include/pupa/font.h: Likewise.
21320 * include/pupa/i386/pc/vga.h: Likewise.
21321 * term/i386/pc/vga.c: Likewise.
21322 * util/unifont2pff.rb: Likewise.
21323
21324 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
21325 (pkgdata_MODULES): Added vga.mod and font.mod.
21326 (vga_mod_SOURCES): New variables.
21327 (vga_mod_CFLAGS): Likewise.
21328 (font_mod_SOURCES): Likewise.
21329 (font_mod_CFLAGS): Likewise.
21330
21331 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
21332
21333 * include/pupa/term.h: Include pupa/err.h.
21334 (struct pupa_term): Added init and fini.
21335 Changed the argument of putchar to pupa_uint32_t.
21336
21337 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
21338 (pupa_console_real_putchar): New prototype.
21339 (pupa_console_putchar): Removed.
21340 (pupa_console_checkkey): Exported.
21341 (pupa_console_getkey): Likewise.
21342
21343 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
21344 characters.
21345
21346 * kern/term.c (pupa_term_set_current): Rewritten.
21347 (pupa_putchar): Likewise.
21348 (pupa_putcode): New function.
21349
21350 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
21351 (pupa_console_real_putchar): ... this.
21352 (pupa_vga_set_mode): New function.
21353 (pupa_vga_get_font): Likewise.
21354
21355 * normal/command.c: Include pupa/term.h.
21356 (terminal_command): New function.
21357 (pupa_command_init): Register the command "terminal".
21358
21359 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
21360 (DISP_UP): Likewise.
21361 (DISP_RIGHT): Likewise.
21362 (DISP_DOWN): Likewise.
21363 (DISP_HLINE): Likewise.
21364 (DISP_VLINE): Likewise.
21365 (DISP_UL): Likewise.
21366 (DISP_UR): Likewise.
21367 (DISP_LL): Likewise.
21368 (DISP_LR): Likewise.
21369
21370 * term/i386/pc/console.c (pupa_console_putchar): New function.
21371
21372 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
21373
21374 * util/resolve.c (pupa_util_resolve_dependencies): BUG
21375 FIX. Reverse the path_list.
21376
21377 * include/pupa/normal.h: Export pupa_register_command and
21378 pupa_unregister_command.
21379
21380 * hello/hello.c (pupa_cmd_hello): New module.
21381 * conf/i386-pc.rmk: Added hello.mod.
21382
21383 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
21384
21385 * kern/i386/pc/lzo1x.S: New file.
21386
21387 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
21388 (compress_kernel): New variable.
21389 (generate_image): Heavily modified to support compressing a
21390 large part of the core image.
21391
21392 * util/misc.c (pupa_util_read_image): Fix a file descriptor
21393 leak.
21394 (pupa_util_load_image): New function.
21395
21396 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
21397 (pupa_compressed_size): New variable.
21398 (codestart): Enable Gate A20 here.
21399 Decompress the compressed part of the core image.
21400 Rearrange the code to put functions and variables which are
21401 required for initialization in the non-compressed part.
21402 Include lzo1x.S.
21403
21404 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
21405 here.
21406
21407 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
21408
21409 * include/pupa/i386/pc/kernel.h
21410 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
21411 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
21412 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
21413 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
21414 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
21415
21416 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
21417
21418 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
21419 (Utility#rule): Likewise.
21420
21421 * configure.ac: Check if LZO is available.
21422
21423 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
21424
21425 * include/pupa/normal.h: New file.
21426 * include/pupa/setjmp.h: Likewise.
21427 * include/pupa/i386/setjmp.h: Likewise.
21428 * normal/cmdline.c: Likewise.
21429 * normal/command.c: Likewise.
21430 * normal/main.c: Likewise.
21431 * normal/menu.c: Likewise.
21432 * normal/i386/setjmp.S: Likewise.
21433
21434 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
21435 (pupa_rescue_cmd_initrd): Likewise.
21436
21437 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
21438 Likewise.
21439
21440 * kern/i386/pc/startup.S (translation_table): New variable.
21441 (translate_keycode): New function.
21442 (pupa_console_getkey): Call translate_keycode.
21443
21444 * kern/rescue.c (attempt_normal_mode): New function.
21445 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
21446 it failed, print a message.
21447
21448 * kern/mm.c (pupa_real_malloc): Print more information when a
21449 free magic is broken.
21450 (pupa_free): If the first free header is not free actually, set
21451 it to P.
21452
21453 * kern/main.c (pupa_load_normal_mode): Just load the module
21454 "normal".
21455 (pupa_main): Don't print the message
21456 "Entering into rescue mode..." here.
21457
21458 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
21459 Declared.
21460 (pupa_rescue_cmd_initrd): Likewise.
21461 (pupa_rescue_cmd_initrd): Likewise.
21462
21463 * include/pupa/symbol.h (FUNCTION): Specify the type.
21464 (VARIABLE): Likewise.
21465
21466 * include/pupa/err.h (pupa_err_t): Added
21467 PUPA_ERR_UNKNOWN_COMMAND.
21468
21469 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
21470 (pupa_dl_get_prefix): Likewise.
21471
21472 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
21473 Added _chain.mod and _linux.mod instead of chain.mod and
21474 linux.mod.
21475 (chain_mod_SOURCES): Renamed to ...
21476 (_chain_mod_SOURCES): ... this.
21477 (chain_mod_CFLAGS): Renamed to ...
21478 (_chain_mod_CFLAGS): ... this.
21479 (linux_mod_SOURCES): Renamed to ...
21480 (_linux_mod_SOURCES): ... this.
21481 (linux_mod_CFLAGS): Renamed to ...
21482 (_linux_mod_CFLAGS): ... this.
21483 (normal_mod_SOURCES): New variable.
21484 (normal_mod_CFLAGS): Likewise.
21485 (normal_mod_ASFLAGS): Likewise.
21486
21487 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
21488
21489 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
21490 possible.
21491
21492 * kern/dl.c (pupa_dl_ref): Refer depending modules
21493 recursively.
21494 (pupa_dl_unref): Unrefer depending modules recursively.
21495 Don't call pupa_dl_unload implicitly, because PUPA can crash if
21496 a module is unloaded before one depending on that module is
21497 unloaded.
21498 (pupa_dl_unload): Unload depending modules explicitly,
21499 if possible.
21500
21501 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
21502
21503 * include/pupa/i386/pc/linux.h: New file.
21504 * loader/i386/pc/linux.c: Likewise.
21505
21506 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
21507 Removed.
21508 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
21509 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
21510 of PUPA_CHAINLOADER_BOOT_SECTOR.
21511
21512 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
21513 (pupa_linux_prot_size): New variable.
21514 (pupa_linux_tmp_addr): Likewise.
21515 (pupa_linux_real_addr): Likewise.
21516 (pupa_linux_boot_zimage): New function.
21517 (pupa_linux_boot_bzimage): Likewise.
21518
21519 * kern/i386/pc/init.c (struct mem_region): New structure.
21520 (MAX_REGIONS): New macro.
21521 (mem_regions): New variable.
21522 (num_regions): Likewise.
21523 (pupa_os_area_addr): Likewise.
21524 (pupa_os_area_size): Likewise.
21525 (pupa_lower_mem): Likewise.
21526 (pupa_upper_mem): Likewise.
21527 (add_mem_region): New function.
21528 (compact_mem_regions): Likewise.
21529 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
21530 the size of the conventional memory and that of so-called upper
21531 memory (before the first memory hole).
21532 Instead of adding each found region to free memory, use
21533 add_mem_region and add them after removing overlaps.
21534 Also, add only 1/4 of the upper memory to free memory. The rest
21535 is used for loading OS images. Maybe this is ad hoc, but this
21536 makes it much easier to relocate OS images when booting.
21537
21538 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
21539 (pupa_enter_rescue_mode): Don't register initrd and module.
21540
21541 * kern/mm.c: Include pupa/dl.h.
21542
21543 * kern/main.c: Include pupa/file.h and pupa/device.h.
21544
21545 * kern/loader.c (pupa_loader_load_module_func): Removed.
21546 (pupa_loader_load_module): Likewise.
21547
21548 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
21549 ``.o''.
21550
21551 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
21552 (pupa_linux_tmp_addr): Likewise.
21553 (pupa_linux_real_addr): Likewise.
21554 (pupa_linux_boot_zimage): Likewise.
21555 (pupa_linux_boot_bzimage): Likewise.
21556
21557 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
21558 (pupa_upper_mem): Likewise.
21559 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
21560 module is too dangerous.
21561
21562 * include/pupa/loader.h (pupa_os_area_addr): Declared.
21563 (pupa_os_area_size): Likewise.
21564 (pupa_loader_set): Remove the first argument. Loader doesn't
21565 manage modules or initrd any longer.
21566 (pupa_loader_load_module): Removed.
21567
21568 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
21569 (linux_mod_SOURCES): New variable.
21570 (linux_mod_CFLAGS): Likewise.
21571
21572 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
21573
21574 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
21575 the length of a blocklist correctly.
21576
21577 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
21578 Use ioctl only if the OS file is a block device.
21579 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
21580 not very useful for normal files.
21581
21582 * kern/main.c (pupa_set_root_dev): New function.
21583 (pupa_load_normal_mode): Likewise.
21584 (pupa_main): Call those above.
21585
21586 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
21587 pupa_uint16_t.
21588
21589 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
21590
21591 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
21592
21593 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
21594 (setup): Configure the installed partition information and the
21595 dl prefix.
21596
21597 * loader/i386/pc/chainloader.c (my_mod): New variable.
21598 (pupa_chainloader_unload): New function.
21599 (pupa_rescue_cmd_chainloader): Refer itself.
21600 (PUPA_MOD_INIT): Save its own module in MY_MOD.
21601
21602 * kern/i386/pc/startup.S (install_partition): Removed.
21603 (version_string): Likewise.
21604 (config_file): Likewise.
21605 (pupa_install_dos_part): New variable.
21606 (pupa_install_bsd_part): Likewise.
21607 (pupa_prefix): Likewise.
21608 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
21609
21610 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
21611 and pupa/misc.h.
21612 (make_install_device): New function.
21613 (pupa_machine_init): Set the dl prefix.
21614
21615 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
21616 (buf): Renamed to ...
21617 (linebuf): ... this.
21618 (pupa_rescue_cmd_prefix): New function.
21619 (pupa_rescue_cmd_insmod): Likewise.
21620 (pupa_rescue_cmd_rmmod): Likewise.
21621 (pupa_rescue_cmd_lsmod): Likewise.
21622 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
21623 rmmod and lsmod.
21624
21625 * kern/mm.c (pupa_memalign): If failed even after invalidating
21626 disk caches, unload unneeded modules and retry.
21627
21628 * kern/misc.c (pupa_memmove): New function.
21629 (pupa_memcpy): Removed.
21630 (pupa_strcpy): New function.
21631 (pupa_itoa): Made static.
21632
21633 * kern/dl.c (pupa_dl_iterate): New function.
21634 (pupa_dl_ref): Likewise.
21635 (pupa_dl_unref): Likewise.
21636 (pupa_dl_unload): Return if succeeded or not.
21637 (pupa_dl_unload_unneeded): New function.
21638 (pupa_dl_unload_all): Likewise.
21639 (pupa_dl_init): Renamed to ...
21640 (pupa_dl_set_prefix): ... this.
21641 (pupa_dl_get_prefix): New function.
21642
21643 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
21644 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
21645 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
21646 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
21647 (pupa_install_dos_part): Declared.
21648 (pupa_install_bsd_part): Likewise.
21649 (pupa_prefix): Likewise.
21650 (pupa_boot_drive): Likewise.
21651
21652 * include/pupa/types.h: Fix a typo.
21653
21654 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
21655 pupa_memmove.
21656 (pupa_memmove): Declared.
21657 (pupa_strcpy): Likewise.
21658
21659 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
21660 pupa_mod_init takes one argument, its own module.
21661 (pupa_dl_unload_unneeded): Declared.
21662 (pupa_dl_unload_all): Likewise.
21663 (pupa_dl_ref): Likewise.
21664 (pupa_dl_unref): Likewise.
21665 (pupa_dl_iterate): Likewise.
21666 (pupa_dl_init): Renamed to ...
21667 (pupa_dl_set_prefix): ... this.
21668 (pupa_dl_get_prefix): Declared.
21669
21670 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
21671 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
21672 unloaded.
21673 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
21674 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
21675
21676 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
21677 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
21678
21679 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21680
21681 * util/i386/pc/pupa-setup.c (setup): Define the internal
21682 function find_first_partition_start at the top level, because GCC
21683 3.0.x cannot compile internal functions in deeper scopes
21684 correctly.
21685 (find_root_device): Use lstat instead of stat.
21686 Don't follow symbolic links.
21687 Fix the path-constructing code.
21688
21689 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
21690 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
21691 by a BLKGETSIZE ioctl first, because block devices don't fill
21692 the member st_mode of the structure stat on Linux.
21693 [__linux__] (linux_find_partition): Use a temporary buffer
21694 REAL_DEV for the working space. Copy it to DEV before returning.
21695 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
21696 buffer cache consistent.
21697 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
21698 strncmp. The previous value was merely wrong.
21699 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
21700
21701 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
21702 FAT size is 12. The previous value was merely wrong.
21703
21704 * kern/main.c (pupa_main): Don't split the starting message from
21705 newlines.
21706
21707 * kern/term.c (pupa_putchar): Put CR after LF instead of before
21708 LF, because BIOS goes crazy about character attributes in this
21709 case.
21710
21711 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21712
21713 * include/i386/pc/util/biosdisk.h: New file.
21714 * util/i386/pc/biosdisk.c: Likewise.
21715 * util/i386/pc/pupa-setup.c: Likewise.
21716
21717 * Makefile.in (INCLUDE_DISTFILES): Added
21718 include/pupa/i386/pc/util/biosdisk.h.
21719 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
21720 directory util/i386/pc.
21721 (install-local): Added a rule for sbin_UTILITIES.
21722 (uninstall): Likewise.
21723
21724 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
21725
21726 * util/misc.c (xrealloc): New function.
21727 (pupa_malloc): Likewise.
21728 (pupa_free): Likewise.
21729 (pupa_realloc): Likewise.
21730 (pupa_stop): Likewise.
21731 (pupa_putchar): Likewise.
21732
21733 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
21734
21735 * include/pupa/util/misc.h (xrealloc): Declared.
21736
21737 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
21738 macro.
21739 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
21740 (PUPA_BOOT_MACHINE_BPB_END): ... this.
21741
21742 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
21743 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21744
21745 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
21746 way should be implemented.
21747 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21748
21749 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
21750 the size of NAME for safety.
21751 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
21752 0x88.
21753
21754 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
21755 (pupa_setup_SOURCES): Likewise.
21756
21757 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
21758
21759 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21760
21761 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
21762 bunch of pushl's from pusha, because this destroys the return
21763 value.
21764
21765 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21766
21767 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
21768 This means that any missing prototypes could be fatal. Also, you
21769 must take care when writing assembly code. See the comments at
21770 the beginning of startup.S, for more details.
21771
21772 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
21773 compilation mechanism.
21774 (pupa_chainloader_real_boot): Likewise.
21775 (pupa_biosdisk_rw_int13_extensions): Likewise.
21776 (pupa_biosdisk_rw_standard): Likewise.
21777 (pupa_biosdisk_check_int13_extensions): Likewise.
21778 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
21779 (pupa_biosdisk_get_diskinfo_standard): Likewise.
21780 (pupa_get_memsize): Likewise.
21781 (pupa_get_mmap_entry): Likewise.
21782 (pupa_console_putchar): Likewise.
21783 (pupa_console_setcursor): Likewise.
21784 (pupa_getrtsecs): Use pushl instead of push.
21785
21786 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
21787 memory instead of the stack for a mmap entry, because some
21788 BIOSes may ignore the maximum size and overflow.
21789
21790 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
21791
21792 * genmk.rb (PModule#rule): Compile automatically generated
21793 sources with module-specific CFLAGS as well as other sources.
21794
21795 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21796
21797 * configure.ac: Check ld.
21798 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
21799 respectively, before checking endianness and sizes.
21800
21801 * Makefile.in (LD): New variable.
21802
21803 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21804
21805 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
21806
21807 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21808
21809 * Changelog: New file.
21810