]> git.proxmox.com Git - grub2.git/blame - ChangeLog
2009-12-11 Felix Zielcke <fzielcke@z-51.de>
[grub2.git] / ChangeLog
CommitLineData
8d0502d9
FZ
12009-12-11 Felix Zielcke <fzielcke@z-51.de>
2
3 * util/misc.c: Don't include <errno.h> twice.
4
0d56ed64
FZ
52009-12-10 Felix Zielcke <fzielcke@z-51.de>
6
7 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
8 name in an error message.
9 (grub_biosdisk_rw): Likewise.
10
2e59983c
VS
112009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12
13 Eliminate NTFS 4Gib barrier.
14
15 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
16 (read_run_data): Likewise.
17 (grub_ntfs_read_run_list): Likewise.
18 (grub_ntfs_read_block): Likewise.
19 (grub_ntfs_iterate_dir): Likewise.
20 (read_mft): Likewise.
21 (read_data): Likewise.
22 Use COM_LOG_LEN.
23 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
24 to avoid 64-bit division
25 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26 (grub_ntfs_rlst): Use grub_disk_addr_t.
27
71ee178a
VS
282009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
29
30 Eliminate grub-fstest 4Gib barrier.
31
32 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33 (read_file): Fix error reporting.
34
2520d4b8
VS
352009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
36
37 Eliminate hexdump 4Gib barrier.
38
39 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
40 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
41
e1f27065
VS
422009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
45 Fixes amarsh bug.
46
1a0f7f45
RM
472009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
48
49 Remove miscellaneous files in distclean target.
50
51 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
52
c631d9fb
CW
532009-12-09 Colin Watson <cjwatson@ubuntu.com>
54
55 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
56 if they're already set. This resolves the conflict between my
57 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
58 fixing the --grub-probe option again.
59 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
60 change on 2009-10-06, so that we now once again source
61 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
62
7c7b6106
RM
632009-12-08 Robert Millan <rmh.grub@aybabtu.com>
64
65 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
66 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
67 `util/devicemap.c'.
68
e3069ec1
CPE
692009-12-08 Carles Pina i Estany <carles@pina.cat>
70
71 * include/grub/misc.h (grub_printf_): New declaration.
72 * kern/misc.c (grub_printf_): New definition.
73 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
74 instead of `grub_printf' and `_'.
75 * normal/menu_entry.c (store_completion): Likewise.
76 (run): Likewise.
77 (grub_menu_entry_run): Likewise.
78 * normal/menu_text.c (grub_wait_after_message): Likewise.
79 (notify_booting): Likewise.
80 (notify_fallback): Likewise.
81 (notify_execution_failure): Likewise.
82
d6ceebf1
CW
832009-12-07 Colin Watson <cjwatson@ubuntu.com>
84
85 * configure.ac: Check for vasprintf.
86 * util/misc.c (asprintf): Move allocation from here ...
87 (vasprintf): ... to here. New function.
88 (xasprintf): New function.
89 * include/grub/util/misc.h (vasprintf, xasprintf): Add
90 prototypes.
91 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
92 * util/grub-mkfont.c (write_font): Likewise.
93 * util/grub-probe.c (probe): Likewise.
94 * util/hostdisk.c (make_device_name): Likewise.
95
de6daa8b
DM
962009-12-06 David S. Miller <davem@sunset.davemloft.net>
97
98 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
99 anything even prefixed with 'cdrom' as a cdrom.
100
df91e679
FZ
1012009-12-06 Felix Zielcke <fzielcke@z-51.de>
102
103 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
104 mount points.
105
98d3dc02
CPE
1062009-12-05 Carles Pina i Estany <carles@pina.cat>
107
108 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
109 grub_gettext_msg_list.
110 (grub_gettext_gettranslation_from_position): Return const char *
111 and not char *.
112 (grub_gettext_translate): Add the translated strings into a list,
113 returns from the list if existing there.
114 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
115 (grub_gettext_delete_list): Delete the list.
116 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
117 lang environment variable is changed.
118 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
119
b283f108
VS
1202009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
121
122 Rename kernel.mod to kernel.img.
123
124 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
125 (kernel_mod_EXPORTS): Rename to ...
126 (kernel_img_EXPORTS): ... this.
127 (kernel_mod_SOURCES): Rename to ...
128 (kernel_img_SOURCES): ... this.
129 (kernel_mod_HEADERS): Rename to ...
130 (kernel_img_HEADERS): ... this. All users updated.
131 (kernel_mod_CFLAGS): Rename to ...
132 (kernel_img_CFLAGS): ... this.
133 (kernel_mod_ASFLAGS): Rename to ...
134 (kernel_img_ASFLAGS): ... this.
135 (kernel_mod_LDFLAGS): Rename to ...
136 (kernel_img_LDFLAGS): ... this.
137 * conf/x86_64-efi.rmk: Likewise.
138 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
139 (read_kernel_image): ... this. All users updated.
140 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
141
69055f8a
CPE
1422009-12-05 Carles Pina i Estany <carles@pina.cat>
143
144 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
145 (print_spaces): New function.
146 (grub_print_ucs4): New function.
147 (getstringwidth): New function.
148 (print_message_indented): New function.
149 (print_message): Gettexttize strings using print_message_indented.
150 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
151 width.
152 (get_entry_number): Gettextize and uses dynamic terminal width.
153 (notify_booting, notify_fallback, notify_execution_failure):
154 Gettextize.
155 * normal/menu_entry.c (store_completion): Cleanup the gettextized
156 string.
157 (run): Likewise.
158 (grub_menu_entry_run): Likewise.
159 * PO/POTFILES: Add normal/menu_entry.c.
160
f616f51c
VS
1612009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
164
57bbe3be
CPE
1652009-12-05 Carles Pina i Estany <carles@pina.cat>
166
167 * util/grub-install.in: Install gettext .mo files.
168 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
169
013d67a1
CPE
1702009-12-05 Carles Pina i Estany <carles@pina.cat>
171
172 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
173 grub_dprintf.
174
fb954db0
RM
1752009-12-05 Robert Millan <rmh.grub@aybabtu.com>
176
177 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
178 non-firmware-dependant one in realmode.S takes precedence.
179
6b8474f8
RM
1802009-12-04 Robert Millan <rmh.grub@aybabtu.com>
181
182 * commands/halt.c: Replace misc arch-specific headers with
183 `<grub/misc.h>'.
184 * commands/reboot.c: Likewise.
185 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
186 `<grub/misc.h>'.
187 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
188 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
189 (kernel_img_SOURCES): ... to here.
190
191 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
192 * include/grub/i386/pc/init.h: Likewise.
193 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
194 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
195
196 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
197
198 * include/grub/i386/halt.h: Remove.
199 * include/grub/i386/reboot.h: Likewise.
200
201 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
202
4b2e6ca2
DM
2032009-12-03 David S. Miller <davem@sunset.davemloft.net>
204
205 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
206 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
207 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
208 "progname.h"
209 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
210 * util/sparc64/ieee1275/grub-setup.c: Likewise.
211 (usage): Add missing comma in printf.
212
5239348f
RM
2132009-12-02 Robert Millan <rmh.grub@aybabtu.com>
214
215 Use the same reboot approach on i386 coreboot and qemu as we do on
216 BIOS.
217
218 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
219 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
220 * kern/i386/reboot.c: Remove.
221 * include/grub/i386/reboot.h (grub_reboot): Export function.
222 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
223 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
224 0xf000:0xfff0 instead of 0xffff:0x0000.
225 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
226 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
227
ef34cbd4
RM
2282009-11-30 Robert Millan <rmh.grub@aybabtu.com>
229
230 Fix $srcdir != $objdir build.
231
232 * Makefile.in (po/%.po): Rewrite as ...
233 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
234
dc9837ea
ST
2352009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
236
237 Fix GNU/Hurd grub-install crash.
238 * util/grub-probe.c (probe): Try to access `path' only when it is not
239 NULL.
240
2f857f98
VS
2412009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
242
243 Correct module naming.
244
245 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
246 (GRUB_MOD_INIT(efi_uga)): ... to this
247 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
248 (GRUB_MOD_FINI(efi_uga)): ... to this
249 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
250 (GRUB_MOD_INIT(efi_gop)): ... to this
251 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
252 (GRUB_MOD_FINI(efi_gop)): ... to this
253
c5448046
RM
2542009-11-28 Robert Millan <rmh.grub@aybabtu.com>
255
256 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
257 translatable.
258 (usage): Translate `arg' strings using gettext().
259 Thanks to Jordi Mallach for the suggestion.
260
c85184ad
VS
2612009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
262
263 GOP support. Based on patch from Bean
264 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
265
266 * video/efi_gop.c: New file.
267 * include/grub/efi/graphics_output.h: Likewise.
268 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
269 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
270 variables.
271 * conf/x86_64-efi.rmk: Likewise.
272
8a4c48d8
VS
2732009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Rename efi_fb to efi_uga.
276
277 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
278 'efi_uga.mod'.
279 (efi_fb_mod_SOURCES): Rename this ...
280 (efi_uga_mod_SOURCES): ... to this.
281 (efi_fb_mod_CFLAGS): Rename this ...
282 (efi_uga_mod_CFLAGS): ... to this.
283 (efi_fb_mod_LDFLAGS): Rename this ...
284 (efi_uga_mod_LDFLAGS): ... to this.
285 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
286 'efi_uga.mod'.
287 (efi_fb_mod_SOURCES): Rename this ...
288 (efi_uga_mod_SOURCES): ... to this.
289 (efi_fb_mod_CFLAGS): Rename this ...
290 (efi_uga_mod_CFLAGS): ... to this.
291 (efi_fb_mod_LDFLAGS): Rename this ...
292 (efi_uga_mod_LDFLAGS): ... to this.
293 * video/efi_fb.c: Move this ...
294 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
295
fb6c1a7b
RM
2962009-11-27 Robert Millan <rmh.grub@aybabtu.com>
297
298 * po/README: New file. Explain our PO file workflow.
299
3bc7896c
RM
3002009-11-27 Robert Millan <rmh.grub@aybabtu.com>
301
302 * po/ChangeLog: Remove. Move relevant entries back to ...
303 * ChangeLog: ... here.
304 * po/ca.po: Remove (now handled by TLP).
305 * po/id.po: Likewise.
306 * po/zh_CN.po: Likewise.
307 * Makefile.in (LINGUAS): Initialize in a way that supports
308 empty set.
309
9ed4841d
RM
3102009-11-27 Robert Millan <rmh.grub@aybabtu.com>
311
312 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
313 reliing on po/LINGUAS.
314 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
315 (po/%.po): ... this.
316
242668a2
FZ
3172009-11-26 Felix Zielcke <fzielcke@z-51.de>
318
319 * util/i386/efi/grub-mkimage.c: Include "progname.h".
320 (main): Use `program_name' instead of nonexistent `progname'.
321
e30dd392
FZ
3222009-11-26 Felix Zielcke <fzielcke@z-51.de>
323
324 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
325 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
326
7656de4f
RM
3272009-11-26 Robert Millan <rmh.grub@aybabtu.com>
328
329 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
330 commit.
331 * conf/i386-efi.rmk: Likewise.
332 * conf/i386-ieee1275.rmk: Likewise.
333 * conf/powerpc-ieee1275.rmk: Likewise.
334 * conf/sparc64-ieee1275.rmk: Likewise.
335 * conf/x86_64-efi.rmk: Likewise.
336
db77c4d4
FZ
3372009-11-26 Felix Zielcke <fzielcke@z-51.de>
338
339 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
340
a755bb04
FZ
3412009-11-26 Felix Zielcke <fzielcke@z-51.de>
342
343 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
344
8a4c07fd
RM
3452009-11-26 Robert Millan <rmh.grub@aybabtu.com>
346
347 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
348 (grub_mkdevicemap_SOURCES): New variable.
349 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
350 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
351 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
352 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
353 (grub_mkdevicemap_SOURCES): Remove.
354 * conf/i386-efi.rmk: Likewise.
355 * conf/i386-ieee1275.rmk: Likewise.
356 * conf/i386-pc.rmk: Likewise.
357 * conf/powerpc-ieee1275.rmk: Likewise.
358 * conf/sparc64-ieee1275.rmk: Likewise.
359 * conf/x86_64-efi.rmk: Likewise.
360 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
361 (usage): Fix strings to use `program_name'.
362 (main): Initialize gettext.
363 * util/grub-editenv.c: Likewise.
364 * util/grub-emu.c: Likewise.
365 * util/grub-fstest.c: Likewise.
366 * util/grub-mkdevicemap.c: Likewise.
367 * util/grub-mkfont.c: Likewise.
368 * util/grub-mkrelpath.c: Likewise.
369 * util/grub-pe2elf.c: Likewise.
370 * util/grub-probe.c: Likewise.
371 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
372 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
373 * util/sparc64/ieee1275/grub-setup.c: Likewise.
374
375 * util/misc.c: Include `"progname.h"'.
376 (progname): Remove variable.
377 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
378
6f61ed55
FZ
3792009-11-25 Felix Zielcke <fzielcke@z-51.de>
380
381 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
382 printf and print a newline after the menuentry header line.
383 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
384
f022876b
FZ
3852009-11-25 Felix Zielcke <fzielcke@z-51.de>
386
387 autoconf >= 2.60 support $(localedir).
388
389 * INSTALL: Note that autoconf 2.60 is required.
390 * configure.ac (AC_PREREQ): Bump to 2.60.
391 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
392 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
393
6717926e
YB
3942009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
395
396 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
397 aclocal is run.
398
08806a54
RM
3992009-11-25 Robert Millan <rmh.grub@aybabtu.com>
400
401 * normal/main.c (grub_normal_read_line): Fix off-by-one
402 buffer overflow.
403
13b33fba
RM
4042009-11-25 Robert Millan <rmh.grub@aybabtu.com>
405
406 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
407 "parser.grub" in grub_command_execute() call.
408
4a8572e9
CPE
4092009-11-24 Carles Pina i Estany <carles@pina.cat>
410
411 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
412 * conf/i386-efi.rmk: Likewise.
413 * conf/i386-ieee1275.rmk: Likewise.
414 * conf/i386-pc.rmk: Likewise.
415 * conf/powerpc-ieee1275.rmk: Likewise.
416 * conf/sparc64-ieee1275.rmk: Likewise.
417 * conf/x86_64-efi.rmk: Likewise.
418 * gettext/gettex.c: Include <grub/i18n.h>.
419 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
420 here ...
421 * include/grub/i18n.h: ... to here
422 * include/grub/i18n.h: ... to here.
423 * kern/misc.c: Include <grub/i18n.h>
424 (grub_gettext_dummy): Move above user.
425
bee48093
FZ
4262009-11-24 Felix Zielcke <fzielcke@z-51.de>
427
428 * util/Makefile.in (install-local): Convert a `for' into a normal
429 shell expansion.
430
a031e91c
RM
4312009-11-24 Robert Millan <rmh.grub@aybabtu.com>
432
433 * autogen.sh: Add automake call.
434 * config.guess: Remove.
435 * config.sub: Likewise.
436 * install-sh: Likewise.
437
26bec39d
FZ
4382009-11-24 Felix Zielcke <fzielcke@z-51.de>
439
440 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
441
8e2532fd
FZ
4422009-11-24 Felix Zielcke <fzielcke@z-51.de>
443
444 * util/Makefile.in (install-local): Convert a make `$(foreach)'
445 function to a normal shell `for'.
446
fefa1b7d
FZ
4472009-11-24 Felix Zielcke <fzielcke@z-51.de>
448
449 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
450
4501250b
FZ
4512009-11-24 Felix Zielcke <fzielcke@z-51.de>
452
453 * util/grub-mkrelpath.c: New file.
454 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
455 (grub_mkrelpath_SOURCES): New variable.
456 * include/grub/util/misc.h: New function prototype.
457 * util/misc.c (make_system_path_relative_to_its_root): New function.
458
459 * util/grub-mkconfig_lib.in (bindir): New variable.
460 (grub_mkrelpath): Likewise.
461 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
462
463 * util/probe.c (probe): Make the file path relative to its root.
464 Change a info message to use the GRUB path. Enable again the
465 check if we can read the file with GRUB facilities.
466
467 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
468 to its root.
469
11d9778b
FZ
4702009-11-24 Felix Zielcke <fzielcke@z-51.de>
471
472 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
473 platform.
474
4465287d
FZ
4752009-11-24 Felix Zielcke <fzielcke@z-51.de>
476
477 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
478 strncmp().
479
62b47f22
FZ
4802009-11-24 Felix Zielcke <fzielcke@z-51.de>
481
482 * util/getroot.c (grub_util_is_dmraid): New function.
483 (grub_util_get_dev_abstraction): Treat dmraid and multipath
484 devices as normal ones, not as LVM.
485
1eafb9b9 4862009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
487
488 * conf/common.rmk: Add grub-gettext_lib target and updates
489 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
490 LDFLAGS.
491 * gettext/gettext.c: New file. (Reads mo files).
492 * include/grub/file.h (grub_file_pread): New prototype.
493 * include/grub/i18n.h (_): New prototype.
494 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
495 prototypes.
496 * kern/misc.c (grub_gettext_dummy): New function.
497 * normal/menu_text.c: Include <grub/i18n.h>.
498 * normal/menu_text.c (print_timeout): Gettexttize string.
499 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
500 * po/POTFILES: Add `normal/menu_text.c'.
501 * po/ca.po: Add new translations.
c3ea6bd4
CPE
502 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
503 gettext module and defines locale_dir and lang in grub.cfg.
504 * NEWS: Add gettext support.
505
0fdb2568
RM
5062009-11-23 Robert Millan <rmh.grub@aybabtu.com>
507
508 * util/hostdisk.c: Include `<grub/i18n.h>'.
509 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
510 (make_device_name): Rewrite using asprintf.
511 (convert_system_partition_to_system_disk): Replace 0 with NULL.
512 (find_system_device): If a device is not found, generate one just
513 by reusing the OS path name.
514 (read_device_map): Make it permissible for device.map not to exist.
515
f515aa62
RM
5162009-11-23 Robert Millan <rmh.grub@aybabtu.com>
517
518 * script/sh/execute.c: Move from here ...
519 * script/execute.c: ... to here. Update all users.
520 * script/sh/function.c: Move from here ...
521 * script/function.c: ... to here. Update all users.
522 * script/sh/lexer.c: Move from here ...
523 * script/lexer.c: ... to here. Update all users.
524 * script/sh/main.c: Move from here ...
525 * script/main.c: ... to here. Update all users.
526 * script/sh/parser.y: Move from here ...
527 * script/parser.y: ... to here. Update all users.
528 * script/sh/script.c: Move from here ...
529 * script/script.c: ... to here. Update all users.
530
f84b481b
RM
5312009-11-23 Robert Millan <rmh.grub@aybabtu.com>
532
533 * configure.ac: Detect all `emu' platforms. Define
534 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
535 --enable-grub-emu logic. Disable include/grub/machine
536 symlink on `emu' platforms.
537
538 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
539 * gensymlist.sh.in: Likewise.
540
541 * include/grub/i386/coreboot/machine.h: Remove file.
542 * include/grub/i386/efi/machine.h: Likewise.
543 * include/grub/i386/ieee1275/machine.h: Likewise.
544 * include/grub/i386/pc/machine.h: Likewise.
545 * include/grub/i386/qemu/machine.h: Likewise.
546 * include/grub/powerpc/ieee1275/machine.h: Likewise.
547 * include/grub/sparc64/ieee1275/machine.h: Likewise.
548 * include/grub/x86_64/efi/machine.h: Likewise.
549
550 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
551 * commands/halt.c: Likewise.
552 * commands/reboot.c: Likewise.
553 * include/grub/autoefi.h: Likewise.
554 * include/grub/i386/at_keyboard.h: Likewise.
555 * include/grub/i386/kernel.h: Likewise.
556 * include/grub/i386/loader.h: Likewise.
557 * include/grub/i386/pc/memory.h: Likewise.
558 * kern/dl.c: Likewise.
559 * kern/i386/coreboot/init.c: Likewise.
560 * loader/i386/bsd.c: Likewise.
561 * loader/i386/linux.c: Likewise.
562 * loader/multiboot_loader.c: Likewise.
563 * term/i386/pc/serial.c: Likewise.
564 * term/usb_keyboard.c: Likewise.
565
566 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
567 `<grub/machine/machine.h>'
568 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
569 * util/misc.c: Remove `<grub/machine/machine.h>' and
570 `<grub/machine/time.h>'.
571
572 * Makefile.in (enable_grub_emu): Remove variable.
573 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
574
575 * conf/any-emu.rmk: New file.
576 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
577 (grub_emu_init.c): Move from here ...
578 * conf/any-emu.rmk: ... to here.
579
580 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
581 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
582 * conf/any-emu.rmk: ... to here.
583
4efeab03
RM
5842009-11-23 Robert Millan <rmh.grub@aybabtu.com>
585
586 * include/grub/parser.h (grub_parser_register): Document need
587 of `name' parameter.
588 * normal/main.c (grub_normal_read_line): Simplify prompt string.
589 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
590 "sh" to "grub".
591
ea1dd8bf
RM
5922009-11-23 Robert Millan <rmh.grub@aybabtu.com>
593
594 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
595 `$(XGETTEXT)'.
596 * include/grub/i18n.h (N_): New macro.
597 * util/mkisofs/mkisofs.h: Likewise.
598 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
599 around N_().
600 (usage): Use gettext() to translate help strings when printing them.
601
0c140626
RM
6022009-11-23 Robert Millan <rmh.grub@aybabtu.com>
603
604 Based on patch from Bean
605 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
606
607 * video/efi_fb.c: New file.
608 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
609 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
610 variables.
611 * conf/x86_64-efi.rmk: Likewise.
612
87d58298
RM
6132009-11-22 Robert Millan <rmh.grub@aybabtu.com>
614
615 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
616 * util/i386/pc/grub-setup.c: Likewise.
617
994cc3a3
ST
6182009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
619
620 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
621 <hurd/fs.h>
622 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
623 file_get_storage_info to implement grub_guess_root_device.
624
26a61d6a
FZ
6252009-11-21 Felix Zielcke <fzielcke@z-51.de>
626
627 * Makefile.in (target): Use make's builtin $(shell) function
628 instead of calling directly $(SHELL) to create the locale directories,
629 inside the $(foreach) function.
630
74ff1dd5
FZ
6312009-11-21 Felix Zielcke <fzielcke@z-51.de>
632
633 * util/grub-mkrescue.in: Print an error and usage if output option
634 has not been given.
635
0b787d0e
FZ
6362009-11-21 Felix Zielcke <fzielcke@z-51.de>
637
638 Patch from Loïc Minier <loic.minier@ubuntu.com>.
639 * util/grub.d/30_os-prober.in: Cope with Linux entries where
640 root and /boot are on different devices.
641
1164b270
RM
6422009-11-21 Robert Millan <rmh.grub@aybabtu.com>
643
644 Fix build for srcdir != objdir.
645
646 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
647 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
648 $(srcdir).
649 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
650 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
651 reference for input.
652
13774a2f
RM
6532009-11-21 Robert Millan <rmh.grub@aybabtu.com>
654
655 * util/grub-mkrescue.in: Use source directory direcly (without copiing
656 or hardlinking it). Remove -J option, Joliet is not compatible with
657 multiple source directories.
658
efda854e
RM
6592009-11-21 Carles Pina i Estany <carles@pina.cat>
6602009-11-21 Robert Millan <rmh.grub@aybabtu.com>
661
662 * util/grub-mkrescue.in: Recognize `--override-directory' option.
663 (process_input_dir): New function. Process an arbitrary input
664 directory.
665 Misc adjustments to support both "override mode" and system-wide mode.
666
6c09890c
FZ
6672009-11-20 Felix Zielcke <fzielcke@z-51.de>
668
669 * configure.ac (UNIFONT_BDF): Rename to ...
670 (FONT_SOURCE): ... this. Update all users.
671
a797824f
FZ
6722009-11-20 Felix Zielcke <fzielcke@z-51.de>
673
674 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
675 to the list of unifont files to look for.
676
cd4f42b0
RM
6772009-11-19 Robert Millan <rmh.grub@aybabtu.com>
678
679 Patch from Joe Auricchio <jauricchio@gmail.com>
680 * commands/minicmd.c (grub_mini_cmd_clear): New function.
681 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
682 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
683
393c783d
FZ
6842009-11-19 Felix Zielcke <fzielcke@z-51.de>
685
686 * Makefile.in (install-local): Add a missing backslash.
687
b2f1e327
FZ
6882009-11-19 Felix Zielcke <fzielcke@z-51.de>
689
690 * include/grub/x86_64/io.h: New file.
691
f577f7a0
RM
6922009-11-19 Robert Millan <rmh.grub@aybabtu.com>
693
694 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
695 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
696 Include `"progname.h"'.
697 (main): Initialize gettext.
698 * util/i386/pc/grub-setup.c: Gettexttize.
699 * util/i386/pc/grub-mkimage.c: Likewise.
700
701 * Makefile.in (po/*.po): Redefine as ...
702 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
703
3bc7896c
RM
704 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
705
c37943b6
RM
7062009-11-19 Robert Millan <rmh.grub@aybabtu.com>
707
708 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
709 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
710 (program_name): Remove.
711 (main): Initialize gettext support.
6323f705
RM
712 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
713 Include `<libintl.h>'.
714 (_): New macro.
c37943b6
RM
715
716 * util/mkisofs/eltorito.c: Gettexttize.
717 * util/mkisofs/joliet.c: Likewise.
718 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
719 * util/mkisofs/multi.c: Likewise.
720 * util/mkisofs/rock.c: Likewise.
721 * util/mkisofs/tree.c: Likewise.
722 * util/mkisofs/write.c: Likewise.
723
3bc7896c
RM
724 * po/POTFILES: Update with new files.
725
5ce77c6e
RM
7262009-11-18 Robert Millan <rmh.grub@aybabtu.com>
727
728 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
729 * util/mkisofs/iso9660.h: Likewise.
730 * util/mkisofs/joliet.c: Likewise.
731 * util/mkisofs/mkisofs.c: Likewise.
732 * util/mkisofs/mkisofs.h: Likewise.
733 * util/mkisofs/rock.c: Likewise.
734 * util/mkisofs/tree.c: Likewise.
735 * util/mkisofs/write.c: Likewise.
736
737 * util/mkisofs/eltorito.c (rcsid): Remove.
738 * util/mkisofs/hash.c: Likewise.
739 * util/mkisofs/joliet.c: Likewise.
740 * util/mkisofs/name.c: Likewise.
741 * util/mkisofs/rock.c: Likewise.
742 * util/mkisofs/tree.c: Likewise.
743 * util/mkisofs/write.c: Likewise.
744
1dabbc77
RM
7452009-11-18 Robert Millan <rmh.grub@aybabtu.com>
746
747 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
748 instead of static allocation.
749 * util/mkisofs/match.h: Likewise.
750
633877cb
RM
7512009-11-18 Robert Millan <rmh.grub@aybabtu.com>
752
3bc7896c
RM
753 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
754 and `util/grub.d/10_linux.in'.
633877cb
RM
755 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
756 translatable Shell files.
757
af1c0c85
RM
7582009-11-18 Robert Millan <rmh.grub@aybabtu.com>
759
760 * Makefile.in ($(srcdir)/aclocal.m4): New target.
761
769ae37b
RM
7622009-11-17 Robert Millan <rmh.grub@aybabtu.com>
763
764 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 765 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
766 * util/grub.d/10_kfreebsd.in (bindir): New variable.
767 Add gettext initialization.
768 (kfreebsd_entry): Make menuentry output translatable.
769
7702009-11-17 Robert Millan <rmh.grub@aybabtu.com>
771
772 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
773 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
774 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
775 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
776 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 777 * po/LINGUAS: New file.
769ae37b
RM
778
7792009-11-17 Robert Millan <rmh.grub@aybabtu.com>
780
781 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
782 other things).
783 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
784 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
785 bindtextdomain() calls for gettext initialization.
786
7872009-11-17 Robert Millan <rmh.grub@aybabtu.com>
788
789 * gnulib/progname.c: New file (imported from Gnulib).
790 * gnulib/progname.h: Likewise.
791 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
792 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
793 (usage): Replace `progname' with `program_name'.
794 (main): Use set_program_name() for program name initialization.
795
7962009-11-17 Robert Millan <rmh.grub@aybabtu.com>
797
798 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
799 from here ...
800 * Makefile.in (CPPFLAGS): ... to here.
801
8022009-11-16 Robert Millan <rmh.grub@aybabtu.com>
803
804 * aclocal.m4: Move from here ...
805 * acinclude.m4: ... to here.
806 * autogen.sh: Add call to `aclocal'.
807 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
808
8092009-11-16 Robert Millan <rmh.grub@aybabtu.com>
810
811 * Makefile.in (CLEANFILES): Add `po/*.mo'.
812 (LINGUAS): New variable.
813 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
814 (install-local): Install MO files.
815 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
816 * include/grub/i18n.h: New file.
3bc7896c
RM
817 * po/POTFILES: New file.
818 * po/ca.po: New file.
769ae37b
RM
819 * util/grub.d/10_linux.in (bindir): New variable.
820 Add gettext initialization.
821 (linux_entry): Make menuentry output translatable.
822 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
823 (usage): Make --help output translatable.
824 (main): Initialize gettext.
825
02c0a6ad
RM
8262009-11-17 Robert Millan <rmh.grub@aybabtu.com>
827
828 * import_gcry.py: New file (written by Vladimir with minor
829 adjustments).
830 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
831 ciphers.
832 * INSTALL: Document that Python is required for bootstrap.
833
8342009-11-17 Robert Millan <rmh.grub@aybabtu.com>
835
836 Import ciphers from libgcrypt 1.4.4.
837
838 * lib/libgcrypt/cipher/ChangeLog
839 * lib/libgcrypt/cipher/ac.c
840 * lib/libgcrypt/cipher/arcfour.c
841 * lib/libgcrypt/cipher/bithelp.h
842 * lib/libgcrypt/cipher/blowfish.c
843 * lib/libgcrypt/cipher/camellia-glue.c
844 * lib/libgcrypt/cipher/camellia.c
845 * lib/libgcrypt/cipher/camellia.h
846 * lib/libgcrypt/cipher/cast5.c
847 * lib/libgcrypt/cipher/cipher.c
848 * lib/libgcrypt/cipher/crc.c
849 * lib/libgcrypt/cipher/des.c
850 * lib/libgcrypt/cipher/dsa.c
851 * lib/libgcrypt/cipher/ecc.c
852 * lib/libgcrypt/cipher/elgamal.c
853 * lib/libgcrypt/cipher/hash-common.c
854 * lib/libgcrypt/cipher/hash-common.h
855 * lib/libgcrypt/cipher/hmac-tests.c
856 * lib/libgcrypt/cipher/md.c
857 * lib/libgcrypt/cipher/md4.c
858 * lib/libgcrypt/cipher/md5.c
859 * lib/libgcrypt/cipher/primegen.c
860 * lib/libgcrypt/cipher/pubkey.c
861 * lib/libgcrypt/cipher/rfc2268.c
862 * lib/libgcrypt/cipher/rijndael-tables.h
863 * lib/libgcrypt/cipher/rijndael.c
864 * lib/libgcrypt/cipher/rmd.h
865 * lib/libgcrypt/cipher/rmd160.c
866 * lib/libgcrypt/cipher/rsa.c
867 * lib/libgcrypt/cipher/seed.c
868 * lib/libgcrypt/cipher/serpent.c
869 * lib/libgcrypt/cipher/sha1.c
870 * lib/libgcrypt/cipher/sha256.c
871 * lib/libgcrypt/cipher/sha512.c
872 * lib/libgcrypt/cipher/tiger.c
873 * lib/libgcrypt/cipher/twofish.c
874 * lib/libgcrypt/cipher/whirlpool.c
875
af2f93ac
RM
8762009-11-16 Robert Millan <rmh.grub@aybabtu.com>
877
878 Fix build for systems without error().
879
880 * gnulib/error.c: New file (imported from Gnulib).
881 * gnulib/error.h: Likewise.
882 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
883 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
884 (this variable is now used by error()).
885
73fb3dd5
FZ
8862009-11-16 Felix Zielcke <fzielcke@z-51.de>
887
814f5e96
FZ
888 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
889 instead of relying that char is signed.
73fb3dd5 890
a691ca33
VS
8912009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
894 blocksize different from specified.
895 (grub_pxefs_read): Likewise.
896
2af8f0f4
FZ
8972009-11-16 Felix Zielcke <fzielcke@z-51.de>
898
899 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
900
901 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
902 (grub_ata_readwrite): Likewise. Update 2 format strings.
903 (grub_atapi_read): Likewise.
904
905 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
906 * conf/i386.rmk (pkglib_MODULES): ... to here ...
907 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
908 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
909 (ata_mod_LDFLAGS): Move from here ...
910 * conf/i386.rmk: ... to here ...
911 * conf/x86_64-efi.rmk: ... and here.
912 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
913 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
914
83bdecaf
RM
9152009-11-16 Robert Millan <rmh.grub@aybabtu.com>
916
917 Relicense multiboot.h, with RMS' blessing.
918
919 * include/multiboot.h: Change to X11 license.
920
fd6fd3d7
RM
9212009-11-15 Robert Millan <rmh.grub@aybabtu.com>
922
923 Support --version in grub-mkisofs.
924
925 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
926 (OPTION_VERSION): New macro.
927 (ld_options): Recognize --version.
928 (usage): Move `program_name' from here ...
929 (program_name): ... to here. Add `static' qualifier.
930 (main): Recognize `OPTION_VERSION'.
931
16a88c49
FZ
9322009-11-15 Felix Zielcke <fzielcke@z-51.de>
933
934 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
935 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
936
a4158476
RM
9372009-11-14 Robert Millan <rmh.grub@aybabtu.com>
938
939 Fix help2man generation for mkisofs.
940
941 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
942 (usage): Send output to stdout (rather than stderr).
943
fc2208b0
RM
9442009-11-14 Robert Millan <rmh.grub@aybabtu.com>
945
946 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
947 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
948 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
949 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
950 (bin_SCRIPTS): Add `grub-mkfloppy'.
951 (grub_mkfloppy_SOURCES): New variable.
952
953 * util/grub-mkrescue.in: New file.
954 * util/i386/pc/grub-mkfloppy.in: New file.
955
956 * util/i386/coreboot/grub-mkrescue.in: Remove.
957 * util/i386/pc/grub-mkrescue.in: Remove.
958
8d0edf4a
RM
9592009-11-13 Robert Millan <rmh.grub@aybabtu.com>
960
961 * include/grub/multiboot.h (struct grub_multiboot_header): Move
962 from here ...
963 * include/multiboot.h (struct multiboot_header): ... to here. Update
964 all users.
965 * include/grub/multiboot.h (struct grub_multiboot_info): Move
966 from here ...
967 * include/multiboot.h (struct multiboot_info): ... to here. Update
968 all users.
969 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
970 from here ...
971 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
972 Update all users.
973 * include/grub/multiboot.h (struct grub_mod_list): Move
974 from here ...
975 * include/multiboot.h (struct multiboot_mod_list): ... to here.
976 Update all users.
977
a73f5969
RM
9782009-11-13 Robert Millan <rmh.grub@aybabtu.com>
979
980 * include/multiboot2.h (multiboot_word): Rename from this ...
981 (multiboot2_word): ... to this. Update all users.
982 (multiboot_header): Rename from this ...
983 (multiboot2_header): ... to this. Update all users.
984 (multiboot_tag_header): Rename from this ...
985 (multiboot2_tag_header): ... to this. Update all users.
986 (multiboot_tag_start): Rename from this ...
987 (multiboot2_tag_start): ... to this. Update all users.
988 (multiboot_tag_name): Rename from this ...
989 (multiboot2_tag_name): ... to this. Update all users.
990 (multiboot_tag_module): Rename from this ...
991 (multiboot2_tag_module): ... to this. Update all users.
992 (multiboot_tag_memory): Rename from this ...
993 (multiboot2_tag_memory): ... to this. Update all users.
994 (multiboot_tag_unused): Rename from this ...
995 (multiboot2_tag_unused): ... to this. Update all users.
996 (multiboot_tag_end): Rename from this ...
997 (multiboot2_tag_end): ... to this. Update all users.
998
1c8927f0
RM
9992009-11-13 Robert Millan <rmh.grub@aybabtu.com>
1000
1001 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
1002 this platform we should support Multiboot1 first.
1003
1004 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
1005 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
1006 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
1007
6e1e0d89
RM
10082009-11-12 Robert Millan <rmh.grub@aybabtu.com>
1009
1010 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
1011 of write calls (converting them to fwrite() if they aren't already).
1012 (get_torito_desc): Likewise.
1013 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
1014
7f2b34d8
RM
10152009-11-12 Robert Millan <rmh.grub@aybabtu.com>
1016
1017 * util/i386/pc/grub-install.in: Move from here ...
1018 * util/grub-install.in: ... to here. Update all users.
1019
c0ef3311
CW
10202009-11-11 Colin Watson <cjwatson@ubuntu.com>
1021
1022 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
1023
e1f240ff
RM
10242009-11-11 Robert Millan <rmh.grub@aybabtu.com>
1025
1026 Support for El Torito without floppy emulation.
1027
1028 * util/mkisofs/eltorito.c: Include `<errno.h>'.
1029 (init_boot_catalog): Improve error handling.
1030 (get_torito_desc): Don't use floppy emulation unless requested by
1031 user. Patch boot information table when requested via
1032 `-boot-info-table'.
1033 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
1034 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
1035 (use_boot_info_table): New variables.
1036 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
1037 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
1038 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
1039 `--eltorito-emul-floppy'.
1040 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
1041 and `OPTION_ELTORITO_EMUL_FLOPPY'.
1042 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
1043 (use_boot_info_table, get_731): New prototypes.
1044 * util/mkisofs/write.c (get_731): New function.
1045
af7d4de5
FZ
10462009-11-11 Felix Zielcke <fzielcke@z-51.de>
1047
1048 Fix the generation of the man page.
1049
1050 * util/pc/i386/grub-install.in: Source
1051 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
1052
2c55dbc0
RM
10532009-11-11 Robert Millan <rmh.grub@aybabtu.com>
1054
1055 Large file support for grub-mkisofs.
1056
1057 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
1058 * util/mkisofs/mkisofs.c (next_extent, last_extent)
1059 (session_start): Upgrade type to `uint64_t'. Update all users.
1060 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
1061 (struct directory_entry): Upgrade type of `starting_block' and
1062 `size' to `uint64_t'. Update all users.
1063 (struct deferred): Remove unused structure.
1064 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
1065 Update all users.
1066 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
1067 file is larger than `UINT32_MAX'.
1068 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
1069 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
1070 return value.
1071 (struct deferred_write): Upgrade type of `extent' and `size' to
1072 `uint64_t'. Update all users.
1073 (last_extent_written): Upgrade type to `uint64_t'. Update all
1074 users.
1075 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
1076 Update all users. Upgrade type of `remain' to `int64_t' and
1077 `use' to `size_t'. Use error() to handle fread() errors.
1078 (write_files): Rely on write_one_file() rather than calling
1079 xfwrite() directly.
1080
6a9cead5
FZ
10812009-11-09 Felix Zielcke <fzielcke@z-51.de>
1082
1083 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
1084
4825d790
RM
10852009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1086
1087 * util/mkisofs/fnmatch.c: Remove.
1088 * util/mkisofs/getopt1.c: Likewise.
1089 * util/mkisofs/getopt.c: Likewise.
1090 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
1091 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
1092 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
1093 `gnulib/getopt1.c' and `gnulib/getopt.c'.
1094 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
1095
1096 * configure.ac: Detect `mingw32msvc' host_os.
1097 Check for lstat(), getuid() and getgid().
1098
1099 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
1100 instances of `u_char' with `uint8_t'.
1101
1102 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
1103 [!HAVE_GETUID] (getuid): New function (stub).
1104 [!HAVE_GETGID] (getgid): Likewise.
1105 [!HAVE_LSTAT] (lstat): Likewise.
1106 [!S_IROTH] (S_IROTH): New macro (dummy).
1107 [!S_IRGRP] (S_IRGRP): Likewise.
1108
84b860d8
RM
11092009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1110
1111 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
1112 conditional expression).
1113
66e9b712
RM
11142009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1115
1116 Import from Gnulib.
1117
1118 * gnulib/fnmatch.c: New file.
1119 * gnulib/fnmatch.h: Likewise.
1120 * gnulib/fnmatch_loop.c: Likewise.
1121 * gnulib/getopt.c: Likewise.
1122 * gnulib/getopt.h: Likewise.
1123 * gnulib/getopt1.c: Likewise.
1124 * gnulib/getopt_int.h: Likewise.
1125 * gnulib/gettext.h: Likewise.
1126
34f4a5b0
RM
11272009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1128
1129 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
1130 * normal/handler.c (read_handler_list): Likewise.
1131
ac451143
RM
11322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1133
1134 Misc cleanup.
1135
1136 * kern/command.c (grub_register_command_prio): Use
1137 grub_zalloc() instead of explicitly zeroing data.
1138 * kern/list.c: Include `<grub/mm.h>'.
1139 (grub_named_list_find): Replace `0' with `NULL'.
1140 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
1141 (fs_module_list): Change type to `grub_named_list_t'. Update all
1142 users.
1143 * normal/dyncmd.c (read_command_list): Add space between function
1144 call and parenthesis.
1145 * normal/handler.c (read_handler_list): Likewise.
1146
4089b167
RM
11472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1148
1149 * normal/auth.c (punishment_delay): Moved from here ...
1150 (grub_auth_strcmp): ... to here (inside function).
1151
325f5037
RM
11522009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1153
1154 * include/grub/list.h (struct grub_named_list): Remove `const'
1155 qualifier from `name'.
1156 (struct grub_prio_list): Likewise.
1157
7aea29a3
RM
11582009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1159
1160 * normal/auth.c: Include `<grub/time.h>'.
1161 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
1162
3fd6f044
RM
11632009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1164
1165 * normal/auth.c (punishment_delay): New variable.
1166 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
1167 (grub_auth_check_authentication): Punish failed login attempts with
1168 an incremental (2^N) delay.
1169
a4cd68e4
RM
11702009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1171
1172 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
1173 path with $(srcdir).
1174
7ad12f43
VS
11752009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
1178
c1129f03
RM
11792009-11-09 Robert Millan <rmh.grub@aybabtu.com>
1180
1181 * util/i386/coreboot/grub-mkrescue.in: New file.
1182 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
1183 variables.
1184
1185 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
1186 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
1187 * configure.ac: Add header and function checks to satisfy grub-mkisofs
1188 requirements.
1189 * util/mkisofs/defaults.h: New file.
1190 * util/mkisofs/eltorito.c: Likewise.
1191 * util/mkisofs/exclude.h: Likewise.
1192 * util/mkisofs/fnmatch.c: Likewise.
1193 * util/mkisofs/getopt.c: Likewise.
1194 * util/mkisofs/getopt1.c: Likewise.
1195 * util/mkisofs/hash.c: Likewise.
1196 * util/mkisofs/include/fctldefs.h: Likewise.
1197 * util/mkisofs/include/mconfig.h: Likewise.
1198 * util/mkisofs/include/prototyp.h: Likewise.
1199 * util/mkisofs/include/statdefs.h: Likewise.
1200 * util/mkisofs/iso9660.h: Likewise.
1201 * util/mkisofs/joliet.c: Likewise.
1202 * util/mkisofs/match.c: Likewise.
1203 * util/mkisofs/match.h: Likewise.
1204 * util/mkisofs/mkisofs.c: Likewise.
1205 * util/mkisofs/mkisofs.h: Likewise.
1206 * util/mkisofs/multi.c: Likewise.
1207 * util/mkisofs/name.c: Likewise.
1208 * util/mkisofs/rock.c: Likewise.
1209 * util/mkisofs/tree.c: Likewise.
1210 * util/mkisofs/write.c: Likewise.
1211
ec8bb77d
VS
12122009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
1215 being insecure.
1216
3716b12c
RM
12172009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1218
1219 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
1220 `grub-mkimage' (and use $0 when possible).
1221
b97b7b91
RM
12222009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1223
1224 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
1225 error message for excessively large memory map.
1226
04114812
RM
12272009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1228
1229 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
1230 executable bit.
1231
e4eb2373
RM
12322009-11-08 Robert Millan <rmh.grub@aybabtu.com>
1233
1234 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
1235 message for coreboot users.
1236
c926e1d5 12372009-11-07 Robert Millan <rmh.grub@aybabtu.com>
1238
1239 Fix build with GNU gold.
1240
1241 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
1242 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
1243 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
1244 link addresses.
1245 * aclocal.m4: Likewise.
1246
86e5b1db 12472009-11-04 Felix Zielcke <fzielcke@z-51.de>
1248
1249 * configure.ac (AC_PREREQ): Bump to 2.59d.
1250 * INSTALL: Make it more clear when Autoconf and Ruby are
1251 needed and when to run `./autogen.sh'.
1252
246cd78f 12532009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1254
1255 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
1256 OSes.
1257
4f9dfb37 12582009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1259
1260 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
1261
b82bd5e1 12622009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1263
1264 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
1265 giving it to GNU Mach.
1266
ff1a9bca 12672009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1268
1269 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
1270 GNU partition number to get internal GRUB partition number.
1271
61697d9c 12722009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1273
1274 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
1275 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
1276
a50569e1 12772009-11-01 Robert Millan <rmh.grub@aybabtu.com>
1278
1279 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
1280 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
1281 case.
1282
5b153867 12832009-11-01 Felix Zielcke <fzielcke@z-51.de>
1284
1285 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
1286
d9e2cd70 12872009-10-30 Robert Millan <rmh.grub@aybabtu.com>
1288
1289 Fix build problem.
1290
1291 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
1292 `-isystem=$(srcdir)/include'.
1293
805111a4 12942009-10-30 Robert Millan <rmh.grub@aybabtu.com>
1295
1296 * util/i386/pc/grub-install.in: Remove hint that device.map should be
1297 checked (grub-install doesn't currently rely on it).
1298
fa6e945f 12992009-10-29 Robert Millan <rmh.grub@aybabtu.com>
1300
1301 Revert SVN r2660.
1302
1303 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
1304 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
1305 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
1306 * conf/i386-ieee1275.rmk: Likewise.
1307 * conf/i386-pc.rmk: Likewise.
1308 * conf/powerpc-ieee1275.rmk: Likewise.
1309 * conf/sparc64-ieee1275.rmk: Likewise.
1310 * conf/x86_64-efi.rmk: Likewise.
1311
cee15086 13122009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1313
1314 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
1315
95b9239e 13162009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1317
1318 * include/grub/misc.h: Stop checking for APPLE_CC.
1319
2ed19dfd 13202009-10-28 Robert Millan <rmh.grub@aybabtu.com>
1321
1322 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
1323 doesn't cause an infinite call loop.
1324
fdcdde19 13252009-10-28 Felix Zielcke <fzielcke@z-51.de>
1326
1327 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
1328 strings.
1329
cefabfe1 13302009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1331
1332 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
1333 variable.
1334 * Makefile.in: Likewise.
1335
ed96ab6d 13362009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1337
1338 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
1339
0579b753 13402009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1341
1342 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
1343
478df409 13442009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1345
1346 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
1347
083d1679 13482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1349
1350 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
1351 from here ...
1352 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
1353
5947ae32 13542009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1355
1356 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
1357 in $(MAKEINFO) invocation. This makes it clear in output that
1358 errors are being ignored.
1359
94180ff6 13602009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1361
1362 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
1363 from here ...
1364 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
1365 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
1366 * conf/i386-ieee1275.rmk: Likewise.
1367 * conf/i386-pc.rmk: Likewise.
1368 * conf/powerpc-ieee1275.rmk: Likewise.
1369 * conf/sparc64-ieee1275.rmk: Likewise.
1370 * conf/x86_64-efi.rmk: Likewise.
1371
9031b03a 13722009-10-26 Colin Watson <cjwatson@ubuntu.com>
1373
1374 * util/grub-editenv.c (main): If only a command is given, use
1375 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
1376 (usage): FILENAME is now optional and has a default.
1377
e4f6809b 13782009-10-26 Colin Watson <cjwatson@ubuntu.com>
1379
1380 Improve grub-mkconfig performance when there are several menu
1381 entries on a single filesystem.
1382
1383 * util/grub.d/10_linux.in (linux_entry): Cache the output of
1384 prepare_grub_to_access_device.
1385 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1386 * util/grub.d/30_os-prober.in: Likewise.
1387
67937d4d 13882009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1389
1390 * util/grub.d/10_freebsd.in: Remove.
1391 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
1392 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
1393
ee3756cc 13942009-10-26 Robert Millan <rmh.grub@aybabtu.com>
1395
5c35048e 1396 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 1397
4dea1c6f 13982009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1399
1400 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
1401 grub_util_error() call.
1402
042484d7 14032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1404
1405 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
1406 `reserved_first_sector' member.
1407 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
1408 `reserved_first_sector' to 1.
1409 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
1410 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
1411 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
1412 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
1413 filesystems which begin at first sector.
1414 (options): New option --skip-fs-probe.
1415 (main): Handle --skip-fs-probe and pass it to setup().
1416
d64448a7 14172009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1418
1419 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
1420 (memset): Fix function prototype.
1421
508d42ec 14222009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14232009-10-25 Vasily Averin <vvs@parallels.com>
1424
1425 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
1426 `dirent.direntlen == 0'.
1427
b240e30c 14282009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1429
1430 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
1431 `cpio'.
1432 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
1433
346e7fbe 14342009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1435
1436 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
1437 `__trampoline_setup' and `__ucmpdi2'.
1438 * include/grub/powerpc/libgcc.h: Only export symbols for functions
1439 that libgcc provides.
1440
cdb308b0 14412009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1442
1443 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
1444 * include/grub/sparc64/libgcc.h (memset): Likewise.
1445 * include/grub/misc.h (memset, memcmp): New function prototypes.
1446
fb26abc2 14472009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1448
1449 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
1450 `cpio'.
1451 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
1452
f6693890 14532009-10-25 Robert Millan <rmh.grub@aybabtu.com>
1454
1455 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
1456 * docs/grub.cfg: Compensate for recent change in multiboot
1457 loader (since 2009-08-14 it won't pass filename to payload).
1458 * util/grub.d/10_hurd.in: Likewise.
1459
0933cdc0 14602009-10-21 Felix Zielcke <fzielcke@z-51.de>
1461
1462 * config.guess: Update to latest version from config git
1463 repository.
1464 * config.sub: Likewise.
1465
3b2fe8c2 14662009-10-20 Robert Millan <rmh.grub@aybabtu.com>
1467
1468 Fix build on sparc64.
1469
1470 * configure.ac: Perform checks for libgcc symbols before
1471 adding `-nostdlib' to LDFLAGS.
1472
46695a62 14732009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 Let user specify OpenBSD root device.
1476
1477 * loader/i386/bsd.c (openbsd_root): New variable.
1478 (openbsd_opts): New option 'root'.
1479 (OPENBSD_ROOT_ARG): New macro.
1480 (grub_openbsd_boot): Use 'openbsd_root'.
1481 (grub_cmd_openbsd): Fill 'openbsd_root'.
1482
d2b6b7fc 14832009-10-16 Robert Millan <rmh.grub@aybabtu.com>
1484
1485 * NEWS: Misc adjustments.
1486
421bd7ac 14872009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
1490
f1d29d87 14912009-10-16 Robert Millan <rmh.grub@aybabtu.com>
1492
1493 * configure.ac: Bump version to 1.97.
1494
6f3cd880 14952009-10-16 Colin Watson <cjwatson@ubuntu.com>
1496
1497 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
1498 -mno-3dnow on x86 architectures. Some toolchains enable these
1499 features by default, but they rely on registers that aren't enabled
1500 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
1501
035f7122 15022009-10-15 Robert Millan <rmh.grub@aybabtu.com>
1503
1504 Make entry text a bit more readable.
1505
1506 * util/grub.d/10_linux.in: Add `with' before `Linux'.
1507
44998e58 15082009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
1511
cd2851b3 15122009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
1515 operations.
1516
c6f3b249 15172009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * configure.ac: Add missing dollar.
1520
6b5886ba 15212009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1522
1523 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
1524
1525 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
1526 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
1527 exports.
1528 * include/grub/sparc64/libgcc.h: Likewise. Use
1529 preprocessor conditionals.
1530
e9d66f6d 15312009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1532
1533 * conf/common.rmk (grub-dumpbios): Remove rule.
1534 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
1535 * util/grub-dumpbios.in: Remove file.
1536
9155bc17 15372009-10-14 Robert Millan <rmh.grub@aybabtu.com>
1538
1539 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
1540 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
1541
1542 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
1543 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
1544 users.
1545
1546 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
1547 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
1548 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
1549 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
1550 users.
1551
bf7f7a18 15522009-10-12 Robert Millan <rmh.grub@aybabtu.com>
1553
1554 * term/tparm.c: Switch to GPLv3.
1555
86564c26 15562009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1557
1558 * include/grub/i386/cpuid.h: Add header protection.
1559
5c936493 15602009-10-09 Robert Millan <rmh.grub@aybabtu.com>
1561
1562 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
1563
1564 * include/grub/i386/cpuid.h: New file.
1565 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
1566 (has_longmode): Rename to ...
1567 (grub_cpuid_has_longmode): ... this. Update all users. Remove
1568 `static' attribute.
1569 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
1570 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
1571 on a CPU that doesn't implement AMD64 instruction set.
1572
186e7cf2 15732009-10-06 Colin Watson <cjwatson@ubuntu.com>
1574
1575 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
1576 that version.texi is rebuilt on version number changes.
1577
83b65c4a 15782009-10-06 Colin Watson <cjwatson@ubuntu.com>
1579
1580 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
1581 Fixes bug #27602.
1582
d244281c 15832009-10-06 Colin Watson <cjwatson@ubuntu.com>
1584
1585 * util/i386/pc/grub-install.in: Source
1586 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
1587 that the --grub-probe option will work.
1588 * util/sparc64/ieee1275/grub-install.in: Likewise.
1589
da25306d 15902009-10-05 Robert Millan <rmh.grub@aybabtu.com>
1591
1592 * configure.ac: Bump version to 1.97~beta4.
1593
e8ee83c0 15942009-10-03 Robert Millan <rmh.grub@aybabtu.com>
1595
1596 Resync grub-mkdevicemap in x86_64-efi.
1597
1598 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
1599 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
1600 `util/devicemap.c'.
1601
50dcabcf 16022009-10-01 Colin Watson <cjwatson@ubuntu.com>
1603
1604 * util/grub-editenv.c (create_envblk_file): Write new block with a
1605 .new suffix and then rename it into place, to ensure atomic
1606 creation.
1607
0e51c3a7 16082009-09-28 Robert Millan <rmh.grub@aybabtu.com>
1609
1610 Do not automatically install headers.
1611
1612 * Makefile.in (include_DATA): Remove. Update all users.
1613
31299a95 16142009-09-26 Robert Millan <rmh.grub@aybabtu.com>
1615
1616 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
1617 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
1618
1619 * util/osdetect.lua: Remove.
1620 * script/lua/lauxlib.c: Likewise.
1621 * script/lua/ldebug.c: Likewise.
1622 * script/lua/grub_main.c: Likewise.
1623 * script/lua/lauxlib.h: Likewise.
1624 * script/lua/ldebug.h: Likewise.
1625 * script/lua/ltablib.c: Likewise.
1626 * script/lua/liolib.c: Likewise.
1627 * script/lua/lstrlib.c: Likewise.
1628 * script/lua/lualib.h: Likewise.
1629 * script/lua/ldo.c: Likewise.
1630 * script/lua/ldump.c: Likewise.
1631 * script/lua/ldo.h: Likewise.
1632 * script/lua/loslib.c: Likewise.
1633 * script/lua/lundump.c: Likewise.
1634 * script/lua/grub_lib.c: Likewise.
1635 * script/lua/ldblib.c: Likewise.
1636 * script/lua/lundump.h: Likewise.
1637 * script/lua/lmem.c: Likewise.
1638 * script/lua/grub_lib.h: Likewise.
1639 * script/lua/lmathlib.c: Likewise.
1640 * script/lua/lstate.c: Likewise.
1641 * script/lua/ltm.c: Likewise.
1642 * script/lua/lvm.c: Likewise.
1643 * script/lua/lmem.h: Likewise.
1644 * script/lua/lstate.h: Likewise.
1645 * script/lua/ltm.h: Likewise.
1646 * script/lua/ltable.c: Likewise.
1647 * script/lua/lvm.h: Likewise.
1648 * script/lua/llex.c: Likewise.
1649 * script/lua/lgc.c: Likewise.
1650 * script/lua/grub_lua.h: Likewise.
1651 * script/lua/loadlib.c: Likewise.
1652 * script/lua/lfunc.c: Likewise.
1653 * script/lua/lopcodes.c: Likewise.
1654 * script/lua/lparser.c: Likewise.
1655 * script/lua/ltable.h: Likewise.
1656 * script/lua/llex.h: Likewise.
1657 * script/lua/lgc.h: Likewise.
1658 * script/lua/lfunc.h: Likewise.
1659 * script/lua/lbaselib.c: Likewise.
1660 * script/lua/lopcodes.h: Likewise.
1661 * script/lua/lparser.h: Likewise.
1662 * script/lua/lzio.c: Likewise.
1663 * script/lua/linit.c: Likewise.
1664 * script/lua/lobject.c: Likewise.
1665 * script/lua/llimits.h: Likewise.
1666 * script/lua/lstring.c: Likewise.
1667 * script/lua/lzio.h: Likewise.
1668 * script/lua/lapi.c: Likewise.
1669 * script/lua/lcode.c: Likewise.
1670 * script/lua/lua.h: Likewise.
1671 * script/lua/lobject.h: Likewise.
1672 * script/lua/lstring.h: Likewise.
1673 * script/lua/lapi.h: Likewise.
1674 * script/lua/lcode.h: Likewise.
1675 * script/lua/luaconf.h: Likewise.
1676
cb8a2c38 16772009-09-26 Colin Watson <cjwatson@ubuntu.com>
1678
1679 * docs/grub.texi (Command-line and menu entry commands): Document
1680 date and echo commands.
1681
6b9b6276 16822009-09-24 Pavel Roskin <proski@gnu.org>
1683
1684 * include/grub/kernel.h (struct grub_module_header): Remove
1685 `grub_module_header_types'. Make `type' unsigned. Make `size'
1686 32-bit on all platforms.
1687 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
1688 8-bit field. Use grub_host_to_target32() for `size'.
1689 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
1690 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
1691 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
1692
4e5a02a7 16932009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1694
1695 Fix "lost keypress" bug in at_keyboard.
1696
1697 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
1698 Checks for readyness of input buffer (without flushing it).
1699 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
1700 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
1701
c6dcedf6 17022009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1703
1704 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
1705 size check within GRUB_MACHINE_PCBIOS section.
1706
74c958b1 17072009-09-24 Robert Millan <rmh.grub@aybabtu.com>
1708
1709 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
1710 return value.
1711 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
1712 KEYBOARD_ISREADY check.
1713 (grub_at_keyboard_checkkey): Rename to ...
1714 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
1715 Remove gratuitous cast.
1716
ff420223 17172009-09-23 Colin Watson <cjwatson@ubuntu.com>
1718
1719 * configure.ac: Call AC_PROG_MKDIR_P.
1720 * Makefile.in (docs/stamp-vti): Create docs directory. Create
1721 version.texi in $(builddir) rather than $(srcdir).
1722 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
1723 to makeinfo's @include search path.
1724
d96875df 17252009-09-23 Felix Zielcke <fzielcke@z-51.de>
1726
1727 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
1728
9b3f8365 17292009-09-23 Felix Zielcke <fzielcke@z-51.de>
1730
1731 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
1732 for `*.dpkg-new'.
1733
c44c90db 17342009-09-21 Colin Watson <cjwatson@ubuntu.com>
1735
1736 Build info documentation. Some code borrowed from Automake.
1737
1738 * configure.ac: Check for makeinfo.
1739 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
1740 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
1741 docs/version.texi.
1742 (MOSTLYCLEANFILES): Add vti.tmp.
1743 (docs/version.texi, docs/stamp-vti): Update automatically.
1744 (docs/grub.info): Build info documentation. Use --force and ignore
1745 errors for now.
1746 (all-local): Add $(INFOS).
1747 (install-local): Install info files.
1748 (uninstall): Uninstall info files.
1749 * docs/version.texi: Remove from revision control. This file is
1750 automatically generated on build now.
1751 * gendistlist.sh: Add `*.info'.
1752
e0b37bb5 17532009-09-21 Felix Zielcke <fzielcke@z-51.de>
1754
1755 * kern/term.c: Fix indentation.
1756
5a78865b 17572009-09-21 Felix Zielcke <fzielcke@z-51.de>
1758
1759 * util/hostdisk.c: Fix a comment.
1760
dace7e8a 17612009-09-20 Robert Millan <rmh.grub@aybabtu.com>
1762
1763 Fix regression introduced in r2539.
1764
1765 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
1766 to 0xA1.
1767
a83d079b 17682009-09-19 Colin Watson <cjwatson@ubuntu.com>
1769
1770 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 1771 os-prober. Under normal operation, it does not print anything to
1772 stderr; if it does, we need to debug it, and throwing away stderr
1773 makes that excessively difficult.
a83d079b 1774
be94a509 17752009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
1778
63f745e8 17792009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1780
1781 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
1782 AC_LANG_PROGRAM from autoconf.
1783 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
1784 prototypes (fixes warning).
1785
1786 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
1787 `--disable-werror' was used.
1788
bbb2a70f 17892009-09-16 Robert Millan <rmh.grub@aybabtu.com>
1790
1791 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
1792 uninitialized `lastaddr'.
1793
77c24f1d 17942009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1795
0f0b8c87 1796 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 1797
07197f23 17982009-09-14 Colin Watson <cjwatson@ubuntu.com>
1799
1800 * commands/test.c (get_fileinfo): Return immediately if
1801 grub_fs_probe fails.
1802
dabf1798 18032009-09-14 José Martínez <xosemp@gmail.com>
1804
1805 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
1806
d52109a7 18072009-09-14 Colin Watson <cjwatson@ubuntu.com>
1808
1809 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
1810 output.
1811
56532179 18122009-09-13 Robert Millan <rmh.grub@aybabtu.com>
1813
1814 * configure.ac: Remove --enable-grub-pe2elf. Only build
1815 grub-pe2elf when needed by the build system itself.
1816 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
1817
8ef070f5 18182009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1819
1820 * configure.ac: Bump version to 1.97~beta3.
1821 * docs/version.texi: Likewise.
1822
61229557 18232009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1824
1825 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
1826 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
1827 from here ...
1828 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
1829 (grub_linux_setup_video): ... to here (with some adjustments).
1830
5c9f8d84 18312009-09-12 Robert Millan <rmh.grub@aybabtu.com>
1832
1833 Fix memory corruption issue (spotted by Colin Watson).
1834
1835 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
1836 causing returned size to be stored in an incorrect memory location.
1837 Fix use of uninitialized value when storing the returned size.
1838
e8f5d6e9 18392009-09-12 Yves Blusseau <blusseau@zetam.org>
1840
1841 Change clean rules to properly remove files
1842
1843 * genmk.rb: add new clean rules
1844 * Makefile.in (clean): add the new targets
1845 (mostlyclean): likewise
1846
cda2a409 18472009-09-11 Colin Watson <cjwatson@ubuntu.com>
1848
1849 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
1850 to grub_uint64_t.
1851 * fs/ntfs.c (init_file): Understand 64-bit sizes for
1852 non-resident files.
1853
86695375 18542009-09-11 Colin Watson <cjwatson@ubuntu.com>
1855
1856 * configure.ac: Don't look for help2man when cross-compiling. Fixes
1857 part of bug #27349.
1858
8aa1541a 18592009-09-10 Felix Zielcke <fzielcke@z-51.de>
1860
1861 * util/grub-mkconfig.in: Make the created config mode 400 and
1862 print a warning if it fails.
1863
48d9bb0a 18642009-09-10 Robert Millan <rmh.grub@aybabtu.com>
1865
1866 * util/grub.d/40_custom.in: Ask user to type custom entries below
1867 comment, rather than below 'exec tail' line.
1868
3b0521be 18692009-09-10 Colin Watson <cjwatson@ubuntu.com>
1870
1871 * util/grub.d/40_custom.in: Make sure that the explanatory text is
1872 visible in grub.cfg.
1873
50051d55 18742009-09-10 Colin Watson <cjwatson@ubuntu.com>
1875
1876 * util/grub.d/40_custom.in: Make it a little clearer how to use this
1877 file.
1878
c0d34387 18792009-09-10 Felix Zielcke <fzielcke@z-51.de>
1880
1881 * docs/grub.cfg: Add an example menu entry for memtest86+.
1882
80a608f3 18832009-09-09 Felix Zielcke <fzielcke@z-51.de>
1884
a2094832 1885 * config.guess: Update to latest version from config git.
80a608f3 1886 * config.sub: Likewise.
1887
99423078 18882009-09-08 Colin Watson <cjwatson@ubuntu.com>
1889
1890 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
1891 unknown-command case. Fixes bug #27320.
1892
44454e4c 18932009-09-08 Felix Zielcke <fzielcke@z-51.de>
1894
1895 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
1896 `help' if the command exists.
1897
e30d87ad 18982009-09-06 Robert Millan <rmh.grub@aybabtu.com>
1899
1900 * INSTALL: Require GCC 4.1.3 or later.
1901
9a86f1ec 19022009-09-06 Yves Blusseau <blusseau@zetam.org>
1903
1904 * Makefile.in (RMKFILES): add i386-qemu.rmk
1905 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
1906 $(srcdir)/stamp-h.in
1907
7f26d466 19082009-09-05 Robert Millan <rmh.grub@aybabtu.com>
1909
1910 * util/grub-probe.c (probe): Comment out buggy codepath, which
1911 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
1912 should be re-enabled after 1.97.
1913
3a613259 19142009-09-05 Felix Zielcke <fzielcke@z-51.de>
1915
1916 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
1917 find searches for.
1918
197f76c7 19192009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
1922 unnecessary calls to grub_error.
1923
70ba68ce 19242009-09-04 Colin Watson <cjwatson@ubuntu.com>
1925
1926 * NEWS: Mention `keystatus' and Unicode fonts.
1927
4ff0d7a4 19282009-09-04 Robert Millan <rmh.grub@aybabtu.com>
1929
1930 * configure.ac: Bump version to 1.97~beta2.
1931 * docs/version.texi: Likewise.
1932
77c55a87 19332009-09-03 Colin Watson <cjwatson@ubuntu.com>
1934
1935 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
1936 containing unwind information in some cases where it previously did
1937 not. Use -fno-dwarf2-cfi-asm if available to restore the old
1938 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
1939 discussion.
1940
f79572cd 19412009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
1942
1943 Embedding loadenv module into grub-emu
1944
1945 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
1946 commands/loadenv.c
1947 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
1948 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
1949 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
1950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
1951 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
1952 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
1953
93a81088 19542009-09-03 Magnus Granberg <zorry@ume.nu>
1955
1956 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
1957 include -fPIE in the default specs.
1958 * configure.ac: Check if pie_possible is yes and add -fno-PIE
1959 to TARGET_CFLAGS.
1960
160034b2 19612009-09-03 Felix Zielcke <fzielcke@z-51.de>
1962
1963 * INSTALL: Note that GNU Bison 2.3 or later is required.
1964
087c07c4 19652009-09-03 Colin Watson <cjwatson@ubuntu.com>
1966
1967 * kern/i386/pc/startup.S: Fix typo.
1968
cbf978c0 19692009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
1972 according to GCS.
1973
19742009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 1975
1976 * docs/grub.texi (Naming convention): Describe one-based partition
1977 numbering.
1978 (Device syntax): Likewise.
1979 (File name syntax): Likewise.
1980 (Block list syntax): Likewise.
1981 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
1982 menu.lst.
1983 (File name syntax): Likewise.
1984 (Command-line and menu entry commands): Document acpi, blocklist,
1985 crc, export, insmod, keystatus, ls, set, and unset commands.
1986
f3e8cdfd 19872009-09-02 Colin Watson <cjwatson@ubuntu.com>
1988
1989 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
1990 to avoid implying that only one of --shift, --ctrl, or --alt may be
1991 used.
1992
c0bc232b 19932009-09-02 Colin Watson <cjwatson@ubuntu.com>
1994
1995 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
1996 rather than comparing against S_IFREG, which will almost never work.
1997
aa0f752d 19982009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
2001 (write_blocklists): Likewise.
2002
ecb3166a 20032009-09-01 Colin Watson <cjwatson@ubuntu.com>
2004
2005 * script/lua/grub_lua.h (fputs): Supply a format string as the first
2006 argument to grub_printf.
2007
c403a125 20082009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 2009
2010 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 2011 non GNU test.
31aba781 2012
b5e7312c 20132009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 * kern/file.c (grub_file_read): Spelling fix
2016
fe00f472 20172009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2018
2019 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
2020 loading of headers in some cases.
2021
cc55302e 20222009-08-30 Robert Millan <rmh.grub@aybabtu.com>
2023
2024 * configure.ac: Bump version to 1.97~beta1.
2025 * docs/version.texi: Likewise.
2026
5c90cdd2 20272009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 2028
2029 * include/grub/i386/xnu.h: Add license header.
2030 include grub/err.h explicitly.
2031
c90edae4 20322009-08-29 Robert Millan <rmh.grub@aybabtu.com>
2033
2034 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
2035 to `ufs' in the vfs.root.mountfrom kernel parameter.
2036
d8888b5c 20372009-08-29 Robert Millan <rmh.grub@aybabtu.com>
2038
2039 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
2040
2041 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
2042 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
2043
2044 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
2045 `ARRAY_SIZE' macro.
2046
6f07b921 20472009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * kern/file.c (grub_file_read): Check offset.
2050 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
2051 * fs/jfs.c (grub_jfs_read_file): Likewise.
2052 * fs/ntfs.c (grub_ntfs_read): Likewise.
2053 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
2054 * fs/minix.c (grub_minix_read_file): Correct offset check.
2055 * fs/ufs.c (grub_ufs_read_file): Likewise.
2056
b4f34077 20572009-08-28 Colin Watson <cjwatson@ubuntu.com>
2058
2059 * term/i386/pc/console.c (bios_data_area): Cast
2060 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
2061
e7c69859 20622009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 1-bit optimised blitters.
2065
2066 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
2067 prototype.
2068 (grub_video_fbblit_replace_24bit_1bit): Likewise.
2069 (grub_video_fbblit_replace_16bit_1bit): Likewise.
2070 (grub_video_fbblit_replace_8bit_1bit): Likewise.
2071 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
2072 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
2073 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
2074 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
2075 function.
2076 (grub_video_fbblit_replace_24bit_1bit): Likewise.
2077 (grub_video_fbblit_replace_16bit_1bit): Likewise.
2078 (grub_video_fbblit_replace_8bit_1bit): Likewise.
2079 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
2080 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
2081 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
2082 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
2083 when possible.
2084 * video/video.c (grub_video_get_blit_format): Return
2085 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
2086
a57da43f 20872009-08-28 Colin Watson <cjwatson@ubuntu.com>
2088
2089 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
2090 the first argument to grub_printf.
2091
4cbe67e5 20922009-08-28 Colin Watson <cjwatson@ubuntu.com>
20932009-08-28 Robert Millan <rmh.grub@aybabtu.com>
2094
2095 Add `getkeystatus' terminal method. Add a new `keystatus' command
2096 to query it.
2097
2098 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
2099 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
2100 modifier key bitmasks.
2101 (struct grub_term_input): Add `getkeystatus' member.
2102 (grub_getkeystatus): Add prototype.
2103 * kern/term.c (grub_getkeystatus): New function.
2104
2105 * include/grub/i386/pc/memory.h
2106 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
2107 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
2108 Data Area layout.
2109 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
2110 (grub_console_term_input): Set `getkeystatus' member.
2111 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
2112 constants.
2113 (grub_usb_keyboard_getreport): Likewise.
2114 (grub_usb_keyboard_checkkey): Likewise.
2115 (grub_usb_keyboard_getkeystatus): New function.
2116 (grub_usb_keyboard_term): Set `getkeystatus' member.
2117
2118 * commands/keystatus.c: New file.
2119 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
2120 (keystatus_mod_SOURCES): New variable.
2121 (keystatus_mod_CFLAGS): Likewise.
2122 (keystatus_mod_LDFLAGS): Likewise.
2123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
2124 commands/keystatus.c.
2125 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2126 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2127 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2128 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2129 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2130 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 2131
6e2a9085 21322009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 Split befs.mod and afs.mod into *_be.mod and *.mod
2135
2136 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
2137 (grub_fstest_SOURCES): Likewise.
2138 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
2139 (afs_be_mod_SOURCES): New variable.
2140 (afs_be_mod_CFLAGS): Likewise.
2141 (afs_be_mod_LDFLAGS): Likewise.
2142 (befs_be_mod_SOURCES): Likewise.
2143 (befs_be_mod_CFLAGS): Likewise.
2144 (befs_be_mod_LDFLAGS): Likewise.
2145 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
2146 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2147 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2148 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2149 (grub_emu_SOURCES): Likewise.
2150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2151 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2152 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2153 * fs/afs_be.c: New file.
2154 * fs/befs_be.c: New file.
2155 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
2156 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
2157 (U16): Replaced with ...
2158 (grub_afs_to_cpu16): ...this. All users updated.
2159 (U32): Replaced with ...
2160 (grub_afs_to_cpu32): ...this. All users updated.
2161 (U64): Replaced with ...
2162 (grub_afs_to_cpu64): ...this. All users updated.
2163 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
2164 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 2165 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 2166 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
2167 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
2168 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
2169 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
2170 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
2171 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
2172 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
2173 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
2174
32a71655 21752009-08-26 Bean <bean123ch@gmail.com>
2176
2177 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
2178 64-bit number.
2179 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
2180 (grub_xfs_inode_block): Change return type to grub_uint64_t.
2181 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
2182
552bf6c5 21832009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 NetBSD memory map support.
2186
2187 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
2188 (grub_netbsd_btinfo_mmap_header): New structure.
2189 (grub_netbsd_btinfo_mmap_entry): Likewise.
2190 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
2191
1ae2078c 21922009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 Enable bsd.mod on coreboot.
2195
2196 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
2197 (bsd_mod_SOURCES): New variable.
2198 (bsd_mod_CFLAGS): Likewise.
2199 (bsd_mod_LDFLAGS): Likewise.
2200 (bsd_mod_ASFLAGS): Likewise.
2201 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
2202 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
2203
beefc598 22042009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 Cleanup NetBSD root support.
2207
2208 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
2209 grub_bsd_get_device.
2210 Fix typo.
2211
3b76e68b 22122009-08-25 Felix Zielcke <fzielcke@z-51.de>
2213
2214 * util/grub.d/00_header.in: Move check for the video backend of
2215 gfxterm from here ...
2216 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
2217 a suitable video backend.
2218
aea664ea 22192009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2220
2221 Fix breakage in grub-setup.
2222
2223 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
2224 "msdos_partition_map".
2225
ff747d50 22262009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 Fix breakage in normal/auth.c.
2229
2230 * normal/auth.c (grub_iswordseparator): New function.
2231
e7e1f93f 22322009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2233
2234 Authentication support.
2235
2236 * commands/password.c: New file.
2237 * conf/common.rmk (pkglib_MODULES): Add password.mod.
2238 (password_mod_SOURCES): New variable.
2239 (password_mod_CFLAGS): Likewise.
2240 (password_mod_LDFLAGS): Likewise.
2241 (normal_mod_SOURCES): Add normal/auth.c.
2242 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
2243 normal/auth.c.
2244 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
2245 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2246 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2248 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2249 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
2250 * include/grub/auth.h: New file.
2251 * include/grub/err.h (grub_err_t): New enum value
2252 GRUB_ERR_ACCESS_DENIED.
2253 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
2254 'users'.
2255 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
2256 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
2257 users updated.
2258 * normal/auth.c: New file.
2259 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
2260 (grub_cmdline_run): Don't allow to go to command line without
2261 authentication.
2262 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
2263 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
2264 menuentry without superuser rights.
2265 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
2266 user isn't a superuser.
2267
70f1161d 22682009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2269
2270 Save space by inlining misc.c functions.
2271
2272 * kern/misc.c (grub_iswordseparator): Made static.
2273 * kern/misc.c (grub_strcat): Moved from here ...
2274 * include/grub/misc.h (grub_strcat): ... here. Inlined.
2275 * kern/misc.c (grub_strncat): Moved from here ...
2276 * include/grub/misc.h (grub_strncat): ... here. Inlined.
2277 * kern/misc.c (grub_strcasecmp): Moved from here ...
2278 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
2279 * kern/misc.c (grub_strncasecmp): Moved from here ...
2280 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
2281 * kern/misc.c (grub_isalpha): Moved from here ...
2282 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
2283 * kern/misc.c (grub_isdigit): Moved from here ...
2284 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
2285 * kern/misc.c (grub_isgraph): Moved from here ...
2286 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
2287 * kern/misc.c (grub_tolower): Moved from here ...
2288 * include/grub/misc.h (grub_tolower): ... here. Inlined.
2289
48e40bff 22902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * script/sh/function.c (grub_script_function_find): Cut error message
2293 not to flood terminal.
2294 * script/sh/lexer.c (grub_script_yylex): Remove command line length
2295 limit.
2296 * script/sh/script.c (grub_script_arg_add): Duplicate string.
2297
c385bfc3 22982009-08-24 Colin Watson <cjwatson@ubuntu.com>
2299
2300 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
2301 `report' grub_uint8_t *.
2302 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
2303 Use a 50-millisecond timeout rather than just repeating
2304 grub_usb_keyboard_getreport 50 times.
2305 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
2306
2d21e3e8 23072009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 Rename *_partition_map to part_*
2310
2311 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
2312 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
2313 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
2314 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
2315 All users updated.
2316 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
2317 All users updated.
2318 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
2319 * util/grub-probe.c (probe_partmap): Don't transform partition name
2320 to get module name.
2321
dd103c4e 23222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 Fix OpenBSD and NetBSD support.
2325
2326 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
2327 memory address conflict.
2328 (OPENBSD_MMAP_ACPI): New definition.
2329 (OPENBSD_MMAP_NVS): Likewise.
2330 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
2331 and OPENBSD_MMAP_NVS.
2332 Add memory map terminator
2333 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 2334 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 2335
16c84d74 23362009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 Let user specify NetBSD root device.
2339
2340 * loader/i386/bsd.c (netbsd_root): New variable.
2341 (netbsd_opts): New option 'root'.
2342 (NETBSD_ROOT_ARG): New macro.
2343 (grub_netbsd_boot): Use 'netbsd_root'.
2344 (grub_bsd_unload): Free 'netbsd_root'.
2345 (grub_cmd_netbsd): Fill 'netbsd_root'.
2346
adb29902 23472009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 Support for 64-bit NetBSD.
2350
2351 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
2352 point when booting non-FreeBSD.
2353
f5ae9f74 23542009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 Support --no-smp and --no-acpi for NetBSD.
2357
2358 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
2359 (NETBSD_AB_NOACPI): Likewise.
2360 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
2361 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
2362
de74f136 23632009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
2366 errors.
2367 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
2368 errors. Call grub_error when needed.
2369
e9a925da 23702009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * commands/search.c (search_fs): Try searching without autoload first.
2373 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
2374 filesystem module explicitly for faster booting.
2375
5174302b 23762009-08-23 Colin Watson <cjwatson@ubuntu.com>
2377
2378 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
2379
c8c80635 23802009-08-23 Colin Watson <cjwatson@ubuntu.com>
2381
2382 * util/grub.d/30_os-prober.in: Disable os-prober if
2383 `GRUB_DISABLE_OS_PROBER' was set to true.
2384
71acf5e5 23852009-08-23 Robert Millan <rmh.grub@aybabtu.com>
2386
2387 * partmap/pc.c: Rename to ...
2388 * partmap/msdos.c: ... this. Update all users.
2389 (grub_pc_partition_map): Rename to ...
2390 (grub_msdos_partition_map): ... this. Update all users.
2391
2392 * parttool/pcpart.c: Rename to ...
2393 * parttool/msdospart.c: ... this. Update all users.
2394
2395 * include/grub/pc_partition.h: Rename to ...
2396 * include/grub/msdos_partition.h: ... this. Update all users.
2397 (grub_pc_partition_bsd_entry): Rename to ...
2398 (grub_msdos_partition_bsd_entry): ... this. Update all users.
2399 (grub_pc_partition_disk_label): Rename to ...
2400 (grub_msdos_partition_disk_label): ... this. Update all users.
2401 (grub_pc_partition_entry): Rename to ...
2402 (grub_msdos_partition_entry): ... this. Update all users.
2403 (grub_pc_partition_mbr): Rename to ...
2404 (grub_msdos_partition_mbr): ... this. Update all users.
2405 (grub_pc_partition): Rename to ...
2406 (grub_msdos_partition): ... this. Update all users.
2407 (grub_pc_partition_is_empty): Rename to ...
2408 (grub_msdos_partition_is_empty): ... this. Update all users.
2409 (grub_pc_partition_is_extended): Rename to ...
2410 (grub_msdos_partition_is_extended): ... this. Update all users.
2411 (grub_pc_partition_is_bsd): Rename to ...
2412 (grub_msdos_partition_is_bsd): ... this. Update all users.
2413
2414 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
2415 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
2416 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
2417 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
2418 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
2419 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
2420 (gpt_mod_LDFLAGS): Rename to ...
2421 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
2422 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
2423 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
2424 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
2425 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
2426 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
2427 (part_gpt_mod_LDFLAGS): ... this.
2428 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
2429 `pcpart.mod' to `msdospart.mod'.
2430 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
2431 to ...
2432 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
2433 (msdospart_mod_LDFLAGS): ... this.
2434
c11fded5 24352009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2436
2437 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
2438 (openbsd_opts): Likewise.
2439 (netbsd_opts): Likewise.
2440 (freebsd_flags): Added 0 terminator.
2441 (openbsd_flags): Likewise.
2442 (netbsd_flags): Likewise.
2443 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
2444 (grub_cmd_freebsd): Transformed into extended command.
2445 (grub_cmd_openbsd): Likewise.
2446 (grub_cmd_netbsd): Likewise.
2447 (cmd_freebsd): Changed type to grub_extcmd_t.
2448 (cmd_openbsd): Likewise.
2449 (cmd_netbsd): Likewise.
2450 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
2451 grub_cmd_openbsd as extended commands.
2452 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
2453 cmd_netbsd and cmd_openbsd
2454
11d1c769 24552009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
2458
7a9094e5 24592009-08-21 Pavel Roskin <proski@gnu.org>
2460
5496c37e 2461 * Makefile.in (install-local): When checking if a file is in the
2462 build directory, use "test -e" to detect symlinks.
2463
7a9094e5 2464 * Makefile.in (install-local): Remove all files in
2465 $(DESTDIR)$(pkglibdir) before installing new files there.
2466
e53cea11 24672009-08-18 Felix Zielcke <fzielcke@z-51.de>
2468
2469 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
2470 grub-mkelfimage.
2471
9aced544 24722009-08-18 Felix Zielcke <fzielcke@z-51.de>
2473
2474 * util/grub-mkconfig.in: Don't use gfxterm by default if not
2475 explicitly specified by the user.
2476
b7da6bab 24772009-08-18 Pavel Roskin <proski@gnu.org>
2478
2479 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
2480 grub_uint8_t pointer for data.
2481 * include/grub/fbutil.h (struct grub_video_fbblit_info):
2482 Likewise.
2483 * video/fb/fbutil.c: Remove unnecessary casts.
2484
19f1b335 24852009-08-17 Michal Suchanek <hramrach@centrum.cz>
2486
2487 VBE cleanup.
2488
2489 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
2490 (grub_vbe_set_video_mode): Save active mode info
2491 only after setting the mode.
2492 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
2493 second argument.
2494
2f467aa9 24952009-08-17 Michal Suchanek <hramrach@centrum.cz>
2496
2497 Rename variables for clarity.
2498
2499 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
2500 (active_vbe_mode_info): ... this. All users updated.
2501 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
2502 All users updated.
2503 (initial_mode): Rename to ...
2504 (initial_vbe_mode): ... this. All users updated.
2505 (mode_in_use): Rename to ..
2506 (vbe_mode_in_use): ... this. All users updated.
2507 (mode_list): Rename to ..
2508 (vbe_mode_list): ... this. All users updated.
2509 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
2510 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
2511 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
2512 'mode_list_size' to 'vbe_mode_list_size'.
2513 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
2514 'best_mode_info' to 'best_vbe_mode_info' and
2515 'best_mode' to 'best_vbe_mode'
2516
6025fcd7 25172009-08-17 Michal Suchanek <hramrach@centrum.cz>
2518
2519 Remove duplicate grub_video_fb_get_video_ptr.
2520
2521 * include/grub/fbutil.h (get_data_ptr): Rename to ...
2522 (grub_video_fb_get_video_ptr): ... this.
2523 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
2524 * video/fb/fbutil.c: Add comment about addressing.
2525 (get_data_ptr): Rename to ...
2526 (grub_video_fb_get_video_ptr): ... this. All users updated.
2527 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
2528
cc8c6faf 25292009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2530
2531 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
2532 grub_dprintf() that was just added.
2533
08aa61f0 25342009-08-17 Robert Millan <rmh.grub@aybabtu.com>
2535
2536 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
2537 (DEFAULT_VIDEO_MODE): Remove macros.
2538 (grub_linux_boot): Remove assumption that Linux has FB support,
2539 and use "text" as default video mode.
2540
7cef4f75 25412009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
2544 grub_dprintf.
2545 * fs/fat.c (grub_fat_read_data): Likewise.
2546
e1f39873 25472009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
2550 payload.
2551 (grub_module): Likewise.
2552
c166d79e 25532009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
2556 mbi->cmdline but free playground.
2557
c60cee8e 25582009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 Handle group offset on UFS1.
2561
2562 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
2563 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
2564
c0d8b5d4 25652009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 Split ufs.mod into ufs1.mod and ufs2.mod.
2568
2569 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
2570 (grub_fstest_SOURCES): Likewise.
2571 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
2572 (ufs_mod_SOURCES): Remove.
2573 (ufs_mod_CFLAGS): Likewise.
2574 (ufs_mod_LDFLAGS): Likewise.
2575 (ufs1_mod_SOURCES): New variable.
2576 (ufs1_mod_CFLAGS): Likewise.
2577 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 2578 (ufs2_mod_SOURCES): New variable.
2579 (ufs2_mod_CFLAGS): Likewise.
2580 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 2581 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
2582 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2583 Likewise.
2584 (grub_emu_SOURCES): Likewise.
2585 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2586 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2587 (grub_setup_SOURCES): Likewise.
2588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
2589 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
2590 (grub_setup_SOURCES): Likewise.
2591 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
2592 Likewise.
2593 * fs/ufs2.c: New file.
2594 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
2595
d3539132 25962009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 Framebuffer split.
2599
2600 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
2601 subsystem at the end.
2602 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
2603 (video_fb_mod_SOURCES): New variable.
2604 (video_fb_mod_CFLAGS): Likewise.
2605 (video_fb_mod_LDFLAGS): Likewise.
2606 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
2607 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
2608 * video/i386/pc/vbeblit.c: Moved from here ...
2609 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
2610 * video/i386/pc/vbefill.c: Moved from here ...
2611 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
2612 * video/i386/pc/vbeutil.c: Moved from here ...
2613 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
2614 * include/grub/i386/pc/vbeblit.h: Moved from here ...
2615 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
2616 * include/grub/i386/pc/vbefill.h: Moved from here ...
2617 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
2618 * include/grub/i386/pc/vbeutil.h: Moved from here ...
2619 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
2620 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
2621 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
2622 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
2623 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
2624 (grub_video_adapter): Added 'get_info_and_fini'.
2625 (grub_video_get_info_and_fini): New prototype.
2626 (grub_video_set_mode): make modestring const char *.
2627 * loader/i386/linux.c (grub_linux_setup_video): Use
2628 grub_video_get_info_and_fini.
2629 (grub_linux_boot): Move modesetting just before booting.
2630 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
2631 grub_video_get_info_and_fini.
2632 * video/i386/pc/vbe.c: Moved framebuffer part ...
2633 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
2634 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
2635 grub_video_fbstd_colors and grub_video_fb_set_palette.
2636 (grub_video_vbe_init): Clear 'framebuffer' variable and use
2637 grub_video_fb_init.
2638 (grub_video_vbe_fini): Use grub_video_fb_fini.
2639 (grub_video_vbe_setup): Use framebuffer.render_target instead of
2640 render_target and use grub_video_fb_set_active_render_target and
2641 grub_video_fb_set_palette.
2642 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
2643 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
2644 (grub_video_vbe_adapter): Use framebuffer.
2645 * video/video.c (grub_video_get_info_and_fini): New function.
2646 (grub_video_set_mode): Make modestring const char *.
2647 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
2648 values are already initialised.
2649
d404ee56 26502009-08-14 Pavel Roskin <proski@gnu.org>
2651
2652 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
2653 ABS and APPLE_CC.
2654 * boot/i386/pc/diskboot.S: Likewise.
2655 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
2656 sectors allow compilation on MacOSX.
2657 * conf/i386-pc.rmk: Enable unconditional compilation of
2658 lnxboot.img.
2659
9a10df16 26602009-08-13 Colin Watson <cjwatson@ubuntu.com>
2661
2662 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
2663 * util/grub.d/00_header.in: Enter interruptible sleep if
2664 GRUB_HIDDEN_TIMEOUT is set.
2665
be3c9ca7 26662009-08-13 Yves Blusseau <blusseau@zetam.org>
2667
2668 * include/grub/symbol.h: Add the LOCAL macro.
2669 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
2670 starting with "L_".
2671
1f9e557e 26722009-08-13 Pavel Roskin <proski@gnu.org>
2673
9ca62843 2674 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
2675 any modern compilers we support.
2676
1f9e557e 2677 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
2678 Use local labels starting with "L_" so that Apple assembler
2679 knows they are local.
2680
81623db6 26812009-08-10 Robert Millan <rmh.grub@aybabtu.com>
2682
2683 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
2684 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
2685 (bsd_kernel_types): ... this enum.
2686
2687 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
2688 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
2689 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
2690
2691 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
2692 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
2693 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
2694 messages.
2695
f5d35e7a 26962009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2697
2698 * util/grub-dumpdevtree: Moved from here ...
2699 * util/i386/efi/grub-dumpdevtree: ... to here.
2700 (hexify): New function. Converts a string to its hex version.
2701 Generate hex versions of "efi" and "device-properties" by calling
2702 hexify() on the ASCII strings rather than by hardcoding numbers.
2703
d1e1d527 27042009-08-08 Robert Millan <rmh.grub@aybabtu.com>
2705
2706 * fs/jfs.c: Update copyright year.
2707
1ebbe064 27082009-08-08 Felix Zielcke <fzielcke@z-51.de>
2709
2710 * util/grub.d/00_header.in: Fix a comment.
2711 * util/grub.d/10_linux.in: Likewise.
2712 * util/grub.d/10_windows.in: Likewise.
2713 * util/grub.d/10_hurd.in: Likewise.
2714
a78c8d24 27152009-08-08 Felix Zielcke <fzielcke@z-51.de>
2716
2717 * util/grub-mkconfig.in: Allow the user to specify the used font
2718 with GRUB_FONT.
2719
29a6b9e8 27202009-08-08 Pavel Roskin <proski@gnu.org>
2721
b5f16cc4 2722 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
2723 available, xfs.mod needs it now.
2724
2f5cb827 2725 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
2726 the "g" modifier in sed when the intention is to strip something
2727 once. This fixes comparison of kernels with multiple dashes.
2728
29a6b9e8 2729 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
2730 on it. Add missing space before closing bracket. Fix
2731 misleading formatting.
2732
892a3d98 27332009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2734
2735 * docs/grub.texi: Major overhaul. Remove all sections that are
2736 specific to GRUB Legacy, or mostly composed of Legacy-specific
2737 information.
2738
ed94253f 27392009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2740
2741 * docs/version.texi: New file. Provides version information for
2742 grub.texi.
2743
126d6628 27442009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2745
2746 * docs/grub.texi: Update CVS information to SVN.
2747 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
2748
998b5aa9 27492009-08-07 Felix Zielcke <fzielcke@z-51.de>
2750
2751 * util/grub-mkconfig.in: Remove a wrong `fi'.
2752
818e094a 27532009-08-07 Felix Zielcke <fzielcke@z-51.de>
2754
2755 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
2756 (grub_jfs_uuid): New function.
2757 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
2758
b969c52f 27592009-08-07 Felix Zielcke <fzielcke@z-51.de>
2760
2761 * util/grub-mkconfig_lib.in (font_path): Move the functionality
2762 of it to ...
2763 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
2764 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
2765
7a4894cc 27662009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2767
2768 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
2769 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
2770 Update all users.
2771
2772 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
2773 not just "vmlinu[zx]".
2774 Moved from here ...
2775 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
2776 all users.
2777
2778 * util/grub.d/10_linux.in (find_latest): Moved from here ...
2779 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
2780 all users.
2781
4e2171f8 27822009-08-07 Robert Millan <rmh.grub@aybabtu.com>
2783
2784 * util/grub.d/10_freebsd.in: Use an absolute device path for
2785 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
2786
6dcfcb32 27872009-08-06 Felix Zielcke <fzielcke@z-51.de>
2788
2789 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2790 handling of multiple abstraction modules.
2791
f56a8756 27922009-08-04 Robert Millan <rmh.grub@aybabtu.com>
2793
2794 Fix a bug resulting in black screen when loading Linux using a
2795 packed video mode.
2796
2797 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
2798 function.
2799
2800 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
2801 (grub_vbe_bios_getset_dac_palette_width): New function.
2802 (grub_vbe_bios_get_dac_palette_width)
2803 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
2804 grub_vbe_bios_getset_dac_palette_width()).
2805
2806 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
2807 check for return status.
2808 (grub_vbe_get_video_mode_info): When getting information for a packed
2809 mode (<= 8 bpp), obtain DAC palette width using
2810 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
2811 {red,green,blue}_mark_size.
2812
222671b2 28132009-08-04 Felix Zielcke <fzielcke@z-51.de>
2814
ecb1a6d9 2815 * commands/search.c (options): Fix help output to match actual code.
222671b2 2816
f84114f5 28172009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
2820 of homegrown code.
2821
bd288a20 28222009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 2823
2824 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
2825 on XFS or ReiserFS.
2826
8aab5e25 28272009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 Support Apple partition map with sector size different from 512 bytes.
2830
2831 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
2832 (apple_partition_map_iterate): Respect 'aheader.blocksize'
2833 and 'apart.partmap_size'.
2834
6ad6258a 28352009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
28362009-08-01 Robert Millan <rmh.grub@aybabtu.com>
2837
2838 Fix cpuid command.
2839
2840 * commands/i386/cpuid.c (options): New variable.
2841 (grub_cmd_cpuid): Return real error.
2842 (GRUB_MOD_INIT(cpuid)): Declare options.
2843
67459bc6 28442009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
2847 valid.
2848
fbc6ab54 28492009-07-31 Bean <bean123ch@gmail.com>
2850
2851 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
2852 log2_inode.
2853 (grub_fshelp_node): Move inode field to the end.
2854 (grub_xfs_data): Remove inode field.
2855 (grub_xfs_inode_block): Calculate inode size using sblock.
2856 (grub_xfs_inode_offset): Likewise.
2857 (grub_xfs_read_inode): Calculate inode size using sblock.
2858 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
2859 (grub_xfs_iterate_dir): Calculate inode size using sblock.
2860 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
2861 to match inode size.
2862 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
2863 not accessible when data is null.
2864 (grub_xfs_open): Likewise.
2865
f45d6cfc 28662009-07-31 Bean <bean123ch@gmail.com>
2867
2868 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
2869 Don't change pv->disk if it's already set.
2870
2871 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
2872 (grub_raid_register): ... here.
2873 (grub_raid_rescan): Removed.
2874
2875 * include/grub/raid.h (grub_raid_rescan): Removed.
2876
2877 * util/grub-fstest.c: Remove include file <grub/raid.h>.
2878 (fstest): Replace grub_raid_rescan with module fini function followed
2879 by init function.
2880
2881 * util/grub-probe.c: Add include file <grub/raid.h>.
2882 (probe_raid_level): New function.
2883 (probe): Detect abstraction by walking the disk device, support two
2884 level of abstraction (LVM on RAID) when detecting partition map.
2885
24443b5a 28862009-07-31 Pavel Roskin <proski@gnu.org>
2887
2888 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
2889 to grub_zalloc(), it was erroneous.
2890 Reported by Bean <bean123ch@gmail.com>
2891
a275d9e7 28922009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 2895 embedding zone, not only the first one.
a275d9e7 2896
56c5a47f 28972009-07-29 Joe Auricchio <jauricchio@gmail.com>
2898
2899 * term/gfxterm.c (clear_char): New function.
2900 (grub_virtual_screen_setup): Use clear_char.
2901 (scroll_up): Likewise.
2902 (grub_virtual_screen_cls): Likewise.
2903
67bb323a 29042009-07-29 Felix Zielcke <fzielcke@z-51.de>
2905
2906 * util/deviceiter.c (get_acceleraid_disk_name): New static
2907 function.
2908 (grub_util_iterate_devices): Handle Accelraid devices.
2909 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
2910
388a7c75 29112009-07-28 Robert Millan <rmh.grub@aybabtu.com>
2912
2913 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
2914 separator for the suggested gfxpayload string (';' collides with the
2915 parser and needs escaping).
2916
3bb7abcf 29172009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
2920 Clear direction flag before jumping to OS.
2921 (grub_multiboot2_real_boot): Likewise.
2922
2ddd36d7 29232009-07-28 Felix Zielcke <fzielcke@z-51.de>
2924
2925 * util/i386/pc/grub-install: Fix parsing of --disk-module
2926 option.
2927
c521b62b 29282009-07-28 Felix Zielcke <fzielcke@z-51.de>
2929
2930 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
2931 when embedding.
2932
880e0a0c 29332009-07-26 Felix Zielcke <fzielcke@z-51.de>
2934
2935 * util/grub-mkconfig.in (package_version): New variable.
2936 Use it do display the version.
2937
2366e356 29382009-07-25 Felix Zielcke <fzielcke@z-51.de>
2939
2940 * kern/file.c (grub_file_open): Revert to previous check with
2941 grub_errno.
2942
7ad8c80e 29432009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
2946 from help line. It's out of sync with code.
2947
72b9658b 29482009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
2951 entries on failed boot.
2952
77435277 29532009-07-25 Felix Zielcke <fzielcke@z-51.de>
2954
2955 * kern/file.c (grub_file_open): Fix an error check.
2956
fcaa8b21 29572009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
2958
35d16c74 2959 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
2960 partition map couldn't be identified.
fcaa8b21 2961
48904cd1 29622009-07-23 Pavel Roskin <proski@gnu.org>
2963
ef3c317f 2964 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
2965 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
2966 case of little endian words becomes just an optimization.
2967 Respect const modifier.
ad8ea1f4 2968 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 2969
48904cd1 2970 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
2971 to avoid loss of upper bits if align is unsigned and shorter
2972 than addr.
2973
260c9a89 29742009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 UUID support for UFS
2977
2978 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
2979 (grub_ufs_uuid): New function.
2980 (grub_ufs_fs): add .uuid
2981
f76ce889 29822009-07-21 Pavel Roskin <proski@gnu.org>
2983
2984 * kern/dl.c (grub_dl_check_header): Make static.
2985
6a6cbcaf 29862009-07-21 Felix Zielcke <fzielcke@z-51.de>
2987
2988 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
2989 add drivemap for Vista. It breaks Windows 7.
2990
cffcddb2 29912009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
2994 128 bytes
2995
1ef44b80 29962009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 Add BFS support
2999
3000 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
3001 (grub_fstest_SOURCES): Likewise.
3002 (pkglib_MODULES): Add befs.mod.
3003 (befs_mod_SOURCES): New variable.
3004 (befs_mod_CFLAGS): Likewise.
3005 (befs_mod_LDFLAGS): Likewise.
3006 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
3007 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
3008 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3009 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
3010 (grub_setup_SOURCES): Likewise.
3011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3012 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3013 (grub_setup_SOURCES): Likewise.
3014 * fs/befs.c: New file.
3015 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
3016 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
3017 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
3018 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
3019 (B_KEY_INDEX_ALIGN): New declaration.
3020 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
3021 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
3022 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
3023 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
3024 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
3025 (grub_afs_mount) [MODE_BFS]: Likewise.
3026 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
3027 (grub_afs_fs): Use GRUB_AFS_FSNAME
3028 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
3029 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
3030 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
3031 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
3032
4f253044 30332009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
3034
3035 * util/getroot.c (find_root_device): Add support for MacOSX.
3036 * util/hostdisk.c: Likewise.
3037
57a55913 30382009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * font/font.c (find_glyph): Check whether a font is present to avoid
3041 segmentation fault.
75421ca9 3042
30432009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 3044
3045 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
3046
e98cd0c2 30472009-07-20 Pavel Roskin <proski@gnu.org>
3048
3049 * configure.ac: Trim excessively wordy excuses.
3050
1d2d169a 30512009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 Add symlink, mtime and label support to AtheFS.
3054
3055 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
3056 (grub_afs_iterate_dir): Handle symlinks.
3057 (grub_afs_open): Use grub_afs_read_symlink.
3058 (grub_afs_dir): Likewise.
3059 Pass mtime.
3060 (grub_afs_label): New function.
3061 (grub_afs_fs): Add grub_afs_label.
3062 (grub_afs_read_symlink): New function.
3063
186f3189 30642009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 Fix AtheFS support.
3067
3068 * fs/afs.c: Fix comments style.
3069 (grub_afs_blockrun): Declare as packed.
3070 (grub_afs_datastream): Likewise.
3071 (grub_afs_bnode): Likewise.
3072 (grub_afs_btree): Likewise.
3073 (grub_afs_sblock): Likewise.
3074 Declare `name' as char.
3075 (grub_afs_inode): Declare as packed.
3076 Change void *vnode to grub_uint32_t unused.
3077 (grub_afs_iterate_dir): Check that key_size is positive.
3078 (grub_afs_mount): Don't read superblock twice.
75421ca9 3079 (grub_afs_dir): Don't free node in case of error,
186f3189 3080 grub_fshelp_find_file already handles this.
3081 (grub_afs_open): Likewise.
3082
5680109e 30832009-07-19 Pavel Roskin <proski@gnu.org>
3084
3085 * Makefile.in: Remove LIBLZO and enable_lzo.
3086 * conf/i386-pc.rmk: Remove lzo support.
3087 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
3088 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
3089 support.
3090 * kern/i386/pc/lzo1x.S: Remove.
3091 * kern/i386/pc/startup.S: Remove lzo support.
3092 * util/i386/pc/grub-mkimage.c: Likewise.
3093
ac70fa32 30942009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
3097 * fs/xfs.c (grub_xfs_dir): Likewise.
3098 * fs/afs.c (grub_afs_dir): Likewise.
3099 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
3100 (grub_iso9660_open): Likewise.
3101 * fs/jfs.c (grub_jfs_open): Likewise.
3102 * fs/ext2.c (grub_ext2_dir): Likewise.
3103 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
3104 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 3105
eab58da2 31062009-07-16 Pavel Roskin <proski@gnu.org>
3107
d2838156 3108 * configure.ac: Never add "-c" to CFLAGS.
3109
55c70904 3110 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
3111
43e6200c 3112 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
3113 grub_cv_cc_efiemu should be used.
3114
ce7a733d 3115 * configure.ac: Typo fixes.
3116
eab58da2 3117 * kern/mm.c (grub_zalloc): New function.
3118 (grub_debug_zalloc): Likewise.
3119 * include/grub/mm.h: Declare grub_zalloc() and
3120 grub_debug_zalloc().
3121 * util/misc.c (grub_zalloc): New function.
3122 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
3123 instead of grub_malloc(), remove unneeded initializations.
3124 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
3125 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
3126 * commands/parttool.c (grub_cmd_parttool): Likewise.
3127 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
3128 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
3129 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
3130 * disk/usbms.c (grub_usbms_finddevs): Likewise.
3131 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
3132 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
3133 (grub_cmd_efiemu_pnvram): Likewise.
3134 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
3135 * fs/iso9660.c (grub_iso9660_mount): Likewise.
3136 (grub_iso9660_iterate_dir): Likewise.
3137 * fs/jfs.c (grub_jfs_opendir): Likewise.
3138 * fs/ntfs.c (list_file): Likewise.
3139 (grub_ntfs_mount): Likewise.
3140 * kern/disk.c (grub_disk_open): Likewise.
3141 * kern/dl.c (grub_dl_load_core): Likewise.
3142 * kern/elf.c (grub_elf_file): Likewise.
3143 * kern/env.c (grub_env_context_open): Likewise.
3144 (grub_env_set): Likewise.
3145 (grub_env_set_data_slot): Likewise.
3146 * kern/file.c (grub_file_open): Likewise.
3147 * kern/fs.c (grub_fs_blocklist_open): Likewise.
3148 * loader/i386/multiboot.c (grub_module): Likewise.
3149 * loader/xnu.c (grub_xnu_create_key): Likewise.
3150 (grub_xnu_create_value): Likewise.
3151 * normal/main.c (grub_normal_add_menu_entry): Likewise.
3152 (read_config_file): Likewise.
3153 * normal/menu_entry.c (make_screen): Likewise.
3154 * partmap/sun.c (sun_partition_map_iterate): Likewise.
3155 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
3156 * script/sh/script.c (grub_script_parse): Likewise.
3157 * video/bitmap.c (grub_video_bitmap_create): Likewise.
3158 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
3159 * video/readers/png.c (grub_png_output_byte): Likewise.
3160 (grub_video_reader_png): Likewise.
3161
830afef7 31622009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 3163
3164 Enable all targets that can be built by default
3165
830afef7 3166 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 3167 grub-mkfont and grub-fstest if they can be built
3168
ee293aee 31692009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 Fix hang and segmentation fault in grub-emu-usb
3172
3173 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
3174 * util/usb.c (grub_libusb_devices): likewise
3175 (grub_libusb_init): rename to ...
3176 (GRUB_MOD_INIT (libusb)):...this
3177 (grub_libusb_fini): rename to ..
3178 (GRUB_MOD_FINI (libusb)):...this
3179 * disk/usbms.c (grub_usbms_transfer): fix retry logic
3180 * include/grub/disk.h (grub_raid_init): removed, it's useless
3181 (grub_raid_fini): likewise
3182 (grub_lvm_init): likewise
3183 (grub_lvm_fini): likewise
3184 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
3185 by grub_init_all
3186
94414221 31872009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 Fix libusb
3190
3191 * Makefile.in (LIBUSB): new macro
3192 * genmk.rb (Utility/print_tail): new method
3193 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
3194 (top level): call util.print_tail at the end.
3195
59ade63d 31962009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 Make FreeBSD accept zpool.cache
3199
3200 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
3201 type is /boot/zfs/zpool.cache
3202
a58da8c7 32032009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 Fix 64-bit efiemu
3206
3207 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
3208 correct wrong typedef
3209 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
3210
20591577 32112009-07-15 Pavel Roskin <proski@gnu.org>
3212
560ca572 3213 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
3214 * kern/disk.c (struct grub_disk_cache): Likewise.
3215
e8e8e4fd 3216 * commands/probe.c (options): Typo fix.
3217
fde24e10 3218 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
3219 Increase to 0x5a to accommodate FAT32. Adjust other offsets
3220 accordingly.
3221 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
3222
379c54c1 3223 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
3224 the end of "Error" to make the message more readable.
3225
7bd8f5bf 3226 * boot/i386/pc/boot.S (kernel_segment): Remove.
3227 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
3228 for destination.
3229
40b132c5 3230 * boot/i386/pc/boot.S (boot_version): Remove.
3231 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
3232 Remove.
3233
20591577 3234 * include/grub/i386/pc/boot.h: Sort all offsets.
3235 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
3236 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
3237 * boot/i386/pc/boot.S: Assert location of every offset listed in
3238 include/grub/i386/pc/boot.h.
3239
2df32b2c 32402009-07-13 Pavel Roskin <proski@gnu.org>
3241
44b5d879 3242 * include/grub/i386/coreboot/machine.h: Rename
3243 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
3244 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
3245 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
3246
17dc3751 3247 * kern/dl.c: Force native word size to suppress warnings when
3248 compiling grub-emu.
3249
2df32b2c 3250 * kern/device.c (grub_device_iterate): Change struct part_ent to
3251 hold the name, not a pointer to it. Use one grub_malloc() per
3252 partition, not two. Free partition_name if grub_malloc() fails.
3253 Set ents to NULL only before grub_partition_iterate() is called.
3254
75c59f59 32552009-07-11 Bean <bean123ch@gmail.com>
3256
3257 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
3258 childname.
3259
0ae1bf88 32602009-07-10 Bean <bean123ch@gmail.com>
32612009-07-10 Robert Millan <rmh.grub@aybabtu.com>
3262
3263 * kern/ieee1275/openfw.c (grub_children_iterate)
3264 (grub_devalias_iterate): Fix size evaluation for property or path
3265 strings, which was broken since r2132.
3266
8279cade 32672009-07-07 Pavel Roskin <proski@gnu.org>
3268
7d8a52d3 3269 * commands/search.c (search_file): Merge into ...
3270 (search_fs): ... this. Accept search type as argument.
3271 (grub_cmd_search): Pass search type to search_fs().
3272
25f9a05a 3273 * include/grub/util/console.h: New file.
3274 * util/console.c: Use it instead of grub/machine/console.h.
3275 * util/grub-emu.c: Likewise.
3276
8279cade 3277 * lib/arg.c (find_long_option): Remove.
3278 (find_long): Add `len' argument, make `s' const char *.
3279 (grub_arg_parse): Parse long options in place, not in a
3280 temporary buffer.
3281
4a11b60f 32822009-07-06 Pavel Roskin <proski@gnu.org>
3283
99f68041 3284 * commands/search.c (search_fs): Fix potential NULL pointer
3285 dereference.
3286
4a11b60f 3287 * commands/search.c (search_fs): Replace QUID macro with quid_fn
3288 function pointer.
3289
e110f4de 32902009-07-06 Daniel Mierswa <impulze@impulze.org>
3291
3292 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
3293 comparison.
3294
46eeb6a2 32952009-07-05 Pavel Roskin <proski@gnu.org>
3296
bab74958 3297 * include/grub/i386/linux.h (struct linux_kernel_params):
3298 Restore padding3, it's still needed.
3299
46eeb6a2 3300 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
3301 FreeBSD.
3302 * util/osdetect.lua: Likewise.
3303
b4a1dc79 33042009-07-05 Bean <bean123ch@gmail.com>
3305
3306 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
3307
3308 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
3309 (grub_lua_getenv): Likewise.
3310 (grub_lua_setenv): Likewise.
3311 (save_errno): New function.
3312 (push_result): Likewise.
3313 (grub_lua_enum_device): Likewise.
3314 (grub_lua_enum_file): Likewise.
3315 (grub_lua_file_open): Likewise.
3316 (grub_lua_file_close): Likewise.
3317 (grub_lua_file_seek): Likewise.
3318 (grub_lua_file_read): Likewise.
3319 (grub_lua_file_getline): Likewise.
3320 (grub_lua_file_getsize): Likewise.
3321 (grub_lua_file_getpos): Likewise.
3322 (grub_lua_file_eof): Likewise.
3323 (grub_lua_file_exist): Likewise.
3324 (grub_lua_add_menu): Likewise.
3325
3326 * script/lua/grub_lua.h (isupper): New inline function.
3327 (islower): Likewise.
3328 (ispunct): Likewise.
3329 (isxdigit): Likewise.
3330 (strcspn): Change to normal function.
3331 (strpbkr): New function declaration.
3332 (memchr): Likewise.
3333
3334 * script/lua/grub_main.c (scan_str): New function.
3335 (strcspn): Likewise.
3336 (strpbrk): Likewise.
3337 (memchr): Likewise.
3338
3339 * script/lua/linit.c (lualibs): Enable the string library.
3340
3341 * util/osdetect.lua: New file.
3342
2da92295 33432009-07-04 Robert Millan <rmh.grub@aybabtu.com>
3344
3345 * include/grub/i386/linux.h (struct linux_kernel_params): Add
3346 `capabilities' member.
3347
b2582ec9 33482009-07-02 Pavel Roskin <proski@gnu.org>
3349
3350 * genparttoollist.sh: Add missing newline at the end.
3351
32622956 33522009-07-01 Pavel Roskin <proski@gnu.org>
3353
87a7339e 3354 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
3355
d23af54e 3356 * util/hostdisk.c (open_device): Remove `const' from
3357 `sysctl_size', as sysctlbyname() can change it (in this case it
3358 doesn't actually happen).
3359
c94b18a9 3360 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
3361 using signed long int constants.
3362
c6cd3ef0 3363 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
3364 constant to avoid a warning on FreeBSD.
3365
0df63420 3366 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
3367 where it's needed.
3368
999577f1 3369 * Makefile.in: Install include/grub/machine symlink.
3370
6f41557f 3371 * Makefile.in: When installing symlinks, use "cp -fR", which
3372 works on FreeBSD and MacOSX.
3373 From Yves Blusseau <cl7m42e02@sneakemail.com>
3374
c8d22988 3375 * kern/dl.c (grub_dl_resolve_symbol): Make static.
3376 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
3377
1b96e952 3378 * util/misc.c: Move grub_reboot() and grub_halt() ...
3379 * util/grub-emu.c: ... here. Make main_env static.
3380 * include/grub/util/misc.h: Remove main_env.
3381
2ef0084d 3382 * kern/mm.c: Use correct format to print size_t.
3383
32622956 3384 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
3385 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
3386 * kern/powerpc/dl.c: Likewise.
3387 * kern/sparc64/dl.c: Likewise.
3388 * kern/x86_64/dl.c: Likewise.
3389
3f7f0cd0 33902009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3391
3392 Fix grub-emu build on sparc64-ieee1275.
3393
75421ca9 3394 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 3395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
3396
211d06b5 33972009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3398
3399 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
3400 (grub_reboot, grub_halt): New functions.
3401
3402 * util/i386/pc/misc.c: Delete. Update all users.
3403 * util/sparc64/ieee1275/misc.c: Likewise.
3404 * util/powerpc/ieee1275/misc.c: Likewise.
3405
aaf53e3c 34062009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3407
3408 * conf/i386.rmk (setjmp_mod_SOURCES)
3409 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
3410 * conf/common.rmk (setjmp_mod_SOURCES)
3411 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
3412 to use $(target_cpu).
3413 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
3414 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
3415 * conf/powerpc-ieee1275.rmk: Likewise.
3416 * conf/sparc64-ieee1275.rmk: Likewise.
3417
3418 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
3419 $(target_cpu) for kern/$(target_cpu)/dl.c.
3420 * conf/i386-efi.rmk: Likewise.
3421 * conf/i386-ieee1275.rmk: Likewise.
3422 * conf/x86_64-efi.rmk: Likewise.
3423 * conf/i386-coreboot.rmk: Likewise.
3424 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
3425 $(target_cpu) for kern/$(target_cpu)/dl.c and for
3426 kern/$(target_cpu)/cache.S.
3427 * conf/sparc64-ieee1275.rmk: Likewise.
3428
a337130b 34292009-07-01 Robert Millan <rmh.grub@aybabtu.com>
3430
3431 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
3432 type to `grub_uint8_t', and adjust `padding9' accordingly.
3433
c6fe4d53 34342009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3435
b09db61d 3436 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
3437
c6fe4d53 3438 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
3439 assembly in final jump, using register constraints.
3440
b09db61d 3441 (grub_linux_boot): For text mode, initialize `have_vga' using
3442 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
3443
3444 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
3445 right before the final jump.
3446
3447 Set `video_mode' to 0x3.
3448
3449 Document initialization of `video_page', `video_mode' and
3450 `video_ega_bx'.
3451
28333ad0 34522009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3453
3454 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
3455 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 3456 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 3457
02164e1b 34582009-06-29 Robert Millan <rmh.grub@aybabtu.com>
3459
3460 Fix build on Debian / sparc.
3461
3462 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
3463
18b6c557 34642009-06-28 Pavel Roskin <proski@gnu.org>
3465
85f2aab6 3466 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
3467 fix a warning.
3468
18b6c557 3469 * util/grub.d/10_linux.in: Match SUSE style initrd names.
3470
ad760f81 34712009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3472
3473 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
3474 `err'.
3475
87a4623b 34762009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3477
3478 Revert r2338.
3479
3480 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
3481 file can't be opened. grub_file_open() is already supposed to set
75421ca9 3482 grub_errno / grub_errmsg appropriately.
87a4623b 3483 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3484
8231fb77 34852009-06-27 Pavel Roskin <proski@gnu.org>
34862009-06-27 Robert Millan <rmh.grub@aybabtu.com>
3487
3488 * include/grub/dl.h: Include grub/elf.h.
3489 (struct grub_dl): Add symtab field.
3490 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
3491 GRUB_MODULES_MACHINE_READONLY.
3492 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
3493 of the header for read-only modules.
3494 (grub_dl_unload): Free mod->symtab for read-only modules.
3495 * kern/i386/dl.c: Use mod->symtab.
3496 * kern/powerpc/dl.c: Likewise.
3497 * kern/sparc64/dl.c: Likewise.
3498 * kern/x86_64/dl.c: Likewise.
3499
3500 * conf/i386-qemu.rmk: New file.
3501 * kern/i386/qemu/startup.S: Likewise.
3502 * kern/i386/qemu/mmap.c: Likewise.
3503 * boot/i386/qemu/boot.S: Likewise.
3504 * include/grub/i386/qemu/time.h: Likewise.
3505 * include/grub/i386/qemu/serial.h: Likewise.
3506 * include/grub/i386/qemu/kernel.h: Likewise.
3507 * include/grub/i386/qemu/console.h: Likewise.
3508 * include/grub/i386/qemu/boot.h: Likewise.
3509 * include/grub/i386/qemu/init.h: Likewise.
3510 * include/grub/i386/qemu/machine.h: Likewise.
3511 * include/grub/i386/qemu/loader.h: Likewise.
3512 * include/grub/i386/qemu/memory.h: Likewise.
3513
3514 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
3515 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
3516 [qemu] (pkglib_IMAGES): Add `boot.img'.
3517 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
3518 [qemu] (boot_img_FORMAT): New variables.
3519 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
3520 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
3521 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
3522 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3523 [qemu] (kernel_img_FORMAT): New variables.
3524
3525 * configure.ac: Recognise `i386-qemu'.
3526
3527 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
3528 (for no compression).
3529 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
3530 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
3531 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
3532 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
3533 ifdefs).
3534
97fe384e 35352009-06-27 Pavel Roskin <proski@gnu.org>
3536
3537 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
3538 read.
3539 * efiemu/prepare32.c: Likewise.
3540 * efiemu/prepare64.c: Likewise.
3541
c402ab17 35422009-06-26 Pavel Roskin <proski@gnu.org>
3543
3544 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
3545 * include/grub/elf.h: Define symbols without "32" or "64" based
3546 on GRUB_TARGET_WORDSIZE.
3547 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
3548 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
3549 ELF definitions.
3550 * efiemu/loadcore64.c: Likewise.
3551 * loader/i386/bsd32.c: Likewise.
3552 * loader/i386/bsd64.c: Likewise.
3553 * kern/dl.c: Remove own ELF definitions.
3554 * util/i386/efi/grub-mkimage.c: Likewise.
3555
9bbdfd4d 35562009-06-23 Robert Millan <rmh.grub@aybabtu.com>
3557
3558 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
3559 segment 0x0 unconditionally, because the reference generated by
3560 GAS is an absolute address.
3561
a42ce6e9 35622009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3563
3564 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
3565 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
3566
c952cf92 35672009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3568
3569 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
3570 indexes. Check for -f explicitly.
cc3752ad 3571 (search_file): Improve error message.
3572 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 3573
132a0a59 35742009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3575
3576 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
3577 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
3578
387a140c 35792009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3580
3581 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
3582 * conf/i386-ieee1275.rmk: Likewise.
3583 * conf/i386-coreboot.rmk: Likewise.
3584
3585 * kern/i386/pc/startup.S (grub_stop): Remove function.
3586 * kern/i386/ieee1275/startup.S: Likewise.
3587 * kern/i386/coreboot/startup.S: Likewise.
3588 * kern/i386/misc.S (grub_stop): New function.
3589
41da9665 35902009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3591
3592 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
3593 * kern/i386/realmode.S (real_to_prot): ... to here.
3594
bf337234 35952009-06-22 Robert Millan <rmh.grub@aybabtu.com>
3596
3597 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
3598 with `kernel.img'.
3599 (kernel_elf_SOURCES): Rename to ...
3600 (kernel_img_SOURCES): ... this.
3601 (kernel_elf_HEADERS): Rename to ...
3602 (kernel_img_HEADERS): ... this. Update all users.
3603 (kernel_elf_ASFLAGS): Rename to ...
3604 (kernel_img_ASFLAGS): ... this.
3605 (kernel_elf_CFLAGS): Rename to ...
3606 (kernel_img_CFLAGS): ... this.
3607 (kernel_elf_LDFLAGS): Rename to ...
3608 (kernel_img_LDFLAGS): ... this.
3609 * conf/i386-coreboot.rmk: Likewise.
3610 * conf/powerpc-ieee1275.rmk: Likewise.
3611
3612 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
3613 with "kernel.img".
3614
f52196ff 36152009-06-21 Pavel Roskin <proski@gnu.org>
3616
c3cee413 3617 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
3618 to match nested functions.
3619 * loader/sparc64/ieee1275/linux.c: Likewise.
3620
f52196ff 3621 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
3622
58750afc 36232009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3624
3625 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
3626 all i386 platforms.
3627
15355c7d 36282009-06-21 Robert Millan <rmh.grub@aybabtu.com>
3629
3630 Fix asm file handling on ELF, and remove workarounds.
3631
3632 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 3633 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 3634 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
3635 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
3636
3f3ec72b 36372009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 Load BSD ELF modules
3640
3641 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
3642 and loader/i386/bsd64.c
3643 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
3644 (FREEBSD_MODTYPE_ELF_MODULE): New definition
3645 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
3646 (grub_freebsd_load_elfmodule32): New declaration
3647 (grub_freebsd_load_elfmoduleobj64): Likewise
3648 (grub_freebsd_load_elf_meta32): Likewise
3649 (grub_freebsd_load_elf_meta64): Likewise
3650 (grub_freebsd_add_meta): Likewise
3651 (grub_freebsd_add_meta_module): Likewise
3652 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
3653 (grub_freebsd_add_meta_module): Likewise and move module-specific
3654 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
3655 (grub_cmd_freebsd): Add elf-kernel specific parts
3656 based on grub_freebsd_add_meta_module
3657 (grub_cmd_freebsd_module): Add type parsing moved from
3658 grub_freebsd_add_meta_module
3659 (grub_cmd_freebsd_module_elf): New function
3660 (cmd_freebsd_module_elf): New variable
3661 (GRUB_MOD_INIT): Register freebsd_module_elf
3662 * loader/i386/bsd32.c: New file
3663 * loader/i386/bsd64.c: Likewise
3664 * loader/i386/bsdXX.c: Likewise
3665 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
3666 (grub_elf64_load): Likewise
3667 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
3668 All users updated
3669 (grub_elf64_load_hook_t): Likewise
3670
0db15301 36712009-06-21 Colin Watson <cjwatson@ubuntu.com>
3672
3673 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
3674 variable.
3675 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
3676 don't write a menu entry for recovery mode.
3677
546796c1 36782009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3679
3680 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
3681 after it's no longer needed.
3682
cd7310d5 36832009-06-20 Robert Millan <rmh.grub@aybabtu.com>
3684
3685 * include/grub/i386/loader.h (grub_linux_prot_size)
3686 (grub_linux_tmp_addr, grub_linux_real_addr)
3687 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
3688 GRUB_MACHINE_PCBIOS.
3689 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
3690 common grub_util_info() call to ...
3691 (generate_image): ... here.
3692 Fix use of uninitialized memory, comparison of signed with
3693 unsigned integers and memory leak.
3694 Remove bogus module address message.
3695
ab32d3b5 36962009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
3699 grub_raid_register
3700 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
3701
024ef597 37022009-06-19 Pavel Roskin <proski@gnu.org>
3703
3704 * configure.ac: Remove stray AC_MSG_CHECKING.
3705
3ac72b51 37062009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 3709
e14cd814 37102009-06-18 Pavel Roskin <proski@gnu.org>
3711
3712 * conf/common.rmk: Add fs_file.mod.
3713 * disk/fs_file.c: New file.
3714 * include/grub/disk.h (enum grub_disk_dev_id): Add
3715 GRUB_DISK_DEVICE_FILE_ID.
3716
26586d98 37172009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3718
3719 Fix build with Apple's toolchain. Part 2
3720
3721 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
3722 a fake start
3723
26de2bcd 37242009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 Fix build with Apple's toolchain. Part 1
3727
3728 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
3729 for long calls
3730 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 3731 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 3732 Apple's toolchain
3733
09b3490b 37342009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 Fix warnings
3737
3738 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
3739 (decomp_block): initialize ch
3740 use grub_memcpy instead of memcpy
3741
c22a006a 37422009-06-17 Pavel Roskin <proski@gnu.org>
3743
d3638678 3744 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
3745 version, use declarations needed to use vga_text as the startup
3746 console.
3747
c22a006a 3748 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
3749 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
3750 the kernel.
3751 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
3752 and grub_at_keyboard_fini(), it's done on module load and
3753 unload.
3754
05b129e0 37552009-06-17 Felix Zielcke <fzielcke@z-51.de>
3756
3757 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
3758 file can't be found.
3759 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
3760
cf24ed9e 37612009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 Fix newline handling
3764
3765 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 3766 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 3767 (grub_script_yylex): don't segfault on unterminated script
3768 newline terminates command and variable
3769
74aa8e4b 37702009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3771
3772 avoid double grub_adjust_range call. Bug reported by David Simner
3773
3774 * kern/disk.c (grub_disk_write): change to raw disk access before
3775 calling disk_read
3776
1bd265f3 37772009-06-17 Colin Watson <cjwatson@ubuntu.com>
3778
3779 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
3780 spaces, for the benefit of help2man.
3781 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3782
a2d08c06 37832009-06-16 Pavel Roskin <proski@gnu.org>
3784
3785 * kern/i386/halt.c: Include grub/machine/init.h.
3786 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
3787
b97bcb19 37882009-06-16 Felix Zielcke <fzielcke@z-51.de>
3789
3790 * util/grub.d/30_os-prober.in: Use ${root} in the generated
3791 drivemap menuentry.
3792
0644f96c 37932009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
3794
3795 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
3796 `echo' command.
3797
3ef17a2e 37982009-06-16 Pavel Roskin <proski@gnu.org>
3799
3800 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
3801 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
3802 save %dx, we only need %dl and we never change it.
3803 * boot/i386/pc/cdboot.S: Don't set the root drive.
3804 * boot/i386/pc/pxeboot.S: Likewise.
3805 * include/grub/i386/pc/boot.h: Remove
3806 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
3807 GRUB_BOOT_MACHINE_DRIVE_CHECK.
3808 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
3809 * kern/i386/pc/init.c (make_install_device): Remove references
3810 to grub_root_drive.
3811 * kern/i386/pc/startup.S: Likewise.
3812 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
3813
693fe637 38142009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 xnu_uuid command
3817
3818 * commands/xnu_uuid.c: new file
3819 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
3820 (xnu_uuid_mod_SOURCES): new variable
3821 (xnu_uuid_mod_CFLAGS): likewise
3822 (xnu_uuid_mod_LDFLAGS): likewise
3823 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
3824 * conf/i386-ieee1275.rmk: likewise
3825 * conf/i386-pc.rmk: likewise
3826 * conf/powerpc-ieee1275.rmk: likewise
3827 * conf/sparc64-ieee1275.rmk: likewise
3828 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
3829
c9da87d0 38302009-06-16 Pavel Roskin <proski@gnu.org>
3831
3832 * configure.ac: Avoid '==' in test command, it's not portable.
3833
9c6f4596 38342009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 Probe command
3837
3838 * commands/probe.c: new file
3839 * conf/common.rmk (pkglib_MODULES): add probe.mod
3840 (probe_mod_SOURCES): new variable
3841 (probe_mod_CFLAGS): likewise
3842 (probe_mod_LDFLAGS): likewise
3843 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
3844 * conf/i386-ieee1275.rmk: likewise
3845 * conf/i386-pc.rmk: likewise
3846 * conf/powerpc-ieee1275.rmk: likewise
3847 * conf/sparc64-ieee1275.rmk: likewise
3848
70b7f9fd 38492009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 Fix handling of string like \"hello\" and "a
3852 b"
3853
3854 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
3855 (grub_script_yylex): fix parsing of quoting, escaping and newline
3856
71c79a6b 38572009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3858
dd74360c 3859 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 3860 handling
dd74360c 3861
0644f96c 38622009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 3863
3864 * util/grub-mkconfig.in: Fix parsing of --output option.
3865
e40893c3 38662009-06-12 Pavel Roskin <proski@gnu.org>
3867
3868 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
3869 genmk.rb don't need to be generated or installed.
3870
3a1acfe2 38712009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3872
3873 * commands/i386/pc/drivemap_int13h.S: add more comments
3874
3a4575d4 38752009-06-11 Pavel Roskin <proski@gnu.org>
3876
0658e928 3877 * Makefile.in (uninstall): Uninstall manuals.
3878
ca0388f0 3879 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
3880 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
3881 and update-grub_lib in two places.
3882 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
3883
e3b27c39 3884 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
3885 a compiler warning.
3886
3a4575d4 3887 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
3888 `entry_lo' to fix variable shadowing.
3889
af1f4f55 38902009-06-11 Christian Franke <franke@computer.org>
3891
3892 * kern/misc.c (__enable_execute_stack): Add missing return type
3893 to prevent gcc warning.
3894
5225e649 38952009-06-11 Felix Zielcke <fzielcke@z-51.de>
3896
3897 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
3898
7d83bd47 38992009-06-11 Pavel Roskin <proski@gnu.org>
3900
c1cb63ba 3901 * Makefile.in: Don't rely on any scripts being executable.
3902 Always use $(SHELL) to run shell scripts.
3903
7d83bd47 3904 * configure.ac: Always define ___main if using -nostdlib. This
3905 fixes tests on Cygwin.
3906
948f48e7 39072009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
3908
3909 UDF fix
3910
7d83bd47 3911 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 3912 is in bytes and not in blocks
7d83bd47 3913
8ada9bc1 39142009-06-11 Pavel Roskin <proski@gnu.org>
3915
3916 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
3917 warning.
3918
25ad2323 39192009-06-11 Felix Zielcke <fzielcke@z-51.de>
3920
3921 * util/grub.d/30_os-prober.in: Fix a comment. Source
3922 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
3923 to set the root device. Place drivemap command in the generated
3924 chain entry.
3925
e65acb0c 39262009-06-11 Pavel Roskin <proski@gnu.org>
3927
3928 * configure.ac: Remove host_m32. Issues with 64-bit utilities
3929 have long been resolved.
3930
f285fe2d 39312009-06-11 Colin Watson <cjwatson@ubuntu.com>
3932
bd47b0b5 3933 * util/grub.d/10_linux.in: Capitalise "Linux".
3934
f285fe2d 3935 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
3936
a0c62e4e 39372009-06-11 Pavel Roskin <proski@gnu.org>
3938
b6783cb2 3939 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
3940 fix a gcc warning and ensure that the function won't ever exit.
3941
dde032e8 3942 * kern/i386/ieee1275/init.c: Add missing prototype for
3943 grub_stop_floppy().
3944
22cd079d 3945 * loader/ieee1275/multiboot2.c [__i386__]: Include
3946 grub/cpu/multiboot.h.
3947
a0c62e4e 3948 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
3949 casts to short - they are not portable and cause warnings. Fix
3950 use of uninitialized values in input_buf. Use ARRAY_SIZE.
3951
63963d17 39522009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 Drivemap fixes
3955
3956 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
3957 new function
3958 (grub_get_root_biosnumber_saved): new variable
3959 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
3960 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 3961 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 3962 %dx after the call if necessary
3963 * conf/common.rmk (pkglib_MODULES): remove boot.mod
3964 (boot_mod_SOURCES): remove
3965 (boot_mod_CFLAGS): remove
3966 (boot_mod_LDFLAGS): remove
3967 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
3968 (boot_mod_SOURCES): new variable
3969 (boot_mod_CFLAGS): likewise
3970 (boot_mod_LDFLAGS): likewise
3971 * conf/i386-efi.rmk: likewise
3972 * conf/i386-ieee1275.rmk: likewise
3973 * conf/i386-pc.rmk: likewise
3974 * conf/powerpc-ieee1275.rmk: likewise
3975 * conf/sparc64-ieee1275.rmk: likewise
3976 * conf/x86_64-efi.rmk: likewise
3977 * include/grub/i386/pc/biosnum.h: new file
3978 * lib/i386/pc/biosnum.c: likewise
3979 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
3980 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
3981 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 3982
33abf7ae 39832009-06-10 Pavel Roskin <proski@gnu.org>
3984
5ac35b35 3985 * io/gzio.c (test_header): Don't reuse one buffer for all data.
3986 Use separate variables. Read only the file size at the end, but
3987 not the checksum that we don't use.
3988
5c5215d5 3989 * kern/file.c (grub_file_read): Use void pointer for the buffer.
3990 Adjust all callers.
3991
27d5fef7 3992 * kern/ieee1275/openfw.c: Remove libc includes.
3993 * kern/ieee1275/cmain.c: Likewise.
3994 * include/grub/ieee1275/ieee1275.h: Likewise.
3995
33abf7ae 3996 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
3997 compiler warnings.
3998
19d50c2b 39992009-06-10 Felix Zielcke <fzielcke@z-51.de>
4000
4001 * Makefile.in: Remove all trailing whitespace.
4002 * conf/i386-pc.rmk: Likewise.
4003 * conf/powerpc-ieee1275.rmk: Likewise.
4004 * conf/sparc64-ieee1275.rmk: Likewise.
4005 * docs/grub.texi: Likewise.
4006 * docs/texinfo.tex: Likewise.
4007 * disk/fs_uuid.c: Likewise.
4008 * disk/lvm.c: Likewise.
4009 * disk/scsi.c: Likewise.
4010 * disk/ata.c: Likewise.
4011 * disk/ieee1275/ofdisk.c: Likewise.
4012 * disk/i386/pc/biosdisk.c: Likewise.
4013 * disk/host.c: Likewise.
4014 * disk/raid.c: Likewise.
4015 * disk/efi/efidisk.c: Likewise.
4016 * disk/usbms.c: Likewise.
4017 * disk/memdisk.c: Likewise.
4018 * disk/loopback.c: Likewise.
4019 * kern/powerpc/dl.c: Likewise.
4020 * kern/device.c: Likewise.
4021 * kern/dl.c: Likewise.
4022 * kern/sparc64/dl.c: Likewise.
4023 * kern/ieee1275/ieee1275.c: Likewise.
4024 * kern/term.c: Likewise.
4025 * kern/fs.c: Likewise.
4026 * kern/i386/dl.c: Likewise.
4027 * kern/i386/pc/startup.S: Likewise.
4028 * kern/i386/pc/init.c: Likewise.
4029 * kern/i386/pc/mmap.c: Likewise.
4030 * kern/i386/pc/lzo1x.S: Likewise.
4031 * kern/i386/ieee1275/init.c: Likewise.
4032 * kern/i386/realmode.S: Likewise.
4033 * kern/i386/tsc.c: Likewise.
4034 * kern/partition.c: Likewise.
4035 * kern/corecmd.c: Likewise.
4036 * kern/file.c: Likewise.
4037 * kern/efi/efi.c: Likewise.
4038 * kern/efi/init.c: Likewise.
4039 * kern/efi/mm.c: Likewise.
4040 * kern/main.c: Likewise.
4041 * kern/err.c: Likewise.
4042 * kern/env.c: Likewise.
4043 * kern/disk.c: Likewise.
4044 * kern/generic/millisleep.c: Likewise.
4045 * kern/generic/rtc_get_time_ms.c: Likewise.
4046 * kern/misc.c: Likewise.
4047 * kern/parser.c: Likewise.
4048 * genmk.rb: Likewise.
4049 * configure.ac: Likewise.
4050 * boot/i386/pc/diskboot.S: Likewise.
4051 * boot/i386/pc/pxeboot.S: Likewise.
4052 * boot/i386/pc/boot.S: Likewise.
4053 * boot/i386/pc/lnxboot.S: Likewise.
4054 * boot/i386/pc/cdboot.S: Likewise.
4055 * parttool/pcpart.c: Likewise.
4056 * video/readers/tga.c: Likewise.
4057 * video/video.c: Likewise.
4058 * video/bitmap.c: Likewise.
4059 * lib/envblk.c: Likewise.
4060 * lib/i386/setjmp.S: Likewise.
4061 * fs/xfs.c: Likewise.
4062 * fs/afs.c: Likewise.
4063 * fs/fat.c: Likewise.
4064 * fs/ntfs.c: Likewise.
4065 * fs/udf.c: Likewise.
4066 * fs/affs.c: Likewise.
4067 * fs/iso9660.c: Likewise.
4068 * fs/hfs.c: Likewise.
4069 * fs/fshelp.c: Likewise.
4070 * fs/ext2.c: Likewise.
4071 * fs/jfs.c: Likewise.
4072 * fs/reiserfs.c: Likewise.
4073 * fs/hfsplus.c: Likewise.
4074 * fs/minix.c: Likewise.
4075 * fs/cpio.c: Likewise.
4076 * fs/sfs.c: Likewise.
4077 * fs/ufs.c: Likewise.
4078 * efiemu/prepare.c: Likewise.
4079 * efiemu/loadcore_common.c: Likewise.
4080 * efiemu/runtime/efiemu.sh: Likewise.
4081 * efiemu/runtime/efiemu.S: Likewise.
4082 * efiemu/runtime/efiemu.c: Likewise.
4083 * efiemu/pnvram.c: Likewise.
4084 * efiemu/main.c: Likewise.
4085 * efiemu/i386/pc/cfgtables.c: Likewise.
4086 * efiemu/i386/loadcore64.c: Likewise.
4087 * efiemu/i386/loadcore32.c: Likewise.
4088 * efiemu/loadcore.c: Likewise.
4089 * efiemu/symbols.c: Likewise.
4090 * efiemu/mm.c: Likewise.
4091 * include/grub/autoefi.h: Likewise.
4092 * include/grub/datetime.h: Likewise.
4093 * include/grub/term.h: Likewise.
4094 * include/grub/hfs.h: Likewise.
4095 * include/grub/lvm.h: Likewise.
4096 * include/grub/i386/tsc.h: Likewise.
4097 * include/grub/i386/linux.h: Likewise.
4098 * include/grub/i386/xnu.h: Likewise.
4099 * include/grub/i386/efiemu.h: Likewise.
4100 * include/grub/i386/pc/biosdisk.h: Likewise.
4101 * include/grub/i386/pc/memory.h: Likewise.
4102 * include/grub/i386/pc/vbe.h: Likewise.
4103 * include/grub/parttool.h: Likewise.
4104 * include/grub/video.h: Likewise.
4105 * include/grub/memory.h: Likewise.
4106 * include/grub/fs.h: Likewise.
4107 * include/grub/partition.h: Likewise.
4108 * include/grub/xnu.h: Likewise.
4109 * include/grub/efi/api.h: Likewise.
4110 * include/grub/efi/pe32.h: Likewise.
4111 * include/grub/efi/memory.h: Likewise.
4112 * include/grub/multiboot.h: Likewise.
4113 * include/grub/usbdesc.h: Likewise.
4114 * include/grub/multiboot2.h: Likewise.
4115 * include/grub/acpi.h: Likewise.
4116 * include/grub/efiemu/efiemu.h: Likewise.
4117 * include/grub/disk.h: Likewise.
4118 * include/grub/ieee1275/ieee1275.h: Likewise.
4119 * include/grub/net.h: Likewise.
4120 * include/grub/machoload.h: Likewise.
4121 * include/grub/macho.h: Likewise.
4122 * include/multiboot.h: Likewise.
4123 * genmoddep.awk: Likewise.
4124 * normal/main.c: Likewise.
4125 * normal/menu_entry.c: Likewise.
4126 * normal/menu_viewer.c: Likewise.
4127 * normal/completion.c: Likewise.
4128 * normal/cmdline.c: Likewise.
4129 * normal/misc.c: Likewise.
4130 * normal/datetime.c: Likewise.
4131 * bus/usb/usbtrans.c: Likewise.
4132 * bus/usb/ohci.c: Likewise.
4133 * bus/usb/uhci.c: Likewise.
4134 * bus/usb/usb.c: Likewise.
4135 * mmap/efi/mmap.c: Likewise.
4136 * mmap/i386/pc/mmap_helper.S: Likewise.
4137 * mmap/i386/pc/mmap.c: Likewise.
4138 * mmap/i386/mmap.c: Likewise.
4139 * mmap/i386/uppermem.c: Likewise.
4140 * mmap/mmap.c: Likewise.
4141 * commands/acpi.c: Likewise.
4142 * commands/echo.c: Likewise.
4143 * commands/blocklist.c: Likewise.
4144 * commands/loadenv.c: Likewise.
4145 * commands/usbtest.c: Likewise.
4146 * commands/boot.c: Likewise.
4147 * commands/parttool.c: Likewise.
4148 * commands/search.c: Likewise.
4149 * commands/cat.c: Likewise.
4150 * commands/i386/pc/play.c: Likewise.
4151 * commands/i386/pc/drivemap.c: Likewise.
4152 * commands/i386/pc/vbeinfo.c: Likewise.
4153 * commands/i386/pc/acpi.c: Likewise.
4154 * commands/i386/pc/vbetest.c: Likewise.
4155 * commands/ls.c: Likewise.
4156 * commands/cmp.c: Likewise.
4157 * commands/test.c: Likewise.
4158 * commands/efi/acpi.c: Likewise.
4159 * commands/gptsync.c: Likewise.
4160 * commands/help.c: Likewise.
4161 * partmap/amiga.c: Likewise.
4162 * partmap/apple.c: Likewise.
4163 * partmap/acorn.c: Likewise.
4164 * partmap/pc.c: Likewise.
4165 * partmap/sun.c: Likewise.
4166 * partmap/gpt.c: Likewise.
4167 * script/sh/lexer.c: Likewise.
4168 * script/sh/function.c: Likewise.
4169 * font/font.c: Likewise.
4170 * font/font_cmd.c: Likewise.
4171 * loader/powerpc/ieee1275/linux.c: Likewise.
4172 * loader/efi/chainloader.c: Likewise.
4173 * loader/multiboot_loader.c: Likewise.
4174 * loader/macho.c: Likewise.
4175 * loader/i386/multiboot.c: Likewise.
4176 * loader/i386/linux.c: Likewise.
4177 * loader/i386/pc/linux.c: Likewise.
4178 * loader/i386/pc/multiboot2.c: Likewise.
4179 * loader/i386/pc/chainloader.c: Likewise.
4180 * loader/i386/pc/xnu.c: Likewise.
4181 * loader/i386/bsd_trampoline.S: Likewise.
4182 * loader/i386/efi/linux.c: Likewise.
4183 * loader/i386/multiboot_elfxx.c: Likewise.
4184 * loader/i386/bsd_helper.S: Likewise.
4185 * loader/i386/bsd.c: Likewise.
4186 * loader/i386/linux_trampoline.S: Likewise.
4187 * loader/i386/xnu_helper.S: Likewise.
4188 * loader/i386/xnu.c: Likewise.
4189 * loader/i386/bsd_pagetable.c: Likewise.
4190 * loader/i386/multiboot_helper.S: Likewise.
4191 * loader/xnu.c: Likewise.
4192 * loader/xnu_resume.c: Likewise.
4193 * io/gzio.c: Likewise.
4194 * term/efi/console.c: Likewise.
4195 * term/terminfo.c: Likewise.
4196 * term/ieee1275/ofconsole.c: Likewise.
4197 * term/i386/pc/serial.c: Likewise.
4198 * term/i386/pc/vesafb.c: Likewise.
4199 * term/i386/pc/vga.c: Likewise.
4200 * term/usb_keyboard.c: Likewise.
4201 * term/gfxterm.c: Likewise.
4202 * aclocal.m4: Likewise.
4203 * util/lvm.c: Likewise.
4204 * util/grub.d/30_os-prober.in: Likewise.
4205 * util/grub.d/10_hurd.in: Likewise.
4206 * util/console.c: Likewise.
4207 * util/grub-macho2img.c: Likewise.
4208 * util/grub-probe.c: Likewise.
4209 * util/hostfs.c: Likewise.
4210 * util/i386/pc/grub-mkimage.c: Likewise.
4211 * util/i386/pc/grub-setup.c: Likewise.
4212 * util/i386/efi/grub-mkimage.c: Likewise.
4213 * util/grub-mkconfig.in: Likewise.
4214 * util/raid.c: Likewise.
4215 * util/resolve.c: Likewise.
4216 * util/grub-mkdevicemap.c: Likewise.
4217 * util/grub-emu.c: Likewise.
4218 * util/getroot.c: Likewise.
4219 * util/hostdisk.c: Likewise.
4220 * util/usb.c: Likewise.
4221 * util/grub-editenv.c: Likewise.
4222 * util/misc.c: Likewise.
4223
d2d49665 42242009-06-10 Felix Zielcke <fzielcke@z-51.de>
4225
4226 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
4227 `genparttoollist.sh'.
4228 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
4229 Add `*.sh' to the list find searches for and change `mdate.sh'
4230 to `mdate-sh'.
4231
fe052e37 42322009-06-10 Pavel Roskin <proski@gnu.org>
4233
2763ac18 4234 * include/grub/multiboot2.h: Provide compatibility defines for
4235 multiboot2.h.
4236 * include/multiboot2.h: Include stdint.h only if needed, using
4237 angle brackets.
4238 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
4239 grub/multiboot2.h.
4240 * loader/ieee1275/multiboot2.c: Likewise.
4241 * loader/multiboot2.c: Likewise.
4242 * loader/multiboot_loader.c: Likewise.
4243
437e6adc 4244 * configure.ac: Use -nostdlib when probing for the target. It
4245 should not be required to have libc for the target.
4246
06a6836c 4247 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
4248 they fail without libc headers for the target.
4249 * include/grub/powerpc/libgcc.h: Use weak attribute for all
4250 exports.
4251 * include/grub/sparc64/libgcc.h: Likewise. Don't use
4252 preprocessor conditionals.
4253
fe052e37 4254 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
4255 build system doesn't need to be aware of the tar.c internals.
4256
afd22553 42572009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 4258
afd22553 4259 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 4260
6b787c4f 42612009-06-09 Robert Millan <rmh.grub@aybabtu.com>
4262
4263 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
4264 disk limit to 26 for IDE, Virtio, Xen and SCSI.
4265
42662009-06-09 Felix Zielcke <fzielcke@z-51.de>
4267
4268 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 4269 aren't available if ata.mod gets used.
6b787c4f 4270
473d1e45 42712009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 4272
473d1e45 4273 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 4274 initialising controller.
473d1e45 4275 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 4276
255a27d4 42772009-06-08 Felix Zielcke <fzielcke@z-51.de>
4278
4279 * util/i386/pc/grub-install.in: Add a parameter --disk-module
4280 to choose between ata and biosdisk module on i386-pc.
4281
473d1e45 42822009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 4283
d55842d8 4284 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
4285 Subclass and Programming Interface fields in terms of the 3 byte
4286 Class Code register.
4287 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
4288
fa5db0b1 4289 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
4290 interface is OHCI. Add grub_dprintf for symmetry with
4291 bus/usb/uhci.c.
4292 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
4293 interface is UHCI. Add interf variable for programming
4294 interface. Print interface with class/subclass.
4295
c0947beb 4296 * bus/usb/ohci.c: Set interf with correct field.
4297
69da8877 4298 * bus/usb/uhci.c: Remove unneeded doubled lines.
4299 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
4300 Remove whitespace inside comment.
4301
9e172e30 43022009-06-08 Robert Millan <rmh.grub@aybabtu.com>
4303
4304 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
4305 as fallback an equivalent option without depth.
4306
de65ee2b 43072009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 Not fail if unable to retrieve C/H/S on LBA disks
4310
473d1e45 4311 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 4312 if unable to retrieve C/H/S on LBA disks
4313
b57ea2c9 43142009-06-08 Pavel Roskin <proski@gnu.org>
4315
4316 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
4317 about aliasing.
4318
af361263 43192009-06-08 Felix Zielcke <fzielcke@z-51.de>
4320
4321 * Makefile.in (uninstall): Remove all $lib_DATA files.
4322
4c9ec6b3 43232009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 Bugfix: install on partitionless device
4326
4327 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
4328 is a whole disk
4329
e76fc924 43302009-06-08 Felix Zielcke <fzielcke@z-51.de>
4331
4332 * Makefile.in (uninstall): Remove all $include_DATA files.
4333
ba5a0d05 43342009-06-08 Felix Zielcke <fzielcke@z-51.de>
4335
4336 * commands/true.c: New file. Implement the true and false commands.
4337 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
4338 (true_mod_SOURCES): New variable.
4339 (true_mod_CFLAGS): Likewise.
4340 (true_mod_LDFLAGS): Likewise.
4341
c8048e32 43422009-06-05 Colin D Bennett <colin@gibibit.com>
4343
4344 Optimized font character lookup using binary search instead of linear
4345 search. Fonts now are required to have the character index ordered by
4346 code point.
4347
4348 * font/font.c (load_font_index): Verify that fonts have ordered
4349 character indices.
4350 (find_glyph): Use binary search instead of linear search to find a
4351 character in a font.
4352
408305be 43532009-06-05 Michael Scherer <misc@mandriva.org>
4354
4355 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
4356 uses case sensitive btree.
4357 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
4358 only for case insensitive filesystems.
4359
8ee1e0d9 43602009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
4363 * conf/common.rmk (search_mod_CFLAGS): likewise
4364
a9966eb1 43652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4366
473d1e45 4367 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 4368 compensate a compiler bug
4369
9e7100fb 43702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4371
473d1e45 4372 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 4373 instead of '\b'
473d1e45 4374
ede21d71 43752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 Definitions for creating asm symbols with Apple's CC
4378
4379 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
4380 [APPLE_CC] (VARIABLE): likewise
4381
9dbf7653 43822009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 Disable lnxboot.img when compiled
4385 with Apple's CC
4386
4387 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
4388 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
4389 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
4390 [! APPLE_CC] (CODE_LENG): skip
4391 [! APPLE_CC] (setup_sects): likewise
4392 [! APPLE_CC]: skip filling
473d1e45 4393
e93cdc3d 43942009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 Address in trampolines based on 32-bit registers when compiled
4397 with Apple's CC
4398
473d1e45 4399 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 4400 for addresses
4401 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
4402
6c688477 44032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 Avoid aliases when compiling with Apple's CC for PCBIOS machine
4406
4407 * kern/misc.c [APPLE_CC] (memcpy): new function
4408 [APPLE_CC] (memmove): likewise
4409 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 4410 (memcpy): define alias conditionally on !APPLE_CC
6c688477 4411 (memset): likewise
4412 (abort): likewise
4413 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
4414 APPLE_CC are defined
4415 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
4416 (grub_assert_fail): make prototype conditional
4417
e37ffc5c 44182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
4421
473d1e45 4422 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
4423 grub-macho2img
e37ffc5c 4424 (CLEANFILES): add grub-macho2img
4425 (grub_macho2img_SOURCES): new variable
4426 * kern/i386/pc/startup.S (bss_start): new variable
4427 (bss_end): likewise
4428 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
4429 * util/grub-macho2img.c: new file
4430
cf00df31 44312009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 Use objconv when compiling with Apple's CC
4434
4435 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
4436 (efiemu64.o): likewise
4437 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
4438 when compiling with Apple's CC
4439 (efiemu64_s.o): likewise
4440 * configure.ac: check for objconv when compiling with Apple's CC
4441 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 4442
d119a20c 44432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4444
4445 Define segment as well as section when compiling with
4446 Apple's CC
4447
4448 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
4449 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
4450 (efiemu_convert_pointer): likewise
4451 (efiemu_set_virtual_address_map): likewise
4452 (efiemu_convert_pointer): likewise
4453 (efiemu_getcrc32): likewise
4454 (init_crc32_table): likewise
4455 (reflect): likewise
4456 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
4457 (GRUB_MOD_DEP): likewise
473d1e45 4458
c8600122 44592009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4460
4461 Allow a compilation without -mcmodel=large
4462
4463 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
4464 when compiled without -mcmodel=large
473d1e45 4465 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 4466 without -mcmodel=large
473d1e45 4467 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 4468 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 4469
e8df1d4e 44702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 Remove nested functions in efiemu core
4473
4474 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 4475
cc6c3ac1 44762009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
4479
4480 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
4481 temporary storage
473d1e45 4482 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
4483 using Apple's CC
cc6c3ac1 4484 (grub_cpu_is_tsc_supported): likewise
4485 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 4486
3e325901 44872009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 Absolute addressing through constant with Apple's cc
4490
4491 * kern/i386/pc/startup.S: Define necessary constants
4492 and address through it when using ABS with Apple's CC
4493 * boot/i386/pc/diskboot.S: likewise
4494 * boot/i386/pc/boot.S: likewise
4495 * boot/i386/pc/lnxboot.S: likewise
4496 * boot/i386/pc/cdboot.S: likewise
4497 * mmap/i386/pc/mmap_helper.S: likewise
4498 * commands/i386/pc/drivemap_int13h.S: likewise
4499
2b167a72 45002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4501
4502 Check if compiler is apple cc
4503
4504 * Makefile.in (ASFLAGS): new variable
4505 (TARGET_ASFLAGS): likewise
4506 (TARGET_MODULE_FORMAT): likewise
4507 (TARGET_APPLE_CC): likewise
4508 (OBJCONV): likewise
4509 (TARGET_IMG_CFLAGS): likewise
4510 (TARGET_CPPFLAGS): add includedir
4511 * configure.ac: call grub_apple_cc and grub_apple_target_cc
4512 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
4513 Check for linker script only if compiler isn't Apple's CC
4514 (TARGET_MODULE_FORMAT): set
4515 (TARGET_APPLE_CC): likewise
4516 (TARGET_ASFLAGS): likewise
4517 (ASFLAGS): likewise
4518 Check for objcopy only if compiler isn't Apple's CC
4519 Check for BSS symbol only if compiler isn't Apple's CC
4520 * genmk.rb: adapt nm options if we use Apple's utils
4521 * aclocal.m4 (grub_apple_cc): new test
4522 (grub_apple_target_cc): likewise
473d1e45 4523
fb14123e 45242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 Simplify sed expressions and improve awk
4527
4528 * Makefile.in (install-local): simplify sed expression
4529 * gencmdlist.sh: likewise
4530 * genmoddep.awk: avoid adding module as a dependency of itself
4531
5b889789 45322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 Add missing start symbols
4535
4536 * boot/i386/pc/boot.S: add start
fb14123e 4537 * boot/i386/pc/pxeboot.S: likewise
473d1e45 4538
fd2bf2e3 45392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 4542
4543 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 4544 (relocate_addresses): consider both r_addend and value at offset
4545 (make_mods_section): zerofill modinfo and header
4546 (convert_elf): write prefix here
473d1e45 4547
5389763d 45482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 Use .asciz instead of .string
4551
4552 * i386/pc/diskboot.S: use .asciz instead of .string
4553 * i386/pc/boot.S: likewise
4554 * include/grub/dl.h (GRUB_MOD_DEP): likewise
4555 (GRUB_MOD_NAME): likewise
473d1e45 4556
3eb5ed4e 45572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 gfxpayload support
4560
4561 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
4562 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
4563 (grub_video_setup): remove
4564 (grub_video_set_mode): new prototype
4565 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
4566 (vid_mode): remove
4567 (linux_vesafb_res): compile only on PCBIOS
4568 (grub_linux_boot): support gfxpayload
4569 * loader/i386/pc/xnu.c (video_hook): new function
4570 (grub_xnu_set_video): support gfxpayload
4571 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
4572 (DEFAULT_VIDEO_HEIGHT): likewise
4573 (DEFAULT_VIDEO_FLAGS): likewise
4574 (DEFAULT_VIDEO_MODE): new definition
4575 (video_hook): new function
4576 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 4577 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 4578 loading xnu
4579 * video/video.c (grub_video_setup): removed
473d1e45 4580 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 4581 grub_video_setup
4582
4b0e1143 45832009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 Avoid calling biosdisk in drivemap
4586
4587 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
4588 (revparse_biosdisk): likewise
4589 (list_mappings): derive name from id directly
4590 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 4591
fda6cb98 45922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 Script fixes
4595
4596 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
4597 (grub_lexer_param): add tokenonhold
4598 (grub_script_create_cmdline): remove cmdline. All callers updated
4599 (grub_script_function_create): make functionname
4600 grub_script_arg. All callers updated
4601 (grub_script_execute_argument_to_string): new prototype
4602 * kern/parser.c (state_transitions): reorder
4603 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 4604 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 4605 make global
4606 (grub_script_execute_cmdline): use new format
4607 * script/sh/function.c (grub_script_function_create): make functionname
4608 grub_script_arg. All callers updated
473d1e45 4609 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 4610 (grub_script_yylex): remove
4611 (grub_script_yylex2): renamed to ...
4612 (grub_script_yylex): ...renamed
4613 parse the expressions like a${b}c
4614 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
4615 (GRUB_PARSER_TOKEN_VAR): remove
4616 (GRUB_PARSER_TOKEN_NAME): likewise
4617 ("if"): declare as typeless
4618 ("while"): likewise
4619 ("function"): likewise
4620 ("else"): likewise
4621 ("then"): likewise
4622 ("fi"): likewise
4623 (text): remove
4624 (argument): likewise
4625 (script): accept empty scripts and make exit on error
4626 (arguments): use GRUB_PARSER_TOKEN_ARG
4627 (function): likewise
4628 (command): move error handling to script
4629 (menuentry): move grub_script_lexer_ref before
473d1e45 4630 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 4631 argument. All callers updated
4632
f4448a07 46332009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4634
4635 Prevent GRUB from probing floppies during boot.
4636
4637 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
4638 * commands/search.c (options): Add --no-floppy.
4639 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
4640 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
4641 --no-floppy when searching for UUIDs.
4642
2bf5885a 46432009-06-04 Robert Millan <rmh.grub@aybabtu.com>
4644
4645 Simplify the code duplication in commands/search.c.
4646
4647 * commands/search.c (search_label, search_fs_uuid): Merge into ...
4648 (search_fs): ... this. Update all users.
4649
f6fd460a 46502009-06-03 Felix Zielcke <fzielcke@z-51.de>
4651
4652 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
4653
cbb3c83e 46542009-05-28 Pavel Roskin <proski@gnu.org>
4655
57788cfd 4656 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
4657 Remove the original symlink explicitly.
4658
cbb3c83e 4659 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
4660 just one slash. That's how grub_fshelp_find_file() does it.
4661
cd0d5e30 46622009-05-26 Pavel Roskin <proski@gnu.org>
4663
f0f8bbe2 4664 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
4665 to `str'.
4666
cd0d5e30 4667 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
4668 possibly unused.
4669
8c2cab51 46702009-05-25 Christian Franke <franke@computer.org>
4671
4672 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
4673 register.
4674 (grub_atapi_identify): Add wait after drive select.
4675 (grub_ata_identify): Do more strict status register check before
4676 calling grub_atapi_identify (). Suppress error message if status
4677 register is 0x00 after command failure. Add status register
4678 check after PIO read to avoid bogus identify due to stuck DRQ.
4679 Thanks to Pavel Roskin for testing.
4680 (grub_device_initialize): Remove unsafe status register check.
4681 Thanks to 'phcoder' for problem report and patch.
4682 Prevent sign extension in debug message.
4683
230c0ad6 46842009-05-23 Colin D Bennett <colin@gibibit.com>
4685
4686 Cleaned up `include/grub/normal.h'. Grouped prototypes by
4687 definition file, and functions defined in `normal/menu.c' have had
4688 their prototypes moved to `include/grub/menu.h' for consistency.
4689
4690 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
4691 from normal.h.
4692 (grub_menu_get_entry): Likewise.
4693 (grub_menu_get_timeout): Likewise.
4694 (grub_menu_set_timeout): Likewise.
4695 (grub_menu_execute_entry): Likewise.
4696 (grub_menu_execute_with_fallback): Likewise.
4697 (grub_menu_entry_run): Likewise.
4698
4699 * include/grub/normal.h: Re-ordered and grouped function
4700 prototypes by file that the function is defined in.
4701 (grub_menu_execute_callback): Removed; moved to menu.h.
4702 (grub_menu_get_entry): Likewise.
4703 (grub_menu_get_timeout): Likewise.
4704 (grub_menu_set_timeout): Likewise.
4705 (grub_menu_execute_entry): Likewise.
4706 (grub_menu_execute_with_fallback): Likewise.
4707 (grub_menu_entry_run): Likewise.
4708 (grub_menu_addentry): Renamed from this ...
4709 (grub_normal_add_menu_entry): ... to this.
4710
4711 * normal/main.c (grub_menu_addentry): Renamed from this ...
4712 (grub_normal_add_menu_entry): ... to this.
4713
4714 * script/sh/execute.c (grub_script_execute_menuentry): Update
4715 reference to renamed grub_menu_addentry function.
4716
861f03a5 47172009-05-23 Felix Zielcke <fzielcke@z-51.de>
4718
4719 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
4720
96b1619a 47212009-05-22 Pavel Roskin <proski@gnu.org>
4722
bf6a5fb2 4723 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
4724 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
4725 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
4726 compiling for the i386 targets, but not for the utilities.
4727
96b1619a 4728 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
4729 to grub_uint8_t.
4730 (grub_root_drive): Likewise.
4731 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
4732 remove alignment.
4733 (grub_root_drive): Change size to byte.
4734 (grub_start_addr): Remove.
4735 (grub_end_addr): Likewise.
4736 (grub_apm_bios_info): Likewise.
4737
b729776b 47382009-05-21 Felix Zielcke <fzielcke@z-51.de>
4739
4740 * normal/i386: Remove.
4741 * normal/powerpc: Likewise.
4742 * normal/sparc64: Likewise.
4743 * normal/x86_64: Likewise.
4744
0a15ce80 47452009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 4748 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 4749 * loader/i386/xnu_helper.S: Likewise
d6da58e6 4750
33db9015 47512009-05-18 Colin D Bennett <colin@gibibit.com>
4752
d6da58e6 4753 Display error messages when parsing a Lua statement fails.
4754 Previously, executing a syntactically invalid statement like
4755 ")foo" or "bar;" would silently fail.
33db9015 4756
4757 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 4758 (grub_lua_parse_line): Improved reporting of Lua parser and
4759 execution errors.
33db9015 4760
46422c89 47612009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4762
4763 Remove -Werror which causes build to fail on some systems
4764
4765 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
4766 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
4767 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 4768
22f53a96 47692009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 trampoline for linux on 64-bit platform
4772
18f547ad 4773 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
4774 loader/i386/efi/linux_trampoline.S
4775 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 4776 declaration
d6da58e6 4777 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
4778 here
22f53a96 4779 * loader/i386/linux_trampoline.S: moved here
d6da58e6 4780 * loader/i386/efi/linux.c (allocate_pages): reserve space for
4781 trampoline
22f53a96 4782 (jumpvector): removed
4783 (grub_linux_trampoline_start): new declaration
4784 (grub_linux_trampoline_end): likewise
4785 (grub_linux_boot): use trampoline when on 64-bit platform
4786 * loader/i386/linux.c: likewise
4787
cb5a0f40 47882009-05-16 Pavel Roskin <proski@gnu.org>
4789
4790 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
4791 const to avoid a warning.
4792 (grub_lua_setenv): Likewise.
4793 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
4794 lmsg to fix a warning.
4795
334f2c28 47962009-05-16 Felix Zielcke <fzielcke@z-51.de>
4797
4798 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 4799 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4800 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
4801 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4802 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4803 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
4804 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
4805 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 4806
59e5d3ec 48072009-05-16 Felix Zielcke <fzielcke@z-51.de>
4808
4809 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
4810
9d87a1ba 48112009-05-16 Bean <bean123ch@gmail.com>
4812
4813 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
4814 (lua_mod_SOURCES): New variable.
4815 (lua_mod_CFLAGS): Likewise.
4816 (lua_mod_LDFLAGS): Likewise.
4817
4818 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
4819 (setjmp_mod_SOURCES): New variable.
4820 (setjmp_mod_CFLAGS): Likewise.
4821 (setjmp_LDFLAGS): Likewise.
4822
4823 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
4824 (setjmp_mod_SOURCES): New variable.
4825 (setjmp_mod_CFLAGS): Likewise.
4826 (setjmp_LDFLAGS): Likewise.
4827
4828 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
4829 (setjmp_mod_SOURCES): New variable.
4830 (setjmp_mod_CFLAGS): Likewise.
4831 (setjmp_LDFLAGS): Likewise.
4832
4833 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
4834 (setjmp_mod_SOURCES): New variable.
4835 (setjmp_mod_CFLAGS): Likewise.
4836 (setjmp_LDFLAGS): Likewise.
4837
4838 * normal/i386/setjmp.S: Moved from here ...
4839 * lib/i386/setjmp.S: ... Moved here
4840 * normal/x86_64/setjmp.S: Moved from here ...
4841 * lib/x86_64/setjmp.S: ... Moved here
4842 * normal/powerpc/setjmp.S: Moved from here ...
4843 * lib/powerpc/setjmp.S: ... Moved here
4844 * normal/sparc64/setjmp.S: Moved from here ...
4845 * lib/sparc64/setjmp.S: ... Moved here
4846
4847 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
4848 returns_twice in mingw.
4849
4850 * script/lua/grub_lib.c: New file.
4851 * script/lua/grub_lib.h: Likewise.
4852 * script/lua/grub_lua.h: Likewise.
4853 * script/lua/grub_main.c: Likewise.
4854 * script/lua/lapi.c: Likewise.
4855 * script/lua/lapi.h: Likewise.
4856 * script/lua/lauxlib.c: Likewise.
4857 * script/lua/lauxlib.h: Likewise.
4858 * script/lua/lbaselib.c: Likewise.
4859 * script/lua/lcode.c: Likewise.
4860 * script/lua/lcode.h: Likewise.
4861 * script/lua/ldblib.c: Likewise.
4862 * script/lua/ldebug.c: Likewise.
4863 * script/lua/ldebug.h: Likewise.
4864 * script/lua/ldo.c: Likewise.
4865 * script/lua/ldo.h: Likewise.
4866 * script/lua/ldump.c: Likewise.
4867 * script/lua/lfunc.c: Likewise.
4868 * script/lua/lfunc.h: Likewise.
4869 * script/lua/lgc.c: Likewise.
4870 * script/lua/lgc.h: Likewise.
4871 * script/lua/linit.c: Likewise.
4872 * script/lua/liolib.c: Likewise.
4873 * script/lua/llex.c: Likewise.
4874 * script/lua/llex.h: Likewise.
4875 * script/lua/llimits.h: Likewise.
4876 * script/lua/lmathlib.c: Likewise.
4877 * script/lua/lmem.c: Likewise.
4878 * script/lua/lmem.h: Likewise.
4879 * script/lua/loadlib.c: Likewise.
4880 * script/lua/lobject.c: Likewise.
4881 * script/lua/lobject.h: Likewise.
4882 * script/lua/lopcodes.c: Likewise.
4883 * script/lua/lopcodes.h: Likewise.
4884 * script/lua/loslib.c: Likewise.
4885 * script/lua/lparser.c: Likewise.
4886 * script/lua/lparser.h: Likewise.
4887 * script/lua/lstate.c: Likewise.
4888 * script/lua/lstate.h: Likewise.
4889 * script/lua/lstring.c: Likewise.
4890 * script/lua/lstring.h: Likewise.
4891 * script/lua/lstrlib.c: Likewise.
4892 * script/lua/ltable.c: Likewise.
4893 * script/lua/ltable.h: Likewise.
4894 * script/lua/ltablib.c: Likewise.
4895 * script/lua/ltm.c: Likewise.
4896 * script/lua/ltm.h: Likewise.
4897 * script/lua/lua.h: Likewise.
4898 * script/lua/luaconf.h: Likewise.
4899 * script/lua/lualib.h: Likewise.
4900 * script/lua/lundump.c: Likewise.
4901 * script/lua/lundump.h: Likewise.
4902 * script/lua/lvm.c: Likewise.
4903 * script/lua/lvm.h: Likewise.
4904 * script/lua/lzio.c: Likewise.
4905 * script/lua/lzio.h: Likewise.
4906
5e898c9d 49072009-05-16 Bean <bean123ch@gmail.com>
4908
4909 * include/grub/kernel.h (grub_module_header_types): Add type
4910 OBJ_TYPE_CONFIG.
4911
4912 * kern/main.c (grub_load_config): New function.
4913 (grub_main): Call grub_load_config to read boot config.
4914
4915 * grub-mkimage (generate_image): New parameter config_path.
4916 (options): New option --config.
4917 (main): Parse --config option, and pass it to generate_image.
4918
cf353a47 49192009-05-14 Christian Franke <franke@computer.org>
4920
4921 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
4922 This fixes build on Cygwin.
4923
3834887f 49242009-05-14 Pavel Roskin <proski@gnu.org>
4925
4926 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
4927 jump. This saves two bytes, so the typical case of 2 swapped
4928 drives would fit 32 bytes.
4929
8090fc01 49302009-05-13 Pavel Roskin <proski@gnu.org>
4931
ac963883 4932 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
4933 grub_uint32_t to avoid a warning.
4934
8090fc01 4935 * loader/i386/linux.c (allocate_pages): When assigning
4936 real_mode_mem, cast through grub_size_t to fix a warning. The
4937 code already makes sure that the value would fit a pointer.
4938 (grub_linux_setup_video): Cast render_target->data to
4939 grub_size_t to fix a warning.
4940
18f547ad 49412009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 4942
4943 * commands/i386/pc/drivemap.c: New file - implement drivemap
4944 command.
4945 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
4946 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
4947
6f6a8b28 49482009-05-13 Pavel Roskin <proski@gnu.org>
4949
4950 * util/i386/pc/grub-setup.c (setup): Remove unused variable
4951 embedding_area_exists.
4952
15fbf4c4 49532009-05-13 Robert Millan <rmh.grub@aybabtu.com>
4954
4955 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
4956 it easier to understand / work with.
59978c8a 4957 Improve warning messages for cases where there's no embedding area,
4958 or when it is too small (or core.img too large).
15fbf4c4 4959
238e871f 49602009-05-13 Pavel Roskin <proski@gnu.org>
4961
0ab3a9a4 4962 * loader/i386/pc/multiboot2.c: Add necessary includes for
4963 grub_multiboot2_real_boot().
4964
a2c8c5f8 4965 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
4966 PX record is always little-endian. We only need the lower 2
4967 bytes of the mode.
4968
faec96af 4969 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
4970 facilitate code reuse.
4971 (grub_cpio_mount): Use "struct head", not a char buffer. This
4972 fixes a warning reported by gcc 4.4.
4973
238e871f 4974 * kernel/disk.c (grub_disk_read): Use void pointer for the
4975 buffer.
4976 (grub_disk_write): Use const void pointer for the buffer.
4977 Adjust all callers. Remove unnecessary casts.
4978
901d2f0c 49792009-05-10 Robert Millan <rmh.grub@aybabtu.com>
4980
4981 * util/i386/pc/grub-install.in: Update copyright year.
4982
18f547ad 49832009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 4984
4985 gptsync
4986
4987 * commands/gptsync.c: new file
4988 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
4989 (gptsync_mod_SOURCES): new variable
4990 (gptsync_mod_CFLAGS): likewise
4991 (gptsync_mod_LDFLAGS): likewise
18f547ad 4992 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 4993 new definition
4994 (GRUB_PC_PARTITION_TYPE_HFS): likewise
4995 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
4996 * conf/i386-ieee1275.rmk: likewise
4997 * conf/i386-pc.rmk: likewise
4998 * conf/powerpc-ieee1275.rmk: likewise
4999
b4ba690a 50002009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 Fixed grub-emu
5003
5004 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
5005 (grub_dl_ref): likewise
5006
317e1a44 50072009-05-08 Robert Millan <rmh.grub@aybabtu.com>
5008
5009 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
5010 split in two functions (one for msdos and one for gpt).
5011
041b8094 50122009-05-08 Pavel Roskin <proski@gnu.org>
5013
752473c2 5014 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
5015 not modified.
5016
041b8094 5017 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
5018 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
5019 Initialize them with -1. Add sanity check for bad1. Eliminate
5020 nerr variable.
5021
172800ce 50222009-05-08 David S. Miller <davem@davemloft.net>
5023
5024 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
5025
29aa5e81 50262009-05-06 Robert Millan <rmh.grub@aybabtu.com>
5027
5028 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 5029 existence.
29aa5e81 5030
96613b62 50312009-05-05 Felix Zielcke <fzielcke@z-51.de>
5032
5033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 5034 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 5035
eef73c8a 50362009-05-05 David S. Miller <davem@davemloft.net>
5037
5038 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
5039
119494b5 50402009-05-05 Pavel Roskin <proski@gnu.org>
5041
5042 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
5043 of grub_dl_ref() and grub_dl_unref().
5044 * commands/parttool.c: Remove preprocessor conditionals around
5045 grub_dl_ref() and grub_dl_unref().
5046 * fs/affs.c: Likewise.
5047 * fs/afs.c: Likewise.
5048 * fs/cpio.c: Likewise.
5049 * fs/ext2.c: Likewise.
5050 * fs/fat.c: Likewise.
5051 * fs/hfs.c: Likewise.
5052 * fs/hfsplus.c: Likewise.
5053 * fs/iso9660.c: Likewise.
5054 * fs/jfs.c: Likewise.
5055 * fs/minix.c: Likewise.
5056 * fs/ntfs.c: Likewise.
5057 * fs/reiserfs.c: Likewise.
5058 * fs/sfs.c: Likewise.
5059 * fs/udf.c: Likewise.
5060 * fs/ufs.c: Likewise.
5061 * fs/xfs.c: Likewise.
5062 * include/grub/dl.h: Likewise.
5063 * loader/xnu.c: Likewise.
5064
de5fd76e 50652009-05-04 Pavel Roskin <proski@gnu.org>
5066
5067 * commands/acpi.c: Remove unused variable my_mod.
5068 * partmap/amiga.c: Likewise.
5069 * partmap/apple.c: Likewise.
5070 * partmap/gpt.c: Likewise.
5071 * partmap/pc.c: Likewise.
5072 * partmap/sun.c: Likewise.
5073 * term/gfxterm.c: Likewise.
5074 * term/i386/pc/vesafb.c: Likewise.
5075 * term/i386/pc/vga.c: Likewise.
5076
983598ad 50772009-05-04 David S. Miller <davem@davemloft.net>
5078
5079 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
5080 pointer args to grub_ieee1275_get_property().
5081
8aadec43 5082 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
5083
9554b15e 5084 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
5085 devices, and do not traverse down under controller nodes.
5086
67e23c90 5087 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
5088 (grub_ofdisk_open): Use it to un-escape "," characters.
5089 * kern/disk.c (find_part_sep): New.
5090 (grub_disk_open): Use it to find the first non-escaped ','
5091 character in the disk name.
5092 * util/ieee1275/devicemap.c (escape_of_path): New.
5093 (grub_util_emit_devicemap_entry): Use it.
5094 * util/sparc64/ieee1275/grub-install.in: Update script to
5095 strip partition specifiers properly by not triggering on
5096 '\' escaped ',' characters.
5097
74bfdd2f 50982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5099
5100 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
5101 to 0x300.
5102 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
5103 resolutions.
5104 (linux_vesafb_modes): Add a lot of additional modes to the list (based
5105 on documentation from Wikipedia).
5106
4241d2b1 51072009-05-04 Pavel Roskin <proski@gnu.org>
5108
5109 * disk/ata.c: Spelling fixes.
5110 * disk/raid.c: Likewise.
5111 * disk/usbms.c: Likewise.
5112 * disk/dmraid_nvidia.c: Likewise.
5113 * kern/ieee1275/openfw.c: Likewise.
5114 * kern/ieee1275/init.c: Likewise.
5115 * kern/ieee1275/cmain.c: Likewise.
5116 * boot/i386/pc/cdboot.S: Likewise.
5117 * video/readers/png.c: Likewise.
5118 * video/i386/pc/vbe.c: Likewise.
5119 * fs/udf.c: Likewise.
5120 * fs/hfs.c: Likewise.
5121 * fs/reiserfs.c: Likewise.
5122 * efiemu/runtime/efiemu.c: Likewise.
5123 * efiemu/main.c: Likewise.
5124 * efiemu/mm.c: Likewise.
5125 * include/grub/elf.h: Likewise.
5126 * include/grub/xnu.h: Likewise.
5127 * include/grub/usbdesc.h: Likewise.
5128 * include/grub/usb.h: Likewise.
5129 * include/grub/script_sh.h: Likewise.
5130 * include/grub/lib/LzmaEnc.h: Likewise.
5131 * include/grub/efiemu/efiemu.h: Likewise.
5132 * include/grub/command.h: Likewise.
5133 * normal/menu.c: Likewise.
5134 * normal/main.c: Likewise.
5135 * normal/datetime.c: Likewise.
5136 * bus/usb/uhci.c: Likewise.
5137 * mmap/i386/uppermem.c: Likewise.
5138 * mmap/mmap.c: Likewise.
5139 * commands/acpi.c: Likewise.
5140 * commands/test.c: Likewise.
5141 * partmap/apple.c: Likewise.
5142 * font/font.c: Likewise.
5143 * loader/sparc64/ieee1275/linux.c: Likewise.
5144 * loader/macho.c: Likewise.
5145 * loader/i386/bsd_trampoline.S: Likewise.
5146 * loader/i386/bsd.c: Likewise.
5147 * loader/xnu.c: Likewise.
5148 * term/i386/pc/vesafb.c: Likewise.
5149 * term/usb_keyboard.c: Likewise.
5150 * util/resolve.c: Likewise.
5151 * util/getroot.c: Likewise.
5152
0cfc0083 51532009-05-04 Felix Zielcke <fzielcke@z-51.de>
5154
5155 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
5156
7c1d00cd 51572009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5158
5159 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
5160 build error.
5161
b01f0548 51622009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5163
5164 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
5165 parameter only available on BIOS.
5166
ecc3eb22 51672009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 Removed wrong semicolon in declaration
5170
5171 * grub/misc.h (grub_dprintf): remove semicolon
5172
112972a9 51732009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5174
5175 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
5176 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
5177 is done by grub_cmd_linux() now).
5178 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
5179 restore video to text mode.
5180 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
5181 indicates lack of "vga=" parameter. "vga=0" is mapped to
5182 `GRUB_LINUX_VID_MODE_NORMAL'.
5183
afd5c115 51842009-05-04 Felix Zielcke <fzielcke@z-51.de>
5185
5186 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
5187 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
5188 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 5189 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 5190 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
5191 `grub_script.tab.c'.
5192
5193 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5194 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
5195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
5197 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
5198
faa517ce 5199 * Makefile.in: Remove duplicated 2008 in Copyright line.
5200
ae0c0bdc 52012009-05-04 Robert Millan <rmh.grub@aybabtu.com>
5202
473d1e45 5203 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 5204 unconditionally.
5205 * include/grub/util/misc.h (grub_util_warn): New declaration.
5206
5207 * util/i386/pc/grub-install.in: Understand --force and pass it down
5208 to grub-setup.
5209
5210 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
5211 down to setup().
5212 (setup): Improve error messages and add warnings when requested to
5213 install in odd layouts. Refuse to install using blocklists unless
5214 --force was set.
5215
18f547ad 52162009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 5217
5218 * disk/raid.c (grub_raid_scan_device): Improve debug message.
5219
6d260daa 52202009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 Updated copyright year
5223
5224 * fs/hfsplus.c: updated copyright year
18f547ad 5225
69f853f8 52262009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5227
5228 HFS+ UUID
5229
18f547ad 5230 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 5231 in the space previously used by unused3
5232 (grub_hfsplus_uuid): new function
5233 (grub_hfsplus_fs): added uuid field
5234
4c402e73 52352009-05-03 Pavel Roskin <proski@gnu.org>
5236
5237 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
5238 suppress warnings. It's no longer needed.
5239 * disk/host.c: Likewise.
5240 * disk/ata_pthru.c: Likewise.
5241 * disk/loopback.c: Likewise.
5242 * hook/datehook.c: Likewise.
5243 * parttool/pcpart.c: Likewise.
5244 * fs/i386/pc/pxe.c: Likewise.
5245 * fs/ntfscomp.c: Likewise.
5246 * efiemu/main.c: Likewise.
5247 * mmap/mmap.c: Likewise.
5248 * commands/crc.c: Likewise.
5249 * commands/hexdump.c: Likewise.
5250 * commands/hdparm.c: Likewise.
5251 * commands/acpi.c: Likewise.
5252 * commands/echo.c: Likewise.
5253 * commands/minicmd.c: Likewise.
5254 * commands/blocklist.c: Likewise.
5255 * commands/memrw.c: Likewise.
5256 * commands/loadenv.c: Likewise.
5257 * commands/usbtest.c: Likewise.
5258 * commands/lsmmap.c: Likewise.
5259 * commands/boot.c: Likewise.
5260 * commands/parttool.c: Likewise.
5261 * commands/configfile.c: Likewise.
5262 * commands/search.c: Likewise.
5263 * commands/ieee1275/suspend.c: Likewise.
5264 * commands/cat.c: Likewise.
5265 * commands/i386/pc/pxecmd.c: Likewise.
5266 * commands/i386/pc/play.c: Likewise.
5267 * commands/i386/pc/halt.c: Likewise.
5268 * commands/i386/pc/vbeinfo.c: Likewise.
5269 * commands/i386/pc/vbetest.c: Likewise.
5270 * commands/lspci.c: Likewise.
5271 * commands/date.c: Likewise.
5272 * commands/handler.c: Likewise.
5273 * commands/ls.c: Likewise.
5274 * commands/test.c: Likewise.
5275 * commands/cmp.c: Likewise.
5276 * commands/efi/loadbios.c: Likewise.
5277 * commands/efi/fixvideo.c: Likewise.
5278 * commands/halt.c: Likewise.
5279 * commands/help.c: Likewise.
5280 * commands/reboot.c: Likewise.
5281 * hello/hello.c: Likewise.
5282 * script/sh/main.c: Likewise.
5283 * loader/xnu.c: Likewise.
5284 * term/terminfo.c: Likewise.
5285 * term/i386/pc/serial.c: Likewise.
5286 * term/usb_keyboard.c: Likewise.
5287
515b5079 52882009-05-03 David S. Miller <davem@davemloft.net>
5289
5290 * normal/menu.c: Include grub/parser.h
5291
dfc31a22 52922009-05-03 Pavel Roskin <proski@gnu.org>
5293
2fee74f1 5294 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
5295 not char*.
5296 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
5297 Suggested by Javier Martín <lordhabbit@gmail.com>
5298
dfc31a22 5299 * util/i386/pc/grub-mkrescue.in: Allow for the case when
5300 efiemu??.o doesn't exist.
5301 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
5302 copying.
5303
18f547ad 53042009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 5305
5306 FreeBSD 64-bit support
5307
18f547ad 5308 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 5309 and loader/i386/bsd_trampoline.S
5310 (bsd_mod_ASFLAGS): new variable
5311 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
5312 (FREEBSD_MODTYPE_KERNEL64): likewise
5313 (grub_bsd64_trampoline_start): likewise
5314 (grub_bsd64_trampoline_end): likewise
5315 (grub_bsd64_trampoline_selfjump): likewise
5316 (grub_bsd64_trampoline_gdt): likewise
5317 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
5318 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
5319 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
5320 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 5321 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 5322 of "attrib" member
5323 * loader/i386/bsd_pagetable.c: new file
5324 * loader/i386/bsd_trampoline.S: likewise
5325 * loader/i386/bsd.c (ALIGN_QWORD): new macro
5326 (ALIGN_VAR): likewise
5327 (entry_hi): new variable
5328 (kern_end_mdofs): likewise
5329 (is_64bit): likewise
5330 (grub_freebsd_add_meta): use ALIGN_VAR
5331 (grub_e820_mmap): new declaration
5332 (grub_freebsd_add_mmap): new function
5333 (grub_freebsd_add_meta_module): support 64 bit kernels
5334 (grub_freebsd_list_modules): use ALIGN_VAR
5335 (gdt_descriptor): new declaration
5336 (grub_freebsd_boot): support 64 bit kernels
5337 (grub_bsd_elf64_hook): new function
5338 (grub_bsd_load_elf): support elf64
5339
038c5720 53402009-05-03 Bean <bean123ch@gmail.com>
5341
5342 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
5343 after we get the result of if statement.
5344
fc45fb58 53452009-05-03 Bean <bean123ch@gmail.com>
5346
5347 * Makefile.in (enable_efiemu): New variable.
5348
5349 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
5350 set.
5351 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
5352 path.
5353 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
5354 path, add -mno-red-zone option.
5355 (efiemu64_s.o): Likewise.
5356 (efiemu64.o): Use macro $^ for source file.
5357
5358 * configure.ac (--enable-efiemu): New option.
5359
bbee0f2b 53602009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 xnu support
5363
5364 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
5365 (pkglib_MODULES): add xnu.mod
5366 (xnu_mod_SOURCES): new variable
5367 (xnu_mod_CFLAGS): likewise
5368 (xnu_mod_LDFLAGS): likewise
5369 (xnu_mod_ASFLAGS): likewise
5370 * conf/i386-pc.rmk: likewise
5371 * conf/x86_64-efi.rmk: likewise
7dd4a573 5372 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 5373 new declaration
5374 * include/grub/i386/macho.h: new file
5375 * include/grub/i386/xnu.h: likewise
5376 * include/grub/macho.h: likewise
5377 * include/grub/machoload.h: likewise
5378 * include/grub/x86_64/macho.h: likewise
5379 * include/grub/x86_64/xnu.h: likewise
5380 * include/grub/xnu.h: likewise
5381 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
5382 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
5383 * loader/i386/efi/xnu.c: new file
5384 * loader/i386/pc/xnu.c: likewise
5385 * loader/i386/xnu.c: likewise
5386 * loader/i386/xnu_helper.S: likewise
5387 * loader/macho.c: likewise
5388 * loader/xnu.c: likewise
5389 * loader/xnu_resume.c: likewise
5390 * util/grub-dumpdevtree: likewise
5391 * include/grub/i386/pit.h: include grub/err.h
5392 (grub_pit_wait): export
5393 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 5394
5caf964d 53952009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 Efiemu
7dd4a573 5398
5caf964d 5399 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 5400 _linux_efi, linux_efi.
5401 new files in grub-emu
5caf964d 5402 new targets efiemu32.o and efiemu64.o
5403 * loader/linux_normal_efiemu.c: likewise
5404 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 5405 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 5406 files to copy
5407 * include/grub/autoefi.h: new file
7dd4a573 5408 * include/grub/i386/efiemu.h: likewise
5caf964d 5409 * include/grub/i386/pc/efiemu.h: likewise
5410 * include/grub/efi/api.h: add LL suffix when necessary
5411 new definitions relating to tables
5412 * include/grub/efiemu/efiemu.h: new file
5413 * include/grub/efiemu/runtime.h: likewise
5414 * efiemu/prepare.c: likewise
5415 * efiemu/loadcore_common.c: likewise
5416 * efiemu/loadcore64.c: likewise
5417 * efiemu/runtime/efiemu.sh: likewise
5418 * efiemu/runtime/efiemu.S: likewise
5419 * efiemu/runtime/efiemu.c: likewise
5420 * efiemu/runtime/config.h: likewise
5421 * efiemu/prepare32.c: likewise
5422 * efiemu/main.c: likewise
5423 * efiemu/modules/pnvram.c: likewise
5424 * efiemu/modules/i386: likewise
5425 * efiemu/modules/i386/pc: likewise
5426 * efiemu/modules/acpi.c: likewise
5427 * efiemu/i386/pc/cfgtables.c: likewise
5428 * efiemu/i386/loadcore64.c: likewise
5429 * efiemu/i386/loadcore32.c: likewise
5430 * efiemu/prepare64.c: likewise
5431 * efiemu/loadcore.c: likewise
5432 * efiemu/symbols.c: likewise
5433 * efiemu/mm.c: likewise
5434 * efiemu/loadcore32.c: likewise
7dd4a573 5435
54362009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 5437
5438 ACPI spoofing
5439
5440 * commands/acpi.c: new file
5441 * commands/i386/pc/acpi.c: likewise
5442 * commands/efi/acpi.c: likewise
5443 * include/grub/acpi.h: likewise
5444 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
5445 (acpi_mod_SOURCES): new variable
5446 (acpi_mod_CFLAGS): likewise
5447 (acpi_mod_LDFLAGS): likewise
5448 * conf/i386-efi.rmk: likewise
5449 * conf/x86_64-efi.rmk: likewise
5450
7dd4a573 54512009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 5452
5453 Missing part from mmap patch
5454
5455 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
5456 (grub_mmap_unregister)
5457 (grub_mmap_free_and_unregister): use grub_mmap_register
5458
7dd4a573 54592009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 5460
5461 Mmap services
5462
5463 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
5464 * loader/i386/linux.c (find_mmap_size): likewise
5465 (allocate_pages): likewise
5466 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
5467 (grub_fill_multiboot_mmap): likewise
5468 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
5469 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
5470 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
5471 (OPENBSD_MMAP_RESERVED): likewise
5472 * include/grub/i386/pc/memory.h: include grub/memory.h
5473 (grub_lower_mem): removed
5474 (grub_upper_mem): likewise
5475 (GRUB_MACHINE_MEMORY_ACPI): new definition
5476 (GRUB_MACHINE_MEMORY_NVS): likewise
5477 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
5478 (GRUB_MACHINE_MEMORY_HOLE): likewise
5479 (grub_machine_mmap_register): likewise
5480 (grub_machine_mmap_unregister): likewise
5481 (grub_machine_get_upper): likewise
5482 (grub_machine_get_lower): likewise
5483 (grub_machine_get_post64): likewise
5484 * include/grub/i386/efi/memory.h: new file
5485 * include/grub/x86_64/efi/memory.h: likewise
5486 * include/grub/efi/memory.h: likewise
5487 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
5488 (mmap_mod_SOURCES): new variable
5489 (mmap_mod_LDFLAGS): likewise
5490 (mmap_mod_ASFLAGS): likewise
5491 * conf/i386-coreboot.rmk: likewise
5492 * conf/i386-ieee1275.rmk: likewise
5493 * conf/i386-efi.rmk: likewise
5494 * conf/x86_64-efi.rmk: likewise
5495 * include/grub/types.h (UINT_TO_PTR): new macro
5496 (PTR_TO_UINT32): likewise
5497 (PTR_TO_UINT64): likewise
5498 * include/grub/memory.h: new file
5499 * mmap/i386/pc/mmap.c: likewise
5500 * mmap/i386/pc/mmap_helper.S: likewise
5501 * mmap/i386/uppermem.c: likewise
5502 * mmap/mmap.c: likewise
5503 * mmap/efi/mmap.c: likewise
7dd4a573 5504 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 5505 grub_upper_mem
5506 * kern/i386/pc/init.c (grub_lower_mem): removed variable
5507 (grub_upper_mem): likewise
5508 (grub_machine_init): don't use grub_upper_mem,
5509 make grub_lower_mem local
5510 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
5511 grub_mmap_iterate and grub_mmap_get_upper
5512 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
5513
d558e6b5 55142009-05-02 Bean <bean123ch@gmail.com>
5515
5516 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
5517 script/sh/parser.y.
5518 (pkglib_MODULES): Add normal.mod and sh.mod.
5519 (normal_SOURCES): New variable.
5520 (normal_mod_CFLAGS): Likewise.
5521 (normal_mod_LDFLAGS): Likewise.
5522 (sh_mod_SOURCES): Likewise.
5523 (sh_mod_CFLAGS): Likewise.
5524 (sh_mod_LDFLAGS): Likewise.
5525
5526 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
5527 script/sh/lexer.c_DEPENDENCIES.
5528 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
5529 kern/rescue_reader.c and kern/rescue_parser.c.
5530 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
5531 (grub_emu_SOURCES): Change source files.
5532 (pkglib_MODULES): Remove normal.mod.
5533 (normal_SOURCES): Removed.
5534 (normal_mod_CFLAGS): Likewise.
5535 (normal_mod_LDFLAGS): Likewise.
5536 * conf/i386-coreboot.rmk: Likewise.
5537 * conf/i386-efi.rmk: Likewise.
5538 * conf/i386-ieee1276.rmk: Likewise.
5539 * conf/powerpc-ieee1275.rmk: Likewise.
5540 * conf/sparc64-ieee1275.rmk: Likewise.
5541 * conf/x86_64-efi.rmk: Likewise.
5542
5543 * include/grub/command.h (grub_command_execute): New inline function.
5544
5545 * include/grub/menu.h (grub_menu_entry): Removed commands field.
5546
5547 * include/grub/normal.h: Remove <grub/setjmp.h>.
5548 (grub_fs_module_list): Moved to normal/autofs.c.
5549 (grub_exit_env): Removed.
5550 (grub_command_execute): Likewise.
5551 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
5552 parameter script.
5553 (read_command_list): New function declaration.
5554 (read_fs_list): Likewise.
5555
5556 * include/parser.h: Include <grub/reader.h>.
5557 (grub_parser_split_cmdline): Change type of getline parameter.
5558 (grub_parser): New structure.
5559 (grub_parser_class): New variable.
5560 (grub_parser_execute): New function declaration.
5561 (grub_register_rescue_parser): Likewise.
5562 (grub_parser_register): New inline function.
5563 (grub_parser_unregister): Likewise.
5564 (grub_parser_get_current): Likewise.
5565 (grub_parser_set_current): Likewise.
5566
5567 * include/grub/reader.h: New file.
5568 * kern/reader.c: Likewise.
5569 * kern/rescue_parser.c: Likewise.
5570 * kern/rescue_reader.c: Likewise.
5571 * normal/autofs.c: Likewise.
5572 * normal/dyncmd.c: Likewise.
5573
5574 * include/grub/rescue.h: Removed.
5575 * normal/command.h: Likewise.
5576
5577 * include/grub/script.h: Moved to ...
5578 * include/grub/script_sh.h: ... Moved here.
5579 * normal/execute.c: Moved to ...
5580 * script/sh/execute.c: ... Moved here.
5581 * normal/function.c: Moved to ...
5582 * script/sh/function.c: ... Moved here.
5583 * normal/lexer.c: Moved to ...
5584 * script/sh/lexer.c: ... Moved here.
5585 * normal/parser.y: Moved to ...
5586 * script/sh/parser.y: ... Moved here.
5587 * normal/script.c: Moved to ...
5588 * script/sh/script.c: ... Moved here.
5589
5590 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
5591 <grub/reader.h>.
5592 (grub_exit_env): Removed.
5593 (fs_module_list): Moved to normal/autofs.c.
5594 (grub_file_getline): Don't handle comment here.
5595 (free_menu): Skip removed field entry->commands.
5596 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
5597 script parameter.
5598 (read_config_file): Removed nested parameter, change getline function.
5599 (grub_enter_normal_mode): Removed.
5600 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
5601 (read_command_list): Likewise.
5602 (autoload_fs_module): Moved to normal/autofs.c.
5603 (read_fs_list): Likewise.
5604 (reader_nested): New variable.
5605 (grub_normal_execute): Run parser.sh to switch to sh parser.
5606 (grub_cmd_rescue): Removed.
5607 (cmd_normal): Removed.
5608 (grub_cmd_normal): Unregister itself at the beginning. Don't register
5609 rescue command.
5610 (grub_cmdline_run): New function.
5611 (grub_normal_reader_init): Likewise.
5612 (grub_normal_read_line): Likewise.
5613 (grub_env_write_pager): Likewise.
5614 (cmdline): New variable.
5615 (grub_normal_reader): Likewise.
5616 (GRUB_MOD_INIT): Register normal reader and set as current, register
5617 pager hook, register normal command with grub_register_command_prio,
5618 so that it won't show up in command.lst.
5619 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
5620 grub_fs_autoload_hook.
5621
5622 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
5623 (grub_menu_execute_entry): Replace grub_script_execute with
5624 grub_parser_execute, change parameter to grub_command_execute.
5625
5626 * normal/menu_text.c: Remove <grub/script.h>.
5627
5628 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
5629 and <grub/parser.h>.
5630 (run): Change editor_getline to use new parser interface. Change
5631 parameter to grub_command_execute.
5632
5633 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
5634 <grub/reader.h> and <grub/parser.h>.
5635 (grub_load_normal_mode): Execute normal command.
5636 (grub_main): Call grub_register_core_commands,
5637 grub_register_rescue_parser and grub_register_rescue_reader, use
5638 grub_reader_loop to enter input loop.
5639
7dd4a573 5640 * kern/parser.c (grub_parser_split_cmdline): Change type of
5641 getline parameter.
d558e6b5 5642 (grub_parser_class): New variable.
5643 (grub_parser_execute): New function.
5644
5645 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
5646 * loader/multiboot2.c: Likewise.
5647 * loader/sparc64/ieee1275/linux.c: Likewise.
5648
5649 * util/grub-emu.c (read_command_list): New dummy function.
5650
18db813d 56512009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5652
5653 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
5654 count to 16 for CCISS and IDA.
5655
6c67de15 56562009-05-02 Robert Millan <rmh.grub@aybabtu.com>
5657
5658 * normal/menu_text.c (grub_wait_after_message): Print a newline
5659 after waiting for user input.
5660
5661 * loader/i386/linux.c: Include `<grub/normal.h>'.
5662 (grub_cmd_linux): Improve the error message about `ask' mode, by
5663 waiting for user input so it's not missed (we can do this, since
5664 user requested interaction).
5665
d9dc87b0 56662009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 Added missing lst to grub-mkrescue
5669
5670 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
5671 and ${input_dir}/parttool.lst
5672
ac8a2baa 56732009-04-30 David S. Miller <davem@davemloft.net>
5674
ad22a610 5675 * util/hostdisk.c (device_is_wholedisk): New function.
5676 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
5677 zero only if device_is_wholedisk() returns true.
5678
6966215d 5679 * util/hostdisk.c (convert_system_partition_to_system_disk):
5680 Handle virtual disk devices named /dev/vdiskX as found on sparc
5681 and powerpc.
5682
ac8a2baa 5683 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
5684 lettered partition specifier is found, convert to numbered.
5685
979b4fb4 56862009-04-29 David S. Miller <davem@davemloft.net>
5687
e2bf39b2 5688 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
5689 * include/grub/sparc64/ieee1275/memory.h: Likewise.
5690
3c64e104 5691 * normal/command.c: Add missing newline at end of file.
5692
979b4fb4 5693 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
5694 warnings.
5695 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
5696 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
5697 grub_ofdisk_read): Likewise, and deal similarly with the fact that
5698 ihandles have a 32-bit type but need to be stored in a "void *".
5699
136d9f82 57002009-04-28 Pavel Roskin <proski@gnu.org>
5701
9459c306 5702 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
5703 not disk. Adjust all dependencies.
2e08a26a 5704 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 5705 grub_disk_close().
5706
136d9f82 5707 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
5708 parent's partition, don't copy it by reference, as it gets freed
5709 on close.
5710
7dd4a573 57112009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 5712
5713 Preboot hooks support
5714
5715 * commands/boot.c (struct grub_preboot_t): new declaration
5716 (preboots_head): new variable
5717 (preboots_tail): likewise
5718 (grub_loader_register_preboot_hook): new function
5719 (grub_loader_unregister_preboot_hook): likewise
5720 (grub_loader_set): launch preboot hooks
5721 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
5722 (grub_loader_register_preboot_hook): new declaration
5723 (grub_loader_unregister_preboot_hook): likewise
5724
5af922b5 57252009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
5726
5727 Warning fix
5728
7dd4a573 5729 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 5730 calling grub_dprintf
5731
a5562c30 57322009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5733
5734 Bug and warning fixes
5735
7dd4a573 5736 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 5737 declaration
5738 * commands/test.c (test_parse): fixed bug with file tests and corrected
5739 declaration of find_file
5740
4006f85c 57412009-04-26 Pavel Roskin <proski@gnu.org>
5742
5743 * Makefile.in: Don't install empty manual pages if help2man is
5744 missing. Use help2man option for output, not shell redirection.
5745
5c77c3de 57462009-04-26 David S. Miller <davem@davemloft.net>
5747
5748 * util/grub-mkdevicemap.c (make_device_map): Add missing
5749 NESTED_FUNC_ATTR to process_device().
5750
033b10a8 57512009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 Test command
5754
5755 * commands/test.c: rewritten to use bash-like test
5756
e4343593 57572009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 Parttool autoloading and improvements
5760
7dd4a573 5761 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 5762 (parttool.lst): new target
5763 * genmk.rb: generate parttool-*
5764 (CLEANFILES): add #{parttool}
5765 (PARTTOOLFILES): new variable
5766 * genparttoollist.sh: new file
7dd4a573 5767 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 5768 (grub_pcpart_type): likewise
5769 * commands/parttool.c (helpmsg): new variable
5770 (grub_cmd_parttool): output help if not enough arguments are supplied
5771 autoload modules
5772 (GRUB_MOD_INIT(parttool)): use helpmsg
5773
0d312500 57742009-04-24 David S. Miller <davem@davemloft.net>
5775
7dd4a573 5776 Avoiding opening same device multiple times in device iterator.
0d312500 5777
5778 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 5779 and use it to build a list of partitions in iterate_disk() and
0d312500 5780 iterate_partition().
5781
ac20caff 5782 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
5783 on disk->data.
5784
0dcf7495 5785 * disk/ieee1275/nand.c (grub_nand_iterate): Return
5786 grub_devalias_iterate() result instead of unconditional 0.
5787 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
5788 Also, capture hook return value, either directly or via
5789 grub_children_iterate(), and propagate to caller.
5790 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
5791 grub_children_iterate): Return value is now 'int' instead of
5792 'grub_err_t'.
5793 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
5794 like a proper iterator, stopping when hooks return non-zero.
5795 (grub_devalias_iterate): Likewise.
5796
c8c08833 57972009-04-23 David S. Miller <davem@davemloft.net>
5798
5799 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
5800
f01005a8 58012009-04-22 David S. Miller <davem@davemloft.net>
5802
5803 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
5804 is larger than address_cells, use that value for address_cells too.
5805
4e8269da 5806 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
5807 IEEE1275_MAX_PATH_LEN): Define.
5808 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
5809 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
5810 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
5811 'devtype'. Explicitly NULL terminate devalias expansion.
5812
a1447506 5813 * util/sparc64/ieee1275/misc.c: New file.
5814 * util/sparc64/ieee1275/grub-setup.c: New file.
5815 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
5816 * util/sparc64/ieee1275/grub-mkimage.c: New file.
5817 * util/sparc64/ieee1275/grub-install.in: New file.
5818 * util/ieee1275/ofpath.c: New file.
5819 * util/ieee1275/devicemap.c: New file.
5820 * util/devicemap.c: New file.
5821 * util/deviceiter.c: New file.
5822 * kern/sparc64/ieee1275/init.c: New file.
5823 * include/grub/util/ofpath.h: New file.
5824 * include/grub/util/deviceiter.h: New file.
5825 * util/grub-mkdevicemap.c: Include deviceiter.h.
5826 Implement using grub_util_emit_devicemap_entry and
5827 grub_util_iterate_devices.
5828 * conf/i386-corebook.rmk: Build util/deviceiter.c and
5829 util/devicemap.c into grub-mkdevicemap
5830 * conf/i386-efi.rmk: Likewise.
5831 * conf/i386-ieee1275.rmk: Likewise.
5832 * conf/i386-pc.rmk: Likewise.
5833 * conf/powerpc-ieee1275.rmk: Likewise.
5834 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
5835 images and installation utilities. Build kernel as image
5836 instead of as elf binary. Use common rules as much as possible.
5837
7dd4a573 58382009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 5839
5840 Correct GPT definition
5841
7dd4a573 5842 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 5843 of "attrib" member
5844
c6c5219f 58452009-04-19 Felix Zielcke <fzielcke@z-51.de>
5846
5847 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
5848
0552ff9f 58492009-04-19 David S. Miller <davem@davemloft.net>
5850
5851 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
5852 (grub_rescue_cmd_linux): Rename to...
5853 (grub_cmd_linux): and fix prototype.
5854 (grub_rescue_cmd_initrd): Rename to...
5855 (grub_cmd_initrd): and fix prototype.
5856 (cmd_linux, cmd_initrd): New.
5857 (GRUB_MOD_INIT(linux)): Use grub_register_command().
5858 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
5859
d1a282fc 58602009-04-17 Pavel Roskin <proski@gnu.org>
5861
07c5039f 5862 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
5863 format.
5864 (grub_ohci_transfer): Likewise.
5865
b012002d 5866 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
5867
1bc09c35 5868 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
5869 return without a value. Fix inconsistent indentation.
5870
e0ff9126 5871 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
5872 match struct grub_fs.
5873
d1a282fc 5874 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
5875 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
5876 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
5877 * commands/lspci.c (grub_lspci_iter): Likewise.
5878
a96df3f2 58792009-04-16 Bean <bean123ch@gmail.com>
5880
5881 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
5882 value.
5883
41bb0fe9 58842009-04-15 Pavel Roskin <proski@gnu.org>
5885
5886 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
5887 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
5888 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
5889 definitions.
5890
596c6970 58912009-04-15 Felix Zielcke <fzielcke@z-51.de>
5892
5893 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 5894 that no multiple data or metadata areas are supported and `Unknown
596c6970 5895 metadata header'.
5896
7dd4a573 58972009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 5898
5899 Move loader out of the kernel
5900
5901 * kern/loader.c: moved to ...
5902 * commands/boot.c: ... moved here
5903 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
5904 * commands/boot.c (grub_cmd_boot): moved here. All users updated
5905 * include/grub/kernel.h (grub_machine_fini): export
5906 * include/grub/loader.h (grub_loader_is_loaded): update declaration
5907 (grub_loader_set): likewise
5908 (grub_loader_unset): likewise
5909 (grub_loader_boot): likewise
5910 * conf/common.rmk: new module boot.mod
5911 (pkglib_MODULES): add boot.mod
5912 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
5913 (grub_emu_SOURCES): likewise
5914 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
5915 (grub_emu_SOURCES): likewise
5916 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
5917 (grub_emu_SOURCES): likewise
5918 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
5919 (grub_emu_SOURCES): likewise
5920 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
5921 (grub_emu_SOURCES): likewise
7dd4a573 5922 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
5923 (grub_emu_SOURCES): likewise
0d5d5653 5924 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 5925 (grub_emu_SOURCES): likewise
0d5d5653 5926
7dd4a573 59272009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 5928
5929 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 5930
5999d619 5931 * kern/misc.c (grub_itoa): Removed function
5932 (grub_ltoa): likewise
5933 (grub_vsprintf): use grub_lltoa
5934
7dd4a573 59352009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 5936
5937 Restore grub-emu
5938
5939 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
5940 * conf/i386-coreboot.rmk: likewise
5941 * conf/i386-ieee1275.rmk: likewise
5942 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 5943
20318222 59442009-04-15 Felix Zielcke <fzielcke@z-51.de>
5945
5946 * INSTALL: Add that `./autogen.sh' needs to be run before
5947 `./configure.'.
5948
d05f0df3 59492009-04-14 Bean <bean123ch@gmail.com>
5950
5951 * Makefile.in (pkglib_DATA): Add handler.lst.
5952 (handler.lst): New rule.
5953
5954 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
5955 * conf/i386-coreboot.rmk: Likewise.
5956 * conf/i386-ieee1275.rmk: Likewise.
5957 * conf/i386-efi.rmk: Likewise.
5958 * conf/x86_64-efi.rmk: Likewise.
5959 * conf/powerpc-ieee1275.rmk: Likewise.
5960 * conf/sparc64-ieee1275.rmk: Likewise.
5961
5962 * genhandlerlist.sh: New file.
5963
5964 * genmk.rb: Add rules to generate handler.lst.
5965
5966 * include/grub/normal.h (grub_file_getline): New function definition.
5967 (read_handler_list): Likewise.
5968 (free_handler_list): Likewise.
5969
5970 * include/grub/term.h (grub_term_register_input): Add name parameter
5971 for auto generation of handler.lst.
5972 (grub_term_register_output): Likewise.
5973
5974 * normal/handler.c: New file.
5975
5976 * normal/main.c (get_line): Renamed to grub_file_getline.
5977 (read_config_file): Use the newly renamed grub_file_getline.
5978 (read_command_list): Likewise.
5979 (read_fs_list): Likewise.
5980 (grub_normal_execute): Call read_handler_list to parse handler.lst.
5981 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
5982
5983 * term/efi/console.c (grub_console_init): Add name parameter for auto
5984 generation of handler.lst.
5985 * term/gfxterm.c: Likewise.
5986 * term/i386/pc/at_keyboard.c: Likewise.
5987 * term/i386/pc/console.c: Likewise.
5988 * term/i386/pc/serial.c: Likewise.
5989 * term/i386/pc/vesafb.c: Likewise.
5990 * term/i386/pc/vga.c: Likewise.
5991 * term/i386/pc/vga_text.c: Likewise.
5992 * term/ieee1275/ofconsole.c: Likewise.
5993 * term/usb_keyboard.c: Likewise.
5994
33c846be 59952009-04-14 Bean <bean123ch@gmail.com>
5996
5997 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
5998 properly with null character.
5999
4484e01e 60002009-04-14 Felix Zielcke <fzielcke@z-51.de>
6001
6002 * configure: Remove.
6003 * config.h.in: Likewise.
f93d668e 6004 * stamp-h.in: Likewise.
4484e01e 6005 * DISTLIST: Likewise.
6006 * conf/common.mk: Likewise.
6007 * conf/i386-coreboot.mk: Likewise.
6008 * conf/i386-efi.mk: Likewise.
6009 * conf/i386-ieee1275.mk: Likewise.
6010 * conf/i386.mk: Likewise.
6011 * conf/i386-pc.mk: Likewise.
6012 * conf/powerpc-ieee1275.mk: Likewise.
6013 * conf/sparc64-ieee1275.mk: Likewise.
6014 * conf/x86_64-efi.mk: Likewise.
6015
6016 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
6017 develop on GRUB.
6018
7dd4a573 60192009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 6020 David S. Miller <davem@davemloft.net>
6021
6022 * util/hostdisk.c (make_device_name): Fix buffer length
6023 calculations.
6024
e25b5a8c 60252009-04-14 Felix Zielcke <fzielcke@z-51.de>
6026
6027 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
6028 <sys/param.h> and <sys/sysctl.h>.
6029 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
6030 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
6031 opening the device and reset them afterwards.
6032
1f1f580c 60332009-04-13 Pavel Roskin <proski@gnu.org>
6034
6035 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
6036 Reported by John Stanley <jpsinthemix@verizon.net>
6037
7ebc2d6b 60382009-04-13 Robert Millan <rmh@aybabtu.com>
6039
6040 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 6041 that name for menuentries when appropriate.
7ebc2d6b 6042
d8ba3667 60432009-04-13 Felix Zielcke <fzielcke@z-51.de>
6044
6045 * util/grub.d/10_freebsd.in: Add a missing `fi'.
6046
cba416eb 60472009-04-13 Robert Millan <rmh@aybabtu.com>
6048
6049 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
6050 to Linux, simply abort telling the user it's no longer supported.
6051
a547a745 60522009-04-13 Felix Zielcke <fzielcke@z-51.de>
6053
6054 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 6055 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 6056 `freebsd_loadenv' only when devices.hints exist.
6057
232a769c 60582009-04-13 Pavel Roskin <proski@gnu.org>
6059
6060 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
6061
c3012039 60622009-04-13 Felix Zielcke <fzielcke@z-51.de>
6063
6064 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
6065 partition number.
6066 (grub_drive): Likewise.
6067
234022fe 60682009-04-13 David S. Miller <davem@davemloft.net>
6069
6070 * kern/sparc64/ieee1275/ieee1275.c: New file.
6071 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
6072 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
6073 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
6074 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
6075 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
6076 grub_ieee1275_alloc_physmem): Declare new exported functions.
6077
d8e1836c 6078 * include/grub/sparc64/ieee1275/loader.h: New file.
6079 * include/grub/sparc64/ieee1275/memory.h: Likewise.
6080 * include/grub/sparc64/kernel.h: Likewise.
6081 * loader/sparc64/ieee1275/linux.c: Likewise.
6082
96bd81ec 6083 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
6084 (grub_fstest_SOURCES): Likewise.
6085
6a4737e5 6086 * util/hostdisk.c (make_device_name): Do not make any assumptions
6087 about the length of drive names.
6088
1d7a72fd 6089 * kern/dl.c (grub_dl_load_file): Close file immediately when
6090 we are done using it.
6091
56bc2471 60922009-04-12 David S. Miller <davem@davemloft.net>
6093
6094 * kern/misc.c (grub_ltoa): Fix cast when handling negative
6095 values. Noticed by Pavel Roskin.
6096
df38d0bb 6097 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
6098 target compiler.
7dd4a573 6099
e382e93a 6100 * genmk.rb: Add more flexible image type specification, also
6101 pass --strip-unneeded to objcopy.
6102 * conf/i386-pc.rmk: Use *_FORMAT.
6103 * conf/i386-pc.mk: Rebuilt.
6104
f5dbbca9 6105 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
6106 (OFDISK_HASH_SZ): Define.
6107 (ofdisk_hash): New hash table.
6108 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
6109 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
6110 instead of device phandle which is not unique.
6111
91c88b12 6112 * kern/sparc64/ieee1275/init.c: Delete, replace with...
6113 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
6114 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
6115 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
6116 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
6117 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
6118 GRUB_KERNEL_MACHINE_DATA_END): Define.
6119 (grub_kernel_image_size, grub_total_module_size): Declare.
6120
5b5d4aa5 61212009-04-12 Pavel Roskin <proski@gnu.org>
6122
7dd4a573 6123 * configure.ac: Change the logic when we check for target tools.
6124 Do it when the target is specified and it's different from the
6125 specified value of the host.
5b5d4aa5 6126
c91e1793 61272009-04-11 Felix Zielcke <fzielcke@z-51.de>
6128
6129 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
6130 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
6131 GNU/kFreeBSD. Check if a device is a character device. Use
6132 DIOCGMEDIASIZE to get the size.
6133 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
6134 support for GNU/kFreeBSD.
6135 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
6136 is a character device instead of a block device. Add support for
6137 FreeBSD device names.
6138
6139 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
6140 is a character device instead of a block device.
6141
6142 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
6143 is a character device instead of a block device.
6144
b1ac8644 61452009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
6146
6147 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
6148 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
6149 FreeBSD. Check if a device is a character device. Use
6150 DIOCGMEDIASIZE to get the size.
6151 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
6152 support for FreeBSD.
6153 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
6154 is a character device instead of a block device. Add support for
6155 FreeBSD device names.
6156
6157 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
6158 a character device instead of a block device.
6159 (grub_util_check_char_device): New function.
6160
6161 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
6162 a character device instead of a block device.
6163
6164 * include/grub/util/getroot.h (grub_util_check_char_device): New
6165 prototype.
6166
a3f7515a 61672009-04-11 David S. Miller <davem@davemloft.net>
6168
6169 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
6170 static libgcc.
6171 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
6172 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
6173 function, if present.
6174 (__bswapdi2): Likewise.
6175
0d44993d 6176 * include/grub/sparc64/ieee1275/boot.h: New file.
6177 * boot/sparc64/ieee1275/boot.S: Likewise.
6178 * boot/sparc64/ieee1275/diskboot.S: Likewise.
6179
ed3d2bc2 6180 * kern/misc.c (grub_ltoa): New function.
6181 (grub_vsprintf): Use it to format 'long' integers.
6182
d3bfb59c 61832009-04-10 David S. Miller <davem@davemloft.net>
6184
6185 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
6186 slots are of type grub_ieee1275_cell_t.
6187 (grub_nand_read): Likewise.
6188 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
6189 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
6190 macros are used to compare values in arg/ret block of the call.
6191 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
6192 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
6193 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
6194 grub_ieee1275_instance_to_path, grub_ieee1275_write,
6195 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
6196 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
6197 grub_ieee1275_close, grub_ieee1275_set_property,
6198 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
6199 grub_ieee1275_cell_t.
6200 * kern/ieee1275/openfw.c (grub_map): Likewise.
6201 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
6202 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
6203
450e2238 6204 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
6205 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
6206 (grub_devalias_iterate): Likewise.
6207
7dd4a573 62082009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 6209
6210 UFS improvements
6211
6212 * fs/ufs.c (INODE_NBLOCKS): new definition
6213 (struct grub_ufs_dirent): added fields for non-BSD dirents
6214 (grub_ufs_get_file_block): fixed double indirect handling
6215 (grub_ufs_lookup_symlink): use more robust way to determine whether
6216 symlink is inline
6217 (grub_ufs_find_file): support for non-BSD dirents
6218 (grub_ufs_dir): support for non-BSD dirents
6219
e7e6862a 62202009-04-10 Bean <bean123ch@gnail.com>
6221
6222 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
6223 attribute, otherwise the size would be wrong for i386 platform.
6224
6225 * include/grub/pci.h (grub_pci_read_word): New inline function.
6226 (grub_pci_read_byte): Likewise.
6227 (grub_pci_write): Likewise.
6228 (grub_pci_write_word): Likewise.
6229 (grub_pci_write_byte): Likewise.
6230
6231 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
6232
6233 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
6234 (find_framebuf): Scan pci to locate the frame buffer address.
6235
6236 * commands/efi/fixvideo.c: New file.
6237
6238 * commands/efi/loadbios.c: Likewise.
6239
6240 * commands/memrw.c: Likewise.
6241
6242 * util/grub-dumpbios.in: Likewise.
6243
6244 * conf/common.rmk (grub-dumpbios): New utility.
6245 (pkglib_MODULES): New module memrw.mod.
6246 (memrw_mod_SOURCE): New macro.
6247 (memrw_mod_CFLAGS): Likewise.
6248 (memrw_mod_LDFLAGS): Likewise.
6249
7dd4a573 6250 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 6251 fixvideo.mod.
6252 (loadbios_mod_SOURCE): New macro.
6253 (loadbios_mod_CFLAGS): Likewise.
6254 (loadbios_mod_LDFLAGS): Likewise.
6255 (fixvideo_mod_SOURCE): Likewise.
6256 (fixvideo_mod_CFLAGS): Likewise.
6257 (fixvideo_mod_LDFLAGS): Likewise.
6258
7dd4a573 6259 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 6260 fixvideo.mod.
6261 (loadbios_mod_SOURCE): New macro.
6262 (loadbios_mod_CFLAGS): Likewise.
6263 (loadbios_mod_LDFLAGS): Likewise.
6264 (fixvideo_mod_SOURCE): Likewise.
6265 (fixvideo_mod_CFLAGS): Likewise.
6266 (fixvideo_mod_LDFLAGS): Likewise.
6267
af63ada2 62682009-04-08 Felix Zielcke <fzielcke@z-51.de>
6269
6270 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
6271
c2cdde70 62722009-04-07 David S. Miller <davem@davemloft.net>
6273
6274 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
6275 support for R_SPARC_OLO10 relocations. Fix compile warning for
6276 R_SPARC_WDISP30 case.
ea3f72cf 6277 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 6278
761319cf 62792009-04-06 Pavel Roskin <proski@gnu.org>
6280
1007d1f5 6281 * include/grub/misc.h (ARRAY_SIZE): New macro.
6282 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
6283 New macro.
6284 * loader/i386/linux.c (allocate_pages): Use free_pages().
6285 (grub_linux_unload): Don't use free_pages().
6286 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
6287 wrong index. Treat all other modes as text modes.
6288 (grub_cmd_linux): Initialize vid_mode unconditionally to
6289 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
6290
761319cf 6291 * commands/help.c (print_command_help): Use cmd->prio, not
6292 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
6293
ea761d40 62942009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 6295
ea761d40 6296 Parttool
6297
6298 * parttool/pcpart.c: new file
6299 * commands/parttool.c: likewise
6300 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
6301 (parttool_mod_SOURCES): new variable
6302 (parttool_mod_CFLAGS): likewise
6303 (parttool_mod_LDFLAGS): likewise
6304 (pcpart_mod_SOURCES): likewise
6305 (pcpart_mod_CFLAGS): likewise
6306 (pcpart_mod_LDFLAGS): likewise
7dd4a573 6307 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 6308 and parttool/pcpart.c
6309 * conf/i386-efi.rmk: likewise
6310 * conf/i386-ieee1275.rmk: likewise
6311 * conf/i386-pc.rmk: likewise
6312 * conf/powerpc-ieee1275.rmk: likewise
6313 * conf/sparc64-ieee1275.rmk: likewise
6314 * conf/x86_64-ieee1275.rmk: likewise
6315
05aaebfb 63162009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 Support for mtime and further expandability of dir command
6319
6320 * include/grub/lib/datetime.h: moved to ...
7dd4a573 6321 * include/grub/datetime.h: ... moved here and added
05aaebfb 6322 declaration of grub_unixtime2datetime. All users updated
7dd4a573 6323 * include/grub/fs.h: new syntax for dir and mtime functions in
6324 struct grub_fs
05aaebfb 6325 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
6326 and GRUB_FSHELP_FLAGS_MASK
6327 * commands/ls.c (grub_ls_list_files): Write mtime in long format
6328 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
6329 (grub_ext2_mtime): new function
6330 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
6331 (grub_hfsplus_mtime): new function
6332 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
6333 (GRUB_UFS_ATTR_FILE): likewise
6334 (GRUB_UFS_ATTR_LNK): likewise
6335 (struct grub_ufs_sblock): new fields mtime
6336 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
6337 all users updated
6338 (grub_ufs_dir): mtime support
6339 (grub_ufs_mtime): new function
6340 * fs/affs.c (grub_affs_dir): use new dir syntax
6341 * fs/afs.c (grub_afs_dir): likewise
6342 * fs/cpio.c (grub_cpio_dir): likewise
6343 * fs/fat.c (grub_fat_find_dir): likewise
6344 * fs/hfs.c (grub_hfs_dir): likewise
6345 * fs/iso9660.c (grub_iso9660_dir): likewise
6346 * fs/jfs.c (grub_jfs_dir): likewise
6347 * fs/minix.c (grub_minix_dir): likewise
6348 * fs/ntfs.c (grub_ntfs_dir): likewise
6349 * fs/reiserfs.c (grub_reiserfs_dir): likewise
6350 * fs/sfs.c (grub_sfs_dir): likewise
6351 * fs/xfs.c (grub_xfs_dir): likewise
6352 * util/hostfs.c (grub_hostfs_dir): likewise
6353 * lib/datetime.c: moved to ...
6354 * normal/datetime.c: ... moved here
6355 (grub_unixtime2datetime): new function
6356 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 6357 * normal/completion.c (iterate_dir): use new dir syntax
6358 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 6359 last modification time of a volume
7dd4a573 6360 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 6361 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 6362 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 6363 (normal_mod_SOURCES): likewise
6364 (datetime_mod_SOURCES): Removed lib/datetime.c
6365 * conf/i386-efi.rmk: likewise
7dd4a573 6366 * conf/i386-ieee1275.rmk: likewise
05aaebfb 6367 * conf/i386-pc.rmk: likewise
6368 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 6369 * conf/sparc64-ieee1275.rmk: likewise
6370 * conf/x86_64-efi.rmk: likewise
05aaebfb 6371
8a7e1a14 63722009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6373
6374 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 6375
6376 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 6377 on grub_fat_find_dir
6378 (grub_fat_find_dir): use grub_fat_iterate_dir
6379 (grub_fat_label): likewise
6380
04186a9c 63812009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6382
7dd4a573 6383 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 6384 and command.h
6385 remove extraneous kernel_elf_HEADERS
6386
da4c0bb6 63872009-04-04 Bean <bean123ch@gnail.com>
6388
6389 * include/grub/util/misc.h: Add dummy function fsync for mingw.
6390
6391 * util/misc.c: Likewise.
6392
54ad9555 63932009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
6394
6395 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
6396 instead of grub_printf.
6397
7a6bf9f2 63982009-04-03 Robert Millan <rmh@aybabtu.com>
6399
6400 * loader/i386/linux.c (grub_linux_setup_video): Fill
6401 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
6402 values from `mode info' structure instead of hardcoded
6403 values.
6404
3fcc2083 64052009-04-01 Pavel Roskin <proski@gnu.org>
6406
6407 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
6408 unused now.
6409 * genmk.rb: Likewise.
6410 * configure.ac: Likewise.
6411
5ec9740b 64122009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
6413
6414 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
6415 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
6416
5270cec8 64172009-04-01 David S. Miller <davem@davemloft.net>
6418
6419 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 6420 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 6421 (grub_setjmp): Mark with 'returns_twice' attribute.
6422 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
6423 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
6424 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
6425
9c3dd854 64262009-04-01 Robert Millan <rmh@aybabtu.com>
6427
6428 Reapply fix from 2008-07-28 which was accidentally reverted; also
6429 perform the same fix to a similar check in same function.
6430
6431 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
6432 with the same number are found, just use issue a warning with
6433 grub_dprintf(), as this error has been reported to be non-fatal.
6434
0d818b7e 64352009-03-31 Pavel Roskin <proski@gnu.org>
6436
6437 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
6438 for cross-compilation.
6439
95646d92 64402009-03-30 Robert Millan <rmh@aybabtu.com>
6441
6442 Fix i386-ieee1275 build.
6443
6444 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
6445 Remove declaration.
6446
6a003ed1 64472009-03-30 Pavel Roskin <proski@gnu.org>
6448
6449 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
6450 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
6451 zero-terminated, rely only on the strlen value. Fix comparison
6452 of strings differing in length.
6453
92f33540 64542009-03-30 Robert Millan <rmh@aybabtu.com>
6455
6456 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
6457 checking for abi version. Improve error messages on BIOS to notify
6458 user about `linux16' command.
6459
a8c48fd5 64602009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6461
f968172e 6462 Leak fixes
a8c48fd5 6463
f968172e 6464 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
6465 in case of collision
6466 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 6467
9c323f09 64682009-03-29 Robert Millan <rmh@aybabtu.com>
6469
6470 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
6471 set `vid_mode' accordingly.
6472 (grub_linux_boot): Process `vid_mode' and set video mode.
6473
ae68f423 64742009-03-29 Robert Millan <rmh@aybabtu.com>
6475
6476 * util/grub.d/10_linux.in (linux_entry): New function.
6477 Factorize generation of Linux boot entries.
6478
5709cfc4 64792009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
6480
6481 Make the format of Environment Block plain text. The boot loader
6482 part is not tested well yet.
7dd4a573 6483
5709cfc4 6484 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
6485 (buffer): Removed.
6486 (envblk): Likewise.
6487 (usage): Remove "info" and "clear". Add "unset". Update the
6488 description of "set", as this does not delete variables any
6489 longer.
6490 (create_envblk_file): Complete rewrite.
6491 (open_envblk_file): Likewise.
6492 (cmd_info): Removed.
6493 (cmd_list): Likewise.
6494 (cmd_set): Likewise.
6495 (cmd_clear): Likewise.
6496 (list_variables): New function.
6497 (write_envblk): Likewise.
6498 (set_variables): Likewise.
6499 (unset_variables): Likewise.
6500 (main): Complete rewrite.
6501
6502 * commands/loadenv.c (buffer): Removed.
6503 (envblk): Likewise.
6504 (open_envblk_file): New function.
6505 (read_envblk_file): Complete rewrite.
6506 (grub_cmd_load_env): Likewise.
6507 (grub_cmd_list_env): Likewise.
6508 (struct blocklist): New struct.
6509 (free_blocklists): New function.
6510 (check_blocklists): Likewise.
6511 (write_blocklists): Likewise.
6512 (grub_cmd_save_env): Complete rewrite.
6513
6514 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
6515 a plain text signature.
6516 (GRUB_ENVBLK_MAXLEN): Removed.
6517 (struct grub_envblk): Complete rewrite.
6518 (grub_envblk_find): Removed.
6519 (grub_envblk_insert): Likewise.
6520 (grub_envblk_open): New prototype.
6521 (grub_envblk_set): Likewise.
6522 (grub_envblk_delete): Put const to VALUE.
6523 (grub_envblk_iterate): Put const to NAME and VALUE.
6524 (grub_envblk_close): New prototype.
6525 (grub_envblk_buffer): New inline function.
6526 (grub_envblk_size): Likewise.
6527
6528 * lib/envblk.c: Include grub/mm.h.
6529 (grub_env_find): Removed.
6530 (grub_envblk_open): New function.
6531 (grub_envblk_close): Likewise.
6532 (escaped_value_len): Likewise.
6533 (find_next_line): Likewise.
6534 (grub_envblk_insert): Removed.
6535 (grub_envblk_set): New function.
6536 (grub_envblk_delete): Complete rewrite.
6537 (grub_envblk_iterate): Likewise.
6538
a9368fd3 65392009-03-28 Robert Millan <rmh@aybabtu.com>
6540
6541 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
6542 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
6543 variables. Use 16-bit loader.
6544 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
6545 loader.
6546 * kern/i386/loader.S (grub_linux_boot): Rename to ...
6547 (grub_linux16_boot): ... this. Update all users.
6548 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
6549 (grub_linux_boot): ... this. Update all users.
6550
6551 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
6552 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
6553 commands to `linux16' and `initrd16'.
6554 (GRUB_MOD_FINI(linux)): Rename to ...
6555 (GRUB_MOD_FINI(linux16)): ... this.
6556
e4dd5a7e 65572009-03-24 Pavel Roskin <proski@gnu.org>
6558
6559 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
6560 not just for compilation.
6561
c04d6e05 65622009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
6563
6564 Move multiboot helper out of kernel
6565
6566 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
6567 `loader/i386/multiboot_helper.S'.
6568 * conf/i386-coreboot.rmk: Likewise
6569 * conf/i386-ieee1275.rmk: Likewise
6570
6571 * kern/i386/loader.S: Move multiboot helpers from here...
6572 * loader/i386/multiboot_helper.S: ...moved here
6573 * include/grub/i386/loader.h: Move declarations of multiboot
6574 helpers from here...
6575 * include/grub/i386/multiboot.h: ...moved here
6576 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
6577
42a5b3fc 65782009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6579
6580 * kern/env.c (grub_env_context_open): Added an argument to specify
6581 whether a new context inherits exported variables from current
6582 one. This is useful when making a sandbox to interpret a config
6583 file.
6584 All callers updated.
6585
6586 * include/grub/env.h (grub_env_context_open): Updated the prototype.
6587
b28bbc4e 65882009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6589
6590 * kern/env.c (grub_env_context_close): Fix memory leaks.
6591
f04f02e4 65922009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
6593
6594 * normal/main.c (grub_normal_execute): Added an argument
6595 BATCH to specify if an interactive interface should be provided
6596 after reading a config file.
6597 All callers updated.
6598 (read_command_list): Prevent being executed twice.
6599 (read_fs_list): Likewise.
6600
42a5b3fc 6601 * include/grub/normal.h (grub_normal_execute): Updated the
6602 prototype.
f04f02e4 6603
41473ac2 66042009-03-22 Pavel Roskin <proski@gno.org>
6605
fbc00b0c 6606 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
6607 _start.
6608 * kern/i386/pc/startup.S: Likewise.
6609 * kern/i386/efi/startup.S: Likewise.
6610 * kern/i386/ieee1275/startup.S: Likewise.
6611 * kern/i386/coreboot/startup.S: Likewise.
6612 * kern/x86_64/efi/startup.S: Likewise.
6613
41473ac2 6614 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
6615 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
6616 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
6617
2274cc8f 66182009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 Bugfixes in multiboot for bugs uncovered by solaris kernel.
6621
6622 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
6623 limit detection.
6624 Use vaddr of correct segment for entry_point.
6625
b1b797cb 66262009-03-21 Bean <bean123ch@gmail.com>
6627
6628 * commands/blocklist.c: Add include file <grub/command.h>, remove
6629 <grub/normal.h> and <grub/arg.h>.
6630 (grub_cmd_blocklist): Use the new command interface.
6631 (GRUB_MOD_INIT): Likewise.
6632 (GRUB_MOD_FINI): Likewise.
6633 * commands/boot.c: Likewise.
6634 * commands/cat.c: Likewise.
6635 * commands/cmp.c: Likewise.
6636 * commands/configfile.c: Likewise.
6637 * commands/crc.c: Likewise.
6638 * commands/echo.c: Likewise.
6639 * commands/halt.c: Likewise.
6640 * commands/handler.c: Likewise.
6641 * commands/hdparm.c: Likewise.
6642 * commands/help.c: Likewise.
6643 * commands/hexdump.c: Likewise.
6644 * commands/loadenv.c: Likewise.
6645 * commands/ls.c: Likewise.
6646 * commands/lsmmap.c: Likewise.
6647 * commands/lspci.c: Likewise.
6648 * commands/loadenv.c: Likewise.
6649 * commands/read.c: Likewise.
6650 * commands/reboot.c: Likewise.
6651 * commands/search.c: Likewise.
6652 * commands/sleep.c: Likewise.
6653 * commands/test.c: Likewise.
6654 * commands/usbtest.c: Likewise.
6655 * commands/videotest.c: Likewise.
6656 * commands/i386/cpuid.c: Likewise.
6657 * commands/i386/pc/halt.c: Likewise.
6658 * commands/i386/pc/play.c: Likewise.
6659 * commands/i386/pc/pxecmd.c: Likewise.
6660 * commands/i386/pc/vbeinfo.c: Likewise.
6661 * commands/i386/pc/vbetest.c: Likewise.
6662 * commands/ieee1275/suspend.c: Likewise.
6663 * disk/loopback.c: Likewise.
6664 * font/font_cmd.c: Likewise.
6665 * hello/hello.c: Likewise.
6666 * loader/efi/appleloader.c: Likewise.
6667 * loader/efi/chainloader.c: Likewise.
6668 * loader/i386/bsd.c: Likewise.
6669 * loader/i386/efi/linux.c: Likewise.
6670 * loader/i386/ieee1275/linux.c: Likewise.
6671 * loader/i386/linux.c: Likewise.
6672 * loader/i386/pc/chainloader.c: Likewise.
6673 * loader/i386/pc/linux.c: Likewise.
6674 * loader/powerpc/ieee1275/linux.c: Likewise.
6675 * loader/multiboot_loader.c: Likewise.
6676 * term/gfxterm.c: Likewise.
6677 * term/i386/pc/serial.c: Likewise.
6678 * term/terminfo.c: Likewise.
6679
6680 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
6681 * term/i386/pc/vga.c: Likewise.
6682 * video/readers/jpeg.c: Likewise.
6683 * video/readers/png.c: Likewise.
6684 * video/readers/tga.c: Likewise.
6685
6686 * util/grub-fstest (cmd_loopback): Removed.
6687 (cmd_blocklist): Likewise.
6688 (cmd_ls): Likewise.
6689 (grub_register_command): Likewise.
6690 (grub_unregister_command): Likewise.
6691 (execute_command): Use grub_command_find to locate command and execute
6692 it.
6693
6694 * include/grub/efi/chainloader.h: Removed.
6695 * loader/efi/chainloader_normal.c: Likewise.
6696 * loader/i386/bsd_normal.c: Likewise.
6697 * loader/i386/pc/chainloader_normal.c: Likewise.
6698 * loader/i386/pc/multiboot_normal.c: Likewise.
6699 * loader/linux_normal.c: Likewise.
6700 * loader/multiboot_loader_normal.c: Likewise.
6701 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
6702
6703 * gencmdlist.sh: Scan new registration command grub_register_extcmd
6704 and grub_register_command_p1.
6705
6706 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
6707 kern/command.c, lib/arg.c and commands/extcmd.c.
6708 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
6709 (minicmd_mod_SOURCES): New variable.
6710 (minicmd_mod_CFLAGS): Likewise.
6711 (minicmd_mod_LDFLAGS): Likewise.
6712 (extcmd_mod_SOURCES): Likewise.
6713 (extcmd_mod_CFLAGS): Likewise.
6714 (extcmd_mod_LDFLAGS): Likewise.
6715 (boot_mod_SOURCES): Removed.
6716 (boot_mod_CFLAGS): Likewise.
6717 (boot_mod_LDFLAGS): Likewise.
6718
6719 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
6720 kern/corecmd.c.
6721 (kernel_img_HEADERS): Add command.h.
6722 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
6723 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
6724 and lib/arg.c.
6725 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
6726 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
6727 remove the corresponding normal mode command.
6728 (normal_mod_SOURCES): Remove normal/arg.c.
6729 * conf/i386-coreboot.rmk: Likewise.
6730 * conf/i386-efi.rmk: Likewise.
6731 * conf/i386-ieee1275.rmk: Likewise.
6732 * conf/powerpc-ieee1275.rmk: Likewise.
6733 * conf/x86_64-efi.rmk: Likewise.
6734
6735 * include/grub/arg.h: Move from here ...
6736 * include/grub/lib/arg.h: ... to here.
6737
6738 * normal/arg.c: Move from here ...
6739 * lib/arg.c: ... to here.
6740
6741 * commands/extcmd.c: New file.
6742 * commands/minicmd.c: Likewise.
6743 * include/grub/command.h: Likewise.
6744 * include/grub/extcmd.h: Likewise.
6745 * kern/command.c: Likewise.
6746 * kern/corecmd.c: Likewise.
6747
6748 * kern/list.c (grub_list_iterate): Return int instead of void.
6749 (grub_list_insert): New function.
6750 (grub_prio_list_insert): Likewise.
6751
6752 * kern/rescue.c (grub_rescue_command): Removed.
6753 (grub_rescue_command_list): Likewise.
6754 (grub_rescue_register_command): Likewise.
6755 (grub_rescue_unregister_command): Likewise.
6756 (grub_rescue_cmd_boot): Move to minicmd.c
6757 (grub_rescue_cmd_help): Likewise.
6758 (grub_rescue_cmd_info): Likewise.
6759 (grub_rescue_cmd_boot): Likewise.
6760 (grub_rescue_cmd_testload): Likewise.
6761 (grub_rescue_cmd_dump): Likewise.
6762 (grub_rescue_cmd_rmmod): Likewise.
6763 (grub_rescue_cmd_lsmod): Likewise.
6764 (grub_rescue_cmd_exit): Likewise.
6765 (grub_rescue_print_devices): Moved to corecmd.c.
6766 (grub_rescue_print_files): Likewise.
6767 (grub_rescue_cmd_ls): Likewise.
6768 (grub_rescue_cmd_insmod): Likewise.
6769 (grub_rescue_cmd_set): Likewise.
6770 (grub_rescue_cmd_unset): Likewise.
7d074e3c 6771 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 6772 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 6773 commands, remove grub_rescue_register_command calls.
b1b797cb 6774
7d074e3c 6775 * normal/command.c (grub_register_command): Removed.
b1b797cb 6776 (grub_unregister_command): Likewise.
6777 (grub_command_find): Likewise.
6778 (grub_iterate_commands): Likewise.
6779 (rescue_command): Likewise.
6780 (export_command): Moved to corecmd.c.
6781 (set_command): Removed.
6782 (unset_command): Likewise.
6783 (insmod_command): Likewise.
6784 (rmmod_command): Likewise.
6785 (lsmod_command): Likewise.
6786 (grub_command_init): Likewise.
6787
6788 * normal/completion.c (iterate_command): Use cmd->prio to check for
6789 active command.
6790 (complete_arguments): Use grub_extcmd_t structure to find options.
6791 (grub_normal_do_completion): Change function grub_iterate_commands to
6792 grub_command_iterate.
6793
6794 * normal/execute.c (grub_script_execute_cmd): No need to parse
6795 argument here.
6796
6797 * normal/main.c (grub_dyncmd_dispatcher): New function.
6798 (read_command_list): Register unload commands as dyncmd.
6799 (grub_cmd_normal): Use new command interface, register rescue,
6800 unregister normal at entry, register normal, unregister rescue at exit.
6801
6802 * include/grub/list.h (grub_list_test_t): New type.
6803 (grub_list_iterate): Return int instead of void.
6804 (grub_list_insert): New function.
6805 (GRUB_AS_NAMED_LIST_P): New macro.
6806 (GRUB_AS_PRIO_LIST): Likewise.
6807 (GRUB_AS_PRIO_LIST_P): Likewise.
6808 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
6809 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
6810 (grub_prio_list): New structure.
6811 (grub_prio_list_insert): New function.
6812 (grub_prio_list_remove): New inline function.
6813
6814 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
6815 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
6816 (GRUB_COMMAND_FLAG_MENU): Likewise.
6817 (GRUB_COMMAND_FLAG_BOTH): Likewise.
6818 (GRUB_COMMAND_FLAG_TITLE): Likewise.
6819 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
6820 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
6821 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
6822 (grub_command): Likewise.
6823 (grub_register_command): Likewise.
6824 (grub_command_find): Likewise.
6825 (grub_iterate_commands): Likewise.
6826 (grub_command_init): Likewise.
6827 (grub_arg_parse): Likewise.
6828 (grub_arg_show_help): Likewise.
6829
6830 * include/grub/rescue.h (grub_rescue_register_command): Removed.
6831 (grub_rescue_unregister_command): Likewise.
6832
6833 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
6834 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
6835 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
6836
6837 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
6838 grub_rescue_cmd_initrd.
6839 * include/grub/i386/loader.h: Likewise.
6840 * include/grub/x86_64/loader.h: Likewise.
6841
6842 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
6843
1f4147aa 68442009-03-21 Bean <bean123ch@gmail.com>
6845
6846 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
6847 instead of stat in mingw environment.
6848
6849 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
6850
6851 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
6852
6853 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
6854 AC_CONFIG_LINKS.
6855
2156d5ba 68562009-03-21 Bean <bean123ch@gmail.com>
6857
6858 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
6859 out of range error.
6860
177b82ca 68612009-03-18 Michel Dänzer <michel@daenzer.net>
6862
6863 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
6864 checking inode flags for EXT4_EXTENTS_FLAG.
6865
14aad807 68662009-03-18 Robert Millan <rmh@aybabtu.com>
6867
6868 * loader/i386/linux.c: Include `<grub/video.h>' and
6869 `<grub/i386/pc/vbe.h>'..
6870 (grub_linux_setup_video): New function. Loosely based on the EFI one.
6871 (grub_linux32_boot): Attempt to configure video settings with
6872 grub_linux_setup_video().
6873 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
6874 to avoid grub_console_fini() which would step out of graphical mode
6875 unconditionally.
6876
8cf83a27 68772009-03-14 Robert Millan <rmh@aybabtu.com>
6878
6879 Fix build on powerpc.
6880 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
6881
40164e75 68822009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
6885 background image command.
6886
c58bc32a 68872009-03-12 Colin D Bennett <colin@gibibit.com>
6888
6889 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
6890 (grub_gfxterm_putchar): Extract pairs of identical calls to
6891 draw_cursor out of conditional blocks.
6892
5415144a 68932009-03-11 Pavel Roskin <proski@gnu.org>
6894
6895 * fs/hfs.c (grub_hfs_strncasecmp): New function.
6896 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
6897
6394042e 68982009-03-11 Robert Millan <rmh@aybabtu.com>
6899
6900 * loader/i386/multiboot_elfxx.c
6901 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
6902
b7b50e5f 69032009-03-11 Felix Zielcke <fzielcke@z-51.de>
6904
6905 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
6906 `kern/handler.c'.
6907
1ca7fc96 69082009-03-11 Robert Millan <rmh@aybabtu.com>
6909
6910 * loader/i386/multiboot.c (code_size): New variable.
6911 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 6912 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 6913 4-byte alignment to MBI and others by increasing
7d074e3c 6914 `boot_loader_name_length' appropriately.
1ca7fc96 6915
6916 * loader/i386/multiboot_elfxx.c
6917 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
6918
a83ea1d2 69192009-03-09 Felix Zielcke <fzielcke@z-51.de>
6920
6921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
6922 `fs/ext2.c'.
6923
aa9f3bff 69242009-03-08 Robert Millan <rmh@aybabtu.com>
6925
6926 Make loader/i386/linux.c usable on i386-pc again.
6927
6928 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
6929 memory to heap.
6930 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
6931 `#error' stanza.
6932
d8b3b60e 69332009-03-07 Bean <bean123ch@gmail.com>
6934
6935 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
6936 allocation.
6937
b362c9e9 69382009-03-06 Robert Millan <rmh@aybabtu.com>
6939
6940 Fix display issue on terminals with screen size other than 80x25
6941 (e.g. gfxterm with resolution higher than 640x480).
6942
6943 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 6944 position relative to the center of the terminal instead of relying
b362c9e9 6945 on a hardcoded offset.
6946
9304eef1 69472009-03-04 Robert Millan <rmh@aybabtu.com>
6948
6949 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
6950 installed.
6951
6952 * Makefile.in (host_kernel): New variable.
6953 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
6954 scripts instead of just the windows one.
6955 * configure.ac: Initialize and AC_SUBST `host_kernel'.
6956
eabc95fb 69572009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 6958
6959 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
6960 `kern/handler.c'.
6961 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
6962 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
6963 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
6964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6965 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6966 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6967
ceb1223c 69682009-03-04 Felix Zielcke <fzielcke@z-51.de>
6969
6970 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
6971 or if there's no space for the disk label and print the partition number on a
6972 invalid magic.
6973
4910684a 69742009-03-04 Felix Zielcke <fzielcke@z-51.de>
6975
6976 * util/misc.c: Include <time.h>.
6977 (grub_millisleep): New function.
6978
7e9ca17a 69792009-03-04 Bean <bean123ch@gmail.com>
6980
6981 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
6982 another option -mno-red-zone.
6983
6984 * commands/handler.c: Change module description.
6985
6986 * kern/handler.c: Add missing space at the end of description line.
6987
6988 * kern/list.c: Likewise.
6989
f501677c 69902009-03-03 Robert Millan <rmh@aybabtu.com>
6991
6992 Move more components to the relocation area, and fix mbi pointer
6993 handling to use the destination rather than the origin (thanks to
6994 Vladimir Serbinenko for spotting).
6995
6996 * loader/i386/multiboot.c (mbi_dest): New variable.
6997 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
6998 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
6999 relocation area.
7000
9902d047 70012009-03-01 Bean <bean123ch@gmail.com>
7002
50fb7002 7003 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 7004 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
7005 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
7006 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
7007
7008 * loader/i386/efi/linux.c (acpi_guid): New variable.
7009 (acpi_guid): Likewise.
7010 (EBDA_SEG_ADDR): New constant.
7011 (LOW_MEM_ADDR): Likewise.
7012 (FAKE_EBDA_SEG): Likewise.
7013 (fake_bios_data): New function.
7014 (grub_linux_boot): Call fake_bios_data.
7015
71b9f361 70162009-03-01 Bean <bean123ch@gmail.com>
7017
7018 * commands/terminal.c: Removed.
7019
7020 * commands/handler.c: New file.
7021
7022 * include/grub/list.h: Likewise.
7023
7024 * include/grub/handler.h: Likewise.
7025
7026 * kern/list.c: Likewise.
7027
7028 * kern/handler.c: Likewise.
7029
7030 * kern/term.h: Include header file <grub/handler.h>.
7031 (grub_term_input): Move next field to the beginning.
7032 (grub_term_output): Likewise.
7033 (grub_term_input_class): New variable.
7034 (grub_term_output_class): Likewise.
7035 (grub_term_register_input): Changed to inline function.
7036 (grub_term_register_output): Likewise.
7037 (grub_term_unregister_input): Likewise.
7038 (grub_term_unregister_output): Likewise.
7039 (grub_term_set_current_input): Likewise.
7040 (grub_term_set_current_output): Likewise.
7041 (grub_term_get_current_input): Likewise.
7042 (grub_term_get_current_output): Likewise.
7043 (grub_term_iterate_input): Removed.
7044 (grub_term_iterate_output): Likewise.
7045
7046 * kern/term.c (grub_term_list_input): Removed.
7047 (grub_term_list_output): Likewise.
7048 (grub_term_input_class): New variable.
7049 (grub_term_output_class): Likewise.
50fb7002 7050 (grub_cur_term_input): Change variable as macro.
71b9f361 7051 (grub_cur_term_output): Likewise.
7052 (grub_term_register_input): Removed.
7053 (grub_term_register_output): Likewise.
7054 (grub_term_unregister_input): Likewise.
7055 (grub_term_unregister_output): Likewise.
7056 (grub_term_set_current_input): Likewise.
7057 (grub_term_set_current_output): Likewise.
7058 (grub_term_iterate_input): Likewise.
7059 (grub_term_iterate_output): Likewise.
7060 (grub_term_get_current_input): Likewise.
7061 (grub_term_get_current_output): Likewise.
7062
7063 * util/grub-editenv.c: Include header file <grub/handler.h>.
7064 (grub_term_get_current_input): Removed.
7065 (grub_term_get_current_output): Likewise.
7066 (grub_term_input_class): New variable.
50fb7002 7067 (grub_term_output_class): Likewise.
71b9f361 7068
7069 * util/grub-fstest.c (grub_term_get_current_input): Removed.
7070 (grub_term_get_current_output): Likewise.
7071 (grub_term_input_class): New variable.
50fb7002 7072 (grub_term_output_class): Likewise.
71b9f361 7073
7074 * util/grub-probe.c (grub_term_get_current_input): Removed.
7075 (grub_term_get_current_output): Likewise.
7076 (grub_term_input_class): New variable.
50fb7002 7077 (grub_term_output_class): Likewise.
71b9f361 7078
7079 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
7080 (grub_term_get_current_output): Likewise.
7081 (grub_term_input_class): New variable.
50fb7002 7082 (grub_term_output_class): Likewise.
71b9f361 7083
7084 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
7085 (terminal_mod_SOURCES): Likewise.
7086 (terminal_mod_CFLAGS): Likewise.
7087 (terminal_mod_LDFLAGS): Likewise.
7088
7089 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
7090 handler.c.
7091 (kernel_img_SOURCES): Add list.c and handler.c.
7092 (kernel_img_HEADERS): Add list.h and handler.h.
7093
7094 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
7095 handler.c.
7096 (kernel_mod_SOURCES): Add list.c and handler.c.
7097 (kernel_mod_HEADERS): Add list.h and handler.h.
7098
7099 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
7100 handler.c.
7101 (kernel_elf_SOURCES): Add list.c and handler.c.
7102 (kernel_elf_HEADERS): Add list.h and handler.h.
7103
7104 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
7105 handler.c.
7106 (kernel_elf_SOURCES): Add list.c and handler.c.
7107 (kernel_elf_HEADERS): Add list.h and handler.h.
7108
7109 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
7110 handler.c.
7111 (kernel_mod_SOURCES): Add list.c and handler.c.
7112 (kernel_mod_HEADERS): Add list.h and handler.h.
7113
7114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
7115 handler.c.
7116 (kernel_elf_SOURCES): Add list.c and handler.c.
7117 (kernel_elf_HEADERS): Add list.h and handler.h.
7118
8a31787f 71192009-02-27 Robert Millan <rmh@aybabtu.com>
7120
7121 Factorize elf32 / elf64 code in Multiboot loader. This will
7122 prevent it from getting out of sync again.
7123
7124 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
7125 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
7126 grub_multiboot_load_elf64): Move from here ...
7127 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
7128 grub_multiboot_load_elf): ... to here (new file).
7129
51cd3dfc 71302009-02-27 Robert Millan <rmh@aybabtu.com>
7131
7132 * util/grub.d/10_linux.in: Rename "single-user mode" to
7133 "recovery mode".
7134
6e8c9c3a 71352009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 Don't leak in SCSI code.
7138 * disk/scsi.c (grub_scsi_close): free `scsi'.
7139
4b6bf4f9 71402009-02-27 Robert Millan <rmh@aybabtu.com>
7141
7142 * loader/i386/pc/multiboot.c: Move from here ...
7143 * loader/i386/multiboot.c: ... to here. Update all users.
7144
b9413424 71452009-02-27 Robert Millan <rmh@aybabtu.com>
7146
7147 Patch from Alexandre Bique <bique.alexandre@gmail.com>
7148 * util/i386/pc/grub-setup.c (setup): Fix directory path.
7149
50fb7002 71502009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 7151
7152 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
7153 b-tree.
7154
8cc50345 71552009-02-27 Robert Millan <rmh@aybabtu.com>
7156
7157 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
7158 `0x' qualifier as 0 when base is specified as parameter).
7159
6e09b8b7 71602009-02-24 Bean <bean123ch@gmail.com>
7161
7162 * configure.ac: Check for -mcmodel=large in x86_64 target.
7163
7164 * include/grub/efi/api.h (efi_call_10): New macro.
7165 (efi_wrap_10): New function.
7166
7167 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
7168 (GRUB_PE32_REL_BASED_HIGH): Likewise.
7169 (GRUB_PE32_REL_BASED_LOW): Likewise.
7170 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
7171 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
7172 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
7173 (GRUB_PE32_REL_BASED_SECTION): Likewise.
7174 (GRUB_PE32_REL_BASED_REL): Likewise.
7175 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
7176 (GRUB_PE32_REL_BASED_DIR64): Likewise.
7177 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
7178
7179 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
7180 issue.
7181
7182 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
7183 (efi_wrap_10): New function.
7184
7185 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
7186
7187 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
7188 MB/MBP model (NV chipset).
7189 (devdata_devs): Add devpath_5 to the list.
7190
7191 * load/i386/efi/linux.c (video_base): Remove variable.
7192 (RGB_MASK): New macro.
7193 (RGB_MAGIC): Likewise.
7194 (LINE_MIN): Likewise.
7195 (LINE_MAX): Likewise.
7196 (FBTEST_STEP): Likewise.
7197 (FBTEST_COUNT): Likewise.
7198 (fb_list): New variable.
7199 (grub_find_video_card): Remove function.
7200 (find_framebuf): New function.
7201 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
7202 line length.
7203
7204 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
7205 problem for x86_64.
7206
74b21bee 72072009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
7208
7209 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
7210
7211 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
7212 coding tool name.
7213
a455f472 72142009-02-22 Robert Millan <rmh@aybabtu.com>
7215
7216 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
7217 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
7218 in our relocation, instead of using it directly from heap. Also
7219 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
7220
6374daf3 72212009-02-21 Robert Millan <rmh@aybabtu.com>
7222
7223 Implement USB keyboard support (based on patch by Marco Gerards)
7224
7225 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
7226 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
7227 (usb_keyboard_mod_LDFLAGS): New variables.
7228
7229 * term/usb_keyboard.c: New file.
7230
8fa4ea70 72312009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 Corrected wrong declaration
7234
7235 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
7236
353976ac 72372009-02-14 Christian Franke <franke@computer.org>
7238
7239 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
7240 (grub_lspci_iter): Print class code and programming interface byte.
7241
6aa1169b 72422009-02-14 Christian Franke <franke@computer.org>
7243
7244 * gendistlist.sh: Ignore `.svn' directories.
7245
265372ca 72462009-02-14 Felix Zielcke <fzielcke@z-51.de>
7247
7248 * fs/fat.c: Add 2009 to Copyright line.
7249
9ff516f3 72502009-02-14 Christian Franke <franke@computer.org>
7251
7252 * commands/hdparm.c: New file. Provides `hdparm' command
7253 which sends ATA commands via grub_disk_ata_pass_through ().
7254
7255 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
7256
7257 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
7258 and <grub/cpu/io.h> to include/grub/ata.h.
7259 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
7260 (GRUB_CDROM_SECTOR_SIZE): Remove.
7261 (GRUB_ATA_*): Move to include/grub/ata.h.
7262 (GRUB_ATAPI_*): Likewise.
7263 (enum grub_ata_commands): Likewise.
7264 (enum grub_ata_timeout_milliseconds): Likewise.
7265 (struct grub_ata_device): Likewise.
7266 (grub_ata_regset): Likewise.
7267 (grub_ata_regget): Likewise.
7268 (grub_ata_regset2): Likewise.
7269 (grub_ata_regget2): Likewise.
7270 (grub_ata_check_ready): Likewise.
7271 (grub_ata_wait_not_busy): Remove static, exported in
7272 include/grub/ata.h.
7273 (grub_ata_wait_drq): Likewise.
7274 (grub_ata_pio_read): Likewise.
7275
7276 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
7277 function for hdparm.mod.
7278
7279 * include/grub/ata.h: New file, contains declarations from
7280 disk/ata.c.
7281 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
7282
7283 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
7284 (grub_disk_ata_pass_through): New exported variable.
7285
7286 * kern/disk.c (grub_disk_ata_pass_through): New variable.
7287
772e23da 72882009-02-13 Colin D Bennett <colin@gibibit.com>
7289
7290 Support multiple fallback entries, and provide an API to support
7291 executing default+fallback menu entries. Renamed the `terminal' menu
7292 viewer to `text'.
7293
7294 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
7295 variable declaration.
7296 (grub_menu_execute_callback): New structure declaration.
7297 (grub_menu_execute_callback_t): New typedef.
7298 (grub_menu_execute_with_fallback): New function declaration.
7299 (grub_menu_get_entry): Likewise.
7300 (grub_menu_get_timeout): Likewise.
7301 (grub_menu_set_timeout): Likewise.
7302
7303 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
7304
7305 * normal/menu.c (grub_wait_after_message): Moved to
7306 `normal/menu_text.c'.
7307 (draw_border): Likewise.
7308 (print_message): Likewise.
7309 (print_entry): Likewise.
7310 (print_entries): Likewise.
7311 (grub_menu_init_page): Likewise.
7312 (get_entry_number): Likewise.
7313 (print_timeout): Likewise.
7314 (run_menu): Likewise.
7315 (grub_menu_execute_entry): Likewise.
7316 (show_text_menu): Likewise.
7317 (get_and_remove_first_entry_number): New function.
7318 (grub_menu_execute_with_fallback): Likewise.
7319 (get_entry): Renamed to ...
7320 (grub_menu_get_entry): .. this and made it global.
7321 (get_timeout): Renamed to ...
7322 (grub_menu_get_timeout): ... this and made it global.
7323 (set_timeout): Renamed to ...
7324 (grub_menu_set_timeout): ... this and made it global.
7325 (grub_normal_terminal_menu_viewer): Renamed to ...
7326 (grub_normal_text_menu_viewer): ... this.
7327
7328 * normal/menu_text.c: New file. Extracted text-menu-specific code
7329 from normal/menu.c.
7330
7331 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
7332 (normal_mod_SOURCES): Likewise.
7333
7334 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7335 (normal_mod_SOURCES): Likewise.
7336
7337 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7338 (normal_mod_SOURCES): Likewise.
7339
7340 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
7341 (normal_mod_SOURCES): Likewise.
7342
7343 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7344 (normal_mod_SOURCES): Likewise.
7345
7346 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7347 (normal_mod_SOURCES): Likewise.
7348
7349 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7350 (normal_mod_SOURCES): Likewise.
7351
16ac430e 73522009-02-11 Robert Millan <rmh@aybabtu.com>
7353
7354 * util/grub.d/00_header.in: Update old reference to `font' command.
7355
06ff20fc 73562009-02-10 Felix Zielcke <fzielcke@z-51.de>
7357
7358 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
7359
7360 Based on patch from Javier Martín.
7361
96da9407 73622009-02-09 Felix Zielcke <fzielcke@z-51.de>
7363
7364 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 7365 to avoid false positives with FAT.
96da9407 7366 (grub_fstest_SOURCES): Likewise.
7367 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
7368 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7370 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
7371 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7372 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7373
6dca6fe4 73742009-02-09 Felix Zielcke <fzielcke@z-51.de>
7375
06ff20fc 7376 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 7377 bpb.version_specific.fat12_or_fat16.fstype and
7378 bpb.version_specific.fat32.fstype.
7379
2550c62f 73802009-02-08 Robert Millan <rmh@aybabtu.com>
7381
be110b30 7382 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 7383
56978920 73842009-02-08 Robert Millan <rmh@aybabtu.com>
7385
7386 * Makefile.in (host_os, host_cpu): New variables.
7387 (target_os): Remove. Update all users.
7388
d64399b5 73892009-02-08 Marco Gerards <marco@gnu.org>
7390
7391 * Makefile.in (enable_grub_emu_usb): New variable.
7392 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
7393 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
7394 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
7395 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
7396 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
7397 `usbtest.mod' and `usbms.mod'.
7398 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
7399 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
7400 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
7401 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
7402 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
7403 variables.
7404
7405 * disk/usbms.c: New file.
7406
7407 * include/grub/usb.h: Likewise.
7408
7409 * include/grub/usbtrans.h: Likewise.
7410
7411 * include/grub/usbdesc.h: Likewise.
7412
7413 * bus/usb/usbtrans.c: Likewise.
7414
7415 * bus/usb/ohci.c: Likewise.
7416
7417 * bus/usb/uhci.c: Likewise.
7418
7419 * bus/usb/usbhub.c: Likewise.
7420
7421 * bus/usb/usb.c: Likewise.
7422
7423 * commands/usbtest.c: Likewise.
7424
7425 * util/usb.c: Likewise.
50fb7002 7426
d64399b5 7427 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
7428
7429 * configure.ac: Test for libusb presence.
50fb7002 7430
d64399b5 7431 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
7432
2b40d6bb 74332009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
7434
7435 * kern/mm.c: Add more comments.
7436
73a4ce81 74372009-02-08 Robert Millan <rmh@aybabtu.com>
7438
7439 Patch from Javier Martín.
7440 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
7441 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
7442
f821ce59 74432009-02-08 Robert Millan <rmh@aybabtu.com>
7444
7445 * fs/cpio.c: Split tar functionality to ...
7446 * fs/tar.c: ... here (new file). Update all users.
7447
aebfc4b0 74482009-02-07 Robert Millan <rmh@aybabtu.com>
7449
7450 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
7451 backward-incompatible features.
7452
7453 Based on patch from Javier Martín, with some adjustments.
7454
50fb7002 74552009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 7456
7457 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
7458
0bb5115e 74592009-02-07 Robert Millan <rmh@aybabtu.com>
7460
7461 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
7462 position of `disk/lvm.c' to ensure grub_init_all() always picks it
7463 after the RAID stuff.
7464
38a0f8e7 74652009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
7466
50fb7002 7467 Fixes problem when running vbetest command as reported by
38a0f8e7 7468 Vladimir Serbinenko <phcoder@gmail.com>.
7469
7470 * (grub_vbe_set_video_mode): Fixed problem with text modes.
7471
3143cc1c 74722009-02-04 Felix Zielcke <fzielcke@z-51.de>
7473
7474 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
7475 /dev/md/NpN style mdraid devices.
7476
9cba6fce 74772009-02-03 Felix Zielcke <fzielcke@z-51.de>
7478
7479 * util/unifont2pff.rb: Remove.
7480
e507a2c1 74812009-02-03 Felix Zielcke <fzielcke@z-51.de>
7482
7483 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
7484 `#'.
7485
d2c2b4cd 74862009-02-03 Felix Zielcke <fzielcke@z-51.de>
7487
7488 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
7489 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
7490 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
7491 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
7492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7493 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7494 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7495
b4315fb0 74962009-02-02 Christian Franke <franke@computer.org>
7497
7498 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
7499
de3aa260 75002009-02-01 Felix Zielcke <fzielcke@z-51.de>
7501
7c3ff286 7502 * INSTALL: Note that we now require at least autoconf 2.59 and
7503 that LZO is optional.
de3aa260 7504
825a182b 75052009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7506
7507 Base on patch on bug #24154 created by Tomas Tintera
7508 <trosos@seznam.cz>.
7509
7510 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
7511
a69ef770 75122009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
7513
7c3ff286 7514 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 7515 <bero@arklinux.org>.
7516
7517 * normal/parser.y (script_init): Add missing semicolon.
7518
6fa42fa6 75192009-01-31 Colin D Bennett <colin@gibibit.com>
7520
7c3ff286 7521 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 7522 (free_menu_entry_classes): Added.
7523 (grub_normal_menu_addentry): Added class property handling.
7524 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
7525 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
7526
7527 * normal/menu_viewer.c: New file.
7528
7529 * normal/menu.c (run_menu_entry): Renamed to ...
7530 (grub_menu_execute_entry): ... this and made it as global.
7531 (grub_menu_run): Renamed to ...
7532 (show_text_menu): ... this and made it local.
7533 (show_text_menu): Adapt to new function names.
7534 (grub_normal_terminal_menu_viewer): New global variable.
7535
7536 * include/grub/menu.h: New file.
7537
7538 * include/grub/menu_viewer.h: New file.
7539
7540 * include/grub/normal.h: Added include to grub/menu.h.
7541 (grub_menu_entry): Moved to include/grub/menu.h.
7542 (grub_menu_entry_t): Likewise.
7543 (grub_menu): Likewise.
7544 (grub_menu_t): Likewise.
7545 (grub_normal_terminal_menu_viewer): Added.
7546 (grub_menu_execute_entry): Likewise.
7547 (grub_menu_run): Removed.
7548
7549 * DISTLIST: Added include/grub/menu.h.
7550 Added include/grub/menu_viewer.h.
7551 Added normal/menu_viewer.c.
7552
75532009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
7554
7555 * normal/execute.c (grub_script_execute_menuentry): Changed to use
7556 arglist for menutitle arguments.
7557
7558 * normal/main.c (grub_normal_menu_addentry): Likewise.
7559
7560 * normal/parser.y (menuentry): Likewise.
7561
7562 * normal/script.c (grub_script_create_cmdmenu): Likewise.
7563
7564 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
7565 (grub_script_create_cmdmenu): Likewise.
7566
7567 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
7568
7569 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
7570 changes.
7571
7572 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
7573
7574 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
7575
7576 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
7577
7578 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7579
7580 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7581
7582 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
7583
56192c23 75842009-01-30 Christian Franke <franke@computer.org>
7585
7586 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
7587 in option help text.
7588
d72521b3 75892009-01-27 Pavel Roskin <proski@gnu.org>
7590
7591 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
7592
994b5e84 75932009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7594
7595 * commands/lsmmap.c: Add include to grub/machine/memory.h.
7596
7597 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
7598
7599 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
7600 unregister function.
7601
6a7eab2c 76022009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
7603
7604 * disk/scsi.c (grub_scsi_read): Fix sign problem.
7605
7606 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
7607
7608 * util/grub-mkfont.c (usage): Fix typo.
7609
7610 * util/elf/grub-mkimage.c (load_modules): Fix warning.
7611
1806b56e 76122009-01-26 Daniel Mierswa <impulze@impulze.org>
7613
3fb18f09 7614 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
7615
336e1fb9 7616 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
7617
1806b56e 7618 * kern/misc.c (grub_strcasecmp): New function.
7619 (grub_strcasecmp): Use grub_size_t instead of int for length.
7620 Fix return value.
7621 * include/grub/misc.h: Update function prototypes.
7622
580b2a0f 76232009-01-26 Robert Millan <rmh@aybabtu.com>
7624
7625 * configure.ac: Fix cross-compilation check.
ef257b36 7626
d31c24f1 76272009-01-22 Christian Franke <franke@computer.org>
7628
7629 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
7630 (precision) digit string. Allow `.format2' without `format1' (width).
7631 Limit input chars for `%s' output to `format2' if specified. This is
7632 compatible with standard printf ().
7633
3138b44c 76342009-01-22 Christian Franke <franke@computer.org>
7635
7636 * disk/ata.c (grub_ata_wait_status): Replace by ...
7637 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
7638 other status bits may be invalid while BSY is asserted.
7639 (grub_ata_check_ready): New function.
7640 (grub_ata_cmd): Removed.
7641 (grub_ata_wait_drq): New function.
7642 (grub_ata_strncpy): Remove inline.
7643 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
7644 and error check now done by grub_ata_wait_drq ().
7645 (grub_ata_pio_write): Likewise.
7646 (grub_atapi_identify): Set DEV before check for !BSY. Use
7647 grub_ata_wait_drq () to wait for data.
7648 (grub_ata_device_initialize): Add status register check to
7649 detect missing SATA slave devices. Add debug messages.
7650 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
7651 (grub_atapi_packet): Set DEV before check for !BSY. Replace
7652 transfer loop by grub_ata_pio_write ().
7653 (grub_ata_identify): Set DEV before check for !BSY. Use
7654 grub_ata_wait_drq () to wait for data.
ef257b36 7655 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 7656 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
7657 read/write in one loop. Fix invalid command on write. Fix incomplete
7658 command on (size % batch) == 0. Add missing error check after write of
7659 last block. Add debug messages.
7660 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
7661
59a64ef6 76622009-01-19 Christian Franke <franke@computer.org>
7663
7664 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
7665 (GRUB_ATAPI_IREASON_*): Likewise.
7666 (grub_ata_pio_write): Fix timeout error return.
7667 (grub_atapi_identify): Add grub_ata_wait () after cmd.
7668 (grub_atapi_wait_drq): New function.
7669 (grub_atapi_packet): New parameter `size'.
7670 Use grub_atapi_wait_drq () and direct write instead of
7671 grub_ata_pio_write ().
7672 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
7673 reads the number of bytes requested by the device for each DRQ
7674 assertion.
7675 (grub_atapi_write): Remove old implementation, return not
7676 implemented instead.
7677
1cfe20b3 76782009-01-19 Christian Franke <franke@computer.org>
7679
7680 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
7681 of 512 to calculate data size.
7682 (grub_scsi_read12): Likewise.
7683 (grub_scsi_write10): Likewise.
7684 (grub_scsi_write12): Likewise.
7685 (grub_scsi_read): Adjust size according to blocksize.
7686 Add checks for invalid blocksize and unaligned transfer.
7687
bee5fe5d 76882009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
7689
7690 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
7691
ef257b36 7692 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 7693 width glyphs.
7694
3e643f8c 76952009-01-19 Robert Millan <rmh@aybabtu.com>
7696
7697 * config.guess: Update to latest version from config git.
7698 * config.sub: Likewise.
7699
4fa80998 77002009-01-17 Felix Zielcke <fzielcke@z-51.de>
7701
7702 * Makefile.in: Change font compilation to use new grub-mkfont instead
7703 of java version.
7704
7705 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
7706 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
7707 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7708 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
7709 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
7710 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
7711 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
7712 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
7713 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7714
7086085b 77152009-01-16 Christian Franke <franke@computer.org>
7716
7717 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
7718 (enum grub_ata_timeout_milliseconds): New enum.
7719 (grub_ata_wait_status): Add parameter milliseconds.
7720 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
7721 recovery from timed-out commands.
7722 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
7723 return grub_errno instead of REG_ERROR.
7724 (grub_ata_pio_write): Add parameter milliseconds.
7725 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
7726 Pass milliseconds to grub_ata_wait_status () and
7727 grub_ata_pio_read ().
7728 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
7729 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
7730 grub_ata_wait_status (). Fix IDENTIFY timeout check.
7731 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
7732 It is not suitable for device detection, because DEV bit is ignored,
7733 the command may run too long, and not all devices set the signature
7734 properly.
7735 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
7736 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
7737 Fix device selection, DEV bit must be set first to address the registers
7738 of the correct device.
7739 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
7740 grub_ata_pio_read/write ().
7741 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
7742 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
7743
4a412913 77442009-01-13 Carles Pina i Estany <carles@pina.cat>
7745
7746 * util/grub-editenv.c (main): Use fseeko(), not fseek().
7747
7795c55e 77482009-01-13 Bean <bean123ch@gmail.com>
d913988c 7749
7750 * util/grub-mkfont.c (write_font): forget to remove some debug code.
7751
7795c55e 77522009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 7753
7754 * Makefile.in: (enable_grub_mkfont): New variable.
7755 (freetype_cflags): Likewise.
7756 (freetype_libs): Likewise.
7757
7758 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
7759 (grub_mkfont_SOURCES): New variable.
7760 (grub_mkfont_CFLAGS): Likewise.
7761 (grub_mkfont_LDFLAGS): Likewise.
7762
7763 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
7764 library if `--enable-grub-mkfont' is requested.
7765 (enable_grub_mkfont): New variable.
7766 (freetype_cflags): Likewise.
7767 (freetype_libs): Likewise.
7768
7769 * util/grub-mkfont.c: New file.
7770
093af1fe 77712009-01-12 Christian Franke <franke@computer.org>
7772
7773 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
7774 mode check. Fix setting of compat_use[].
7775
f36cc108 77762009-01-10 Robert Millan <rmh@aybabtu.com>
7777
7778 Update a few copyright years which we forgot to do in 2008 (only for
7779 files whose changes made in 2008 were copyright-significant)
7780
7781 * Makefile.in: Add 2008 to Copyright line.
7782 * disk/ieee1275/ofdisk.c: Likewise.
7783 * disk/efi/efidisk.c: Likewise.
7784 * kern/dl.c: Likewise.
7785 * kern/sparc64/ieee1275/init.c: Likewise.
7786 * kern/mm.c: Likewise.
7787 * kern/efi/mm.c: Likewise.
7788 * boot/i386/pc/boot.S: Likewise.
7789 * genfslist.sh: Likewise.
7790 * fs/iso9660.c: Likewise.
7791 * fs/hfs.c: Likewise.
7792 * fs/jfs.c: Likewise.
7793 * fs/minix.c: Likewise.
7794 * fs/ufs.c: Likewise.
7795 * gensymlist.sh.in: Likewise.
7796 * genkernsyms.sh.in: Likewise.
7797 * include/grub/misc.h: Likewise.
7798 * include/grub/types.h: Likewise.
7799 * include/grub/symbol.h: Likewise.
7800 * include/grub/elf.h: Likewise.
7801 * include/grub/kernel.h: Likewise.
7802 * include/grub/disk.h: Likewise.
7803 * include/grub/dl.h: Likewise.
7804 * include/grub/i386/linux.h: Likewise.
7805 * include/grub/i386/pc/biosdisk.h: Likewise.
7806 * include/grub/efi/api.h: Likewise.
7807 * include/grub/efi/pe32.h: Likewise.
7808 * include/grub/util/misc.h: Likewise.
7809 * normal/execute.c: Likewise.
7810 * normal/arg.c: Likewise.
7811 * normal/completion.c: Likewise.
7812 * normal/lexer.c: Likewise.
7813 * normal/parser.y: Likewise.
7814 * normal/misc.c: Likewise.
7815 * commands/i386/pc/vbeinfo.c: Likewise.
7816 * commands/hexdump.c: Likewise.
7817 * commands/terminal.c: Likewise.
7818 * commands/ls.c: Likewise.
7819 * commands/help.c: Likewise.
7820 * partmap/pc.c: Likewise.
7821 * loader/efi/chainloader.c: Likewise.
7822 * loader/multiboot_loader.c: Likewise.
7823 * loader/i386/pc/multiboot2.c: Likewise.
7824 * term/efi/console.c: Likewise.
7825 * term/i386/pc/serial.c: Likewise.
7826 * util/lvm.c: Likewise.
7827 * util/console.c: Likewise.
7828 * util/i386/efi/grub-mkimage.c: Likewise.
7829 * util/raid.c: Likewise.
7830
7f02114b 78312009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
7832
7833 * commands/videotest.c: Removed include to grub/machine/memory.h.
7834
7835 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
7836 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
7837 (video_mod_SOURCES): Removed.
7838 (video_mod_CFLAGS): Likewise.
7839 (video_mod_LDFLAGS): Likewise.
7840 (gfxterm_mod_SOURCES): Likewise.
7841 (gfxterm_mod_CFLAGS): Likewise.
7842 (gfxterm_mod_LDFLAGS): Likewise.
7843 (videotest_mod_SOURCES): Likewise.
7844 (videotest_mod_CFLAGS): Likewise.
7845 (videotest_mod_LDFLAGS): Likewise.
7846 (bitmap_mod_SOURCES): Likewise.
7847 (bitmap_mod_CFLAGS): Likewise.
7848 (bitmap_mod_LDFLAGS): Likewise.
7849 (tga_mod_SOURCES): Likewise.
7850 (tga_mod_CFLAGS): Likewise.
7851 (tga_mod_LDFLAGS): Likewise.
7852 (jpeg_mod_SOURCES): Likewise.
7853 (jpeg_mod_CFLAGS): Likewise.
7854 (jpeg_mod_LDFLAGS): Likewise.
7855 (png_mod_SOURCES): Likewise.
7856 (png_mod_CFLAGS): Likewise.
7857 (png_mod_LDFLAGS): Likewise.
7858
7859 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
7860 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
7861 (video_mod_SOURCES): Added.
7862 (video_mod_CFLAGS): Likewise.
7863 (video_mod_LDFLAGS): Likewise.
7864 (videotest_mod_SOURCES): Likewise.
7865 (videotest_mod_CFLAGS): Likewise.
7866 (videotest_mod_LDFLAGS): Likewise.
7867 (bitmap_mod_SOURCES): Likewise.
7868 (bitmap_mod_CFLAGS): Likewise.
7869 (bitmap_mod_LDFLAGS): Likewise.
7870 (tga_mod_SOURCES): Likewise.
7871 (tga_mod_CFLAGS): Likewise.
7872 (tga_mod_LDFLAGS): Likewise.
7873 (jpeg_mod_SOURCES): Likewise.
7874 (jpeg_mod_CFLAGS): Likewise.
7875 (jpeg_mod_LDFLAGS): Likewise.
7876 (png_mod_SOURCES): Likewise.
7877 (png_mod_CFLAGS): Likewise.
7878 (png_mod_LDFLAGS): Likewise.
7879 (gfxterm_mod_SOURCES): Likewise.
7880 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 7881 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 7882
7883 * term/gfxterm.c: Removed include to grub/machine/memory.h,
7884 grub/machine/console.h.
7885
644fff97 78862009-01-04 Jerone Young <jerone@gmail.com>
7887
7888 Make on screen instructions clearer
7889
7890 Based on patch created by Jidanni <jidanni@jidanni.org>
7891
7892 * normal/menu.c: print clearer instructions on the screen
7893
1e901a75 78942009-01-02 Colin D Bennett <colin@gibibit.com>
7895
7896 New font engine.
34c44600 7897
1e901a75 7898 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
7899 build system and fixed gfxterm.c to work with different sized fonts.
7900
7901 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 7902
1e901a75 7903 * configure: Re-generated.
34c44600 7904
1e901a75 7905 * DISTLIST: Removed font/manager.c.
7906 Added font/font.c.
7907 Added font/font_cmd.c.
34c44600 7908
1e901a75 7909 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
7910 compilation.
34c44600 7911
1e901a75 7912 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 7913
7914 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 7915
7916 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 7917
1e901a75 7918 * normal/menu.c: Likewise.
34c44600 7919
1e901a75 7920 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
7921 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 7922
1e901a75 7923 * include/grub/font.h: Replaced with new file.
34c44600 7924
1e901a75 7925 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
7926 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
7927 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
7928 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
7929 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 7930 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 7931 fg_red, fg_green, fg_blue, fg_alpha.
7932 (grub_video_adapter): Removed blit_glyph.
34c44600 7933 (grub_video_blit_glyph): Removed.
7934
1e901a75 7935 * font/manager.c: Removed file.
34c44600 7936
7937 * font/font.c: New file.
7938
1e901a75 7939 * font/font_cmd.c: Likewise.
34c44600 7940
1e901a75 7941 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 7942
1e901a75 7943 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
7944 (grub_video_vbe_map_rgba): Likewise.
7945 (grub_video_vbe_unmap_color_int): Likewise.
7946 (grub_video_vbe_blit_glyph): Removed.
7947 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 7948
1e901a75 7949 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
7950 (get_pixel): Likewise.
34c44600 7951 (set_pixel): Likewise.
7952
1e901a75 7953 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 7954
1e901a75 7955 * term/gfxterm.c: Adapted to new font engine.
34c44600 7956
1e901a75 7957 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 7958
1e901a75 7959 * term/i386/pc/vga.c: Likewise.
34c44600 7960
1e901a75 7961 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 7962
1e901a75 7963 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 7964
1e901a75 7965 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 7966
1e901a75 7967 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 7968
1e901a75 7969 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 7970
1e901a75 7971 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 7972
1e901a75 7973 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 7974
1e901a75 7975 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 7976
1e901a75 7977 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
7978
7979 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 7980
1e901a75 7981 * util/grub-mkconfig_lib.in: Changed font extension.
7982
278922e8 79832008-12-28 Felix Zielcke <fzielcke@z-51.de>
7984
7985 * util/getroot.c (grub_util_get_grub_dev): Add support for
7986 /dev/md/dNNpNN style partitionable mdraid devices.
7987
3ced05cf 79882008-12-12 Alex Smith <alex@alex-smith.me.uk>
7989
7990 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
7991 at a time limit of the PXE TFTP API correctly.
7992 (grub_pxefs_close): Likewise.
7993
7fd0ee30 79942008-11-29 Robert Millan <rmh@aybabtu.com>
7995
34c44600 7996 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 7997 grub_ata_device_initialize() calls.
7998
34c44600 79992008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 8000
8001 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
8002 iteration failed.
8003 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
8004
89313780 80052008-11-28 Robert Millan <rmh@aybabtu.com>
8006
8007 Fix build on powerpc-ieee1275. Based on patch created by
8008 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
8009 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8010 `kern/ieee1275/mmap.c'.
8011 * include/grub/powerpc/ieee1275/memory.h: New file.
8012
15257703 8013 Provide grub-install on coreboot.
8014 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
8015 (grub_install_SOURCES): New variable.
8016 * util/i386/pc/grub-install.in: Add a few condition checks to make it
8017 usable on coreboot.
8018
9fc5388a 80192008-11-25 Felix Zielcke <fzielcke@z-51.de>
8020
8021 * util/grub-fstest.c (grub_term_get_current_input): Change return type
8022 to `grub_term_input_t'.
8023 (grub_term_get_current_output): Change return type to
8024 `grub_term_output_t'.
8025
bc3a2f31 80262008-11-22 Robert Millan <rmh@aybabtu.com>
8027
34c44600 8028 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 8029 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
8030 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
8031 grub_vga_text_cls().
8032
80fc88f2 8033 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 8034 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 8035
cbf36fd3 8036 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
8037 to 0x200000 (avoids trouble with some OFW implementations, and matches
8038 with the one in Yaboot).
8039 Reported by Manoel Abranches
8040
73e8e268 80412008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 8042
8043 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
8044 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
8045
73e8e268 8046 * util/grub-mkconfig_lib.in (grub_warn): New function.
8047 (convert_system_path_to_grub_path): Use grub_warn() when issuing
8048 warnings, to obtain consistent formatting.
8049 * util/grub.d/00_header.in: Likewise.
8050 * util/update-grub_lib.in: Likewise.
8051
e94045a1 8052 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 8053 Move comment text to `#error' stanza.
e94045a1 8054
79d29fd7 8055 Harmonize ieee1275's grub_available_iterate() with the generic
8056 grub_machine_mmap_iterate() interface (fixes a recently-introduced
8057 build problem on i386-ieee1275):
8058 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
8059 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
8060 parameter `type'. Update all users of this function.
8061 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
8062 `kern/ieee1275/mmap.c'.
8063 * kern/ieee1275/init.c
8064 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
8065 with ...
8066 (grub_machine_mmap_iterate): ... this.
8067 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
8068 return type to `grub_err_t'. Update all implementations of this
8069 function prototype.
8070 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
8071 Likewise.
8072
60d6b16e 8073 Add `lsmmap' command (lists firmware-provided memory map):
8074 * commands/lsmmap.c: New file.
8075 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
8076 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
8077 variables.
8078 * conf/powerpc-ieee1275.rmk: Likewise.
8079 * conf/i386-coreboot.rmk: Likewise.
8080 * conf/i386-ieee1275.rmk: Likewise.
8081
ebaaf49b 80822008-11-19 Robert Millan <rmh@aybabtu.com>
8083
8084 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 8085 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
8086 constraints to initrd allocation (based on code from
8087 loader/i386/pc/linux.c). Without them, initrd was allocated too high
8088 for Linux to find it.
ebaaf49b 8089
dfab719f 80902008-11-14 Robert Millan <rmh@aybabtu.com>
8091
8092 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
8093 order to cope with duplicate slashes.
8094
10fc3eb9 80952008-11-14 Robert Millan <rmh@aybabtu.com>
8096
8097 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
8098 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
8099 don't want to mess with lower memory, because it is used in the Linux
8100 loader.
8101
8102 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 8103 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 8104 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
8105 is in our heap (probably as a result of it being corrupted during
2f2a3442 8106 decompression). Add #error instance with comment to explain why this
8107 loader isn't currently usable on PC/BIOS.
10fc3eb9 8108
e2e07847 81092008-11-14 Robert Millan <rmh@aybabtu.com>
8110
8111 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 8112 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 8113
fe8e8d69 81142008-11-12 Robert Millan <rmh@aybabtu.com>
8115
8116 Make loader/i386/linux.c buildable on i386-pc (although disabled).
8117
8118 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
8119 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
8120 from here ...
8121 * include/grub/i386/pc/memory.h: ... to here.
8122
976b07d0 81232008-11-12 Robert Millan <rmh@aybabtu.com>
8124
8125 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
8126 split).
8127
8128 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
8129 (grub_console_cur_color, grub_console_real_putchar)
8130 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
8131 (grub_console_setcolorstate, grub_console_setcolor)
8132 (grub_console_getcolor): Move from here ...
8133 * include/grub/i386/vga_common.h: ... to here (new file).
8134
8135 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
8136 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
8137 `<grub/i386/io.h>'.
8138 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
8139 `<grub/i386/vga_common.h>'.
8140
76679cd3 81412008-11-12 Robert Millan <rmh@aybabtu.com>
8142
8143 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
8144 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
8145 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
8146 variables.
8147 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
8148 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
8149
8150 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
8151 grub_console_init() with call to grub_vga_text_init().
8152 (grub_machine_fini): Replace call to
8153 grub_console_fini() with call to grub_vga_text_fini() and
8154 grub_at_keyboard_fini().
8155
8156 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
8157 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
8158 (grub_console_setcolorstate, grub_console_setcolor)
8159 (grub_console_getcolor): New function prototypes.
8160
8161 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
8162 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
8163 (grub_vga_text_setcursor): Static-ize.
8164 (grub_vga_text_term): New structure.
8165 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
8166
8167 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
8168 (grub_console_cur_color, grub_console_standard_color)
8169 (grub_console_normal_color, grub_console_highlight_color)
8170 (map_char, grub_console_putchar, grub_console_getcharwidth)
8171 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
8172 (grub_console_getcolor): Move from here ...
8173 * term/i386/vga_common.c: ... to here (same function names).
8174
95b841d3 81752008-11-12 Robert Millan <rmh@aybabtu.com>
8176
8177 Use newly-added Multiboot support in coreboot.
8178
8179 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
8180 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
8181
8182 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
8183 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
8184 (codestart): Store the MBI in `startup_multiboot_info' when we're
8185 being loaded using Multiboot.
8186
8187 * kern/i386/coreboot/init.c (grub_machine_init): Move
8188 grub_at_keyboard_init() call to beginning of function (useful for
8189 debugging). Call grub_machine_mmap_init() before attempting to use
8190 grub_machine_mmap_iterate().
8191 (grub_lower_mem, grub_upper_mem): Move from here ...
8192 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
8193 here (new file).
8194
8195 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
8196 function prototype.
8197
761ca975 81982008-11-12 Robert Millan <rmh@aybabtu.com>
8199
8200 Fix a regression introduced by the at_keyboard.mod split. Because
8201 some terminals are default on some platforms and non-default on
8202 others, the first terminal being registered determines which is
8203 going to be default.
8204
8205 * kern/term.c (grub_term_register_input): If this is the first
8206 terminal being registered, set it as the current one.
8207 (grub_term_register_output): Likewise.
8208
8209 * term/efi/console.c (grub_console_init): Do not call
8210 grub_term_set_current_output() or grub_term_set_current_input().
8211 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
8212 * term/i386/pc/console.c (grub_console_init): Likewise.
8213 (grub_console_fini): Do not call grub_term_set_current_input()
8214 (but leave grub_term_set_current_output() to restore text mode).
8215
6c529df7 82162008-11-10 Robert Millan <rmh@aybabtu.com>
8217
8218 * util/grub.d/00_header.in: Add backward compatibility check for
8219 versions of terminal.mod that don't understand `terminal_input' or
8220 `terminal_output'.
8221
132e4113 82222008-11-09 Robert Millan <rmh@aybabtu.com>
8223
8224 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
8225 `terminal_input' / `terminal_output', not `terminal'.
8226
ac293d50 82272008-11-08 Robert Millan <rmh@aybabtu.com>
8228
8229 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 8230 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 8231
0025933a 82322008-11-08 Robert Millan <rmh@aybabtu.com>
8233
8234 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 8235 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 8236 members. Update all users.
8237 * util/console.c (grub_ncurses_term): Split in ...
8238 (grub_ncurses_term_input): ... this, and ...
8239 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 8240 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 8241
37c86336 82422008-11-08 Robert Millan <rmh@aybabtu.com>
8243
8244 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
8245 (PKGDATA): Add $(pkgdata_SRCDIR).
8246 (pkglib_BUILDDIR): New variable.
8247 (pkgdata_SRCDIR): New variable.
8248 (build_env.mk): New target.
8249 (include_DATA): New variable.
8250 (install-local): Install $(include_DATA) files in $(includedir).
8251
b6c15a2d 82522008-11-07 Pavel Roskin <proski@gnu.org>
8253
d99d46f1 8254 * gendistlist.sh: Use C locale for sorting to ensure consistent
8255 output on all systems.
8256
b6c15a2d 8257 * util/grub.d/00_header.in: Remove incorrect space before
8258 "serial".
8259
c32ee8c9 82602008-11-07 Robert Millan <rmh@aybabtu.com>
8261
8262 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
8263 per specification.
8264 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
8265 * loader/multiboot_loader.c (find_multi_boot2_header): New function
8266 (based on find_multi_boot1_header).
8267 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
8268 using find_multi_boot2_header(), and abort if neither Multiboot or
8269 Multiboot headers were found.
8270
651c29b7 82712008-11-07 Robert Millan <rmh@aybabtu.com>
8272
8273 Modularize at_keyboard.mod:
8274
8275 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
8276 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
8277 (at_keyboard_mod_LDFLAGS): New variables.
8278
8279 Actual terminal split:
8280
8281 * include/grub/term.h (struct grub_term): Split in ...
8282 (struct grub_term_input): ... this, and ...
8283 (struct grub_term_output): ... this. Update all users.
8284 (grub_term_set_current): Split in ...
8285 (grub_term_set_current_input): ... this, and ...
8286 (grub_term_set_current_output): ... this.
8287 (grub_term_get_current): Split in ...
8288 (grub_term_get_current_input): ... this, and ...
8289 (grub_term_get_current_output): ... this.
8290 (grub_term_register): Split in ...
8291 (grub_term_register_input): ... this, and ...
8292 (grub_term_register_output): ... this.
8293 (grub_term_unregister): Split in ...
8294 (grub_term_unregister_input): ... this, and ...
8295 (grub_term_unregister_output): ... this.
8296 (grub_term_iterate): Split in ...
8297 (grub_term_iterate_input): ... this, and ...
8298 (grub_term_iterate_output): ... this.
8299
8300 * kern/term.c (grub_term_list): Split in ...
8301 (grub_term_list_input): ... this, and ...
8302 (grub_term_list_output): ... this. Update all users.
8303 (grub_cur_term): Split in ...
8304 (grub_cur_term_input): ... this, and ...
8305 (grub_cur_term_output): ... this. Update all users.
8306 (grub_term_set_current): Split in ...
8307 (grub_term_set_current_input): ... this, and ...
8308 (grub_term_set_current_output): ... this.
8309 (grub_term_get_current): Split in ...
8310 (grub_term_get_current_input): ... this, and ...
8311 (grub_term_get_current_output): ... this.
8312 (grub_term_register): Split in ...
8313 (grub_term_register_input): ... this, and ...
8314 (grub_term_register_output): ... this.
8315 (grub_term_unregister): Split in ...
8316 (grub_term_unregister_input): ... this, and ...
8317 (grub_term_unregister_output): ... this.
8318 (grub_term_iterate): Split in ...
8319 (grub_term_iterate_input): ... this, and ...
8320 (grub_term_iterate_output): ... this.
8321
8322 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
8323 a check for input and one for output (and only attempt to get keys
8324 from user when input works).
8325
8326 * util/grub-probe.c (grub_term_get_current): Split in ...
8327 (grub_term_get_current_input): ... this, and ...
8328 (grub_term_get_current_output): ... this.
8329 * util/grub-fstest.c: Likewise.
8330 * util/i386/pc/grub-setup.c: Likewise.
8331 * util/grub-editenv.c: Likewise.
8332
8333 Portability adjustments:
8334
8335 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
8336 `term/i386/pc/at_keyboard.c'.
8337 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
8338 grub_keyboard_controller_init() (now handled by terminal .init).
8339 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
8340 grub_at_keyboard_init().
8341 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
8342 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
8343 at_keyboard.mod via input terminal interface).
8344 * include/grub/i386/coreboot/console.h: Convert into a stub for
8345 `<grub/i386/pc/console.h>'.
8346
8347 Migrate full terminals to new API:
8348
8349 * term/efi/console.c (grub_console_term): Split into ...
8350 (grub_console_term_input): ... this, and ...
8351 (grub_console_term_output): ... this. Update all users.
8352 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
8353 (grub_ofconsole_init): Split into ...
8354 (grub_ofconsole_init_input): ... this, and ...
8355 (grub_ofconsole_init_output): ... this.
8356 (grub_ofconsole_term): Split into ...
8357 (grub_ofconsole_term_input): ... this, and ...
8358 (grub_ofconsole_term_output): ... this. Update all users.
8359 * term/i386/pc/serial.c (grub_serial_term): Split into ...
8360 (grub_serial_term_input): ... this, and ...
8361 (grub_serial_term_output): ... this. Update all users.
8362 * term/i386/pc/console.c (grub_console_term): Split into ...
8363 (grub_console_term_input): ... this, and ...
8364 (grub_console_term_output): ... this. Update all users.
8365 (grub_console_term_input): Only enable it on PC/BIOS platform.
8366 (grub_console_init): Remove grub_keyboard_controller_init() call.
8367
8368 Migrate input terminals to new API:
8369
8370 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
8371 `i386' and `i386/pc' to enable build on x86_64 (this driver is
8372 i386-specific anyway).
8373 (grub_console_checkkey): Rename to ...
8374 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
8375 users.
8376 (grub_keyboard_controller_orig): New variable.
8377 (grub_console_getkey): Rename to ...
8378 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
8379 users.
8380 (grub_keyboard_controller_init): Static-ize. Save original
8381 controller value so that it can be restored ...
8382 (grub_keyboard_controller_fini): ... here (new function).
8383 (grub_at_keyboard_term): New structure.
8384 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
8385 functions.
8386
8387 Migrate output terminals to new API:
8388
8389 * term/i386/pc/vga.c (grub_vga_term): Change type to
8390 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8391 members. Update all users.
8392 * term/gfxterm.c (grub_video_term): Change type to
8393 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
8394 members. Update all users.
8395 * include/grub/i386/pc/console.h (grub_console_checkkey)
8396 (grub_console_getkey): Do not export (no longer needed by gfxterm,
8397 etc).
8398
8399 Migrate `terminal' command and userland tools to new API:
8400
8401 * commands/terminal.c (grub_cmd_terminal): Split into ...
8402 (grub_cmd_terminal_input): ... this, and ...
8403 (grub_cmd_terminal_output): ... this.
8404 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
8405 `terminal_input' and `terminal_output'.
8406 * util/grub.d/00_header.in: Adjust `terminal' calls to new
8407 `terminal_input' / `terminal_output' API.
8408 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
8409 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
8410 provided ${GRUB_TERMINAL}, convert it).
8411
96e5d876 84122008-11-04 Robert Millan <rmh@aybabtu.com>
8413
8414 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
8415 for FreeBSD.
8416 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
8417
556f3775 84182008-11-03 Bean <bean123ch@gmail.com>
8419
8420 * kern/elf.c (grub_elf32_load): Revert to previous code.
8421 (grub_elf64_load): Likewise.
8422
8423 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
8424
926b9823 84252008-11-01 Robert Millan <rmh@aybabtu.com>
8426
8427 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
8428 (TARGET_CPPFLAGS): Likewise.
8429 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
8430
1432e958 84312008-11-01 Carles Pina i Estany <carles@pina.cat>
8432
8433 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
8434
dba3f844 84352008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 8436
8437 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
8438 addition of objects until the code is not going to be able to fail.
8439
dba3f844 84402008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 8441
8442 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
8443 (add a missing NULL check, and correct them by moving the pointer
8444 operations after the actual check).
8445
7ab28c21 84462008-10-29 Robert Millan <rmh@aybabtu.com>
8447
8448 * util/i386/pc/grub-install.in: Handle empty string as output from
8449 make_system_path_relative_to_its_root().
8450
1b7748eb 84512008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
8452
8453 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
8454 circular metadata worst case scenario. If the metadata is circular
8455 then copy the wrap in place.
8456 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
8457 project lib/format_text/layout.h
8458 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
8459
c9618ab2 84602008-10-03 Felix Zielcke <fzielcke@z-51.de>
8461
7a36edca 8462 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 8463
bf981c62 84642008-10-03 Felix Zielcke <fzielcke@z-51.de>
8465
8466 * util/update-grub_lib.in: Mention filename in warning message.
8467
6d994591 84682008-09-29 Felix Zielcke <fzielcke@z-51.de>
8469
8470 * NEWS: Update for rename of update-grub to grub-mkconfig.
8471
18ade780 84722008-09-29 Felix Zielcke <fzielcke@z-51.de>
8473
8474 * util/update-grub_lib.in: Copy to ...
8475 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 8476 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 8477 * util/update-grub.in: Rename to ...
8478 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
8479 option. Add `--output' option to allow users to specify the generated
8480 configuration file. Default to stdout.
8481 (update_grub_dir): Rename to ...
8482 (grub_mkconfig_dir): ... this.
8483 (grub_cfg): Default to an empty string.
8484 * conf/common.rmk (update-grub): Rename to ...
8485 (grub-mkconfig): ... this.
8486 (update-grub_lib): Copy to ...
8487 (grub-mkconfig_lib): ... this.
8488 (update-grub_SCRIPTS): Copy to ...
8489 (grub-mkconfig_SCRIPTS): ... this. Update all users.
8490 (update-grub_DATA): Rename to ...
8491 (grub-mkconfig_DATA): ... this.
8492
556ce6ac 84932008-09-28 Robert Millan <rmh@aybabtu.com>
8494
8495 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
8496 to `modified'. Add the real `created' field.
8497 (grub_iso9660_uuid): Use `modified' rather than `created' for
8498 constructing the UUID.
8499
85002008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 8501
8502 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
8503 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
8504
92274e85 85052008-09-28 Bean <bean123ch@gmail.com>
8506
8507 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
8508 Thanks to Christian Franke for finding this bug.
8509
add6f17a 85102008-09-25 Robert Millan <rmh@aybabtu.com>
8511
8512 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
8513 instances of grub_util_get_disk_name() (see previous commit).
8514
d2a367b8 85152008-09-25 Robert Millan <rmh@aybabtu.com>
8516
8517 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
8518 `util/i386/get_disk_name.c'.
8519 * conf/i386-efi.rmk: Likewise.
8520 * conf/x86_64-efi.rmk: Likewise.
8521 * conf/i386-coreboot.rmk: Likewise.
8522 * conf/i386-ieee1275.rmk: Likewise.
8523 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
8524 `util/ieee1275/get_disk_name.c'.
8525 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
8526 * util/ieee1275/get_disk_name.c: Remove file.
8527 * util/i386/get_disk_name.c: Remove file.
8528 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
8529 "hd%d" for device.map entries, rather than using
8530 grub_util_get_disk_name().
8531
81a06771 85322008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 8533
8534 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
8535 warning.
8536 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
8537
5a004279 85382008-09-24 Carles Pina i Estany <carles@pina.cat>
8539
8540 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
8541 Changed to 0x5100.
8542 (GRUB_TERM_PPAGE): Changed to 0x4900.
8543
397093d3 85442008-09-24 Robert Millan <rmh@aybabtu.com>
8545
8546 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
8547 macros (they were i386-pc specific).
8548 * include/grub/sparc64/ieee1275/console.h: Likewise.
8549 * include/grub/efi/console.h: Likewise.
8550
a91b6c7c 85512008-09-22 Bean <bean123ch@gmail.com>
8552
8553 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
8554 resident and in attribute list.
8555
8556 * include/grub/ntfs.h (BMP_LEN): Removed.
8557
c40fd116 85582008-09-22 Bean <bean123ch@gmail.com>
8559
81a06771 8560 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 8561 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
8562
8563 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
8564 error occurs, as grub_disk_open will call grub_disk_close, which will
8565 call p->close (scsi).
8566
81a06771 85672008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 8568
8569 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
8570 (AC_PREREQ): Bumped to 2.59.
8571 (AC_TRY_COMPILE): Replace obsolete macro with ...
8572 (AC_COMPILE_IFELSE): ... this.
8573 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
8574 (AC_LINK_IFELSE): ... this.
8575
5dc43410 85762008-09-21 Felix Zielcke <fzielcke@z-51.de>
8577
8578 * autogen.sh: Add a call to `gendistlist.sh'.
8579
9035dce4 85802008-09-19 Christian Franke <franke@computer.org>
8581
8582 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
8583 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
8584 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
8585 Export __enable_execute_stack() to modules.
8586 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
8587 New function.
8588
7fd75377 85892008-09-09 Felix Zielcke <fzielcke@z-51.de>
8590
040030b3 8591 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
8592 Sort the list.
8593
85942008-09-09 Felix Zielcke <fzielcke@z-51.de>
8595
8596 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 8597 #include <grub/util/hostdisk.h>.
8598
89d5ffcf 85992008-09-08 Robert Millan <rmh@aybabtu.com>
8600
8601 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
8602 segments when their filesz is zero (grub_file_read() interprets
81a06771 8603 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 8604 Use `lowest_segment' rather than 0 for calculating the current
8605 segment load address.
8606
40da438f 86072008-09-08 Robert Millan <rmh@aybabtu.com>
8608
8609 * util/hostdisk.c (open_device): Replace a grub_util_info() call
8610 with grub_dprintf("hostdisk", ...), as it was so verbose that it
8611 clobbered useful information.
8612
ddbf5556 86132008-09-08 Robert Millan <rmh@aybabtu.com>
8614
8615 * include/grub/util/biosdisk.h: Move to ...
8616 * include/grub/util/hostdisk.h: ... here. Update all users.
8617 * util/biosdisk.c: Move to ...
8618 * util/hostdisk.c: ... here. Update all users.
8619
783d0f48 86202008-09-07 Robert Millan <rmh@aybabtu.com>
8621
8622 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
8623 variables.
8624 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
8625 and length can be stored directly in the `mbi->mmap_addr' and
8626 `mbi->mmap_length' struct fields.
8627
548e2ea5 86282008-09-07 Robert Millan <rmh@aybabtu.com>
8629
8630 * conf/i386.rmk: New file. Provides declaration for building
8631 `cpuid.mod'.
8632 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
8633 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
8634 variables.
8635 Include `conf/i386.mk'.
8636 * conf/i386-efi.rmk: Likewise.
8637 * conf/x86_64-efi.rmk: Likewise.
8638 * conf/i386-coreboot.rmk: Likewise.
8639 * conf/i386-ieee1275.rmk: Likewise.
8640
0ea85a37 86412008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
8642
8643 Based on patch created by Colin D Bennett <colin@gibibit.com>.
8644 Adds optimization support for BGR based modes.
8645
8646 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
8647 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8648 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8649 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8650 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8651 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8652 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8653 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8654 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8655 (grub_video_i386_vbeblit_index_index): Likewise.
8656 (grub_video_i386_vbeblit_replace_directN): Added.
8657 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8658 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8659 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8660 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8661 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8662 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 8663 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 8664 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8665 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8666 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8667 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8668 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8669 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
8670
8671 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
8672 (grub_video_i386_vbefill_R8G8B8): Likewise.
8673 (grub_video_i386_vbefill_index): Likewise.
8674 (grub_video_i386_vbefill_direct32): Added.
8675 (grub_video_i386_vbefill_direct24): Likewise.
8676 (grub_video_i386_vbefill_direct16): Likewise.
8677 (grub_video_i386_vbefill_direct8): Likewise.
8678
81a06771 8679 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 8680 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
8681 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
8682 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
8683 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
8684 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 8685
0ea85a37 8686 * video/video.c (grub_video_get_blit_format): Updated to use new
8687 blit formats. Added handling for 16 bit color modes.
81a06771 8688
8689 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 8690 fillers.
8691 (common_blitter): Updated to use new blitters.
8692
8693 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
8694 Removed.
8695 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
8696 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
8697 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
8698 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
8699 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
8700 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
8701 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
8702 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
8703 (grub_video_i386_vbeblit_index_index): Likewise.
8704 (grub_video_i386_vbeblit_replace_directN): Added.
8705 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
8706 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
8707 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
8708 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
8709 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
8710 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
8711 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
8712 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
8713 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
8714 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
8715 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
8716 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
8717 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 8718
0ea85a37 8719 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
8720 (grub_video_i386_vbefill_R8G8B8): Likewise.
8721 (grub_video_i386_vbefill_index): Likewise.
8722 (grub_video_i386_vbefill_direct32): Added.
8723 (grub_video_i386_vbefill_direct24): Likewise.
8724 (grub_video_i386_vbefill_direct16): Likewise.
8725 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 8726
0ea85a37 8727 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
8728 types.
81a06771 8729
0ea85a37 8730 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
8731 types.
81a06771 8732
0ea85a37 8733 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
8734 blitter types.
81a06771 8735
0ea85a37 8736 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
8737 types.
8738
e8a83df6 87392008-09-06 Felix Zielcke <fzielcke@z-51.de>
8740
8741 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
8742 RAID level 1.
8743
6bcd8ee5 87442008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 8745
6bcd8ee5 8746 * fs/iso9660.c (grub_iso9660_date): New structure.
8747 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
8748 (grub_iso9660_uuid): New function.
c375ae58 8749
59261157 87502008-09-05 Bean <bean123ch@gmail.com>
8751
8752 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
8753
8754 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
8755 insensitive bit for names in Win32 and Win32 & DOS namespace.
8756
8757 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
8758
8759 * include/grub/types.h (LONG_MAX): Likewise.
8760
58b6645a 87612008-09-04 Felix Zielcke <fzielcke@z-51.de>
8762
4ee55921 8763 * util/getroot.c: Include <config.h>.
8764 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
8765 add support for /dev/md/N devices and handle LVM double dash escaping.
8766
87672008-09-04 Felix Zielcke <fzielcke@z-51.de>
8768
8769 * config.guess: Update to latest version from config git.
8770 * config.sub: Likewise.
58b6645a 8771
9124f65d 87722008-09-03 Robert Millan <rmh@aybabtu.com>
8773
8774 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
8775 `disk->total_sectors'.
8776
81a06771 87772008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 8778
8779 * include/grub/normal.h: Fixed incorrect comment for
8780 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
8781
81a06771 87822008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 8783
8784 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
8785 values with defines.
8786
8787 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
8788 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
8789 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
8790 (GRUB_VBE_MODEATTR_COLOR): Likewise.
8791 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
8792 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
8793 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
8794 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
8795 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
8796 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
8797 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
8798 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
8799 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
8800 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
8801 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
8802 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
8803 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
8804 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
8805 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
8806
93d5cbf8 88072008-08-31 Robert Millan <rmh@aybabtu.com>
8808
8809 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
8810 declaration.
8811 (grub_multiboot): Fix a few warnings.
8812
21751d50 88132008-08-31 Robert Millan <rmh@aybabtu.com>
8814
8815 * loader/i386/pc/multiboot.c: Update comment not to say that
8816 boot_device support is unimplemented.
8817
e27a75c5 88182008-08-31 Robert Millan <rmh@aybabtu.com>
8819
8820 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
8821 or memory map support are unimplemented.
8822
81a06771 88232008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 8824
8825 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
8826
81a06771 88272008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 8828
8829 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
8830 total video memory in 'vbeinfo' output; show color format details for
8831 each video mode.
8832
7c5d8d95 88332008-08-30 Pavel Roskin <proski@gnu.org>
8834
8835 * util/genmoddep.c: Remove for real this time.
8836 * DISTLIST: Remove util/genmoddep.c.
8837
4cebd25a 88382008-08-30 Robert Millan <rmh@aybabtu.com>
8839
8840 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
8841 as required by Multiboot spec (it was already 4-byte aligned, but
8842 only by chance).
8843
b497a269 88442008-08-29 Pavel Roskin <proski@gnu.org>
8845
e3925185 8846 * kern/powerpc/ieee1275/crt0.S: Rename to ...
8847 * kern/powerpc/ieee1275/startup.S: ... this.
8848 * conf/powerpc-ieee1275.rmk: Adjust for the above.
8849 * DISTLIST: Likewise.
8850
b497a269 8851 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
8852 grub/cpu/kernel.h. Add start label for consistency with other
8853 platforms. Add grub_prefix immediately after start. Add jump
8854 to the code after grub_prefix.
8855 * include/grub/powerpc/kernel.h: Provide valid values for
8856 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
8857
6e5a42fe 88582008-08-29 Bean <bean123ch@gmail.com>
8859
8860 * configure.ac: Change host_os to cygwin for mingw.
8861 (asprintf): New check for function.
8862
8863 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
8864 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
8865
8866 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 8867 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 8868 sync, sleep and grub_util_get_disk_size for mingw.
8869
8870 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
8871 to get size in mingw.
8872 (open_device): Use flag O_BINARY if it's defined.
8873 (find_root_device): Add dummy code for mingw.
8874
8875 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
8876 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
8877 (get_scsi_disk_name): Return 0 for mingw.
8878
8879 * util/hostfs.c: #include <grub/util/misc.h>.
8880 (grub_hostfs_open): Use "rb" flag to open file, use
8881 grub_util_get_disk_size to get disk size for mingw.
8882
8883 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
8884 (asprintf): New function if HAVE_ASPRINTF is not set.
8885 (sync): New function for mingw.
8886 (sleep): Likewise.
8887 (grub_util_get_disk_size): Likewise.
8888
ab3f2673 88892008-08-28 Pavel Roskin <proski@gnu.org>
8890
8891 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
8892 kern/time.c.
8893
1c282483 88942008-08-28 Robert Millan <rmh@aybabtu.com>
8895
8896 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
8897
678e849c 88982008-08-28 Robert Millan <rmh@aybabtu.com>
8899
8900 Change find_grub_drive() syntax so it doesn't prevent it from
8901 detecting NULL names as errors.
8902
8903 * util/biosdisk.c (find_grub_drive): Move free slot search code
8904 from here ...
8905 (find_free_slot): ... to here.
8906 (read_device_map): Use find_free_slot() to search for free slots.
8907
965c75ca 89082008-08-27 Marco Gerards <marco@gnu.org>
8909
8910 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
8911 (scsi_mod_SOURCES): New variable.
8912 (scsi_mod_CFLAGS): Likewise
8913 (scsi_mod_LDFLAGS): Likewise.
8914
8915 * disk/scsi.c: New file.
8916
8917 * include/grub/scsi.h: Likewise.
8918
8919 * include/grub/scsicmd.h: Likewise.
8920
8921 * disk/ata.c: Include <grub/scsi.h>.
8922 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
8923 instead.
8924 (grub_ata_iterate): Skip ATAPI devices.
8925 (grub_ata_open): Only handle ATAPI devices.
8926 (struct grub_atapi_read): Removed.
8927 (grub_atapi_readsector): Likewise.
8928 (grub_ata_read): No longer handle ATAPI devices.
8929 (grub_ata_write): Likewise.
8930 (grub_atapi_iterate): New function.
8931 (grub_atapi_read): Likewise.
8932 (grub_atapi_write): Likewise.
8933 (grub_atapi_open): Likewise.
8934 (grub_atapi_close): Likewise.
8935 (grub_atapi_dev): New variable.
8936 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
8937 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
8938
8939 * include/grub/disk.h (enum grub_disk_dev_id): Add
8940 `GRUB_DISK_DEVICE_SCSI_ID'.
8941
c07ae501 89422008-08-26 Robert Millan <rmh@aybabtu.com>
8943
8944 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
8945 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
8946 descriptive.
8947
5ed20adc 89482008-08-23 Bean <bean123ch@gmail.com>
8949
8950 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
8951 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8952 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
8953 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
8954 dm_nv.mod.
8955 (raid5rec_mod_SOURCES): New macro.
8956 (raid5rec_mod_CFLAGS): Likewise.
8957 (raid5rec_mod_LDFLAGS): Likewise.
8958 (raid6rec_mod_SOURCES): Likewise.
8959 (raid6rec_mod_CFLAGS): Likewise.
8960 (raid6rec_mod_LDFLAGS): Likewise.
8961 (mdraid_mod_SOURCES): Likewise.
8962 (mdraid_mod_CFLAGS): Likewise.
8963 (mdraid_mod_LDFLAGS): Likewise.
8964 (dm_nv_mod_SOURCES): Likewise.
8965 (dm_nv_mod_CFLAGS): Likewise.
8966 (dm_nv_mod_LDFLAGS): Likewise.
8967
8968 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
8969 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
8970 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8971
8972 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
8973 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
8974
8975 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8976
8977 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8978
8979 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8980
8981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8982
8983 * disk/raid5_recover.c: New file.
8984
8985 * disk/raid6_recover.c: Likewise.
8986
8987 * disk/mdraid_linux.c: Likewise.
8988
8989 * disk/dmraid_nvidia.c: Likewise.
8990
8991 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
8992 ULONG_MAX.
8993
8994 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
8995 calculate the size of raid device.
8996 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
8997 different layout of raid5.
8998 (grub_raid_scan_device): Remove code specific to mdraid.
8999 (grub_raid_list): New variable.
9000 (free_array): New function.
9001 (grub_raid_register): Likewise.
9002 (grub_raid_unregister): Likewise.
9003 (grub_raid_rescan): Likewise.
9004 (GRUB_MOD_INIT): Don't iterate device here.
9005 (GRUB_MOD_FINI): Use free_array to release resource.
9006
9007 * include/grub/raid.h: Remove macro and structure specific to mdraid.
9008 (grub_raid5_recover_func_t): New function variable type.
9009 (grub_raid6_recover_func_t): Likewise.
9010 (grub_raid5_recover_func): New variable.
9011 (grub_raid6_recover_func): Likewise.
9012 (grub_raid_register): New function.
9013 (grub_raid_unregister): Likewise.
9014 (grub_raid_rescan): Likewise.
9015 (grub_raid_block_xor): Likewise.
9016
9017 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
9018 (CMD_CRC): New macro.
9019 (part): Removed.
9020 (read_file): Handle device as well as file.
9021 (cmd_crc): New function.
9022 (fstest): Handle multiple disks.
9023 (options): Remove part, raw and long, add root and diskcount.
9024 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 9025 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 9026 add handling for the new options, support multiple disks.
9027
9028 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
9029
29c18915 90302008-08-23 Bean <bean123ch@gmail.com>
9031
9032 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
9033
9034 * genfslist.sh: Ignore kernel.mod.
9035
9036 * genpartmaplist.sh: Likewise.
9037
8415f261 90382008-08-23 Robert Millan <rmh@aybabtu.com>
9039
9040 * util/getroot.c (find_root_device): Skip anything that starts with
9041 a dot, not just directories. This avoids things like /dev/.tmp.md0.
9042
d5a7dc5b 90432008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 9044
d5a7dc5b 9045 * util/update-grub.in (GRUB_GFXMODE): Export variable.
9046 * util/grub.d/00_header.in: Allow the administrator to change default
9047 gfxmode via ${GRUB_GFXMODE}.
9048
380cfbb4 90492008-08-21 Felix Zielcke <fzielcke@z-51.de>
9050
9051 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
9052
c9baafe7 90532008-08-21 Robert Millan <rmh@aybabtu.com>
9054
9055 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
9056 loader.
9057 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
9058 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
9059
e290bef2 90602008-08-20 Carles Pina i Estany <carles@pina.cat>
9061
9062 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
9063 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
9064
f9dbfc96 90652008-08-19 Robert Millan <rmh@aybabtu.com>
9066
9067 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
9068 (struct grub_virtual_screen): Remove `cursor_color'.
9069 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
9070 initialization.
9071 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
9072
dd6bd6ab 90732008-08-18 Robert Millan <rmh@aybabtu.com>
9074
9075 Unify (identical) linux_normal.c files.
9076 * loader/i386/efi/linux_normal.c: Move from here ...
9077 * loader/linux_normal.c: ... to here. Update all users.
9078 * loader/i386/pc/linux_normal.c: Delete. Update all users.
9079 * loader/i386/ieee1275/linux_normal.c: Likewise.
9080
7f42f83e 90812008-08-18 Robert Millan <rmh@aybabtu.com>
9082
9083 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
9084 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
9085 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
9086 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
9087 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
9088 New macros.
9089 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
9090 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
9091 (GRUB_LINUX_CL_END_OFFSET): ... to here.
9092 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
9093 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
9094 (GRUB_EFI_CL_END_OFFSET): Rename to ...
9095 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
9096 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
9097 Initialize `params->video_cursor_x' and `params->video_cursor_y'
9098 portably using grub_getxy().
9099 Replace `-EFI' with `-bzImage' in boot message.
9100
38487ddb 91012008-08-17 Robert Millan <rmh@aybabtu.com>
9102
9103 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
9104
deceb3ec 91052008-08-17 Robert Millan <rmh@aybabtu.com>
9106
9107 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
9108
9109 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
9110 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
9111 (grub_machine_mmap_iterate): New function declaration.
9112 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
9113 structure.
9114 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
9115 macros.
9116
9117 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
9118 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
9119 Move e820 parsing from here ...
9120 * kern/i386/pc/mmap.c: New file.
9121 (grub_machine_mmap_iterate): ... to here.
9122
9123 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
9124 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
9125 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
9126 (grub_available_iterate): Redeclare to return `void', and redeclare
9127 its hook to use grub_uint64_t as addr and size parameters, and rename
9128 to ...
9129 (grub_machine_mmap_iterate): ... this. Update all users.
9130
9131 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
9132 to make it more readable. Rename to ...
9133 (grub_machine_mmap_iterate): ... this.
9134
9135 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
9136 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
9137 (grub_multiboot): Allocate an extra region after the payload, and fill
9138 it with a Multiboot memory map. Adjust a.out loader to calculate size
9139 with the extra space.
9140 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
9141 with the extra space.
9142
f8aa0f43 91432008-08-17 Carles Pina i Estany <carles@pina.cat>
9144
9807deb9 9145 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 9146
605f5bb6 91472008-08-17 Felix Zielcke <fzielcke@z-51.de>
9148
9149 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
9150 mdate-sh to the list `find' searches for.
9151 * DISTLIST: Regenerated.
9152
210db6c6 91532008-08-16 Felix Zielcke <fzielcke@z-51.de>
9154
9155 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
9156 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 9157 genmoddep.awk, gensymlist.sh.in.
9158 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 9159 * DISTLIST: Regenerated.
48cdbfd4 9160 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 9161
1082b929 91622008-08-16 Robert Millan <rmh@aybabtu.com>
9163
9164 * disk/raid.c (grub_raid_init): Handle/report errors set by
9165 grub_device_iterate().
9166 * disk/lvm.c (grub_lvm_init): Likewise.
9167
42ce5170 91682008-08-15 Bean <bean123ch@gmail.com>
9169
9170 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9171 and datehook.mod.
9172 (datetime_mod_SOURCES): New macro.
9173 (datetime_mod_CFLAGS): Likewise.
9174 (datetime_mod_LDFLAGS): Likewise.
9175 (date_mod_SOURCES): Likewise.
9176 (date_mod_CFLAGS): Likewise.
9177 (date_mod_LDFLAGS): Likewise.
9178 (datehook_mod_SOURCES): Likewise.
9179 (datehook_mod_CFLAGS): Likewise.
9180 (datehook_mod_LDFLAGS): Likewise.
9181
9182 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9183 and datehook.mod.
9184 (datetime_mod_SOURCES): New macro.
9185 (datetime_mod_CFLAGS): Likewise.
9186 (datetime_mod_LDFLAGS): Likewise.
9187 (date_mod_SOURCES): Likewise.
9188 (date_mod_CFLAGS): Likewise.
9189 (date_mod_LDFLAGS): Likewise.
9190 (datehook_mod_SOURCES): Likewise.
9191 (datehook_mod_CFLAGS): Likewise.
9192 (datehook_mod_LDFLAGS): Likewise.
9193
9194 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9195 and datehook.mod.
9196 (datetime_mod_SOURCES): New macro.
9197 (datetime_mod_CFLAGS): Likewise.
9198 (datetime_mod_LDFLAGS): Likewise.
9199 (date_mod_SOURCES): Likewise.
9200 (date_mod_CFLAGS): Likewise.
9201 (date_mod_LDFLAGS): Likewise.
9202 (datehook_mod_SOURCES): Likewise.
9203 (datehook_mod_CFLAGS): Likewise.
9204 (datehook_mod_LDFLAGS): Likewise.
9205
9206 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9207 and datehook.mod.
9208 (datetime_mod_SOURCES): New macro.
9209 (datetime_mod_CFLAGS): Likewise.
9210 (datetime_mod_LDFLAGS): Likewise.
9211 (date_mod_SOURCES): Likewise.
9212 (date_mod_CFLAGS): Likewise.
9213 (date_mod_LDFLAGS): Likewise.
9214 (datehook_mod_SOURCES): Likewise.
9215 (datehook_mod_CFLAGS): Likewise.
9216 (datehook_mod_LDFLAGS): Likewise.
9217
9218 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
9219 and datehook.mod.
9220 (datetime_mod_SOURCES): New macro.
9221 (datetime_mod_CFLAGS): Likewise.
9222 (datetime_mod_LDFLAGS): Likewise.
9223 (date_mod_SOURCES): Likewise.
9224 (date_mod_CFLAGS): Likewise.
9225 (date_mod_LDFLAGS): Likewise.
9226 (datehook_mod_SOURCES): Likewise.
9227 (datehook_mod_CFLAGS): Likewise.
9228 (datehook_mod_LDFLAGS): Likewise.
9229
9230 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
9231
9232 * commands/date.c: New file.
9233
9234 * hook/datehook.c: Likewise.
9235
9236 * include/grub/lib/datetime.h: Likewise.
9237
9238 * include/grub/i386/cmos.h: Likewise.
9239
9240 * lib/datetime.c: Likewise.
9241
9242 * lib/i386/datetime.c: Likewise.
9243
9244 * lib/efi/datetime.c: Likewise.
9245
0e9242da 92462008-08-14 Robert Millan <rmh@aybabtu.com>
9247
9248 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
9249 (grub_mkelfimage_SOURCES): New variable.
9250 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
9251
9252 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
9253 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
9254 * conf/powerpc-ieee1275.rmk: Likewise.
9255 * conf/i386-ieee1275.rmk: Likewise.
9256
9257 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
9258 * kern/i386/coreboot/init.c: Likewise.
9259
9260 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
9261 with `<grub/cpu/kernel.h>'.
9262 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
9263 to ...
9264 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
9265 * kern/i386/coreboot/startup.S: Likewise.
9266
9267 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
9268 (GRUB_MOD_GAP): Remove.
9269 * include/grub/powerpc/kernel.h: New file.
9270 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
9271 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
9272 * include/grub/i386/kernel.h: New file.
9273 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
9274 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
9275 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
9276
9277 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
9278 `grub-mkelfimage'.
9279 Use --directory when invoking grub_mkimage.
9280
9281 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
9282 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
9283 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
9284 and GRUB_KERNEL_CPU_PREFIX.
9285
b86408f8 92862008-08-14 Felix Zielcke <fzielcke@z-51.de>
9287
d5e619ca 9288 * include/grub/err.h (grub_err_printf): New function prototype.
9289 * util/misc.c (grub_err_printf): New function.
9290 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
9291 grub_printf.
9292 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 9293
7161f0e0 92942008-08-13 Robert Millan <rmh@aybabtu.com>
9295
9296 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
9297
a1967522 92982008-08-13 Robert Millan <rmh@aybabtu.com>
9299
9300 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
9301 boot entry.
9302
371458b5 93032008-08-12 Robert Millan <rmh@aybabtu.com>
9304
9305 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
9306 of the relocation code from here ...
9307 (grub_multiboot): ... to here.
9308 (forward_relocator, backward_relocator): Move from here ...
9309 * kern/i386/loader.S (grub_multiboot_forward_relocator)
9310 (grub_multiboot_backward_relocator): ... to here.
9311 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
9312 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
9313 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
9314 (grub_multiboot_forward_relocator_end)
9315 (grub_multiboot_backward_relocator)
9316 (grub_multiboot_backward_relocator_end): New variables.
9317
05f9452b 93182008-08-12 Bean <bean123ch@gmail.com>
9319
9320 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
9321
20024ab0 93222008-08-11 Robert Millan <rmh@aybabtu.com>
9323
9324 * kern/i386/linuxbios/startup.S: Move from here ...
9325 * kern/i386/coreboot/startup.S: ... to here.
9326
9327 * kern/i386/linuxbios/init.c: Move from here ...
9328 * kern/i386/coreboot/init.c: ... to here.
9329
9330 * kern/i386/linuxbios/table.c: Move from here ...
9331 * kern/i386/coreboot/mmap.c: ... to here.
9332
9333 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
9334
e352e9cd 93352008-08-11 Robert Millan <rmh@aybabtu.com>
9336
9337 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
9338 errors. Leave it to the upper layer to handle them.
9339
2d05bc6a 93402008-08-09 Christian Franke <franke@computer.org>
9341
9342 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
9343 * conf/common.rmk: Install `grub-pe2elf' only if requested.
9344 Install `grub.d/10_windows' only on Cygwin.
9345 * configure.ac: Add subst of `target_os'.
9346 Check `target_os' also before setting TARGET_OBJ2ELF.
9347 Add `--enable-grub-pe2elf'.
9348
042bd419 93492008-08-08 Robert Millan <rmh@aybabtu.com>
9350
9351 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
9352 (grub_last_time): Change type to grub_uint64_t.
9353 (grub_disk_open): Migrate code from to using grub_get_time_ms().
9354 (grub_disk_close): Likewise.
9355
9356 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
9357 (run_menu): Migrate code from to using grub_get_time_ms().
9358
9359 * util/misc.c (grub_get_time_ms): New function.
9360
7f280db5 93612008-08-08 Marco Gerards <marco@gnu.org>
9362
9363 * disk/ata.c (grub_ata_regget): Change return type to
9364 `grub_uint8_t'.
9365 (grub_ata_regget2): Likewise.
9366 (grub_ata_wait_status): New function.
9367 (grub_ata_wait_busy): Removed function, updated all users to use
9368 `grub_ata_wait_status'.
9369 (grub_ata_wait_drq): Likewise.
9370 (grub_ata_cmd): New function.
9371 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
9372 error handling.
9373 (grub_ata_pio_write): Add error handling.
9374 (grub_atapi_identify): Likewise.
9375 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
9376 handling.
9377 (grub_ata_identify): Use `grub_ata_cmd' and improve error
9378 handling. Actually use the detected registers. Reorder the
9379 detection logic such that it is easier to read.
9380 (grub_ata_pciinit): Do not assign the same ID to each controller.
9381 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
9382 handling.
9383 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
9384
9385 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
9386
1fbc5e66 93872008-08-08 Marco Gerards <marco@gnu.org>
9388
9389 * NEWS: Update.
9390
819ce6c0 93912008-08-07 Bean <bean123ch@gmail.com>
9392
9393 * include/grub/x86_64/pci.h: New file.
9394
5c41d44d 93952008-08-07 Christian Franke <franke@computer.org>
9396
9397 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
9398 (TIMER2_GATE): Likewise.
9399 (grub_pit_wait): Add enable/disable of the timer2 gate
9400 bit of port 0x61. This fixes a possible infinite loop.
9401
5ebc275d 94022008-08-07 Bean <bean123ch@gmail.com>
9403
9404 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
9405 kern/i386/tsc.c and kern/i386/pit.c.
9406
9407 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
9408 x86_64 platform.
9409
9410 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
9411 <grub/i386/tsc.h>.
9412
9413 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
9414
e383b3d0 94152008-08-07 Bean <bean123ch@gmail.com>
9416
9417 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
9418
9419 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
9420
9421 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
9422 multiple inclusion. Add #include <grub/types.h>.
9423
1cbb58ac 94242008-08-06 Christian Franke <franke@computer.org>
9425
9426 * conf/common.rmk: Build and install `10_windows'.
9427 * util/grub.d/10_windows.in: New script.
9428
337f5a1e 94292008-08-06 Pavel Roskin <proski@gnu.org>
9430
9431 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
9432
057bc4ac 94332008-08-06 Robert Millan <rmh@aybabtu.com>
9434
9435 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
9436 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
9437
2b99f123 94382008-08-06 Bean <bean123ch@gmail.com>
9439
9440 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
9441 (grub_pxefs_fs_int): Remove dummy definition.
9442 (grub_pxefs_open): Use data->block_size to store the current block
9443 size setting.
9444 (grub_pxefs_read): Use block size stored in data->block_size. As the
9445 value of grub_pxe_blksize can be changed after the file is opened.
9446
9f0234cb 94472008-08-06 Bean <bean123ch@gmail.com>
9448
9449 * fs/i386/pc/pxe.c (curr_file): new variable.
9450 (grub_pxefs_open): Simply the handling of pxe file system. Don't
9451 require the dummy internal file system anymore.
9452 (grub_pxefs_read): Removed.
9453 (grub_pxefs_close): Likewise.
9454 (grub_pxefs_fs_int): Likewise.
9455 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
9456 connection when we switch file.
9457 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
9458
a55d42e0 94592008-08-06 Robert Millan <rmh@aybabtu.com>
9460
9461 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
9462 `halt.mod'.
9463 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
9464 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
9465
9466 * kern/i386/halt.c: New file.
9467 * kern/i386/reboot.c: Likewise.
9468 * include/grub/i386/reboot.h: Likewise.
9469 * include/grub/i386/halt.h: Likewise.
9470
9471 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
9472 Include `<grub/cpu/halt.h>'.
9473 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
9474 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
9475
9476 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
9477 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
9478 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
9479 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
9480 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
9481 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
9482 from here ...
9483 * include/grub/i386/at_keyboard.h: ... to here.
9484
24371d26 94852008-08-05 Robert Millan <rmh@aybabtu.com>
9486
9487 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
9488 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
9489 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
9490 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
9491 `kern/generic/millisleep.c'.
9492
9493 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
9494 instead of grub_get_rtc().
9495 (grub_tsc_init): Initialize `tsc_boot_time'.
9496
9497 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
9498 (grub_machine_init): Use grub_tsc_init() rather than
9499 installing an RTC-based handler via grub_install_get_time_ms().
9500
9501 * kern/i386/pit.c: New file.
9502 * include/grub/i386/pit.h: Likewise.
9503
9e7007b3 95042008-08-05 Bean <bean123ch@gmail.com>
9505
9506 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
9507
9508 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
9509 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
9510 (pxe_mod_SOURCES): New macro.
9511 (pxe_mod_CFLAGS): Likewise.
9512 (pxe_mod_LDFLAGS): Likewise.
9513 (pxecmd_mod_SOURCES): Likewise.
9514 (pxecmd_mod_CFLAGS): Likewise.
9515 (pxecmd_mod_LDFLAGS): Likewise.
9516
9517 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
9518 (grub_pxe_call): Likewise.
9519
9520 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
9521
9522 * commands/i386/pc/pxecmd.c: New file.
9523
9f0234cb 9524 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 9525
9526 * include/grub/i386/pc/pxe.h: Likewise.
9527
6977d49f 95282008-08-05 Bean <bean123ch@gmail.com>
9529
9530 * util/console.c (grub_console_cur_color): New variable.
9531 (grub_console_standard_color): Likewise.
9532 (grub_console_normal_color): Likewise.
9533 (grub_console_highlight_color): Likewise.
9534 (color_map): Likewise.
9535 (use_color): Likewise.
9536 (NUM_COLORS): New macro.
9537 (grub_ncurses_setcolorstate): Handle color properly.
9538 (grub_ncurses_setcolor): Don't change color here, just remember the
9539 settings, color will be set in grub_ncurses_setcolorstate.
9540 (grub_ncurses_getcolor): New function.
9541 (grub_ncurses_init): Initialize color pairs.
9542 (grub_ncurses_term): New member grub_ncurses_getcolor.
9543
9c2ff3ee 95442008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 9545
9c2ff3ee 9546 High resolution timer support. Implemented for x86 CPUs using TSC.
9547 Extracted generic grub_millisleep() so it's linked in only as needed.
9548 This requires a Pentium compatible CPU; if the RDTSC instruction is
9549 not supported, then it falls back on the generic grub_get_time_ms()
9550 implementation that uses the machine's RTC.
9551
9552 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
9553 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
9554 `kern/generic/millisleep.c'.
9555
9556 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
9557 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
9558
9559 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
9560 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
9561
9562 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9563
9564 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
9565 `kern/generic/millisleep.c'.
9566
9567 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
9568
9569 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
9570
9571 * kern/generic/rtc_get_time_ms.c: New file.
9572
9573 * kern/generic/millisleep.c: New file.
337f5a1e 9574
9c2ff3ee 9575 * kern/misc.c: Don't include
9576 <kern/time.h> anymore.
9577 (grub_millisleep_generic): Removed.
9578
9579 * commands/sleep.c (grub_interruptible_millisleep): Uses
9580 grub_get_time_ms() instead of grub_get_rtc().
9581
9582 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
9583 function.
9584 (grub_cpu_is_cpuid_supported): New inline function.
9585 (grub_cpu_is_tsc_supported): New inline function.
9586 (grub_tsc_init): New function prototype.
9587 (grub_tsc_get_time_ms): New function prototype.
9588
9589 * kern/i386/tsc.c (grub_get_time_ms): New file.
9590
9591 * include/grub/time.h: Include <grub/types.h.
9592 (grub_millisleep_generic): Removed.
9593 (grub_get_time_ms): New prototype.
9594 (grub_install_get_time_ms): New prototype.
9595 (grub_rtc_get_time_ms): New prototype.
9596
9597 * kern/time.c (grub_get_time_ms): New function.
9598 (grub_install_get_time_ms): New function.
9599
9600 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
9601 <grub/time.h> anymore.
9602 (grub_millisleep): Removed.
9603 (grub_machine_init): Call grub_tsc_init.
9604
9605 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
9606 get_time_ms() implementation.
9607
9608 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
9609 (ieee1275_get_time_ms): New function.
9610 (grub_machine_init): Install get_time_ms() implementation.
9611
9612 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
9613 (grub_machine_init): Call grub_tsc_init().
9614 (grub_millisleep): Removed.
bf06a93f 9615
9c2ff3ee 9616 * kern/ieee1275/init.c (grub_millisleep): Removed.
9617 (grub_machine_init): Install ieee1275_get_time_ms()
9618 implementation.
9619 (ieee1275_get_time_ms): New function.
9620 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
9621 real work.
9622
9ec92aaf 96232008-08-05 Marco Gerards <marco@gnu.org>
9624
9625 * disk/ata.c: Include <grub/pci.h>.
9626 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
9627 (grub_ata_initialize): Rewritten.
9628 (grub_ata_device_initialize): New function.
9629
8d23f507 96302008-08-04 Pavel Roskin <proski@gnu.org>
9631
9632 * kern/main.c: Include grub/mm.h.
9633
5e15ee3d 96342008-08-04 Robert Millan <rmh@aybabtu.com>
9635
9636 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
9637 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
9638 corruption problem).
9639
a9053f8f 96402008-08-04 Robert Millan <rmh@aybabtu.com>
9641
9642 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
9643 warnings introduced in my last commit.
9644
dd19c7d7 96452008-08-03 Robert Millan <rmh@aybabtu.com>
9646
9647 Make PCI available on all i386 architectures.
9648
9649 * include/grub/i386/pc/pci.h: Move from here ...
9650 * include/grub/i386/pci.h: ... to here.
9651
9652 * include/grub/i386/pc/pci.h: Remove.
9653 * include/grub/i386/efi/pci.h: Remove.
9654 * include/grub/x86_64/efi/pci.h: Remove.
9655
9656 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
9657 `<grub/cpu/pci.h>'.
9658
9659 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
9660 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
9661 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
9662
9663 * conf/i386-ieee1275.rmk: Likewise.
9664
e14a6184 96652008-08-03 Robert Millan <rmh@aybabtu.com>
9666
9667 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
9668 (grub_console_setcursor): Make it possible to set cursor off.
9669
52768e37 96702008-08-03 Robert Millan <rmh@aybabtu.com>
9671
9672 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
9673 of modules instead of assuming which platform provides what.
9674 * util/update-grub.in: Likewise.
9675
2d52f57f 96762008-08-03 Robert Millan <rmh@aybabtu.com>
9677
9678 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
9679 instead of `grub_install_dos_part' to determine whether a drive needs
9680 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 9681 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 9682
2a5cd121 96832008-08-02 Robert Millan <rmh@aybabtu.com>
9684
9685 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
9686
93808428 96872008-08-02 Robert Millan <rmh@aybabtu.com>
9688
9689 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
9690 of informational grub_dprintf() calls.
9691
3bd0a12a 96922008-08-02 Robert Millan <rmh@aybabtu.com>
9693
9694 * disk/memdisk.c (memdisk_size): Don't initialize.
9695 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
9696
9697 * include/grub/i386/pc/kernel.h
9698 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
9699 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
9700 (grub_memdisk_image_size, grub_arch_memdisk_addr)
9701 (grub_arch_memdisk_size): Remove.
9702
9703 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
9704 field (was only used to transfer a constant). Add `type' field to
9705 support multiple module types.
9706 (grub_module_iterate): New function.
9707
9708 * kern/device.c (grub_device_open): Do not hide error messages
9709 when grub_disk_open() fails. Use grub_print_error() instead.
9710
9711 * kern/i386/pc/init.c (grub_arch_modules_addr)
9712 (grub_arch_memdisk_size): Remove functions.
9713 (grub_arch_modules_addr): Return the module address in high memory
9714 (now that it isn't copied anymore).
9715
9716 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
9717 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
9718 decompression routine (grub_total_module_size already includes that
9719 now). Don't copy modules back to low memory.
9720
9721 * kern/main.c: Include `<grub/mm.h>'.
9722 (grub_load_modules): Split out (and use) ...
9723 (grub_module_iterate): ... this function, which iterates through
9724 module objects and runs a hook.
9725 Comment out grub_mm_init_region() call, as it would cause non-ELF
9726 modules to be overwritten.
9727
9728 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
9729 the memdisk image in its own region, make it part of the module list.
9730 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
9731 (main): Parse --memdisk|-m option, and pass user-provided path as
9732 parameter to generate_image().
9733 (add_segments): Pass `memdisk_path' down to load_modules().
9734 (load_modules): Embed memdisk image in module section when requested.
9735 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
9736 `header.type' instead of `header.offset'.
9737
9738 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
9739 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
9740 (memdisk_mod_LDFLAGS): New variables.
9741 * conf/i386-coreboot.rmk: Likewise.
9742 * conf/i386-ieee1275.rmk: Likewise.
9743
a927cc73 97442008-08-02 Robert Millan <rmh@aybabtu.com>
9745
9746 * loader/i386/pc/multiboot.c (playground, forward_relocator)
9747 (backward_relocator): New variables. Used to allocate and relocate
9748 the payload, respectively.
9749 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 9750 address, install the appropriate relocator code in each bound of
a927cc73 9751 the payload, and set the entry point such that
9752 grub_multiboot_real_boot() will jump to one of them.
9753
9754 * kern/i386/loader.S (grub_multiboot_payload_size)
9755 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9756 (grub_multiboot_payload_entry_offset): New variables.
9757 (grub_multiboot_real_boot): Set cpu context to what the relocator
9758 expects, and jump to the relocator instead of the payload.
9759
9760 * include/grub/i386/loader.h (grub_multiboot_payload_size)
9761 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
9762 (grub_multiboot_payload_entry_offset): Export.
9763
b15d8a0c 97642008-08-01 Bean <bean123ch@gmail.com>
9765
9766 * normal/menu_entry.c (editor_getline): Don't return the original
9767 string as result, as it will be released by lexer once it has done
9768 using it.
9769
cdfb3d22 97702008-08-01 Robert Millan <rmh@aybabtu.com>
9771
9772 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
9773 within menuentries, not before them.
9774 util/grub.d/10_hurd.in: Likewise.
9775
9175e93d 97762008-08-01 Bean <bean123ch@gmail.com>
9777
9778 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
9779 (bufio_mod_SOURCES): New macro.
9780 (bufio_mod_CFLAGS): Likewise.
9781 (bufio_mod_LDFLAGS): Likewise.
9782
9783 * include/grub/bufio.h: New file.
9784
9785 * io/bufio.c: Likewise.
9786
9787 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
9788 (grub_video_reader_png): Use grub_buffile_open to open file.
9789
9790 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
9791 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
9792
9793 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
9794 (grub_video_reader_tga): Use grub_buffile_open to open file.
9795
9796 * font/manager.c: Include <grub/bufio.h>.
9797 (add_font): Use grub_buffile_open to open file.
9798
3d8383e7 97992008-07-31 Robert Millan <rmh@aybabtu.com>
9800
9801 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
9802 ELF segments, use a macro for arbitrarily accessing any of them instead
9803 of preparing a pointer that allows access to one at a time.
9804 (grub_multiboot_load_elf64): Likewise.
9805
16e641b6 98062008-07-31 Bean <bean123ch@gmail.com>
9807
9808 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
9809 GRUB_KERNEL_MACHINE_DATA_END.
9810
59198b72 98112008-07-30 Robert Millan <rmh@aybabtu.com>
9812
9813 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
9814 Increase from 0x50 to 0x60.
9815 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
9816 use UUIDs to identify the root drive for them. If that's not
9817 possible, abort.
9818 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
9819 check, for cross-disk installs.
9820
ae88bca3 98212008-07-30 Robert Millan <rmh@aybabtu.com>
9822
9823 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
9824 is non-empty, use it to set the `prefix' environment variable instead
9825 of the usual approach.
9826 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
9827 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
9828 environment variable instead of dummy make_install_device().
9829
9830 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
9831 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 9832 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 9833
9834 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
9835 New variable reference.
9836 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
9837 New macro. Defines offset of `grub_prefix' within startup.S (relative
9838 to `start').
9839 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
9840 section within startup.S (relative to `start').
9841 * include/grub/i386/coreboot/kernel.h: Likewise.
9842
9843 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
9844 Overwrite grub_prefix with its contents, at the beginning of the
9845 first segment.
9846 (main): Understand -p|--prefix.
9847
14f41dd1 98482008-07-30 Robert Millan <rmh@aybabtu.com>
9849
9850 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
9851
4ca049a3 98522008-07-30 Robert Millan <rmh@aybabtu.com>
9853
9854 * term/i386/pc/vga_text.c (grub_console_cls): Use
9855 grub_console_gotoxy() to go back to beginning of the screen.
9856 Found by Patrick Georgi <patrick.georgi@coresystems.de>
9857
2921d337 98582008-07-29 Christian Franke <franke@computer.org>
9859
9860 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
9861 Add conversion of emulated mount points on Cygwin.
9862
b609876d 98632008-07-29 Christian Franke <franke@computer.org>
9864
9865 * util/update-grub.in: Add a check for admin
9866 group on Cygwin.
9867 Remove old `grub.cfg.new' before creation.
9868 Add `-f' to `mv' to handle the different filesystem
9869 semantics of Windows.
9870
e93e4679 98712008-07-29 Bean <bean123ch@gmail.com>
9872
9873 * normal/main.c (get_line): Fix buffer overflow bug.
9874
41694fd0 98752008-07-28 Robert Millan <rmh@aybabtu.com>
9876
9877 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
9878 (struct grub_apple_header): New struct. Describes the layout of
9879 the partmap header.
9880 (apple_partition_map_iterate): Check the header magic as well as the
9881 partition magic (which was already being checked).
9882
cfd0b4e6 98832008-07-28 Pavel Roskin <proski@gnu.org>
9884
9885 * genmk.rb: Add a warning to the beginning of the output that
9886 it's a generated file and should not be edited.
9887
93cce016 98882008-07-28 Robert Millan <rmh@aybabtu.com>
9889
9890 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
9891 with the same number are found, just use issue a warning with
9892 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 9893
cd1df915 98942008-07-27 Robert Millan <rmh@aybabtu.com>
9895
9896 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
9897 information.
9898
b70a8427 98992008-07-27 Bean <bean123ch@gmail.com>
9900
9901 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
9902 (grub_fat_find_dir): Ignore case when comparing filename.
9903
8f5e379f 99042008-07-27 Bean <bean123ch@gmail.com>
9905
9906 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
9907 smallino, as it's more descriptive, and i8count can be confused with
9908 the other field count.
9909 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
9910 inode type.
9911
a85cd5a0 99122008-07-27 Bean <bean123ch@gmail.com>
9913
9914 * commands/crc.c: New file.
9915
9916 * lib/crc.c: Likewise.
9917
9918 * include/grub/lib/crc.h: Likewise.
9919
9920 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
9921
9922 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
9923 (hexdump): Move this function to ...
9924
9925 * lib/hexdump.c: ... here.
9926
9927 * include/grub/hexdump.h: Renamed to ...
9928
9929 * include/grub/lib/hexdump.h: ... this.
9930
9931 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
9932
9933 * util/grub-editenv.c: Likewise.
9934
9935 * include/envblk.h: Renamed to ...
9936
9937 * include/lib/envblk.h: ... this.
9938
9939 * util/envblk.c: Renamed to ...
9940
9941 * lib/envblk.c: ... this.
9942
9943 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
9944 lib/hexdump.c.
9945 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
9946 (pkglib_MODULES): Add crc.mod.
9947 (hexdump_mod_SOURCES): Add lib/hexdump.c.
9948 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
9949 (crc_mod_SOURCES): New macro.
9950 (crc_mod_CFLAGS): Likewise.
9951 (crc_mod_LDFLAGS): Likewise.
9952
9953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
9954
9955 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9956
9957 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9958
9959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9960
9961 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9962
c298def0 99632008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 9964
9965 * commands/help.c: Include <grub/term.h>.
9966 (TERM_WIDTH): Removed. Updated all users.
9967
cc349fb3 99682008-07-27 Pavel Roskin <proski@gnu.org>
9969
9970 * util/getroot.c (find_root_device): Rephrase a comment to avoid
9971 spurious warnings about a comment within a comment.
9972
9051607e 99732008-07-25 Robert Millan <rmh@aybabtu.com>
9974
9975 * util/getroot.c (find_root_device): Skip devices that match
9976 /dev/dm-[0-9]. This lets the real device be found for any type of
9977 abstraction (LVM, EVMS, RAID..).
9978 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
9979 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
9980 device is found first, find_root_device() will now skip it.
9981
01453bfc 99822008-07-24 Pavel Roskin <proski@gnu.org>
9983
9984 * include/grub/types.h: Use __builtin_bswap32() and
9985 __builtin_bswap64() with gcc 4.3 and newer.
9986
6af9849f 99872008-07-24 Christian Franke <franke@computer.org>
9988
3a0fa256 9989 * util/i386/pc/grub-install.in: If `--debug' is specified,
9990 pass `--verbose' to grub-setup.
9991 Abort script if make_system_path_relative_to_its_root() fails.
9992
7810e747 99932008-07-24 Bean <bean123ch@gmail.com>
9994
9995 * configure.ac: Fixed a bug caused by the previous cygwin patch,
9996 variable `target_platform' should be `platform'.
9997
42290e17 99982008-07-24 Bean <bean123ch@gmail.com>
9999
51cc5193 10000 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 10001 (grub_png_init_fixed_block): New function.
10002 (grub_png_decode_image_data): Handle fixed huffman code compression.
10003
2a8a80e4 100042008-07-24 Bean <bean123ch@gmail.com>
10005
10006 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
10007 (grub_pe2elf_SOURCES): New macro.
10008 (CLEANFILES): Add grub-pe2elf.
10009
10010 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
10011 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
10012 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
10013 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
10014 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
10015 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
10016 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
10017 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
10018 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
10019 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
10020 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
10021 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
10022 (GRUB_PE32_DT_FUNCTION): Likewise.
10023 (GRUB_PE32_REL_I386_DIR32): Likewise.
10024 (GRUB_PE32_REL_I386_REL32): Likewise.
10025 (grub_pe32_symbol): New structure.
10026 (grub_pe32_reloc): Likewise.
10027
10028 * util/grub-pe2elf.c: New file.
10029
10030 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
10031 start symbol in non pc platform.
10032
10033 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
10034
10035 The following patches are from Christian Franke.
10036
10037 * include/grub/dl.h: Remove .previous, gas supports this only
10038 for ELF format.
10039
10040 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
10041 Remove .type, gas supports this only for ELF format.
10042
10043 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
10044 nullbytes in symbol table. This fixes an infinite loop if table is
10045 zero filled.
10046
10047 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
10048 TARGET_IMG_LDFLAGS and EXEEXT.
10049
10050 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
10051 TARGET_IMG_LDFLAGS_AC.
10052 (grub_CHECK_STACK_ARG_PROBE): New function.
10053
10054 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
10055
10056 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
10057
10058 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
10059 to set TARGET_IMG_LD* accordingly.
10060 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
10061 Add call to grub_CHECK_STACK_ARG_PROBE.
10062 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
10063
10064 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
10065
10066 * genmk.rb: Add EXEEXT to CLEANFILES.
10067
12ccdb75 100682008-07-23 Robert Millan <rmh@aybabtu.com>
10069
10070 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
10071 define the codes for arrows and lines used for the menu).
10072 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
10073 as well.
10074
10075 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
10076 fonts, because the latter are too slow.
10077
18eeaf04 100782008-07-21 Bean <bean123ch@gmail.com>
10079
10080 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
10081 a20. Run keyboard test last, as it will cause macbook to halt.
10082
b095e2ad 100832008-07-18 Pavel Roskin <proski@gnu.org>
10084
10085 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
10086 load foreign architecture modules correctly anyway. Keep
10087 support for loading host architecture modules, whether we
10088 compile them or not.
10089
737feb35 100902008-07-17 Pavel Roskin <proski@gnu.org>
10091
3f4ce737 10092 * configure.ac: Use -m32 or -m64 regardless of whether we had to
10093 change target_cpu. The compiler default can mismatch target_cpu
10094 in any case.
10095
4ad2d049 10096 * disk/efi/efidisk.c: Fix format warnings on x86_64.
10097 * kern/efi/efi.c: Likewise.
10098
f6130a12 10099 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
10100 target compiler is functional.
10101 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
10102 are set up.
10103
58393a2d 10104 * configure.ac: Default to efi platform for x86_64-apple. Allow
10105 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
10106 adjustments from the rest, only do them if target is not
10107 explicitly given. Merge other adjustments with the final sanity
10108 check. Remove an extraneous check for supported CPU. Be
10109 specific which CPU and which platform is not supported.
10110
737feb35 10111 * configure.ac: Default to pc platform for x86_64.
10112
546f966a 101132008-07-17 Robert Millan <rmh@aybabtu.com>
10114
10115 Partial LinuxBIOS -> Coreboot rename.
10116
10117 * conf/i386-linuxbios.rmk: Renamed to ...
10118 * conf/i386-coreboot.rmk: ... this.
10119 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
10120 * configure.ac: Accept "coreboot" as input platform (but maintain
10121 compatibility with "linuxbios").
10122 * include/grub/i386/linuxbios: Renamed to ...
10123 * include/grub/i386/coreboot: ... this.
10124
20011694 101252008-07-17 Bean <bean123ch@gmail.com>
10126
10127 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 10128 (appleldr_mod_SOURCE): New variable.
20011694 10129 (appleldr_mod_CFLAGS): Likewise.
10130 (appleldr_mod_LDFLAGS): Likewise.
10131 (pci_mod_SOURCES): Likewise.
10132 (pci_mod_CFLAGS): Likewise.
10133 (pci_mod_LDFLAGS): Likewise.
10134 (lspci_mod_SOURCES): Likewise.
10135 (lspci_mod_CFLAGS): Likewise.
10136 (lspci_mod_LDFLAGS): Likewise.
10137
10138 * conf/x86_64-efi.rmk: New file.
10139
10140 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
10141 macro.
10142 (grub_efidisk_write): Likewise.
10143
10144 * include/efi/api.h (efi_call_0): New macro.
10145 (efi_call_1): Likewise.
10146 (efi_call_2): Likewise.
10147 (efi_call_3): Likewise.
10148 (efi_call_4): Likewise.
10149 (efi_call_5): Likewise.
10150 (efi_call_6): Likewise.
10151
10152 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
10153 grub_rescue_cmd_chainloader.
10154
10155 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
10156 (grub_pe32_optional_header): Change some fields based on i386 or
10157 x86_64 platform.
10158 (GRUB_PE32_PE32_MAGIC): Likewise.
10159
10160 * include/grub/efi/uga_draw.h: New file.
10161
10162 * include/grub/elf.h (STN_ABS): New constant.
10163 (R_X86_64_NONE): Relocation constant for x86_64.
10164 (R_X86_64_64): Likewise.
10165 (R_X86_64_PC32): Likewise.
10166 (R_X86_64_GOT32): Likewise.
10167 (R_X86_64_PLT32): Likewise.
10168 (R_X86_64_COPY): Likewise.
10169 (R_X86_64_GLOB_DAT): Likewise.
10170 (R_X86_64_JUMP_SLOT): Likewise.
10171 (R_X86_64_RELATIVE): Likewise.
10172 (R_X86_64_GOTPCREL): Likewise.
10173 (R_X86_64_32): Likewise.
10174 (R_X86_64_32S): Likewise.
10175 (R_X86_64_16): Likewise.
10176 (R_X86_64_PC16): Likewise.
10177 (R_X86_64_8): Likewise.
10178 (R_X86_64_PC8): Likewise.
10179
10180 * include/grub/i386/efi/pci.h: New file.
10181
10182 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
10183 Change it value based on platform.
10184 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
10185 (GRUB_E820_RAM): Likewise.
10186 (GRUB_E820_RESERVED): Likewise.
10187 (GRUB_E820_ACPI): Likewise.
10188 (GRUB_E820_NVS): Likewise.
10189 (GRUB_E820_EXEC_CODE): Likewise.
10190 (GRUB_E820_MAX_ENTRY): Likewise.
10191 (grub_e820_mmap): New structure.
10192 (linux_kernel_header): Change the efi field according to different
10193 kernel version, also field from linux_kernel_header.
10194
10195 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
10196
10197 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
10198 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
10199 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
10200 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
10201 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
10202 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
10203 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
10204 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
10205 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
10206 (GRUB_PCI_ADDR_IO_MASK): Likewise.
10207
10208 * include/grub/x86_64/efi/kernel.h: New file.
10209
10210 * include/grub/x86_64/efi/loader.h: Likewise.
10211
10212 * include/grub/x86_64/efi/machine.h: Likewise.
10213
10214 * include/grub/x86_64/efi/pci.h: Likewise.
10215
10216 * include/grub/x86_64/efi/time.h: Likewise.
10217
10218 * include/grub/x86_64/linux.h: Likewise.
10219
10220 * include/grub/x86_64/setjmp.h: Likewise.
10221
10222 * include/grub/x86_64/time.h: Likewise.
10223
10224 * include/grub/x86_64/types.h: Likewise.
10225
10226 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
10227 GRUB_TARGET_SIZEOF_VOID_P.
10228
10229 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
10230 (grub_efi_locate_handle): Likewise.
10231 (grub_efi_open_protocol): Likewise.
10232 (grub_efi_set_text_mode): Likewise.
10233 (grub_efi_stall): Likewise.
10234 (grub_exit): Likewise.
10235 (grub_reboot): Likewise.
10236 (grub_halt): Likewise.
10237 (grub_efi_exit_boot_services): Likewise.
10238 (grub_get_rtc): Likewise.
10239
10240 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
10241 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
10242 (grub_efi_allocate_pages): Wrap efi calls.
10243 (grub_efi_free_pages): Wrap efi calls.
10244 (grub_efi_get_memory_map): Wrap efi calls.
10245
10246 * kern/x86_64/dl.c: New file.
10247
10248 * kern/x86_64/efi/callwrap.S: Likewise.
10249
10250 * kern/x86_64/efi/startup.S: Likewise.
10251
10252 * loader/efi/appleloader.c: Likewise.
10253
10254 * loader/efi/chainloader.c (cmdline): New variable.
10255 (grub_chainloader_unload): Wrap efi calls.
10256 (grub_chainloader_boot): Likewise.
10257 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
10258 command line.
10259
10260 * loader/efi/chainloader_normal.c (chainloader_command):
10261 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
10262 command line.
10263
10264 * loader/i386/efi/linux.c (allocate_pages): Change allocation
10265 method.
10266 (grub_e820_add_region): New function.
10267 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
10268 booting.
10269 (grub_find_video_card): New function.
10270 (grub_linux_setup_video): New function.
10271 (grub_rescue_cmd_linux): Probe for video information.
10272
10273 * normal/x86_64/setjmp.S: New file.
10274
10275 * term/efi/console.c (map_char): New function.
10276 (grub_console_putchar): Map unicode char.
10277 (grub_console_checkkey): Wrap efi calls.
10278 (grub_console_getkey): Likewise.
10279 (grub_console_getwh): Likewise.
10280 (grub_console_gotoxy): Likewise.
10281 (grub_console_cls): Likewise.
10282 (grub_console_setcolorstate): Likewise.
10283 (grub_console_setcursor): Likewise.
10284
10285 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
10286
59652a20 102872008-07-16 Pavel Roskin <proski@gnu.org>
10288
ef294055 10289 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
10290 format strings.
10291
59652a20 10292 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
10293 pointer, not an integer. This fixes a warning and prevents
10294 precision loss on 64-bit systems.
10295 (relocate_addresses): Remove unneeded cast.
10296
afc3b5d7 102972008-07-15 Pavel Roskin <proski@gnu.org>
10298
506b2b3e 10299 * kern/i386/ieee1275/init.c: Include grub/cache.h.
10300
62ead89c 10301 * term/ieee1275/ofconsole.c: Disable code unused on i386.
10302
c4cd51d7 10303 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
10304 Fix comparison between signed and unsigned.
10305
0d3d8f28 10306 * include/grub/i386/ieee1275/console.h: Declare
10307 grub_console_init() and grub_console_fini().
10308
8804b286 10309 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
10310 It's empty and unused.
10311
ee01cf35 10312 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
10313 beginning to avoid warnings with some compilers.
10314
afc3b5d7 10315 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
10316 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
10317
e4e8eaa5 103182008-07-14 Pavel Roskin <proski@gnu.org>
10319
407aceb4 10320 * kern/env.c (grub_register_variable_hook): Don't copy empty
10321 string, it leaks memory. Pass "" to grub_env_set(), it should
10322 handle constant strings.
10323
e4e8eaa5 10324 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
10325 * commands/cmp.c (grub_cmd_cmp): Likewise.
10326 * kern/dl.c (grub_dl_flush_cache): Likewise.
10327 (grub_dl_load_core): Likewise.
10328 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
10329 (grub_elf64_load_phdrs): Likewise.
10330
d4e2dad3 103312008-07-13 Pavel Roskin <proski@gnu.org>
10332
10333 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
10334 between signed and unsigned.
10335 (LzmaEnc_Finish): Fix warning about an unused parameter.
10336
aa24b516 103372008-07-13 Bean <bean123ch@gmail.com>
10338
10339 * Makefile.in (enable_lzo): New rule.
10340
10341 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
10342
10343 * configure.ac (ENABLE_LZO): New option --enable-lzo.
10344
10345 * boot/i386/pc/lnxboot.S: #include <config.h>.
10346
10347 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 10348 its value according to the compression algorithm used, lzo or lzma.
aa24b516 10349
10350 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
10351 compression algorithm according to configure macro.
10352
10353 * kern/i386/pc/startup.S (codestart): Likewise.
10354
10355 * kern/i386/pc/lzma_decode.S: New file.
10356
10357 * include/grub/lib/LzFind.h: Likewise.
10358
10359 * include/grub/lib/LzHash.h: Likewise.
10360
10361 * include/grub/lib/LzmaDec.h: Likewise.
10362
10363 * include/grub/lib/LzmaEnc.h: Likewise.
10364
10365 * include/grub/lib/LzmaTypes.h: Likewise.
10366
10367 * lib/LzFind.c: Likewise.
10368
10369 * lib/LzmaDec.c: Likewise.
10370
10371 * lib/LzmaEnc.c: Likewise.
10372
4ae821ac 103732008-07-13 Bean <bean123ch@gmail.com>
10374
10375 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
10376 (grub_ext4_extent_header): New structure.
10377 (grub_ext4_extent): Likewise.
10378 (grub_ext4_extent_idx): Likewise.
10379 (grub_ext4_find_leaf): New function.
10380 (grub_ext2_read_block): Handle extents.
10381
9a745147 103822008-07-12 Robert Millan <rmh@aybabtu.com>
10383
10384 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
10385
d49a4cf6 103862008-07-11 Robert Millan <rmh@aybabtu.com>
10387
10388 * util/grub.d/40_custom.in: New file. Example on how to add custom
10389 entries to /etc/grub.d.
10390 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
10391 40_custom (implicitly, by merging all the grub.d rules).
10392
947414b4 103932008-07-11 Pavel Roskin <proski@gnu.org>
10394
0059cf6f 10395 * commands/read.c (grub_getline): Fix invalid memory access.
10396 Don't add newline to the variable value.
10397
947414b4 10398 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
10399 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
10400 (serial_hw_get_port): Check validity of the port number.
10401 (grub_cmd_serial): Check return value of serial_hw_get_port().
10402
62a02d00 104032008-07-07 Pavel Roskin <proski@gnu.org>
10404
10405 * boot/i386/pc/diskboot.S (notification_string): Replace
10406 "Loading kernel" with just "loading". This is shorter, less
10407 confusing and saves a few bytes for possible future changes.
10408
3e5581b0 104092008-07-05 Pavel Roskin <proski@gnu.org>
10410
ea387a48 10411 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
10412 size for ATAPI devices, they are undefined. Output sector
10413 number in decimal form.
10414
3e5581b0 10415 * disk/ata.c: Use named constants for status bits.
10416
fdecb8fd 104172008-07-04 Pavel Roskin <proski@gnu.org>
10418
bcd35b90 10419 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
10420 grub_addr_t before casting it to the void pointer to fix a
10421 warning. Non-addressable regions are discarded earlier.
10422 (grub_arch_modules_addr): Cast _end to grub_addr_t.
10423 * kern/i386/linuxbios/table.c: Include grub/misc.h.
10424 (check_signature): Don't shadow table_header.
10425 (grub_linuxbios_table_iterate): Cast numeric constants to
10426 grub_linuxbios_table_header_t.
10427 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
10428 grub_stop().
10429
af58ab3d 10430 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
10431 prevent warnings.
10432
1759aa57 10433 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
10434 pointer, which can cause warnings. Support 64-bit addresses.
10435
fdecb8fd 10436 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
10437 of sizeof(long). This fixes PowerPC image generation on x86_64.
10438
8516d2a8 104392008-07-04 Robert Millan <rmh@aybabtu.com>
10440
10441 This fixes a performance issue when pc & gpt partmap iterators
10442 didn't abort iteration even after our hook found what it was
fe987087 10443 looking for (often causing expensive probes of non-existent drives).
8516d2a8 10444
10445 Some callers relied on previous buggy behaviour, since they would
34c44600 10446 raise an error when their own hooks caused early abortion of its
8516d2a8 10447 iteration.
10448
10449 * kern/device.c (grub_device_open): Improve error message.
10450 * disk/lvm.c (grub_lvm_open): Likewise.
10451 * disk/raid.c (grub_raid_open): Likewise.
10452
10453 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
10454 when hook requests it, independently of grub_errno.
10455 (pc_partition_map_probe): Do not fail when find_func() caused
10456 early abortion of pc_partition_map_iterate().
10457
10458 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
10459 when hook requests it, independently of grub_errno.
10460 (gpt_partition_map_probe): Do not fail when find_func() caused
10461 early abortion of gpt_partition_map_iterate().
10462
10463 * kern/partition.c (grub_partition_iterate): Abort parent iteration
10464 when hook requests it, independently of grub_errno. Do not fail when
10465 part_map_iterate_hook() caused early abortion of p->iterate().
10466
10467 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
10468 when grub_partition_iterate() returned with non-zero.
10469
277d0de9 104702008-07-03 Pavel Roskin <proski@gnu.org>
10471
10472 * disk/ata.c (grub_ata_pio_write): Check status before writing,
10473 like we do in grub_ata_pio_read().
10474 (grub_ata_readwrite): Always write individual sectors. Fix the
10475 sector count for the remainder.
10476 (grub_ata_write): Enable writing to ATA devices. Correctly
10477 report error for ATAPI devices.
10478
d4c9b428 104792008-07-02 Pavel Roskin <proski@gnu.org>
10480
e43fc690 10481 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
10482 warning.
10483
f707af42 10484 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
10485 for every read sector, we already increment it for the whole
10486 batch. This fixes reading more than 256 sectors at once.
10487
11e16b15 10488 * util/grub-editenv.c (cmd_info): Cast argument to long
10489 explicitly. ptrdiff_t reduces to int on i386.
10490
cbabfdd4 10491 * util/grub-editenv.c (main): Be specific which parameter is
10492 missing.
10493
b8fbce0a 10494 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
10495 (memdisk): Make memdisk_orig_addr a pointer.
10496
c9c8e606 10497 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
10498 for file offsets, use grub_off_t instead. Fix printf format
10499 warnings.
10500
ca62e598 10501 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
10502 there. Real unexpected warnings should not drown in the noise
10503 about known problems.
10504
ce8d1766 10505 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
10506 grub_disk_addr_t for memory addresses.
10507
00c7a56a 10508 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
10509 explicitly to fix a warning.
10510
08d3ef09 10511 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
10512
cb71ba20 10513 * Makefile.in (MODULE_LDFLAGS): New variable.
10514 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
10515 the linker accepts --build-id=none.
10516 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
10517 MODULE_LDFLAGS.
10518 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
10519
d4c9b428 10520 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
10521 those in Linux XFS code. Provide a way to access 64-bit parent
10522 inode.
10523 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
10524 the end of struct grub_xfs_dir_header.
10525
d4156eee 105262008-07-02 Bean <bean123ch@gmail.com>
10527
10528 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
10529 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10530 and GRUB_IEEE1275_FLAG_NO_ANSI.
10531
10532 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
10533 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
10534 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
10535
10536 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
10537 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
10538
10539 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
10540 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
10541
10542 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
10543 esc sequence on non ANSI terminal.
10544 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
10545
10546 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
10547 beginning of file.
10548
2270f77b 105492008-07-02 Bean <bean123ch@gmail.com>
10550
10551 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
10552 (grub_editenv_SOURCES): New variable.
10553 (pkglib_MODULES): Add loadenv.mod.
10554 (loadenv_mod_SOURCES): New variable.
10555 (loadenv_mod_CFLAGS): Likewise.
10556 (loadenv_mod_LDFLAGS): Likewise.
10557
10558 * include/grub/envblk.h: New file.
10559
10560 * util/envblk.c: New file.
10561
10562 * util/grub-editenv.c: New file.
10563
10564 * commands/loadenv.c: New file.
10565
0e9e51ec 105662008-07-01 Pavel Roskin <proski@gnu.org>
10567
d89b7634 10568 * include/multiboot2.h (struct multiboot_tag_module): Use char,
10569 not unsigned char. This fixes warnings and is consistent with
10570 other tags.
10571
bf1835b1 10572 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
10573
8222a04b 10574 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
10575
6a42d99d 10576 * term/tparm.c (analyze): Always set *popcount.
10577
10b159d1 10578 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
10579 cast to fix a warning.
10580
b8789f6c 10581 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
10582 cast to suppress a warning.
10583
29d7e38a 10584 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
10585 grub_fshelp_read_file() expects.
10586
f341f669 10587 * fs/fat.c: Fix UUID calculation on big-endian systems. We
10588 write uuid as a 32-bit value in CPU byte order, so declare and
10589 use it as such.
10590
0e9e51ec 10591 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
10592 long if the format specifier expects it.
10593 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
10594 * partmap/pc.c (pc_partition_map_iterate): Likewise.
10595 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
10596 long to fix a warning.
10597 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
10598 grub_dprintf() arguments to fix warnings.
10599
3aefa857 106002008-06-30 Pavel Roskin <proski@gnu.org>
10601
56c7668b 10602 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
10603 install_bsd_part immediately before core.img is embedded or
10604 modified on disk. This fixes core.img verification if core.img
10605 cannot be embedded.
10606
3aefa857 10607 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
10608 core_path to calculate the blocklist.
10609 Patch from Javier Martín <lordhabbit@gmail.com>
10610
5444088d 106112008-06-29 Robert Millan <rmh@aybabtu.com>
10612
10613 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
10614 block to disk block.
10615 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
10616 Patch from Niels Böhm <bitbucket@arcor.de>
10617
674835c8 106182008-06-29 Robert Millan <rmh@aybabtu.com>
10619
10620 * util/update-grub_lib.in (font_path): Search for fonts in
10621 /boot/grub first, which is more likely to be readable (we aren't
10622 deciding where fonts live, just looking for them).
10623
f527dbc8 106242008-06-26 Pavel Roskin <proski@gnu.org>
10625
6c2d8df6 10626 * util/biosdisk.c (read_device_map): Don't leave dead map
10627 entries for devices failing stat() check.
10628
f527dbc8 10629 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
10630 core_path_dev for the core.img path on the target device.
10631
aebe3d13 106322008-06-26 Robert Millan <rmh@aybabtu.com>
10633
10634 * disk/fs_uuid.c: New file.
10635 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
10636 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
10637 (fs_uuid_mod_LDFLAGS): New variables.
10638 * include/grub/disk.h (grub_disk_dev_id): Add
10639 `GRUB_DISK_DEVICE_UUID_ID'.
10640 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
10641 implement iterate().
10642
37aaf354 106432008-06-26 Robert Millan <rmh@aybabtu.com>
10644
10645 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
10646 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
10647 Linux image includes no initrd.
10648
25ff262a 106492008-06-21 Javier Martín <lordhabbit@gmail.com>
10650
10651 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
10652 call to resolve the core image location that effectively appended the
10653 name twice.
10654
76a2bd44 106552008-06-21 Robert Millan <rmh@aybabtu.com>
10656
10657 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
10658 call from here ...
10659
10660 * util/grub.d/10_hurd.in: ... to here ...
10661 * util/grub.d/10_linux.in: ... and here.
10662
650e1c79 106632008-06-19 Robert Millan <rmh@aybabtu.com>
10664
fe987087 10665 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 10666 after it has been set by grub_machine_set_prefix().
10667
6ce63911 106682008-06-19 Robert Millan <rmh@aybabtu.com>
10669
10670 * commands/search.c (search_label, search_fs_uuid, search_file): Print
10671 search result when not saving to variable, not the other way around.
10672 When saving to variable, abort iteration as soon as a match is found.
10673
73940cec 106742008-06-19 Robert Millan <rmh@aybabtu.com>
10675
10676 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
10677 check for partition that provides /boot/grub. Its logic is flawed,
10678 as it prevents prepare_grub_to_access_device() from being called
10679 multiple times.
10680
3c62a39d 106812008-06-19 Robert Millan <rmh@aybabtu.com>
10682
10683 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
10684 "insmod" command directly when abstraction modules are needed,
fe987087 10685 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 10686 since it had already been processed).
10687
47395a42 106882008-06-19 Pavel Roskin <proski@gnu.org>
10689
10690 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
10691 changed. This is needed in case GRUB_LIBDIR changes.
10692 * conf/i386-ieee1275.rmk: Likewise.
10693 * conf/i386-linuxbios.rmk: Likewise.
10694 * conf/i386-pc.rmk: Likewise.
10695 * conf/powerpc-ieee1275.rmk: Likewise.
10696
a145ac2d 106972008-06-18 Pavel Roskin <proski@gnu.org>
10698
10699 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
10700 kernel_elf_symlist.c to symlist.c for consistency with other
10701 architectures. Update all users.
10702 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
10703
7847c51e 107042008-06-18 Robert Millan <rmh@aybabtu.com>
10705
10706 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
10707 it in prefix.
10708
10709 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
10710 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
10711 a RAID device, run setup() for all members independently on whether
10712 LVM abstraction is being used.
10713 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
10714 If grub-mkimage has set `*install_dos_part == -2', don't override this
10715 value.
10716 Perform *install_dos_part adjustments independently on whether
10717 we're embedding or not.
10718 Clarify error message when image is too big for embedding.
10719 Remove duplicate *install_dos_part stanza.
10720
b23e5644 107212008-06-17 Robert Millan <rmh@aybabtu.com>
10722
10723 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
10724 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
10725 variables.
10726 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
10727 values in grub_ofconsole_normal_color and
10728 grub_ofconsole_highlight_color (they're not directly related to
10729 background and foreground).
10730 (grub_ofconsole_setcolorstate): Extract background and foreground
10731 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
10732
0aac2f79 107332008-06-17 Robert Millan <rmh@aybabtu.com>
10734
10735 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
10736 /boot/grub for the check in last commit, not /boot (they could be
10737 different partitions).
10738
3cca7ef3 107392008-06-16 Robert Millan <rmh@aybabtu.com>
10740
10741 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
10742 asked to setup access for the same partition that provides /boot,
10743 don't bother using UUIDs since our root already has the value we
10744 want.
10745
347396d8 107462008-06-16 Robert Millan <rmh@aybabtu.com>
10747
10748 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
10749 I2O devices.
10750 Patch from Sven Mueller <sven@debian.org>.
10751
991477f8 107522008-06-16 Robert Millan <rmh@aybabtu.com>
10753
10754 * util/update-grub.in: Check for $EUID instead of $UID.
10755 Reported by Vincent Zweije.
10756
d31a32a1 107572008-06-16 Bean <bean123ch@gmail.com>
10758
fe987087 10759 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 10760 (grub_ext2_read_block): Likewise.
10761 (grub_ext2_read_inode): Likewise.
10762 (grub_ext2_mount): Likewise.
10763 (grub_ext2_close): Likewise.
10764 (grub_ext3_get_journal): Removed.
10765
fe987087 10766 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 10767 (grub_reiserfs_read_symlink): Likewise.
10768 (grub_reiserfs_mount): Likewise.
10769 (grub_reiserfs_open): Likewise.
10770 (grub_reiserfs_read): Likewise.
10771 (grub_reiserfs_close): Likewise.
10772 (grub_reiserfs_get_journal): Removed.
10773
10774 * fs/fshelp.c (grub_fshelp_read): Removed.
10775 (grub_fshelp_map_block): Likewise.
10776
10777 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
10778 (grub_fshelp_journal): Likewise.
10779 (grub_fshelp_read): Likewise.
10780 (grub_fshelp_map_block): Likewise.
10781
3540a760 107822008-06-16 Pavel Roskin <proski@gnu.org>
10783
10784 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
10785 floating point anymore.
10786 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
10787
95614c84 107882008-06-15 Pavel Roskin <proski@gnu.org>
10789
10790 * commands/ls.c (grub_ls_list_files): Use integer calculations
10791 for human readable format, avoid floating point use.
10792 * kern/misc.c (grub_ftoa): Remove.
10793 (grub_vsprintf): Remove floating point support.
10794
50465dd6 107952008-06-15 Robert Millan <rmh@aybabtu.com>
10796
fe6b695a 10797 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 10798 devices.
10799 Reported by Max Vozeler.
10800
a9207284 108012008-06-15 Robert Millan <rmh@aybabtu.com>
10802
10803 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
10804 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
10805 skipped later.
10806 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
10807 the beginning of the prefix.
10808
10809 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
10810 It is assumed that if we have a memdisk, grub-mkimage has set
10811 grub_prefix to include the "(memdisk)" drive in it.
10812
a7cbd45a 108132008-06-15 Robert Millan <rmh@aybabtu.com>
10814
10815 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
10816 Initialize keyboard controller after registering the terminal, so that
10817 grub_printf() can be called from grub_keyboard_controller_init().
10818
21cf716a 108192008-06-15 Robert Millan <rmh@aybabtu.com>
10820
10821 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
10822 extent-btree which is written as big endian on disk.
10823 Reported by Alain Greppin <al@chilibi.org>.
10824
23a64d8e 108252008-06-14 Robert Millan <rmh@aybabtu.com>
10826
10827 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
10828 * util/i386/pc/grub-install.in (modules): Likewise.
10829
d687651c 108302008-06-13 Pavel Roskin <proski@gnu.org>
10831
10832 * commands/ls.c (grub_ls_list_files): Fix format warnings.
10833
dfe9ddd4 108342008-06-13 Bean <bean123ch@gmail.com>
10835
10836 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
10837
10838 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
10839
10840 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
10841 to indicate sparse block.
10842
16ae7781 108432008-06-12 Pavel Roskin <proski@gnu.org>
10844
e6d1a308 10845 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
10846 number, grub_fshelp_read() does it for us.
10847
16ae7781 10848 * fs/fshelp.c (grub_fshelp_read): New function. Implement
10849 linear disk read with journal translation.
10850 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
10851 * include/grub/fshelp.h: Declare grub_fshelp_read().
10852
40fd3a2b 108532008-06-09 Pavel Roskin <proski@gnu.org>
10854
10855 * fs/minix.c (grub_minix_mount): Handle error reading
10856 superblock.
10857
f5679726 108582008-06-08 Robert Millan <rmh@aybabtu.com>
10859
10860 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
10861 don't append the RAID prefix afterwards.
10862 Reported by Clint Adams.
10863
ce525529 108642008-06-08 Robert Millan <rmh@aybabtu.com>
10865
10866 Based on description from Pavel:
10867 * kern/disk.c (grub_disk_check_range): Rename to ...
10868 (grub_disk_adjust_range): ... this. Add a comment explaining the
10869 tasks performed by this function.
10870
ad4936a0 108712008-06-08 Robert Millan <rmh@aybabtu.com>
10872
10873 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
10874 `num_serial' (for consistency with other variables).
10875 (struct grub_ntfs_data): Add `uuid' member.
10876 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
10877 (grub_ntfs_uuid): New function.
10878 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
10879
dc20b0f9 108802008-06-07 Pavel Roskin <proski@gnu.org>
10881
10882 * util/biosdisk.c (open_device): Revert last change to the
10883 function, it broke installation. The sector needs to be
10884 different dependent on which device is opened.
10885
c5e3cfba 108862008-06-06 Robert Millan <rmh@aybabtu.com>
10887
10888 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
10889 rest of GRUB, and breakage doesn't happen if its value were modified.
10890
10891 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
10892 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
10893 a constant (same value).
10894 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
10895 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
10896
26a1f8c4 108972008-06-06 Robert Millan <rmh@aybabtu.com>
10898
10899 * util/biosdisk.c (open_device): Do not modify sector offset when
10900 accessing a partition. kern/disk.c already handles this for us.
10901
25d6b327 109022008-06-06 Robert Millan <rmh@aybabtu.com>
10903
10904 * util/grub-emu.c (grub_machine_init): Move code in this function from
10905 here ...
10906 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
10907 segfault in case grub_printf() is called).
10908
10909 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
10910 grub_probe. Update all users not to explicitly add it again.
10911 (grub_device): New variable; contains corresponding device for grubdir.
10912 (fs_module, partmap_module, devabstraction_module): Pass
10913 `--device ${grub_device}' to grub_probe to avoid traversing /dev
10914 every time.
10915
9ece62fb 109162008-06-05 Robert Millan <rmh@aybabtu.com>
10917
10918 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
10919 is found, print it (same layout as with labels).
10920
1ad36d37 109212008-06-04 Robert Millan <rmh@aybabtu.com>
10922
10923 * util/biosdisk.c (get_drive): Rename to ...
10924 (find_grub_drive): ... this. Update all users.
10925
10926 (get_os_disk): Rename to ...
10927 (convert_system_partition_to_system_disk): ... this. Update all users.
10928
10929 (find_drive): Rename to ...
10930 (find_system_device): ... this. Update all users.
10931
e6a30859 109322008-06-04 Robert Millan <rmh@aybabtu.com>
10933
10934 * util/biosdisk.c (get_os_disk): Handle IDA devices.
10935 * util/grub-mkdevicemap.c (get_mmc_disk_name)
10936 (make_device_map): Likewise.
10937
00c108a4 109382008-06-01 Robert Millan <rmh@aybabtu.com>
10939
10940 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
10941 before dereferencing it.
10942
10943 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
10944 union with fat12/fat16-specific ones. Add some new fields, including
10945 `num_serial' for both versions.
10946 (struct grub_fat_data): Add `uuid' member.
10947 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
10948 names. Initialize `data->uuid' using `num_serial'.
10949 (grub_fat_uuid): New function.
10950 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
10951
10952 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
10953 (grub_reiserfs_uuid): New function.
10954 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
10955 member.
10956
10957 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
10958 (grub_xfs_uuid): New function.
10959 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
10960
1385c5bb 109612008-06-01 Robert Millan <rmh@aybabtu.com>
10962
10963 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
10964 code that is backward compatible with pre-uuid search command.
10965
c682dfd7 109662008-05-31 Robert Millan <rmh@aybabtu.com>
10967
10968 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
10969 floppies after everything else, to ensure floppy drive isn't accessed
10970 unnecessarily (patch from Bean).
10971
b7db5d47 109722008-05-31 Robert Millan <rmh@aybabtu.com>
10973
10974 * commands/search.c (search_label, search_fs_uuid, search_file): Do
10975 not print device names when we were asked to set a variable.
10976
6e037aa9 109772008-05-31 Robert Millan <rmh@aybabtu.com>
10978
10979 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
10980 using "cursor-on" and "cursor-off" commands (understood at least by
10981 the Open Firmware flavour on OLPC).
10982
41305bc8 109832008-05-31 Michael Gorven <michael@gorven.za.net>
10984
10985 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
10986 on and off sequences.
10987
69ba137e 109882008-05-31 Robert Millan <rmh@aybabtu.com>
10989
10990 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
10991 * util/update-grub.in: Likewise.
10992
520ae21b 109932008-05-30 Pavel Roskin <proski@gnu.org>
10994
10995 * util/biosdisk.c (linux_find_partition): Simplify logic and
10996 make the code more universal. Keep special processing for
10997 devfs, but use a simple rule for all other devices. If the
10998 device ends with a number, append 'p' and the partition number.
10999 Otherwise, append only the partition number.
11000
5786569b 110012008-05-30 Robert Millan <rmh@aybabtu.com>
11002
11003 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
11004 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
11005 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
11006 the `root' parameter to Linux.
11007
51500452 110082008-05-30 Robert Millan <rmh@aybabtu.com>
11009
11010 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
11011 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
11012 --fs_uuid with --fs-uuid.
11013 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
11014 all filesystems support them).
11015
811d3878 110162008-05-30 Robert Millan <rmh@aybabtu.com>
11017
11018 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 11019 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 11020
cab63c95 110212008-05-30 Robert Millan <rmh@aybabtu.com>
11022
11023 * util/grub.d/00_header.in: Remove obsolete comment referencing
11024 convert_system_path_to_grub_path().
11025 * util/update-grub.in: Likewise.
11026 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
11027 (convert_system_path_to_grub_path): Add a warning message explaining
11028 that this function is deprecated. Rely on is_path_readable_by_grub()
11029 for the readability checks.
11030 (font_path): Use is_path_readable_by_grub() for the readability
11031 check rather than convert_system_path_to_grub_path().
11032
972e2f7a 110332008-05-30 Robert Millan <rmh@aybabtu.com>
11034
11035 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
11036 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
11037 converting it first.
11038 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
11039 grub.cfg for access to font file, and afterwards call it again to set
11040 the root device.
11041
62191274 110422008-05-30 Robert Millan <rmh@aybabtu.com>
11043
11044 * commands/search.c (options): Add --fs_uuid option.
11045 (search_fs_uuid): New function.
11046 (grub_cmd_search): Fix --set argument passing.
11047 Use search_fs_uuid() when requested via --fs_uuid.
11048 (grub_search_init): Update help message.
11049 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
11050 and redeclare it as an array of 16-bit words.
11051 (grub_ext2_uuid): New function.
11052 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
11053 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
11054 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
11055 (GRUB_DEVICE_BOOT_UUID): New variables.
11056 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
11057 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
11058 whenever possible.
11059 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
11060 just assume `root' variable has the right value.
11061 * util/grub.d/10_linux.in: Likewise.
11062 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
11063 via PRINT_FS_UUID.
11064 (main): Recognise `-t fs_uuid' argument.
11065
01b73ec8 110662008-05-30 Robert Millan <rmh@aybabtu.com>
11067
11068 * util/biosdisk.c (map): Redefine structure to hold information
11069 about GRUB drive name.
fe6b695a 11070 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 11071 drive names.
11072 (call_hook): Remove.
11073 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
11074 member. Assume drive has partitions.
11075 (grub_util_biosdisk_open): Access device names via `.device' struct
11076 member.
11077 (open_device): Likewise.
11078 (find_drive): Likewise.
11079 (read_device_map): Adjust map[] usage to match the new struct
11080 definition. Don't check for duplicates (still possible, but not cheap
11081 anymore).
11082 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
11083 (make_device_name): Remove assumption of BIOS-like drive names.
11084
22f16596 110852008-05-30 Pavel Roskin <proski@gnu.org>
11086
11087 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
11088 compiling execute.c doesn't need grub_script.tab.h anymore.
11089 (normal/command.c_DEPENDENCIES): Likewise.
11090 (normal/function.c_DEPENDENCIES): Likewise.
11091 * conf/i386-ieee1275.rmk: Likewise.
11092 * conf/i386-linuxbios.rmk: Likewise.
11093 * conf/i386-pc.rmk: Likewise.
11094 * conf/powerpc-ieee1275.rmk: Likewise.
11095 * conf/sparc64-ieee1275.rmk: Likewise.
11096
528ad8f2 110972008-05-29 Pavel Roskin <proski@gnu.org>
11098
d1dff95d 11099 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
11100 when scanning metadata for volume group name.
11101
528ad8f2 11102 * include/grub/script.h: Don't include grub_script.tab.h. It's
11103 a generated file, which may only be included from the files with
11104 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
11105 use union YYSTYPE, as the later allows forward declaration.
11106 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
11107
47248e08 111082008-05-29 Robert Millan <rmh@aybabtu.com>
11109
11110 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
11111 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
11112 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
11113 (grub_console_checkkey): Add grub_dprintf() call to report unknown
11114 scan codes.
11115
ee632529 111162008-05-29 Robert Millan <rmh@aybabtu.com>
11117
11118 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
11119 control key combinations.
11120
eee96e08 111212008-05-29 Robert Millan <rmh@aybabtu.com>
11122
11123 * util/powerpc/ieee1275/grub-install.in: Move from here ...
11124 * util/ieee1275/grub-install.in: ... to here.
11125 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
11126 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
11127 (grub_install_SOURCES): Likewise.
11128
da9a6a94 111292008-05-29 Robert Millan <rmh@aybabtu.com>
11130
11131 * fs/affs.c: Update copyright year.
11132 * fs/ext2.c: Likewise.
11133 * fs/fshelp.c: Likewise.
11134 * fs/hfsplus.c: Likewise.
11135 * fs/ntfs.c: Likewise.
11136 * fs/xfs.c: Likewise.
11137 * include/grub/fshelp.h: Likewise.
11138 * util/grub-mkdevicemap.c: Likewise.
11139
12e65f3a 111402008-05-28 Robert Millan <rmh@aybabtu.com>
11141
11142 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
11143 might need to be fatfs to support some firmware implementations
11144 (e.g. OFW or EFI).
11145
23023641 111462008-05-28 Robert Millan <rmh@aybabtu.com>
11147
11148 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
11149 devices.
11150 * util/grub-mkdevicemap.c (get_mmc_disk_name)
11151 (make_device_map): Likewise.
11152
887d2619 111532008-05-20 Bean <bean123ch@gmail.com>
11154
11155 * fs/fshelp.c (grub_fshelp_map_block): New function.
11156 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
11157 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
11158
11159 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
11160 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
11161 (grub_fshelp_journal): New structure.
11162 (grub_fshelp_map_block): New function prototype.
11163 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
11164 (grub_fshelp_map_block): Likewise.
11165
11166 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
11167 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
11168 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
11169 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
11170 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
11171 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
11172 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
11173 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
11174 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
11175 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
11176 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
11177 (grub_ext2_sblock): New members for journal support.
11178 (grub_ext3_journal_header): New structure.
11179 (grub_ext3_journal_revoke_header): Likewise.
11180 (grub_ext3_journal_block_tag): Likewise.
11181 (grub_ext3_journal_sblock): Likewise.
11182 (grub_fshelp_node): New members logfile and journal.
11183 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
11184 grub_fshelp_map_block to get real block number.
11185 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
11186 number.
11187 (grub_ext2_read_inode): Likewise.
11188 (grub_ext3_get_journal): New function.
11189 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
11190 (grub_ext2_close): Release memory used by journal.
11191
11192 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
11193 (REISERFS_MAGIC_DESC_BLOCK): New macro.
11194 (grub_reiserfs_transaction_header): Renamed to
11195 grub_reiserfs_description_block, replace field data with real_blocks.
11196 (grub_reiserfs_commit_block): New structure.
11197 (grub_reiserfs_data): New member journal.
11198 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
11199 number.
11200 (grub_reiserfs_read_symlink): Likewise.
11201 (grub_reiserfs_iterate_dir): Likewise.
11202 (grub_reiserfs_open): Likewise.
11203 (grub_reiserfs_read): Likewise.
11204 (grub_reiserfs_get_journal): New function.
11205 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
11206 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
11207 using grub_reiserfs_get_journal.
11208 (grub_reiserfs_close): Release memory used by journal.
11209
11210 * fs/affs.c (grub_affs_read_block): Change block type to
11211 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
11212
11213 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
11214
11215 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
11216
11217 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
11218
11219 * fs/udf.c (grub_udf_read_block): Change block type to
11220 grub_disk_addr_t. Use type cast to avoid warning.
11221
11222 * fs/xfs.c (grub_xfs_read_block): Likewise.
11223
b7c6bed5 112242008-05-16 Christian Franke <franke@computer.org>
11225
11226 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
11227 to ensure that break with ESC will always work.
11228 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
11229 Remove ESC from keyboard queue.
11230
eedf167f 112312008-05-16 Christian Franke <franke@computer.org>
11232
11233 * util/biosdisk.c: [__CYGWIN__] Add includes.
11234 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
11235 (get_os_disk): Move variable declarations to OS specific
11236 parts to avoid warning.
11237 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
11238 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
11239 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
11240 Cygwin.
11241 * util/getroot.c: [__CYGWIN__] Add includes.
11242 (strip_extra_slashes): Fix "/" case.
11243 [__CYGWIN__] (get_win32_path): New function.
11244 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
11245 [__CYGWIN__] (find_root_device): Disable.
11246 [__CYGWIN__] (get_bootsec_serial): New function.
11247 [__CYGWIN__] (find_cygwin_root_device): Likewise.
11248 [__linux__] (grub_guess_root_device): Add early returns to simplify
11249 structure.
11250 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
11251 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
11252 check for Linux only.
11253
a079699e 112542008-05-15 Bean <bean123ch@gmail.com>
11255
11256 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
11257 keyboard hang problem in apple's intel mac.
11258
1cf4059a 112592008-05-09 Robert Millan <rmh@aybabtu.com>
11260
11261 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
11262 devices.
11263 * util/grub-mkdevicemap.c (get_virtio_disk_name)
11264 (make_device_map): Likewise.
11265 Reported by Aurelien Jarno <aurel32@debian.org>
11266
ed759390 112672008-05-07 Ian Campbell <ijc@hellion.org.uk>
11268
11269 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
11270 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
11271 (make_device_map): Output entries for xvd type disks.
11272
b56c4eaa 112732008-05-07 Robert Millan <rmh@aybabtu.com>
11274
11275 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
11276 devices.
11277 * util/grub-mkdevicemap.c (get_cciss_disk_name)
11278 (make_device_map): Likewise.
11279 Reported by Roland Dreier <rdreier@cisco.com>
11280
7f8866ed 112812008-05-07 Robert Millan <rmh@aybabtu.com>
11282
11283 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
11284 grub_strstr() call. Correct a few mistakes in failure path handling.
11285
b0346e0f 112862008-05-06 Robert Millan <rmh@aybabtu.com>
11287
11288 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
11289 Do not print a trailing slash (therefore, the root directory is an
11290 empty string).
11291 (convert_system_path_to_grub_path): Do not remove trailing slash
11292 from make_system_path_relative_to_its_root() output.
11293
11294 * util/i386/pc/grub-install.in: Add trailing slash to output from
11295 make_system_path_relative_to_its_root().
11296
6cf12cbd 112972008-05-06 Robert Millan <rmh@aybabtu.com>
11298
11299 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
11300 ensures that output lines aren't intermangled with those sent to
11301 stderr (via grub_util_info()).
11302 * util/grub-probe.c (grub_refresh): Likewise.
11303 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
11304
0fbb3117 113052008-05-05 Christian Franke <franke@computer.org>
11306
11307 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
11308 Add Cygwin device names.
11309 (get_ide_disk_name) [__CYGWIN__]: Likewise.
11310 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
11311 (check_device): Return error instead of success on empty name.
11312 (make_device_map): Move label inside linux specific code to
11313 prevent compiler warning.
11314
8124cdb7 113152008-04-30 Robert Millan <rmh@aybabtu.com>
11316
11317 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
11318 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
11319 first boot option.
11320 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
11321
094c01d0 113222008-04-29 Robert Millan <rmh@aybabtu.com>
11323
11324 * docs/grub.cfg: New file (example GRUB configuration).
11325
f4b1fc02 113262008-04-26 Robert Millan <rmh@aybabtu.com>
11327
329ce2a5 11328 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
11329 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
11330 and `disk/ieee1275/nand.c'.
f4b1fc02 11331
25f16ec1 113322008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 11333
25f16ec1 11334 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
11335 i386-linuxbios.
11336
11337 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
11338 change the buffer size to 4096 for cdrom device.
11339
11340 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
11341 and nand.mod.
11342 (_linux_mod_SOURCES): New variable.
11343 (_linux_mod_CFLAGS): Likewise.
11344 (_linux_mod_LDFLAGS): Likewise.
11345 (linux_mod_SOURCES): Likewise.
11346 (linux_mod_CFLAGS): Likewise.
11347 (linux_mod_LDFLAGS): Likewise.
11348 (nand_mod_SOURCES): Likewise.
11349 (nand_mod_CFLAGS): Likewise.
11350 (nand_mod_LDFLAGS): Likewise.
11351
11352 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
11353 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
11354 type property. (nand device in olpc don't have this property)
11355
11356 * include/grub/disk.h (grub_disk_dev_id): New macro
11357 GRUB_DISK_DEVICE_NAND_ID.
11358
11359 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
11360 function prototype.
11361 (grub_rescue_cmd_initrd): Likewise.
11362
11363 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
11364 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
11365 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 11366
25f16ec1 11367 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
11368 GRUB_MACHINE_IEEE1275 is defined.
11369
11370 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
11371 Use NESTED_FUNC_ATTR attribute on the hook parameter.
11372
11373 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
11374 on nested function heap_init.
11375 (grub_upper_mem): New variable for i386-ieee1275.
11376 (grub_get_extended_memory): New function for i386-ieee1275.
11377 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
11378
11379 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
11380 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
11381 property.
f19dbdb7 11382
25f16ec1 11383 * loader/i386/ieee1275/linux.c: New file.
11384
11385 * loader/i386/ieee1275/linux_normal.c: New file.
11386
11387 * disk/ieee1275/nand.c: New file.
11388
e89d61e9 113892008-04-18 Thomas Schwinge <tschwinge@gnu.org>
11390
11391 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
11392 value.
11393 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
11394
602566f6 113952008-04-18 Robert Millan <rmh@aybabtu.com>
11396
11397 Restructures early code path on ieee1275 to unify grub_main() as
11398 the first C function that is executed in every platform.
11399
11400 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
11401 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
11402 cmain().
11403 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
11404 * kern/ieee1275/cmain.c (cmain): Rename to ...
11405 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
11406 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
11407 at the beginning.
11408
57490c2b 114092008-04-18 Robert Millan <rmh@aybabtu.com>
11410
11411 * util/update-grub.in: Fix syntax error when setting
11412 `GRUB_PRELOAD_MODULES'.
11413 Reported by Stephane Chazelas <stephane@artesyncp.com>
11414
1977517d 114152008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
11416
11417 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
11418 section into account, newer toolchains generate unique build ids
11419 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 11420 we want build ids to be preserved
1977517d 11421 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
11422 far from other sections don't cause the raw binary images grow
11423 size
11424
bfb1f1a2 114252008-04-15 Robert Millan <rmh@aybabtu.com>
11426
11427 * disk/lvm.c: Update copyright year.
11428 * kern/misc.c: Likewise.
11429
01979850 114302008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
11431
11432 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 11433 there is no memory left for physical volume name.
01979850 11434
0a1150e2 114352008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
11436
11437 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
11438 volume name mapping to support bigger than 9 character names properly.
11439
82ead3fe 114402008-04-13 Robert Millan <rmh@aybabtu.com>
11441
11442 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
11443 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
11444
e54a72f5 114452008-04-13 Christian Franke <franke@computer.org>
11446
11447 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
11448 to create a floppy emulation boot CD when non emulation mode
11449 does not work.
11450 Enable Joliet CD filesystem extension.
11451
9fe86034 114522008-04-13 Robert Millan <rmh@aybabtu.com>
11453
11454 * kern/misc.c (grub_strncat): Fix off-by-one error.
11455 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
11456
11457 * kern/env.c (grub_env_context_close): Clear current context, not
11458 previous one.
11459 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
11460
11461 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
11462
7ceeee39 114632008-04-13 Robert Millan <rmh@aybabtu.com>
11464
11465 Improve robustness when handling LVM.
11466
11467 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 11468 (and leave `*p' unmodified).
7ceeee39 11469 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
11470 through it.
11471 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
11472 iterating through it.
11473 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
11474 through it.
fe6b695a 11475 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 11476 when due) on each grub_lvm_getvalue() or grub_strstr() call.
11477 Don't assume `vg->pvs != NULL' when iterating through it.
11478
58cd3d85 114792008-04-13 Robert Millan <rmh@aybabtu.com>
11480
11481 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
11482 * genmk.rb (partmap): New variable.
11483 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
11484 (#{partmap}): New target rule.
11485 * genpartmaplist.sh: New file.
11486 * Makefile.in (pkglib_DATA): Add partmap.lst.
11487 (partmap.lst): New target rule.
11488 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
11489 modules (including all partition maps), instead of preloading them.
11490
78b51059 114912007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
11492
11493 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
11494 `linux-boot-prober' (if installed) to detect other operating
11495 systems which are installed on the computer and add them to
11496 the boot menu.
11497 * conf/common.rmk: Build and install 30_os-prober.
11498
a91627b4 114992008-04-12 Robert Millan <rmh@aybabtu.com>
11500
11501 * kern/powerpc/ieee1275/init.c: Move from here ...
11502 * kern/ieee1275/init.c: ... to here. Update all users.
11503
11504 * kern/powerpc/ieee1275/cmain.c: Move from here ...
11505 * kern/ieee1275/cmain.c: ... to here. Update all users.
11506
11507 * kern/powerpc/ieee1275/openfw.c: Move from here ...
11508 * kern/ieee1275/openfw.c: ... to here. Update all users.
11509
11510 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
11511 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
11512
322562ea 115132008-04-10 Pavel Roskin <proski@gnu.org>
11514
11515 * configure.ac: Always use "_cv_" in cache variables for
11516 compatibility with Autoconf 2.62.
11517
a02a73c5 115182008-04-07 Robert Millan <rmh@aybabtu.com>
11519
11520 Revert grub/machine/init.h addition by Pavel (since it breaks on
11521 i386-ieee1275 and others):
11522 * util/i386/pc/misc.c: Remove grub/machine/init.h.
11523 * util/powerpc/ieee1275/misc.c: Likewise.
11524
25c024b1 115252008-04-07 Robert Millan <rmh@aybabtu.com>
11526
11527 * util/grub-probe.c (probe): Improve error message.
11528
3cbd2f98 115292008-04-07 Robert Millan <rmh@aybabtu.com>
11530
11531 * util/biosdisk.c (read_device_map): Skip devices that don't exist
11532 (this prevents the presence of a bogus entry from ruining the whole
11533 thing).
11534
87a297bf 115352008-04-06 Pavel Roskin <proski@gnu.org>
11536
36747a62 11537 * util/biosdisk.c: Include grub/util/biosdisk.h.
11538 * util/grub-fstest.c (execute_command): Make static.
11539 * util/grub-mkdevicemap.c (check_device): Likewise.
11540 * util/i386/pc/misc.c: Include grub/machine/init.h.
11541 * util/powerpc/ieee1275/misc.c: Likewise.
11542 * util/lvm.c: Include grub/util/lvm.h.
11543 * util/misc.c: Include grub/kernel.h, grub/misc.h and
11544 grub/cache.h.
11545 * util/raid.c: Include grub/util/raid.h.
11546 (grub_util_getdiskname): Make static.
11547
87a297bf 11548 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
11549 grub_hostfs_fini(), as they are called from grub_init_all() and
11550 grub_fini_all() respectively. This fixes an infinite loop in
11551 grub-fstest due to double registration of hostfs.
11552 Reported by Christian Franke <Christian.Franke@t-online.de>
11553
f6ce7629 115542008-04-05 Pavel Roskin <proski@gnu.org>
11555
11556 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
11557 all 8 functions. Otherwise, probe function 0 only.
11558
070e49e4 115592008-04-04 Pavel Roskin <proski@gnu.org>
11560
8b088a4c 11561 * commands/lspci.c (grub_lspci_iter): Print the bus number
11562 correctly.
11563
4f657021 11564 * commands/lspci.c (grub_pci_classes): Fix typos.
11565 (grub_lspci_iter): Don't print func twice. Print vendor ID
11566 before device ID, as it's normally done.
11567
070e49e4 11568 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
11569 Fix signedness warnings.
11570 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
11571 Likewise.
11572 * util/ieee1275/get_disk_name.c: Include config.h so that
11573 _GNU_SOURCE is defined and getline() is declared. Mark an
11574 unused argument as such. Fix a signedness warning.
11575
ba7328dc 115762008-04-02 Pavel Roskin <proski@gnu.org>
11577
26887f22 11578 * genkernsyms.sh.in: Use more robust assignments for CC and
11579 srcdir. Quote srcdir.
11580 * gensymlist.sh.in: Likewise. Assert at the compile time that
11581 the symbol table is not empty.
11582
ba7328dc 11583 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
11584 * fs/cpio.c (grub_cpio_read): Likewise.
11585
0f582c6b 115862008-04-01 Pavel Roskin <proski@gnu.org>
11587
4b6e1995 11588 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
11589 * disk/host.c (grub_host_open): Likewise.
11590 * disk/loopback.c (grub_loopback_open): Likewise.
11591 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
11592 disk->id as in disk/host.c, not a multi-character constant.
11593
828a2768 11594 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
11595 later is obsolete, potentially dangerous and sets a bad example.
11596 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
11597 * util/misc.c (grub_util_get_image_size): Likewise.
11598
2bb4fb47 11599 * disk/loopback.c (options): Improve help for "--partitions".
11600
0f582c6b 11601 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
11602 options to align them with the short options, e.g. "echo -e".
11603
a33224e0 116042008-03-31 Bean <bean123ch@gmail.com>
11605
11606 * video/reader/png.c (grub_png_data): New member is_16bit and
11607 image_data.
11608 (grub_png_decode_image_header): Detect 16 bit png image.
11609 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
11610 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
11611 (grub_video_reader_png): Release memory occupied by image_data.
11612
11613 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
11614 4096 bytes.
11615 (grub_nfs_mount): Skip the test for sector per cluster.
11616
11617 * include/grub/ntfs.h (MAX_SPC): Removed.
11618
86cb4f54 116192008-03-31 Bean <bean123ch@gmail.com>
11620
11621 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
11622 (grub_probe_SOURCES): Add fs/afs.c.
11623 (grub_fstest_SOURCES): Likewise.
11624 (afs_mod_SOURCES): New variable.
11625 (afs_mod_CFLAGS): Likewise.
11626 (afs_mod_LDFLAGS): Likewise.
11627
11628 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
11629 (grub_emu_SOURCES): Likewise.
11630
11631 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11632
11633 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11634
11635 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11636
11637 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11638
11639 * fs/afs.c: New file.
11640
17c74c21 116412008-03-30 Pavel Roskin <proski@gnu.org>
11642
4cb68e89 11643 * disk/host.c: Include grub/misc.h to fix a warning.
11644 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
11645 warnings about implicit declarations.
11646
8790bb04 11647 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
11648 variable.
11649 * include/grub/i386/loader.h: Change declaration of
11650 grub_linux_boot() to match what grub_loader_set() expects.
11651 * util/getroot.c (grub_guess_root_device): Return const char* to
11652 fix a warning.
11653 * util/grub-probe.c (probe): Fix a warning about uninitialized
11654 abstraction_name variable.
11655 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
11656 second argument as unused to fix a warning.
11657
9a3f3296 11658 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
11659 missing grub_error() call.
11660
0ecef90d 11661 * util/update-grub_lib.in: Define datarootdir, since Autoconf
11662 2.60 and newer uses it to define datadir.
11663
0bf6d401 11664 * commands/sleep.c: Fix warning about implicit declaration.
11665 * disk/memdisk.c: Likewise.
11666 * loader/aout.c: Likewise.
11667 * loader/i386/bsd_normal.c: Likewise.
11668 * util/grub-probe.c: Likewise.
11669
7cdacf97 11670 * commands/i386/cpuid.c (has_longmode): Make static.
11671 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
11672 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
11673
17c74c21 11674 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
11675 GDT. This is more robust, as %ds can change.
11676 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
11677 calling real_to_prot().
11678 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
11679
80a3e68b 116802008-03-28 Pavel Roskin <proski@gnu.org>
11681
11682 * kern/i386/pc/startup.S: Assert that uncompressed functions
11683 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
11684 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
11685 code, as they push parts of the code (error handlers) beyond
11686 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
11687 code as correctness and size.
11688
77bcd272 116892008-03-28 Pavel Roskin <proski@gnu.org>
11690
11691 * kern/i386/pc/startup.S
11692 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
11693 data block address to the real mode, keep offset minimal. This
11694 works around a bug in AWARD BIOS on old Athlon systems, which
11695 makes CD detection hang.
11696
c5dfd43b 116972008-03-26 Pavel Roskin <proski@gnu.org>
11698
11699 * normal/color.c (grub_parse_color_name_pair): Make `name' a
11700 const.
11701 * include/grub/normal.h: Add grub_parse_color_name_pair()
11702 declaration.
11703
bf962df2 117042008-03-24 Bean <bean123ch@gmail.com>
11705
11706 * disk/i386/pc/biosdisk.c (cd_start): Removed.
11707 (cd_count): Removed.
11708 (cd_drive): New variable.
11709 (grub_biosdisk_get_drive): Don't check for (cdN) device.
11710 (grub_biosdisk_call_hook): Likewise.
11711 (grub_biosdisk_iterate): Change cdrom detection method.
11712 (grub_biosdisk_open): Replace cd_start with cd_drive.
11713 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
11714 detect cdrom device.
11715
11716 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
11717 Removed.
11718 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
11719 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
11720 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
11721 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
11722 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
11723 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
11724 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
11725 (grub_biosdisk_cdrp): New structure.
11726 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
11727
11728 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
11729
11730 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
11731 device.
11732
11733 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
11734 New function.
11735
68e7fc7a 117362008-03-20 Robert Millan <rmh@aybabtu.com>
11737
11738 Remove 2 TiB limit in ata.mod.
11739 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
11740 (grub_ata_dumpinfo): Print sector count with 0x%llx.
11741 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
11742 grub_uint64_t instead of grub_uint32_t.
11743
38ad2cf5 117442008-03-05 Bean <bean123ch@gmail.com>
11745
11746 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
11747 (grub_multiboot): Set boot device.
11748
11749 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
11750
2b89344e 117512008-03-02 Bean <bean123ch@gmail.com>
11752
11753 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
11754 symlink_buffer.
11755
87a95d1f 117562008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
11757
11758 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
11759 texinfo.tex.
11760
11761 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
11762 modified.
11763
11764 * docs/fdl.texi: New file.
f19dbdb7 11765
87a95d1f 11766 * docs/mdate-sh: New file. Copied from gnulib.
11767 * docs/texinfo.tex: Likewise.
11768
11769 * config.guess: Updated from gnulib.
11770 * install-sh: Likewise.
11771
7dc15d8e 117722008-02-28 Robert Millan <rmh@aybabtu.com>
11773
11774 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
11775 (aout_mod_SOURCES): New variable.
11776 (aout_mod_CFLAGS): Likewise.
11777 (aout_mod_LDFLAGS): Likewise.
11778
11779 * conf/i386-ieee1275.rmk: Likewise.
11780
b00ab696 117812008-02-28 Robert Millan <rmh@aybabtu.com>
11782
11783 * util/update-grub.in: Reorganise terminal validity check. Accept
11784 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
11785 Based on suggestion by Franklin PIAT.
11786
79ca2d78 117872008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
11788
11789 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
11790 function.
11791 * util/getroot.c (grub_util_check_block_device): New function that
11792 returns the given argument if it is a block device and returns NULL else.
11793 * util/grub-probe.c (argument_is_device): New variable.
11794 (probe): Promote device_name from a variable to an argument. Receive
11795 device_name from grub_util_check_block_device() if path is NULL and from
11796 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 11797 (options): Introduce new parameter '-d, --device'.
79ca2d78 11798 (main): Add description of the new parameter to the help screen.
11799 Rename path variable to argument. Set argument_is_device if the '-d'
11800 option is given. Pass argument to probe() depending on
11801 argument_is_device.
11802
0d16e571 118032008-02-24 Bean <bean123ch@gmail.com>
11804
11805 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
11806 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
11807 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
11808 (GRUB_ISO9660_VOLDESC_PART): Likewise.
11809 (GRUB_ISO9660_VOLDESC_END): Likewise.
11810 (grub_iso9660_primary_voldesc): New member escape.
11811 (grub_iso9660_data): New member joliet.
11812 (grub_iso9660_convert_string): New function.
11813 (grub_iso9660_mount): Detect joliet extension.
11814 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
11815 (grub_iso9660_iso9660_label): Likewise.
11816
11817 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
11818 (grub_setup_SOURCES): Add fs/udf.c.
11819 (grub_fstest_SOURCES): Likewise.
11820 (udf_mod_SOURCES): New variable.
11821 (udf_mod_CFLAGS): Likewise.
11822 (udf_mod_LDFLAGS): Likewise.
11823
11824 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
11825 (grub_emu_SOURCES): Likewise.
11826
11827 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
11828
11829 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11830
11831 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
11832
11833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11834
11835 * fs/udf.c: New file.
11836
8a594a17 118372008-02-24 Robert Millan <rmh@aybabtu.com>
11838
11839 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
11840 (normal/lexer.c_DEPENDENCIES): New variables.
11841 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11842 (normal/lexer.c_DEPENDENCIES): Likewise.
11843 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
11844 (normal/lexer.c_DEPENDENCIES): Likewise.
11845 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
11846 (normal/lexer.c_DEPENDENCIES): Likewise.
11847 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11848 (normal/lexer.c_DEPENDENCIES): Likewise.
11849 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
11850 (normal/lexer.c_DEPENDENCIES): Likewise.
11851
2dc33c03 118522008-02-23 Robert Millan <rmh@aybabtu.com>
11853
11854 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
11855 since they were intended to be in hex. This didn't break previously
11856 because of a bug in gpt_partition_map_iterate() (see below).
11857
11858 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
11859 when checking the validity of GPT header.
11860 Remove `partno', since it always provides the same information as `i'.
11861
f6f4cfb0 118622008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
11863
11864 * include/grub/efi/time.h: Fix a wrong comment.
11865
79ff665f 118662008-02-19 Pavel Roskin <proski@gnu.org>
11867
11868 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
11869 message.
11870
d38e24c2 118712008-02-19 Bean <bean123ch@gmail.com>
11872
11873 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
11874 (aout_mod_SOURCES): New variable.
11875 (aout_mod_CFLAGS): Likewise.
11876 (aout_mod_LDFLAGS): Likewise.
11877 (_bsd_mod_SOURCES): New variable.
11878 (_bsd_mod_CFLAGS): Likewise.
11879 (_bsd_mod_LDFLAGS): Likewise.
11880 (bsd_mod_SOURCES): New variable.
11881 (bsd_mod_CFLAGS): Likewise.
11882 (bsd_mod_LDFLAGS): Likewise.
11883
11884 * include/grub/aout.h: New file.
11885
11886 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
11887
11888 * include/grub/i386/bsd.h: New file.
11889
11890 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
11891 to make it public.
11892
11893 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
11894 function is called, so that it's possible to change it inside the hook.
11895 (grub_elf64_load): Likewise.
11896 (grub_elf_file): Don't close the file if elf header is not found.
11897 (grub_elf_close): Close the file if grub_elf_file fails (The new
11898 grub_elf_file won't close it).
11899 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
11900 (grub_elf64_size): Likewise.
11901
11902 * kern/i386/loader.S (grub_unix_real_boot): New function.
11903
11904 * loader/aout.c: New file.
11905
11906 * loader/i386/bsd.c: New file.
11907
11908 * loader/i386/bsd_normal.c: New file.
11909
11910 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
11911
11912 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 11913 can test other formats.
d38e24c2 11914
b93bdb0f 119152008-02-19 Robert Millan <rmh@aybabtu.com>
11916
11917 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
11918 (grub_gpt_partition_type_empty): Redefine with macro from
11919 `<grub/gpt_partition.h>'.
11920 (gpt_partition_map_iterate): Adjust partition type comparison.
11921
11922 Export `entry' as partmap-specific `part.data' struct.
11923 (grub_gpt_header, grub_gpt_partentry): Move from here ...
11924
11925 * include/grub/gpt_partition.h (grub_gpt_header)
11926 (grub_gpt_partentry): ... to here (new file).
11927
11928 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
11929
11930 (grub_gpt_partition_type_bios_boot): New const variable, defined
11931 with macro from `<grub/gpt_partition.h>'.
11932
11933 (setup): Replace `first_start' with `embed_region', which keeps
11934 track of the embed region (and is partmap-agnostic).
11935
11936 Replace find_first_partition_start() with find_usable_region(),
11937 which finds a usable region for embedding using partmap-specific
11938 knowledge (supports PC/MSDOS and GPT).
11939
11940 Fix all assumptions that the embed region start at sector 1, using
11941 `embed_region.start' from now on. Similarly, use `embed_region.end'
11942 rather than `first_start' to calculate available size.
11943
11944 In grub_util_info() message, replace "into after the MBR" with an
11945 indication of the specific sector our embed region starts at.
11946
66cb40f6 119472008-02-19 Robert Millan <rmh@aybabtu.com>
11948
11949 * DISTLIST: Replace `commands/ieee1275/halt.c' and
11950 `commands/ieee1275/reboot.c' with `commands/halt.c' and
11951 `commands/reboot.c'.
11952 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11953 (halt_mod_SOURCES): Likewise.
11954 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
11955 (halt_mod_SOURCES): Likewise.
11956
b7202015 119572008-02-17 Christian Franke <franke@computer.org>
11958
11959 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
11960
32b0fc49 119612008-02-17 Robert Millan <rmh@aybabtu.com>
11962
11963 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11964 set `first_start' to 0 for non-PC/MSDOS partition maps.
11965
aca63502 119662008-02-16 Robert Millan <rmh@aybabtu.com>
11967
11968 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
11969 do not assume partition map is PC/MSDOS before performing checks that
11970 are specific to that layout.
11971
0de8be86 119722008-02-13 Robert Millan <rmh@aybabtu.com>
11973
11974 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
11975 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
11976 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
11977
c3db8364 119782008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
11979
11980 * configure.ac: Only a cosmetic change on the handling of
11981 -fno-stack-protector.
11982
f714229e 119832008-02-12 Alexandre Boeglin <alex@boeglin.org>
11984
c3db8364 11985 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
11986 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
11987 reboot.c.
f714229e 11988 (grub_install_SOURCES): Add halt.mod and reboot.mod.
11989 (halt_mod_SOURCES): New variable.
11990 (halt_mod_CFLAGS): Likewise.
11991 (halt_mod_LDFLAGS): Likewise.
11992 (reboot_mod_SOURCES): Likewise.
11993 (reboot_mod_CFLAGS): Likewise.
11994 (reboot_mod_LDFLAGS): Likewise.
11995
c3db8364 11996 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
11997 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
11998 reboot.c.
f714229e 11999 (halt_mod_SOURCES): Likewise.
12000 (reboot_mod_SOURCES): Likewise.
12001
c3db8364 12002 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
12003 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 12004 (reboot_mod_SOURCES): Likewise.
12005
12006 * commands/i386/pc/reboot.c: merge this file ...
12007
12008 * commands/ieee1275/reboot.c: ... and this file ...
12009
12010 * commands/reboot.c: ... to this file.
c3db8364 12011 Add some precompiler directive to include the correct header for
12012 each machine.
f714229e 12013
12014 * commands/ieee1275/halt.c: move this file ...
12015
12016 * commands/halt.c: ... to here.
c3db8364 12017 Add some precompiler directive to include the correct header for
12018 each machine.
f714229e 12019
12020 * include/grub/efi/efi.h (grub_reboot): New function declaration.
12021 (grub_halt): Likewise.
12022
12023 * kern/efi/efi.c (grub_reboot): New function.
12024 (grub_halt): Likewise.
12025
c74493e0 120262008-02-12 Robert Millan <rmh@aybabtu.com>
12027
12028 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
12029 /dev (like it is done for /dev/mapper). This doesn't provide support
12030 for EVMS, but at least it is now easy to identify the problem when it
12031 arises.
12032
d0db4b04 120332008-02-11 Robert Millan <rmh@aybabtu.com>
12034
12035 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
12036 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
12037 comparing it with -1, not 0.
12038
bf748642 120392008-02-10 Robert Millan <rmh@aybabtu.com>
12040
12041 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
12042 `disk/lvm.c'.
12043 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12044 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12045
12046 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
12047 `disk/lvm.c' to the end of the list.
12048 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12049 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
12050
b5db202a 120512008-02-10 Robert Millan <rmh@aybabtu.com>
12052
12053 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
12054 grub_print_error() instead. This will let user know why we're entering
12055 rescue mode.
12056 Based on suggestions from Sam Morris.
12057
83abee31 120582008-02-10 Alexandre Boeglin <alex@boeglin.org>
12059
12060 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
12061 on remaining N args, instead of "--" arg N times.
12062
78d5a08b 120632008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
12064
12065 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
12066 (fill_with_default_glyph): Changed to use unknown_glyph for fill
12067 pattern for unknown glyphs.
12068
68807e5f 120692008-02-09 Robert Millan <rmh@aybabtu.com>
12070
12071 * configure.ac: Probe for `help2man'.
12072 * Makefile.in (builddir): New variable.
12073 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
12074 or otherwise add a few flags/options to it.
12075 (install-local): For every executable utility or script that is
12076 installed, invoke $(HELP2MAN) to install a manpage based on --help
12077 output.
12078
12079 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
12080 that it doesn't prevent --help from working in build tree.
12081
12082 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
12083 with `bug-grub@gnu.org'.
12084 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
12085 * util/update-grub.in (usage): New function.
12086 Implement proper argument check, with support for --help and --version
12087 (as well as existing -y).
12088
120892008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 12090
12091 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
12092 avoid overwriting previous output.
12093 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
12094
c1962162 120952008-02-09 Robert Millan <rmh@aybabtu.com>
12096
12097 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
12098 drawing the menu.
12099
3dac2e3f 121002008-02-09 Robert Millan <rmh@aybabtu.com>
12101
12102 * commands/sleep.c: New file.
12103 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
12104 (sleep_mod_SOURCES): New variable.
12105 (sleep_mod_CFLAGS): Likewise.
12106 (sleep_mod_LDFLAGS): Likewise.
12107
7a634e08 121082008-02-09 Robert Millan <rmh@aybabtu.com>
12109
12110 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
12111 situations in which we can deduce the RAID size and the superblock
12112 doesn't match it.
12113
b92f0c18 121142008-02-09 Robert Millan <rmh@aybabtu.com>
12115
12116 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
12117 and return a grub_diskmemberlist_t composed of LVM physical volumes.
12118 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
12119
12120 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
12121 and return a grub_diskmemberlist_t composed of physical array members.
12122 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
12123
12124 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
12125 prototype.
12126 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
12127 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
12128 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
12129
12130 * util/grub-probe.c (probe): Move partmap probing code from here ...
12131 (probe_partmap): ... to here.
12132 (probe): Use probe_partmap() once for the disk we're probing, and
12133 additionally, when such disk contains a memberlist() struct member,
12134 once for each disk that is contained in the structure returned by
12135 memberlist().
12136
91a4bf68 121372008-02-09 Robert Millan <rmh@aybabtu.com>
12138
12139 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
12140 environment variable to 'all' in order to obtain debug output from
12141 non-util/ code.
12142 * util/i386/pc/grub-setup.c (main): Likewise.
12143
a96f9caa 121442008-02-08 Robert Millan <rmh@aybabtu.com>
12145
12146 * disk/raid.c (grub_raid_scan_device): Check for
12147 `array->device[sb.this_disk.number]' rather than for
12148 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 12149 guaranteed to be accessible.
a96f9caa 12150
b37a9222 121512008-02-08 Robert Millan <rmh@aybabtu.com>
12152
12153 * disk/raid.c: Update copyright.
12154 * fs/cpio.c: Likewise.
12155 * include/grub/raid.h: Likewise.
12156 * loader/i386/pc/multiboot.c: Likewise.
12157 * util/hostfs.c: Likewise.
12158
5626aee1 121592008-02-08 Robert Millan <rmh@aybabtu.com>
12160
12161 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
12162 to a grub_disk_t array.
12163 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
12164 `device[x]'.
12165 (grub_raid_scan_device): Replace `device[x].name' accesses with
12166 `device[x]->name'. Simplify initialization of `array->device[x]'.
12167
554f0187 121682008-02-08 Robert Millan <rmh@aybabtu.com>
12169
12170 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
12171 grub_dprintf() calls.
12172 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
12173 error message.
12174
1ec8425d 121752008-02-07 Christian Franke <franke@computer.org>
12176
12177 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
12178 instead of fseek and ftell to support large files.
12179 (grub_hostfs_read): Likewise.
12180
f2156fda 121812008-02-07 Robert Millan <rmh@aybabtu.com>
12182
12183 Patch from Jeroen Dekkers.
12184 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 12185 failure, since successfully reading all array members might not be
f2156fda 12186 required.
12187
9216e0e7 121882008-02-06 Robert Millan <rmh@aybabtu.com>
12189
12190 * util/grub-probe.c (probe): Simplify partmap probing (with the
12191 assumption that the first word up to the underscore equals to
12192 the module name).
12193
b0dfd29a 121942008-02-06 Christian Franke <franke@computer.org>
12195
12196 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
12197 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
12198 last block of a cpio or tar stream.
12199 Check for "TRAILER!!!" instead of any empty data
12200 block to detect last block of a cpio stream.
12201 (grub_cpio_dir): Fix constness of variable np.
12202 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
12203 cpio or tar trailer is detected. This fixes a crash
12204 on open of a non existing file.
12205
c32865bf 122062008-02-05 Bean <bean123ch@gmail.com>
12207
12208 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
12209 address of entry.
12210 (grub_multiboot_load_elf64): Likewise.
12211 (grub_multiboot): Initialize mbi structure.
12212
12213 * util/grub-fstest.c: Don't include unused header file script.h.
12214
fe6b695a 12215 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 12216 of file.
12217 (grub_fstest_SOURCES): Likewise.
12218
409480b7 122192008-02-05 Robert Millan <rmh@aybabtu.com>
12220
12221 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
12222 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
12223 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
12224 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
12225
12226 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
12227 (translation_table): Replace hardcoded values with macros
12228 provided by `<grub/term.h>'.
12229
12230 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
12231 (keyboard_map): Correct/add a few values, with macros provided
12232 by `<grub/term.h>'.
12233 (keyboard_map_shift): Zero values that don't differ from their
12234 `keyboard_map' equivalents.
12235 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
12236 Discard the second scan code that is always sent by Caps lock.
12237 Only use `keyboard_map_shift' when it provides a non-zero value,
12238 otherwise fallback to `keyboard_map'.
12239
99fadbaa 122402008-02-04 Bean <bean123ch@gmail.com>
12241
12242 * Makefile.in (enable_grub_fstest): New variable.
12243
12244 * conf/common.rmk (grub_fstest_init.lst): New rule.
12245 (grub_fstest_init.h): Likewise.
12246 (grub_fstest_init.c): Likewise.
12247 (util/grub-fstest.c_DEPENDENCIES): New variable.
12248 (grub_fstest_SOURCES): Likewise.
12249
12250 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
12251
12252 * util/grub-fstest.c: New file.
12253
bf567c50 122542008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12255
12256 Make grub-setup handle a separate root device.
f19dbdb7 12257
bf567c50 12258 * util/i386/pc/grub-setup.c (setup): Always open the root device,
12259 so that the root device can be compared with the destination
12260 device.
12261 When embedding the core image, if the root and destination devices
12262 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
12263 0xFF.
12264 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 12265
9be6b98b 122662008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12267
12268 Add support for having a grub directory in a different drive. This
12269 is still only the data handling part.
f19dbdb7 12270
9be6b98b 12271 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
12272 (codestart): Save %dh in GRUB_ROOT_DRIVE.
12273 (grub_root_drive): New variable.
12274
12275 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
12276 instead of GRUB_BOOT_DRIVE to construct a device name. Set
12277 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
12278 as it was.
12279
12280 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
12281
12282 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
12283 macro.
12284 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
12285
12286 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
12287 is bogus, because PXE booting does not specify any drive
12288 correctly.
12289
12290 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
12291 am not sure if this is really correct.
12292
12293 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
12294 is always identical to the boot drive when booting from a CD.
12295
12296 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
12297 longer.
12298 (root_drive): New variable.
12299 (real_start): Unconditionally set %dh to ROOT_DRIVE.
12300 (setup_sectors): Push %dx right after popping it, because %dh will
12301 be modified later.
12302 (copy_buffer): Restore %dx.
12303
e0ca0677 123042008-02-03 Robert Millan <rmh@aybabtu.com>
12305
12306 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
12307 use `cdboot.img' for cdrom images.
12308
3b3f6629 123092008-02-03 Robert Millan <rmh@aybabtu.com>
12310
12311 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
12312 only setup gfxterm when `font' command has succeeded.
12313
d42b3672 123142008-02-03 Robert Millan <rmh@aybabtu.com>
12315
12316 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
12317 (grub_rescue_cmd_multiboot_loader)
12318 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
12319
fa370ea6 123202008-02-03 Pavel Roskin <proski@gnu.org>
12321
e0c5dacb 12322 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 12323 %edx and %esi from stack only after grub_gate_a20() is called.
12324 grub_gate_a20() clobbers %edx.
12325
f2a76e1d 123262008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
12327
12328 * configure.ac (AC_INIT): Bumped to 1.96.
12329
12330 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
12331 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
12332 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
12333 video/readers/png.c.
12334
90fd32d1 123352008-02-03 Bean <bean123ch@gmail.com>
9be665dd 12336
12337 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
12338 (cdboot_img_SOURCES): New variable.
12339 (cdboot_img_ASFLAGS): New variable.
12340 (cdboot_img_LDFLAGS): New variable.
12341
12342 * boot/i386/pc/cdboot.S: New file.
12343
12344 * disk/i386/pc/biosdisk.c (cd_start): New variable.
12345 (cd_count): Likewise.
12346 (grub_biosdisk_get_drive): Add support for cd device.
12347 (grub_biosdisk_call_hook): Likewise.
12348 (grub_biosdisk_iterate): Likewise.
12349 (grub_biosdisk_open): Likewise.
12350 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
12351 (grub_biosdisk_rw): Support reading from cd device.
12352 (GRUB_MOD_INIT): Iterate cd devices.
12353
12354 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
12355 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
12356 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
12357
12358 * kern/i386/pc/init.c (make_install_device): Check for cd device.
12359
4020aa53 123602008-02-02 Robert Millan <rmh@aybabtu.com>
12361
12362 * commands/read.c: New file.
12363 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
12364 (read_mod_SOURCES): New variable.
12365 (read_mod_CFLAGS): Likewise.
12366 (read_mod_LDFLAGS): Likewise.
12367
e03a1132 123682008-02-02 Robert Millan <rmh@aybabtu.com>
12369
12370 * normal/main.c (grub_normal_execute): Check for `menu->size' when
12371 determining whether menu has to be displayed.
12372
58c69220 123732008-02-02 Marco Gerards <marco@gnu.org>
12374
12375 * bus/pci.c: New file.
12376
12377 * include/grub/pci.h: Likewise.
12378
12379 * include/grub/i386/pc/pci.h: Likewise.
12380
12381 * commands/lspci.c: Likewise.
12382
12383 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
12384 `lspci.mod'.
12385 (pci_mod_SOURCES): New variable.
12386 (pci_mod_CFLAGS): Likewise.
12387 (pci_mod_LDFLAGS): Likewise.
12388 (lspci_mod_SOURCES): Likewise.
12389 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 12390 (lspci_mod_LDFLAGS): Likewise.
58c69220 12391
c004e1b4 123922008-02-02 Bean <bean123ch@gmail.com>
12393
12394 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
12395 (grub_ufs_get_file_block): Fix indirect block calculation problem.
12396
12397 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
12398 (grub_xfs_btree_node): New structure.
12399 (grub_xfs_btree_root): New structure.
12400 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
12401 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
12402 (GRUB_XFS_EXTENT_BLOCK): Likewise.
12403 (GRUB_XFS_EXTENT_SIZE): Likewise.
12404 (grub_xfs_read_block): Support btree format type.
12405 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
12406 Use directory block as basic unit.
12407
12408 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
12409
12410 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
12411 __attribute__ ((__regparm__ (1))).
12412
f95562bf 124132008-02-01 Robert Millan <rmh@aybabtu.com>
12414
12415 Correct a mistake in previous commit.
12416
12417 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
12418 top.
12419 (normal/command.c_DEPENDENCIES): New variable.
12420
7d31f41f 124212008-02-01 Robert Millan <rmh@aybabtu.com>
12422
12423 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
12424 top.
12425 (normal/command.c_DEPENDENCIES): New variable.
12426 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
12427 * conf/i386-ieee1275.rmk: Likewise.
12428 * conf/i386-linuxbios.rmk: Likewise.
12429 * conf/i386-pc.rmk: Likewise.
12430 * conf/sparc64-ieee1275.rmk: Likewise.
12431 * conf/powerpc-ieee1275.rmk: Likewise.
12432 (grub_emu_SOURCES): Add `fs/fshelp.c'.
12433
12434 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
12435
60b6be74 124362008-02-01 Robert Millan <rmh@aybabtu.com>
12437
12438 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
12439 call at beginning of function.
12440
078522ab 124412008-01-31 Pavel Roskin <proski@gnu.org>
12442
12443 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 12444 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
12445 (grub_mkrescue_SOURCES): Likewise.
078522ab 12446 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
12447
ccaa8a5f 124482008-01-30 Robert Millan <rmh@aybabtu.com>
12449
12450 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
12451 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
12452 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
12453 (grub_probe_SOURCES): ... to here.
12454
12455 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
12456 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
12457 * conf/i386-ieee1275.rmk: Likewise.
12458 * conf/i386-linuxbios.rmk: Likewise.
12459 * conf/powerpc-ieee1275.rmk: Likewise.
12460
ae5a9cd7 124612008-01-30 Tristan Gingold <gingold@free.fr>
12462
12463 * kern/rescue.c: Silently accept empty lines.
12464
70bc2ef2 124652008-01-29 Bean <bean123ch@gmail.com>
12466
12467 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
12468 (real_code_2): Code cleanup and change comment style.
12469 (move_memory): Avoid using 32-bit address mode.
12470
6a4d50ea 124712008-01-29 Bean <bean123ch@gmail.com>
12472
12473 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
12474 (png_mod_SOURCES): New variable.
12475 (png_mod_CFLAGS): Likewise.
12476 (png_mod_LDFLAGS): Likewise.
12477
12478 * video/readers/png.c: New file.
12479
11cc30ac 124802008-01-28 Robert Millan <rmh@aybabtu.com>
12481
12482 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
12483 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
12484 `ifndef GRUB_MOD_GAP' hack.
12485 * util/elf/grub-mkimage.c (add_segments): Likewise.
12486
3abc589f 124872008-01-27 Robert Millan <rmh@aybabtu.com>
12488
12489 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
12490 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 12491 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 12492
e1907778 124932008-01-27 Robert Millan <rmh@aybabtu.com>
12494
12495 Get grub-emu to build again (including parallel builds).
12496
12497 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
12498 Split into ...
12499 (util/grub-emu.c_DEPENDENCIES): ... this, ...
12500 (normal/execute.c_DEPENDENCIES): ... this, ...
12501 (grub-emu_DEPENDENCIES): ... and this.
12502
12503 * conf/i386-efi.rmk: Likewise.
12504 * conf/i386-linuxbios.rmk: Likewise.
12505 * conf/i386-ieee1275.rmk: Likewise.
12506 * conf/powerpc-ieee1275.rmk: Likewise.
12507 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
12508
2216b101 125092008-01-27 Robert Millan <rmh@aybabtu.com>
12510
12511 * NEWS: Add a few items.
12512
f75172d9 125132008-01-27 Robert Millan <rmh@aybabtu.com>
12514
12515 Fix parallel builds with grub-emu. Based on earlier commit for
12516 grub-probe and grub-setup.
12517
12518 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12519 (util/grub-emu.c_DEPENDENCIES): ... this.
12520 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12521 (util/grub-emu.c_DEPENDENCIES): ... this.
12522 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12523 (util/grub-emu.c_DEPENDENCIES): ... this.
12524 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12525 (util/grub-emu.c_DEPENDENCIES): ... this.
12526 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
12527 (util/grub-emu.c_DEPENDENCIES): ... this.
12528
3f51de77 125292008-01-27 Pavel Roskin <proski@gnu.org>
12530
12531 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
12532 to create a gap between _end and the modules added to the image
12533 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
12534 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
12535 * util/elf/grub-mkimage.c (add_segments): Likewise.
12536
2033f53e 125372008-01-26 Pavel Roskin <proski@gnu.org>
12538
12539 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
12540 just return an error.
12541
22da1f6f 125422008-01-26 Bean <bean123ch@gmail.com>
12543
12544 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
12545 (grub_reiserfs_get_item): Save offset of the next item.
12546 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
12547
2a9525e6 125482008-01-25 Robert Millan <rmh@aybabtu.com>
12549
12550 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
12551 make all filesystem sources appear together (possibly fixing omissions
12552 while at it).
12553 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12554 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12555 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
12556 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12557
12558 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
12559 add `kern/file.c'.
12560 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
12561 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12562 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
12563 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
12564
12565 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
12566 (probe): Add a sanity check to make sure of our ability to read
12567 requested files when probing for filesystem type.
12568
12569 * genmk.rb: Update copyright year (2007).
12570
12571 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
12572 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
12573 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
12574 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
12575 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
12576 : Remove function prototypes.
12577
b95f71b5 125782008-01-25 Robert Millan <rmh@aybabtu.com>
12579
12580 Revert my previous commits (based on wrong assumption of how grub_errno
12581 works).
12582
fe6b695a 12583 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 12584 * kern/file.c (grub_file_open): Likewise.
12585
d08bbb49 125862008-01-24 Pavel Roskin <proski@gnu.org>
12587
12588 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
12589 that hang if GRUB tries to setup colors.
12590 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
12591 colors for firmwares that don't support it.
12592 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
12593 Recognize Open Hack'Ware, set flags to work around its
12594 limitations.
12595
605e36ed 125962008-01-24 Robert Millan <rmh@aybabtu.com>
12597
12598 * kern/file.c (grub_file_open): Do not account previous failures of
12599 unrelated functions when grub_errno is checked for.
12600 Reported by Oleg Strikov.
12601
bac332a1 126022008-01-24 Bean <bean123ch@gmail.com>
12603
12604 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
12605 (grub_ufs_sblock): New member volume name.
12606 (grub_ufs_find_file): Fix string copy bug.
12607 (grub_ufs_label): Implement this function properly.
12608
12609 * fs/hfs.c (grub_hfs_cnid_type): New enum.
12610 (grub_hfs_iterate_records): Use the correct file number for extents
12611 and catalog file. Fix problem in next index calculation.
12612 (grub_hfs_find_node): Replace recursive function call with loop.
12613 (grub_hfs_iterate_dir): Replace recursive function call with loop.
12614
15c80c09 126152008-01-23 Robert Millan <rmh@aybabtu.com>
12616
12617 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
12618 `<grub/symbol.h>' and `<grub/multiboot.h>'.
12619 (grub_multiboot2_real_boot): New function prototype.
12620
12621 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
12622 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
12623
12624 * kern/i386/ieee1275/init.c (grub_os_area_addr)
12625 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
12626
305338fd 126272008-01-23 Robert Millan <rmh@aybabtu.com>
12628
12629 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
12630 #ifdef'ed out grub_printf().
12631
3ea52685 126322008-01-23 Robert Millan <rmh@aybabtu.com>
12633
12634 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
12635 grub_dprintf calls, since they make "debug=all" mode unusable.
12636 (grub_console_checkkey): Likewise.
12637
5882ae4b 126382008-01-23 Robert Millan <rmh@aybabtu.com>
12639
12640 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
12641 `term/i386/pc/at_keyboard.c'.
12642 (pkglib_MODULES): Add `serial.mod'.
12643 (serial_mod_SOURCES): New variable.
12644 (serial_mod_CFLAGS): Likewise.
12645 (serial_mod_LDFLAGS): Likewise.
12646
12647 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
12648 `<grub/powerpc/ieee1275/console.h>'.
12649 (grub_keyboard_controller_init): New function prototype.
12650 (grub_console_checkkey): Likewise.
12651 (grub_console_getkey): Likewise.
12652
12653 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
12654 keyboard on i386.
12655
12656 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
12657 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
12658
06ab5303 126592008-01-23 Robert Millan <rmh@aybabtu.com>
12660
12661 * kern/i386/pc/init.c (make_install_device): When memdisk image is
12662 present, "(memdisk)/boot/grub" becomes the default prefix.
12663
12664 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
12665 a memdisk tarball with all the modules. Add --overlay=DIR option that
12666 allows users to overlay additional files into the image.
12667
dbb475a4 126682008-01-23 Robert Millan <rmh@aybabtu.com>
12669
12670 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
12671 and `machine/memory.h'.
12672 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
12673 (_multiboot_mod_SOURCES): New variable.
12674 (_multiboot_mod_CFLAGS): Likewise.
12675 (_multiboot_mod_LDFLAGS): Likewise.
12676 (multiboot_mod_SOURCES): Likewise.
12677 (multiboot_mod_CFLAGS): Likewise.
12678 (multiboot_mod_LDFLAGS): Likewise.
12679
12680 * include/grub/i386/ieee1275/loader.h: New file.
12681
12682 * include/grub/i386/ieee1275/machine.h: Likewise.
12683
12684 * include/grub/i386/ieee1275/memory.h: Likewise.
12685
12686 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
12687 variable declaration.
12688 (grub_os_area_size): Likewise.
12689
12690 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
12691 (grub_lower_mem, grub_upper_mem): New variables.
12692 (grub_stop_floppy): New function (just to make
12693 grub_multiboot2_real_boot() happy).
12694
12695 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
12696 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
12697 (grub_stop): New function.
12698 Include `"../realmode.S"' and `"../loader.S"'.
12699
12700 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
12701 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
12702
12703 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
12704 rely on grub_multiboot2_real_boot() for final boot.
12705
25638629 127062008-01-22 Robert Millan <rmh@aybabtu.com>
12707
12708 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
12709 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
12710 device that doesn't look like an SD card.
12711 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
12712 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
12713 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
12714 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
12715 found.
12716
9dad816d 127172008-01-22 Robert Millan <rmh@aybabtu.com>
12718
12719 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
12720 avoid claiming over our own code.
12721
34842f2d 127222008-01-22 Bean <bean123ch@gmail.com>
12723
12724 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
12725 (jpeg_mod_SOURCES): New variable.
12726 (jpeg_mod_CFLAGS): Likewise.
12727 (jpeg_mod_LDFLAGS): Likewise.
12728
12729 * video/readers/jpeg.c : New file.
12730
44023a28 127312008-01-22 Bean <bean123ch@gmail.com>
12732
12733 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
12734 there are no more items.
12735
bc2d8ac6 127362008-01-21 Robert Millan <rmh@aybabtu.com>
12737
12738 * kern/mm.c (grub_mm_init_region): Improve debug message.
12739
261bd4bc 127402008-01-21 Robert Millan <rmh@aybabtu.com>
12741
12742 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
12743 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
12744 address.
12745 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
12746 a C macro.
12747 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
12748 Indicates start of upper memory.
12749 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
12750 (generate_image): Abort when image size is big enough to corrupt
12751 upper memory.
12752
12753 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
12754 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
12755 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12756 instead of hardcoding 0xA0000.
12757 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
12758 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
12759 instead of hardcoding 0xA0000.
12760
f970b55e 127612008-01-21 Robert Millan <rmh@aybabtu.com>
12762
12763 * disk/memdisk.c (memdisk_size): New variable.
12764 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
12765 `memdisk_size'.
12766 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
12767 image to dynamic memory.
12768 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
12769 `memdisk_size'. Free memdisk block.
12770
1a8b0526 127712008-01-21 Robert Millan <rmh@aybabtu.com>
12772
12773 Fix detection of very small filesystems (like tar).
12774
12775 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
12776 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
12777 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
12778 a problem with this disk).
12779
6e9b4aab 127802008-01-21 Robert Millan <rmh@aybabtu.com>
12781
12782 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
12783 on grub_biosdisk_rw_standard() error.
12784
0d8837b2 127852008-01-21 Robert Millan <rmh@aybabtu.com>
12786
12787 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
12788 recent changes.
12789 * kern/elf.c: Likewise.
12790 * kern/ieee1275/ieee1275.c: Likewise.
12791 * kern/powerpc/ieee1275/openfw.c: Likewise.
12792 * term/ieee1275/ofconsole.c: Likewise.
12793
ffd36e34 127942008-01-21 Robert Millan <rmh@aybabtu.com>
12795
12796 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
12797
3f0093d0 12798 * include/grub/kernel.h (grub_arch_memdisk_addr)
12799 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 12800
3f0093d0 12801 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
12802 (grub_arch_memdisk_size): ... to here.
ffd36e34 12803
6c391b21 128042008-01-21 Robert Millan <rmh@aybabtu.com>
12805
12806 Mostly based on bugfix from Bean.
12807
12808 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
12809 attribute with hook() parameter.
12810 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
12811 declaration.
12812 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
12813 attribute with hook() parameter.
12814 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
12815 declaration.
12816
55a581dc 128172008-01-21 Robert Millan <rmh@aybabtu.com>
12818
12819 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
12820 (pkglib_MODULES): Add `memdisk.mod'.
12821 (memdisk_mod_SOURCES): New variable.
12822 (memdisk_mod_CFLAGS): Likewise.
12823 (memdisk_mod_LDFLAGS): Likewise.
12824
12825 * disk/memdisk.c: New file.
12826
12827 * include/grub/disk.h (grub_disk_dev_id): Add
12828 `GRUB_DISK_DEVICE_MEMDISK_ID'.
12829
12830 * include/grub/i386/pc/kernel.h
12831 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
12832 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
12833 (grub_kernel_image_size): New variable declaration.
12834 (grub_total_module_size): Likewise.
12835 (grub_memdisk_image_size): Likewise.
12836
12837 * include/grub/i386/pc/memory.h
12838 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
12839
12840 * include/grub/kernel.h: Include `<grub/symbol.h>'.
12841 (grub_arch_memdisk_addr): New variable declaration.
12842 (grub_arch_memdisk_size): Likewise.
12843
12844 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
12845 (grub_arch_memdisk_size): Likewise.
12846
12847 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
12848 (codestart): Replace hardcoded `0x100000' with
12849 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
12850
12851 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
12852 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
12853 not NULL, append the contents of the file it refers to, at the end of
12854 the compressed kernel image. Initialize `grub_memdisk_image_size'
12855 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
12856 (options): Add "memdisk"|'m' option.
12857 (main): Parse --memdisk|-m option, and pass user-provided path as
12858 parameter to generate_image().
12859
3d7f54c9 128602008-01-20 Robert Millan <rmh@aybabtu.com>
12861
12862 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
12863 grub_dprintf() calls from here ...
12864 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
12865
0bf74728 128662008-01-20 Robert Millan <rmh@aybabtu.com>
12867
12868 Fix detection of "real mode" when /options/real-mode? doesn't exist.
12869
12870 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
12871 declaration.
12872 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
12873 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
12874 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 12875 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 12876 property).
12877 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
12878 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
12879
33bf70a7 128802008-01-19 Robert Millan <rmh@aybabtu.com>
12881
fe6b695a 12882 Get rid of confusing function (superseded by
33bf70a7 12883 `grub_ieee1275_get_integer_property')
12884 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
12885 prototype.
12886 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
12887 function.
12888 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
12889 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 12890 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 12891
e2da7d26 128922008-01-19 Robert Millan <rmh@aybabtu.com>
12893
12894 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
12895 command after "shut-down", since implementations differ on which
12896 the command for halt is.
12897
59f1fd8d 128982008-01-19 Robert Millan <rmh@aybabtu.com>
12899
12900 * include/grub/i386/linuxbios/console.h: Add header protection.
12901 (grub_keyboard_controller_init): New function prototype.
12902 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
12903 (KEYBOARD_COMMAND_READ): Likewise.
12904 (KEYBOARD_COMMAND_WRITE): Likewise.
12905 (KEYBOARD_SCANCODE_SET1): Likewise.
12906 (grub_keyboard_controller_write): New function.
12907 (grub_keyboard_controller_read): Likewise.
12908 (grub_keyboard_controller_init): Likewise.
12909
12910 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
12911 (grub_console_init): On coreboot/LinuxBIOS, call
12912 grub_keyboard_controller_init().
12913
5f5a7c15 129142008-01-19 Robert Millan <rmh@aybabtu.com>
12915
12916 PowerPC changes provided by Pavel Roskin.
12917
12918 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
12919 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
12920 don't rely on cmain() doing it.
12921 * kern/i386/ieee1275/startup.S (_start): Store %eax in
12922 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
12923
1210e168 129242008-01-16 Robert Millan <rmh@aybabtu.com>
12925
12926 * include/grub/i386/linuxbios/memory.h
12927 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
12928 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
12929 receive `table_header' as argument. Instead, probe for it in the
12930 known memory ranges where it can be present.
12931 (grub_available_iterate): Do not pass a fixed `table_header' address
12932 to grub_linuxbios_table_iterate().
12933
3d04eab8 129342008-01-15 Robert Millan <rmh@aybabtu.com>
12935
12936 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
12937 * conf/i386-ieee1275.rmk: New file.
12938 * include/grub/i386/ieee1275/console.h: Likewise.
12939 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
12940 * include/grub/i386/ieee1275/kernel.h: Likewise.
12941 * include/grub/i386/ieee1275/time.h: Likewise.
12942 * kern/i386/ieee1275/init.c: Likewise.
12943 * kern/i386/ieee1275/startup.S: Likewise.
12944
d1bc1b73 129452008-01-15 Robert Millan <rmh@aybabtu.com>
12946
12947 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
12948 when pointers are 32-bit (but still do set it to one when they are
12949 64-bit).
12950
66a65807 129512008-01-15 Robert Millan <rmh@aybabtu.com>
12952
12953 * include/grub/ieee1275/ieee1275.h
12954 (grub_ieee1275_get_integer_property): New function prototype.
12955
12956 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
12957 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 12958 grub_ieee1275_get_property() to handle endianness.
66a65807 12959
12960 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
12961 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 12962 where appropriate.
66a65807 12963 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
12964 (grub_map): Likewise.
12965 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
12966
a83ccafd 129672008-01-15 Bean <bean123ch@gmail.com>
12968
12969 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
12970 (grub_script_execute_cmdline): Reset grub_errno.
12971
12972 * normal/main.c (read_config_file): Reset grub_errno.
12973
12974 * normal/parse.y (script_init): New.
12975 (script): Move function and menuentry here.
12976 (delimiter): New.
12977 (command): Add delimiter at the end of command.
12978 (commands): Adjust to match the new command.
12979 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 12980 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 12981 (if): Use the new commands.
12982
12983 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
12984
df6ecfc6 129852008-01-15 Robert Millan <rmh@aybabtu.com>
12986
12987 * normal/menu.c (run_menu): Move timeout message from here ...
12988 (print_timeout): ... to here.
12989 (run_menu): Use print_timeout() once during initial draw to print
12990 the whole message, and again in every clock tick to update only
12991 the number of seconds.
12992
87ae25eb 129932008-01-15 Robert Millan <rmh@aybabtu.com>
12994
12995 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
12996 actual size of `available' from grub_ieee1275_get_property(), and
12997 restrict parsing to that bound.
12998
47bf09a4 129992008-01-15 Christian Franke <franke@computer.org>
13000
13001 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
13002 (argp_program_version): Remove variable.
13003 (argp_program_bug_address): Likewise.
13004 (options): Convert from struct argp_option to struct option.
13005 (struct arguments): Remove.
13006 (parse_opt): Remove.
13007 (usage): New function.
13008 (main): Replace struct args members by simple variables.
13009 Replace argp_parse() by getopt_long().
13010 Add switch to evaluate options.
13011 Add missing "(...)" around root_dev in prefix string.
13012
c86f1469 130132008-01-14 Robert Millan <rmh@aybabtu.com>
13014
13015 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
13016 for grub_ieee1275_exit(), in order to improve portability.
13017
e622c559 130182008-01-14 Robert Millan <rmh@aybabtu.com>
13019
13020 * util/grub.d/10_linux.in (prefix): Define.
13021 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
13022
44cb1ec8 130232008-01-13 Pavel Roskin <proski@gnu.org>
13024
13025 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
13026 grub_errno if no errors have been detected.
13027
1eb8c802 130282008-01-12 Robert Millan <rmh@aybabtu.com>
13029
13030 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
13031 (grub_util_get_dev_abstraction): New function prototype.
13032
13033 * util/getroot.c: Include `<grub/util/getroot.h>'
13034 (grub_util_get_grub_dev): Move detection of abstraction type to ...
13035 (grub_util_get_dev_abstraction): ... here (new function).
13036
13037 * util/grub-probe.c: Convert PRINT_* to an enum. Add
13038 `PRINT_ABSTRACTION'.
13039 (probe): Probe for abstraction type when requested.
13040 (main): Understand `--target=abstraction'.
13041
13042 * util/i386/efi/grub-install.in: Add abstraction module to core
13043 image when it is found to be necessary.
13044 * util/i386/pc/grub-install.in: Likewise.
13045 * util/powerpc/ieee1275/grub-install.in: Likewise.
13046
13047 * util/update-grub_lib.in (font_path): Return system path without
13048 converting to GRUB path.
13049 * util/update-grub.in: Convert system path returned by font_path()
13050 to a GRUB path. Use `grub-probe -t abstraction' to determine what
13051 abstraction module is needed for loading fonts (if any). Export
13052 that as `GRUB_PRELOAD_MODULES'.
13053 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
13054 insmod commands).
13055
52bd3de9 130562008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
13057
13058 Remove some unused code from reiserfs.
f19dbdb7 13059
52bd3de9 13060 * fs/reiserfs.c (struct grub_reiserfs_key)
13061 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
13062 (struct grub_reiserfs_node_body): Removed.
13063 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
13064 Likewise.
13065 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
13066 Likewise.
13067 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
13068 Likewise.
13069 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
13070 Likewise.
13071 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
13072 Likewise.
13073 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
13074 Likewise.
13075 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
13076 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
13077 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
13078
2f80039d 130792008-01-10 Robert Millan <rmh@aybabtu.com>
13080
13081 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
13082 Determines if a file is garbage left by packaging systems, etc.
13083 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
13084 for processing /etc/grub.d scripts.
13085 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
13086 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
13087 as a condition for processing Linux images.
13088
87888032 130892008-01-10 Pavel Roskin <proski@gnu.org>
13090
13091 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
13092 to compile reiserfs.c on PowerPC.
13093
7e54fced 130942008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 13095
13096 * kern/device.c (grub_device_iterate): Do not abort device iteration
13097 when one of the devices cannot be opened.
13098 * kern/disk.c (grub_disk_open): Do not account previous failures of
13099 unrelated functions when grub_errno is checked for.
13100
5aa541e6 131012008-01-08 Robert Millan <rmh@aybabtu.com>
13102
13103 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
13104 `! grub_linux_is_bzimage', change order of address comparison to make
13105 it more intuitive, and improve "too big zImage" error message.
13106
7076340d 131072008-01-08 Robert Millan <rmh@aybabtu.com>
13108
13109 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
13110 `$(update-grub_DATA)'.
13111 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
13112 targets.
13113
9ca70333 131142008-01-07 Robert Millan <rmh@aybabtu.com>
13115
13116 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
13117 which instruction is modified by grub-setup during installation
13118 (since it wasn't obvious by only looking at this file).
13119
38ccf575 131202008-01-07 Robert Millan <rmh@aybabtu.com>
13121
13122 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
13123 listing actual TODO items.
13124
f5db4291 131252008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
13126
868967cf 13127 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
13128 correctly.
13129 (grub_reiserfs_get_key_offset): Likewise.
13130 (grub_reiserfs_set_key_offset): Likewise.
13131 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 13132 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 13133
13134 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
13135 better to remove the bitfield version completely.
f19dbdb7 13136
868967cf 131372008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 13138
f5db4291 13139 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
13140 allocated from the heap, due to the fshelp implementation.
13141 (grub_reiserfs_dir): Free NODE, due to the same reason.
13142
492e6d9d 131432008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
13144
13145 Mostly from Vincent Pelletier:
f19dbdb7 13146
492e6d9d 13147 * fs/reiserfs.c: New file.
f19dbdb7 13148
492e6d9d 13149 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
13150 (reiserfs_mod_SOURCES): New variable.
13151 (reiserfs_mod_CFLAGS): Likewise.
13152 (reiserfs_mod_LDFLAGS): Likewise.
13153
13154 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
13155 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
13156 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
13157 normal/color.c.
13158
9ce3e7c1 131592008-01-06 Robert Millan <rmh@aybabtu.com>
13160
13161 * normal/color.c: Remove `<grub/env.h>'.
13162
f3b58148 131632008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
13164
13165 * include/grub/normal.h: Include <grub/env.h>.
13166
7ac3bcfa 131672008-01-05 Robert Millan <rmh@aybabtu.com>
13168
13169 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
13170 usage example with `(hd0,1)'.
fb358190 13171 Reported by Samuel Thibault.
7ac3bcfa 13172
c8ee99d7 131732008-01-05 Robert Millan <rmh@aybabtu.com>
13174
13175 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
13176 (grub_linux_boot_zimage): Rename to ...
13177 (grub_linux_boot): ... this.
13178 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
13179 (grub_linux_boot_zimage): Conditionalize zImage copy.
13180
13181 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
13182 (grub_linux_boot_bzimage): Remove prototype.
13183 (grub_linux_boot_zimage): Rename to ...
13184 (grub_linux_boot): ... this.
13185
13186 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
13187 (grub_linux_boot): Remove function.
13188
0ece25b1 131892008-01-05 Robert Millan <rmh@aybabtu.com>
13190
13191 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
13192 (grub_env_write_color_highlight): Likewise.
13193 (grub_wait_after_message): Likewise.
13194
13195 * normal/color.c: New file.
13196
13197 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13198 (normal_mod_DEPENDENCIES): Likewise.
13199
13200 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13201 (normal_mod_DEPENDENCIES): Likewise.
13202
13203 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13204 (normal_mod_DEPENDENCIES): Likewise.
13205
13206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
13207 (normal_mod_DEPENDENCIES): Likewise.
13208
13209 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
13210 for waiting after a message is printed.
13211 * normal/main.c (read_config_file): Likewise.
13212 (grub_normal_init): Register grub_env_write_color_normal() and
13213 grub_env_write_color_highlight() hooks. Mark `color_normal' and
13214 `color_highlight' variables as global.
13215
13216 * normal/menu.c (grub_wait_after_message): New function.
13217 (grub_color_menu_normal): New variable. Replaces ...
13218 (GRUB_COLOR_MENU_NORMAL): ... this macro.
13219 (grub_color_menu_highlight): New variable. Replaces ...
13220 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
13221 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
13222 `GRUB_TERM_COLOR_STANDARD'.
13223 (print_message): Use `grub_setcolorstate' to reload colors. Rename
13224 `normal_code' and `highlight_code' to `old_color_normal' and
13225 `old_color_highlight', respectively.
13226 (grub_menu_init_page): Update colors when drawing the menu, based on
13227 `menu_color_normal' and `menu_color_highlight' variables.
13228 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
13229 a message is printed.
13230
182dd4e5 132312008-01-05 Robert Millan <rmh@aybabtu.com>
13232
13233 * kern/env.c (grub_env_context_open): Propagate hooks for global
13234 variables to new context.
13235
13236 * kern/main.c (grub_set_root_dev): Export `root' variable.
13237
ddf8f6ad 132382008-01-05 Robert Millan <rmh@aybabtu.com>
13239
13240 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 13241 discs unconditionally, since udev and others have options to provide
ddf8f6ad 13242 them.
13243
d8b43d9b 132442008-01-05 Robert Millan <rmh@aybabtu.com>
13245
13246 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
13247
2bff2de3 132482008-01-04 Christian Franke <franke@computer.org>
13249
13250 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
13251 of eisa_mmap.
13252
97eab917 132532008-01-03 Pavel Roskin <proski@gnu.org>
13254
13255 * kern/i386/linuxbios/init.c: Put "void" to all function
13256 declarations with no arguments.
13257 * kern/powerpc/ieee1275/init.c: Likewise.
13258 * term/i386/pc/at_keyboard.c: Likewise.
13259 * term/i386/pc/vga_text.c: Likewise.
13260 * util/grub-mkdevicemap.c: Likewise.
13261
b9416d00 132622008-01-02 Robert Millan <rmh@aybabtu.com>
13263
13264 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
13265 message when loaded image is out of bounds.
13266 (grub_multiboot_load_elf64): Likewise.
13267
92695df9 132682008-01-02 Pavel Roskin <proski@gnu.org>
13269
13270 * util/grub.d/10_linux.in: Try version without ".old" when
13271 looking for initrd. It's better to use initrd from the newer
13272 kernel of the same version than no initrd at all.
13273
d98d9cad 132742008-01-01 Robert Millan <rmh@aybabtu.com>
13275
13276 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
13277
dbfdce36 132782008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
13279
f19dbdb7 13280 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 13281 grub_video_get_active_render_target.
13282 (grub_video_adapter): Added unmap_color and get_active_render_target.
13283
f19dbdb7 13284 * video/video.c: Added grub_video_unmap_color and
dbfdce36 13285 grub_video_get_active_render_target.
13286 (grub_video_get_info): Changed method to accept NULL pointer as an
13287 argument to allow detection of active video adapter.
13288
13289 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
13290 grub_video_vbe_unmap_color_int.
13291 Added grub_video_vbe_unmap_color and
13292 grub_video_vbe_get_active_render_target.
13293 (grub_video_vbe_adapter): Added unmap_color and
13294 get_active_render_target.
13295
f19dbdb7 13296 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 13297 with grub_video_vbe_unmap_color_int.
13298
13299 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
13300 (DEFAULT_NORMAL_COLOR): Likewise.
13301 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
13302 (DEFAULT_FG_COLOR): Removed.
13303 (DEFAULT_BG_COLOR): Likewise.
13304 (DEFAULT_CURSOR_COLOR): Changed value.
13305 (grub_virtual_screen): Added standard_color_setting,
13306 normal_color_setting, highlight_color_setting and term_color.
13307 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
13308 (bitmap_width): Added.
13309 (bitmap_height): Likewise.
13310 (bitmap): Likewise.
13311 (set_term_color): Likewise.
13312 (grub_virtual_screen_setup): Changed to use new terminal coloring
13313 settings.
13314 (grub_gfxterm_init): Added init for bitmap.
13315 (grub_gfxterm_fini): Added destroy for bitmap.
13316 (redraw_screen_rect): Updated to use background bitmap and new
13317 terminal coloring.
13318 (scroll_up): Added optimization for case when there is no bitmap.
13319 (grub_gfxterm_cls): Fixed to use correct background color.
13320 (grub_virtual_screen_setcolorstate): Changed to use new terminal
13321 coloring.
13322 (grub_virtual_screen_setcolor): Likewise.
13323 (grub_virtual_screen_getcolor): Added.
13324 (grub_gfxterm_background_image_cmd): Likewise.
13325 (grub_video_term): Added setcolor and getcolor.
13326 (MOD_INIT): Added registration of background_image command.
13327 (MOD_TERM): Added unregistration for background_image command.
13328
c3c20931 133292007-12-30 Pavel Roskin <proski@gnu.org>
13330
13331 * loader/multiboot_loader.c: Fix multiboot command
13332 unregistration. Fix all typos in the word "multiboot".
13333
df266716 133342007-12-29 Pavel Roskin <proski@gnu.org>
94239199 13335
13336 * util/grub.d/10_linux.in: Refactor search for initrd. Add
13337 support for initrd names used in Fedora.
13338
fc6e896c 133392007-12-26 Bean <bean123ch@gmail.com>
13340
13341 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
13342 (cpio_mod_SOURCES): New variable.
13343 (cpio_mod_CFLAGS): Likewise.
13344 (cpio_mod_LDFLAGS): Likewise.
13345
13346 * fs/cpio.c: New file.
13347
13348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
13349
13350 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13351
13352 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
13353
13354 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13355
533110ad 133562007-12-25 Robert Millan <rmh@aybabtu.com>
13357
13358 * include/grub/term.h (struct grub_term): Add `getcolor' function.
13359 (grub_getcolor): New function.
13360
13361 * kern/term.c (grub_getcolor): New function.
13362 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
13363 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
13364 (print_entry): Set normal and highlight colors to
13365 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
13366 respectively, before printing and restore them to old
13367 values afterwards.
13368 (grub_menu_init_page): Likewise. Fill an additional colored space
13369 that would otherwise be left blank.
13370
13371 * term/efi/console.c (grub_console_getcolor): New function.
13372 (struct grub_console_term.getcolor): New variable.
13373 * term/i386/pc/console.c (grub_console_getcolor): New function.
13374 (struct grub_console_term.getcolor): New variable.
13375 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
13376 (struct grub_console_term.getcolor): New variable.
13377
13378 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
13379 (struct grub_console_term.setcolor): Remove variable.
13380 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
13381 (struct grub_console_term.setcolor): Remove variable.
13382 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
13383 (struct grub_console_term.setcolor): Remove variable.
13384 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
13385 (struct grub_console_term.setcolor): Remove variable.
13386
4931827f 133872007-12-25 Robert Millan <rmh@aybabtu.com>
13388
13389 * configure.ac: Search for possible unifont.hex locations, and
13390 define UNIFONT_HEX if found.
13391
13392 * Makefile.in (UNIFONT_HEX): Define variable.
13393 (DATA): Rename to ...
13394 (PKGLIB): ... this. Update all users.
13395 (PKGDATA): New variable.
13396 (pkgdata_IMAGES): Rename to ...
13397 (pkglib_IMAGES): ... this. Update all users.
13398 (pkgdata_MODULES): Rename to ...
13399 (pkglib_MODULES): ... this. Update all users.
13400 (pkgdata_PROGRAMS): Rename to ...
13401 (pkglib_PROGRAMS): ... this. Update all users.
13402 (pkgdata_DATA): Rename to ...
13403 (pkglib_DATA): ... this. Update all users.
13404 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
13405 (unicode.pff, ascii.pff): New rules.
13406 (all-local): Add `$(PKGDATA)' dependency.
13407 (install-local): Process `$(PKGDATA)'.
13408
13409 * util/update-grub_lib.in (font_path): Search for *.pff files in
13410 a few more locations, including `${pkgdata}'.
13411
57e57e31 134122007-12-23 Robert Millan <rmh@aybabtu.com>
13413
13414 Patch from Bean <bean123ch@gmail.com>:
13415 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
13416 `size'.
13417
4bc72aa9 134182007-12-21 Bean <bean123ch@gmail.com>
13419
13420 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
13421 (ntfscomp_mod_SOURCES): New variable.
13422 (ntfscomp_mod_CFLAGS): Likewise.
13423 (ntfscomp_mod_LDFLAGS): Likewise.
13424
13425 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
13426 (grub_probe_SOURCES): Likewise.
13427 (grub_emu_SOURCES): Likewise.
13428
13429 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13430 (grub_emu_SOURCES): Likewise.
13431
13432 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13433 (grub_emu_SOURCES): Likewise.
13434
13435 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
13436 (grub_emu_SOURCES): Likewise.
13437
13438 * fs/ntfs.c (grub_ntfscomp_func): New variable.
13439 (read_run_list): Renamed to grub_ntfs_read_run_list.
13440 (decomp_nextvcn): Moved to ntfscomp.c.
13441 (decomp_getch): Likewise.
13442 (decomp_get16): Likewise.
13443 (decomp_block): Likewise.
13444 (read_block): Likewise.
13445 (read_data): Partially moved to ntfscomp.c.
13446 (fixup): Change unsigned to grub_uint16_t.
13447 (read_mft): Change unsigned long to grub_uint32_t.
13448 (read_attr): Likewise.
13449 (read_data): Likewise.
13450 (read_run_data): Likewise.
13451 (read_run_list): Likewise.
13452 (read_mft): Likewise.
13453
13454 * fs/ntfscomp.c: New file.
13455
13456 * include/grub/ntfs.h: New file.
13457
af680a87 134582007-12-16 Robert Millan <rmh@aybabtu.com>
13459
13460 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
13461 IDE disk check, since Linux is known to support 20 IDE disks.
13462 Reported by Colin Watson.
13463
84be7599 134642007-12-15 Bean <bean123ch@gmail.com>
13465
13466 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
13467 (lnxboot_img_SOURCES): New variable.
13468 (lnxboot_img_ASFLAGS): Likewise.
13469 (lnxboot_img_LDFLAGS): Likewise.
13470
13471 * boot/i386/pc/lnxboot.S: New file.
13472
6af9db01 134732007-11-24 Pavel Roskin <proski@gnu.org>
13474
13475 * configure.ac: Test if '--build-id=none' is supported by the
13476 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
13477 objcopy to generate incorrect binary files (binutils
13478 2.17.50.0.18-1 as shipped by Fedora 8).
13479 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
13480 linking, so that build ID doesn't break the test.
13481
7361cfe6 134822007-11-24 Pavel Roskin <proski@gnu.org>
13483
13484 * include/grub/i386/time.h: use "void" in the argument list
13485 of grub_cpu_idle().
13486 * include/grub/powerpc/time.h: Likewise.
13487 * include/grub/sparc64/time.h: Likewise.
13488
1593e10c 134892007-11-18 Christian Franke <franke@computer.org>
13490
13491 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
13492 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
13493 This fixes the problem that function keys did not work in grub-emu.
13494
3b8db1a8 134952007-11-18 Christian Franke <franke@computer.org>
13496
13497 * disk/host.c (grub_host_open): Remove attribute unused from
13498 name parameter. Add check for "host". This fixes the problem
13499 that grub-emu does not find partitions.
13500
2e29408d 135012007-11-18 Christian Franke <franke@computer.org>
13502
13503 * util/hostfs.c (is_dir): New function.
13504 (grub_hostfs_dir): Handle missing dirent.d_type case.
13505 (grub_hostfs_read): Add missing fseek().
13506 (grub_hostfs_label): Clear label pointer. This fixes a crash
13507 of grub-emu on "ls (host)".
13508
398cd047 135092007-11-18 Christian Franke <franke@computer.org>
13510
13511 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
13512 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
13513 to 64 bit boundary by default.
13514
c405c391 135152007-11-18 Bean <bean123ch@gmail.com>
13516
13517 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
13518 (hexdump_mod_SOURCES): New variable.
13519 (hexdump_mod_CFLAGS): Likewise.
13520 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 13521
c405c391 13522 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13523
13524 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13525
13526 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13527
13528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
13529
13530 * include/grub/hexdump.h: New file.
13531
13532 * commands/hexdump.c: New file.
13533
5cced7fd 135342007-11-10 Robert Millan <rmh@aybabtu.com>
13535
13536 * commands/i386/pc/play.c (beep_off): Switch order of arguments
13537 in grub_outb() calls.
13538 (beep_on): Likewise.
13539
8b714eb0 135402007-11-10 Christian Franke <franke@computer.org>
13541
13542 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
13543 (grub_menu_run): Likewise.
13544
ce0f1839 135452007-11-10 Robert Millan <rmh@aybabtu.com>
13546
13547 * include/grub/i386/efi/machine.h: New file.
13548 * include/grub/i386/linuxbios/machine.h: Likewise.
13549 * include/grub/i386/pc/machine.h: Likewise.
13550 * include/grub/powerpc/ieee1275/machine.h: Likewise.
13551 * include/grub/sparc64/ieee1275/machine.h: Likewise.
13552
13553 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
13554 (serial_hw_io_addr): New variable.
13555 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
13556 instead of `(unsigned short *) 0x400'.
13557
270c237d 135582007-11-10 Bean <bean123ch@gmail.com>
13559
13560 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
13561
a87783bf 135622007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13563
13564 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
13565 (vga_mod_SOURCES): Added.
13566 (vga_mod_CFLAGS): Likewise.
13567 (vga_mod_LDFLAGS): Likewise.
13568
13569 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
13570 grub_outb() calls.
13571 (set_map_mask): Likewise.
13572 (set_read_map): Likewise.
13573 (set_read_address): Likewise.
13574 (vga_font): Removed variable.
13575 (get_vga_glyph): Removed function.
13576 (invalidate_char): Likewise.
13577 (write_char): Changed to use grub_font_get_glyph() for font
13578 information.
13579 (grub_vga_putchar): Likewise.
13580 (grub_vga_getcharwidth): Likewise.
13581
6433b448 135822007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
13583
13584 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
13585 flags.
13586 (pxeboot_img_LDFLAGS): Likewise.
13587 (diskboot_img_LDFLAGS): Likewise.
13588 (kernel_img_LDFLAGS): Likewise.
13589
49178511 135902007-11-06 Robert Millan <rmh@aybabtu.com>
13591
13592 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
13593 in grub_outb() calls.
13594 (serial_hw_init): Likewise.
13595
53b052de 135962007-11-05 Robert Millan <rmh@aybabtu.com>
13597
13598 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
13599 spaces. Skip non-regular files.
13600
5ab33bba 136012007-11-05 Robert Millan <rmh@aybabtu.com>
13602
13603 * kern/disk.c (grub_disk_firmware_fini)
13604 (grub_disk_firmware_is_tainted): New variables.
13605
13606 * include/grub/disk.h (grub_disk_firmware_fini)
13607 (grub_disk_firmware_is_tainted): Likewise.
13608
13609 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
13610 (grub_disk_biosdisk_fini): ... to here.
13611 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
13612 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
13613 is set. Register grub_disk_biosdisk_fini() in
13614 `grub_disk_firmware_fini'.
13615
13616 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
13617 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
13618 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
13619 to finish existing firmware disk interface.
13620
13621 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
13622 (ata_mod_SOURCES): New variable.
13623 (ata_mod_CFLAGS): Likewise.
13624 (ata_mod_LDFLAGS): Likewise.
13625
0149ab7c 136262007-11-05 Robert Millan <rmh@aybabtu.com>
13627
13628 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
13629 (grub_ata_wait): Reimplement using grub_millisleep().
13630
13631 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
13632 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
13633
be7ac41e 136342007-11-03 Marco Gerards <marco@gnu.org>
13635
13636 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
13637 (CRTC_ADDR_PORT): New macro.
13638 (CRTC_DATA_PORT): Likewise.
13639 (CRTC_CURSOR): Likewise.
13640 (CRTC_CURSOR_ADDR_HIGH): Likewise.
13641 (CRTC_CURSOR_ADDR_LOW): Likewise.
13642 (update_cursor): New function.
13643 (grub_console_real_putchar): Call `update_cursor'.
13644 (grub_console_gotoxy): Likewise.
13645 (grub_console_cls): Set the default color when clearing the
13646 screen.
13647 (grub_console_setcursor): Implemented.
13648
bb06ab2e 136492007-11-03 Marco Gerards <marco@gnu.org>
13650
13651 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
13652 become activate.
13653 (grub_ata_pio_write): Likewise.
13654
13655 (grub_atapi_identify): Wait after issuing an ATA command.
13656 (grub_atapi_packet): Likewise.
13657 (grub_ata_identify): Likewise.
13658 (grub_ata_readwrite): Likewise.
13659
cf8f780b 136602007-11-03 Marco Gerards <marco@gnu.org>
13661
13662 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
13663 (grub_ata_pio_write): Likewise.
13664 (grub_ata_readwrite): Use `grub_error', instead of
13665 returning `grub_errno'.
13666
ed649e54 136672007-11-03 Marco Gerards <marco@gnu.org>
13668
13669 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
13670 grub_ata_pio_write once for every single sector, instead of for
13671 multiple sectors.
13672
ca25d8f0 136732007-10-31 Robert Millan <rmh@aybabtu.com>
13674
13675 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
13676
13677 * conf/i386-linuxbios.rmk: New file.
13678
13679 * kern/i386/pc/hardware.c: Likewise.
13680 * term/i386/pc/at_keyboard.c: Likewise.
13681 * term/i386/pc/vga_text.c: Likewise.
13682
13683 * include/grub/i386/linuxbios/boot.h: Likewise.
13684 * include/grub/i386/linuxbios/console.h: Likewise.
13685 * include/grub/i386/linuxbios/init.h: Likewise.
13686 * include/grub/i386/linuxbios/kernel.h: Likewise.
13687 * include/grub/i386/linuxbios/loader.h: Likewise.
13688 * include/grub/i386/linuxbios/memory.h: Likewise.
13689 * include/grub/i386/linuxbios/serial.h: Likewise.
13690 * include/grub/i386/linuxbios/time.h: Likewise.
13691
13692 * kern/i386/linuxbios/init.c: Likewise.
13693 * kern/i386/linuxbios/startup.S: Likewise.
13694 * kern/i386/linuxbios/table.c: Likewise.
13695
e911ecc1 136962007-10-31 Marco Gerards <marco@gnu.org>
13697
13698 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
13699 (ata_mod_SOURCES): New variable.
13700 (ata_mod_CFLAGS): Likewise.
13701 (ata_mod_LDFLAGS): Likewise.
13702
13703 * disk/ata.c: New file.
13704
13705 * include/grub/disk.h (grub_disk_dev_id): Add
13706 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 13707
7f66d0e0 137082007-10-31 Robert Millan <rmh@aybabtu.com>
13709
13710 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
13711 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
13712
13713 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
13714 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
13715
13716 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
13717 `<grub/types.h>'.
13718
13719 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
13720
5cd7dd46 137212007-10-27 Robert Millan <rmh@aybabtu.com>
13722
3236ca65 13723 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 13724
2ebfc90f 137252007-10-22 Robert Millan <rmh@aybabtu.com>
13726
13727 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
13728 `"../realmode.S"'.
13729 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
13730
73fcb0f3 137312007-10-22 Robert Millan <rmh@aybabtu.com>
13732
13733 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
13734 (pkgdata_MODULES): Add `biosdisk.mod'.
13735 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
13736 variables.
13737
13738 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
13739 (grub_biosdisk_init): Replace with ...
13740 (GRUB_MOD_INIT(biosdisk)): ... this.
13741 (grub_biosdisk_fini): Replace with ...
13742 (GRUB_MOD_FINI(biosdisk)): ... this.
13743
13744 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
13745 (grub_machine_init): Remove call to grub_biosdisk_init().
13746 (grub_machine_fini): Remove call to grub_machine_fini().
13747
13748 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
13749
3381d274 137502007-10-22 Robert Millan <rmh@aybabtu.com>
13751
13752 * include/grub/time.h: New file.
13753 * include/grub/i386/time.h: Likewise.
13754 * include/grub/powerpc/time.h: Likewise.
13755 * include/grub/sparc64/time.h: Likewise.
13756
13757 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
13758 instances to ...
13759 (KERNEL_MACHINE_TIME_HEADER): ... this.
13760 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13761 instances to ...
13762 (KERNEL_MACHINE_TIME_HEADER): ... this.
13763 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
13764 instances to ...
13765 (KERNEL_MACHINE_TIME_HEADER): ... this.
13766
13767 * kern/i386/efi/init.c: Include `<grub/time.h>'.
13768 (grub_millisleep): New function.
13769 * kern/i386/pc/init.c: Include `<grub/time.h>'.
13770 (grub_millisleep): New function.
13771 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
13772 Remove `grub/machine/time.h' include.
13773 (grub_millisleep): New function.
13774 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
13775 Remove `grub/machine/time.h' include.
13776 (grub_millisleep): New function.
13777
13778 * include/grub/misc.h (grub_div_roundup): New function.
13779
13780 * kern/misc.c: Include `<grub/time.h>'.
13781 (grub_millisleep_generic): New function.
13782
13783 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
13784 Add `time.h'.
13785 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
13786 Add `time.h'.
13787 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
13788 `machine/time.h'. Add `time.h'.
13789 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
13790
a39a0312 137912007-10-21 Robert Millan <rmh@aybabtu.com>
13792
13793 * include/grub/misc.h (grub_max): New function.
13794
2aad70e2 137952007-10-21 Robert Millan <rmh@aybabtu.com>
13796
13797 * util/misc.c (grub_util_info): Call fflush() before returning.
13798
54b71c4b 137992007-10-20 Robert Millan <rmh@aybabtu.com>
13800
13801 * genmk.rb (Image): Copy `extra_flags' from here ...
13802 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
13803
13804 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
13805 to `argc' and `args' arguments.
13806
a979f513 138072007-10-17 Robert Millan <rmh@aybabtu.com>
13808
13809 * kern/i386/loader.S: New file.
13810
13811 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
13812 * kern/i386/loader.S (grub_linux_prot_size)... to here.
13813 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
13814 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
13815 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
13816 * kern/i386/loader.S (grub_linux_real_addr)... to here.
13817 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
13818 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
13819 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
13820 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
13821 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
13822 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
13823 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
13824 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
13825
13826 * kern/i386/realmode.S: New file.
13827
13828 * kern/i386/pc/startup.S (protstack): Moved from here ...
13829 * kern/i386/realmode.S (protstack)... to here.
13830 * kern/i386/pc/startup.S (gdt): Moved from here ...
13831 * kern/i386/realmode.S (gdt)... to here.
13832 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
13833 * kern/i386/realmode.S (prot_to_real)... to here.
13834
13835 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
13836 `kern/i386/realmode.S'.
13837
825fc8fd 138382007-10-17 Robert Millan <rmh@aybabtu.com>
13839
13840 * include/grub/i386/loader.h: New file.
13841
13842 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
13843 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
13844 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
13845 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
13846 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
13847 * include/grub/i386/loader.h (grub_linux_prot_size)
13848 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
13849 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
13850 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
13851 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
13852
13853 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
13854
e179b2f4 138552007-10-15 Robert Millan <rmh@aybabtu.com>
13856
13857 * normal/misc.c (grub_normal_print_device_info): Do not probe for
13858 filesystem when dev->disk is unset.
13859 Do probe for filesystem even when dev->disk->has_partitions is set.
13860 In case a filesystem is found, always report it.
13861 In case it isn't, if dev->disk->has_partitions is set, report that
13862 a partition table was found instead of reporting that no filesystem
13863 could be identified.
13864
5db82af6 138652007-10-12 Robert Millan <rmh@aybabtu.com>
13866
13867 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
13868 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
13869
68f6ac74 13870 * include/grub/types.h (grub_host_to_target16): New macro.
13871 (grub_host_to_target32): Likewise.
13872 (grub_host_to_target64): Likewise.
13873 (grub_target_to_host16): Likewise.
13874 (grub_target_to_host32): Likewise.
13875 (grub_target_to_host64): Likewise.
5db82af6 13876
13877 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
13878 Renamed from to ...
13879 (GRUB_MOD_ALIGN): ...this. Update all users.
13880
68f6ac74 13881 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
13882 grub_host_to_target32.
13883 Replace grub_be_to_cpu32 with grub_target_to_host32.
13884 (load_modules): Likewise.
13885 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
13886 Replace grub_be_to_cpu32 with grub_target_to_host32.
13887 Replace grub_cpu_to_be16 with grub_host_to_target16.
13888 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 13889
3cf497cc 138902007-10-12 Robert Millan <rmh@aybabtu.com>
13891
13892 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
13893 * util/elf/grub-mkimage.c: ... here.
13894
13895 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
13896 `util/powerpc/ieee1275/grub-mkimage.c'.
13897
c8cc3692 138982007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 13899
c8cc3692 13900 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
13901 and make it easier to figure out.
13902 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
13903 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
13904 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
13905 leave us with less than HEAP_MIN_SIZE total heap.
13906 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 13907
5c58b791 139082007-10-03 Robert Millan <rmh@aybabtu.com>
13909
13910 * include/grub/i386/io.h: New file.
13911 * commands/i386/pc/play.c (inb): Removed.
13912 (outb): Removed.
13913 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13914 with grub_outb().
afcd2ef8 13915 * term/i386/pc/serial.c (inb): Removed.
13916 (outb): Removed.
13917 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13918 with grub_outb().
13919 * term/i386/pc/vga.c (inb): Removed.
13920 (outb): Removed.
13921 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
13922 with grub_outb().
5c58b791 13923
1a477ed6 139242007-10-02 Robert Millan <rmh@aybabtu.com>
13925
13926 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
13927 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13928 Reported by Marcin Kurek.
13929
6b5d80fa 139302007-09-07 Robert Millan <rmh@aybabtu.com>
13931
13932 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
13933 SmartFirmware version updates (as released by Sven Luther), and avoid
13934 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
13935 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
13936 known broken.
13937
5618afbf 139382007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13939
13940 From Hitoshi Ozeki:
13941 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
13942 when merging two regions.
13943
6139dcd9 139442007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
13945
508e39ee 13946 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
13947 * normal/completion.c (grub_normal_do_completion): Likewise.
13948 Reported by Hitoshi Ozeki.
13949
139502007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 13951
6139dcd9 13952 Do not use devices at boot in chainloading.
f19dbdb7 13953
6139dcd9 13954 * loader/i386/pc/chainloader.c (boot_drive): New variable.
13955 (boot_part_addr): Likewise.
13956 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
13957 with BOOT_DRIVE and BOOT_PART_ADDR.
13958 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
13959 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
13960
38da6516 139612007-08-29 Robert Millan <rmh@aybabtu.com>
13962
13963 Patch from Simon Peter <dn.tlp@gmx.net>:
13964 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
13965 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
13966 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
13967 util/i386/pc/grub-setup.c_DEPENDENCIES.
13968 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
13969 util/grub-probe.c_DEPENDENCIES.
13970 * conf/powerpc-ieee1275.rmk: Likewise.
13971
29d0928c 139722007-08-28 Robert Millan <rmh@aybabtu.com>
13973
13974 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
13975 to tell grub-mkdevicemap how to name devices.
13976 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
13977 feature).
13978
13979 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
13980 util/i386/get_disk_name.c.
13981 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
13982 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
13983 util/ieee1275/get_disk_name.c.
13984
13985 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
13986
13987 * DISTLIST: Add util/i386/get_disk_name.c and
13988 util/ieee1275/get_disk_name.c.
13989
13990 * util/grub-mkdevicemap.c: Replace device naming logic with
13991 grub_util_get_disk_name() calls.
13992
5a0d3cca 139932007-08-20 Robert Millan <rmh@aybabtu.com>
13994
13995 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
13996 (so that it works for both plural and singular quantities).
13997
8b72db2f 139982007-08-05 Robert Millan <rmh@aybabtu.com>
13999
14000 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
14001 so that [xz] isn't taken into account when determining order.
14002
352466bf 140032007-08-02 Marco Gerards <marco@gnu.org>
14004
14005 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
14006 `include/multiboot2.h', `include/grub/elfload.h',
14007 `include/multiboot.h', `include/grub/multiboot.h',
14008 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
14009 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
14010 `kern/elf.c', `loader/multiboot_loader.c',
14011 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
14012 `loader/i386/pc/multiboot2.c',
14013 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
14014 `util/i386/pc/grub-mkrescue.in'. Remove
14015 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
14016 `include/grub/i386/pc/util/biosdisk.h' and
14017 `include/grub/powerpc/ieee1275/multiboot.h'.
14018
8f096014 140192007-08-02 Bean <bean123ch@gmail.com>
14020
14021 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
14022 (ntfs_mod_SOURCES): New variable.
14023 (ntfs_mod_CFLAGS): Likewise.
14024 (ntfs_mod_LDFLAGS): Likewise.
14025
14026 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
14027 (grub_probe_SOURCES): Likewise.
14028 (grub_emu_SOURCES): Likewise.
14029
14030 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
14031 (grub_emu_SOURCES): Likewise.
14032
14033 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
14034 (grub_emu_SOURCES): Likewise.
f19dbdb7 14035
8f096014 14036 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
14037
14038 * fs/ntfs.c: New file.
14039
9959f7db 140402007-08-02 Bean <bean123ch@gmail.com>
14041
14042 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
14043
14044 * file.h (grub_file): Likewise.
14045
14046 * fshelp.h (grub_fshelp_read_file): Likewise.
14047
14048 * util/i386/pc/grub-setup.c (setup): Likewise.
14049 (save_first_sector): Likewise.
14050 (save_blocklists): Likewise.
f19dbdb7 14051
9959f7db 14052 * fs/affs.c (grub_affs_read_file): Likewise.
14053
14054 * fs/ext2.c (grub_ext2_read_file): Likewise.
14055
14056 * fs/fat.c (grub_fat_read_data): Likewise.
14057
14058 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
14059
14060 * fs/hfs.c (grub_hfs_read_file): Likewise.
14061
14062 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
14063
14064 * fs/jfs.c (grub_jfs_read_file): Likewise.
14065
14066 * fs/minix.c (grub_minix_read_file): Likewise.
14067
14068 * fs/sfs.c (grub_sfs_read_file): Likewise.
14069
14070 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 14071
9959f7db 14072 * fs/xfs.c (grub_xfs_read_file): Likewise.
14073
14074 * command/blocklist.c (read_blocklist): Likewise.
14075 (print_blocklist): Likewise.
14076
0a203f83 140772007-08-02 Marco Gerards <marco@gnu.org>
14078
14079 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
14080 `util/hostfs.c'.
14081
14082 * disk/host.c: New file.
14083
14084 * util/hostfs.c: Likewise.
14085
14086 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
14087 return `GRUB_ERR_BAD_FS'.
14088 * fs/sfs.c (grub_sfs_mount): Likewise.
14089 * fs/xfs.c (grub_xfs_mount): Likewise.
14090
14091 * include/grub/disk.h (enum grub_disk_dev_id): Add
14092 `GRUB_DISK_DEVICE_HOST_ID'.
14093
14094 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
14095
e5dfe777 140962007-07-24 Jerone Young <jerone@gmail.com>
14097
f19dbdb7 14098 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 14099 modules for compilation.
14100 * conf/powerpc-ieee1275.rmk: Likewise.
14101
14102 * include/multiboot.h: Move multiboot definitions to one file. Rename
14103 many definitions to not get grub specific.
14104 * include/multiboot2.h: Create header with multiboot 2 definitions.
14105 * include/grub/multiboot.h: Header for grub specific function
14106 prototypes and definitions.
14107 * include/grub/multiboot2.h: Likewise.
14108 * include/grub/multiboot_loader.h: Likewise.
14109 * include/grub/i386/pc/multiboot.h: Removed.
14110 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
14111
14112 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
14113 and 2 to allow for one multiboot and module commands.
14114 * loader/multiboot2.c: Add multiboot2 functionality.
14115 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
14116 and definition names.
14117 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
14118 2 functions.
14119 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
14120 ieee1275 specific multiboot2 code.
14121
14122 * kern/i386/pc/startup.S: Change headers and definition names for
14123 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
14124
daf0f0ba 141252007-07-22 Robert Millan <rmh@aybabtu.com>
14126
14127 * geninitheader.sh: Process file specified in first parameter rather
14128 than hardcoding grub_modules_init.lst.
fe6b695a 14129 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 14130 than hardcoding grub_modules_init.h.
14131
14132 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
14133 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
14134 grub_probe_init.[ch] and grub_setup_init.[ch].
14135
14136 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
14137 grub_modules_init.h with grub_emu_init.h.
14138 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
14139 grub_probe_init.[ch] files.
14140 * conf/i386-efi.rmk: Likewise.
14141 * conf/i386-pc.rmk: Likewise.
14142 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
14143 grub_setup_init.[ch] files.
14144
14145 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
14146 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
14147 to initialize modules rather than a list of hardcoded functions.
14148 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
14149 grub_init_all() to initialize modules rather than a list of hardcoded
14150 functions.
14151
54cdc1cc 141522007-07-22 Robert Millan <rmh@aybabtu.com>
14153
14154 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14155 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
14156
ad0686cc 141572007-07-22 Robert Millan <rmh@aybabtu.com>
14158
14159 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
14160 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
14161 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
14162 flag when running on SmartFirmware.
14163 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
14164 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
14165 was set.
14166
14167 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14168 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
14169 rather than decreasing it.
14170
14171 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
14172 there's not enough space to do it, fail in the same way as when it
14173 can't be done because there are no partitions.
14174
14175 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
14176 when nvsetenv failed.
14177
969c02ec 141782007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
14179
14180 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
14181 because this rule is automatically generated.
14182 (grub-mkrescue): Removed for the same reason as above.
14183
5a79f472 141842007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
14185
14186 Migrate to GNU General Public License Version 3.
f19dbdb7 14187
5a79f472 14188 * COPYING: Replaced with the plain text version of GPLv3.
14189
14190 * config.guess: Updated from gnulib.
14191 * config.sub: Likewise.
14192
14193 * geninit.sh: Output a GPLv3 copyright notice.
14194 * geninitheader.sh: Likewise.
14195 * genmodsrc.sh: Likewise.
14196 * gensymlist.sh.in: Likewise.
14197
14198 * boot/i386/pc/boot.S: Upgraded to GPLv3.
14199 * boot/i386/pc/diskboot.S: Likewise.
14200 * boot/i386/pc/pxeboot.S: Likewise.
14201 * commands/blocklist.c: Likewise.
14202 * commands/boot.c: Likewise.
14203 * commands/cat.c: Likewise.
14204 * commands/cmp.c: Likewise.
14205 * commands/configfile.c: Likewise.
14206 * commands/echo.c: Likewise.
14207 * commands/help.c: Likewise.
14208 * commands/ls.c: Likewise.
14209 * commands/search.c: Likewise.
14210 * commands/terminal.c: Likewise.
14211 * commands/test.c: Likewise.
14212 * commands/videotest.c: Likewise.
14213 * commands/i386/cpuid.c: Likewise.
14214 * commands/i386/pc/halt.c: Likewise.
14215 * commands/i386/pc/play.c: Likewise.
14216 * commands/i386/pc/reboot.c: Likewise.
14217 * commands/i386/pc/vbeinfo.c: Likewise.
14218 * commands/i386/pc/vbetest.c: Likewise.
14219 * commands/ieee1275/halt.c: Likewise.
14220 * commands/ieee1275/reboot.c: Likewise.
14221 * commands/ieee1275/suspend.c: Likewise.
14222 * disk/loopback.c: Likewise.
14223 * disk/lvm.c: Likewise.
14224 * disk/raid.c: Likewise.
14225 * disk/efi/efidisk.c: Likewise.
14226 * disk/i386/pc/biosdisk.c: Likewise.
14227 * disk/ieee1275/ofdisk.c: Likewise.
14228 * font/manager.c: Likewise.
14229 * fs/affs.c: Likewise.
14230 * fs/ext2.c: Likewise.
14231 * fs/fat.c: Likewise.
14232 * fs/fshelp.c: Likewise.
14233 * fs/hfs.c: Likewise.
14234 * fs/hfsplus.c: Likewise.
14235 * fs/iso9660.c: Likewise.
14236 * fs/jfs.c: Likewise.
14237 * fs/minix.c: Likewise.
14238 * fs/sfs.c: Likewise.
14239 * fs/ufs.c: Likewise.
14240 * fs/xfs.c: Likewise.
14241 * hello/hello.c: Likewise.
14242 * include/grub/acorn_filecore.h: Likewise.
14243 * include/grub/arg.h: Likewise.
14244 * include/grub/bitmap.h: Likewise.
14245 * include/grub/boot.h: Likewise.
14246 * include/grub/cache.h: Likewise.
14247 * include/grub/device.h: Likewise.
14248 * include/grub/disk.h: Likewise.
14249 * include/grub/dl.h: Likewise.
14250 * include/grub/elfload.h: Likewise.
14251 * include/grub/env.h: Likewise.
14252 * include/grub/err.h: Likewise.
14253 * include/grub/file.h: Likewise.
14254 * include/grub/font.h: Likewise.
14255 * include/grub/fs.h: Likewise.
14256 * include/grub/fshelp.h: Likewise.
14257 * include/grub/gzio.h: Likewise.
14258 * include/grub/hfs.h: Likewise.
14259 * include/grub/kernel.h: Likewise.
14260 * include/grub/loader.h: Likewise.
14261 * include/grub/lvm.h: Likewise.
14262 * include/grub/misc.h: Likewise.
14263 * include/grub/mm.h: Likewise.
14264 * include/grub/net.h: Likewise.
14265 * include/grub/normal.h: Likewise.
14266 * include/grub/parser.h: Likewise.
14267 * include/grub/partition.h: Likewise.
14268 * include/grub/pc_partition.h: Likewise.
14269 * include/grub/raid.h: Likewise.
14270 * include/grub/rescue.h: Likewise.
14271 * include/grub/script.h: Likewise.
14272 * include/grub/setjmp.h: Likewise.
14273 * include/grub/symbol.h: Likewise.
14274 * include/grub/term.h: Likewise.
14275 * include/grub/terminfo.h: Likewise.
14276 * include/grub/tparm.h: Likewise.
14277 * include/grub/types.h: Likewise.
14278 * include/grub/video.h: Likewise.
14279 * include/grub/efi/api.h: Likewise.
14280 * include/grub/efi/chainloader.h: Likewise.
14281 * include/grub/efi/console.h: Likewise.
14282 * include/grub/efi/console_control.h: Likewise.
14283 * include/grub/efi/disk.h: Likewise.
14284 * include/grub/efi/efi.h: Likewise.
14285 * include/grub/efi/pe32.h: Likewise.
14286 * include/grub/efi/time.h: Likewise.
14287 * include/grub/i386/linux.h: Likewise.
14288 * include/grub/i386/setjmp.h: Likewise.
14289 * include/grub/i386/types.h: Likewise.
14290 * include/grub/i386/efi/kernel.h: Likewise.
14291 * include/grub/i386/efi/loader.h: Likewise.
14292 * include/grub/i386/efi/time.h: Likewise.
14293 * include/grub/i386/pc/biosdisk.h: Likewise.
14294 * include/grub/i386/pc/boot.h: Likewise.
14295 * include/grub/i386/pc/chainloader.h: Likewise.
14296 * include/grub/i386/pc/console.h: Likewise.
14297 * include/grub/i386/pc/init.h: Likewise.
14298 * include/grub/i386/pc/kernel.h: Likewise.
14299 * include/grub/i386/pc/loader.h: Likewise.
14300 * include/grub/i386/pc/memory.h: Likewise.
14301 * include/grub/i386/pc/multiboot.h: Likewise.
14302 * include/grub/i386/pc/serial.h: Likewise.
14303 * include/grub/i386/pc/time.h: Likewise.
14304 * include/grub/i386/pc/vbe.h: Likewise.
14305 * include/grub/i386/pc/vbeblit.h: Likewise.
14306 * include/grub/i386/pc/vbefill.h: Likewise.
14307 * include/grub/i386/pc/vbeutil.h: Likewise.
14308 * include/grub/i386/pc/vga.h: Likewise.
14309 * include/grub/ieee1275/ieee1275.h: Likewise.
14310 * include/grub/ieee1275/ofdisk.h: Likewise.
14311 * include/grub/powerpc/libgcc.h: Likewise.
14312 * include/grub/powerpc/setjmp.h: Likewise.
14313 * include/grub/powerpc/types.h: Likewise.
14314 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14315 * include/grub/powerpc/ieee1275/console.h: Likewise.
14316 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
14317 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14318 * include/grub/powerpc/ieee1275/loader.h: Likewise.
14319 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
14320 * include/grub/powerpc/ieee1275/time.h: Likewise.
14321 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
14322 * include/grub/sparc64/libgcc.h: Likewise.
14323 * include/grub/sparc64/setjmp.h: Likewise.
14324 * include/grub/sparc64/types.h: Likewise.
14325 * include/grub/sparc64/ieee1275/console.h: Likewise.
14326 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
14327 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14328 * include/grub/sparc64/ieee1275/time.h: Likewise.
14329 * include/grub/util/biosdisk.h: Likewise.
14330 * include/grub/util/getroot.h: Likewise.
14331 * include/grub/util/lvm.h: Likewise.
14332 * include/grub/util/misc.h: Likewise.
14333 * include/grub/util/raid.h: Likewise.
14334 * include/grub/util/resolve.h: Likewise.
14335 * io/gzio.c: Likewise.
14336 * kern/device.c: Likewise.
14337 * kern/disk.c: Likewise.
14338 * kern/dl.c: Likewise.
14339 * kern/elf.c: Likewise.
14340 * kern/env.c: Likewise.
14341 * kern/err.c: Likewise.
14342 * kern/file.c: Likewise.
14343 * kern/fs.c: Likewise.
14344 * kern/loader.c: Likewise.
14345 * kern/main.c: Likewise.
14346 * kern/misc.c: Likewise.
14347 * kern/mm.c: Likewise.
14348 * kern/parser.c: Likewise.
14349 * kern/partition.c: Likewise.
14350 * kern/rescue.c: Likewise.
14351 * kern/term.c: Likewise.
14352 * kern/efi/efi.c: Likewise.
14353 * kern/efi/init.c: Likewise.
14354 * kern/efi/mm.c: Likewise.
14355 * kern/i386/dl.c: Likewise.
14356 * kern/i386/efi/init.c: Likewise.
14357 * kern/i386/efi/startup.S: Likewise.
14358 * kern/i386/pc/init.c: Likewise.
14359 * kern/i386/pc/lzo1x.S: Likewise.
14360 * kern/i386/pc/startup.S: Likewise.
14361 * kern/ieee1275/ieee1275.c: Likewise.
14362 * kern/powerpc/cache.S: Likewise.
14363 * kern/powerpc/dl.c: Likewise.
14364 * kern/powerpc/ieee1275/cmain.c: Likewise.
14365 * kern/powerpc/ieee1275/crt0.S: Likewise.
14366 * kern/powerpc/ieee1275/init.c: Likewise.
14367 * kern/powerpc/ieee1275/openfw.c: Likewise.
14368 * kern/sparc64/cache.S: Likewise.
14369 * kern/sparc64/dl.c: Likewise.
14370 * kern/sparc64/ieee1275/init.c: Likewise.
14371 * kern/sparc64/ieee1275/openfw.c: Likewise.
14372 * loader/efi/chainloader.c: Likewise.
14373 * loader/efi/chainloader_normal.c: Likewise.
14374 * loader/i386/efi/linux.c: Likewise.
14375 * loader/i386/efi/linux_normal.c: Likewise.
14376 * loader/i386/pc/chainloader.c: Likewise.
14377 * loader/i386/pc/chainloader_normal.c: Likewise.
14378 * loader/i386/pc/linux.c: Likewise.
14379 * loader/i386/pc/linux_normal.c: Likewise.
14380 * loader/i386/pc/multiboot.c: Likewise.
14381 * loader/i386/pc/multiboot_normal.c: Likewise.
14382 * loader/powerpc/ieee1275/linux.c: Likewise.
14383 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
14384 * normal/arg.c: Likewise.
14385 * normal/cmdline.c: Likewise.
14386 * normal/command.c: Likewise.
14387 * normal/completion.c: Likewise.
14388 * normal/execute.c: Likewise.
14389 * normal/function.c: Likewise.
14390 * normal/lexer.c: Likewise.
14391 * normal/main.c: Likewise.
14392 * normal/menu.c: Likewise.
14393 * normal/menu_entry.c: Likewise.
14394 * normal/misc.c: Likewise.
14395 * normal/parser.y: Likewise.
14396 * normal/script.c: Likewise.
14397 * normal/i386/setjmp.S: Likewise.
14398 * normal/powerpc/setjmp.S: Likewise.
14399 * normal/sparc64/setjmp.S: Likewise.
14400 * partmap/acorn.c: Likewise.
14401 * partmap/amiga.c: Likewise.
14402 * partmap/apple.c: Likewise.
14403 * partmap/gpt.c: Likewise.
14404 * partmap/pc.c: Likewise.
14405 * partmap/sun.c: Likewise.
14406 * term/gfxterm.c: Likewise.
14407 * term/terminfo.c: Likewise.
14408 * term/efi/console.c: Likewise.
14409 * term/i386/pc/console.c: Likewise.
14410 * term/i386/pc/serial.c: Likewise.
14411 * term/i386/pc/vesafb.c: Likewise.
14412 * term/i386/pc/vga.c: Likewise.
14413 * term/ieee1275/ofconsole.c: Likewise.
14414 * util/biosdisk.c: Likewise.
14415 * util/console.c: Likewise.
14416 * util/genmoddep.c: Likewise.
14417 * util/getroot.c: Likewise.
14418 * util/grub-emu.c: Likewise.
14419 * util/grub-mkdevicemap.c: Likewise.
14420 * util/grub-probe.c: Likewise.
14421 * util/lvm.c: Likewise.
14422 * util/misc.c: Likewise.
14423 * util/raid.c: Likewise.
14424 * util/resolve.c: Likewise.
14425 * util/update-grub.in: Likewise.
14426 * util/update-grub_lib.in: Likewise.
14427 * util/grub.d/00_header.in: Likewise.
14428 * util/grub.d/10_hurd.in: Likewise.
14429 * util/grub.d/10_linux.in: Likewise.
14430 * util/i386/efi/grub-install.in: Likewise.
14431 * util/i386/efi/grub-mkimage.c: Likewise.
14432 * util/i386/pc/grub-install.in: Likewise.
14433 * util/i386/pc/grub-mkimage.c: Likewise.
14434 * util/i386/pc/grub-mkrescue.in: Likewise.
14435 * util/i386/pc/grub-setup.c: Likewise.
14436 * util/i386/pc/misc.c: Likewise.
14437 * util/powerpc/ieee1275/grub-install.in: Likewise.
14438 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
14439 * util/powerpc/ieee1275/misc.c: Likewise.
14440 * video/bitmap.c: Likewise.
14441 * video/video.c: Likewise.
14442 * video/i386/pc/vbe.c: Likewise.
14443 * video/i386/pc/vbeblit.c: Likewise.
14444 * video/i386/pc/vbefill.c: Likewise.
14445 * video/i386/pc/vbeutil.c: Likewise.
14446 * video/readers/tga.c: Likewise.
14447
3572d015 144482007-07-02 Robert Millan <rmh@aybabtu.com>
14449
14450 * conf/i386-efi.rmk: Replace obsolete reference to
14451 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
14452 with util/getroot.c.
14453 * conf/powerpc-ieee1275.rmk: Likewise.
14454 * conf/sparc64-ieee1275.rmk: Likewise.
14455
14456 * util/grub-emu.c (main): Fix unchecked pointer handling.
14457
2c2a681b 144582007-07-02 Robert Millan <rmh@aybabtu.com>
14459
14460 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
14461 invocation to fail, in order to support partition-less media.
14462
14463 * util/i386/pc/grub-install.in: Likewise.
14464
14465 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
14466 which fs or partmap modules are needed (akin to its sister scripts).
14467
14468 Also use grub-probe to get rid of unportable /proc/mounts check.
14469
14470 Print the same informational message that the other scripts do, before
fe6b695a 14471 exiting.
2c2a681b 14472
6193defe 144732007-06-23 Robert Millan <rmh@aybabtu.com>
14474
fe6b695a 14475 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 14476 a font file can be found and, if so, echo the GRUB path to it.
14477
14478 * util/update-grub.in: Handle multiple terminals depending on user
14479 input, platform availability and font file presence. Propagate
14480 variables of our findings to /etc/grub.d/ children.
14481
14482 * util/grub.d/00_header.in: Handle multiple terminals, based on
14483 environment setup by update-grub.
14484
eface1dc 144852007-06-23 Robert Millan <rmh@aybabtu.com>
14486
ba50d28f 14487 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 14488
bf697e28 144892007-06-21 Robert Millan <rmh@aybabtu.com>
14490
14491 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
14492 indicate end of data section in kernel image.
14493 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
14494 GRUB_KERNEL_MACHINE_DATA_END.
14495
14496 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
14497 space for it.
14498 * kern/i386/efi/startup.S: Likewise.
14499
14500 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
14501 during image generation. Implement --prefix option to override this
14502 patch.
14503 * util/i386/efi/grub-mkimage.c: Likewise.
14504
14505 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
14506 code to make path relative to its root into a separate function.
14507
14508 * util/i386/pc/grub-install.in: Use newly provided
14509 make_system_path_relative_to_its_root() to convert ${grubdir}, then
14510 pass the result to grub-install --prefix.
14511
baa574b4 145122007-06-13 Robert Millan <rmh@aybabtu.com>
14513
14514 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
14515 DEFAULT_DEVICE_MAP.
14516 * util/grub-emu.c: Use above definitions from misc.h instead of
14517 defining them.
14518 * util/grub-mkdevicemap.c: Likewise.
14519 * util/i386/pc/grub-setup.c: Likewise.
14520 * util/grub-probe.c: Likewise.
14521 (probe): Abort with grub_util_error() when either
14522 grub_guess_root_device or grub_util_get_grub_dev fails.
14523
0215dcbf 145242007-06-12 Robert Millan <rmh@aybabtu.com>
14525
14526 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
14527 "pager" assignment.
14528 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
14529 "pcdata".
14530 * util/grub-probe.c (probe): Likewise for "drive_name".
14531
8af2ab7b 145322007-06-11 Robert Millan <rmh@aybabtu.com>
14533
14534 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
14535 not just the cdrom one.
14536
59d31694 145372007-06-11 Robert Millan <rmh@aybabtu.com>
14538
14539 * util/i386/pc/grub-mkrescue.in: Add "set -e".
14540 Add --pkglibdir=DIR option to override pkglibdir.
14541 Mention --image-type=TYPE in help output.
14542 Fix --grub-mkimage (it was a no-op).
fe6b695a 14543 Abort gracefully when no parameter is given.
59d31694 14544
7ee367e4 145452007-06-11 Robert Millan <rmh@aybabtu.com>
14546
14547 * util/i386/pc/grub-mkrescue.in: New file.
14548 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
14549 * Makefile.in: Handle bin_SCRIPTS.
14550
29b0ed46 145512007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
14552
14553 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
14554 list of video modes.
14555
c0f90770 145562007-06-06 Robert Millan <rmh@aybabtu.com>
14557
14558 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
14559 file doesn't exist, or if it is in a filesystem grub can't read.
14560
14561 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
14562 not abort if GRUB_DRIVE could not be defined. Rearrange generated
14563 header comment to fit in 80 columns when the variables are resolved.
14564
14565 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
14566 could be identified by update-grub. Remove redundant check for
fe6b695a 14567 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 14568 handles that).
14569
fb36dc26 145702007-06-04 Robert Millan <rmh@aybabtu.com>
14571
14572 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
14573
14574 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
14575
14576 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
14577
0c68c93e 145782007-06-04 Robert Millan <rmh@aybabtu.com>
14579
14580 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
14581
14582 * include/grub/partition.h: Declare grub_apple_partition_map_init and
14583 grub_apple_partition_map_fini.
14584
14585 * util/biosdisk.c
14586 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
14587 to access >2 TiB disks).
14588
14589 Print disk->total_sectors with %llu instead of %lu, since this
14590 variable is always 64-bit (prevents wrong disk size from being displayed
14591 on either >2 TiB disk or big-endian CPU).
14592
14593 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
14594 into a generic case that supports all (sane) partition maps.
14595
14596 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
14597 breaks big-endian.
14598
14599 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
14600 and grub_apple_partition_map_fini() after that.
14601
0f23eb74 146022007-06-01 Robert Millan <rmh@aybabtu.com>
14603
14604 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
14605
14606 * util/grub.d/00_header.in: Only enable gfxterm when
14607 convert_system_path_to_grub_path() succeeds.
14608
42c71976 146092007-05-20 Robert Millan <rmh@aybabtu.com>
14610
14611 * util/update-grub_lib.in: New file.
14612 * DISTLIST: Add update-grub_lib.in.
14613 * conf/common.rmk: Generate update-grub_lib and install it in
14614 $(lib_DATA).
14615 * Makefile.in: Add install routine for $(lib_DATA).
14616
14617 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
14618 function provided by update-grub_lib to support arbitrary paths of
14619 unifont.pff.
14620 * util/update-grub.in: Use convert_system_path_to_grub_path() to
14621 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
14622
5beb2291 146232007-05-19 Robert Millan <rmh@aybabtu.com>
14624
14625 * commands/i386/cpuid.c: New module.
14626 * DISTLIST: Add it.
14627 * conf/i386-efi.rmk: Enable cpuid.mod.
14628 * conf/i386-pc.rmk: Likewise.
14629
7262eca1 146302007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14631
14632 * kern/disk.c (grub_disk_read): Check return value of
14633 grub_realloc().
14634
260ba823 146352007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
14636
14637 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
14638 arrays.
14639 * disk/raid.c (grub_raid_open): Likewise.
14640
1ecb6cf2 146412007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14642
14643 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
14644 stack instead of on the heap.
14645
14646 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
14647 before doing a read on it.
14648
14649 * configure.ac: Only use -fno-stack-protector for the target
14650 environment.
f19dbdb7 14651
21c8cbb1 146522007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
14653
14654 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
14655 __attribute_ ((unused)) to mode_type argument.
14656
14657 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 14658
21c8cbb1 14659 * kern/misc.c (memcmp): Fix prototype.
14660
14661 * include/grub/partition.h [GRUB_UTIL]
14662 (grub_gpt_partition_map_init): Add prototype.
14663 (grub_gpt_partition_map_fini): Likewise.
14664
14665 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
14666 at the right place.
14667
14668 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
14669 (grub_fat_read_data): Likewise.
14670 (grub_fat_find_dir): Likewise.
14671
14672 * font/manager.c (find_glyph): Make table a const.
14673 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 14674
849d55d3 146752007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
14676
14677 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
14678 code, first search for device in /dev/mapper, then in /dev.
14679 (grub_util_get_grub_dev): New function.
14680 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
14681 prototype.
14682 * util/grub-probe.c (probe): Remove check for RAID, call
14683 grub_util_get_grub_dev() instead of
14684 grub_util_biosdisk_get_grub_dev().
14685 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
14686 grub_util_biosdisk_get_grub_dev().
14687 * util/i386/pc/grub-setup.c (main): Likewise.
14688
8fff7c2f 146892007-05-16 Robert Millan <rmh@aybabtu.com>
14690
14691 * DISTLIST: Update for the latest changes.
14692 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
14693 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
14694 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
14695 grub/util/biosdisk.h.
14696 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
14697 grub/util/biosdisk.h.
14698
48e12b52 146992007-05-16 Robert Millan <rmh@aybabtu.com>
14700
14701 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
14702
46b9d128 147032007-05-16 Robert Millan <rmh@aybabtu.com>
14704
14705 * util/i386/efi/grub-install.in: New.
14706 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
14707 newly added grub-install.
14708 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
14709 include.
14710 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
14711 grub/util/biosdisk.h.
14712 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
14713 grub/util/biosdisk.h.
14714
2d1a40a9 147152007-05-16 Robert Millan <rmh@aybabtu.com>
14716
14717 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
14718 * include/grub/util/biosdisk.h: ... here.
14719 * util/i386/pc/biosdisk.c: Moved to ...
14720 * util/biosdisk.c: ... here.
14721 * util/i386/pc/getroot.c: Moved to ...
14722 * util/getroot.c: ... here.
14723 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
14724 * util/grub-mkdevicemap.c: ... here.
14725 * util/i386/pc/grub-probe.c: Moved to ...
14726 * util/grub-probe.c: ... here.
14727
9e26e3bc 147282007-05-15 Robert Millan <rmh@aybabtu.com>
14729
14730 * util/update-grub.in: Remove duplicated line in grub.cfg header
14731 message.
14732
57f96397 147332007-05-13 Robert Millan <rmh@aybabtu.com>
14734
14735 * util/update-grub.in: Fix a few assumptions about the devices holding
14736 /, /boot and /boot/grub being the same.
14737 * util/grub.d/00_header.in: Likewise.
14738 * util/grub.d/10_hurd.in: Likewise.
14739 * util/grub.d/10_linux.in: Likewise.
14740
14741 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
14742 patterns. Use that to define the `.old' suffix as older than `'.
14743
14744 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
14745
14746 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
14747 the grub.cfg header message.
14748
2e610d62 147492007-05-11 Robert Millan <rmh@aybabtu.com>
14750
14751 * util/update-grub.in: Create device.map if it doesn't already exist,
14752 before attempting to run grub-probe.
14753 Check for grub-probe and grub-mkdevicemap with the same code
14754 grub-install is using.
14755 Remove test mode.
14756
3f6a10ef 147572007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
14758
14759 * Makefile.in: Add the datarootdir autoconf variable.
14760
02e7b75e 147612007-05-09 Robert Millan <rmh@aybabtu.com>
14762
14763 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 14764 fail gracefully if dev->disk->partition == NULL.
02e7b75e 14765
75f396cc 147662007-05-07 Robert Millan <rmh@aybabtu.com>
14767
14768 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
14769 determine partition map module.
14770 * util/i386/pc/grub-install.in: Use this feature to decide which
14771 partition module to load, instead of hardcoding pc and gpt.
14772
da65cb36 147732007-05-07 Robert Millan <rmh@aybabtu.com>
14774
14775 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
14776 source directory differs from build directory.
14777
b57d6a91 147782007-05-05 Robert Millan <rmh@aybabtu.com>
14779
14780 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
14781 initialisation.
14782
509d00f1 147832007-05-05 Robert Millan <rmh@aybabtu.com>
14784
14785 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
14786
c48f23ef 147872007-05-05 Robert Millan <rmh@aybabtu.com>
14788
14789 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
14790 command-line arguments via ${GRUB_CMDLINE_LINUX}.
14791
20b97658 147922007-05-05 Robert Millan <rmh@aybabtu.com>
14793
14794 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
14795 (grub_probe_SOURCES): Likewise.
14796 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
14797 GPT and initialize dos_part and bsd_part accordingly.
14798 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
14799 install_bsd_part.
14800 (main): Activate gpt module for use during partition identification,
14801 and deactivate it afterwards.
14802 * util/i386/pc/grub-install.in: Add gpt module to core.img.
14803 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
14804 partition identification, and deactivate it afterwards.
14805
99123174 148062007-05-05 Robert Millan <rmh@aybabtu.com>
14807
14808 * term/i386/pc/console.c (grub_console_fini): Call
14809 grub_term_set_current() before grub_term_unregister().
14810
ebd97f6e 148112007-05-04 Robert Millan <rmh@aybabtu.com>
14812
14813 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
14814 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
14815 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
14816 and update-grub_DATA.
14817 * conf/common.rmk: Build and install update-grub components.
14818 * conf/common.mk: Regenerate.
14819 * util/update-grub.in: New. Core of update-grub.
14820 * util/grub.d/00_header.in: New. Generates grub.cfg header.
14821 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
14822 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
14823 * util/grub.d/README: New. Document grub.d directory layout.
14824
b06a264d 148252007-05-01 Robert Millan <rmh@aybabtu.com>
14826
14827 * util/grub-emu.c: Move initialization functions
14828 grub_util_biosdisk_init() and grub_init_all() before
14829 grub_util_biosdisk_get_grub_dev(), which relies on them.
14830
41f0050e 148312007-04-19 Robert Millan <rmh@aybabtu.com>
14832
14833 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
14834 it is used later.
14835
04582bb3 148362007-04-18 Jerone Young <jerone@gmail.com>
14837
f19dbdb7 14838 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 14839 stanza.
14840
08db4632 148412007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 14842
08db4632 14843 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
14844 continue on and look for device node with real device name.
14845
801b76be 148462007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 14847
fe6b695a 14848 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 14849 ability.
14850 * Makefile.in: Add autoconf package transformation code.
14851 * util/i386/pc/grub-install.in: Likewise.
14852 * util/powerpc/ieee1275/grub-install.in: Likewise.
14853
6795c4e1 148542007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
14855
14856 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
14857 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
14858 (EXT2_REVISION): Likewise.
14859 (EXT2_INODE_SIZE): Likewise.
14860 (struct grub_ext2_block_group): Added a missing member
14861 "used_dirs".
14862 (grub_ext2_read_inode): Divide by the inode size in a superblock
14863 instead of 128 to obtain INODES_PER_BLOCK.
14864 Use the macro EXT2_INODE_SIZE instead of directly using
14865 SBLOCK->INODE_SIZE.
14866
d70af616 148672007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
14868
14869 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
14870 superblock instead of the structure size to compute an
14871 offset. This fixes the problem that GRUB could not read a
14872 filesystem when inode size is different from 128-byte.
14873
3b801603 148742007-03-05 Marco Gerards <marco@gnu.org>
14875
14876 * normal/main.c (read_config_file): When "menu" is not set, create
14877 an initial context.
14878
4785bfe4 148792007-02-21 Hollis Blanchard <hollis@penguinppc.org>
14880
14881 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
14882 (HEAP_LIMIT): New macro.
14883 (grub_claim_heap): Claim memory up to `heaplimit'.
14884
a0cbb023 148852007-02-21 Hollis Blanchard <hollis@penguinppc.org>
14886
14887 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
14888 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
14889 (_start): Likewise.
14890 (grub_arch_modules_addr): Return address after `_end'.
14891 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
14892 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
14893 (add_segments): Calculate `_end' from phdr size and location.
14894 (ALIGN_UP): Moved to ...
14895 * include/grub/misc.h: here.
14896 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
14897 New macro.
14898 (GRUB_IEEE1275_MODULE_BASE): Removed.
14899
fd7d8eba 149002007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14901
14902 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
14903 loop boundary.
14904
9b09e6fc 149052007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14906
14907 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
14908 All users updated.
14909 (grub_elf64_load_hook_t): Likewise.
14910 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
14911 debug output.
14912
3ce27299 149132007-02-20 Hollis Blanchard <hollis@penguinppc.org>
14914
14915 * kern/mm.c: Update copyright.
14916 (grub_mm_debug): Correct syntax error.
14917 (grub_mm_dump_free): New function.
14918 (grub_debug_free): Call `grub_free'.
14919 * include/grub/mm.h: Update copyright.
14920 (grub_mm_dump_free): Add declaration.
14921
077d5fee 149222007-02-12 Hollis Blanchard <hollis@penguinppc.org>
14923
14924 * include/grub/ieee1275/ieee1275.h: Update copyright.
14925 * kern/powerpc/ieee1275/init.c: Likewise.
14926 * kern/powerpc/ieee1275/openfw.c: Likewise.
14927
14928 * loader/powerpc/ieee1275/linux.c: Likewise.
14929 * include/grub/elfload.h: Likewise.
14930 * kern/elf.c: Likewise.
14931 (grub_elf32_load): Pass `base' and `size' parameters. Update all
14932 callers.
14933 (grub_elf64_load): Likewise.
14934 (grub_elf32_load_segment): Move to a nested function.
14935 (grub_elf64_load_segment): Likewise.
14936
dc946850 149372007-02-12 Hollis Blanchard <hollis@penguinppc.org>
14938
14939 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
14940 prototype.
14941 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
14942 (grub_heap_len): Likewise.
14943 (HEAP_SIZE): New macro.
14944 (grub_claim_heap): New function.
14945 (grub_machine_init): Don't claim heap directly. Call
14946 `grub_claim_heap'.
14947 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
14948 (grub_available_iterate): New function.
14949
baa2a121 149502007-02-03 Thomas Schwinge <tschwinge@gnu.org>
14951
14952 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
14953 * configure.ac: Use it for testing the HOST and TARGET compilers.
14954
4fe9862e 149552006-12-13 Thomas Schwinge <tschwinge@gnu.org>
14956
14957 * Makefile.in (enable_grub_emu): New variable.
14958 * configure.ac (--enable-grub-emu): New option.
14959 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
14960 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
14961 * conf/i386-pc.rmk: Likewise.
14962 * conf/powerpc-ieee1275.rmk: Likewise.
14963 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
14964
a8aa5762 149652006-12-12 Marco Gerards <marco@gnu.org>
14966
14967 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
14968
14969 * kern/env.c (grub_env_unset): Don't free the member `value' when
14970 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
14971 pointer.
14972
14973 * normal/main.c (current_menu): Removed.
14974 (free_menu): Unset the `menu' environment variable.
14975 (grub_normal_menu_addentry): Make use of the environment variable
14976 `menu', instead of using the global `current_menu'. Allocate
14977 memory for the sourcecode of this entry.
14978 (read_config_file): New argument `nested', changed all callers.
14979 Only in the case of a new context, initialize a new menu. Set the
14980 `menu' environment variable.
14981 (grub_normal_execute): Don't set and unset the environment
14982 variable `menu' here anymore. Only free the menu when leaving the
14983 context.
14984
14985 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
14986 leak.
14987
957b3a3e 149882006-12-11 Marco Gerards <marco@gnu.org>
14989
14990 * normal/menu_entry.c (run): Fix off by one bug so the last line
14991 is executed. Move the loader check to outside the loop.
14992
ef875714 149932006-12-08 Hollis Blanchard <hollis@penguinppc.org>
14994
14995 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
14996
4e739985 149972006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
14998
14999 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
15000 the number of sectors. Reported by Andrey Shuvikov
15001 <mr_hyro@yahoo.com>.
f19dbdb7 15002
790707f2 150032006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
15004
15005 * kern/disk.c (grub_disk_read): When there is a read error, always
15006 try to read only the necessary data.
f19dbdb7 15007
790707f2 15008 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
15009 disk/raid.c.
15010 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
15011 prototype.
15012 [GRUB_UTIL] (grub_raid_fini): Likewise.
15013 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 15014 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 15015 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
15016 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
15017 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
15018 and grub_raid_fini().
f19dbdb7 15019
03e58196 150202006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
15021
15022 * include/grub/types.h (__unused): Rename to UNUSED.
15023 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
15024 (grub_elf64_size): Likewise.
f19dbdb7 15025
ae4f23bf 150262006-11-03 Hollis Blanchard <hollis@penguinppc.org>
15027
15028 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
15029 grub_error_push and grub_error_pop in the error-handling path.
15030 (grub_elf32_load_segment): Only call grub_file_read with non-zero
15031 length.
15032
2166cc83 150332006-11-03 Hollis Blanchard <hollis@penguinppc.org>
15034
15035 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
15036 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15038 (kernel_elf_SOURCES): Likewise.
15039 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
15040 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
15041 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
15042 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
15043 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
15044 (elf_mod_SOURCES): New variable.
15045 (elf_mod_CFLAGS): Likewise.
15046 (elf_mod_LDFLAGS): Likewise.
15047 * include/grub/types.h (__unused): New macro.
15048 * include/grub/elfload.h: New file.
15049 * kern/elf.c: Likewise.
15050 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
15051 (ELF32_LOADMASK): New macro.
15052 (ELF64_LOADMASK): Likewise.
15053 (vmlinux): Removed.
15054 (grub_linux_load32): New function.
15055 (grub_linux_load64): Likewise.
15056 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
15057 Use grub_elf_t instead of grub_file_t.
15058
a09d5aa5 150592006-11-02 Hollis Blanchard <hollis@penguinppc.org>
15060
15061 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
15062 `catch_result' to struct set_color_args.
15063
d976fc51 150642006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
15065
15066 * normal/menu.c: Include grub/script.h.
15067 * normal/menu_entry.c: Likewise.
15068 * include/grub/normal.h: Do not include grub/script.h.
15069
67507549 150702006-10-27 Hollis Blanchard <hollis@penguinppc.org>
15071
15072 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
15073
69203a99 150742006-10-27 Hollis Blanchard <hollis@penguinppc.org>
15075
15076 * kern/disk.c (grub_disk_open): Print debug messages when opening a
15077 disk.
15078 (grub_disk_close): Print debug messages when closing a disk.
15079 (grub_disk_read): Print debug messages when disk read fails.
15080 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
15081 filesystem type.
15082 * kern/partition.c: Include misc.h.
15083 (grub_partition_iterate): Print debug messages when detecting
15084 partition type.
15085
e2b8278c 150862006-10-27 Hollis Blanchard <hollis@penguinppc.org>
15087
15088 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
15089 is negative.
15090 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
15091
97b2f2ff 150922006-10-26 Hollis Blanchard <hollis@penguinppc.org>
15093
15094 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15095 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
15096
6555d655 150972006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
15098
15099 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
15100 instead of sizeof(lv). Patch by Michael Guntsche.
15101
4d42b77f 151022006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
15103
15104 * disk/lvm.c: Rename VGS to VG_LIST.
15105 (grub_lvm_iterate): Change VGS->LV to VG-LV.
15106 (grub_lvm_open): Likewise.
15107 Thanks to Michael Guntsche for finding this bug.
15108
5d74d927 151092006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
15110
15111 * configure.ac (AC_INIT): Bumped to 1.95.
15112
a1bb27e4 151132006-10-14 Robert Millan <rmh@aybabtu.com>
15114
15115 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
15116 with "/dev/.static/dev/md".
15117
e0994b8b 151182006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
15119
15120 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
15121 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
15122 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
15123 DRIVE_NAME are always freed.
15124
15125 * util/i386/pc/biosdisk.c (make_device_name): Add one into
15126 DOS_PART, as a DOS partition is counted from one instead of zero
15127 now. Reported by Robert Millan.
15128
ddd5cee9 151292006-10-14 Robert Millan <rmh@aybabtu.com>
15130
15131 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
15132 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
15133 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
15134 string returned by grub_guess_root_device.
15135 * util/i386/pc/grub-setup.c: Likewise.
15136 * util/i386/pc/grub-probefs.c: Likewise.
15137
15138 * util/i386/pc/grub-probefs.c: Rename to ...
15139 * util/i386/pc/grub-probe.c: ... this.
15140 * DISTLIST: Remove grub-probefs, add grub-probe.
15141 * conf/i386-efi.rmk: Likewise.
15142 * conf/i386-pc.rmk: Likewise.
15143 * util/i386/pc/grub-install.in: Likewise.
15144
15145 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
15146 choose which information we want to print.
15147
2b002173 151482006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
15149
15150 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
15151 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
15152 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
15153 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
15154 video/readers/tga.c and video/i386/pc/vbeutil.c.
15155
151562006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
15157
15158 Added support for RAID and LVM.
f19dbdb7 15159
2b002173 15160 * disk/lvm.c: New file.
15161 * disk/raid.c: Likewise.
15162 * include/grub/lvm.h: Likewise.
f19dbdb7 15163 * include/grub/raid.h: Likewise.
2b002173 15164 * include/grub/util/lvm.h: Likewise.
15165 * include/grub/util/raid.h: Likewise.
15166 * util/lvm.c: Likewise.
15167 * util/raid.c: Likewise.
15168
15169 * include/grub/disk.h (grub_disk_dev_id): Add
15170 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
15171 (grub_disk_get_size): New prototype.
15172 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
15173 returns a partition.
15174 (grub_disk_get_size): New function.
f19dbdb7 15175
2b002173 15176 * kern/i386/pc/init.c (make_install_device): Copy the prefix
15177 verbatim if grub_install_dos_part is -2.
15178
15179 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
15180 and LVM devices.
15181
15182 * util/i386/pc/grub-setup.c (setup): New argument
15183 MUST_EMBED. Force embedding of GRUB when the argument is
15184 true. Close FILE before returning.
15185 (main): Add support for RAID and LVM.
f19dbdb7 15186
2b002173 15187 * conf/common.rmk: Add RAID and LVM modules.
15188 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
15189 util/lvm.c.
15190 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
15191
15192 * kern/misc.c (grub_strstr): New function.
15193 * include/grub/misc.h (grub_strstr): New prototype.
15194
050548d0 151952006-10-10 Tristan Gingold <tristan.gingold@bull.net>
15196
15197 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
15198
da849d2d 151992006-10-05 Tristan Gingold <tristan.gingold@bull.net>
15200
15201 * kern/misc.c (grub_strtoull): Guess the base only if not
15202 specified.
15203
97b2f2ff 152042006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 15205
15206 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
15207 PowerMac support.
15208
97b2f2ff 152092006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 15210
15211 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
15212
15213 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
15214 Remove `flags' argument. All callers changed.
15215 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
15216 (IEEE1275_IHANDLE_INVALID): New variable.
15217 (IEEE1275_CELL_INVALID): New variable.
15218 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
15219 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
15220 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
15221 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
15222 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
15223 codes from Open Firmware. All callers updated.
15224 (grub_ieee1275_next_property): Directly return Open Firmware return
15225 code.
15226 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
15227 Standardize error checking from `grub_ieee1275_get_property'.
15228 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
15229 `devalias' to `aliases'. Correct comments. Consolidate error paths.
15230
97b2f2ff 152312006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 15232
15233 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
15234 `instance_to_package_args' to `instance_to_path_args'.
15235
15236 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
15237 `grub_ieee1275_chosen'.
15238
15239 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
15240 `grub_ieee1275_interpret'.
15241
97b2f2ff 152422006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 15243
15244 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
15245
97b2f2ff 152462006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 15247
15248 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
15249 (__cmpdi): Likewise.
15250
15251 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
15252 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
15253 `grub_ssize_t'.
15254
02bb8acc 15255 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 15256
15257 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
15258 to type `grub_ssize_t'.
15259 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
15260
7f9a8531 152612006-09-22 Marco Gerards <marco@gnu.org>
15262
15263 * normal/script.c (grub_script_create_cmdmenu): Skip leading
15264 newlines.
15265
b5ef1102 152662006-09-22 Marco Gerards <marco@gnu.org>
15267
15268 * commands/echo.c: New file.
15269
15270 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
15271
15272 * conf/common.rmk (echo_mod_SOURCES): New variable.
15273 (echo_mod_CFLAGS): Likewise.
15274 (echo_mod_LDFLAGS): Likewise.
15275
2cff3677 152762006-09-22 Marco Gerards <marco@gnu.org>
15277
15278 * normal/main.c (get_line): Malloc memory instead of using
15279 preallocated memory. Removed the arguments `cmdline' and
15280 `max_len'. Updated all callers.
15281
6ba4688b 152822006-09-22 Marco Gerards <marco@gnu.org>
15283
15284 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
15285 (normal_mod_DEPENDENCIES): Likewise.
15286
15287 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
15288 (normal_mod_DEPENDENCIES): Likewise.
15289
15290 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
15291
e02ac02c 152922006-09-22 Johan Rydberg <jrydberg@gnu.org>
15293
15294 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
15295 programs.
15296 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
15297 (normal_mod_DEPENDENCIES): Likewise.
15298 * conf/i386-pc.mk: Regenerate.
15299 * conf/i386-efi.mk: Likewise
15300 * conf/common.mk: Likewise.
15301 * conf/powerpc-ieee1275.mk: Likewise.
15302 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 15303
8d252e44 153042006-09-22 Robert Millan <rmh@aybabtu.com>
15305
15306 Sync with i386 version.
15307 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
15308 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
15309
209bf7ac 153102006-09-21 Robert Millan <rmh@aybabtu.com>
15311
15312 Import from GRUB Legacy (lib/device.c):
15313 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
15314 (init_device_map) [__linux__]: Add support for I2O devices.
15315
6b146090 153162006-09-14 Marco Gerards <marco@gnu.org>
15317
15318 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
15319 `-melf_i386'.
15320
e38600a8 153212006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 15322
15323 * util/i386/pc/grub-install.in: Skip menu.lst when removing
15324 /boot/grub/*.lst.
78fa1790 15325
2952da5d 15326 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 15327
2952da5d 15328 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
15329 before adding it to device.map.
15330
01b82a64 153312006-08-15 Johan Rydberg <jrydberg@gnu.org>
15332
fe6b695a 15333 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 15334 compiles a file; using the -MD option.
15335 * conf/common.mk: Regenerate.
15336 * conf/i386-pc.mk: Likewise.
15337 * conf/i386-efi.mk: Likewise.
15338 * conf/powerpc-ieee1275.mk: Likewise.
15339 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 15340
1064790d 153412006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
15342
15343 Move the prototypes of grub_setjmp and grub_longjmp to
15344 cpu/setjmp.h, so that each architecture may specify different
15345 attributes.
f19dbdb7 15346
1064790d 15347 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
15348 (grub_longjmp): Likewise.
15349 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
15350 (grub_longjmp): Likewise.
15351 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
15352 (grub_longjmp): Likewise.
15353
15354 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
15355 [!GRUB_UTIL] (grub_longjmp): Removed.
15356
29dda3ed 153572006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
15358
15359 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
15360 "color!" method does not return any value.
15361
ad2a06ed 153622006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15363
15364 * include/grub/bitmap.h: New file.
15365
15366 * include/grub/i386/pc/vbeutil.h: Likewise.
15367
15368 * video/bitmap.c: Likewise.
15369
15370 * video/readers/tga.c: Likewise.
15371
15372 * video/i386/pc/vbeutil.c: Likewise.
15373
15374 * commands/videotest.c: Code cleanup and updated to reflect to new
15375 video API.
15376
15377 * term/gfxterm.c: Likewise.
15378
15379 * video/video.c: Likewise.
15380
15381 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
15382 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
15383 (bitmap_mod_SOURCES): New entry.
15384 (bitmap_mod_CFLAGS): Likewise.
15385 (bitmap_mod_LDFLAGS): Likewise.
15386 (tga_mod_SOURCES): Likewise.
15387 (tga_mod_CFLAGS): Likewise.
15388 (tga_mod_LDFLAGS): Likewise.
15389
15390 * include/grub/video.h (grub_video_blit_operators): New enum type.
15391 (grub_video_render_target): Changed as forward declaration and moved
15392 actual definition to be video driver specific.
15393 (grub_video_adapter.blit_bitmap): Added blitting operator.
15394 (grub_video_adapter.blit_render_target): Likewise.
15395 (grub_video_blit_bitmap): Likewise.
15396 (grub_video_blit_render_target): Likewise.
15397
15398 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
15399 driver specific render target definition.
15400 (grub_video_vbe_map_rgba): Added driver internal helper.
15401 (grub_video_vbe_unmap_color): Updated to use
15402 grub_video_i386_vbeblit_info.
15403 (grub_video_vbe_get_video_ptr): Likewise.
15404
15405 * include/grub/i386/pc/vbeblit.h
15406 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
15407 grub_video_i386_vbeblit_info.
15408 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
15409 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
15410 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
15411 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
15412 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
15413 (grub_video_i386_vbeblit_index_index): Likewise.
15414 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
15415 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
15416 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
15417 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
15418 operator.
15419 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
15420 operator.
15421
15422 * video/i386/pc/vbeblit.c: Updated to reflect changes on
15423 include/grub/i386/pc/vbeblit.h.
15424
15425 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
15426 Updated to use grub_video_i386_vbeblit_info.
15427 (grub_video_i386_vbefill_R8G8B8): Likewise.
15428 (grub_video_i386_vbefill_index): Likewise.
15429 (grub_video_i386_vbefill): Added generic filler.
15430
15431 * video/i386/pc/vbefill.c: Updated to reflect changes on
15432 include/grub/i386/pc/vbefill.h.
15433
15434 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
15435 grub_video_i386_vbeblit_info.
15436 (grub_video_vbe_unmap_color): Likewise.
15437 (grub_video_vbe_blit_glyph): Likewise.
15438 (grub_video_vbe_scroll): Likewise.
15439 (grub_video_vbe_draw_pixel): Removed function.
15440 (grub_video_vbe_get_pixel): Likewise.
15441 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
15442 updated code to use it.
15443 (common_blitter): Added common blitter for render target and bitmap.
15444 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
15445 (grub_video_vbe_blit_render_target): Likewise.
15446
bc8c036d 154472006-07-30 Johan Rydberg <jrydberg@gnu.org>
15448
15449 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
15450 is in text mode if there is no console control protocol instance
15451 available.
15452
684a8eff 154532006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15454
15455 * include/grub/video.h: Code cleanup.
15456
15457 * include/grub/i386/pc/vbe.h: Likewise.
15458
15459 * video/i386/pc/vbe.c: Likewise.
15460
15461 * video/i386/pc/vbeblit.c: Likewise.
15462
15463 * video/i386/pc/vbefill.c: Likewise.
15464
15465 * video/video.c: Likewise. Also added more comments.
15466
5915059b 154672006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
15468
15469 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
15470 (struct grub_biosdisk_dap): Likewise.
15471
15472 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
15473 linkage settings for all functions.
15474
90ce5d56 154752006-07-12 Marco Gerards <marco@gnu.org>
15476
15477 * configure.ac (--enable-mm-debug): Fix typo.
15478
15479 * genkernsyms.sh.in: Use proper quoting for `CC'.
15480
43e7f879 154812006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
15482
15483 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
15484 (normal_mod_ASFLAGS): Remove "-m32".
15485
4889bdec 154862006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
15487
15488 * util/misc.c: Include config.h.
15489 [!HAVE_MEMALIGN]: Do not include malloc.h.
15490 (grub_memalign): Use posix_memalign, if present. Then, use
15491 memalign, if present. Otherwise, emit an error.
15492
15493 * util/grub-emu.c: Do not include malloc.h.
15494
15495 * include/grub/util/misc.h: Include unistd.h. This is required for
15496 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
15497 D. Eades III <hde@foobar-qux.org>.
15498
15499 * configure.ac (AC_GNU_SOURCE): Added.
15500 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
15501 type.
15502
fd39d4da 155032006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
15504
15505 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
15506 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
15507
b786f3b5 155082006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
15509
15510 * include/grub/types.h (grub_host_addr_t): Rename to
15511 grub_target_addr_t.
15512 (grub_host_off_t): Rename to grub_target_off_t.
15513 (grub_host_size_t): Rename to grub_target_size_t.
15514 (grub_host_ssize_t): Rename to grub_target_ssize_t.
15515 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
15516
15517 * include/grub/kernel.h (struct grub_module_header): Change type
15518 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
15519 (grub_module_info): Likewise.
f19dbdb7 15520
051988bb 155212006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15522
15523 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
15524 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
15525 Velazquez <jesus.velazquez@gmail.com>.
15526
deae281b 155272006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
15528
15529 Count partitions from 1 instead of 0 in the string representation
15530 of partitions. Still use 0-based internally.
f19dbdb7 15531
deae281b 15532 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
15533 (sun_partition_map_iterate): Use grub_partition_t instead of
15534 struct grub_partition *. Cast DESC->START_CYLINDER to
15535 grub_uint64_t after converting the endian.
15536 (sun_partition_map_probe): Subtract 1 for PARTNUM.
15537 (sun_partition_map_get_name): Add 1 to P->INDEX.
15538
15539 * partmap/pc.c (grub_partition_parse): Subtract 1 for
15540 PCDATA->DOS_PART.
15541 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
15542
15543 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
15544 zero instead of one.
15545 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
15546 (gpt_partition_map_get_name): Add 1 into P->INDEX.
15547
15548 * partmap/apple.c (apple_partition_map_iterate): Change the type
15549 of POS to unsigned.
15550 (apple_partition_map_probe): Subtract 1 for PARTNUM.
15551 (apple_partition_map_get_name): Add 1 into P->INDEX.
15552
15553 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
15554 of POS to unsigned.
15555 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
15556 calculate the offset of a partition.
15557 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
15558 (amiga_partition_map_get_name): Add 1 into P->INDEX.
15559
15560 * partmap/acorn.c (acorn_partition_map_find): Change the type of
15561 SECTOR to grub_disk_addr_t.
15562 (acorn_partition_map_iterate): Likewise.
15563 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
15564 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
15565 top.
15566 (acorn_partition_map_get_name): Add 1 into P->INDEX.
15567
15568 * kern/i386/pc/init.c (make_install_device): Add 1 into
15569 GRUB_INSTALL_DOS_PART.
15570
15571 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
15572 conditional.
15573
524a1e6a 155742006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15575
15576 Clean up the code to support 64-bit addressing in disks and
15577 files. This change is not enough for filesystems yet.
f19dbdb7 15578
524a1e6a 15579 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
15580 type of "start" to grub_uint64_t.
15581 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
15582 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
15583 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
15584 convert addresses.
15585
15586 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
15587 to grub_disk_addr_t.
15588
15589 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
15590 string.
15591
15592 * partmap/pc.c (pc_partition_map_iterate): Likewise.
15593
15594 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
15595 to char *.
15596
15597 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
15598
15599 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
15600
15601 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
15602
15603 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
15604 to grub_off_t, to detect an error from grub_file_seek.
15605 (grub_multiboot_load_elf32): Likewise.
15606
15607 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
15608 maximum unsigned long value when an overflow is detected.
15609 (grub_strtoull): New function.
15610 (grub_divmod64): Likewise.
15611 (grub_lltoa): use grub_divmod64.
15612
15613 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
15614 grub_disk_addr_t.
15615 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
15616 the pointer to next character. Use grub_strtoull instead of
15617 grub_strtoul.
15618 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
15619 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
15620 respectively.
15621
fe6b695a 15622 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 15623 return value is signed.
15624 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
15625 test if OFFSET is less than zero, as OFFSET is unsigned now.
15626
15627 * kern/disk.c (struct grub_disk_cache): Change the type of
15628 "sector" to grub_disk_addr_t.
15629 (grub_disk_cache_get_index): Change the type of SECTOR to
15630 grub_disk_addr_t. Calculate the hash with SECTOR casted to
15631 unsigned after shifting.
15632 (grub_disk_cache_invalidate): Change the type of SECTOR to
15633 grub_disk_addr_t.
15634 (grub_disk_cache_unlock): Likewise.
15635 (grub_disk_cache_store): Likewise.
15636 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
15637 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
15638 grub_disk_addr_t and grub_uint64_t, respectively.
15639 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
15640 body, as the value of OFFSET is tweaked by
15641 grub_disk_check_range. Change the types of START_SECTOR, LEN and
15642 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
15643 respectively.
15644 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
15645 body, as the value of OFFSET is tweaked by
15646 grub_disk_check_range. Change the types of LEN and N to
15647 grub_size_t.
15648
15649 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
15650 and "saved_offset" to grub_off_t.
15651 (test_header): Cast BUF to char *.
15652 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
15653 to char *.
15654 (grub_gzio_read): Change the types of OFFSET and SIZE to
15655 grub_off_t and grub_size_t, respectively.
15656
15657 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
15658 Removed.
15659 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
15660 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
15661 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
15662 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
15663 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
15664
15665 * include/grub/types.h (grub_off_t): Unconditionally set to
15666 grub_uint64_t.
15667 (grub_disk_addr_t): Changed to grub_uint64_t.
15668
15669 * include/grub/partition.h (struct grub_partition): Change the
15670 types of "start", "len" and "offset" to grub_disk_addr_t,
15671 grub_uint64_t and grub_disk_addr_t, respectively.
15672 (grub_partition_get_start): Return grub_disk_addr_t.
15673 (grub_partition_get_len): Return grub_uint64_t.
15674
15675 * include/grub/misc.h (grub_strtoull): New prototype.
15676 (grub_divmod64): Likewise.
15677
15678 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
15679 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
15680 grub_off_t, respectively.
15681 All callers and references changed.
15682
15683 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
15684 grub_size_t in "read".
15685 All callers and references changed.
15686
15687 * include/grub/file.h (struct grub_file): Change the types of
15688 "offset" and "size" to grub_off_t and grub_off_t,
15689 respectively. Change the type of SECTOR to grub_disk_addr_t in
15690 "read_hook".
15691 (grub_file_read): Change the type of LEN to grub_size_t.
15692 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
15693 grub_off_t.
15694 (grub_file_size): Return grub_off_t.
15695 (grub_file_tell): Likewise.
15696 All callers and references changed.
15697
15698 * include/grub/disk.h (struct grub_disk_dev): Change the types of
15699 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
15700 "write".
15701 (struct grub_disk): Change the type of "total_sectors" to
15702 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 15703 "read_hook".
524a1e6a 15704 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
15705 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
15706 (grub_disk_write): Likewise.
15707 All callers and references changed.
15708
15709 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
15710 char * for grub_strncmp to silence gcc.
15711 (grub_iso9660_mount): Likewise.
15712 (grub_iso9660_mount): Likewise.
15713 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
15714 return statement.
15715 (grub_iso9660_iterate_dir): Likewise.
15716 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
15717
15718 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
15719 LEN to grub_disk_addr_t and grub_size_t, respectively.
15720
15721 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
15722
15723 * fs/jfs.c (grub_jfs_read_file): Likewise.
15724
15725 * fs/minix.c (grub_jfs_read_file): Likewise.
15726
15727 * fs/sfs.c (grub_jfs_read_file): Likewise.
15728
15729 * fs/ufs.c (grub_jfs_read_file): Likewise.
15730
15731 * fs/xfs.c (grub_jfs_read_file): Likewise.
15732
15733 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
15734 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
15735 respectively.
15736
15737 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
15738 BLKNR to -1 instead of returning GRUB_ERRNO.
15739 (grub_ext2_read_file): Change the types of SECTOR and
15740 LEN to grub_disk_addr_t and grub_size_t, respectively.
15741
15742 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
15743 LEN to grub_disk_addr_t and grub_size_t, respectively.
15744
15745 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
15746 grub_file_read.
15747
15748 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
15749 string. Do not cast SECTOR explicitly.
15750
15751 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
15752 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
15753 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
15754 grub_disk_addr_t and grub_size_t, respectively. If the sector is
15755 over 2TB and LBA mode is not supported, raise an error.
15756 (get_safe_sectors): New function.
15757 (grub_biosdisk_read): Use get_safe_sectors.
15758 (grub_biosdisk_write): Likewise.
15759
15760 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
15761 (grub_efidisk_write): Likewise.
15762
15763 * disk/loopback.c (delete_loopback): Cosmetic changes.
15764 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
15765 correctly.
15766 (grub_loopback_open): Likewise.
15767 (grub_loopback_read): Likewise. Also, change the type of POS to
15768 grub_off_t, and fix the usage of grub_memset.
15769
15770 * commands/i386/pc/play.c: Include grub/machine/time.h.
15771
15772 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
15773 print FILE->SIZE.
15774
15775 * commands/configfile.c: Include grub/env.h.
15776
15777 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
15778 GRUB_ERRNO directly instead. Change the type of POS to
15779 grub_off_t. Follow the coding standard.
15780
15781 * commands/blocklist.c: Include grub/partition.h.
15782 (grub_cmd_blocklist): Return an error if the underlying device is
15783 not a disk. Take the starting sector of a partition into account,
15784 if a partition is used.
15785
15786 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
15787 a length field.
15788 (lba_mode): Support 64-bit addresses.
15789 (chs_mode): Likewise.
15790 (copy_buffer): Adapted to the new offsets of a length field and a
15791 segment field.
15792 (blocklist_default_start): Allocate 64-bit space.
15793
15794 * boot/i386/pc/boot.S (force_lba): Removed.
15795 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 15796 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 15797 space.
15798 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
15799 is useless.
15800 (lba_mode): Refactored to support a 64-bit address. More size
15801 optimization.
15802 (setup_sectors): Likewise.
15803
53af98ad 158042006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
15805
15806 * DISTLIST: Added include/grub/i386/linux.h. Removed
15807 include/grub/i386/pc/linux.h
15808
15809 * configure.ac (AC_INIT): Bumped to 1.94.
15810
15811 * config.guess: Updated from gnulib.
15812 * config.sub: Likewise.
15813 * install-sh: Likewise.
15814 * mkinstalldirs: Likewise.
15815
b4c1940a 158162006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15817
15818 * conf/common.rmk (grub_modules_init.lst): Depended on
15819 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
15820 MODSRCFILES.
15821
15822 * genmk.rb (PModule::rule): Reverted the previous change.
15823
cfca1cfd 158242006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
15825
15826 * conf/common.rmk (grub_modules_init.lst): Depends on
15827 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
15828 that the target does not exist before producing.
15829 (grub_modules_init.h): Remove the target before generating.
15830 (grub_emu_init.c): Likewise.
15831
15832 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
15833
aa6d7826 158342006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
15835
15836 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
15837 for the target-specific tests. Make sure that we also have the
15838 up-to-date target variables for those tests.
15839
26c607b9 158402006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
15841
15842 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
15843 (PModule::rule): Likewise.
15844
0162321a 158452006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
15846
15847 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
15848 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
15849 target-specific flags should be prefixed.
15850 (PModule::rule): Likewise.
15851
6c826348 158522006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
15853
15854 * configure.ac (CMP): Check if cmp is available explicitly.
15855
b977bf01 158562006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
15857
15858 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
15859 (target_cpu): New variable.
15860 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 15861
b977bf01 15862 * util/i386/pc/grub-install.in (host_cpu): Removed.
15863 (target_cpu): New variable.
15864 (pkglibdir): Use target_cpu instead of host_cpu.
15865
15866 * util/genmoddep.c: Removed.
f19dbdb7 15867
b977bf01 15868 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
15869 instead of GRUB_HOST_SIZEOF_VOID_P.
15870 * kern/dl.c: Likewise.
15871
15872 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
15873 ...
15874 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15875 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15876 (GRUB_TARGET_SIZEOF_LONG): ... this.
15877 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15878 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15879 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
15880 to ...
15881 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15882 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15883 (GRUB_TARGET_SIZEOF_LONG): ... this.
15884 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15885 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15886 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
15887 to ...
15888 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
15889 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
15890 (GRUB_TARGET_SIZEOF_LONG): ... this.
15891 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
15892 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
15893
15894 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
15895 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
15896 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
15897 instead of GRUB_HOST_SIZEOF_LONG.
15898 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
15899 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
15900 GRUB_CPU_WORDS_BIGENDIAN.
15901 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
15902 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
15903 grub_host_ssize_t.
15904
15905 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
15906 (genmoddep_SOURCES): Likewise.
15907 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
15908 (genmoddep_SOURCES): Likewise.
15909 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
15910 (genmoddep_SOURCES): Likewise.
15911 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
15912 Likewise.
15913 (genmoddep_SOURCES): Likewise.
15914
15915 * genmoddep.awk: New file.
15916
15917 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
15918 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
15919 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
15920 (PModule::rule): Likewise.
15921 (Program::rule): Likewise.
15922 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
15923 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
15924 respectively.
15925
15926 * configure.ac: Rewritten intensively to use host and target
15927 instead of build and host, respectively.
15928
15929 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
15930 (host_cpu): Removed.
15931 (target_cpu): New variable.
15932 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
15933 (BUILD_CC): Removed.
15934 (BUILD_CFLAGS): Likewise.
15935 (BUILD_CPPFLAGS): Likewise.
15936 (TARGET_CC): New variable.
15937 (TARGET_CFLAGS): Likewise.
15938 (TARGET_CPPFLAGS): Likewise.
15939 (TARGET_LDFLAGS): Likewise.
15940 (AWK): Likewise.
15941 (include): Use target_cpu instead of host_cpu.
15942 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 15943
b977bf01 15944 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
15945
f09771a1 159462006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
15947
15948 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
15949 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
15950 field 'false' to 'exec_on_false'.
15951 (grub_script_create_cmdif): Renamed argument names to reflect above
15952 changes.
15953
15954 * normal/execute.c (grub_script_execute_cmdif): Likewise.
15955
15956 * normal/script.c (grub_script_create_cmdif): Likewise.
15957
118f4fb3 159582006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
15959
15960 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
15961 top.
15962 (grub_hfsplus_btree_recptr): Likewise.
15963 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
15964 FILEBLOCK both to pass a block number and store next block
15965 number.
15966 (grub_hfsplus_read_block): Rewritten heavily to support an extent
15967 overflow file correctly. Specify errors appropriately, because
15968 fshelp expects that GRUB_ERRNO is set when fails. Reuse
15969 grub_hfsplus_btree_recptr to get the pointer to a found key.
15970 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
15971 is found.
15972
15973 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
15974 linux.mod.
15975 (_linux_mod_SOURCES): New variable.
15976 (_linux_mod_CFLAGS): Likewise.
15977 (_linux_mod_LDFLAGS): Likewise.
15978 (linux_mod_SOURCES): Likewise.
15979 (linux_mod_CFLAGS): Likewise.
15980 (linux_mod_LDFLAGS): Likewise.
15981
15982 * DISTLIST: Added loader/i386/efi/linux.c,
15983 loader/i386/efi/linux_normal.c and
15984 include/grub/i386/efi/loader.h.
15985
15986 * loader/i386/efi/linux.c: New file.
15987 * loader/i386/efi/linux_normal.c: Likewise.
15988 * include/grub/i386/efi/loader.h: Likewise.
15989
89a7d726 159902006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
15991
15992 * commands/blocklist.c: New file.
15993
15994 * DISTLIST: Added commands/blocklist.c.
15995
15996 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 15997 color for the background, and a darker color for the foreground.
89a7d726 15998 (grub_console_checkkey): Return READ_KEY.
15999 (grub_console_cls): Set the background to
16000 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
16001
16002 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
16003
16004 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
16005 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
16006
16007 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
16008 prototype.
16009
16010 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
16011 BG. The spec is wrong again.
16012
16013 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
16014 prototype.
16015 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
16016
16017 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
16018 commands/blocklist.c.
16019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 16020
89a7d726 16021 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
16022 (blocklist_mod_SOURCES): New variable.
16023 (blocklist_mod_CFLAGS): Likewise.
16024 (blocklist_mod_LDFLAGS): Likewise.
16025
75c8f258 160262006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
16027
16028 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
16029 duplication.
16030 (lba_mode): Use %eax more intensively to reduce the code size.
16031
da2eb181 160322006-05-20 Marco Gerards <marco@gnu.org>
16033
16034 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
16035
16036 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
16037 for `menuentry'.
16038 (script): Accept leading newlines.
16039 (newlines): New rule to describe 0 or more newlines.
16040 (commands): Accept `command' with trailing newline. Fixed the
16041 order in which arguments were passed to `grub_script_add_cmd'.
16042 Accept commands separated by newlines.
16043 (function): Changed to accept newlines.
16044 (menuentry) Rewritten.
16045
16046 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
16047 front of the list, instead of to the end.
16048
577b4050 160492006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
16050
16051 * util/i386/pc/grub-install.in (bindir): New variable.
16052 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
16053 Shaver <lbgwjl@gmail.com>.
16054
0d6e1189 160552006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
16056
16057 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
16058 grub/machine/linux.h
16059 * loader/i386/pc/linux.c: Likewise.
16060
16061 * include/grub/i386/pc/linux.h: Moved to ...
16062 * include/grub/i386/linux.h: ... here.
16063
16064 * include/grub/i386/linux.h (struct linux_kernel_params): New
16065 struct.
f19dbdb7 16066
31b86e9f 160672006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
16068
16069 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
16070 checking.
16071 (grub_video_vbe_blit_glyph): Likewise.
16072 (grub_video_vbe_blit_bitmap): Likewise.
16073 (grub_video_vbe_blit_render_target): Likewise.
16074
83b984de 160752006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
16076
16077 * configure.ac (--with-platform): Properly quote the square
16078 brackets.
16079
5f0413bd 160802006-05-08 Marco Gerards <marco@gnu.org>
16081
16082 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
16083 this...
16084 (kernel_elf_HEADERS): ...to this. Updated all users.
16085 (grubof_symlist.c): Renamed from this...
16086 (kernel_elf_symlist.c): ...to this. Updated all users.
16087 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
16088 (grubof_SOURCES): Renamed from this...
16089 (kernel_elf_SOURCES): ...to this.
16090 (grubof_HEADERS): Renamed from this...
16091 (kernel_elf_HEADERS): ...to this.
16092 (grubof_CFLAGS): Renamed from this...
16093 (kernel_elf_CFLAGS): ...to this.
16094 (grubof_ASFLAGS): Renamed from this...
16095 (kernel_elf_ASFLAGS): ...to this.
16096 (grubof_LDFLAGS): Renamed from this...
16097 (kernel_elf_LDFLAGS): ...to this.
16098
16099 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
16100 this...
16101 (kernel_elf_HEADERS): ...to this. Updated all users.
16102 (grubof_symlist.c): Renamed from this...
16103 (kernel_elf_symlist.c): ...to this. Updated all users.
16104 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
16105 (grubof_SOURCES): Renamed from this...
16106 (kernel_elf_SOURCES): ...to this.
16107 (grubof_HEADERS): Renamed from this...
16108 (kernel_elf_HEADERS): ...to this.
16109 (grubof_CFLAGS): Renamed from this...
16110 (kernel_elf_CFLAGS): ...to this.
16111 (grubof_ASFLAGS): Renamed from this...
16112 (kernel_elf_ASFLAGS): ...to this.
16113 (grubof_LDFLAGS): Renamed from this...
16114 (kernel_elf_LDFLAGS): ...to this.
16115
16116 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
16117 `kernel.elf' instead of `grubof'.
16118
05568c2e 161192006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
16120
16121 Add --with-platform to configure. Use pkglibdir instead of
16122 pkgdatadir. This is reported by Roger Leigh.
16123
16124 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
16125 (host_vendor): Likewise.
16126 (host_os): Likewise.
16127 (pkgdatadir): Likewise.
16128 (platform): New variable.
16129 (pkglibdir): Likewise.
16130 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 16131
05568c2e 16132 * util/i386/pc/grub-install.in (datadir): Removed.
16133 (host_vendor): Likewise.
16134 (host_os): Likewise.
16135 (pkgdatadir): Likewise.
16136 (platform): New variable.
16137 (pkglibdir): Likewise.
16138 Use PKGLIBDIR instead of PKGDATADIR.
16139
16140 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
16141 instead of GRUB_DATADIR.
16142 (main): Likewise.
16143 * util/i386/pc/grub-mkimage.c (usage): Likewise.
16144 (main): Likewise.
16145 * util/i386/efi/grub-mkimage.c (usage): Likewise.
16146 (main): Likewise.
16147
16148 * configure.ac (--with-platform): New option.
16149 Use PLATFORM instead of HOST_VENDOR to specify a platform.
16150
16151 * Makefile.in: Include a makefile based on PLATFORM instead of
16152 HOST_VENDOR.
16153 (pkgdatadir): Not appended by the machine type.
16154 (pkglibdir): Appended by the machine type.
16155 (host_vendor): Removed.
16156 (platform): New variable.
16157 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
16158 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
16159 (uninstall): Likewise.
16160
4e93851c 161612006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
16162
16163 Use the environment context in the menu. Remove the commands
16164 "default" and "timeout", and use variables instead.
f19dbdb7 16165
4e93851c 16166 * normal/menu.c: Include grub/env.h.
16167 (print_entry): Cast TITLE to silence gcc.
16168 (get_timeout): New function.
16169 (set_timeout): Likewise.
16170 (get_entry_number): Likewise.
16171 (run_menu): Use a default entry, a fallback entry and a timeout
16172 in the environment variables "default", "fallback" and
16173 "timeout". Also, tweak the default entry if it is not within the
16174 current menu entries.
16175 (grub_menu_run): Use a fallback entry in the environment variable
16176 "fallback".
16177
16178 * normal/main.c (read_config_file): Do not initialize
16179 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
16180 NEWMENU->TIMEOUT.
16181 (grub_normal_execute): Use a data slot to store the menu.
16182
16183 * include/grub/normal.h (struct grub_menu): Removed default_entry,
16184 fallback_entry and timeout.
16185 (struct grub_menu_list): Removed.
16186 (grub_menu_list_t): Likewise.
16187 (struct grub_context): Likewise.
16188 (grub_context_t): Likewise.
16189 (grub_context_get): Likewise.
16190 (grub_context_get_current_menu): Likewise.
16191 (grub_context_push_menu): Likewise.
16192 (grub_context_pop_menu): Likewise.
16193 (grub_default_init): Likewise.
16194 (grub_default_fini): Likewise.
16195 (grub_timeout_init): Likewise.
16196 (grub_timeout_fini): Likewise.
16197
16198 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
16199 and timeout.mod.
16200 (normal_mod_SOURCES): Removed normal/context.c.
16201
16202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
16203 commands/default.c, commands/timeout.c and normal/context.c.
16204 (normal_mod_SOURCES): Removed normal/context.c.
16205
16206 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
16207 commands/timeout.c and normal/context.c.
16208 (normal_mod_SOURCES): Removed normal/context.c.
16209
16210 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
16211 commands/default.c, commands/timeout.c and normal/context.c.
16212 (normal_mod_SOURCES): Removed normal/context.c.
16213
16214 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
16215 timeout.mod.
16216 (default_mod_SOURCES): Removed.
16217 (default_mod_CFLAGS): Likewise.
16218 (default_mod_LDFLAGS): Likewise.
16219 (timeout_mod_SOURCES): Removed.
16220 (timeout_mod_CFLAGS): Likewise.
16221 (timeout_mod_LDFLAGS): Likewise.
16222
16223 * DISTLIST: Removed commands/default.c, commands/timeout.c and
16224 normal/context.c.
16225
16226 * commands/default.c: Removed.
16227 * commands/timeout.c: Likewise.
16228 * normal/context.c: Likewise.
16229
1eb9cc1d 162302006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
16231
16232 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
16233
385bd9c1 162342006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
16235
16236 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
16237 "next" to "prev" for readability.
16238 (struct grub_env_sorted_var): New struct.
16239 (grub_env_context): Renamed to ...
16240 (initial_context): ... this.
16241 (grub_env_var_context): Renamed to ...
16242 (current_context): ... this.
16243 (grub_env_find): Look only at CURRENT_CONTEXT.
16244 (grub_env_context_open): Rewritten to copy exported variables from
16245 previous context.
16246 (grub_env_context_close): Rewritten according to the new
16247 scheme. Also, add an assertion to prevent the initial context from
16248 removed.
16249 (grub_env_insert): Removed the code for the sorted list.
16250 (grub_env_remove): Likewise.
16251 (grub_env_export): Simply mark the variable with
16252 GRUB_ENV_VAR_GLOBAL.
16253 (grub_env_set): A cosmetic change for naming consistency.
16254 (grub_env_get): Likewise.
16255 (grub_env_unset): Likewise.
16256 (grub_env_iterate): Rewritten to sort variables within this
16257 function.
16258 (grub_register_variable_hook): Fixed for naming consistency. Call
16259 grub_env_find again, only if NAME is not found at the first time.
16260 (mangle_data_slot_name): New function.
16261 (grub_env_set_data_slot): Likewise.
16262 (grub_env_get_data_slot): Likewise.
16263 (grub_env_unset_data_slot): Likewise.
16264
16265 * include/grub/env.h (grub_env_var_type): New enum.
16266 (GRUB_ENV_VAR_LOCAL): New constant.
16267 (GRUB_ENV_VAR_GLOBAL): Likewise.
16268 (GRUB_ENV_VAR_DATA): Likewise.
16269 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
16270 "type".
16271 (grub_env_set): Replace VAR with NAME for consistency.
16272 (grub_register_variable_hook): Likewise.
16273 (grub_env_export): Specify the name of the argument.
16274 (grub_env_set_data_slot): New prototype.
16275 (grub_env_get_data_slot): Likewise.
16276 (grub_env_unset_data_slot): Likewise.
16277
7f362539 162782006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
16279
16280 Extend the loader so that GRUB can accept a loader which comes
16281 back to GRUB when a loaded image exits. Also, this change adds
16282 support for a chainloader on EFI.
f19dbdb7 16283
7f362539 16284 * term/efi/console.c: Include grub/misc.h.
16285 (grub_console_checkkey): Display a scan code on the top for
16286 debugging. This will be removed once the EFI port gets stable.
16287 Correct the scan code mapping.
16288
16289 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
16290 allocate memory from larger regions, in order to reduce the number
16291 of allocated regions. Otherwise, the MacOSX loader panics.
16292 (filter_memory_map): Avoid less than 1MB for compatibility with
16293 other loaders.
16294 (add_memory_regions): Allocate from the tail of a region, if
16295 possible, to avoid allocating a region near to 1MB, for the MacOSX
16296 loader.
16297
16298 * kern/efi/init.c (grub_efi_set_prefix): Specify
16299 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
16300
16301 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
16302 argument IMAGE_HANDLE and specify it to get a loaded image.
16303 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
16304 grub_efi_get_loaded_image.
fe6b695a 16305 (grub_efi_get_filename): Divide the length by the size of
7f362539 16306 grub_efi_char16_t.
16307 (grub_efi_get_device_path): New function.
16308 (grub_efi_print_device_path): Print End Device Path nodes. Divide
16309 the length by the size of grub_efi_char16_t for a file path device
16310 path node.
16311
16312 * kern/loader.c (grub_loader_noreturn): New variable.
16313 (grub_loader_set): Accept a new argument NORETURN. Set
16314 GRUB_LOADER_NORETURN to NORETURN.
16315 All callers changed.
16316 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
16317 grub_machine_fini.
16318
16319 * include/grub/efi/efi.h (grub_efi_get_device_path): New
16320 prototype.
16321 (grub_efi_get_loaded_image): Take an argument to specify an image
16322 handle.
16323
16324 * include/grub/loader.h (grub_loader_set): Added one more argument
16325 NORETURN.
16326
16327 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
16328 instead of grub_efi_open_protocol.
16329 (grub_efidisk_get_device_name): Likewise.
16330 (grub_efidisk_close): Print a newline.
16331 (grub_efidisk_get_device_handle): Fixed to use
16332 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
16333 GRUB_EFI_DEVICE_PATH_TYPE.
16334
16335 * disk/efi/efidisk.c (device_path_guid): Moved to ...
16336 * kern/efi/efi.c (device_path_guid): ... here.
16337
16338 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
16339 chain.mod.
16340 (kernel_mod_HEADERS): Added efi/disk.h.
16341 (_chain_mod_SOURCES): New variable.
16342 (_chain_mod_CFLAGS): Likewise.
16343 (_chain_mod_LDFLAGS): Likewise.
16344 (chain_mod_SOURCES): Likewise.
16345 (chain_mod_CFLAGS): Likewise.
16346 (chain_mod_LDFLAGS): Likewise.
16347
16348 * DISTLIST: Added include/grub/efi/chainloader.h,
16349 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
16350
16351 * include/grub/efi/chainloader.h: New file.
16352 * loader/efi/chainloader.c: Likewise.
16353 * loader/efi/chainloader_normal.c: Likewise.
16354
c0111d6e 163552006-04-30 Marco Gerards <marco@gnu.org>
16356
16357 * commands/configfile.c (grub_cmd_source): New function.
16358 (GRUB_MOD_INIT): Register the commands `source' and `.'.
16359 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
16360
df5341da 163612006-04-30 Marco Gerards <marco@gnu.org>
16362
16363 * normal/execute.c (grub_script_execute_cmd): Change the return
16364 type to `grub_err_t'. Correctly return the error.
16365 (grub_script_execute_cmdline): In case a command line is not a
16366 command or a function, try to interpret it as an assignment.
16367
f85934bd 163682006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
16369
16370 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
16371 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
16372 skip a node whose name is obviously invalid as UTF-16,
16373 i.e. contains a NUL character. Stop the iteration when the last
16374 directory entry is found. Instead of using the return value of
16375 grub_hfsplus_btree_iterate_node, store the value in RET and use
16376 it, because the iterator can be stopped by the last directory
16377 entry.
16378
8f8a2cf8 163792006-04-30 Marco Gerards <marco@gnu.org>
16380
16381 * include/grub/env.h (grub_env_export): New prototype. Reported
16382 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
16383
a27e84ce 163842006-04-30 Marco Gerards <marco@gnu.org>
16385
16386 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
16387 size of the extents in a catalog file record.
16388
eaef0553 163892006-04-29 Marco Gerards <marco@gnu.org>
16390
16391 * commands/configfile.c (grub_cmd_configfile): Execute the
16392 configfile within its own context.
16393
16394 * include/grub/env.h (grub_env_context_open): New prototype.
16395 (grub_env_context_close): Likewise.
16396
16397 * kern/env.c (grub_env): Removed.
16398 (grub_env_sorted): Likewise.
16399 (grub_env_context): New variable.
16400 (grub_env_var_context): Likewise.
16401 (grub_env_find): Search both the active context and the global
16402 context.
16403 (grub_env_context_open): New function.
16404 (grub_env_context_close): Likewise.
16405 (grub_env_insert): Likewise.
16406 (grub_env_remove): Likewise.
16407 (grub_env_export): Likewise.
16408 (grub_env_set): Changed to use helper functions to avoid code
16409 duplication.
16410 (grub_env_iterate): Rewritten so both the current context and the
16411 global context are being used.
16412
16413 * normal/command.c (export_command): New function.
16414 (grub_command_init): Register the `export' function.
16415
7b455f4d 164162006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
16417
16418 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
16419 explicitly to suppress gcc's warnings.
16420 * fs/fat.c (grub_fat_find_dir): Likewise.
16421 (grub_fat_label): Likewise.
16422 * fs/xfs.c (grub_xfs_read_inode): Likewise.
16423 (grub_xfs_mount): Likewise.
16424 (grub_xfs_label): Likewise.
16425 * fs/affs.c (grub_affs_mount): Likewise.
16426 (grub_affs_label): Likewise.
16427 (grub_affs_iterate_dir): Likewise.
16428 * fs/sfs.c (grub_sfs_mount): Likewise.
16429 (grub_sfs_iterate_dir): Likewise.
16430 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
16431 * fs/hfs.c (grub_hfs_mount): Likewise.
16432 (grub_hfs_cmp_catkeys): Likewise.
16433 (grub_hfs_find_dir): Likewise.
16434 (grub_hfs_dir): Likewise.
16435 (grub_hfs_label): Likewise.
16436 * fs/jfs.c (grub_jfs_mount): Likewise.
16437 (grub_jfs_opendir): Likewise.
16438 (grub_jfs_getent): Likewise.
16439 (grub_jfs_lookup_symlink): Likewise.
16440 (grub_jfs_label): Likewise.
16441 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
16442 (grub_hfsplus_iterate_dir): Likewise.
16443 (grub_hfsplus_btree_iterate_node): Made static.
16444
16445 * util/grub-emu.c (prefix): New variable.
16446 (grub_machine_set_prefix): New function.
16447 (main): Do not set the environment variable "prefix" here. Only
16448 set PREFIX, which is used later by grub_machine_set_prefix.
16449
16450 * include/grub/video.h: Do not include grub/symbol.h.
16451 (grub_video_register): Not exported. This symbol is not defined in
16452 the kernel.
16453 (grub_video_unregister): Likewise.
16454 (grub_video_iterate): Likewise.
16455 (grub_video_setup): Likewise.
16456 (grub_video_restore): Likewise.
16457 (grub_video_get_info): Likewise.
16458 (grub_video_get_blit_format): Likewise.
16459 (grub_video_set_palette): Likewise.
16460 (grub_video_get_palette): Likewise.
16461 (grub_video_set_viewport): Likewise.
16462 (grub_video_get_viewport): Likewise.
16463 (grub_video_map_color): Likewise.
16464 (grub_video_map_rgb): Likewise.
16465 (grub_video_map_rgba): Likewise.
16466 (grub_video_fill_rect): Likewise.
16467 (grub_video_blit_glyph): Likewise.
16468 (grub_video_blit_bitmap): Likewise.
16469 (grub_video_blit_render_target): Likewise.
16470 (grub_video_scroll): Likewise.
16471 (grub_video_swap_buffers): Likewise.
16472 (grub_video_create_render_target): Likewise.
16473 (grub_video_delete_render_target): Likewise.
16474 (grub_video_set_active_render_target): Likewise.
16475
16476 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
16477 Undefined.
16478 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
16479
16480 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
16481 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16482 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16483 instead of $(srcdir)/genkernsyms.sh.
16484
16485 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
16486 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16487 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16488 instead of $(srcdir)/genkernsyms.sh.
16489
16490 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
16491 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16492 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16493 instead of $(srcdir)/genkernsyms.sh.
16494
16495 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
16496 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
16497 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
16498 instead of $(srcdir)/genkernsyms.sh.
16499
16500 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
16501 genkernsyms.sh.
16502
16503 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
16504 genkernsyms.sh.
16505 (gensymlist.sh): New target.
16506 (genkernsyms.sh): Likewise.
16507
16508 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
16509 genkernsyms.sh.in and gensymlist.sh.in.
16510
16511 * genkernsyms.sh: Removed.
16512 * gensymlist.sh: Likewise.
f19dbdb7 16513
7b455f4d 16514 * genkernsyms.sh.in: New file.
16515 * gensymlist.sh.in: Likewise.
16516
1885bb27 165172006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16518
16519 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
16520 clobber "prefix", since we may have already set it manually.
16521
71538dff 165222006-04-25 Hollis Blanchard <hollis@penguinppc.org>
16523
16524 * kern/misc.c (abort): New alias for grub_abort.
16525
2965c7cc 165262006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
16527
16528 A new machine-specific function "grub_machine_set_prefix" is
16529 defined. This is called after loading modules, so that a prefix
16530 initialization can use modules. Also, this change adds an
16531 intensive debugging feature for the memory manager via the
16532 configure option "--enable-mm-debug".
f19dbdb7 16533
2965c7cc 16534 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
16535 PART.LEN.
16536
16537 * kern/sparc64/ieee1275/init.c (abort): Removed.
16538 (grub_stop): Likewise.
16539 (grub_exit): New function.
16540 (grub_set_prefix): Renamed to ...
16541 (grub_machine_set_prefix): ... this.
16542 (grub_machine_init): Do not call grub_set_prefix.
16543
16544 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
16545 (grub_machine_set_prefix): ... this.
16546 (grub_machine_init): Do not call grub_set_prefix.
16547
16548 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
16549 (grub_machine_init): Do not set the prefix here.
16550
16551 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
16552
16553 * kern/efi/init.c: Include grub/mm.h.
16554 (grub_efi_set_prefix): New function.
16555
16556 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
16557 (grub_efi_get_filename): New function.
16558 (grub_print_device_path): Renamed to ...
16559 (grub_efi_print_device_path): ... this.
16560
16561 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
16562 [MM_DEBUG] (grub_realloc): Likewise.
16563 [MM_DEBUG] (grub_free): Likewise.
16564 [MM_DEBUG] (grub_memalign): Likewise.
16565 [MM_DEBUG] (grub_mm_debug): New variable.
16566 [MM_DEBUG] (grub_debug_malloc): New function.
16567 [MM_DEBUG] (grub_debug_free): New function.
16568 [MM_DEBUG] (grub_debug_realloc): New function.
16569 [MM_DEBUG] (grub_debug_memalign): New function.
16570
16571 * kern/misc.c (grub_abort): Print a newline to distinguish
16572 the message.
16573
16574 * kern/main.c (grub_main): Call grub_machine_set_prefix and
16575 grub_set_root_dev after loading modules. This is necessary when
16576 setting a prefix depends on modules.
16577
16578 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
16579 (grub_efi_print_device_path): ... this.
16580 (grub_efi_get_filename): New prototype.
16581 (grub_efi_set_prefix): Likewise.
16582
16583 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
16584 and grub/disk.h.
16585 (grub_efidisk_get_device_handle): New prototype.
16586 (grub_efidisk_get_device_name): Likewise.
16587
16588 * include/grub/mm.h: Include config.h.
16589 (MM_DEBUG): Removed.
16590 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
16591 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
16592 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
16593 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
16594 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
16595 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
16596 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
16597 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
16598 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
16599
16600 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
16601
16602 * disk/efi/efidisk.c: Include grub/partition.h.
16603 (iterate_child_devices): New function.
16604 (add_device): First, compare only last device path nodes, so that
16605 devices are sorted by the types.
16606 (grub_efidisk_get_device_handle): New function.
16607 (grub_efidisk_get_device_name): Likewise.
16608
16609 * configure.ac (--enable-mm-debug): New option to enable the
16610 memory manager debugging feature. This makes the binary much
16611 bigger, so is disabled by default.
16612
9cacaa17 166132006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
16614
16615 Use grub_abort instead of grub_stop, and grub_exit must be
16616 define in each architecture now. Also, this change adds support
16617 for EFI disks.
f19dbdb7 16618
9cacaa17 16619 * util/i386/pc/grub-probefs.c: Include grub/term.h.
16620 (grub_getkey): New function.
16621 (grub_term_get_current): Likewise.
16622
16623 * util/i386/pc/grub-setup.c: Include grub/term.h.
16624 (grub_getkey): New function.
16625 (grub_term_get_current): Likewise.
16626
16627 * util/misc.c (grub_stop): Renamed to ...
16628 (grub_exit): ... this.
16629
16630 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
16631 (grub_exit): ... this.
16632 (grub_machine_init): Use grub_abort instead of abort.
16633 (grub_stop): Removed.
16634
16635 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
16636 abort.
16637
16638 * kern/i386/pc/startup.S (grub_exit): New function.
16639 (cold_reboot): New label.
16640
16641 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
16642 (grub_efi_init): Call grub_efidisk_init.
16643 (grub_efi_fini): Call grub_efidisk_fini.
16644
16645 * kern/efi/efi.c: Include grub/mm.h.
16646 (grub_efi_console_control_guid): Renamed to ...
16647 (console_control_guid): ... this.
16648 (grub_efi_loaded_image_guid): Renamed to ...
16649 (loaded_image_guid): ... this.
16650 (grub_efi_locate_handle): New function.
16651 (grub_efi_open_protocol): Likewise.
16652 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
16653 GRUB_EFI_CONSOLE_CONTROL_GUID.
16654 (grub_efi_exit): Removed.
16655 (grub_stop): Likewise.
16656 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
16657 (grub_exit): New function.
16658 (grub_print_device_path): Likewise.
16659
16660 * kern/rescue.c (grub_rescue_cmd_exit): New function.
16661 (grub_enter_rescue_mode): Register "exit".
16662
16663 * kern/misc.c (grub_real_dprintf): A cosmetic change.
16664 (grub_abort): New function.
16665
16666 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
16667
16668 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
16669
16670 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
16671
16672 * include/grub/efi/efi.h (grub_efi_exit): Removed.
16673 (grub_print_device_path): New prototype.
16674 (grub_efi_locate_handle): Likewise.
16675 (grub_efi_open_protocol): Likewise.
16676
16677 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
16678 * disk/efi/efidisk.c: Likewise.
16679
16680 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
16681
16682 * include/grub/efi/console_control.h
16683 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
16684
16685 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
16686 last 8 bytes as an array.
16687 (GRUB_EFI_DISK_IO_GUID): New macro.
16688 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
16689 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
16690 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
16691 grub_uint8_t.
16692 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
16693 (struct grub_efi_device_path): Rename the member "sub_type" to
16694 "subtype".
16695 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
16696 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
16697 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
16698 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
16699 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
16700 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
16701 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
16702 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
16703 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
16704 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
16705 (struct grub_efi_pci_device_path): New structure.
16706 (grub_efi_pci_device_path_t): New type.
16707 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
16708 (struct grub_efi_pccard_device_path): New structure.
16709 (grub_efi_pccard_device_path_t): New type.
16710 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
16711 (struct grub_efi_memory_mapped_device_path): New structure.
16712 (grub_efi_memory_mapped_device_path_t): New type.
16713 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
16714 (struct grub_efi_vendor_device_path): New structure.
16715 (grub_efi_vendor_device_path_t): New type.
16716 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
16717 (struct grub_efi_controller_device_path): New structure.
16718 (grub_efi_controller_device_path_t): New type.
16719 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
16720 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
16721 (struct grub_efi_acpi_device_path): New structure.
16722 (grub_efi_acpi_device_path_t): New type.
16723 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
16724 (struct grub_efi_expanded_acpi_device_path): New structure.
16725 (grub_efi_expanded_acpi_device_path_t): New type.
16726 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
16727 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
16728 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
16729 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
16730 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
16731 (struct grub_efi_atapi_device_path): New structure.
16732 (grub_efi_atapi_device_path_t): New type.
16733 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
16734 (struct grub_efi_fibre_channel_device_path): New structure.
16735 (grub_efi_fibre_channel_device_path_t): New type.
16736 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
16737 (struct grub_efi_1394_device_path): New structure.
16738 (grub_efi_1394_device_path_t): New type.
16739 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
16740 (struct grub_efi_usb_device_path): New structure.
16741 (grub_efi_usb_device_path_t): New type.
16742 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
16743 (struct grub_efi_usb_class_device_path): New structure.
16744 (grub_efi_usb_class_device_path_t): New type.
16745 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
16746 (struct grub_efi_i2o_device_path): New structure.
16747 (grub_efi_i2o_device_path_t): New type.
16748 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
16749 (struct grub_efi_mac_address_device_path): New structure.
16750 (grub_efi_mac_address_device_path_t): New type.
16751 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
16752 (struct grub_efi_ipv4_device_path): New structure.
16753 (grub_efi_ipv4_device_path_t): New type.
16754 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
16755 (struct grub_efi_ipv6_device_path): New structure.
16756 (grub_efi_ipv6_device_path_t): New type.
16757 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
16758 (struct grub_efi_infiniband_device_path): New structure.
16759 (grub_efi_infiniband_device_path_t): New type.
16760 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
16761 (struct grub_efi_uart_device_path): New structure.
16762 (grub_efi_uart_device_path_t): New type.
16763 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
16764 (struct grub_efi_vendor_messaging_device_path): New structure.
16765 (grub_efi_vendor_messaging_device_path_t): New type.
16766 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
16767 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
16768 (struct grub_efi_hard_drive_device_path): New structure.
16769 (grub_efi_hard_drive_device_path_t): New type.
16770 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
16771 (struct grub_efi_cdrom_device_path): New structure.
16772 (grub_efi_cdrom_device_path_t): New type.
16773 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
16774 (struct grub_efi_vendor_media_device_path): New structure.
16775 (grub_efi_vendor_media_device_path_t): New type.
16776 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
16777 (struct grub_efi_file_path_device_path): New structure.
16778 (grub_efi_file_path_device_path_t): New type.
16779 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
16780 (struct grub_efi_protocol_device_path): New structure.
16781 (grub_efi_protocol_device_path_t): New type.
16782 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
16783 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
16784 (struct grub_efi_bios_device_path): New structure.
16785 (grub_efi_bios_device_path_t): New type.
16786 (struct grub_efi_disk_io): New structure.
16787 (grub_efi_disk_io_t): New type.
16788 (struct grub_efi_block_io_media): New structure.
16789 (grub_efi_block_io_media_t): New type.
16790 (struct grub_efi_block_io): New structure.
16791 (grub_efi_block_io_t): New type.
16792
16793 * include/grub/misc.h (grub_stop): Removed.
16794 (grub_exit): New prototype.
16795 (grub_abort): Likewise.
16796
16797 * include/grub/disk.h (enum grub_disk_dev_id): Added
16798 GRUB_DISK_DEVICE_EFIDISK_ID.
16799
16800 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
16801 disk/efi/efidisk.c.
16802 (kernel_syms.lst): Remove the target if an error occurs.
16803
49986a9f 168042006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
16805
16806 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
16807 as it was simply too buggy.
16808
970d3b8a 168092006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
16810
16811 * kern/misc.c (grub_lltoa): New function.
16812 (grub_vsprintf): Added support for the long long suffix,
16813 i.e. "ll".
16814
ff04ec24 168152006-04-20 Hollis Blanchard <hollis@penguinppc.org>
16816
16817 * Makefile.in (LDFLAGS): Add variable.
16818 (LD): Remove variable.
16819 * configure.ac: Add -m32 to LDFLAGS.
16820 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
16821 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
16822 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
16823 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
16824 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
16825 variables.
16826 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
16827 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
16828 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
16829
37e5e1a4 168302006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
16831
16832 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
16833 length for unknown glyph.
16834
c352d8dd 168352006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
16836
2eab1c0d 16837 Add support for pre-loaded modules into the EFI port.
f19dbdb7 16838
2eab1c0d 16839 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
16840 completely. Accept one more argument DIR. The caller has changed.
16841
16842 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
16843
16844 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
16845 (grub_efi_loaded_image_guid): New variable.
16846 (grub_efi_get_loaded_image): New function.
16847 (grub_arch_modules_addr): Likewise.
16848
16849 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
16850 prototype.
16851
16852 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
16853 (struct grub_efi_loaded_image): New structure.
16854 (grub_efi_loaded_image_t): New type.
16855
168562006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 16857
c352d8dd 16858 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
16859 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
16860 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
16861
6d01d6b4 168622006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
16863
16864 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
16865
976a4ea0 168662006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
16867
16868 * DISTLIST: Added include/grub/efi/console.h,
16869 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
16870 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
16871
16872 * include/grub/efi/console.h: New file.
16873 * include/grub/efi/time.h: Likewise.
16874 * include/grub/i386/efi/kernel.h: Likewise.
16875 * kern/efi/init.c: Likewise.
16876 * kern/efi/mm.c: Likewise.
16877 * term/efi/console.c: Likewise.
f19dbdb7 16878
976a4ea0 16879 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
16880 (grub_stop): Removed.
16881 (grub_get_rtc): Likewise.
16882 (grub_machine_init): Simply call grub_efi_init.
16883 (grub_machine_fini): Call grub_efi_fini.
16884
16885 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
16886 (grub_efi_output_string): Removed.
16887 (grub_efi_stall): New function.
16888 (grub_stop): Likewise.
16889 (grub_get_rtc): Likewise.
16890
16891 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
16892 (grub_efi_stall): New prototype.
16893 (grub_efi_allocate_pages): Likewise.
16894 (grub_efi_free_pages): Likewise.
16895 (grub_efi_get_memory_map): Likewise.
16896 (grub_efi_mm_init): Likewise.
16897 (grub_efi_mm_fini): Likewise.
16898 (grub_efi_init): Likewise.
16899 (grub_efi_fini): Likewise.
16900
16901 * include/grub/i386/efi/time.h: Do not include
16902 grub/symbol.h. Include grub/efi/time.h.
16903 (GRUB_TICKS_PER_SECOND): Removed.
16904 (grub_get_rtc): Likewise.
16905
16906 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
16907 Added padding. The EFI spec is buggy.
16908 (GRUB_EFI_BLACK): New macro.
16909 (GRUB_EFI_BLUE): Likewise.
16910 (GRUB_EFI_GREEN): Likewise.
16911 (GRUB_EFI_CYAN): Likewise.
16912 (GRUB_EFI_RED): Likewise.
16913 (GRUB_EFI_MAGENTA): Likewise.
16914 (GRUB_EFI_BROWN): Likewise.
16915 (GRUB_EFI_LIGHTGRAY): Likewise.
16916 (GRUB_EFI_BRIGHT): Likewise.
16917 (GRUB_EFI_DARKGRAY): Likewise.
16918 (GRUB_EFI_LIGHTBLUE): Likewise.
16919 (GRUB_EFI_LIGHTGREEN): Likewise.
16920 (GRUB_EFI_LIGHTCYAN): Likewise.
16921 (GRUB_EFI_LIGHTRED): Likewise.
16922 (GRUB_EFI_LIGHTMAGENTA): Likewise.
16923 (GRUB_EFI_YELLOW): Likewise.
16924 (GRUB_EFI_WHITE): Likewise.
16925 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
16926 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
16927 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
16928 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
16929 (GRUB_EFI_BACKGROUND_RED): Likewise.
16930 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
16931 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
16932 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
16933 (GRUB_EFI_TEXT_ATTR): Likewise.
16934
16935 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
16936 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
16937 (kernel_mod_HEADERS): Added efi/time.h.
16938
83709125 169392006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
16940
16941 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
16942 include/grub/efi/api.h, include/grub/efi/console_control.h,
16943 include/grub/efi/efi.h, include/grub/efi/pe32.h,
16944 include/grub/i386/efi/time.h, kern/efi/efi.c,
16945 kern/i386/efi/init.c, kern/i386/efi/startup.S,
16946 and util/i386/efi/grub-mkimage.c.
16947
16948 * Makefile.in (RMKFILES): Added i386-efi.rmk.
16949
16950 * genmk.rb (PModule#rule): Do not export symbols if
16951 #{prefix}_EXPORTS is set to "no".
16952
16953 * conf/i386-efi.mk: New file.
16954 * conf/i386-efi.rmk: Likewise.
16955 * include/grub/efi/api.h: Likewise.
16956 * include/grub/efi/console_control.h: Likewise.
16957 * include/grub/efi/efi.h: Likewise.
16958 * include/grub/efi/pe32.h: Likewise.
16959 * include/grub/i386/efi/time.h: Likewise.
16960 * kern/efi/efi.c: Likewise.
16961 * kern/i386/efi/init.c: Likewise.
16962 * kern/i386/efi/startup.S: Likewise.
16963 * util/i386/efi/grub-mkimage.c: Likewise.
16964
169652006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 16966
16967 * include/grub/script.h: Include <grub/parser.h> and
16968 "grub_script.tab.h".
16969 (struct grub_lexer_param): New struct.
16970 (struct grub_parser_param): Likewise.
16971 (grub_script_create_arglist): Pass the state in an argument.
16972 (grub_script_add_arglist): Likewise.
16973 (grub_script_create_cmdline): Likewise.
16974 (grub_script_create_cmdblock): Likewise.
16975 (grub_script_create_cmdif): Likewise.
16976 (grub_script_create_cmdmenu): Likewise.
16977 (grub_script_add_cmd): Likewise.
16978 (grub_script_arg_add): Likewise.
16979 (grub_script_lexer_ref): Likewise.
16980 (grub_script_lexer_deref): Likewise.
16981 (grub_script_lexer_record_start): Likewise.
16982 (grub_script_lexer_record_stop): Likewise.
16983 (grub_script_mem_record): Likewise.
16984 (grub_script_mem_record_stop): Likewise.
16985 (grub_script_malloc): Likewise.
16986 (grub_script_yylex): Likewise.
16987 (grub_script_yyparse): Likewise.
16988 (grub_script_yyerror): Likewise.
16989 (grub_script_yylex): Likewise.
16990 (grub_script_lexer_init): Return the state.
16991
16992 * normal/lexer.c (grub_script_lexer_state): Removed variable.
16993 (grub_script_lexer_done): Likewise.
16994 (grub_script_lexer_getline): Likewise.
16995 (grub_script_lexer_refs): Likewise.
16996 (script): Likewise.
16997 (newscript): Likewise.
16998 (record): Likewise.
16999 (recording): Likewise.
17000 (recordpos): Likewise.
17001 (recordlen): Likewise.
17002 (grub_script_lexer_init): Return the state instead of setting
17003 global variables.
17004 (grub_script_lexer_ref): Use the newly added argument for state
17005 instead of globals.
17006 (grub_script_lexer_deref): Likewise.
17007 (grub_script_lexer_record_start): Likewise.
17008 (grub_script_lexer_record_stop): Likewise.
17009 (recordchar): Likewise.
17010 (nextchar): Likewise.
17011 (grub_script_yylex2): Likewise.
17012 (grub_script_yylex): Likewise.
17013 (grub_script_yyerror): Likewise.
17014
17015 * normal/parser.y (func_mem): Removed variable.
17016 (menu_entry): Likewise.
17017 (err): Likewise.
17018 (%lex-param): New parser option.
17019 (%parse-param): Likewise.
17020 (script): Always return the AST.
17021 (argument): Pass the state around.
17022 (arguments): Likewise.
17023 (grubcmd): Likewise.
17024 (commands): Likewise.
17025 (function): Likewise.
17026 (menuentry): Likewise.
17027 (if_statement): Likewise.
17028 (if): Likewise.
17029
17030 * normal/script.c (grub_script_memused): Removed variable.
17031 (grub_script_parsed): Likewise.
17032 (grub_script_malloc): Added a state argument. Use that instead of
17033 global variables.
17034 (grub_script_mem_record): Likewise.
17035 (grub_script_mem_record_stop): Likewise.
17036 (grub_script_arg_add): Likewise.
17037 (grub_script_add_arglist): Likewise.
17038 (grub_script_create_cmdline): Likewise.
17039 (grub_script_create_cmdif): Likewise.
17040 (grub_script_create_cmdmenu): Likewise.
17041 (grub_script_add_cmd): Likewise.
17042 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 17043
e2a8c904 170442006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 17045
17046 * normal/command.c (grub_command_init): Remove the title command.
17047
17048 * normal/lexer.c (grub_script_yylex): Renamed from this...
17049 (grub_script_yylex2): ... to this.
17050 (grub_script_yylex): New function. Temporary
17051 introduced to filter some tokens.
17052 (grub_script_yyerror): Print a newline.
17053
17054 * normal/main.c (read_config_file): Output information about the
17055 lines that contain errors. Wait for a key after all lines have
17056 been processed. Don't return an empty menu.
17057
17058 * normal/parser.y (func_mem): Don't initialize.
17059 (menu_entry): Likewise.
17060 (err): New variable.
17061 (script): Don't return anything when an error was encountered.
17062 (ws, returns): Removed rules.
17063 (argument): Disabled concatenated variable support.
17064 (arguments): Remove explicit separators.
17065 (grubcmd): Likewise.
17066 (function): Likewise.
17067 (menuentry): Likewise.
17068 (if): Likewise.
17069 (commands): Likewise. Add error handling.
17070
17071 * normal/script.c (grub_script_create_cmdline): If
17072 `grub_script_parsed' is 0, assume the parser encountered an error.
17073
c9a86192 170742006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
17075
17076 * configure.ac: Add support for EFI. Fix the typo
17077 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
17078
70f3b243 170792006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
17080
17081 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
17082 foreign multibyte characters should be shown correctly.
17083
65f201ad 170842006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
17085
17086 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
17087 calculation.
17088 (read_config_file): Made it to close file before returning.
17089
b4b93674 170902006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
17091
17092 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
17093 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
17094 video/i386/pc/vbefill.c.
17095
17096 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
17097 video/i386/pc/vbefill.c.
17098
17099 * include/grub/video.h (grub_video_blit_format): New enum.
17100 (grub_video_mode_info): Added new member blit_format.
17101 (grub_video_get_blit_format): New function prototype.
17102
17103 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
17104 function prototype.
17105 (grub_video_vbe_map_rgb): Likewise.
17106 (grub_video_vbe_unmap_color): Likewise.
17107
17108 * include/grub/i386/pc/vbeblit.h: New file.
17109
17110 * include/grub/i386/pc/vbefill.h: New file.
17111
17112 * video/video.c (grub_video_get_blit_format): New function.
17113 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
17114 (grub_video_vbe_map_rgb): Likewise.
17115 (grub_video_vbe_unmap_color): Likewise.
17116
17117 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
17118 optimized fills.
17119 (grub_video_vbe_blit_render_target): Changed to use more optimized
17120 blits.
17121 (grub_video_vbe_setup): Added detection for optimized settings.
17122 (grub_video_vbe_create_render_target): Likewise.
17123
17124 * video/i386/pc/vbeblit.c: New file.
17125
17126 * video/i386/pc/vbefill.c: New file.
17127
c2379b9c 171282006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
17129
17130 * font/manager.c (grub_font_get_glyph): Removed font fixup from
17131 here...
17132
17133 * util/unifont2pff.rb: ... and moved it to here. Improved argument
17134 parsing to support both hex and dec ranges. If filename was missing
17135 show usage information.
17136
bd0d7896 171372006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
17138
17139 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
17140 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
17141
17142 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
17143 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
17144 (video_mod_SOURCES): Added.
17145 (video_mod_CFLAGS): Likewise.
17146 (video_mod_LDFLAGS): Likewise.
17147 (gfxterm_mod_SOURCES): Likewise.
17148 (gfxterm_mod_CFLAGS): Likewise.
17149 (gfxterm_mod_LDFLAGS): Likewise.
17150 (videotest_mod_SOURCES): Likewise.
17151 (videotest_mod_CFLAGS): Likewise.
17152 (videotest_mod_LDFLAGS): Likewise.
17153 (vesafb_mod_SOURCES): Removed.
17154 (vesafb_mod_CFLAGS): Likewise.
17155 (vesafb_mod_LDFLAGS): Likewise.
17156 (vga_mod_SOURCES): Likewise.
17157 (vga_mod_CFLAGS): Likewise.
17158 (vga_mod_LDFLAGS): Likewise.
17159
17160 * commands/videotest.c: New file.
17161
17162 * font/manager.c (fill_with_default_glyph): Modified to use
17163 grub_font_glyph.
17164 (grub_font_get_glyph): Likewise.
17165 (fontmanager): Renamed from this...
17166 (font_manager): ... to this.
17167
17168 * include/grub/font.h (grub_font_glyph): Added new structure.
17169 (grub_font_get_glyph): Modified to use grub_font_glyph.
17170
17171 * include/grub/misc.h (grub_abs): Added as inline function.
17172
17173 * include/grub/video.h: New file.
17174
17175 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
17176 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
17177 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
17178 (grub_vbe_get_controller_info): Renamed from this...
17179 (grub_vbe_bios_get_controller_info): ... to this.
17180 (grub_vbe_get_mode_info): Renamed from this...
17181 (grub_vbe_bios_get_mode_info): ... to this.
17182 (grub_vbe_set_mode): Renamed from this...
17183 (grub_vbe_bios_set_mode): ... to this.
17184 (grub_vbe_get_mode): Renamed from this...
17185 (grub_vbe_bios_get_mode): ... to this.
17186 (grub_vbe_set_memory_window): Renamed from this...
17187 (grub_vbe_bios_set_memory_window): ... to this.
17188 (grub_vbe_get_memory_window): Renamed from this...
17189 (grub_vbe_bios_get_memory_window): ... to this.
17190 (grub_vbe_set_scanline_length): Renamed from this...
17191 (grub_vbe_set_scanline_length): ... to this.
17192 (grub_vbe_get_scanline_length): Renamed from this...
17193 (grub_vbe_bios_get_scanline_length): ... to this.
17194 (grub_vbe_set_display_start): Renamed from this...
17195 (grub_vbe_bios_set_display_start): ... to this.
17196 (grub_vbe_get_display_start): Renamed from this...
17197 (grub_vbe_bios_get_display_start): ... to this.
17198 (grub_vbe_set_palette_data): Renamed from this...
17199 (grub_vbe_bios_set_palette_data): ... to this.
17200 (grub_vbe_set_pixel_rgb): Removed.
17201 (grub_vbe_set_pixel_index): Likewise.
17202
17203 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
17204 from this...
17205 (grub_vbe_bios_get_controller_info): ... to this.
17206 (grub_vbe_get_mode_info): Renamed from this...
17207 (grub_vbe_bios_get_mode_info): ... to this.
17208 (grub_vbe_set_mode): Renamed from this...
17209 (grub_vbe_bios_set_mode): ... to this.
17210 (grub_vbe_get_mode): Renamed from this...
17211 (grub_vbe_bios_get_mode): ... to this.
17212 (grub_vbe_set_memory_window): Renamed from this...
17213 (grub_vbe_bios_set_memory_window): ... to this.
17214 (grub_vbe_get_memory_window): Renamed from this...
17215 (grub_vbe_bios_get_memory_window): ... to this.
17216 (grub_vbe_set_scanline_length): Renamed from this...
17217 (grub_vbe_set_scanline_length): ... to this.
17218 (grub_vbe_get_scanline_length): Renamed from this...
17219 (grub_vbe_bios_get_scanline_length): ... to this.
17220 (grub_vbe_set_display_start): Renamed from this...
17221 (grub_vbe_bios_set_display_start): ... to this.
17222 (grub_vbe_get_display_start): Renamed from this...
17223 (grub_vbe_bios_get_display_start): ... to this.
17224 (grub_vbe_set_palette_data): Renamed from this...
17225 (grub_vbe_bios_set_palette_data): ... to this.
17226 (grub_vbe_bios_get_controller_info): Fixed problem with registers
17227 getting corrupted after calling it. Added more pushes and pops.
17228 (grub_vbe_bios_set_mode): Likewise.
17229 (grub_vbe_bios_get_mode): Likewise.
17230 (grub_vbe_bios_get_memory_window): Likewise.
17231 (grub_vbe_bios_set_scanline_length): Likewise.
17232 (grub_vbe_bios_get_scanline_length): Likewise.
17233 (grub_vbe_bios_get_display_start): Likewise.
17234 (grub_vbe_bios_set_palette_data): Likewise.
17235
17236 * normal/cmdline.c (cl_set_pos): Refresh the screen.
17237 (cl_insert): Likewise.
17238 (cl_delete): Likewise.
17239
17240 * term/gfxterm.c: New file.
17241
17242 * term/i386/pc/vesafb.c: Removed file.
17243
17244 * video/video.c: New file.
17245
17246 * video/i386/pc/vbe.c (real2pm): Added new function.
17247 (grub_video_vbe_draw_pixel): Likewise.
17248 (grub_video_vbe_get_video_ptr): Likewise.
17249 (grub_video_vbe_get_pixel): Likewise
17250 (grub_video_vbe_init): Likewise.
17251 (grub_video_vbe_fini): Likewise.
17252 (grub_video_vbe_setup): Likewise.
17253 (grub_video_vbe_get_info): Likewise.
17254 (grub_video_vbe_set_palette): Likewise.
17255 (grub_video_vbe_get_palette): Likewise.
17256 (grub_video_vbe_set_viewport): Likewise.
17257 (grub_video_vbe_get_viewport): Likewise.
17258 (grub_video_vbe_map_color): Likewise.
17259 (grub_video_vbe_map_rgb): Likewise.
17260 (grub_video_vbe_map_rgba): Likewise.
17261 (grub_video_vbe_unmap_color): Likewise.
17262 (grub_video_vbe_fill_rect): Likewise.
17263 (grub_video_vbe_blit_glyph): Likewise.
17264 (grub_video_vbe_blit_bitmap): Likewise.
17265 (grub_video_vbe_blit_render_target): Likewise.
17266 (grub_video_vbe_scroll): Likewise.
17267 (grub_video_vbe_swap_buffers): Likewise.
17268 (grub_video_vbe_create_render_target): Likewise.
17269 (grub_video_vbe_delete_render_target): Likewise.
17270 (grub_video_vbe_set_active_render_target): Likewise.
17271 (grub_vbe_set_pixel_rgb): Remove function.
17272 (grub_vbe_set_pixel_index): Likewise.
17273 (index_color_mode): Remove static variable.
17274 (active_mode): Likewise.
17275 (framebuffer): Likewise.
17276 (bytes_per_scan_line): Likewise.
17277 (grub_video_vbe_adapter): Added new static variable.
17278 (framebuffer): Likewise.
17279 (render_target): Likewise.
17280 (initial_mode): Likewise.
17281 (mode_in_use): Likewise.
17282 (mode_list): Likewise.
17283
5f97350b 172842006-03-10 Marco Gerards <marco@gnu.org>
17285
17286 * configure.ac (AC_INIT): Bumped to 1.93.
17287
17288 * DISTLIST: Added `include/grub/hfs.h'.
17289
a3c5c6f8 172902006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
17291
17292 * boot/i386/pc/boot.S (general_error): Before looping, try INT
17293 18H, which might help the BIOS falling back to next boot media.
17294
6de53d26 172952006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
17296
17297 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
17298 Poe Chen <poe.poechen@gmail.com>.
17299
77c4a393 173002006-01-17 Marco Gerards <marco@gnu.org>
17301
17302 * include/grub/normal.h: Include <grub/script.h>.
17303 (grub_command_list): Removed struct.
17304 (grub_command_list_t): Removed type.
17305 (grub_menu_entry): Remove members `num' and `command_list'. Add
17306 members `commands' and `sourcecode'.
17307 * include/grub/script.h: Add inclusion guards.
17308 (grub_script_cmd_menuentry): New struct.
17309 (grub_script_execute_menuentry): New prototype.
17310 (grub_script_lexer_record_start): Likewise.
17311 (grub_script_lexer_record_stop): Likewise.
17312 * normal/execute.c (grub_script_execute_menuentry): New function.
17313 * normal/lexer.c (record, recording, recordpos, recordlen): New
17314 variables.
17315 (grub_script_lexer_record_start): New function.
17316 (grub_script_lexer_record_stop): Likewise.
17317 (recordchar): Likewise.
17318 (nextchar): Likewise.
17319 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
17320 2048 as the buffer size. Add the tokens `menuentry' and `@'.
17321 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
17322 (current_menu): New variable.
17323 (free_menu): Mainly rewritten.
17324 (grub_normal_menu_addentry): New function.
17325 (read_config_file): Rewritten.
17326 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 17327 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 17328 the menu entry.
17329 (run): Mainly rewritten.
17330 * normal/parser.y (menu_entry): New variable.
17331 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
17332 (menuentry): New rule.
17333 (command): Add `menuentry'.
17334 (if_statement): Allow additional returns before `fi'.
17335 * normal/script.c (grub_script_create_cmdmenu): New function.
17336
144f1f98 173372006-01-03 Marco Gerards <marco@gnu.org>
17338
17339 * INSTALL: GNU Bison is required.
17340 * configure.ac: Rewritten the test to detect Bison.
17341 * Makefile.in (YACC): New variable. Reported by Xun Sun
17342 <xun.sun.cn@gmail.com>.
17343
af4b2d89 173442006-01-03 Marco Gerards <marco@gnu.org>
17345
17346 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
17347 the HFS+ filesystem to filesystem blocks.
17348 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
17349 GCC warning is silenced.
17350
15643b71 173512006-01-03 Marco Gerards <marco@gnu.org>
17352
17353 * partmap/apple.c (apple_partition_map_iterate): Convert the data
17354 read from disk from big endian to host byte order.
17355
00905879 173562006-01-03 Hollis Blanchard <hollis@penguinppc.org>
17357
17358 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
17359 documentation.
17360 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
17361 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
17362 embedded HFS+ filesystem.
17363 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
17364 (grub_hfs_sblock): Move from here...
17365 * include/grub/hfs.h: To here... New file.
17366 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
17367 documentation.
17368 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
17369 New macros.
17370 (grub_hfsplus_volheader): Change type of member `magic' to
17371 `grub_uint16_t'.
17372 (grub_hfsplus_data): Add new member `embedded_offset'.
17373 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
17374 returned block.
17375 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
17376 Calculate the offset.
17377
8899bc3e 173782005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17379
17380 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
17381 Removed.
17382 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
17383
ae8c0277 173842005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17385
17386 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
17387 ENV->NAME is NULL after allocating ENV->VALUE.
17388
07084456 173892005-12-25 Marco Gerards <marco@gnu.org>
17390
17391 * kern/env.c (grub_env_set): Rewritten the error handling code.
17392
4750f5f1 173932005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17394
17395 * geninit.sh: Made more robust, and more portable.
17396
50214199 173972005-12-25 Marco Gerards <marco@gnu.org>
17398
17399 Add support for Apple HFS+ filesystems.
f19dbdb7 17400
50214199 17401 * fs/hfsplus.c: New file.
17402
17403 * DISTLIST: Added `fs/hfsplus.c'.
17404
17405 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
17406 (hfsplus_mod_SOURCES): New variable.
17407 (hfsplus_mod_CFLAGS): Likewise.
17408 (hfsplus_mod_LDFLAGS): Likewise.
17409 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
17410 (grub_setup_SOURCES): Likewise.
17411 (grub_mkdevicemap_SOURCES): Likewise.
17412 (grub_emu_SOURCES): Likewise.
17413 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17414
17415 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
17416
17417 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
17418
befaed6c 174192005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
17420
17421 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
17422 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
17423 include/grub/parser.h, include/grub/script.h, kern/parser.c,
17424 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
17425 normal/lexer.c, normal/parser.y, normal/script.c, and
17426 partmap/gpt.c.
17427 Removed kern/sparc64/cache.c.
17428
17429 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
17430 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
17431 grub_emu_init.c.
17432
17433 * configure.ac (AC_INIT): Bumped to 1.92.
17434
6a124103 174352005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
17436
17437 * kern/err.c (grub_error_push): Added new function to support error
17438 stacks.
17439 (grub_error_pop): Likewise.
17440 (grub_error_stack_items): New local variable to support error stacks.
17441 (grub_error_stack_pos): Likewise.
17442 (grub_error_stack_assert): Likewise.
17443 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
17444 stack depth.
17445 (grub_print_error): Added support to print errors from error stack.
17446
17447 * include/grub/err.h (grub_error_push): Added function prototype.
17448 (grub_error_pop): Likewise.
17449
be973c1b 174502005-12-09 Hollis Blanchard <hollis@penguinppc.org>
17451
17452 * configure.ac: Accept `powerpc64' as host_cpu.
17453 (amd64): Rename to `biarch32'.
17454
17455 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
17456 non-cacheline-aligned addresses.
17457
17458 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
17459 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
17460 if `size' is non-zero.
17461
b04216ab 174622005-12-03 Marco Gerards <mgerards@xs4all.nl>
17463
17464 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
17465 and `cd' to make sure the filename is not prefixed with a
17466 directory name.
17467 (pkgdata_MODULES): Add `gpt.mod'.
17468 (gpt_mod_SOURCES): New variable.
17469 (gpt_mod_CFLAGS): Likewise.
17470 (gpt_mod_LDFLAGS): Likewise.
17471
17472 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
17473
17474 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
17475 New macro.
17476
17477 * partmap/gpt.c: New file.
17478
17479 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
17480 GPT partition map is detected.
17481
41730ed9 174822005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
17483
17484 * commands/i386/pc/play.c: New file.
17485 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
17486 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
17487 macros.
f19dbdb7 17488
95dc3643 174892005-11-27 Marco Gerards <mgerards@xs4all.nl>
17490
17491 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
17492 ((unused))' to silence gcc warning.
17493
1569ec51 174942005-11-26 Hollis Blanchard <hollis@penguinppc.org>
17495
17496 * configure.ac: Correct `AC_PROG_YACC' test.
17497
9abde152 174982005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17499
17500 * util/powerpc/ieee1275/grub-install.in: Run the mount point
17501 check before installing files.
17502
44b83271 175032005-11-22 Mike Small <smallm@panix.com>
17504
17505 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
17506 number regex so multidigit numbers are recognized correctly.
17507
175082005-11-22 Mike Small <smallm@panix.com>
17509
17510 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
17511 debugging message before attempting to claim memory.
17512 (grub_rescue_cmd_initrd): Add a claim debugging message and try
17513 multiple addresses in case of failure.
17514
9c12956b 175152005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17516
17517 * term/tparm.c (get_space): Remove empty `if' statement.
17518
17519 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
17520
17521 * kern/parser.c (check_varstate): Rename `state' to 's'.
17522
aeaf81d9 175232005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17524
17525 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
17526 variable definitions to the beginning of each function. Sort stack
17527 variables by size.
17528 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
17529 `buf' argument to `char *'.
17530
79bbb63f 175312005-11-22 Hollis Blanchard <hollis@penguinppc.org>
17532
17533 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
17534 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 17535 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 17536 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17537 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17538 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17539 configfile.mod, search.mod, gzio.mod and test.mod.
17540 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17541 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17542 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17543 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17544 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17545 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17546 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17547 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17548 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17549 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17550 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17551 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17552 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17553 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17554 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17555 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17556 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17557 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17558 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17559 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17560 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17561 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17562 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
17563
17564 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
17565 `grep --include'.
17566 (pkgdata_MODULES): Add test.mod.
17567
233b1628 175682005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17569
17570 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
17571 appending to variables with "+=".
17572 (PModule): Use full pathname to generate *.lst filenames.
17573
17574 * Makefile.in: Fixed list rules moved from genmk.rb.
17575 (.DELETE_ON_ERROR): New special target.
17576 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
17577
17578 * conf/i386-pc.rmk: Include conf/common.mk.
17579 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 17580 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 17581 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
17582 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
17583 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
17584 configfile.mod, search.mod, gzio.mod and test.mod.
17585 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
17586 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
17587 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
17588 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
17589 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
17590 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
17591 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
17592 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
17593 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
17594 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
17595 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17596 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17597 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
17598 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
17599 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
17600 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
17601 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
17602 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
17603 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
17604 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
17605 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
17606 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
17607 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
17608 here...
17609 * conf/common.rmk: ... to here. New file.
17610
17611 * conf/common.mk: New file.
17612
16f820c8 176132005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
17614
17615 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
17616 (grub_script.tab.c): ... here.
17617
17618 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
17619 (grub_script.tab.c): ... here.
17620
17621 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
17622 (grub_script.tab.c): ... here.
17623
17624 * normal/command.c (grub_command_find): Fixed a memory leak of
17625 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
17626
63ba1554 176272005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17628
17629 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
17630 "@" which marks the start of a comment on ARM.
17631 (VARIABLE): Likewise.
17632
7f67dc13 176332005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17634
79bbb63f 17635 Add support for Linux/ADFS partition tables.
7f67dc13 17636
17637 * partmap/acorn.c: New file.
17638
17639 * include/grub/acorn_filecore.h: Likewise.
17640
17641 * DISTLIST: Added `partmap/acorn.c' and
17642 `include/grub/acorn_filecore.h'.
f19dbdb7 17643
7f67dc13 17644 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17645 `partmap/acorn.c'.
17646 (pkgdata_MODULES): Add `acorn.mod'.
17647 (acorn_mod_SOURCES): New variable.
17648 (acorn_mod_CFLAGS): Likewise.
17649
17650 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17651 `partmap/acorn.c'.
17652 (pkgdata_MODULES): Add `acorn.mod'.
17653 (acorn_mod_SOURCES): New variable.
17654 (acorn_mod_CFLAGS): Likewise.
17655
17656 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
17657 (pkgdata_MODULES): Add `acorn.mod'.
17658 (acorn_mod_SOURCES): New variable.
17659 (acorn_mod_CFLAGS): Likewise.
17660 (acorn_mod_LDFLAGS): Likewise.
17661
17662 * include/types.h (grub_disk_addr_t): New typedef.
17663
6d099807 176642005-11-13 Marco Gerards <mgerards@xs4all.nl>
17665
17666 * geninit.sh: New file.
17667
17668 * geninitheader.sh: Likewise.
17669
17670 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
17671 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
17672 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
17673 * commands/configfile.c (grub_configfile_init)
17674 (grub_configfile_fini): Likewise.
17675 * commands/default.c (grub_default_init, grub_default_fini):
17676 Likewise.
17677 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
17678 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
17679 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
17680 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
17681 Likewise.
17682 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
17683 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
17684 Likewise.
17685 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 17686 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 17687 Likewise.
17688 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
17689 Likewise.
fe6b695a 17690 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 17691 Likewise.
17692 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
17693 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
17694 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
17695 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
17696 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
17697 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
17698 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
17699 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
17700 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
17701 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
17702 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
17703 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
17704 * partmap/amiga.c (grub_amiga_partition_map_init)
17705 (grub_amiga_partition_map_fini): Likewise.
17706 * partmap/apple.c (grub_apple_partition_map_init)
17707 (grub_apple_partition_map_fini): Likewise.
17708 * partmap/pc.c (grub_pc_partition_map_init)
17709 (grub_pc_partition_map_fini): Likewise.
17710 * partmap/sun.c (grub_sun_partition_map_init,
17711 grub_sun_partition_map_fini): Likewise.
17712 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
17713 Likewise.
17714
17715 * util/grub-emu.c: Include <grub_modules_init.h>.
17716 (main): Don't initialize and de-initialize any modules directly,
17717 use `grub_init_all' and `grub_fini_all' instead.
17718
17719 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
17720 `grub_vesafb_mod_init'.
17721 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
17722 all users.
17723 * term/i386/pc/vga.c (grub_vga_init): Renamed to
17724 `grub_vga_mod_init'. Updated all users.
17725 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 17726
6d099807 17727 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
17728 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
17729 rules.
17730
17731 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
17732 Generate a function to initialize the module in utilities.
17733 Updated all callers.
17734 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
17735 initialize the module in utilities. Updated all callers.
17736
9046bcf0 177372005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17738
17739 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
17740 escape sequence and a literal ^L to clear the screen.
17741
17742 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
17743 when returning from Open Firmware.
17744
d13ea639 177452005-11-09 Hollis Blanchard <hollis@penguinppc.org>
17746
17747 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
17748 (grub_ofconsole_height): Likewise.
17749 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
17750 manually insert a '\n'.
17751 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
17752 `grub_ofconsole_height'. Return early if these are already set.
17753
a8fcf206 177542005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
17755
17756 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
17757 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
17758 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
17759 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
17760 and `normal/script.c'.
17761 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17762 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17763 (test_mod_SOURCES): New variable.
17764 (test_mod_CFLAGS): Likewise.
17765 (test_mod_LDFLAGS): Likewise.
17766 (pkgdata_MODULES): Add `test.mod'.
17767 (grub_script.tab.c): New rule.
17768 (grub_script.tab.h): Likewise.
17769
b6b32745 177702005-11-07 Marco Gerards <mgerards@xs4all.nl>
17771
17772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17773 `commands/test.c', `normal/execute.c', `normal/lexer.c',
17774 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17775 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17776 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
17777 (test_mod_SOURCES): New variable.
17778 (test_mod_CFLAGS): Likewise.
17779 (pkgdata_MODULES): Add `test.mod'.
17780 (grub_script.tab.c): New rule.
17781 (grub_script.tab.h): Likewise.
17782
daac212a 177832005-11-06 Marco Gerards <mgerards@xs4all.nl>
17784
17785 Add initial scripting support.
17786
17787 * commands/test.c: New file.
17788 * include/grub/script.h: Likewise.
17789 * normal/execute.c: Likewise.
17790 * normal/function.c: Likewise.
17791 * normal/lexer.c: Likewise.
17792 * normal/parser.y: Likewise.
17793 * normal/script.c: Likewise.
17794
17795 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 17796
daac212a 17797 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
17798 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
17799 `normal/function.c' and `normal/script.c'.
17800 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
17801 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 17802 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
17803 variables.
daac212a 17804 (pkgdata_MODULES): Add `test.mod'.
17805 (grub_script.tab.c): New rule.
17806 (grub_script.tab.h): Likewise.
17807
17808 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
17809
17810 * include/grub/normal.h (grub_test_init): New prototype.
17811 (grub_test_fini): Likewise.
f19dbdb7 17812
daac212a 17813 * normal/command.c: Include <grub/script.h>.
17814 (grub_command_execute): Rewritten.
f19dbdb7 17815
daac212a 17816 * util/grub-emu.c (main): Call `grub_test_init' and
17817 `grub_test_fini'.
17818
77500b2b 178192005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17820
17821 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
17822 to 0.
17823 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
17824 there are no pending characters.
17825
e45deb9e 178262005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17827
17828 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
17829 `grub_strndup' to drop device arguments. Replace unnecessary
17830 `grub_strndup' with `grub_strdup'.
17831
4ce32619 178322005-11-03 Hollis Blanchard <hollis@penguinppc.org>
17833
17834 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
17835 `debug' environment variable has been set.
17836
178372005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 17838
4ce32619 17839 * Makefile.in (install-local): Use $(DATA).
17840 (uninstall): Likewise.
17841 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
17842 (sbin_UTILITIES): ... to here.
17843 (sbin_SCRIPTS): New variable.
17844 (grub_install_SOURCES): New variable.
17845 * util/powerpc/ieee1275/grub-install.in: New file.
17846 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
17847 variable.
17848 (add_segments): Call `grub_util_get_path'.
17849
25fe6f03 178502005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
17851
17852 From Timothy Baldwin:
17853 * commands/ls.c (grub_ls_list_files): Close FILE with
17854 grub_file_close.
17855 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
17856
04ccf3ec 178572005-10-24 Marco Gerards <mgerards@xs4all.nl>
17858
17859 * include/grub/parser.h: New file.
17860
17861 * kern/parser.c: Likewise.
17862
17863 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
17864 (grub_setup_SOURCES): Likewise.
17865 (grub_probefs_SOURCES): Likewise.
17866 (grub_emu_SOURCES): Likewise.
17867 (kernel_img_HEADERS): Add `parser.h'.
17868
17869 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
17870 (grub_emu_SOURCES): Add `kern/parser.c'.
17871 (grubof_SOURCES): Likewise.
17872
17873 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
17874 (grubof_SOURCES): Add `kern/parser.c'.
17875
17876 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
17877
17878 * kern/misc.c (grub_split_cmdline): Removed function.
17879
17880 * kern/rescue.c: Include <grub/parser.h>.
17881 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
17882 of `grub_split_cmdline'.
17883
17884 * normal/command.c: Include <grub/parser.h>.
17885 (grub_command_execute): Use `grub_parser_split_cmdline' instead
17886 of `grub_split_cmdline'.
17887
17888 * normal/completion.c: Include <grub/parser.h>.
17889 (cmdline_state): New variable.
17890 (iterate_dir): End the filename with a quote depending on the
17891 command line state.
17892 (get_state): new function.
17893 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
17894 split the arguments and determine the current argument. When the
17895 argument string is not quoted, escape all spaces.
17896
6d8f4b0e 178972005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17898
17899 * normal/sparc64/setjmp.S: New file.
17900
15cf03ed 179012005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17902
17903 * include/grub/sparc64/libgcc.h: New file.
17904 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
17905 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
17906 normal/sparc64/setjmp.c.
17907
03e8661a 179082005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
17909
17910 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
17911 * kern/sparc64/cache.S: New file.
17912 * kern/sparc64/cache.c: Removed.
17913 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
17914 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
17915 -mtune=ultrasparc.
17916 (COMMON_LDFLAGS): Add -melf64_sparc.
17917 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
17918 (grubof_SOURCES): Use cache.S instead of cache.c.
17919 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
17920 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
17921 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
17922 commented though.
17923 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
17924 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
17925 (linux_mod_CFLAGS): Commented out.
17926 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
17927 out because module isn't built.
17928 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
17929 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
17930 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
17931 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
17932 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
17933 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
17934 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
17935 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
17936 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
17937 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
17938 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
17939 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
17940 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
17941 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
17942
34eeec8a 179432005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
17944
17945 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
17946 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
17947 longer, because HFS should not be used on PC.
17948
708367a3 179492005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
17950
17951 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
17952 consistently within the loop.
17953
6fa1251a 179542005-10-15 Marco Gerards <mgerards@xs4all.nl>
17955
17956 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
17957 directory can not be read.
17958
4801580b 179592005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17960
17961 * configure.ac (AC_INIT): Increase the version number to 1.91.
17962
17963 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
17964 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
17965 term/i386/pc/serial.c.
17966
219ad426 179672005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17968
17969 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
17970 file size must be permitted.
17971
17972 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
17973 between %ah and %al.
17974
688e5699 179752005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
17976
17977 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
17978 grub_uint64_t.
17979 Call the hook with a NUL-terminated filename.
17980 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
17981 grub_cpu_to_be32.
17982
17983 * kern/term.c (cursor_state): New variable.
17984 (grub_term_set_current): Reset the cursor state on a new
17985 terminal.
17986 (grub_setcursor): Rewritten to use CURSOR_STATE.
17987 (grub_getcursor): New function.
17988
17989 * include/grub/term.h (grub_getcursor): New prototype.
17990
17991 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
17992 integers on ARM. Reported by Timothy Baldwin
17993 <T.E.Baldwin99@members.leeds.ac.uk>.
17994
bb34586c 179952005-10-11 Marco Gerards <mgerards@xs4all.nl>
17996
17997 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
17998 allocated.
17999 (grub_sfs_dir): Likewise.
18000
9a909877 180012005-10-09 Marco Gerards <mgerards@xs4all.nl>
18002
18003 Add support for the SFS filesystem.
18004
18005 * fs/sfs.c: New file.
18006
18007 * DISTLIST: Added `fs/sfs.c'.
18008
18009 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
18010 (grub_probefs_SOURCES): Likewise.
18011 (grub_emu_SOURCES): Likewise.
18012 (pkgdata_MODULES): Add `sfs.mod'.
18013 (sfs_mod_SOURCES): New variable.
18014 (sfs_mod_CFLAGS): Likewise.
18015 (sfs_mod_LDFLAGS): Likewise.
18016
18017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
18018 (pkgdata_MODULES): Add `sfs.mod'.
18019 (sfs_mod_SOURCES): New variable.
18020 (sfs_mod_CFLAGS): Likewise.
18021
18022 * util/grub-emu.c (main): Call `grub_sfs_init' and
18023 `grub_sfs_fini'.
18024
18025 * include/grub/fs.h (grub_sfs_init): New prototype.
18026 (grub_sfs_fini): Likewise.
18027
57bdbde3 180282005-10-07 Marco Gerards <mgerards@xs4all.nl>
18029
18030 Add support for the AFFS filesystem.
18031
18032 * fs/affs.c: New file.
18033
18034 * DISTLIST: Added `fs/affs.c'.
18035
18036 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
18037 (grub_probefs_SOURCES): Likewise.
18038 (grub_emu_SOURCES): Likewise.
18039 (pkgdata_MODULES): Add `affs.mod'.
18040 (affs_mod_SOURCES): New variable.
18041 (affs_mod_CFLAGS): Likewise.
18042 (affs_mod_LDFLAGS): Likewise.
18043
18044 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
18045 (pkgdata_MODULES): Add `affs.mod'.
18046 (affs_mod_SOURCES): New variable.
18047 (affs_mod_CFLAGS): Likewise.
18048
18049 * util/grub-emu.c (main): Call `grub_affs_init' and
18050 `grub_affs_fini'.
18051
18052 * include/grub/fs.h (grub_affs_init): New prototype.
18053 (grub_affs_fini): Likewise.
18054
047b67e0 180552005-10-01 Marco Gerards <mgerards@xs4all.nl>
18056
18057 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
18058
59b8208a 180592005-10-01 Marco Gerards <mgerards@xs4all.nl>
18060
18061 * configure.ac: Accept `x86_64' as host_cpu. In that case add
18062 `-m32' to CFLAGS.
18063
18064 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
18065 linking.
f19dbdb7 18066
59b8208a 18067 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
18068 (COMMON_LDFLAGS): New variable.
18069 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
18070 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
18071 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
18072 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
18073 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
18074 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
18075 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
18076 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
18077 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
18078 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
18079 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
18080 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
18081 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
18082 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
18083 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
18084 variables.
18085 (normal_mod_ASFLAGS): Add `-m32'.
18086
18087 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
18088 (grub_host_size_t, grub_host_ssize_t): New types.
18089 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 18090 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 18091 `GRUB_HOST_SIZEOF_VOID_P'.
18092
18093 * include/grub/kernel.h (struct grub_module_header): Type of
18094 member offset changed to `grub_host_off_t'. Type of member size
18095 changed to `grub_host_size_t'.
18096 (struct grub_module_info): Type of member offset changed to
18097 `grub_host_off_t'. Type of member size changed to
18098 `grub_host_size_t'.
18099
b4093103 181002005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
18101
18102 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 18103
b4093103 18104 * kern/i386/pc/startup.S (multiboot_header): New label.
18105 (multiboot_entry): Likewise.
18106 (multiboot_trampoline): Likewise.
18107
18108 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18109 Increased to 0x4A0.
18110
18111 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
18112 put parentheses after a question mark.
18113 [!GRUB_UTIL] (my_mod): New variable.
18114
18115 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
18116
b2499b29 181172005-09-28 Marco Gerards <mgerards@xs4all.nl>
18118
18119 Adds support for the XFS filesystem. Btrees are not supported
18120 yet.
18121
18122 * fs/xfs.c: New file.
18123
18124 * DISTLIST: Added `fs/xfs.c'.
18125
18126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
18127 (grub_probefs_SOURCES): Likewise.
18128 (grub_emu_SOURCES): Likewise.
18129 (pkgdata_MODULES): Add `xfs.mod'.
18130 (xfs_mod_SOURCES): New variable.
18131 (xfs_mod_CFLAGS): Likewise.
18132
18133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
18134 (pkgdata_MODULES): Add `xfs.mod'.
18135 (xfs_mod_SOURCES): New variable.
18136 (xfs_mod_CFLAGS): Likewise.
18137
18138 * util/grub-emu.c (main): Call `grub_xfs_init' and
18139 `grub_xfs_fini'.
18140
18141 * include/grub/fs.h (grub_xfs_init): New prototype.
18142 (grub_xfs_fini): Likewise.
18143
f19dbdb7 18144
83d37a62 181452005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
18146
18147 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
18148 color modes, allow greater than 16 colors to be configured as
18149 a default palette.
18150
47d2d65e 181512005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
18152
18153 * normal/completion.c (complete_arguments): Add the qualifier
18154 const into OPTIONS.
18155
18156 From Omniflux <omniflux+lists@omniflux.com>:
18157 * include/grub/terminfo.h: New file.
18158 * include/grub/tparm.h: Likewise.
18159 * include/grub/i386/pc/serial.h: Likewise.
18160 * term/terminfo.c: Likewise.
18161 * term/tparm.c: Likewise.
18162 * term/i386/pc/serial.c: Likewise.
18163 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
18164 serial.mod.
18165 (terminfo_mod_SOURCES): New variable.
18166 (terminfo_mod_CFLAGS): Likewise.
18167 (serial_mod_SOURCES): Likewise.
18168 (serial_mod_CFLAGS): Likewise.
18169
48b671ff 181702005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
18171
18172 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
18173 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
18174 and kern/powerpc/ieee1275/cmain.c, respectively.
18175
18176 * boot/powerpc/ieee1275/crt0.S: Moved to ...
18177 * kern/powerpc/ieee1275/crt0.S: ... here.
18178
18179 * boot/powerpc/ieee1275/cmain.c: Moved to ...
18180 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 18181
48b671ff 18182 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
18183 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
18184 instead of boot/powerpc/ieee1275/crt0.S and
18185 boot/powerpc/ieee1275/cmain.c, respectively.
18186
18187 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
18188 sectors. It was not used anyway.
18189
09fc77a7 181902005-08-30 Hollis Blanchard <hollis@penguinppc.org>
18191
18192 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
18193 `unused parameter' warning.
18194
003789c7 181952005-08-30 Hollis Blanchard <hollis@penguinppc.org>
18196
18197 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
18198 function.
18199 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
18200 getcharwidth.
18201
67f44c86 182022005-08-28 Marco Gerards <metgerards@student.han.nl>
18203
18204 * include/grub/normal.h (enum grub_completion_type): Added
18205 `GRUB_COMPLETION_TYPE_ARGUMENT'.
18206
18207 * normal/cmdline.c (print_completion): Handle
18208 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
18209 * normal/menu_entry.c (store_completion): Likewise.
18210
18211 * normal/completion.c (complete_arguments): New function.
18212 (grub_normal_do_completion): Call `complete_arguments' when the
18213 current words start with a dash.
18214
0b5abe02 182152005-08-27 Marco Gerards <metgerards@student.han.nl>
18216
18217 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
18218 `gzio.mod' instead of `io.mod').
18219
d9864ee1 182202005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
18221
18222 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
18223 (DISTDIRS): Added io and video.
18224 Rewrite the search routine to make an output consistently.
18225
18226 * DISTLIST: Added conf/sparc64-ieee1275.mk,
18227 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
18228 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
18229 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
18230 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
18231 util/powerpc/ieee1275/misc.c.
f19dbdb7 18232
d9864ee1 18233 * include/grub/gzio.h: New file.
18234 * io/gzio.c: Likewise.
f19dbdb7 18235
d9864ee1 18236 * kern/file.c (grub_file_close): Call grub_device_close only if
18237 FILE->DEVICE is not NULL.
18238
18239 * include/grub/mm.h [!NULL] (NULL): New macro.
18240
18241 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
18242
18243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
18244 (pkgdata_MODULES): Added gzio.mod.
18245 (gzio_mod_SOURCES): New variable.
18246 (gzio_mod_CFLAGS): Likewise.
18247
18248 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
18249 (pkgdata_MODULES): Added gzio.mod.
18250 (gzio_mod_SOURCES): New variable.
18251 (gzio_mod_CFLAGS): Likewise.
18252
18253 * commands/cat.c: Include grub/gzio.h.
18254 (grub_cmd_cat): Use grub_gzfile_open instead of
18255 grub_file_open.
f19dbdb7 18256
d9864ee1 18257 * commands/cmp.c: Include grub/gzio.h.
18258 (grub_cmd_cmp): Use grub_gzfile_open instead of
18259 grub_file_open.
18260
18261 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
18262 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
18263 grub_file_open.
18264 (grub_rescue_cmd_module): Likewise.
18265
fa46f4b5 182662005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
18267
18268 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
18269 kern/sparc64/ieee1275/init.c because it contains _start.
18270 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
18271
e9211b5d 182722005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
18273
18274 * configure.ac: Add support for sparc64 host with ieee1275
18275 firmware.
18276 * configure: Generated from configure.ac.
18277 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
18278 instead of int.
18279 (grub_ofdisk_read): Likewise.
18280 (grub_ofdisk_open): Use %p to print pointer values, and cast the
18281 pointers as (void *) to remove a warning.
18282 (grub_ofdisk_close): Likewise.
18283 (grub_ofdisk_read): Likewise.
18284 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
18285 returns, so make it return void to remove a warning.
18286 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
18287 Corresponding prototype change.
18288 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
18289 values, and cast the pointers as (void *) to remove a warning.
18290 (grub_mm_dump): Likewise.
18291 * conf/sparc64-ieee1275.mk: New file.
18292 * conf/sparc64-ieee1275.rmk: Likewise.
18293 * include/grub/sparc64/setjmp.h: Likewise.
18294 * include/grub/sparc64/types.h: Likewise.
18295 * include/grub/sparc64/ieee1275/console.h: Likewise.
18296 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
18297 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
18298 * include/grub/sparc64/ieee1275/time.h: Likewise.
18299 * kern/sparc64/cache.c: Likewise.
18300 * kern/sparc64/dl.c: Likewise.
18301 * kern/sparc64/ieee1275/init.c: Likewise.
18302 * kern/sparc64/ieee1275/openfw.c: Likewise.
18303
385c6a92 183042005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
18305
18306 * util/console.c (grub_ncurses_putchar): If C is greater than
18307 0x7f, set C to a question mark.
18308 (grub_ncurses_getcharwidth): New function.
18309 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
18310 getcharwidth.
18311
18312 * normal/menu.c (print_entry): Made aware of Unicode. First,
18313 convert TITLE to UCS-4, and predict the cursor position by
18314 grub_getcharwidth.
18315
18316 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
18317 const to SRC.
18318 * kern/misc.c (grub_utf16_to_utf8): Likewise.
18319
16ccb8b1 183202005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18321
18322 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
18323 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
18324 grub_strcat.
18325
18326 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
18327 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
18328 grub_strcpy and grub_strlen. Take it into account that a space
18329 character is inserted as a delimiter.
18330
6a85ce79 183312005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18332
18333 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 18334 invalid magic in the error.
6a85ce79 18335
18336 * commands/search.c: New file.
f19dbdb7 18337
6a85ce79 18338 * util/grub-emu.c (main): Call grub_search_init and
18339 grub_search_fini.
18340
18341 * kern/rescue.c (grub_rescue_print_disks): Removed.
18342 (grub_rescue_print_devices): New function.
18343 (grub_rescue_cmd_ls): Use grub_device_iterate with
18344 grub_rescue_print_devices instead of grub_disk_dev_iterate with
18345 grub_rescue_print_disks.
18346
18347 * kern/partition.c (grub_partition_iterate): Return the result of
18348 PARTMAP->ITERATE instead of GRUB_ERRNO.
18349
18350 * kern/device.c: Include grub/partition.h.
18351 (grub_device_iterate): New function.
18352
18353 * include/grub/partition.h (grub_partition_iterate): Return int
18354 instead of grub_err_t.
18355
18356 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
18357 prototype.
18358 [GRUB_UTIL] (grub_search_fini): Likewise.
18359
18360 * include/grub/device.h (grub_device_iterate): New prototype.
18361
18362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18363 commands/search.c.
18364 (pkgdata_MODULES): Added search.mod.
18365 (search_mod_SOURCES): New variable.
18366 (search_mod_CFLAGS): Likewise.
18367
18368 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
18369 (pkgdata_MODULES): Added search.mod.
18370 (search_mod_SOURCES): New variable.
18371 (search_mod_CFLAGS): Likewise.
18372
18373 * commands/ls.c (grub_ls_list_disks): Renamed to ...
18374 (grub_ls_list_devices): ... this, and use grub_device_iterate.
18375 All callers changed.
18376
18377 * DISTLIST: Added commands/search.c.
18378
ef095434 183792005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
18380
18381 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
18382 conversion.
18383 (grub_getcharwidth): New function.
18384
18385 * kern/misc.c (grub_utf8_to_ucs4): New function.
18386
18387 * include/grub/term.h (struct grub_term): Added a new member
18388 "getcharwidth".
18389 (grub_getcharwidth): New prototype.
18390
18391 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
18392
18393 * term/i386/pc/console.c (map_char): New function. Segregated from
18394 grub_console_putchar.
18395 (grub_console_putchar): Use map_char.
18396 (grub_console_getcharwidth): New function.
18397 (grub_console_term): Specified grub_console_getcharwidth as
18398 getcharwidth.
18399
18400 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
18401 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
18402
18403 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
18404 GRUB_ERRNO.
18405 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
18406 on grub_strtoul completely.
18407 (write_char): Declare local variables in the beginning of the
18408 function.
18409 (grub_vesafb_getcharwidth): New function.
18410 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
18411 getcharwidth.
18412
1f0a95e4 184132005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
18414
18415 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
18416 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
18417 commands/i386/pc/vbetest.c.
18418
18419 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
18420 call grub_vbe_get_controller_info again, because the returned
18421 information is volatile.
18422 (grub_vbe_set_video_mode): Mostly rewritten.
18423 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
18424 grub_vbe_status_t correctly.
18425 (grub_vbe_get_video_mode_info): Likewise.
18426 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
18427 several if statements.
18428
18429 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
18430 * commands/i386/pc/vbeinfo.c: ... this.
18431
18432 * commands/i386/pc/vbe_test.c: Renamed to ...
18433 * commands/i386/pc/vbetest.c: ... this.
18434
18435 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
18436 ...
18437 (grub_cmd_vbeinfo): ... this. Save video modes before
18438 iterating. Skip a video mode, if it is not available, not enough
18439 information is given or it is monochrome. Show the memory
18440 model. Leave the interpretation of MODEVAR to grub_strtoul
18441 completely.
18442 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
18443 (GRUB_MOD_FINI): Likewise.
18444
18445 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
18446 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
18447 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
18448 duplicated grub_env_get. Leave the interpretation of MODEVAR to
18449 grub_strtoul completely.
18450 (real2pm): Removed.
18451 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
18452 (GRUB_MOD_FINI): Likewise.
18453
18454 * normal/misc.c: Include grub/mm.h.
18455
18456 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
18457 vbe_list_modes with vbetest.mod and vbeinfo.mod.
18458 (vbe_list_modes_mod_SOURCES): Removed.
18459 (vbe_list_modes_mod_CFLAGS): Likewise.
18460 (vbe_test_mod_SOURCES): Likewise.
18461 (vbe_test_mod_CFLAGS): Likewise.
18462 (vbeinfo_mod_SOURCES): New variable.
18463 (vbeinfo_mod_CFLAGS): Likewise.
18464 (vbetest_mod_SOURCES): Likewise.
18465 (vbetest_mod_CFLAGS): Likewise.
18466
992ffbbe 184672005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
18468
18469 * normal/misc.c: New file.
18470
18471 * DISTLIST: Added normal/misc.c.
f19dbdb7 18472
992ffbbe 18473 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
18474 DISK to HOOK. Call HOOK with DISK.
18475 * partmap/apple.c (apple_partition_map_iterate): Likewise.
18476 * partmap/pc.c (pc_partition_map_iterate): Likewise.
18477 * partmap/sun.c (sun_partition_map_iterate): Likewise.
18478
18479 * normal/menu_entry.c (struct screen): Added a new member
18480 "completion_shown".
18481 (completion_buffer): New global variable.
18482 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
18483 (store_completion): New function.
18484 (complete): Likewise.
18485 (clear_completions): Likewise.
18486 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
18487 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
18488 a tab, call complete.
18489
18490 * normal/completion.c (disk_dev): Removed.
18491 (print_simple_completion): Likewise.
18492 (print_partition_completion): Likewise.
18493 (print_func): New global variable.
18494 (add_completion): Do not take the arguments WHAT or PRINT any
18495 longer. Added a new argument TYPE. Instead of printing directly,
18496 call PRINT_FUNC if not NULL.
18497 All callers changed.
18498 (complete_device): Use a local variable DEV instead of
18499 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
18500 (grub_normal_do_completion): Take a new argument HOOK. Do not
18501 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
18502 empty string, return NULL instead.
18503 All callers changed.
18504
18505 * normal/cmdline.c (print_completion): New function.
18506
18507 * kern/partition.c (grub_partition_iterate): Add an argument DISK
18508 to HOOK.
18509 All callers changed.
18510
18511 * kern/disk.c (grub_print_partinfo): Removed.
18512
18513 * include/grub/partition.h (struct grub_partition_map): Add a new
18514 argument DISK into HOOK of ITERATE.
18515 (grub_partition_iterate): Add a new argument DISK to HOOK.
18516
18517 * include/grub/normal.h (enum grub_completion_type): New enum.
18518 (grub_completion_type_t): New type.
18519 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
18520 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
18521 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
18522 (GRUB_COMPLETION_TYPE_FILE): Likewise.
18523 (grub_normal_do_completion): Added a new argument HOOK.
18524 (grub_normal_print_device_info): New prototype.
18525
18526 * include/grub/disk.h (grub_print_partinfo): Removed.
18527
18528 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
18529 (normal_mod_SOURCES): Likewise.
18530 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18531 (normal_mod_SOURCES): Likewise.
18532
18533 * commands/ls.c (grub_ls_list_disks): Use
18534 grub_normal_print_device_info instead of grub_print_partinfo. Free
18535 PNAME.
18536 (grub_ls_list_files): Use grub_normal_print_device_info instead of
18537 duplicating the code.
18538
0bd41162 185392005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18540
18541 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 18542 follow GCS more precisely.
18543 * commands/i386/pc/vbe_test.c: Likewise.
18544 * include/grub/i386/pc/vbe.h: Likewise.
18545 * term/i386/pc/vesafb.c: Likewise.
18546 * video/i386/pc/vbe.c: Likewise.
0bd41162 18547
6323696a 185482005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
18549
18550 * DISTLIST: Added term/i386/pc/vesafb.c
18551 DISTLIST: Added video/i386/pc/vbe.c
18552 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
18553 DISTLIST: Added commands/i386/pc/vbe_test.c.
18554 * commands/i386/pc/vbe_list_modes.c: New file.
18555 * commands/i386/pc/vbe_test.c: Likewise.
18556 * term/i386/pc/vesafb.c: Likewise.
18557 * video/i386/pc/vbe.c: Likewise.
18558 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
18559 (grub_vbe_probe) Added prototype.
18560 (grub_vbe_set_video_mode) Likewise.
18561 (grub_vbe_get_video_mode) Likewise.
18562 (grub_vbe_get_video_mode_info) Likewise.
18563 (grub_vbe_set_pixel_rgb) Likewise.
18564 (grub_vbe_set_pixel_index) Likewise.
18565 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
18566 (pkgdata_MODULES): Added vesafb.mod.
18567 (pkgdata_MODULES): Added vbe_list_modes.mod.
18568 (pkgdata_MODULES): Added vbe_test.mod.
18569 (vbe_mod_SOURCES): Added.
18570 (vbe_mod_CFLAGS): Likewise.
18571 (vesafb_mod_SOURCES): Likewise.
18572 (vesafb_mod_CFLAGS): Likewise.
18573 (vbe_list_modes_mod_SOURCES): Likewise.
18574 (vbe_list_modes_mod_CFLAGS): Likewise.
18575 (vbe_test_mod_SOURCES): Likewise.
18576 (vbe_test_mod_CFLAGS): Likewise.
18577
0a74e62f 185782005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
18579
0a74e62f 18580 * normal/command.c (grub_command_execute): If INTERACTIVE is
18581 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
18582 CMDLINE. Disable the pager if INTERACTIVE is true.
18583 All callers are changed.
18584
18585 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
18586 before reading a config file.
18587 * normal/main.c (read_config_file): Even if a command is not
18588 found, register it if it is within an entry.
18589
18590 * util/grub-emu.c: Include sys/types.h and unistd.h.
18591 (options): Added --hold.
18592 (struct arguments): Added a new member "hold".
18593 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
18594 missing.
18595 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
18596 cleared by a debugger, if it is not zero.
18597
18598 * include/grub/normal.h (grub_command_execute): Add an argument
18599 INTERACTIVE.
18600
e51f85ae 186012005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
18602
18603 * DISTLIST: Added include/grub/i386/pc/vbe.h.
18604
e9c6f39b 186052005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
18606
18607 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
18608 program with another one, because the old one didn't detect a bug
18609 in gcc-3.4. Always use regparm 2, because the new test is still
18610 not enough for gcc-4.0. Someone must investigate a simple test
18611 case which detects a bug in gcc-4.0.
18612
8de3495c 186132005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
18614
18615 * DISTLIST: Added normal/completion.c.
18616
18617 * normal/completion.c: New file.
f19dbdb7 18618
8de3495c 18619 * term/i386/pc/console.c (grub_console_getwh): New function.
18620 (grub_console_term): Assign grub_console_getwh to getwh.
18621
18622 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
18623 function is defined in normal/completion.c as
18624 grub_normal_do_completion.
18625 (grub_cmdline_get): Use grub_normal_do_completion instead of
18626 grub_tab_complete.
18627
18628 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
18629 returns non-zero, otherwise return 0.
18630 (grub_partition_iterate): First, probe the partition map. Then,
18631 call ITERATE only for this partition map.
18632
18633 * kern/misc.c (grub_strncmp): Rewritten.
18634
18635 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
18636 returns non-zero. Otherwise return 0.
18637
18638 * include/grub/partition.h (grub_partition_map_iterate): Return
18639 int instead of void.
18640
18641 * include/grub/normal.h (grub_normal_do_completion): New prototype.
18642
18643 * include/grub/misc.h (grub_strncmp): Change the type of N to
18644 grub_size_t.
18645
18646 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
18647 of void.
18648
18649 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 18650 unsigned explicitly before comparing it with I.
8de3495c 18651
18652 * kern/main.c (grub_env_write_root): Add the attribute unused into
18653 VAR.
18654
18655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
18656 normal/completion.c.
18657 (normal_mod_SOURCES): Likewise.
18658 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18659 (normal_mod_SOURCES): Likewise.
18660
18661 * normal/command.c (grub_iterate_commands): If ITERATE returns
18662 non-zero, return one immediately.
18663
e85e144b 186642005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
18665
18666 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
18667 * kern/i386/pc/startup.S: Updated Global Descriptor table's
18668 descriptions.
18669 (grub_vbe_get_controller_info): New function.
18670 (grub_vbe_get_mode_info): Likewise.
18671 (grub_vbe_set_mode): Likewise.
18672 (grub_vbe_get_mode): Likewise.
18673 (grub_vbe_set_memory_window): Likewise.
18674 (grub_vbe_get_memory_window): Likewise.
18675 (grub_vbe_set_scanline_length): Likewise.
18676 (grub_vbe_get_scanline_length): Likewise.
18677 (grub_vbe_set_display_start): Likewise.
18678 (grub_vbe_get_display_start): Likewise.
18679 (grub_vbe_set_palette_data): Likewise.
18680 * include/grub/i386/pc/vbe.h: New file.
18681
c46153d2 186822005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18683
18684 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18685 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
18686 * DISTLIST: Likewise.
18687 * kern/ieee1275/of.c: Moved to ...
18688 * kern/ieee1275/ieee1275.c: ... here.
18689
0cb90c45 186902005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18691
18692 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
18693 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
18694 Pass 0 as `end' parameter to grub_strtoul().
18695
a19fb360 186962005-08-08 Hollis Blanchard <hollis@penguinppc.org>
18697
18698 * include/grub/powerpc/ieee1275/console.h: Do not include
18699 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
18700 ifdef.
18701 (grub_console_cur_color): Remove i386-specific prototype.
18702 (grub_console_real_putchar): Likewise.
18703 (grub_console_checkkey): Likewise.
18704 (grub_console_getkey): Likewise.
18705 (grub_console_getxy): Likewise.
18706 (grub_console_gotoxy): Likewise.
18707 (grub_console_cls): Likewise.
18708 (grub_console_setcursor): Likewise.
18709 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
18710 Include <grub/machine/console.h>.
18711 * term/ieee1275/ofconsole.c: Likewise.
18712
4ac9bd04 187132005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
18714
18715 * Makefile.in (LIBLZO): New variable.
18716
18717 * configure.ac: Check for LZO version 2.
18718
18719 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
18720 lzo/lzo1x.h instead of lzo1x.h.
18721
18722 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
18723 of -llzo.
18724
18725 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
18726 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
18727
18728 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
18729 copying the data from PARTITION to P.
18730
f4917dfd 187312005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18732
18733 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
18734 negative, unload the module.
18735
18736 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
18737 map is "pc_partition_map" but not "pc".
18738 (usage): Fix the description. The options are --boot-image and
18739 --core-image but not --boot-file or --core-file.
18740 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
18741 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
18742 DEFAULT_DIRECTORY.
18743
18744 * util/i386/pc/grub-install.in: Do not specify --boot-file or
18745 --core-file. Specify INSTALL_DEVICE as an argument.
18746
18747 * util/console.c: Include config.h.
18748 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
18749 [HAVE_NCURSES_H]: Include ncurses.h.
18750 [HAVE_CURSES_H]: Include curses.h.
18751 [!A_NORMAL] (A_NORMAL): Defined as zero.
18752 [!A_STANDOUT] (A_STANDOUT): Likewise.
18753
18754 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
18755 -lncurses.
18756 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
18757
18758 * configure.ac: Check for curses libraries and headers.
18759
18760 * Makefile.in (LIBCURSES): New variable.
18761
18762 * genmk.rb (Script::rule): Set the executable bits.
18763
18764 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
18765 name of the PC partition map is "pc_partition_map" but not "pc".
18766
0e143073 187672005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18768
18769 * util/i386/pc/grub-install.in (grub_probefs): New variable.
18770 (modules): Likewise.
18771 (usage): Added descriptions for --modules and --grub-probefs.
18772 Handle --modules and --grub-probefs. Save the arguments in MODULES
18773 and GRUB_PROBEFS, respectively.
18774 Auto-detect a filesystem module against GRUBDIR. If the result is
18775 empty and modules are not specified explicitly, abort the
18776 installation. Add the result to MODULES.
18777
18778 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
18779 disk/powerpc/ieee1275/ofdisk.c,
18780 include/grub/powerpc/ieee1275/init.h and
18781 term/powerpc/ieee1275/ofconsole.c.
18782 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
18783 term/ieee1275/ofconsole.c.
18784
18785 * include/grub/powerpc/ieee1275/console.h: Resurrected.
18786
18787 * COPYING: Upgraded to the latest version. Only the address of the
18788 FSF office has changed.
f19dbdb7 18789
efd6e6d5 187902005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
18791
18792 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
18793 kern/ieee1275.c with kern/ieee1275/of.c.
18794
18795 * kern/ieee1275.c: Moved to ...
18796 * kern/ieee1275/of.c: ... here.
18797
8ceafda2 187982005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
18799
18800 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 18801 readability.
8ceafda2 18802
18803 * config.guess: Updated to the latest version from gnulib.
18804 * config.sub: Likewise.
18805 * install.sh: Likewise.
18806 * mkinstalldirs: Likewise.
18807
18808 * include/grub/console.h: Removed. This file is arch-specific. Do
18809 not put this in include/grub.
18810
18811 * include/grub/i386/pc/console.h: Resurrected.
18812
18813 * util/console.c: Include grub/machine/console.h instead of
18814 grub/console.h.
18815 * util/grub-emu.c: Likewise.
18816
267f6cd9 188172005-08-04 Marco Gerards <metgerards@student.han.nl>
18818
18819 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
18820 hardcoded value.
f19dbdb7 18821
267f6cd9 18822 From Vincent Pelletier <subdino2004@yahoo.fr>
18823 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
18824 Redefined to use grub_getwh.
18825 (grub_term): New member named getwh.
18826 (grub_getwh): New prototype.
18827 * kern/term.c (grub_getwh): New function.
18828 * term/i386/pc/console.c (grub_console_getwh): New function.
18829 (grub_console_term): New member `getwh'.
18830 * term/i386/pc/vga.c (grub_vga_getwh): New function.
18831 (grub_vga_term): New member `getwh'.
0b5abe02 18832 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 18833 grub_ssize_t.
18834 (grub_ofconsole_getw): New function.
18835 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
18836 (grub_ofconsole_term): New field named getwh and new initial
18837 value.
18838
3be7266d 188392005-08-03 Hollis Blanchard <hollis@penguinppc.org>
18840
18841 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
18842 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
18843 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
18844 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
18845 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
18846 of <grub/machine/ieee1275.h>.
18847 * commands/ieee1275/reboot.c: Likewise.
18848 * boot/powerpc/ieee1275/ieee1275.c: Move ...
18849 * kern/ieee1275.c: ... to here. All users updated. Change all
18850 parameter structs to use new type `grub_ieee1275_cell_t'.
18851 * term/powerpc/ieee1275/ofconsole.c: Move ...
18852 * term/ieee1275/ofconsole.c: ... to here. All users updated.
18853 * disk/powerpc/ieee1275/ofdisk.c: Move ...
18854 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
18855 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
18856 to return int.
18857 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
18858 Remove unused prototypes. All users updated.
18859 * include/grub/powerpc/ieee1275/console.h: Removed.
18860 * include/grub/powerpc/ieee1275/ieee1275.h: Define
18861 `grub_ieee1275_cell_t'.
18862 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
18863 Cast comparisons with -1 to the correct type.
18864 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
18865 type to match `grub_ieee1275_entry_fn'.
18866
8b5f3938 188672005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
18868
18869 * DISTLIST: Added util/i386/pc/grub-probefs.c.
18870
18871 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
18872 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
18873 partmap/sun.c.
18874 (grub_probefs_SOURCES): New variable.
18875
18876 * util/i386/pc/grub-probefs.c: New file.
18877
18878 * util/i386/pc/grub-setup.c (main): Call
18879 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
18880 grub_hfs_init and grub_jfs_init to initialize the system. Call
18881 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
18882 grub_pc_partition_map_fini to finish the system.
18883
ea409713 188842005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
18885
18886 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
18887 function.
18888 (grub_multiboot_load_elf32): Likewise.
18889 (grub_multiboot_is_elf64): Likewise.
18890 (grub_multiboot_load_elf64): Likewise.
18891 (grub_multiboot_load_elf): Likewise.
18892 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
18893 an ELF32 or ELF64 file.
18894 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
18895
18896 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
18897 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
18898 NULL before calling FS->LABEL.
18899 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
18900 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
18901 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
18902 before calling FS->LABEL.
18903
141a288b 189042005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
18905
18906 * util/i386/pc/grub-install.in (datadir): New variable.
18907 (libdir): Removed.
18908 (pkgdatadir): New variable.
18909 (pkglibdir): Removed.
18910
0d5f8a54 189112005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
18912
18913 * DISTLIST: Added util/i386/pc/grub-install.in.
18914
18915 * util/i386/pc/grub-install.in: New file.
18916
18917 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
18918 (grub_install_SOURCES): Likewise.
18919
18920 * genmk.rb: Added support for scripts.
18921 (Script): New class.
18922 (scripts): New variable.
18923
18924 * Makefile.in (install-local): Install sbin_SCRIPTS by
18925 INSTALL_SCRIPT.
18926 (uninstall): Remove sbin_SCRIPTS.
18927
18928 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
18929 device, try to get a GRUB device by
18930 grub_util_biosdisk_get_grub_dev.
18931 Free DEST_DEV.
18932
18933 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
18934 description for --device-map.
18935
5f968e1e 189362005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18937
18938 Change the semantics of variable hooks. They now return strings
18939 instead of error values.
f19dbdb7 18940
5f968e1e 18941 * util/i386/pc/grub-setup.c: Include grub/env.h.
18942 (setup): Use grub_device_set_root instead of grub_env_set.
18943
18944 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
18945 grub_env_get instead of grub_device_set_root and
18946 grub_device_get_root, respectively.
18947
18948 * kern/main.c (grub_env_write_root): New function.
18949 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
18950 grub_env_set instead of grub_device_set_root.
18951
18952 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
18953 many variables.
18954 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
18955 rather than calling ENV->WRITE_HOOK afterwards.
18956 (grub_env_get): Return the result of ENV->READ_HOOK rather than
18957 passing a pointer of a pointer.
18958 (grub_register_variable_hook): Change the types of "read_hook" and
18959 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
18960 respectively.
18961 Allocate the default empty string on the heap, because this string
18962 may be freed later.
18963
18964 * kern/device.c: Include grub/env.h.
18965 (grub_device_set_root): Removed.
18966 (grub_device_get_root): Likewise.
18967 (grub_device_open): Use grub_env_get instead of
18968 grub_device_get_root.
18969
18970 * include/grub/env.h (grub_env_read_hook_t): New type.
18971 (grub_env_write_hook_t): Likewise.
18972 (grub_env_var): Change the types of "read_hook" and "write_hook"
18973 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
18974 (grub_register_variable_hook): Likewise.
18975
18976 * include/grub/device.h (grub_device_set_root): Removed.
18977 (grub_device_set_root): Likewise.
18978
18979 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
18980 make sure that DIRNAME terminates with '/', so that
18981 grub_fat_find_dir will fail if PATH is not a directory.
18982
18983 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
18984 from DIRNAME.
18985 Use the qualifier auto for print_files and print_files_long.
18986 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
18987 as a regular file.
18988 Put a newline only if there is no error.
18989 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
18990 used.
18991
896f0afd 189922005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
18993
18994 * kern/partition.c (grub_partition_probe): Initialize PART to
18995 NULL. Otherwise, when no partition map is registered, this returns
18996 a garbage.
18997
b28b81b2 189982005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
18999
19000 * partmap/apple.c (apple_partition_map_iterate): Check if POS
19001 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
19002 valid.
19003
5f3607e0 190042005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
19005
19006 * commands/ls.c (grub_ls_list_disks): Print the filesystem
19007 information on each device, if it does not have partitions. Print
19008 "Device" instead of "Disk", because this function is not specific
19009 to disk devices.
19010
19011 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
19012 static to ensure that it is put on the memory rather than a
19013 register.
19014
502c87e8 190152005-07-17 Yoshinori Okuji <okuji@enbug.org>
19016
19017 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
19018 (grub_cat_init): Likewise.
19019 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
19020 (options): Likewise.
19021 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
19022 (grub_configfile_init): Likewise.
19023 * font/manager.c (GRUB_MOD_INIT): Likewise.
19024 * commands/help.c (GRUB_MOD_INIT): Likewise.
19025 (grub_help_init): Likewise.
19026 * normal/command.c (grub_command_init): Likewise.
19027 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
19028 * disk/loopback.c (grub_loop_init): Likewise.
19029 (GRUB_MOD_INIT): Likewise.
19030 * commands/ls.c (grub_ls_init): Likewise.
19031 (GRUB_MOD_INIT): Likewise.
19032 (options): Likewise.
19033 * commands/boot.c (grub_boot_init): Likewise.
19034 (GRUB_MOD_INIT): Likewise.
19035 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
19036 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
19037 (GRUB_MOD_INIT): Likewise.
19038 * commands/cmp.c (grub_cmp_init): Likewise.
19039 (GRUB_MOD_INIT): Likewise.
19040
19041 * normal/arg.c: Use <> instead of "" to include header files.
19042 (SHORT_ARG_HELP): New macro.
19043 (SHORT_ARG_USAGE): Likewise.
19044 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
19045 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
19046 descriptions.
19047 (find_short): Check if C is 'h' or 'u' explicitly.
19048 (grub_arg_show_help): Use space characters instead of tabs. Treat
19049 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
19050 are shown with --help and --usage only if they are not used for
19051 the command itself.
19052 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
19053 'h' and 'u'.
19054
19055 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
19056 const into "longarg". Change the type of "shortarg" to int.
19057
f806d18e 190582005-07-17 Yoshinori Okuji <okuji@enbug.org>
19059
19060 * boot/i386/pc/boot.S (boot_drive_check): New label.
19061
19062 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
19063 macro.
19064
19065 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
19066 which do not pass a boot drive correctly. Copied from GRUB Legacy.
19067
e293232b 190682005-07-17 Yoshinori Okuji <okuji@enbug.org>
19069
19070 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
19071 When turning off Gate A20, skip the check and return immediately,
19072 because this is not fatal usually.
19073
ebedfd00 190742005-07-17 Yoshinori Okuji <okuji@enbug.org>
19075
19076 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
19077 be 0x7C00 instead of 0x8000.
19078
19079 * boot/i386/pc/pxeboot.S: Rewritten.
19080
19081 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
19082 EXT_C.
19083 (gate_a20_check_state): Read a byte from 0x108000. Invert the
19084 result.
19085
654fc59f 190862005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
19087
19088 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
19089 robustness. This routine now supports a BIOS call and System
19090 Control Port A to modify the gate A20.
19091
19092 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
19093 Increased to 0x440.
19094
09f9923f 190952005-07-12 Hollis Blanchard <hollis@penguinppc.org>
19096
19097 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
19098 device path and resulting ihandle.
19099 (grub_ofdisk_close): dprintf the ihandle being closed.
19100 (grub_ofdisk_read): dprintf function parameters.
19101 * kern/mm.c (grub_mm_init_region): Likewise.
19102 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
19103 (grub_linux_boot): dprintf the Linux entry point, initrd address and
19104 size, and boot arguments.
19105 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
19106 before loading into memory.
19107 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
19108 before loading into memory.
19109
7ef504d8 191102005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
19111
19112 * kern/mm.c: Added much documentation.
19113 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
19114 8, set to 5 instead of 8.
19115
e0f050c2 191162005-07-10 Yoshinori Okuji <okuji@enbug.org>
19117
19118 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
19119
19120 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
19121 (grub_mkdevicemap_SOURCES): New variable.
19122
19123 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
19124 lib/device.c of GRUB Legacy.
19125
7224189a 191262005-07-10 Yoshinori Okuji <okuji@enbug.org>
19127
19128 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
19129 instead of PATH is NULL.
19130
68c864eb 191312005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
19132
19133 * commands/cmp.c (BUFFER_SIZE): New macro.
19134 (grub_cmd_cmp): Close the right file at the right time. Compare
19135 only data just read. Don't report files of different size as
19136 identical. Dynamically allocate buffers. Move variable
19137 declarations at the beginning of function.
19138
e6f3e614 191392005-07-09 Yoshinori Okuji <okuji@enbug.org>
19140
19141 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
19142 reverse.
19143
f8f1559a 191442004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
19145
19146 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
19147 when backspace is pressed at beginning of line.
19148
39c9d41d 191492005-07-03 Yoshinori Okuji <okuji@enbug.org>
19150
19151 * DISTLIST: Added genfslist.sh.
19152
19153 * normal/main.c (fs_module_list): New variable.
19154 (autoload_fs_module): New function.
19155 (read_fs_list): Likewise.
19156 (grub_normal_execute): Call read_fs_list.
19157
19158 * kern/fs.c (grub_fs_autoload_hook): New variable.
19159 (grub_fs_probe): Added support for auto-loading.
19160
19161 * include/grub/normal.h (struct grub_fs_module_list): New struct.
19162 (grub_fs_module_list_t): New type.
19163
19164 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
19165 (grub_fs_autoload_hook): New prototype.
19166
19167 * genfslist.sh: New file.
f19dbdb7 19168
39c9d41d 19169 * genmk.rb: Added a rule to generate a filesystem list.
19170
121c1d83 191712005-06-30 Marco Gerards <metgerards@student.han.nl>
19172
19173 * configure.ac: Fix the test for cross-compiling.
19174
19175 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
19176 define GRUB_UTIL anymore.
19177
19178 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
19179 so this function works on other systems than just big endian.
19180 (load_modules): Likewise.
19181 (add_segments): Likewise.
19182
e75d76e1 191832005-06-23 Hollis Blanchard <hollis@penguinppc.org>
19184
19185 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
19186 contains `l' modifier, get a long from va_arg().
19187
50b5a0a7 191882005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
19189
19190 * kern/mm.c (grub_free): If the next free block which is being
19191 merged is the first free block, set the first block to the block
19192 being freed.
19193 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
19194
89371b20 191952005-05-08 Hollis Blanchard <hollis@penguinppc.org>
19196
19197 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
19198 `grub_ieee1275_chosen'.
19199
168d6e58 192002005-05-08 Hollis Blanchard <hollis@penguinppc.org>
19201
19202 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
19203 (grub_ieee1275_chosen): New variable.
19204 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
19205 `chosen'.
19206 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
19207 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
19208 Rename first argument to `phandle' for consistency.
19209 (grub_ieee1275_get_property_length): Likewise.
19210 (grub_ieee1275_next_property): Likewise. Change type of first argument
19211 to grub_ieee1275_phandle_t.
19212 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
19213 Move export next to declaration.
19214 (grub_ieee1275_chosen): New variable.
19215 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
19216 Correct cosmetic typo.
19217 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
19218 `grub_ieee1275_chosen'.
19219 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
19220 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
19221 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
19222 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
19223 `grub_ieee1275_chosen'.
19224
ca5baa3f 192252005-05-10 Hollis Blanchard <hollis@penguinppc.org>
19226
19227 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
19228 /chosen/bootargs.
19229 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
19230 /chosen/bootargs as "variable=value" pairs.
19231
708b345f 192322005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
19233
19234 * include/grub/misc.h (grub_dprintf): New macro.
19235 (grub_real_dprintf): New prototype.
19236 (grub_strword): Likewise.
19237 (grub_iswordseparator): Likewise.
19238 * kern/misc.c (grub_real_dprintf): New function.
19239 (grub_strword): Likewise.
19240 (grub_iswordseparator): Likewise.
19241
f4c5e67c 192422005-04-30 Hollis Blanchard <hollis@penguinppc.org>
19243
19244 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
19245 (roundup): Remove macro.
19246 (grub_ieee1275_flags): Make static.
19247 (grub_ieee1275_realmode): Remove.
19248 (grub_ieee1275_test_flag): New function.
19249 (grub_ieee1275_set_flag): Likewise.
19250 (find_options): Rename to `grub_ieee1275_find_options'; update
19251 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
19252 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
19253 (cmain): New prototype.
19254 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
19255 `grub_ieee1275_flags' directly.
19256 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
19257 machine/biosdisk.h.
19258 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
19259 Don't include grub/machine/init.h.
19260 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
19261 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
19262 Remove prototype.
19263 (grub_ieee1275_realmode): Likewise.
19264 (grub_ieee1275_flag): New enum.
19265 (grub_ieee1275_test_flag): New prototype.
19266 (grub_ieee1275_set_flag): New prototype.
19267 * include/grub/powerpc/ieee1275/init.h: Remove file.
19268 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
19269 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
19270 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
19271 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
19272 comment.
19273 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
19274 `grub_ieee1275_test_flag'.
19275 (grub_ieee1275_encode_devname): Likewise.
19276
ed16607e 192772005-04-21 Hollis Blanchard <hollis@penguinppc.org>
19278
19279 * include/grub/powerpc/ieee1275/ieee1275.h
19280 (grub_ieee1275_encode_devname): New prototype.
19281 (grub_ieee1275_get_filename): Likewise.
19282 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
19283 function.
19284 (grub_set_prefix): Likewise.
19285 (grub_machine_init): Call grub_set_prefix.
19286 * kern/powerpc/ieee1275/openfw.c: Fix typos.
19287 (grub_parse_type): New enum.
19288 (grub_ieee1275_get_devargs): New function.
19289 (grub_ieee1275_get_devname): Likewise.
19290 (grub_ieee1275_parse_args): Likewise.
19291 (grub_ieee1275_get_filename): Likewise.
19292 (grub_ieee1275_encode_devname): Likewise.
19293
be369920 192942005-03-30 Marco Gerards <metgerards@student.han.nl>
19295
19296 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
19297 `grub_loader_unset'.
19298
a5ce3a4a 192992005-03-26 Hollis Blanchard <hollis@penguinppc.org>
19300
19301 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
19302 instead of grub_ieee1275_interpret.
19303 (grub_halt_init): New function.
19304 (grub_halt_fini): Likewise.
19305 (GRUB_MOD_INIT): Correct message grammar.
19306 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
19307 instead of grub_ieee1275_interpret.
19308 (grub_reboot_init): New function.
19309 (grub_reboot_fini): Likewise.
19310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
19311 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
19312 util/i386/pc/misc.c with commands/ieee1275/halt.c,
19313 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
19314 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
19315 function.
19316 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
19317 Add prototype.
19318 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
19319 prototype.
19320 (grub_halt): Likewise.
19321 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
19322 (cmain): Remove __attribute__((unused)).
19323 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
19324 (grub_heap_len): Likewise.
19325 (grub_machine_fini): New function.
19326 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
19327 (grub_halt): Likewise.
19328 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
19329 function.
19330 * util/powerpc/ieee1275/misc.c: New file.
19331
0058f771 193322005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
19333
19334 * DISTLIST: New file.
19335 * gendistlist.sh: Likewise.
f19dbdb7 19336
0058f771 19337 * Makefile.in (COMMON_DISTFILES): Removed.
19338 (BOOT_DISTFILES): Likewise.
19339 (CONF_DISTFILES): Likewise.
19340 (DISK_DISTFILES): Likewise.
19341 (FS_DISTFILES): Likewise.
19342 (INCLUDE_DISTFILES): Likewise.
19343 (KERN_DISTFILES): Likewise.
19344 (LOADER_DISTFILES): Likewise.
19345 (TERM_DISTFILES): Likewise.
19346 (UTIL_DISTFILES): Likewise.
19347 (DISTFILES): Likewise.
19348 (uninstall): Uninstall files in $(pkgdata_DATA).
19349 (DISTLIST): New target.
19350 (distdir): Use the contents of the file DISTLIST to get a list of
19351 distributed files.
19352
46b3b8a5 193532005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
19354
19355 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
19356 descriptor. This is ported from GRUB Legacy.
19357
19358 * gencmdlist.sh: Added an extra semicolon to make it work with
19359 old sed versions. Reported by Robert Bihlmeyer
19360 <robbe@orcus.priv.at>.
19361
5822ff87 193622005-03-08 Yoshinori Okuji <okuji@enbug.org>
19363
19364 Automatic loading of commands is supported.
f19dbdb7 19365
5822ff87 19366 * normal/main.c (read_command_list): New function.
19367 (grub_normal_execute): Call read_command_list.
19368
19369 * normal/command.c (grub_register_command): Return zero or CMD.
19370 Allocate CMD->NAME from the heap.
19371 Initialize CMD->MODULE_NAME to zero.
19372 Find the same name as well. If the same command is found and it is
19373 a dummy command, overwrite members. If it is not a dummy command,
19374 return zero.
19375 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
19376 (grub_command_find): If a dummy command is found, load a module
19377 and retry to find a command only once.
19378
19379 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
19380 make sure that each command is loaded.
19381
19382 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
19383 macro.
19384 (struct grub_command): Remove const from the member `name'.
19385 Add a new member `module_name'.
19386 (grub_register_command): Return grub_command_t.
19387
19388 * commands/help.c (grub_cmd_help): Call grub_command_find to make
19389 sure that each command is loaded.
19390
19391 * genmk.rb (PModule::rule): Specify a module name without the
19392 suffix ".mod" to gencmdlist.sh.
19393
7b1f4b57 193942005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
19395
19396 * gencmdlist.sh: New file.
f19dbdb7 19397
7b1f4b57 19398 * genmk.rb (PModule::rule): Generate a rule for a command list.
19399 Clean command.lst.
19400 Generate command.lst from $(COMMANDFILES).
19401
19402 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
19403 (DATA): Added $(pkgdata_DATA).
19404 (install-local): Install files in $(pkgdata_DATA).
19405
062aaf39 194062005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
19407
19408 * term/i386/pc/vga.c (debug_command): Removed.
19409 (GRUB_MOD_INIT): Do not register the command "debug".
19410
19411 From Hollis Blanchard:
19412 * commands/configfile.c: New file.
19413 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19414 commands/configfile.c.
19415 (pkgdata_MODULES): Added configfile.mod.
19416 (configfile_mod_SOURCES): New variable.
19417 (configfile_mod_CFLAGS): Likewise.
19418 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
19419 commands/configfile.c.
19420 (pkgdata_MODULES): Added configfile.mod.
19421 (configfile_mod_SOURCES): New variable.
19422 (configfile_mod_CFLAGS): Likewise.
19423 * util/grub-emu.c (main): Call grub_configfile_init and
19424 grub_configfile_fini.
19425 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
19426 prototype.
19427 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 19428
cee01aa6 194292005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
19430
19431 * normal/arg.c (grub_arg_show_help): Do not show the bug report
19432 address.
19433
19434 * commands/help.c (grub_cmd_help): Do not print newlines after
19435 the last command in print_command_help.
19436
93f3a1d8 194372005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
19438
19439 * commands/default.h: New file.
19440 * commands/timeout.h: Likewise.
19441 * normal/context.c: Likewise.
f19dbdb7 19442
93f3a1d8 19443 * util/misc.c: Do not include sys/times.h.
19444 Include sys/time.h and grub/machine/time.h.
19445 (grub_get_rtc): Rewritten with gettimeofday.
19446
19447 * util/grub-emu.c (main): Call grub_default_init and
19448 grub_timeout_init before grub_normal_init, and call
19449 grub_timeout_fini and grub_default_fini after grub_main.
19450
19451 * util/console.c (grub_ncurses_checkkey): Return the read
19452 character or -1.
19453
19454 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
19455 timeouts.
19456
19457 * normal/main.c (read_config_file): Push MENU. If this fails,
19458 print an error and wait for a user input.
19459 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
19460 If a menu is empty or an error occurs, pop MENU.
19461 (grub_normal_execute): Pop and free MENU after grub_menu_run
19462 returns.
19463
19464 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
19465
19466 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
19467 include time.h.
19468 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
19469 without GRUB_UTIL.
19470 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
19471 time.h.
19472 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
19473 without GRUB_UTIL.
19474
19475 * include/grub/normal.h (struct grub_menu_list): New struct.
19476 (grub_menu_list_t): New type.
19477 (struct grub_context): New struct.
19478 (grub_context_t): New type.
19479 (grub_register_command): Got rid of EXPORT_FUNC.
19480 (grub_unregister_command): Likewise.
19481 (grub_context_get): New prototype.
19482 (grub_context_get_current_menu): Likewise.
19483 (grub_context_push_menu): Likewise.
19484 (grub_context_pop_menu): Likewise.
19485 [GRUB_UTIL] (grub_default_init): Likewise.
19486 [GRUB_UTIL] (grub_default_fini): Likewise.
19487 [GRUB_UTIL] (grub_timeout_init): Likewise.
19488 [GRUB_UTIL] (grub_timeout_fini): Likewise.
19489
19490 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
19491 commands/timeout.c and normal/context.c.
19492 (pkgdata_MODULES): Added default.mod and timeout.mod.
19493 (normal_mod_SOURCES): Added normal/context.c.
19494 (default_mod_SOURCES): New variable.
19495 (default_mod_CFLAGS): Likewise.
19496 (timeout_mod_SOURCES): Likewise.
19497 (timeout_mod_CFLAGS): Likewise.
19498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
19499 conf/i386-pc.rmk.
19500 (pkgdata_MODULES): Added default.mod and timeout.mod.
19501 (normal_mod_SOURCES): Added normal/context.c.
19502 (default_mod_SOURCES): New variable.
19503 (default_mod_CFLAGS): Likewise.
19504 (timeout_mod_SOURCES): Likewise.
19505 (timeout_mod_CFLAGS): Likewise.
19506
19507 * Makefile.in (all-local): Added $(MKFILES).
19508
4ed2e1dd 195092005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
19510
19511 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
19512 (grub_emu_SOURCES): Likewise.
19513 (pkgdata_MODULES): Add `sun.mod'.
19514 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19516 `partmap/sun.c'.
19517 (pkgdata_MODULES): Add `sun.mod'.
19518 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
19519 * include/grub/partition.h (grub_sun_partition_map_init): New
19520 prototype.
19521 (grub_sun_partition_map_fini): Likewise.
19522 * partmap/sun.c: New file.
19523 * util/grub-emu.c (main): Initialize and de-initialize the sun
19524 partitionmap support.
19525
4d4e372e 195262005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
19527
19528 This implements an Emacs-like menu entry editor.
f19dbdb7 19529
4d4e372e 19530 * normal/menu_entry.c: New file.
f19dbdb7 19531
4d4e372e 19532 * util/console.c (grub_ncurses_putchar): Translate some Unicode
19533 characters to ASCII.
19534 (saved_char): New variable.
19535 (grub_ncurses_checkkey): Rewritten completely.
19536 (grub_ncurses_getkey): Likewise.
19537 (grub_ncurses_init): Call raw instead of cbreak.
19538
19539 * normal/menu.c (print_entry): Do not put a space.
19540 (init_page): Renamed to ...
19541 (grub_menu_init_page): ... this. All callers changed.
19542 (edit_menu_entry): Removed.
19543 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
19544
19545 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
19546
19547 * kern/misc.c (grub_vprintf): Call grub_refresh.
19548
19549 * normal/menu.c (DISP_LEFT): Renamed to ...
19550 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
19551 * normal/menu.c (DISP_UP): Renamed to ...
19552 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
19553 * normal/menu.c (DISP_RIGHT): Renamed to ...
19554 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
19555 * normal/menu.c (DISP_DOWN): Renamed to ...
19556 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
19557 * normal/menu.c (DISP_HLINE): Renamed to ...
19558 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
19559 * normal/menu.c (DISP_VLINE): Renamed to ...
19560 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
19561 * normal/menu.c (DISP_UL): Renamed to ...
19562 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
19563 * normal/menu.c (DISP_UR): Renamed to ...
19564 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
19565 * normal/menu.c (DISP_LL): Renamed to ...
19566 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
19567 * normal/menu.c (DISP_LR): Renamed to ...
19568 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
19569 * normal/menu.c (TERM_WIDTH): Renamed to ...
19570 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
19571 * normal/menu.c (TERM_HEIGHT): Renamed to ...
19572 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
19573 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
19574 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
19575 * normal/menu.c (TERM_MARGIN): Renamed to ...
19576 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
19577 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
19578 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
19579 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
19580 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
19581 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
19582 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
19583 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
19584 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
19585 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
19586 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
19587 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
19588 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
19589 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
19590 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
19591 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
19592 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
19593 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
19594 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
19595 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
19596 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
19597 All callers changed.
19598
19599 * include/grub/normal.h: New prototype.
19600
19601 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19602 normal/menu_entry.c.
19603 (normal_mod_SOURCES): Likewise.
19604 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19605 (normal_mod_SOURCES): Likewise.
19606
e6b92c8a 196072005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
19608
19609 * include/grub/normal.h (grub_halt_init): New prototype.
19610 (grub_halt_fini): Likewise.
19611 (grub_reboot_init): Likewise.
19612 (grub_reboot_fini): Likewise.
19613
19614 * util/grub-emu.c: Include signal.h.
19615 (main_env): New global variable.
19616 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
19617 catch C-c.
19618 (grub_machine_fini): New function.
19619 (main): Call grub_halt_init and grub_reboot_init before
19620 grub_main, and grub_reboot_fini and grub_halt_fini after it.
19621 Call setjmp with MAIN_ENV to go back afterwards.
19622 Call grub_machine_fini right before return.
19623
19624 * include/grub/util/misc.h: Include setjmp.h.
19625 (main_env): New prototype.
19626
19627 * include/grub/kernel.h (grub_machine_fini): New prototype.
19628 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
19629 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
19630
19631 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
19632 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
19633 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 19634
e6b92c8a 19635 * util/i386/pc/misc.c: New file.
f19dbdb7 19636
e6b92c8a 19637 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
19638 util/i386/pc/misc.c, commands/i386/pc/halt.c and
19639 commands/i386/pc/reboot.c.
19640
c642636f 196412005-02-14 Guillem Jover <guillem@hadrons.org>
19642
19643 * include/grub/dl.h (grub_dl_check_header): New prototype.
19644 (grub_arch_dl_check_header): Change return type to grub_err_t,
19645 remove size parameter and export function. Update all callers.
19646 * kern/dl.c (grub_dl_check_header): New function.
19647 (grub_dl_load_core): Use `grub_dl_check_header' instead of
19648 `grub_arch_dl_check_header'. Check ELF type. Check if sections
19649 are inside the core.
19650 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
19651 independent ELF header checks.
19652 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
19653 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
19654 `grub_dl_check_header' instead of explicit checks. Check for the
19655 ELF type.
19656 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
19657 `grub_dl_check_header' instead of explicit checks. Remove arch
19658 specific ELF header checks.
19659
e6b92c8a 19660 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
19661 argument SIZE.
19662
5eabe94b 196632005-02-13 Hollis Blanchard <hollis@penguinppc.org>
19664
19665 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
19666 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
19667
1b14a681 196682005-02-12 Hollis Blanchard <hollis@penguinppc.org>
19669
19670 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 19671 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 19672 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 19673 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 19674 * partmap/amiga.c (amiga_partition_map_iterate): Return
19675 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
19676 * partmap/apple.c (apple_partition_map_iterate): Likewise.
19677
aca108aa 196782005-02-01 Guillem Jover <guillem@hadrons.org>
19679
19680 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
19681 help info.
19682
c9f9c556 196832005-01-31 Marco Gerards <metgerards@student.han.nl>
19684
19685 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
19686 Removed prototype.
19687 (grub_rescue_cmd_linux): New prototype.
19688 (grub_rescue_cmd_initrd): Likewise.
19689 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
19690 `bi_rec'.
19691 (grub_linux_release_mem): Release the memory for the initrd.
19692 (grub_load_linux): Renamed from this...
19693 (grub_rescue_cmd_linux): ...To this. Changed all callers.
19694 Changed `entry' not to be static. Loop over memory regions to
19695 find another one when the default fails.
19696 (grub_rescue_cmd_initrd): New function.
19697 (grub_linux_init): Remove function.
19698 (grub_linux_fini): Likewise.
19699 (GRUB_MOD_INIT): Register `initrd'.
19700 (GRUB_MOD_FINI): Unregister `initrd'.
19701 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
19702 Function removed.
19703 (grub_linux_normal_fini): Likewise.
19704 (GRUB_MOD_INIT): Register `initrd'.
19705 (GRUB_MOD_FINI): Unregister `initrd'.
19706
990cf3aa 197072005-01-31 Marco Gerards <metgerards@student.han.nl>
19708
19709 * commands/help.c: New file.
19710 * normal/arg.c (show_help): Renamed to...
19711 (grub_arg_show_help): ... this.
19712 * commands/i386/pc/halt.c: New file.
19713 * commands/i386/pc/reboot.c: Likewise.
19714 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
19715 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
19716 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
19717 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
19718 variables.
19719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19720 `commands/help.c'.
19721 (pkgdata_MODULES): Add `help.mod'.
19722 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
19723 * grub/i386/pc/init.h (grub_reboot): New prototype.
19724 (grub_halt): Likewise.
19725 * include/grub/normal.h (grub_arg_show_help): New prototype.
19726 (grub_help_init): Likewise.
19727 (grub_help_fini): Likewise.
19728 * util/grub-emu.c (main): Initialize and deinitialize the help
19729 command.
19730
19731 * normal/cmdline.c (grub_cmdline_get): Doc fix.
19732
19733 * normal/command.c (grub_command_init): Fixed the description of
19734 the `set' and `unset' commands.
19735
197362005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 19737
19738 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
19739 function.
19740 * commands/ieee1275/halt.c: New file.
19741 * commands/ieee1275/reboot.c: Likewise.
19742 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
19743 `__attribute__ ((unused))'. Some GCS related fixed.
19744 (grub_suspend_init) [GRUB_UTIL]: Function removed.
19745 (grub_suspend_fini): Likewise.
19746 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
19747 and `halt.mod'.
19748 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
19749 (halt_mod_CFLAGS): New variables.
19750 * include/grub/powerpc/ieee1275/ieee1275.h
19751 (grub_ieee1275_interpret): New prototype.
19752
1ab09cc7 197532005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
19754
19755 * include/grub/misc.h (memmove): New prototype.
19756 (memcpy): Likewise.
19757
8b8cbdb2 197582005-01-22 Hollis Blanchard <hollis@penguinppc.org>
19759
19760 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
19761 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
19762
e3741a27 197632005-01-22 Marco Gerards <metgerards@student.han.nl>
19764
19765 * kern/misc.c (grub_strndup): Function rewritten.
19766
776bd780 197672005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
19768
19769 * normal/menu.c (TERM_WIDTH): Macro redefined.
19770 (TERM_TOP_BORDER_Y): Likewise.
19771 (draw_border): Replaced while-loop by a for-loop. Make the number
19772 of lines consistent with the number of lines displayed in
19773 print_entries. Added a margin below the rectangle.
19774 (print_entry): Make the entry fit in the rectangle.
19775 (print_entries): Display the scroll arrows next to the right
19776 border.
19777
78026bce 197782005-01-21 Marco Gerards <metgerards@student.han.nl>
19779
19780 * fs/minix.c (grub_minix_find_file): Reserve more space for
19781 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
19782 `grub_strncpy' to copy `path' into it.
19783
67bbaf0f 197842005-01-21 Marco Gerards <metgerards@student.han.nl>
19785
19786 Add the loopback device, a device via which files can be accessed
19787 as devices.
f19dbdb7 19788
67bbaf0f 19789 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
19790 (pkgdata_MODULES): Add loopback.mod.
19791 (loopback_mod_SOURCES): New variable.
19792 (loopback_mod_CFLAGS): Likewise.
19793 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
19794 `disk/loopback.c'.
19795 (pkgdata_MODULES): Add loopback.mod.
19796 (loopback_mod_SOURCES): New variable.
19797 (loopback_mod_CFLAGS): Likewise.
19798 * disk/loopback.c: new file.
19799 * include/grub/normal.h (grub_loop_init): New prototype.
19800 (grub_loop_fini): New prototype.
19801 * util/grub-emu.c (main): Initialize and de-initialize loopback
19802 support.
19803 * include/grub/disk.h (grub_disk_dev_id): Add
19804 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
19805
6f1c18bd 198062005-01-20 Hollis Blanchard <hollis@penguinppc.org>
19807
19808 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
19809 function.
19810 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
19811 (suspend_mod_SOURCES): New variable.
19812 (suspend_mod_CFLAGS): Likewise.
19813 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
19814 New prototype.
19815 * commands/ieee1275/suspend.c: New file.
19816
b38551da 198172005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
19818
19819 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 19820 ((unused))' to `__attribute__ ((used))'.
b38551da 19821 (GRUB_MOD_FINI): Likewise.
19822 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
19823 * genmk.rb (PModule): Assign space to common symbols when linking
19824 modules.
19825
777aff39 198262005-01-20 Marco Gerards <metgerards@student.han.nl>
19827
19828 * include/grub/mm.h (grub_mm_init_region): Change the type of the
19829 `unsigned' arguments to `grub_size_t'.
19830 (grub_malloc): Likewise.
19831 (grub_realloc): Likewise.
19832 (grub_memalign): Likewise.
19833 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
19834 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
19835 * util/misc.c (grub_malloc): Likewise.
19836 (grub_realloc): Likewise.
19837 * kern/mm.c (get_header_from_pointer): Change the casts to
19838 `unsigned' into a cast to `grub_size_t'.
19839
19840 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
19841 point to `currnode' when `currnode' is changed.
19842
19843 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
19844 Schottelius <nico-linux@schottelius.org>.
19845
d0ff18e1 198462005-01-09 Hollis Blanchard <hollis@penguinppc.org>
19847
19848 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
19849 (note_path): Remove variable.
19850 (GRUB_IEEE1275_NOTE_NAME): New macro.
19851 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
19852 (grub_ieee1275_note_hdr): New structure.
19853 (grub_ieee1275_note_desc): Likewise.
19854 (grub_ieee1275_note): Likewise.
19855 (load_note): Remove `dir' argument. All callers updated. Remove
19856 `note_img' and `path'. Do not load a file from `note_path'.
19857 Initialize a struct grub_ieee1275_note and write that to `out'.
19858 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
19859
4ca7004c 198602005-01-05 Marco Gerards <metgerards@student.han.nl>
19861
19862 * util/misc.c (grub_util_read_image): Revert last change. It
19863 called `grub_util_read_at', which seeks from the beginning of the
19864 file.
19865
0b412211 198662005-01-04 Hollis Blanchard <hollis@penguinppc.org>
19867
19868 * TODO: Add note about endianness in grub-mkimage.
19869 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
19870 section.
19871 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
19872 (grub_mkimage_SOURCES): New target.
19873 * include/grub/kernel.h (grub_start_addr): Remove variable.
19874 (grub_end_addr): Likewise.
19875 (grub_total_module_size): Likewise.
19876 (grub_kernel_image_size): Likewise.
19877 (GRUB_MODULE_MAGIC): New constant.
19878 (grub_module_info): New structure.
19879 (grub_arch_modules_addr): New prototype.
19880 (grub_get_end_addr): Remove prototype.
19881 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
19882 * include/grub/powerpc/ieee1275/kernel.h: New file.
19883 * include/grub/util/misc.h (grub_util_get_fp_size): New
19884 prototype.
19885 (grub_util_read_at): Likewise.
19886 (grub_util_write_image_at): Likewise.
19887 * kern/main.c (grub_get_end_addr): Remove function.
19888 (grub_load_modules): Call grub_arch_modules_addr instead of using
19889 grub_end_addr. Look for a grub_module_info struct in memory. Use
19890 the grub_module_info fields instead of calling grub_get_end_addr
19891 as loop conditions. Move grub_add_unused_region code here.
19892 (grub_add_unused_region): Remove function.
19893 * kern/i386/pc/init.c: Include grub/cache.h.
19894 (grub_machine_init): Remove call to grub_get_end_addr. Remove
19895 one call to add_mem_region.
19896 (grub_arch_modules_addr): New function.
19897 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
19898 (grub_total_module_size): Likewise.
19899 Include grub/machine/kernel.h.
19900 (grub_arch_modules_addr): New function.
19901 * util/grub-emu.c (grub_end_addr): Remove variable.
19902 (grub_total_module_size): Likewise.
19903 (grub_arch_modules_addr): New function.
19904 * util/misc.c: Include unistd.h.
19905 (grub_util_get_fp_size): New function.
19906 (grub_util_read_at): Likewise.
19907 (grub_util_write_image_at): Likewise.
19908 (grub_util_read_image): Call grub_util_read_at.
19909 (grub_util_write_image): Call grub_util_write_image_at.
19910 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
19911 additional memory in kernel_img for a struct grub_module_info.
19912 Fill in that grub_module_info.
19913 * util/powerpc/ieee1275/grub-mkimage.c: New file.
19914
458786f8 199152005-01-03 Hollis Blanchard <hollis@penguinppc.org>
19916
19917 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
19918 New function.
19919 * include/grub/powerpc/ieee1275/ieee1275.h
19920 (grub_ieee1275_milliseconds): New prototype.
19921 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
19922 Change to 1000.
19923 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
19924 grub_ieee1275_milliseconds.
19925
ac507d1b 199262005-01-03 Hollis Blanchard <hollis@penguinppc.org>
19927
19928 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
19929 variable.
19930 (find_options): New function.
19931 (cmain): Call find_options.
19932 * include/grub/powerpc/ieee1275/ieee1275.h
19933 (grub_ieee1275_realmode): New extern variable.
19934 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
19935 grub_map if grub_ieee1275_realmode is false.
19936
6b8fd1c4 199372004-12-29 Marco Gerards <metgerards@student.han.nl>
19938
19939 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
19940 lines are inserted and make it work like readline. Reported by
19941 Vincent Pelletier <subdino2004@yahoo.fr>.
19942
8514a1e0 199432004-12-28 Marco Gerards <metgerards@student.han.nl>
19944
19945 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
19946
19947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
19948 `kern/powerpc/cache.S'.
19949
924b6140 199502004-12-27 Marco Gerards <metgerards@student.han.nl>
19951
19952 * genmk.rb: Handle the `Program' class in the main loop. Written
19953 by Johan Rydberg <jrydberg@gnu.org>.
19954 (Program): New class.
19955 (programs): New variable.
19956 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
19957 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
19958 instead of "grub/kernel.h". Include <grub/machine/init.h>.
19959 (help_arch): Function removed.
19960 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
19961 `powerpc/libgcc.h' and `loader.h'.
19962 (pkgdata_PROGRAMS): New variable.
19963 (sbin_UTILITIES): Variable removed.
19964 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
19965 (grubof_SOURCES): Variable re-defined so it only includes the
19966 core functionality.
19967 (grubof_CFLAGS): Remove `-DGRUBOF'.
19968 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
19969 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
19970 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
19971 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
19972 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
19973 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
19974 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
19975 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
19976 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
19977 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
19978 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
19979 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
19980 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
19981 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
19982 (pc_mod_CFLAGS): New variables.
19983 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
19984 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
19985 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
19986 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
19987 Moved from here...
19988 * include/grub/i386/pc/init.h (grub_os_area_addr)
19989 (rub_os_area_size): ... to here.
19990 * include/grub/powerpc/ieee1275/ieee1275.h
19991 (grub_ieee1275_entry_fn): Export symbol.
19992 * include/grub/powerpc/ieee1275/init.h: New file.
19993 * include/grub/powerpc/libgcc.h: Likewise.
19994 * include/grub/cache.h: Likewise.
19995 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
19996 <hollis@penguinppc.org>.
19997 * kern/dl.c: Include <grub/cache.h>.
19998 (grub_dl_flush_cache): New function.
19999 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
20000 for this module.
20001 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
20002 (grub_console_init): Removed prototypes.
20003 (grub_machine_init): Don't initialize the modules anymore.
20004 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
20005 static.
20006 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
20007 Macro undef removed.
20008 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
20009 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
20010 relocation `R_PPC_REL32'. Return an error when the relocation is
20011 unknown.
20012 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
20013 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
20014 * util/misc.c (grub_arch_sync_caches): Likewise.
20015
e4b47e0c 200162004-12-19 Marco Gerards <metgerards@student.han.nl>
20017
20018 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
20019 `symlist.c', add `grubof_symlist.c'.
20020 (symlist.c): Variable removed.
20021 (grubof_HEADERS): Variable added.
20022 (grubof_symlist.c): New target.
20023 (kernel_syms.lst): Use `grubof_HEADERS' instead of
20024 `kernel_img_HEADERS'.
20025 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
20026 * kern/powerpc/dl.c: New file.
20027 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
20028 Function removed.
20029 (grub_arch_dl_relocate_symbols): Likewise.
20030 (grub_register_exported_symbols): Likewise.
20031
4ceb3636 200322004-12-13 Marco Gerards <metgerards@student.han.nl>
20033
20034 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
20035 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
20036 to fail instead. Reported by Vincent Pelletier
20037 <subdino2004@yahoo.fr>.
20038
20039 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
20040 it is not allocated. Reported by Vincent Pelletier
20041 <subdino2004@yahoo.fr>.
20042
20043 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
20044 output so the output looks better.
f19dbdb7 20045
3f1578fe 200462004-12-04 Marco Gerards <metgerards@student.han.nl>
20047
20048 Modulize the partition map support and add support for the amiga
20049 partition map.
f19dbdb7 20050
3f1578fe 20051 * commands/ls.c: Include <grub/partition.h> instead of
20052 <grub/machine/partition.h>.
20053 * kern/disk.c: Likewise.
20054 * kern/rescue.c: Likewise.
20055 * loader/i386/pc/chainloader.c: Likewise.
20056 * normal/cmdline.c: Likewise.
20057 * kern/powerpc/ieee1275/init.c: Likewise.
20058 (grub_machine_init): Call `grub_pc_partition_map_init',
20059 `grub_amiga_partition_map_init' and
20060 `grub_apple_partition_map_init'.
20061 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
20062 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
20063 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
20064 `partition.h' and `pc_partition.h'.
20065 (grub_setup_SOURCES): Remove
20066 `disk/i386/pc/partition.c'. Add `kern/partition.c',
20067 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
20068 (grub_emu_SOURCES): Likewise.
20069 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
20070 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
20071 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
20072 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
20073 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
20074 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
20075 (grubof_SOURCES): Likewise.
20076 * disk/i386/pc/partition.c: File removed.
20077 * disk/powerpc/ieee1275/partition.c: Likewise.
20078 * include/grub/powerpc/ieee1275/partition.h: Likewise.
20079 * include/grub/i386/pc/partition.h: Likewise.
20080 * kern/partition.c: New file.
20081 * partmap/amiga.c: Likewise.
20082 * partmap/apple.c: Likewise.
20083 * partmap/pc.c: Likewise.
20084 * include/grub/partition.h: Likewise..
20085 * include/grub/pc_partition.h: Likewise.
20086 * util/grub-emu.c: Include <grub/partition.h> instead of
20087 <grub/machine/partition.h>.
20088 (main): Call `grub_pc_partition_map_init',
20089 `grub_amiga_partition_map_init' and
20090 `grub_apple_partition_map_init' and deinitialize afterwards.
20091 * util/i386/pc/biosdisk.c: Include `#include
20092 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
20093 `<grub/machine/partition.h>'.
20094 * util/i386/pc/grub-setup.c: Likewise.
20095 * util/i386/pc/biosdisk.c: Likewise.
20096 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
20097 partition information in case of a PC partition.
20098 * util/i386/pc/grub-setup.c: Include `#include
20099 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
20100 `<grub/machine/partition.h>'.
20101 (setup): Only access the PC specific partition information in case
20102 of a PC partition.
20103
0ef4ced9 201042004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 20105
0ef4ced9 20106 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
20107 (grub_longjmp): Likewise.
20108 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
20109 20.
20110 * normal/powerpc/setjmp.S: New file.
20111 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
20112 `normal/powerpc/setjmp.S'.
20113 (grubof_CFLAGS): Add `-DGRUBOF'.
20114 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
20115 [GRUB_UTIL && !GRUBOF].
f19dbdb7 20116
19950e29 201172004-11-16 Marco Gerards <metgerards@student.han.nl>
20118
20119 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
20120 property named `name'. Correctly handle the error returned by
20121 `grub_ieee1275_finddevice' if a device can not be opened.
20122
a2fea427 201232004-11-02 Hollis Blanchard <hollis@penguinppc.org>
20124
20125 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
20126 `actual' for negativity.
20127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
20128 kern/fshelp.c.
20129
41ea0ea3 201302004-11-01 Marco Gerards <metgerards@student.han.nl>
20131
20132 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
20133 (PAGE_OFFSET): New macro.
20134 (CRTC_ADDR_PORT): Likewise.
20135 (CRTC_DATA_PORT): Likewise.
20136 (START_ADDR_HIGH_REGISTER): Likewise.
20137 (START_ADDR_LOW_REGISTER): Likewise.
20138 (GRAPHICS_ADDR_PORT): Likewise.
20139 (GRAPHICS_DATA_PORT): Likewise.
20140 (READ_MAP_REGISTER): Likewise.
20141 (INPUT_STATUS1_REGISTER): Likewise.
20142 (INPUT_STATUS1_VERTR_BIT): Likewise.
20143 (page): New variable.
20144 (wait_vretrace): New function.
20145 (set_read_map): Likewise.
20146 (set_start_address): Likewise.
20147 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
20148 the right page.
20149 (check_vga_mem): Take the page into account.
20150 (write_char): Likewise.
20151 (write_cursor): Likewise.
20152 (scroll_up): Likewise. Copy the page to the page that is not
20153 shown and switch between both pages.
20154 (grub_vga_putchar): Fix off by one error.
20155 (grub_vga_cls): Wait for the vertical retrace. Take the page into
20156 account.
20157
ad0bd20b 201582004-11-01 Marco Gerards <metgerards@student.han.nl>
20159
20160 Add support for iso9660 (including rockridge).
f19dbdb7 20161
ad0bd20b 20162 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
20163 (iso9660_mod_SOURCES): New variable.
20164 (iso9660_mod_CFLAGS): Likewise.
20165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
20166 * include/grub/fs.h (grub_iso9660_init): New prototype.
20167 * util/grub-emu.c (main): Call `grub_iso9660_init'.
20168 * fs/iso9660.c: New file.
20169
20170 * include/grub/misc.h (grub_strncat): New prototype.
20171 * kern/misc.c (grub_strncat): New function.
f19dbdb7 20172
ad0bd20b 20173 * fs/hfs.c (grub_hfs_mount): Translate the error
20174 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
20175 * fs/jfs.c (grub_jfs_mount): Likewise.
20176 * fs/ufs.c (grub_ufs_mount): Likewise.
20177
a5477a59 201782004-10-28 Hollis Blanchard <hollis@penguinppc.org>
20179
20180 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
20181 which initialized BAT registers.
20182 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
20183 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
20184 Move from here...
20185 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
20186 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
20187 ... to here.
20188 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
20189 (grub_mapclaim): Likewise.
20190 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
20191 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
20192 hand.
20193
9304c1f8 201942004-10-19 Hollis Blanchard <hollis@penguinppc.org>
20195
20196 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
20197 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
20198 -ffreestanding and -msoft-float.
20199
86f4ae25 202002004-10-15 Hollis Blanchard <hollis@penguinppc.org>
20201
20202 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
20203 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
20204 set in grub_ieee1275_flags.
20205
38912228 202062004-10-14 Hollis Blanchard <hollis@penguinppc.org>
20207
20208 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
20209 prototype.
20210 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
20211 grub_console_init first.
20212 Change the memory range used for grub_ieee1275_claim and
20213 grub_mm_init_region.
20214 Print an error message if the claim fails.
20215 Include <grub/misc.h>.
20216
d1923dc8 202172004-10-13 Hollis Blanchard <hollis@penguinppc.org>
20218
20219 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
20220 Call grub_children_iterate for device nodes of type `scsi',
20221 `ide', or `ata'.
20222 (grub_ofdisk_open): Remove manual device alias resolution.
20223 Fix memory leak when device cannot be opened.
f19dbdb7 20224 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 20225 (grub_children_iterate): New prototype.
20226 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
20227 New function.
20228 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
20229 Return -1 if args.size was -1.
20230
4512e4f3 202312004-10-11 Hollis Blanchard <hollis@penguinppc.org>
20232
20233 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
20234 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
20235 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
20236 Open Firmware's memory for it; claim memory from _start to _end.
20237 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
20238 (_end): New extern.
20239 (_start): Zero BSS from __bss_start to _end.
20240 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
20241 New extern.
20242 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
20243
4d61feb0 202442004-10-11 Hollis Blanchard <hollis@penguinppc.org>
20245
ad0bd20b 20246 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
20247 -1 if args.base was -1.
4d61feb0 20248
026fa2f9 202492004-10-08 Hollis Blanchard <hollis@penguinppc.org>
20250
20251 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
20252 escape sequence instead of a literal ^L. Also call
20253 grub_ofconsole_gotoxy.
20254
9f2220ef 202552004-10-03 Hollis Blanchard <hollis@penguinppc.org>
20256
20257 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
20258 void * arguments to grub_addr_t. All callers updated. Also make
20259 the `result' argument optional.
20260 (grub_ieee1275_release): change void * arguments to grub_addr_t.
20261 All callers updated.
20262
8a572cd7 202632004-09-22 Hollis Blanchard <hollis@penguinppc.org>
20264
20265 * commands/ls.c (grub_ls_list_files): Use the string following the
20266 initial ')', if present, as the filesystem path.
20267 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
20268
20269 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
20270
18aa81f2 202712004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
20272
20273 Make the source code of the menu interface more readable.
f19dbdb7 20274
18aa81f2 20275 * normal/menu.c: Include grub/mm.h.
20276 (TERM_WIDTH): New macro.
20277 (TERM_HEIGHT): Likewise.
20278 (TERM_INFO_HEIGHT): Likewise.
20279 (TERM_MARGIN): Likewise.
20280 (TERM_SCROLL_WIDTH): Likewise.
20281 (TERM_TOP_BORDER_Y): Likewise.
20282 (TERM_LEFT_BORDER_X): Likewise.
20283 (TERM_BORDER_WIDTH): Likewise.
20284 (TERM_MESSAGE_HEIGHT): Likewise.
20285 (TERM_BORDER_HEIGHT): Likewise.
20286 (TERM_NUM_ENTRIES): Likewise.
20287 (TERM_FIRST_ENTRY_Y): Likewise.
20288 (TERM_ENTRY_WIDTH): Likewise.
20289 (TERM_CURSOR_X): Likewise.
20290 (draw_border): Use macros instead of magic numbers.
20291 (print_entry): Likewise.
20292 (print_entries): Likewise.
20293 (run_menu): Likewise. Also, handle the key 'e'.
20294 (run_menu_entry): Ignore empty command lines.
20295 (print_message): Added a new argument EDIT. If EDIT is true,
20296 print a different message.
20297 (init_page): Likewise.
20298 (edit_menu_entry): New function. Not implemented yet.
20299
b47efe30 203002004-09-17 Marco Gerards <metgerards@student.han.nl>
20301
20302 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
20303 can be loaded from normal mode.
f19dbdb7 20304
b47efe30 20305 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
20306 `multiboot.mod'.
20307 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
20308 (multiboot_mod_CFLAGS): New variables.
20309 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 20310 * loader/i386/pc/multiboot_normal.c: Likewise.
20311
b47efe30 20312 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
20313 attribute `unused'.
f19dbdb7 20314
b47efe30 20315 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
20316 `fdiro' to read the mode information from instead of `diro'.
20317
20318 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
20319 looking up a symlink.
20320
20321 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
20322 macro.
20323 * normal/command.c (grub_command_execute): Don't parse the
20324 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
20325 flags of the command.
20326
20327 * normal/menu.c (grub_menu_run): Fix typo.
20328
da75ac71 203292004-09-14 Hollis Blanchard <hollis@penguinppc.org>
20330
20331 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
20332
20333 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
20334 `y + 1' instead of `y - 1'.
20335
20336 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 20337
062b24c2 203382004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
20339
20340 From Hollis Blanchard <hollis@penguinppc.org>:
20341 * kern/misc.c (memmove): New alias for grub_memmove.
20342 (memcmp): New alias for grub_memcmp.
20343 (memset): New alias for grub_memset.
f19dbdb7 20344 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 20345 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 20346 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 20347 (grub_ieee1275_get_property): Likewise.
f19dbdb7 20348
8ddad845 203492004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
20350
20351 Added normal mode command `chainloader' as module chain.mod, which
20352 depends on normal.mod and _chain.mod.
f19dbdb7 20353
8ddad845 20354 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
20355 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
20356 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
20357 Deleted prototype.
20358 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
20359 but arguments parsing moved to ...
20360 (grub_chainloader_cmd): ... here. New function.
20361 * include/grub/i386/pc/chainloader.h: New file.
20362 * loader/i386/pc/chainloader_normal.c: Likewise.
20363
2c1f4ce3 203642004-09-11 Marco Gerards <metgerards@student.han.nl>
20365
20366 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
20367 (grub_mkimage_LDFLAGS): Likewise.
20368 (grub_emu_SOURCES): Likewise.
20369 (kernel_img_HEADERS): Added fshelp.h.
20370 * fs/ext2.c: Include <grub/fshelp.h>.
20371 (FILETYPE_REG): New macro.
20372 (FILETYPE_INO_REG): Likewise.
20373 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
20374 Changed all users.
20375 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
20376 all users.
20377 (grub_fshelp_node): New struct.
20378 (grub_ext2_data): Added member `diropen'. Changed member `inode'
20379 to a pointer.
20380 (grub_ext2_get_file_block): Removed function.
20381 (grub_ext2_read_block): New function.
20382 (grub_ext2_read_file): Replaced parameter `data' by `node'.
20383 This function was written.
20384 (grub_ext2_mount): Read the root inode. Create a diropen struct.
20385 (grub_ext2_find_file): Removed function.
20386 (grub_ext2_read_symlink): New function.
20387 (grub_ext2_iterate_dir): Likewise.
20388 (grub_ext2_open): Rewritten.
20389 (grub_ext2_dir): Rewritten.
20390 * include/grub/fshelp.h: New file.
20391 * fs/fshelp.c: Likewise.
20392
3c52136a 203932004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
20394
20395 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
20396 (print_message): Add a missing newline.
20397 (run_menu): Added timeout support.
20398 (run_menu_entry): New local function.
20399 (grub_menu_run): Added support for booting.
20400
20401 * kern/loader.c (grub_loader_is_loaded): New function.
20402
20403 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
20404 (grub_get_rtc): Exported.
20405
20406 * include/grub/i386/pc/time.h: Include grub/symbol.h.
20407 (grub_get_rtc): Exported.
20408
20409 * include/grub/normal.h (struct grub_command_list): Remove
20410 constant from the member `command'.
20411
20412 * include/grub/loader.h (grub_loader_is_loaded): Declared.
20413
20414 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
20415
20416 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
20417
aa033560 204182004-08-28 Marco Gerards <metgerards@student.han.nl>
20419
20420 Add support for the JFS filesystem.
20421
20422 * fs/jfs.c: New file.
20423 * include/grub/fs.h (grub_jfs_init): New prototype.
20424 (grub_jfs_fini): New prototype.
20425 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
20426 (grub_emu_SOURCES): Likewise.
20427 (pkgdata_MODULES): Add jfs.mod.
20428 (jfs_mod_SOURCES): New variable.
20429 (jfs_mod_CFLAGS): Likewise.
20430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
20431 (grubof_SOURCES): Likewise.
20432 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
20433
20434 * fs/fat.c (grub_fat_find_dir): Convert the filename little
20435 endian to the host endian.
20436 (grub_fat_utf16_to_utf8): Move function from there...
20437 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 20438 the endianness of the source string anymore.
aa033560 20439 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
20440
94bc45af 204412004-08-24 Marco Gerards <metgerards@student.han.nl>
20442
20443 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
20444 (grub_boot_fini) [GRUB_UTIL]: Likewise.
20445 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
20446 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 20447
94bc45af 20448 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
20449 (grub_hfs_iterate_dir): Make the function static. Add prototypes
20450 for `node_found' and `it_dir'.
20451 (grub_hfs_dir): Add prototype for `dir_hook'.
20452
20453 * fs/minix.c (grub_minix_get_file_block): Add prototype for
20454 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
20455 and `indir32' to silence a gcc warning.
20456
20457 * include/grub/fs.h (grub_hfs_init): New prototype.
20458 (grub_hfs_fini): Likewise.
f19dbdb7 20459
20460
97543f08 204612004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
20462
20463 Each disk device has its own id now. This is useful to make use
20464 of multiple disk devices.
f19dbdb7 20465
97543f08 20466 * include/grub/disk.h (grub_disk_dev_id): New enum.
20467 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
20468 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
20469
20470 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
20471 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
20472
20473 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
20474 GRUB_DISK_DEVICE_OFDISK_ID as an id.
20475
20476 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
20477 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
20478
20479 * include/grub/disk.h (struct grub_disk_dev): Added a new member
20480 "id" which is used by the cache manager.
20481
20482 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
20483 of just "GRUB".
20484
64372eb4 204852004-08-18 Marco Gerards <metgerards@student.han.nl>
20486
20487 * fs/hfs.c: New file.
20488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
20489 (grub_emu_SOURCES): Likewise.
20490 (pkgdata_MODULES): Add hfs.mod.
20491 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
20492 (grubof_SOURCES): Likewise.
20493 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
20494
20495 * include/grub/misc.h (grub_strncasecmp): Add prototype.
20496 * kern/misc.c (grub_strncasecmp): Add function.
20497
cc61b58f 204982004-08-14 Marco Gerards <metgerards@student.han.nl>
20499
20500 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
20501 with parentheses.
20502
20503 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
20504 (grub_ext2_dir): In case the directory entry type is unknown, read
20505 it from the inode.
20506
0ef123f6 205072004-08-02 Peter Bruin <pjbruin@dds.nl>
20508
20509 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
20510 grub_load_linux instead of grub_rescue_cmd_linux as second
20511 argument of grub_rescue_register_command.
20512
20513 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
20514
a447c5df 205152004-07-27 Marco Gerards <metgerards@student.han.nl>
20516
20517 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
20518 function.
20519 * commands/boot.c: Remove the check for `GRUB_UTIL'.
20520 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
20521 `loader/powerpc/ieee1275/linux.c',
20522 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
20523 * include/grub/powerpc/ieee1275/ieee1275.h
20524 (grub_ieee1275_release): New prototype.
20525 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
20526 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
20527 normal, boot, linux and linux_normal.
20528 * loader/powerpc/ieee1275/linux.c: New file.
20529 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20530
5a9e3546 205312004-07-12 Marco Gerards <metgerards@student.han.nl>
20532
20533 * normal/arg.c (grub_arg_parse): Correct error handling after
20534 reallocating the argumentlist (check if `argl' is not null instead
20535 of checking if `args' is not null).
20536 * kern/mm.c (grub_realloc): Return the same pointer when using the
20537 same region, instead of returning the header address.
20538
e15199cb 205392004-07-11 Marco Gerards <metgerards@student.han.nl>
20540
20541 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
20542 one block instead of two when looking for the initial partition.
20543 (grub_partition_probe): Initialize the local variable `p' with 0.
20544 Use base 10 for the grub_strtoul call.
20545 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
20546 need for one local variable.
20547 (grub_strtoul): Don't add the new value to `num', instead of that
20548 just assign it.
20549
020616c2 205502004-07-11 Marco Gerards <metgerards@student.han.nl>
20551
20552 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
20553 (pxeboot_img_SOURCES): New variable.
20554 (pxeboot_img_ASFLAGS): Likewise.
20555 (pxeboot_img_LDFLAGS): Likewise.
20556 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
20557 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
20558 <lode_leroy@hotmail.com>.
20559
6c51eb64 205602004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20561
20562 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
20563 there was no input.
20564
cfb12aff 205652004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20566
20567 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
20568 the history buffer logic.
20569
6eabba74 205702004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
20571
20572 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
20573 (FILETYPE_INO_SYMLINK): New macros.
20574 (grub_ext2_find_file): Check if the node is a directory using the
20575 inode stat information instead of using the filetype in the
20576 dirent. Exclude the first character of an absolute symlink.
20577 (grub_ext2_dir): Mask out the filetype part of the mode member of
20578 the inode.
20579
66e19ef8 205802004-05-24 Marco Gerards <metgerards@student.han.nl>
20581
20582 Add support for UFS version 1 and 2. Add support for the minix
20583 filesystem version 1 and 2, both the variants with 14 and 30 long
20584 filenames.
f19dbdb7 20585
66e19ef8 20586 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
20587 fs/minix.c.
20588 (grub_emu_SOURCES): Likewise.
20589 (pkgdata_MODULES): Add ufs.mod and minix.mod.
20590 (ufs_mod_SOURCES): New variable.
20591 (ufs_mod_CFLAGS): Likewise.
20592 (minix_mod_SOURCES): Likewise.
20593 (minix_mod_CFLAGS): Likewise.
20594 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
20595 fs/minix.c.
20596 (grubof_SOURCES): Likewise.
20597 * fs/ufs.c: New file.
20598 * fs/minix.c: New file.
20599 * include/grub/fs.h (grub_ufs_init): New prototype.
20600 (grub_ufs_fini): Likewise.
20601 (grub_minix_init): Likewise.
20602 (grub_minix_fini): Likewise.
20603 * util/grub-emu.c (main): Initialize and deinitialize UFS and
20604 minix fs.
20605
cc2e748a 206062004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
20607
20608 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
20609 commands/ls.c, commands/terminal.c, commands/boot.c,
20610 commands/cmp.c and commands/cat.c.
20611 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
20612
20613 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
20614 "env.h"
20615
4b13b216 206162004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20617
20618 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
20619 and grub_, respectively. Because the conversion is trivial and
20620 mechanical, I omit the details here. Please refer to the CVS
20621 if you need more information.
20622
6a142551 206232004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
20624
20625 * include/pupa: Renamed to ...
20626 * include/grub: ... this.
20627 * util/i386/pc/pupa-mkimage.c: Renamed to ...
20628 * util/i386/pc/grub-mkimage.c: ... this.
20629 * util/i386/pc/pupa-setup.c: Renamed to ...
20630 * util/i386/pc/grub-setup.c: ... this.
20631 * util/pupa-emu.c: Renamed to ...
20632 * util/grub-emu.c: ... this.
20633
e56cdf21 206342004-03-29 Marco Gerards <metgerards@student.han.nl>
20635
20636 Add support for the newworld apple macintosh (PPC). This has been
20637 tested on the powerbook 2000 only. It only adds support for
20638 generic ieee1275 functions, console and disk support. This should
20639 be easy to port to other architectures with support for Open
20640 Firmware.
f19dbdb7 20641
e56cdf21 20642 * configure.ac: Accept the powerpc as host_cpu. In the case of
20643 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
20644 specific tests are only executed while building for the i386.
20645 Inverse test for crosscompile.
20646 * genmk.rb (Utility): Allow assembler files.
20647 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
20648 * conf/powerpc-ieee1275.rmk: New file.
20649 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
20650 * disk/powerpc/ieee1275/partition.c: Likewise.
20651 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
20652 * include/pupa/powerpc/ieee1275/console.h: Likewise.
20653 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
20654 * include/pupa/powerpc/ieee1275/time.h: Likewise.
20655 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
20656 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
20657 * include/pupa/powerpc/ieee1275/loader.h
20658 * include/pupa/powerpc/setjmp.h: Likewise.
20659 * include/pupa/powerpc/types.h: Likewise.
20660 * kern/powerpc/ieee1275/init.c: Likewise.
20661 * kern/powerpc/ieee1275/openfw.c: Likewise.
20662 * term/powerpc/ieee1275/ofconsole.c: Likewise.
20663
20664 These files were written by Johan Rydberg
20665 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 20666
e56cdf21 20667 * boot/powerpc/ieee1275/cmain.c: New file.
20668 * boot/powerpc/ieee1275/crt0.S: Likewise.
20669 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
20670 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
20671
8c8cc205 206722004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
20673
20674 * Makefile.in: Update copyright.
20675 * genmodsrc.sh: Likewise.
20676 * gensymlist.sh: Likewise.
20677 * term/i386/pc/vga.c: Indent correctly.
20678
20679 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
20680 bugreporting address.
20681 * util/i386/pc/pupa-setup.c (usage): Likewise,
20682 (main): Call pupa_ext2_init and pupa_ext2_fini.
20683
f19dbdb7 20684 * fs/fat.c (log2): Renamed to ...
8c8cc205 20685 (fat_log2): ... this.
20686 All callers changed.
20687 * kern/misc.c (memcpy): Alias to pupa_memmove.
20688 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
20689 lvalue cast.
20690 * util/console.c (pupa_ncurses_fini): Return 0.
20691
20692 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
20693 Move fail label here.
20694 [__GNU__]: Don't warn when using stat.
20695 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
20696 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
20697 long int. Use strtol instead of strtoul.
f19dbdb7 20698
db1771cf 206992004-03-14 Marco Gerards <metgerards@student.han.nl>
20700
20701 * commands/boot.c: New file.
20702 * commands/cat.c: Likewise.
20703 * commands/cmp.c: Likewise.
20704 * commands/ls.c: Likewise.
20705 * commands/terminal.c: Likewise.
20706 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
20707 (pupa_register_command): Changed interface to match the new
20708 argument parser.
20709 (pupa_command_execute): Changed (almost rewritten) so it uses
20710 pupa_split_command. Added support for setting variables using the
20711 syntax `foo=bar'.
20712 (rescue_command): Changed to work with the new argument parser.
20713 (terminal_command): Moved from here to commands/terminal.c.
20714 (set_command): New function.
20715 (unset_command): New function.
20716 (insmod_command): New function.
20717 (rmmod_command): New function.
20718 (lsmod_command): New function.
20719 (pupa_command_init): Don't initialize the command terminal
20720 anymore. Initialize the commands set, unset, insmod, rmmod and
20721 lsmod.
20722 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
20723 (kernel_img_HEADERS): Add arg.h and env.h.
20724 (pupa_mkimage_LDFLAGS): Add kern/env.c.
20725 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
20726 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
20727 normal/arg.c.
20728 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
20729 terminal.mod.
20730 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
20731 (boot_mod_SOURCES): New variable.
20732 (terminal_mod_SOURCES): Likewise.
20733 (ls_mod_SOURCES): Likewise.
20734 (cmp_mod_SOURCES): Likewise.
20735 (cat_mod_SOURCES): Likewise.
20736
20737 * normal/arg.c: New file.
20738 * kern/env.c: Likewise.
20739 * include/pupa/arg.h: Likewise.
20740 * include/pupa/env.h: Likewise.
20741 * font/manager.c (font_command): Changed to match argument parsing
20742 interface changes.
20743 (PUPA_MOD_INIT): Likewise.
20744 * hello/hello.c (pupa_cmd_hello): Likewise.
20745 (PUPA_MOD_INIT): Likewise.
20746 * include/pupa/disk.h: Include <pupa/device.h>.
20747 (pupa_print_partinfo): New prototype.
20748 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
20749 (pupa_dl_get_prefix): Likewise.
20750 * include/pupa/misc.h: Include <pupa/err.h>.
20751 (pupa_isgraph): New prototype.
20752 (pupa_isdigit): Likewise.
20753 (pupa_split_cmdline): Likewise.
20754 * include/pupa/normal.h: Include <pupa/arg.h>.
20755 (pupa_command): Changed the prototype of the member `func' to
20756 match the argument parsing interface. Added member `options'.
20757 (pupa_register_command): Updated to match function.
20758 (pupa_arg_parse): New prototype.
20759 (pupa_hello_init) [PUPA_UTIL]: New prototype.
20760 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
20761 (pupa_ls_init) [PUPA_UTIL]: Likewise.
20762 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
20763 (pupa_cat_init) [PUPA_UTIL]: Likewise.
20764 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
20765 (pupa_boot_init) [PUPA_UTIL]: Likewise.
20766 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
20767 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
20768 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
20769 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
20770 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
20771 * kern/disk.c: Include <pupa/file.h>.
20772 (pupa_print_partinfo): New function.
20773 * kern/dl.c: Include <pupa/env.h>.
20774 (pupa_dl_dir): Variable removed.
20775 (pupa_dl_load): Use the environment variable `prefix' instead of
20776 the variable pupa_dl_dir.
20777 (pupa_dl_set_prefix): Function removed.
20778 (pupa_dl_get_prefix): Likewise.
20779 * kern/i386/pc/init.c: Include <pupa/env.h>.
20780 (pupa_machine_init): Use the environment variable `prefix' instead of
20781 using pupa_dl_set_prefix to set the prefix.
20782 * kern/main.c: Include <pupa/env.h>.
20783 (pupa_set_root_dev): Use the environment variable `prefix' instead of
20784 using pupa_dl_get_prefix to get the prefix.
20785 * kern/misc.c: Include <pupa/env.h>.
20786 (pupa_isdigit): New function.
20787 (pupa_isgraph): Likewise.
20788 (pupa_ftoa): Likewise.
20789 (pupa_vsprintf): Added support for printing values of the type
20790 `double'. Make it possible to format variable output when using
20791 formatting like `%1.2%f'.
20792 (pupa_split_cmdline): New function.
20793 * kern/rescue.c: Include <pupa/env.h>.
20794 (next_word): Removed function.
20795 (pupa_rescue_cmd_prefix): Likewise.
20796 (pupa_rescue_cmd_set): New function.
20797 (pupa_rescue_cmd_unset): New function.
20798 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
20799 split the command line instead of splitting it here. Added
20800 support for setting variables using the syntax `foo=bar'. Don't
20801 initialize the prefix command anymore. Initialized the set and
20802 unset commands.
20803 * normal/cmdline.c: Include <pupa/env.h>.
20804 (pupa_tab_complete): Added prototypes for print_simple_completion,
20805 print_partition_completion, add_completion, iterate_commands,
20806 iterate_dev, iterate_part and iterate_dir. Moved code to print
20807 partition information from here to kern/disk.c.
fe6b695a 20808 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 20809 * normal/main.c: Include <pupa/env.h>.
20810 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
20811 instead of using pupa_dl_get_prefix to get the prefix.
20812 * term/i386/pc/vga.c: Include <pupa/arg.h>.
20813 (check_vga_mem): Cast pointers to `void *' to silence a gcc
20814 warning.
20815 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
20816 (pupa_vga_setcolor): Declare unused variables with `__attribute__
20817 ((unused))' to silence a gcc warning.
20818 (pupa_vga_setcolor): Likewise.
20819 (debug_command): Changed to match argument parsing
20820 interface changes.
20821 * util/pupa-emu.c: Include <pupa/env.h>.
20822 (options): Added 0's for unused fields to silence a gcc warning.
20823 (argp): Likewise.
20824 (main): Use the environment variable `prefix' instead of using
20825 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
20826 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
20827 and terminal.
20828
20829 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
20830 * util/misc.c: Include <malloc.h>.
20831 (pupa_malloc): Rewritten so errors are correctly reported.
20832 (pupa_realloc): Likewise.
20833 (pupa_memalign): Likewise.
20834 (pupa_mm_init_region): Declare unused variables with
20835 `__attribute__ ((unused))' to silence a gcc warning.
20836 * normal/i386/setjmp.S: Remove tab at the end of the file to
20837 silence a gcc warning.
20838 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
20839 variables with `__attribute__ ((unused))' to silence a gcc
20840 warning.
20841 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
20842 local variable i unsigned to silence a gcc warning.
20843
20844 * kern/term.c: Include <pupa/misc.h>.
20845 (pupa_more_lines): New variable.
20846 (pupa_more): Likewise.
20847 (pupa_putcode): When the pager is active pause at the end of every
20848 screen.
20849 (pupa_set_more): New function.
20850 * include/pupa/term.h (pupa_set_more): New prototype.
20851
20852
3b1139cb 208532004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
20854
20855 Now this project is GRUB 2 rather than PUPA. The location of
20856 the CVS repository was moved to GRUB's.
f19dbdb7 20857
3b1139cb 20858 * configure.ac: Use bug-grub as the reporting address.
20859 Use GRUB instead of PUPA.
20860 Change the version number to 1.90.
20861
8367695c 208622004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
20863
20864 * genkernsyms.sh: Updated copyright information.
20865 * genmk.rb: Likewise.
20866 * genmodsrc.sh: Likewise.
20867 * gensymlist.sh: Likewise.
20868 * boot/i386/pc/boot.S: Likewise.
20869 * boot/i386/pc/diskboot.S: Likewise.
20870 * disk/i386/pc/biosdisk.c: Likewise.
20871 * disk/i386/pc/partition.c: Likewise.
20872 * font/manager.c: Likewise.
20873 * fs/ext2.c: Likewise.
20874 * fs/fat.c: Likewise.
20875 * include/pupa/boot.h: Likewise.
20876 * include/pupa/device.h: Likewise.
20877 * include/pupa/disk.h: Likewise.
20878 * include/pupa/dl.h: Likewise.
20879 * include/pupa/elf.h: Likewise.
20880 * include/pupa/err.h: Likewise.
20881 * include/pupa/file.h: Likewise.
20882 * include/pupa/font.h: Likewise.
20883 * include/pupa/fs.h: Likewise.
20884 * include/pupa/kernel.h: Likewise.
20885 * include/pupa/loader.h: Likewise.
20886 * include/pupa/misc.h: Likewise.
20887 * include/pupa/mm.h: Likewise.
20888 * include/pupa/net.h: Likewise.
20889 * include/pupa/normal.h: Likewise.
20890 * include/pupa/rescue.h: Likewise.
20891 * include/pupa/setjmp.h: Likewise.
20892 * include/pupa/symbol.h: Likewise.
20893 * include/pupa/term.h: Likewise.
20894 * include/pupa/types.h: Likewise.
20895 * include/pupa/i386/setjmp.h: Likewise.
20896 * include/pupa/i386/types.h: Likewise.
20897 * include/pupa/i386/pc/biosdisk.h: Likewise.
20898 * include/pupa/i386/pc/boot.h: Likewise.
20899 * include/pupa/i386/pc/console.h: Likewise.
20900 * include/pupa/i386/pc/init.h: Likewise.
20901 * include/pupa/i386/pc/kernel.h: Likewise.
20902 * include/pupa/i386/pc/linux.h: Likewise.
20903 * include/pupa/i386/pc/loader.h: Likewise.
20904 * include/pupa/i386/pc/memory.h: Likewise.
20905 * include/pupa/i386/pc/multiboot.h: Likewise.
20906 * include/pupa/i386/pc/partition.h: Likewise.
20907 * include/pupa/i386/pc/time.h: Likewise.
20908 * include/pupa/i386/pc/vga.h: Likewise.
20909 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
20910 * include/pupa/util/getroot.h: Likewise.
20911 * include/pupa/util/misc.h: Likewise.
20912 * include/pupa/util/resolve.h: Likewise.
20913 * kern/device.c: Likewise.
20914 * kern/disk.c: Likewise.
20915 * kern/dl.c: Likewise.
20916 * kern/err.c: Likewise.
20917 * kern/file.c: Likewise.
20918 * kern/fs.c: Likewise.
20919 * kern/loader.c: Likewise.
20920 * kern/main.c: Likewise.
20921 * kern/misc.c: Likewise.
20922 * kern/mm.c: Likewise.
20923 * kern/rescue.c: Likewise.
20924 * kern/term.c: Likewise.
20925 * kern/i386/dl.c: Likewise.
20926 * kern/i386/pc/init.c: Likewise.
20927 * kern/i386/pc/lzo1x.S: Likewise.
20928 * kern/i386/pc/startup.S: Likewise.
20929 * loader/i386/pc/chainloader.c: Likewise.
20930 * loader/i386/pc/linux.c: Likewise.
20931 * loader/i386/pc/multiboot.c: Likewise.
20932 * normal/cmdline.c: Likewise.
20933 * normal/command.c: Likewise.
20934 * normal/main.c: Likewise.
20935 * normal/menu.c: Likewise.
20936 * normal/i386/setjmp.S: Likewise.
20937 * term/i386/pc/console.c: Likewise.
20938 * term/i386/pc/vga.c: Likewise.
20939 * util/console.c: Likewise.
20940 * util/genmoddep.c: Likewise.
20941 * util/misc.c: Likewise.
20942 * util/pupa-emu.c: Likewise.
20943 * util/resolve.c: Likewise.
20944 * util/unifont2pff.rb: Likewise.
20945 * util/i386/pc/biosdisk.c: Likewise.
20946 * util/i386/pc/getroot.c: Likewise.
20947 * util/i386/pc/pupa-mkimage.c: Likewise.
20948 * util/i386/pc/pupa-setup.c: Likewise.
20949
e6eced71 209502004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
20951
20952 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
20953 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
20954 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
20955 reading and reset it after reading.
20956 (pupa_ext2_close): Return PUPA_ERR_NONE.
20957
20958 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
20959 Correct value.
20960 (struct linux_kernel_header): Add kernel_version and
20961 initrd_addr_max.
20962 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
20963 pupa_file_read succeeds.
20964 (pupa_rescue_cmd_initrd): Implement.
20965
5aded270 209662003-12-03 Marco Gerards <metgerards@student.han.nl>
20967
20968 * fs/ext2.c (pupa_ext2_label): New function.
20969 (pupa_ext2_fs): Added label.
20970 * fs/fat.c (pupa_fat_label): New function.
20971 (pupa_fat_fs): Added label.
20972 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
20973
20974 * kern/misc.c (pupa_strndup): New function.
20975 * include/pupa/misc.h (pupa_strndup): New prototype.
20976
20977 * include/pupa/normal.h: Include <pupa/err.h>.
20978 (pupa_set_history): New prototype.
20979 (pupa_iterate_commands): New prototype.
20980 * normal/cmdline.c: Include <pupa/machine/partition.h>,
20981 <pupa/disk.h>, <pupa/file.h>.
20982 (hist_size): New variable.
20983 (hist_lines): Likewise.
20984 (hist_end): Likewise.
20985 (hist_used): Likewise.
20986 (pupa_set_history): New function.
20987 (pupa_history_get): Likewise.
20988 (pupa_history_add): Likewise.
20989 (pupa_history_replace): Likewise.
20990 (pupa_tab_complete): Likewise.
20991 (pupa_cmdline_run): Added tab completion and history buffer. Tab
20992 completion shows partitionnames while completing partitions, this
20993 feature was suggested by Jeff Bailey.
20994 * normal/command.c (pupa_iterate_commands): New function.
20995 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
20996 (pupa_normal_init): Initialize history buffer.
20997 (PUPA_MOD_INIT): Likewise.
20998 (pupa_normal_fini): Free the history buffer.
20999 (PUPA_MOD_FINI): Likewise.
21000
21001 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
21002 key.
21003
21004 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
21005 * configure.ac [i386]: Check for regparam bug.
21006 (NESTED_FUNC_ATTR) [! i386]: Defined.
21007
1f7315a3 210082003-11-17 Marco Gerards <metgerards@student.han.nl>
21009
21010 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
21011 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
21012 (pupa_emu_SOURCES): New variable.
21013 (pupa_emu_LDFLAGS): Likewise.
21014 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
21015 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
21016 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
21017 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
21018 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
21019 (pupa_jmp_buf): New typedef.
21020 (pupa_setjmp) [PUPA_UTIL]: New macro.
21021 (pupa_longjmp) [PUPA_UTIL]: Likewise.
21022 * include/pupa/term.h (struct pupa_term): New member `refresh'.
21023 (pupa_refresh): New prototype.
21024 * include/pupa/util/getroot.h: New file.
21025 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
21026 it.
21027 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
21028 (pupa_rescue_cmd_cat): Likewise.
21029 (pupa_rescue_cmd_ls): Likewise.
21030 (pupa_rescue_cmd_testload): Likewise.
21031 (pupa_rescue_cmd_lsmod): Likewise.
21032 * normal/cmdline.c (pupa_cmdline_get): Likewise.
21033 * normal/menu.c (run_menu): Likewise.
21034 * kern/term.c (pupa_cls): Likewise.
21035 (pupa_refresh): New function.
21036 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
21037 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
21038 * util/console.c: New file.
f19dbdb7 21039
1f7315a3 21040 * util/i386/pc/getroot.c: New file.
21041 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
21042 (pupa_putchar): New function.
21043 (pupa_refresh): Likewise.
21044 (xgetcwd): Function moved to ...
21045 (strip_extra_slashes): Likewise.
21046 (get_prefix): Likewise.
f19dbdb7 21047 * util/i386/pc/getroot.c: ... here.
1f7315a3 21048 (find_root_device): Function moved and renamed to...
21049 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
21050 Changed all callers.
21051 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
21052 and renamed to...
21053 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
21054 Changed all callers.
21055 * util/misc.c (pupa_memalign): New function.
21056 (pupa_mm_init_region): Likewise.
21057 (pupa_register_exported_symbols): Likewise.
21058 (pupa_putchar): Function removed.
21059 * util/pupa-emu.c: New file.
21060
9a5c1ade 210612003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
21062
21063 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
21064 (_multiboot_mod_SOURCES): New variable.
21065 (_multiboot_mod_CFLAGS): Likewise.
21066 * loader/i386/pc/multiboot.c: New file.
21067 * include/pupa/i386/pc/multiboot.h: Likewise.
21068 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
21069 (pupa_multiboot_real_boot): New function.
21070 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
21071 (pupa_multiboot_real_boot): New prototype.
21072 (pupa_rescue_cmd_multiboot): Likewise
21073 (pupa_rescue_cmd_module): Likewise.
21074
21075 * kern/loader.c (pupa_loader_set): Continue when
21076 pupa_loader_unload_func() fails.
21077 (pupa_loader_unset): New function.
21078 * include/pupa/loader.h (pupa_loader_unset): New prototype.
21079
21080 * kern/misc.c (pupa_stpcpy): New function.
21081 * include/pupa/misc.h (pupa_stpcpy): New prototype.
21082
8e72a9c0 210832003-11-12 Marco Gerards <metgerards@student.han.nl>
21084
21085 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
21086 for available extensions.
21087
21088 * include/pupa/i386/pc/time.h: New file.
21089 * kern/disk.c: Include <pupa/machine/time.h>.
21090 (PUPA_CACHE_TIMEOUT): New macro.
21091 (pupa_last_time): New variable.
21092 (pupa_disk_open): Flush the cache when there was a timeout.
21093 (pupa_disk_close): Reset the timer.
21094 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
21095 pupa_currticks.
21096 * util/misc.c: Include <sys/times.h>
21097 (pupa_get_rtc): New function.
21098
c4adbd32 210992003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21100
21101 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
21102 as blocks.
21103 (pupa_ext2_get_file_block): Use blocks member.
21104
21105 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
21106 first block. Return -1 instead of pupa_errno on error.
21107
bfd30f06 211082003-10-27 Marco Gerards <metgerards@student.han.nl>
21109
21110 * README: In the pupa-mkimage example use _chain instead of chain
21111 and ext2 instead of fat.
21112 * TODO: Replace ext2fs with jfs as an example. Add an item for
21113 adding journal playback for ext2fs.
21114 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
21115 (pkgdata_MODULES): Added ext2.mod.
21116 (ext2_mod_SOURCES): New variable.
21117 (ext2_mod_CFLAGS): Likewise.
21118 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
21119 * include/pupa/misc.h (pupa_strncpy): New prototype.
21120 (pupa_strcat): Likewise.
21121 (pupa_strncmp): Likewise.
21122 * kern/misc.c (pupa_strcat): Enable function.
21123 (pupa_strncpy): New function.
21124 (pupa_strncmp): Likewise.
21125 * fs/ext2.c: New file.
f19dbdb7 21126
bfd30f06 21127 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
21128 when the read failed before retrying.
21129 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
21130 (_FILE_OFFSET_BITS): Likewise.
21131 * configure.ac: Added AC_SYS_LARGEFILE.
21132
98d15063 211332003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
21134
21135 * genmk.rb (PModule#rule): Make sure to get only symbol names
21136 from the output of nm.
21137 Reported by Robert Millan <zeratul2@wanadoo.es>.
21138
18d9c7cd 211392003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
21140
21141 I forgot to check in these changes for a long time. This adds
21142 incomplete support for VGA console, and this is still very
21143 buggy. Also, a lot of consideration is required for I18N,
21144 UNICODE, and VGA font issues. Therefore, assume that this is
21145 such that "better than nothing".
f19dbdb7 21146
18d9c7cd 21147 * font/manager.c: New file.
21148 * include/pupa/font.h: Likewise.
21149 * include/pupa/i386/pc/vga.h: Likewise.
21150 * term/i386/pc/vga.c: Likewise.
21151 * util/unifont2pff.rb: Likewise.
21152
21153 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
21154 (pkgdata_MODULES): Added vga.mod and font.mod.
21155 (vga_mod_SOURCES): New variables.
21156 (vga_mod_CFLAGS): Likewise.
21157 (font_mod_SOURCES): Likewise.
21158 (font_mod_CFLAGS): Likewise.
21159
21160 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
21161
21162 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 21163 (struct pupa_term): Added init and fini.
18d9c7cd 21164 Changed the argument of putchar to pupa_uint32_t.
21165
21166 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
21167 (pupa_console_real_putchar): New prototype.
21168 (pupa_console_putchar): Removed.
21169 (pupa_console_checkkey): Exported.
21170 (pupa_console_getkey): Likewise.
21171
21172 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
21173 characters.
21174
21175 * kern/term.c (pupa_term_set_current): Rewritten.
21176 (pupa_putchar): Likewise.
21177 (pupa_putcode): New function.
21178
21179 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
21180 (pupa_console_real_putchar): ... this.
21181 (pupa_vga_set_mode): New function.
21182 (pupa_vga_get_font): Likewise.
21183
21184 * normal/command.c: Include pupa/term.h.
21185 (terminal_command): New function.
21186 (pupa_command_init): Register the command "terminal".
21187
21188 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
21189 (DISP_UP): Likewise.
21190 (DISP_RIGHT): Likewise.
21191 (DISP_DOWN): Likewise.
21192 (DISP_HLINE): Likewise.
21193 (DISP_VLINE): Likewise.
21194 (DISP_UL): Likewise.
21195 (DISP_UR): Likewise.
21196 (DISP_LL): Likewise.
21197 (DISP_LR): Likewise.
21198
21199 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 21200
977329f5 212012003-02-08 NIIBE Yutaka <gniibe@m17n.org>
21202
21203 * util/resolve.c (pupa_util_resolve_dependencies): BUG
21204 FIX. Reverse the path_list.
21205
21206 * include/pupa/normal.h: Export pupa_register_command and
21207 pupa_unregister_command.
21208
21209 * hello/hello.c (pupa_cmd_hello): New module.
21210 * conf/i386-pc.rmk: Added hello.mod.
21211
1f5ab428 212122003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
21213
21214 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 21215
1f5ab428 21216 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
21217 (compress_kernel): New variable.
21218 (generate_image): Heavily modified to support compressing a
21219 large part of the core image.
21220
21221 * util/misc.c (pupa_util_read_image): Fix a file descriptor
21222 leak.
21223 (pupa_util_load_image): New function.
21224
21225 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
21226 (pupa_compressed_size): New variable.
21227 (codestart): Enable Gate A20 here.
21228 Decompress the compressed part of the core image.
21229 Rearrange the code to put functions and variables which are
21230 required for initialization in the non-compressed part.
21231 Include lzo1x.S.
21232
21233 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
21234 here.
21235
21236 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
21237
f19dbdb7 21238 * include/pupa/i386/pc/kernel.h
1f5ab428 21239 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
21240 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
21241 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
21242 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
21243 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
21244
21245 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
21246
21247 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
21248 (Utility#rule): Likewise.
21249
21250 * configure.ac: Check if LZO is available.
21251
ce5bf700 212522003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
21253
21254 * include/pupa/normal.h: New file.
21255 * include/pupa/setjmp.h: Likewise.
21256 * include/pupa/i386/setjmp.h: Likewise.
21257 * normal/cmdline.c: Likewise.
21258 * normal/command.c: Likewise.
21259 * normal/main.c: Likewise.
21260 * normal/menu.c: Likewise.
21261 * normal/i386/setjmp.S: Likewise.
f19dbdb7 21262
ce5bf700 21263 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
21264 (pupa_rescue_cmd_initrd): Likewise.
21265
21266 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
21267 Likewise.
21268
21269 * kern/i386/pc/startup.S (translation_table): New variable.
21270 (translate_keycode): New function.
21271 (pupa_console_getkey): Call translate_keycode.
21272
21273 * kern/rescue.c (attempt_normal_mode): New function.
21274 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
21275 it failed, print a message.
21276
21277 * kern/mm.c (pupa_real_malloc): Print more information when a
21278 free magic is broken.
21279 (pupa_free): If the first free header is not free actually, set
21280 it to P.
21281
21282 * kern/main.c (pupa_load_normal_mode): Just load the module
21283 "normal".
21284 (pupa_main): Don't print the message
21285 "Entering into rescue mode..." here.
21286
21287 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
21288 Declared.
21289 (pupa_rescue_cmd_initrd): Likewise.
21290 (pupa_rescue_cmd_initrd): Likewise.
21291
21292 * include/pupa/symbol.h (FUNCTION): Specify the type.
21293 (VARIABLE): Likewise.
21294
21295 * include/pupa/err.h (pupa_err_t): Added
21296 PUPA_ERR_UNKNOWN_COMMAND.
21297
21298 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
21299 (pupa_dl_get_prefix): Likewise.
21300
21301 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
21302 Added _chain.mod and _linux.mod instead of chain.mod and
21303 linux.mod.
21304 (chain_mod_SOURCES): Renamed to ...
21305 (_chain_mod_SOURCES): ... this.
21306 (chain_mod_CFLAGS): Renamed to ...
21307 (_chain_mod_CFLAGS): ... this.
21308 (linux_mod_SOURCES): Renamed to ...
21309 (_linux_mod_SOURCES): ... this.
21310 (linux_mod_CFLAGS): Renamed to ...
21311 (_linux_mod_CFLAGS): ... this.
21312 (normal_mod_SOURCES): New variable.
21313 (normal_mod_CFLAGS): Likewise.
21314 (normal_mod_ASFLAGS): Likewise.
21315
213162003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
21317
21318 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
21319 possible.
21320
fe6b695a 21321 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 21322 recursively.
21323 (pupa_dl_unref): Unrefer depending modules recursively.
21324 Don't call pupa_dl_unload implicitly, because PUPA can crash if
21325 a module is unloaded before one depending on that module is
21326 unloaded.
21327 (pupa_dl_unload): Unload depending modules explicitly,
21328 if possible.
21329
c04da074 213302003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
21331
21332 * include/pupa/i386/pc/linux.h: New file.
21333 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 21334
c04da074 21335 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
21336 Removed.
21337 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
21338 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
21339 of PUPA_CHAINLOADER_BOOT_SECTOR.
21340
21341 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
21342 (pupa_linux_prot_size): New variable.
21343 (pupa_linux_tmp_addr): Likewise.
21344 (pupa_linux_real_addr): Likewise.
21345 (pupa_linux_boot_zimage): New function.
21346 (pupa_linux_boot_bzimage): Likewise.
21347
21348 * kern/i386/pc/init.c (struct mem_region): New structure.
21349 (MAX_REGIONS): New macro.
21350 (mem_regions): New variable.
21351 (num_regions): Likewise.
21352 (pupa_os_area_addr): Likewise.
21353 (pupa_os_area_size): Likewise.
21354 (pupa_lower_mem): Likewise.
21355 (pupa_upper_mem): Likewise.
21356 (add_mem_region): New function.
21357 (compact_mem_regions): Likewise.
21358 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
21359 the size of the conventional memory and that of so-called upper
21360 memory (before the first memory hole).
21361 Instead of adding each found region to free memory, use
21362 add_mem_region and add them after removing overlaps.
21363 Also, add only 1/4 of the upper memory to free memory. The rest
21364 is used for loading OS images. Maybe this is ad hoc, but this
21365 makes it much easier to relocate OS images when booting.
21366
21367 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
21368 (pupa_enter_rescue_mode): Don't register initrd and module.
21369
21370 * kern/mm.c: Include pupa/dl.h.
21371
21372 * kern/main.c: Include pupa/file.h and pupa/device.h.
21373
21374 * kern/loader.c (pupa_loader_load_module_func): Removed.
21375 (pupa_loader_load_module): Likewise.
21376
21377 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
21378 ``.o''.
21379
21380 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
21381 (pupa_linux_tmp_addr): Likewise.
21382 (pupa_linux_real_addr): Likewise.
21383 (pupa_linux_boot_zimage): Likewise.
21384 (pupa_linux_boot_bzimage): Likewise.
21385
21386 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
21387 (pupa_upper_mem): Likewise.
21388 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
21389 module is too dangerous.
21390
21391 * include/pupa/loader.h (pupa_os_area_addr): Declared.
21392 (pupa_os_area_size): Likewise.
21393 (pupa_loader_set): Remove the first argument. Loader doesn't
21394 manage modules or initrd any longer.
21395 (pupa_loader_load_module): Removed.
21396
21397 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
21398 (linux_mod_SOURCES): New variable.
21399 (linux_mod_CFLAGS): Likewise.
21400
a13f9237 214012003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
21402
21403 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
21404 the length of a blocklist correctly.
21405
21406 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
21407 Use ioctl only if the OS file is a block device.
21408 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
21409 not very useful for normal files.
21410
21411 * kern/main.c (pupa_set_root_dev): New function.
21412 (pupa_load_normal_mode): Likewise.
21413 (pupa_main): Call those above.
21414
21415 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
21416 pupa_uint16_t.
21417
21418 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
21419
a5ffe966 214202003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
21421
21422 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
21423 (setup): Configure the installed partition information and the
21424 dl prefix.
21425
21426 * loader/i386/pc/chainloader.c (my_mod): New variable.
21427 (pupa_chainloader_unload): New function.
21428 (pupa_rescue_cmd_chainloader): Refer itself.
21429 (PUPA_MOD_INIT): Save its own module in MY_MOD.
21430
21431 * kern/i386/pc/startup.S (install_partition): Removed.
21432 (version_string): Likewise.
21433 (config_file): Likewise.
21434 (pupa_install_dos_part): New variable.
21435 (pupa_install_bsd_part): Likewise.
21436 (pupa_prefix): Likewise.
21437 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
21438
21439 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
21440 and pupa/misc.h.
21441 (make_install_device): New function.
21442 (pupa_machine_init): Set the dl prefix.
21443
21444 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
21445 (buf): Renamed to ...
21446 (linebuf): ... this.
21447 (pupa_rescue_cmd_prefix): New function.
21448 (pupa_rescue_cmd_insmod): Likewise.
21449 (pupa_rescue_cmd_rmmod): Likewise.
21450 (pupa_rescue_cmd_lsmod): Likewise.
21451 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
21452 rmmod and lsmod.
21453
21454 * kern/mm.c (pupa_memalign): If failed even after invalidating
21455 disk caches, unload unneeded modules and retry.
21456
21457 * kern/misc.c (pupa_memmove): New function.
21458 (pupa_memcpy): Removed.
21459 (pupa_strcpy): New function.
21460 (pupa_itoa): Made static.
21461
21462 * kern/dl.c (pupa_dl_iterate): New function.
21463 (pupa_dl_ref): Likewise.
21464 (pupa_dl_unref): Likewise.
21465 (pupa_dl_unload): Return if succeeded or not.
21466 (pupa_dl_unload_unneeded): New function.
21467 (pupa_dl_unload_all): Likewise.
21468 (pupa_dl_init): Renamed to ...
21469 (pupa_dl_set_prefix): ... this.
21470 (pupa_dl_get_prefix): New function.
21471
21472 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
21473 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
21474 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
21475 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
21476 (pupa_install_dos_part): Declared.
21477 (pupa_install_bsd_part): Likewise.
21478 (pupa_prefix): Likewise.
21479 (pupa_boot_drive): Likewise.
21480
21481 * include/pupa/types.h: Fix a typo.
21482
21483 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
21484 pupa_memmove.
21485 (pupa_memmove): Declared.
21486 (pupa_strcpy): Likewise.
21487
21488 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
21489 pupa_mod_init takes one argument, its own module.
21490 (pupa_dl_unload_unneeded): Declared.
21491 (pupa_dl_unload_all): Likewise.
21492 (pupa_dl_ref): Likewise.
21493 (pupa_dl_unref): Likewise.
21494 (pupa_dl_iterate): Likewise.
21495 (pupa_dl_init): Renamed to ...
21496 (pupa_dl_set_prefix): ... this.
21497 (pupa_dl_get_prefix): Declared.
21498
21499 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 21500 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 21501 unloaded.
21502 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
21503 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
21504
21505 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
21506 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
21507
012d7999 215082003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21509
21510 * util/i386/pc/pupa-setup.c (setup): Define the internal
21511 function find_first_partition_start at the top level, because GCC
21512 3.0.x cannot compile internal functions in deeper scopes
21513 correctly.
21514 (find_root_device): Use lstat instead of stat.
21515 Don't follow symbolic links.
21516 Fix the path-constructing code.
21517
21518 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
21519 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
21520 by a BLKGETSIZE ioctl first, because block devices don't fill
21521 the member st_mode of the structure stat on Linux.
21522 [__linux__] (linux_find_partition): Use a temporary buffer
21523 REAL_DEV for the working space. Copy it to DEV before returning.
21524 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
21525 buffer cache consistent.
21526 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
21527 strncmp. The previous value was merely wrong.
21528 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
21529
21530 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
21531 FAT size is 12. The previous value was merely wrong.
21532
21533 * kern/main.c (pupa_main): Don't split the starting message from
21534 newlines.
21535
21536 * kern/term.c (pupa_putchar): Put CR after LF instead of before
21537 LF, because BIOS goes crazy about character attributes in this
21538 case.
21539
1cc73a62 215402003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
21541
21542 * include/i386/pc/util/biosdisk.h: New file.
21543 * util/i386/pc/biosdisk.c: Likewise.
21544 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 21545
1cc73a62 21546 * Makefile.in (INCLUDE_DISTFILES): Added
21547 include/pupa/i386/pc/util/biosdisk.h.
21548 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
21549 directory util/i386/pc.
21550 (install-local): Added a rule for sbin_UTILITIES.
21551 (uninstall): Likewise.
21552
21553 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
21554
21555 * util/misc.c (xrealloc): New function.
21556 (pupa_malloc): Likewise.
21557 (pupa_free): Likewise.
21558 (pupa_realloc): Likewise.
21559 (pupa_stop): Likewise.
21560 (pupa_putchar): Likewise.
21561
21562 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
21563
21564 * include/pupa/util/misc.h (xrealloc): Declared.
21565
21566 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
21567 macro.
21568 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
21569 (PUPA_BOOT_MACHINE_BPB_END): ... this.
21570
21571 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
21572 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21573
21574 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
21575 way should be implemented.
21576 [PUPA_UTIL] (pupa_fat_fini): Likewise.
21577
21578 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
21579 the size of NAME for safety.
21580 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
21581 0x88.
21582
21583 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
21584 (pupa_setup_SOURCES): Likewise.
21585
21586 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
21587
08b70fe8 215882002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21589
21590 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
21591 bunch of pushl's from pusha, because this destroys the return
21592 value.
21593
62ddcc8f 215942002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
21595
21596 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
21597 This means that any missing prototypes could be fatal. Also, you
21598 must take care when writing assembly code. See the comments at
21599 the beginning of startup.S, for more details.
f19dbdb7 21600
62ddcc8f 21601 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
21602 compilation mechanism.
21603 (pupa_chainloader_real_boot): Likewise.
21604 (pupa_biosdisk_rw_int13_extensions): Likewise.
21605 (pupa_biosdisk_rw_standard): Likewise.
21606 (pupa_biosdisk_check_int13_extensions): Likewise.
21607 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
21608 (pupa_biosdisk_get_diskinfo_standard): Likewise.
21609 (pupa_get_memsize): Likewise.
21610 (pupa_get_mmap_entry): Likewise.
21611 (pupa_console_putchar): Likewise.
21612 (pupa_console_setcursor): Likewise.
21613 (pupa_getrtsecs): Use pushl instead of push.
21614
21615 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
21616 memory instead of the stack for a mmap entry, because some
21617 BIOSes may ignore the maximum size and overflow.
21618
21619 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
21620
21621 * genmk.rb (PModule#rule): Compile automatically generated
21622 sources with module-specific CFLAGS as well as other sources.
21623
9962ed99 216242002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21625
21626 * configure.ac: Check ld.
21627 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
21628 respectively, before checking endianness and sizes.
21629
21630 * Makefile.in (LD): New variable.
f19dbdb7 21631
abdfc3c5 216322002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21633
21634 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
21635
6a161fa9 216362002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
21637
21638 * Changelog: New file.
21639