]> git.proxmox.com Git - grub2.git/blame - ChangeLog
USB hotunplugging and USB serial support.
[grub2.git] / ChangeLog
CommitLineData
fb1d7b79
VS
12010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 USB hotunplugging and USB serial support.
4
5 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
6 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
7 (grub_uhci_transfer): Respect timeout and set *actual.
8 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
9 non-standard length.
10 (grub_usb_device_attach): Autoload modules.
11 (GRUB_MOD_INIT): Set grub_term_poll_usb.
12 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
13 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
14 users updated.
15 (grub_usb_add_hub): Fill nports and children.
16 (attach_root_port): Receive hub instead of controller.
17 All users updated. Fill hub->devices.
18 (grub_usb_root_hub): Allocate hub->devices.
19 (detach_device): New function.
20 (poll_nonroot_hub): Fill children and detach devices.
21 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22 actual arguments. All users updated.
23 (grub_usb_bulk_read_extended): New function.
24 * bus/usb/serial/common.c: New file.
25 * bus/usb/serial/ftdi.c: Likewise.
26 * bus/usb/serial/pl2303.c: Likewise.
27 * commands/terminal.c (handle_command): Support wildcard.
28 * commands/usbtest.c: Output "Unknown" instead of empty string.
29 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
30 (usbserial_common_mod_SOURCES): New variable.
31 (usbserial_common_mod_CFLAGS): Likewise.
32 (usbserial_common_mod_LDFLAGS): Likewise.
33 (pkglib_MODULES): Add usbserial_pl2303.mod.
34 (usbserial_pl2303_mod_SOURCES): New variable.
35 (usbserial_pl2303_mod_CFLAGS): Likewise.
36 (usbserial_pl2303_mod_LDFLAGS): Likewise.
37 (pkglib_MODULES): Add usbserial_ftdi.mod.
38 (usbserial_ftdi_mod_SOURCES): New variable.
39 (usbserial_ftdi_mod_CFLAGS): Likewise.
40 (usbserial_ftdi_mod_LDFLAGS): Likewise.
41 (pkglib_MODULES): Add serial.mod.
42 (serial_mod_SOURCES): New variable.
43 (serial_mod_CFLAGS): Likewise.
44 (serial_mod_LDFLAGS): Likewise.
45 * conf/i386-pc.rmk: Likewise.
46 * conf/mips-yeeloong.rmk: Likewise.
47 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
48 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
49 * disk/usbms.c (first_available_slot): New variable.
50 (grub_usbms_attach): Don't reuse free slots due to potential cache
51 problems.
52 * include/grub/serial.h: Moved to ..
53 * include/grub/ns8250.h: ...this.
54 * include/grub/serial.h: New file.
55 * include/grub/term.h (grub_term_poll_usb): New variable.
56 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
57 readkey. All users updated.
58 (grub_terminfo_output_state): Pass term to put.
59 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
60 (grub_usb_controller_dev): Add timeout and actual arguments to
61 transfer. All users updated.
62 (grub_usb_interface): New field detach_data.
63 (grub_usb_device): New fields children and nports.
64 (grub_usb_ep_type_t): New type.
65 (grub_usb_get_ep_type): New function.
66 (grub_usb_bulk_read_extended): Likewise.
67 * include/grub/usbdesc.h (grub_usb_desc): New type.
68 * include/grub/usbserial.h: New file.
69 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
70 * kern/term.c (grub_term_poll_usb): New variable.
71 (grub_getkey): Call grub_term_poll_usb if set.
72 (grub_checkkey): Likewise.
73 (grub_getkeystatus): Likewise.
74 * term/serial.c: Moved controller-specific parts to ...
75 * term/ns8250.c: ... here.
76 * term/serial.c: Mostly rewritten.
77 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
78 according to spec.
79
21a313de
RM
802010-08-20 Robert Millan <rmh@gnu.org>
81
82 Make kFreeBSD code more generic to support ext2fs as root, ufs as
83 a separate module and maybe other interesting combinations.
84
85 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
86 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
87 (kfreebsd_entry): Add generic filesystem module load routine.
88 Map GRUB `ext2' to kFreeBSD `ext2fs'.
89
63c734a6
CW
902010-08-20 Colin Watson <cjwatson@ubuntu.com>
91
92 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
93 "numcenter" (I misunderstood the purpose of this entry).
94 * docs/grub.texi (sendkey): Likewise.
95
c4d16542
CW
962010-08-20 Colin Watson <cjwatson@ubuntu.com>
97
98 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
99 status flag options; simply omitting the option is equivalent and
100 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
101 (keysym_table): Rename "num5numlock" to "numlock".
102 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
103 can uniformly say that only the last of multiple `sendkey'
104 invocations has any effect.
105 * docs/grub.texi (sendkey): New section.
106
93541d66
CW
1072010-08-19 Colin Watson <cjwatson@ubuntu.com>
108
109 * commands/i386/pc/sendkey.c (options): Fix three typos.
110
b4ece5e1
VS
1112010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
112
113 Implement sendkey support.
114
115 * commands/i386/pc/sendkey.c: New file.
116 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
117 (sendkey_mod_SOURCES): New variable.
118 (sendkey_mod_CFLAGS): Likewise.
119 (sendkey_mod_LDFLAGS): Likewise.
120
51f1f5af
CW
1212010-08-18 Colin Watson <cjwatson@ubuntu.com>
122
123 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
124 fix warnings from Autoconf.
125
9da94e05
CW
1262010-08-18 Colin Watson <cjwatson@ubuntu.com>
127
128 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
129 to avoid false positives with some assemblers that output things
130 like "someprefix_func" as part of their output.
131
729a0f2e
RM
1322010-08-15 Robert Millan <rmh@gnu.org>
133
134 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
135 errors.
136 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
137 grub_get_libzfs_handle() errors.
138
f3710e08
RM
1392010-08-14 Robert Millan <rmh@gnu.org>
140
141 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
142 filesystem is not ZFS.
143
7a3c13de
BC
1442010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
145
146 Fix for misspelled color names defaulting to black/black (bug
147 reported by Doug Nazar)
148
149 * include/grub/normal.h (grub_parse_color_name_pair): Add return
150 status to prototype.
151 * normal/color.c (grub_parse_color_name_pair): Return failure
152 status.
153 (grub_env_write_color_normal): Ignore bad color names.
154 (grub_env_write_color_highlight): Likewise.
155 * normal/main.c (GRUB_MOD_INIT): Set default color names.
156
ab8ba50d
BC
1572010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
158
159 "shift" command support to GRUB script.
160
161 * include/grub/script_sh.h (grub_script_shift): New prototype.
162 * script/execute.c (grub_script_shift): New function.
163 * script/main.c (grub_script_init): Register shift command.
164 (grub_script_fini): Unregister shift command.
165 * util/grub-script-check.c (grub_script_cmd_shift): New function.
166
167 * tests/grub_script_shift.in: New testcase.
168 * conf/tests.rmk: Rules for new testcase.
169
4d61999e
BC
1702010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
171
172 "continue" command support to GRUB script.
173
174 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
175 (grub_script_break): Continue support.
176 * script/main.c (grub_script_init): Register continue command.
177 (grub_script_fini): Unregister continue command.
178
179 * tests/grub_script_continue.in: New testcase.
180 * conf/tests.rmk: Rules for new testcase.
181
4df51e00
BC
1822010-08-12 BVK Chaitanya <bvk@dbook>
183
184 "break" command support to GRUB script.
185
186 * conf/common.rmk: Rule updates to grub-script-check.
187 * include/grub/misc.h (grub_min): New function.
188 * include/grub/script_sh.h (grub_script_init): New prototype.
189 (grub_script_fini): New prototype.
190 (grub_script_break): New prototype.
191 * script/main.c (grub_script_init): New function.
192 (grub_script_fini): New function.
193 * script/execute.c (grub_script_break): New function.
194 * normal/main.c: Calls to grub_script_{init,fini}.
195 * util/grub-script-check.c (grub_script_break): New function.
196
197 * tests/grub_script_break.in: New testcase.
198 * conf/tests.rmk: Rules for new test case.
199
f12c8420
BC
2002010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
201
202 Function parameters support to GRUB script.
203
204 * script/yylex.l (VARIABLE): Regular expression update.
205 * script/function.c (grub_script_function_call): Moved ...
206 * script/execute.c (grub_script_function_call): ... to here.
207 (grub_script_execute_arglist_to_argv): Removed.
208 (grub_script_arglist_to_argv): New function.
209 * script/argv.c: New file.
210 (grub_script_argv_free): New function.
211 (grub_script_argv_next): Likewise.
212 (grub_script_argv_append): Likewise.
213 (grub_script_argv_split_append): Likewise.
214 * include/grub/script_sh.h (grub_script_argv): New struct.
215 (grub_script_argv_free): New function.
216 (grub_script_argv_next): Likewise.
217 (grub_script_argv_append): Likewise.
218 (grub_script_argv_split_append): Likewise.
219
220 * conf/common.rmk (normal.mod): New source script/argv.c.
221
222 * tests/grub_script_echo1.in: More tests.
223 * tests/grub_script_vars1.in: Likewise.
224 * tests/grub_script_functions.in: New test case.
225 * conf/tests.rmk: Rules for new testcase.
226
8022b748
BC
2272010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
228
229 Remove grub_script_cmdblock struct.
230
231 * include/grub/script_sh.h: Remove grub_script_cmdblock.
232 * script/parser.y: Likewise.
233 * script/execute.c: Rename cmdblock suffix to cmdlist.
234 * script/script.c: Likewise.
235 * util/grub-script-check.c: Likewise.
236
79a6ba61
YB
2372010-08-11 Yves Blusseau <blusseau@zetam.org>
238
239 * .bzrignore: add grub-macho2img
240
d04b9414
VS
2412010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
244
f947ab49
VS
2452010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
246
247 Remove the dump of sm712 initialisation sequence.
248
249 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
250 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
251 (GRUB_VGA_IO_MISC_WRITE): Likewise.
252 (GRUB_VGA_CR_*): Added many registers.
253 (GRUB_VGA_SR_*): Likewise.
254 (GRUB_VGA_GR_*): Likewise.
255 (grub_vga_write_arx): New function.
256 (grub_video_hw_config): New struct.
257 (grub_vga_set_geometry): New function.
258 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
259 GRUB_PCI_CLASS_SUBCLASS_VGA.
260 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
261 * video/sm712.c (grub_sm712_write_reg): New function
262 (grub_sm712_read_reg): Likewise.
263 (grub_sm712_sr_write): Likewise.
264 (grub_sm712_gr_write): Likewise.
265 (grub_sm712_cr_write): Likewise.
266 (grub_sm712_write_arx): Likewise.
267 (grub_sm712_cr_shadow_write): Likewise.
268 (grub_sm712_write_dda_lookup): Likewise.
269 (grub_video_sm712_setup): Initialise the video rather then
270 blindly replay the dump.
271 (main) [TEST]: Add a routine to be able to compile as standalone for
272 tests.
273 * video/sm712_init.c (sm712_init): Removed.
274 (sm712_sr_seq1): New array.
275 (sm712_sr_seq2): Likewise.
276
f0206638
VS
2772010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * include/grub/vga.h: Add missing grub/pci.h include.
280
2764da3b
YB
2812010-08-10 Yves Blusseau <blusseau@zetam.org>
282
283 * util/grub-macho2img.c (main): fix typo
284
cf0c775e
VS
2852010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
288 (grub_vga_gr_read): Likewise.
289 (grub_vga_cr_write): Likewise.
290 (grub_vga_cr_read): Likewise.
291 (grub_vga_sr_write): Likewise.
292 (grub_vga_sr_read): Likewise.
293 (grub_vga_palette_read): Likewise.
294 (grub_vga_palette_write): Likewise.
295 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
296 (grub_sm712_sr_read): New function.
297 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
298 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
299
07f360e9
RM
3002010-08-09 Robert Millan <rmh@gnu.org>
301
302 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
303 out unused variables on non-ZFS build.
304
346c2072
RM
3052010-08-08 Robert Millan <rmh@gnu.org>
306
307 Fix path generation for sub-filesystems in ZFS.
308
309 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
310 missing slash.
311
71175420
RM
3122010-08-08 Robert Millan <rmh@gnu.org>
313
314 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
315
0d8286f3
RM
3162010-08-08 Robert Millan <rmh@gnu.org>
317
318 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
319 exist, issue a proper error message (rely on `ls' for translated
320 strings).
321
55dd2924
RM
3222010-08-08 Robert Millan <rmh@gnu.org>
323
324 Fix grub-probe invocation.
325
326 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
327
d3dd9e80
RM
3282010-08-04 Robert Millan <rmh@gnu.org>
329
330 * configure.ac: Remove checks for getfsstat() and getmntany().
331 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
332 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
333 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
334 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
335 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
336 function.
337 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
338 via find_mount_point_from_dir() and getfsstat() / getmntany().
339
0de22aa9
RM
3402010-08-04 Robert Millan <rmh@gnu.org>
341
342 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
343 (grub_find_zpool_from_mount_point): Merge into ...
344 (grub_find_zpool_from_dir): ... this.
345 * kern/emu/misc.c: Likewise.
346
347 * kern/emu/misc.c
348 (grub_make_system_path_relative_to_its_root): Replace
349 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
350 with grub_find_zpool_from_dir().
351 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
352
62858144
RM
3532010-08-04 Robert Millan <rmh@gnu.org>
354
355 Support OpenSolaris in ZFS device resolution.
356
357 * configure.ac: Check for getmntany().
358 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
359 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
360 support.
361
9dd6fd50
RM
3622010-08-03 Robert Millan <rmh@gnu.org>
363
364 Fix grub-emu build.
365
366 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
367 * include/grub/emu/misc.h: ... here.
368
369 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
370 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
371
372 * util/misc.c: Remove `<grub/util/libzfs.h>'.
373 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
374 (grub_get_libzfs_handle): Move to ...
375 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
376 (grub_get_libzfs_handle): ... here.
377
c9f7ff97
BC
3782010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
379
380 * script/execute.c (grub_script_execute_cmdline): Check for NULL
381 as command name case.
382
a870a783
CW
3832010-08-02 Colin Watson <cjwatson@ubuntu.com>
384
385 * disk/raid.c (insert_array): Select unique numbers for named arrays
386 as well, for use as keys in the disk cache.
387
c7db243b
RM
3882010-08-01 Robert Millan <rmh@gnu.org>
389
390 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
391 kFreeBSD device name, except on ZFS where the filesystem label is
392 used.
393 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
394 `/boot/zfs/zpool.cache'.
395 Set mountfrom kernel variable using ${kfreebsd_device}.
396
f7abdefb
RM
3972010-08-01 Robert Millan <rmh@gnu.org>
398
399 Make it even harder to use uninitialized `libzfs_handle' (and
400 make the interface a bit simpler).
401
402 * include/grub/util/misc.h (grub_util_init_libzfs)
403 (libzfs_handle): Remove.
404 (grub_get_libzfs_handle): New prototype.
405
406 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
407 attribute.
408 (grub_util_init_libzfs): Remove.
409 (grub_get_libzfs_handle): New function.
410
411 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
412 grub_get_libzfs_handle() to obtain a libzfs handle instead of
413 accessing `libzfs_handle' directly.
414
c882acc0
RM
4152010-08-01 Robert Millan <rmh@gnu.org>
416
417 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
418 (grub_find_zpool_from_mount_point): New function prototypes.
419
420 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
421 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
422
423 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
424 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
425 `static' attribute.
426
427 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
428 finding zpool from mount point into ...
429 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
430
431 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
432 requested path is part of a ZFS pool, use
433 grub_find_zpool_from_mount_point() to detect its filesystem name,
434 and generate a path with `/fsname@path' syntax.
435
8bfe31d8
CW
4362010-08-01 Colin Watson <cjwatson@ubuntu.com>
437
438 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
439 (void) rather than () so that this is a proper prototype.
440
553df63d
VS
4412010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
444
8687cf07
VS
4452010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
446
447 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
448 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
449
ea9be8ea
CW
4502010-08-01 Colin Watson <cjwatson@ubuntu.com>
451
452 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
453
6eea041a
CW
4542010-08-01 Colin Watson <cjwatson@ubuntu.com>
455
456 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
457
2cfb45df
CW
4582010-08-01 Colin Watson <cjwatson@ubuntu.com>
459
460 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
461 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
462 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
463 disable gfxpayload.
464 (Shell-like scripting): Add real content.
465 (Serial terminal): Suggest `terminal_input serial; terminal_output
466 serial' rather than putting the two commands on separate lines,
467 since console input will be inoperative after the first command.
468 (menuentry): Document --class, --users, and --hotkey options.
469 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
470 Vladimir Serbinenko).
471
7decd202
VS
4722010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4732010-08-01 Colin Watson <cjwatson@ubuntu.com>
474
475 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
476
c882acc0
RM
4772010-08-01 Robert Millan <rmh@gnu.org>
478
479 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
480 (grub_find_zpool_from_mount_point): New function prototypes.
481
482 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
483 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
484
485 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
486 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
487 `static' attribute.
488
489 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
490 finding zpool from mount point into ...
491 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
492
493 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
494 requested path is part of a ZFS pool, use
495 grub_find_zpool_from_mount_point() to detect its filesystem name,
496 and generate a path with `/fsname@path' syntax.
497
deb0caa3
RM
4982010-08-01 Robert Millan <rmh@gnu.org>
499
500 Prevent accidental use of uninitialized libzfs_handle.
501
502 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
503 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
504 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
505
ce04ef47
CW
5062010-08-01 Colin Watson <cjwatson@ubuntu.com>
507
508 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
509 util/grub.d/10_linux.in). Fixes Debian bug #591093.
510
ebf53056
RM
5112010-08-01 Robert Millan <rmh@gnu.org>
512
513 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 514
3710bb6b
RM
5152010-07-31 Robert Millan <rmh@gnu.org>
516
517 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
518
8072efeb
RM
5192010-07-31 Robert Millan <rmh@gnu.org>
520
521 * kern/emu/misc.c: Add missing license header.
522
3169f4c7
RM
5232010-07-31 Robert Millan <rmh@gnu.org>
524
525 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
526
527 * include/grub/util/libnvpair.h: Include `<config.h>'.
528 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
529 declaring libnvpair prototypes ourselves.
530 * include/grub/util/libzfs.h: Include `<config.h>'.
531 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
532 declaring libzfs prototypes ourselves.
533
534 (libzfs_handle): Moved to ...
535 * include/grub/util/misc.h (libzfs_handle): ... here.
536 Include `<grub/util/libzfs.h>'.
537
c9a00aee
RM
5382010-07-30 Robert Millan <rmh@gnu.org>
539
540 * include/grub/emu/misc.h: Add missing license header.
541
a184f9c8
RM
5422010-07-30 Robert Millan <rmh@gnu.org>
543
544 Enable `grub-probe -t device' resolution on ZFS.
545
546 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
547 * include/grub/util/libnvpair.h: New file.
548 * include/grub/util/libzfs.h: New file.
549
550 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
551 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
552 `<grub/util/libnvpair.h>'.
553 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
554
555 (find_mount_point_from_dir): New static function.
556 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
557 function.
558 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
559 find_root_device_from_libzfs() before ressorting to find_root_device().
560
561 * include/grub/util/misc.h (grub_util_init_libzfs): New function
562 prototype.
563 * util/misc.c: Include `<grub/util/libzfs.h>'.
564 (grub_util_init_libzfs): New function.
565 [HAVE_LIBZFS] (libzfs_handle): New global variable.
566 [HAVE_LIBZFS] (fini_libzfs): New static function.
567 (grub_util_init_libzfs): New function.
568 * util/grub-probe.c (main): Call grub_util_init_libzfs().
569
f7790cdd
RM
5702010-07-30 Robert Millan <rmh@gnu.org>
571
572 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
573 (xmalloc, xrealloc, xstrdup, xasprintf): Add
574 `warn_unused_result' attribute.
575 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
576 (grub_xasprintf, grub_xvasprintf): Likewise.
577 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
578
0806b63c
RM
5792010-07-29 Robert Millan <rmh@gnu.org>
580
581 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
582 (probe): Handle `PRINT_FS_LABEL'.
583 (main): Handle `-t fs_label'.
584
9f841f5c
RM
5852010-07-29 Robert Millan <rmh@gnu.org>
586
587 * configure.ac: Remove grub-mkisofs checks.
588
46371121
VS
5892010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
590
591 * util/ieee1275/grub-install.in: Don't use empty grub_device.
592 Reported by: Lennart Sorensen.
593
5942010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
597 prior to terminal_input/terminal_output separation. It's been over 1.5
598 years and those versions weren't widely deployed.
599
a9600892
CW
6002010-07-22 Colin Watson <cjwatson@ubuntu.com>
601
602 * disk/raid.c (insert_array): Don't count named arrays when looking
603 for unused array numbers.
697e053c 604 Reported and tested by: Michael Guntsche.
a9600892 605
c03507df
CW
6062010-07-20 Colin Watson <cjwatson@ubuntu.com>
607
608 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
609 implementation of this so that grub-emu links again, with a note
610 that this should support hotplugging in the future.
611
b26f1c11
CW
6122010-07-20 Colin Watson <cjwatson@ubuntu.com>
613
614 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
615
efc9d7f1
CW
6162010-07-20 Colin Watson <cjwatson@ubuntu.com>
617
618 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
619 handle on failure.
620 (grub_loopback_close): Remove empty function.
621 (grub_loopback_dev): Remove close method.
622
dd8ff5c9
CW
6232010-07-20 Colin Watson <cjwatson@ubuntu.com>
624
625 Disable EFI cursor when the EFI console becomes inactive.
626
627 * term/efi/console.c (grub_efi_console_init): New function.
628 (grub_efi_console_fini): New function.
629 (grub_console_term_output): Register init and fini methods.
630
5e3bec67
VS
6312010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * tests/util/grub-shell-tester.in: Remove bashism and declare as
634 sh script.
635
afaec079
VS
6362010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * disk/loopback.c (grub_loopback): Replace filename with file.
639 (delete_loopback): Handle new semantics.
640 (grub_cmd_loopback): Likewise.
641 (grub_loopback_iterate): Likewise.
642 (grub_loopback_close): Likewise.
643
a6a11f3c
VS
6442010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
647 with -p "".
648 Reported by: Tito Keitel.
649
64a638b0
VS
6502010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * docs/grub.texi (Naming convention): Document new naming convention.
653
ab8ba957
VS
6542010-07-20 Vadim Solomin <vadic052@gmail.com>
6552010-07-20 Colin Watson <cjwatson@ubuntu.com>
656
657 Generate device.map in something closer to the old ordering.
658
659 * util/deviceiter.c (struct device): New declaration.
660 (compare_file_names): Rename to ...
661 (compare_devices): ... this. Sort by kernel name in preference to
662 the stable by-id name, but keep the latter as a fallback comparison.
663 Update header comment.
664 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
665 of `struct device' rather than of plain file names.
666
a29d6a4b
TF
6672010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
668
669 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
670 on i386.
671
39d824e8
VS
6722010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
673
674 * commands/acpi.c (setup_common_tables): Use sizeof instead of
675 hardcoding size.
676 (setv1table): Likewise.
677
f058276b
FZ
6782010-07-20 Colin Watson <cjwatson@ubuntu.com>
679
680 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
681 removing the homehost if present.
682 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
683 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
684 removing the homehost if present.
685 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
686 if possible.
687 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
688
689 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
690 parameter. Set its pointer target to 0.
691 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
692 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
693 `data_offset' value from the superblock for 1.x metadata.
694 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
695 data on the device.
696 (insert_array): Record the start sector of data on the device.
697 (grub_raid_register): Pass start_sector parameters to
698 grub_raid_list->detect and insert_array.
699 * include/grub/raid.h (struct grub_raid_array): Add start_sector
700 member.
701 (struct grub_raid): Add start_sector parameter to `detect'.
702
703 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
704 __attribute__ ((packed)), leaving a comment.
705 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
706 (grub_mdraid_detect_09): ... here and ...
707 (grub_mdraid_detect_1x): ... here.
708
7092010-07-20 Peter Henn <peter.henn@web.de>
710
711 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
712 chunk size and disk size, which are already given as sector counts
713 as distinct from the 0.90 units. Fetch the correct device number
714 from the role table instead of using the table index.
715
7162010-07-20 Felix Zielcke <fzielcke@z-51.de>
717
718 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
719 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
720 (WriteMostly1): New macro.
721 Set array->name to NULL for metadata format 0.90. Add support for
722 metadata 1.x. Fix some comments.
723 * disk/raid.c (): Add support for name based RAID arrays. Fix a
724 few comments.
725 * util/getroot.c (grub_util_get_grub_dev): Add support for
726 /dev/md/name style devices.
727
4b761da9
CW
7282010-07-20 Colin Watson <cjwatson@ubuntu.com>
729
730 * .bzrignore: Ignore 20_linux_xen.
731
5771289a
CW
7322010-07-17 Colin Watson <cjwatson@ubuntu.com>
733
734 * util/import_unicode.py: Remove unnecessary imports.
735
5dab68df
AN
7362010-07-17 Aleš Nesrsta <starous@volny.cz>
737
738 Hotplugging and USB hub support.
739
740 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
741 (grub_ohci): Likewise.
742 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
743 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
744 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
745 (GRUB_OHCI_CTRL_EDS): Likewise.
746 (GRUB_OHCI_BULK_EDS): Likewise.
747 (GRUB_OHCI_TDS): Likewise.
748 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
749 (grub_ohci_ed_phys2virt): New function.
750 (grub_ohci_virt_to_phys): Likewise.
751 (grub_ohci_td_phys2virt): Likewise.
752 (grub_ohci_td_virt2phys): Likewise.
753 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
754 attachment.
755 (grub_ohci_find_ed): New function.
756 (grub_ohci_alloc_td): Likewise.
757 (grub_ohci_free_td): Likewise.
758 (grub_ohci_free_tds): Likewise.
759 (grub_ohci_transfer): Use previously allocated memory.
760 (grub_ohci_portstatus): Reset status changed bit.
761 (grub_ohci_detect_dev): Supply status changed.
762 (grub_ohci_fini_hw): Free memory.
763 (grub_ohci_restore_hw): Reallocate memory.
764 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
765 Reset status change.
766 (grub_uhci_detect_dev): Supply status_change.
767 * bus/usb/usb.c (attach_hooks): New var.
768 (grub_usb_device_attach): New function.
769 (grub_usb_register_attach_hook_class): Likewise.
770 (grub_usb_unregister_attach_hook_class): Likewise.
771 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
772 (grub_usb_add_hub): Reset connection changed bit.
773 (attach_root_port): New function.
774 (grub_usb_root_hub): Likewise.
775 (poll_nonroot_hub): Likewise.
776 (grub_usb_poll_devices): Likewise.
777 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
778 * disk/usbms.c (grub_usbms_open): Use device hooks.
779 (grub_usbms_iterate) :Poll devices.
780 (grub_usbms_finddevs): Split into ...
781 (grub_usbms_attach): ... this ...
782 (grub_usbms_attach): ... and this.
783 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
784 in detect_dev.
785 (grub_usb_interface): New fields attached and detach_hook.
786 (grub_usb_attach_hook_class): New type.
787 (grub_usb_attach_desc): New struct.
788 (grub_usb_register_attach_hook_class): New function.
789 (grub_usb_unregister_attach_hook_class): Likewise.
790 (grub_usb_poll_devices): Likewise.
791 (grub_usb_device_attach): Likewise.
792 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
793 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
794
3222efaf
VS
7952010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
798 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
799 delta determination style. Works with most NetBSD partitions too.
800
139b714a
VS
8012010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
802
803 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
804 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
805
986aad56
VS
8062010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
809
99be513c
AB
8102010-07-14 Anton Blanchard <anton@samba.org>
811
812 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
813 ET_DYN files.
814
18075f62
GS
8152010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
816
817 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
818
8d9a5b15
GS
8192010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
820
821 * kern/partition.c (grub_partition_check_containment): New function to
822 check that a partition is physically contained in a parent. Since
823 offsets are relative (and non-negative), this reduces to checking that
824 the partition ends before its parent.
825 (grub_partition_map_probe): Discard out-of-range sub-partitions.
826 (grub_partition_iterate): Likewise.
827 * include/grub/partition.h (grub_partition_map): Slightly more detailed
828 comments.
829 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
830 partitions that start before their parent, and add debug printfs.
831
19563c25
CW
8322010-07-13 Colin Watson <cjwatson@ubuntu.com>
833
834 * Makefile.in (.SUFFIX): Spell correctly, as ...
835 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
836 bare module name without `.mod', e.g. `test') tried to invoke a
837 Modula-2 compiler.
838
1a1f1e67
CW
8392010-07-13 Colin Watson <cjwatson@ubuntu.com>
840
841 * README: Point to the Info manual.
842
811b0dca
JS
8432010-07-13 Jiro SEKIBA <jir@unicus.jp>
844
845 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
846 2nd superblock position from partition size.
847
e4f4eafc
CW
8482010-07-10 Colin Watson <cjwatson@ubuntu.com>
849
850 * Makefile.in (MAINTAINER_CLEANFILES): Remove
851 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
852 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
853 outputs.
854
4274c30f
VS
8552010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
856
857 Restructure SCSI .id handling.
858 Reported and tested by: Aleš Nesrsta.
859
860 * disk/ata.c (grub_atapi_close): Removed. All users updated.
861 (grub_atapi_dev): Changed .name to "ata". New field .id.
862 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
863 (grub_usbms_dev): New field .id.
864 * disk/scsi.c (grub_scsi_iterate): Generate name.
865 (grub_scsi_open): Parse name.
866 * include/grub/scsi.h (grub_make_scsi_id): New function.
867 (grub_scsi_dev): Change iterate and open to number instead of naming
868 busses. All users updated.
869 (grub_scsi): Remove name. Add .bus.
870
5bc24388
VS
8712010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * commands/help.c (grub_cmd_help): Fix a typo.
874
249975ba
VS
8752010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
878 Reported and tested by: Colin Watson.
879
3eaac1a1
VS
8802010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
883 in this context.
884
becce1b1
VS
8852010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
888
f7bf0918
CW
8892010-07-07 Colin Watson <cjwatson@ubuntu.com>
890
891 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
892 indentation.
893
0b0f9620
CW
8942010-07-06 Colin Watson <cjwatson@ubuntu.com>
895
896 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
897 and disk/raid6_recover.c.
898 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
899 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
900
1e545469
CW
9012010-07-06 Colin Watson <cjwatson@ubuntu.com>
902
903 * term/gfxterm.c (repaint_schedulded): Rename to ...
904 (repaint_scheduled): ... this. Update all callers.
905 (repaint_was_schedulded): Rename to ...
906 (repaint_was_scheduled): ... this. Update all callers.
907
5357687a
CW
9082010-07-06 Colin Watson <cjwatson@ubuntu.com>
909
910 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
911 which we expect to be handled by upper layers.
912
29d7e783
BC
9132010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
914
915 * bus/usb/usbhub.c: #include time.h header.
916
37582066
CW
9172010-07-06 Colin Watson <cjwatson@ubuntu.com>
918
919 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
920 entry_name also for entries without stat blocks (e.g. ".."); fixes
921 corruption of the first entry in a directory.
922
c8c06953
CW
9232010-07-06 Colin Watson <cjwatson@ubuntu.com>
924
925 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
926 after setting gfxterm as the active terminal. GRUB_BACKGROUND
927 doesn't work otherwise.
928
e75056f1
CW
9292010-07-05 Colin Watson <cjwatson@ubuntu.com>
930
931 * docs/grub.texi (Features): Update list of supported file systems.
932 (GNU/Linux): Update for GRUB 2.
933 (Serial terminal): Remove mention of --disable-serial, which was a
934 GRUB Legacy configure option. Update instructions to use
935 `terminal_input' and `terminal_output' rather than `terminal'.
936 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
937 configuration' and `Installing GRUB using grub-install'.
938 (Menu entry editor): Update for GRUB 2.
939 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
940 Document new -a, -u, and -v options.
941 (initrd): New section.
942 (initrd16): New section.
943 (linux): New section.
944 (linux16): New section.
945 (search): The `var' argument to `--set' is optional.
946 (GRUB only offers a rescue shell): Go into a little more detail on
947 drive ordering.
948
5cf69151
CW
9492010-07-05 Colin Watson <cjwatson@ubuntu.com>
950
951 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
952
e3f90044
CW
9532010-07-05 Colin Watson <cjwatson@ubuntu.com>
954
955 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
956 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
957
38d8f4f3
CW
9582010-07-05 Colin Watson <cjwatson@ubuntu.com>
959
960 * util/i386/pc/grub-setup.c (setup): Rename prefix to
961 install_prefix, in line with install_dos_part and install_bsd_part.
962 Add new prefix variable, which is copied to install_prefix after
963 comparing core.img in memory with the one read from disk in the
964 no-embedding case, and use that rather than overwriting
965 install_prefix immediately when installing to a partition.
966 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
967 Bicakci.
968
57ebd41e
GS
9692010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
970
971 * configure.ac: Avoid == in test command, it's not portable.
972 * util/grub.d/30_os-prober.in: Likewise.
973
cb7f64b2
CW
9742010-07-04 Colin Watson <cjwatson@ubuntu.com>
975
976 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
977
6b654bb0
GS
9782010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
979
980 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
981 multiple (top-level) partmaps.
982
72a2026d
VS
9832010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
984
985 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 986 Reported by: Tino Keitel.
72a2026d 987
df3eb88f
VS
9882010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
989
990 Bidi and diacritics support.
991
992 * Makefile.in (widthspec.bin): New target.
993 (widthspec.h): Likewise.
994 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
995 * autogen.sh: Generate unidata.c.
996 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
997 * commands/ls.c (grub_ls_list_devices): Likewise.
998 (grub_ls_list_files): Likewise.
999 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
1000 (grub_mini_cmd_lsmod): Likewise.
1001 * commands/read.c: Likewise.
1002 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
1003 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
1004 * lib/arg.c (grub_arg_show_help): Likewise.
1005 * lib/crypto.c (grub_password_get): Likewise.
1006 * normal/auth.c (grub_username_get): Likewise.
1007 * normal/misc.c (grub_normal_print_device_info): Likewise.
1008 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
1009 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
1010 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
1011 (normal/charset.c_DEPENDENCIES): New variable.
1012 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
1013 (pkglib_MODULES): Remove charset.mod.
1014 (charset_mod_SOURCES): Removed.
1015 (charset_mod_CFLAGS): Likewise.
1016 (charset_mod_LDFLAGS): Likewise.
1017 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
1018 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
1019 and term/tparm.c.
1020 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1021 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1022 (kernel_img_HEADERS): Add terminfo.h.
1023 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
1024 Fill ->font. Reverse ascii bitmaps.
1025 (grub_font_get_xheight): New function.
1026 * font/font.c (grub_font_get_string_width): Moved from here ...
1027 * gfxmenu/font.c (grub_font_get_string_width): ... here.
1028 * font/font.c (grub_font_draw_string): Moved from here ...
1029 * gfxmenu/font.c (grub_font_draw_string): ... here.
1030 * font/font.c (grub_font_dup_glyph): New function.
1031 (grub_font_blit_glyph): Likewise.
1032 (grub_font_blit_glyph_mirror): Likewise.
1033 (blit_comb): Likewise.
1034 (grub_font_construct_dry_run): Likewise.
1035 (grub_font_get_constructed_device_width): Likewise.
1036 (grub_font_construct_glyph): Likewise.
1037 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
1038 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
1039 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
1040 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
1041 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
1042 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
1043 (grub_font_get_xheight): New proto.
1044 (grub_font_get_constructed_device_width): Likewise.
1045 (grub_font_construct_glyph): Likewise.
1046 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
1047 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
1048 * include/grub/font.h (grub_font_draw_string): Moved from here ...
1049 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
1050 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
1051 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
1052 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
1053 (grub_console_getcharwidth): Likewise.
1054 * include/grub/misc.h (grub_xputs): New proto.
1055 (grub_puts): Inlined.
1056 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
1057 (grub_normal_get_line_counter): Removed.
1058 (grub_install_newline_hook): Likewise.
1059 (grub_normal_get_char_counter): New proto.
1060 (grub_normal_reset_more): Likewise.
1061 (grub_xputs_normal): Likewise.
1062 * include/grub/powerpc/ieee1275/console.h: Removed.
1063 * include/grub/sparc64/ieee1275/console.h: Likewise.
1064 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
1065 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
1066 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
1067 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
1068 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
1069 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
1070 (grub_term_input): Pass reference to self. All users updated.
1071 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
1072 Pass reference to self. New fields normal_color, highlight_color and
1073 data. All users updated.
1074 (grub_putchar): Removed.
1075 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
1076 (grub_unicode_estimate_width): New function.
1077 (grub_term_getcharwidth): Add defaults.
1078 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
1079 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
1080 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
1081 (grub_cls): Remove EXPORT_FUNC.
1082 (grub_setcolorstate): Inline.
1083 (grub_newline_hook): Removed.
1084 * include/grub/terminfo.h: Rewritten. All users updated.
1085 * include/grub/unicode.h: New file.
1086 * include/grub/video.h (grub_video_signed_rect): New type.
1087 * kern/emu/console.c (grub_console_highlight_color): Removed.
1088 (grub_console_normal_color): Likewise.
1089 (grub_console_standard_color): Made static.
1090 (grub_ncurses_putchar): Remove mapping.
1091 (grub_ncurses_getcharwidth): Removed.
1092 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
1093 (grub_ncurses_setcolor): Removed.
1094 (grub_ncurses_getcolor): Likewise.
1095 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
1096 (grub_console_putchar): ... this.
1097 (grub_console_putchar): Handle argument difference.
1098 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
1099 console_init_early and console_init_lately.
1100 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
1101 * kern/misc.c (grub_puts): Removed.
1102 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
1103 (grub_vsnprintf_real): Remove str = NULL support.
1104 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
1105 * normal/charset.c (grub_utf8_to_ucs4): ... here.
1106 * kern/term.c (grub_putcode): Renamed to ...
1107 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
1108 (grub_putchar): Removed.
1109 (grub_xputs_dumb): New function.
1110 (grub_xputs): New variable.
1111 * lib/charset.c: Move from here ...
1112 * normal/charset.c: ... to here.
1113 (grub_ucs4_to_utf8): New function.
1114 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
1115 (join_types): New variable.
1116 (unpack_join): New function.
1117 (bidi_types): New variable.
1118 (unpack_bidi): New function.
1119 (get_bidi_type): Likewise.
1120 (get_join_type): Likewise.
1121 (is_mirrored): Likewise.
1122 (grub_unicode_get_comb_type): Likewise.
1123 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
1124 (is_type_after): Likewise.
1125 (grub_unicode_aglomerate_comb): Likewise.
1126 (bidi_line_wrap): Likewise.
1127 (grub_bidi_line_logical_to_visual): Likewise.
1128 (grub_bidi_logical_to_visual): Likewise.
1129 (grub_unicode_mirror_code): Likewise.
1130 (grub_unicode_shape_code): Likewise.
1131 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
1132 Don't use grub_putchar.
1133 * normal/main.c (grub_normal_init_page): Use grub_putcode.
1134 (grub_normal_reader_init): Likewise.
1135 (grub_xputs_saved): New variable.
1136 (GRUB_MOD_INIT): Set grub_xputs.
1137 (GRUB_MOD_FINI): Restore grub_xputs.
1138 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
1139 (menu_init): Avoid printing gfxmenu error.
1140 (show_menu): Use grub_normal_get_char_counter.
1141 * normal/menu_entry.c (update_screen): Fix out-of-array.
1142 (complete): Avoid NULL dereferencing.
1143 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
1144 * normal/menu_text.c (print_spaces): Removed.
1145 (grub_print_ucs4): Likewise.
1146 (grub_print_message_indented): Use grub_print_ucs4.
1147 (print_message): Use grub_putcode.
1148 (print_entry): Hanlde diacritics.
1149 * normal/term.c (term_state): New type.
1150 (grub_more_lines): Removed.
1151 (term_states): New variable.
1152 (grub_normal_line_counter): Renamed to ..
1153 (grub_normal_char_counter): ...this. All users updated.
1154 (grub_normal_get_line_counter): Renamed to ...
1155 (grub_normal_get_char_counter): ... this.
1156 (grub_normal_reset_more): New function.
1157 (process_newline): Removed.
1158 (print_more): New function.
1159 (grub_install_newline_hook): Removed.
1160 (map_code): New function.
1161 (grub_puts_terminal): Use grub_print_ucs4.
1162 (putglyph): New function.
1163 (putcode_real): Likewise.
1164 (grub_putcode): Use putcode_real.
1165 (get_maxwidth): New function.
1166 (get_startwidth): Likewise.
1167 (print_ucs4_terminal): Likewise.
1168 (find_term_state): Likewise.
1169 (put_glyphs_terminal): Likewise.
1170 (print_backlog): Likewise.
1171 (print_ucs4_real): Likewise.
1172 (grub_print_ucs4): Likewise.
1173 (grub_xputs_normal): Likewise.
1174 * term/efi/console.c (grub_console_putchar): Output diacritics.
1175 (grub_console_getcharwidth): Removed.
1176 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
1177 * term/gfxterm.c (clear_char): Free chars.
1178 (scroll_up): Avoid leaking memory.
1179 (grub_gfxterm_putchar): Support diacritics.
1180 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
1181 * term/i386/pc/console.c (grub_console_term_output): Declare as
1182 GRUB_TERM_CODE_TYPE_VGA.
1183 * term/i386/pc/vga.c (grub_vga_term): Declare as
1184 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
1185 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
1186 GRUB_TERM_CODE_TYPE_VGA.
1187 * term/i386/vga_common.c (map_char): Removed.
1188 (grub_console_putchar): Likewise.
1189 (grub_console_getcharwidth): Likewise.
1190 * term/ieee1275/ofconsole.c: Simplify using terminfo.
1191 (colors): Reordered to match terminfo.
1192 (grub_ofconsole_normal_color): Removed.
1193 (grub_ofconsole_writeesc): Likewise.
1194 (grub_ofconsole_highlight_color): Likewise.
1195 (grub_ofconsole_getcharwidth): Likewise.
1196 (grub_ofconsole_setcolorstate): Likewise.
1197 (grub_ofconsole_setcolor): Likewise.
1198 (grub_ofconsole_getcolor): Likewise.
1199 (grub_ofconsole_readkey): Renamed to ...
1200 (readkey): ... this. Remove escape sequence handling. Return -1 on no
1201 key.
1202 (grub_ofconsole_checkkey): Removed.
1203 (grub_ofconsole_getkey): Likewise.
1204 (grub_ofconsole_getxy): Likewise.
1205 (grub_ofconsole_gotoxy): Likewise.
1206 (grub_ofconsole_cls): Likewise.
1207 (grub_ofconsole_refresh): Likewise.
1208 (grub_ofconsole_terminfo_input): New struct.
1209 (grub_ofconsole_terminfo_output): Likewise.
1210 (grub_ofconsole_term_input): Use terminfo.
1211 (grub_ofconsole_term_output): Likewise.
1212 (grub_console_init): Split into ...
1213 (grub_console_init_early): ...this and ...
1214 (grub_console_init_lately): ...this. Use terminfo.
1215 (grub_ofconsole_putchar): Renamed to ...
1216 (put): ... this. Remove mapping.
1217 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
1218 * term/serial.c: Simplify using terminfo.
1219 (xpos): Removed.
1220 (ypos): Likewise.
1221 (keep_track): Likewise.
1222 (registered): Likewise.
1223 (input_buf): Likewise.
1224 (npending): Likewise.
1225 (serial_translate_key_sequence): Likewise.
1226 (fill_input_buf): Likewise.
1227 (grub_serial_checkkey): Likewise.
1228 (grub_serial_getkey): Likewise.
1229 (grub_serial_getxy): Likewise.
1230 (grub_serial_gotoxy): Likewise.
1231 (grub_serial_putchar): Likewise.
1232 (grub_serial_cls): Likewise.
1233 (grub_serial_setcolorstate): Likewise.
1234 (grub_serial_setcursor): Likewise.
1235 (serial_hw_init): Use serial_hw_fetch.
1236 (grub_serial_terminfo_input): New variable.
1237 (grub_serial_terminfo_output): Likewise.
1238 (grub_serial_term_input): Use terminfo.
1239 (grub_serial_term_output): Likewise.
1240 * term/terminfo.c (putstr): Use put.
1241 (grub_terminfo_all_free): New function
1242 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
1243 (grub_terminfo_output_register): New function.
1244 (grub_terminfo_output_unregister): Likewise.
1245 (grub_terminfo_getxy): Likewise.
1246 (grub_terminfo_readkey): Likewise.
1247 (grub_terminfo_checkkey): Likewise.
1248 (grub_terminfo_getkey): Likewise.
1249 (grub_terminfo_input_init): Likewise.
1250 (print_terminfo): Likewise.
1251 (grub_cmd_terminfo): Handle encoding.
1252 (grub_terminfo_gotoxy): Track position.
1253 (grub_terminfo_cls): Likewise.
1254 (grub_terminfo_putchar): Likewise.
1255 (grub_terminfo_setcolorstate): Handle colors
1256 (grub_terminfo_cursor_on): This ...
1257 (grub_terminfo_cursor_off): ... and this merged into ...
1258 (grub_terminfo_setcursor): ... this.
1259 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
1260 * unicode/ArabicShaping.txt: New file (imported from Unicode).
1261 * unicode/BidiMirroring.txt: Likewise.
1262 * unicode/UnicodeData.txt: Likewise.
1263 * unicode/COPYING: Likewise.
1264 * util/grub-editenv.c (grub_putchar): Removed.
1265 (grub_xputs_real): New function.
1266 (grub_xputs): New variable.
1267 * util/grub-fstest.c (grub_putchar): Removed.
1268 (grub_xputs_real): New function.
1269 (grub_xputs): New variable.
1270 * util/grub-mkdevicemap.c (grub_putchar): Removed.
1271 (grub_xputs_real): New function.
1272 (grub_xputs): New variable.
1273 * util/grub-probe.c (grub_putchar): Removed.
1274 (grub_xputs_real): New function.
1275 (grub_xputs): New variable.
1276 * util/grub-script-check.c (grub_putchar): Removed.
1277 (grub_xputs_real): New function.
1278 (grub_xputs): New variable.
1279 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
1280 (grub_xputs_real): New function.
1281 (grub_xputs): New variable.
1282 * util/import_unicode.py: New file.
1283 * util/grub-mkfont.c (ft_errmsgs): New array.
1284 (grub_glyph_info): Make bitmap a pointer.
1285 (file_formats): New type WIDTH_SPEC.
1286 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
1287 (options): Add width-spec.
1288 (help): Likewise.
1289 (add_char): Renamed to ...
1290 (add_glyph): ... this.
1291 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
1292 (glyph_replace): New type.
1293 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
1294 (add_char): New function.
1295 (add_subst): Likewise.
1296 (process_cursive): Likewise.
1297 (add_font): Handle GSUB.
1298 (write_font_width_spec): New function.
1299 (main): Sort glyphs.
1300 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
1301 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
1302 * kern/term.c (grub_cls): Moved from here...
1303 * normal/term.c (grub_cls): ... here.
1304
50f0bcda
CW
13052010-07-02 Colin Watson <cjwatson@ubuntu.com>
1306
1307 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
1308 suitable for using within the format argument of printf when
1309 converting grub_size_t.
1310 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
1311 "x" to convert grub_size_t arguments.
1312
40372103
VS
13132010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
1316 too long captions.
1317 (list_get_minimal_size): Take selection box into account.
1318
942a10c7
VS
13192010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
1322 NULL font.
1323
2bdb2892
CW
13242010-07-02 Colin Watson <cjwatson@ubuntu.com>
1325
1326 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
1327 devices when iterating over /dev/disk/by-id; they will be handled
1328 later if appropriate, which they aren't always (e.g. LVM).
1329
e03ed6c1
CW
13302010-07-02 Colin Watson <cjwatson@ubuntu.com>
1331
1332 * include/grub/misc.h (grub_reboot): Declare as noreturn.
1333 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
1334 fails.
1335 (grub_halt): Likewise.
1336 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
1337 reset-all fails.
1338 (grub_halt): Don't return, even if all of shut-down, power-off, and
1339 poweroff fail.
1340
47695765
CW
13412010-07-02 Colin Watson <cjwatson@ubuntu.com>
1342
1343 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
1344 arguments, not three.
1345
507736c8
CW
13462010-07-02 Colin Watson <cjwatson@ubuntu.com>
1347
1348 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
1349 * util/grub.d/10_linux.in: Use it to check for LVM, so that
1350 LVM-on-RAID is handled correctly.
1351
e3c8cd37
CW
13522010-07-02 Colin Watson <cjwatson@ubuntu.com>
1353
1354 * docs/grub.texi (Changes from GRUB Legacy): New section.
1355 (Future): Fix typo.
1356
8d4a2fec
CW
13572010-07-02 Colin Watson <cjwatson@ubuntu.com>
1358
1359 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
1360 grub.d/README accidentally ends up executable for one reason or
1361 another. Ignore it.
1362
1c4827be
VS
13632010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
1366 (gpt_partition_map_iterate): Support non-512B sectors.
1367
d9a0c941
VS
13682010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * kern/efi/init.c (grub_efi_init): Disable watchdog.
1371 Tested by: Seth Goldberg.
1372
48f27e87
VS
13732010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
1376 Properly align mbi.
1377 Reported by: Seth Goldberg.
1378
b0c4f956
VS
13792010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * util/grub-mkrescue.in: Avoid module duplication.
1382
105a2e8c
SF
13832010-07-01 Sean Finney <seanius@seanius.net>
1384
1385 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
1386
5944958c
SF
13872010-07-01 Sean Finney <seanius@seanius.net>
1388
1389 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
1390
13912010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * disk/lvm.c (grub_lvm_checkvalue): New function.
1394 (grub_lvm_check_flag): Likewise.
1395
b79889ba
RM
13962010-07-01 Robert Millan <rmh@gnu.org>
1397
1398 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
1399 Support 'p' as partition separator on kernel of FreeBSD (used
1400 with GPT labels).
1401 (grub_util_biosdisk_get_grub_dev): Likewise.
1402
ec1d04f1
VS
14032010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 Yeeloong firmware port.
1406
1407 * boot/mips/yeeloong/fwstart.S: New file.
1408 * bus/cs5536.c (gpiodump): New const.
1409 (set_io_space): New function.
1410 (set_iod): Likewise.
1411 (set_p2d): Likewise.
1412 (grub_cs5536_init_geode): Likewise.
1413 * commands/mips/yeeloong/lsspd.c: New file.
1414 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
1415 (serial_mod_SOURCES): New variable.
1416 (serial_mod_CFLAGS): Likewise.
1417 (serial_mod_LDFLAGS): Likewise.
1418 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
1419 term/terminfo.c and term/tparm.c.
1420 (pkglib_IMAGES): Add fwstart.img.
1421 (fwstart_img_SOURCES): New variable.
1422 (fwstart_img_CFLAGS): Likewise.
1423 (fwstart_img_ASFLAGS): Likewise.
1424 (fwstart_img_LDFLAGS): Likewise.
1425 (fwstart_img_FORMAT): Likewise.
1426 (pkglib_MODULES): Add lsspd.mod.
1427 (lsspd_mod_SOURCES): New variable.
1428 (lsspd_mod_CFLAGS): Likewise.
1429 (lsspd_mod_LDFLAGS): Likewise.
1430 (pkglib_MODULES): Add halt.mod.
1431 (halt_mod_SOURCES): New variable.
1432 (halt_mod_CFLAGS): Likewise.
1433 (halt_mod_LDFLAGS): Likewise.
1434 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
1435 (serial_mod_SOURCES): Removed.
1436 (serial_mod_CFLAGS): Likewise.
1437 (serial_mod_LDFLAGS): Likewise.
1438 * disk/ata.c (check_device): New function.
1439 (grub_ata_device_initialize): Use check_device.
1440 (grub_ata_iterate): Recheck devices.
1441 (grub_ata_open): Likewise.
1442 (grub_atapi_iterate): Likewise.
1443 (grub_atapi_open): Likewise.
1444 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
1445 (GRUB_ATA_CH1_PORT1): Likewise.
1446 (GRUB_ATA_CH0_PORT2): Likewise.
1447 (GRUB_ATA_CH1_PORT2): Likewise.
1448 * include/grub/mips/loongson.h: New file.
1449 * include/grub/mips/yeeloong/ec.h: Likewise.
1450 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
1451 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
1452 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
1453 * include/grub/misc.h (grub_halt): Declare as noreturn.
1454 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
1455 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
1456 (UART_ENABLE_FIFO_TRIGGER1): New definition.
1457 (UART_ENABLE_DTRRTS): Likewise.
1458 (UART_ENABLE_MODEM): Removed.
1459 (UART_ENABLE_OUT2): New const.
1460 * include/grub/term.h (grub_term_register_input_active): New function.
1461 (grub_term_register_output_active): Likewise.
1462 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
1463 argument.
1464 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
1465 (init_pci): New function.
1466 (grub_machine_init): Execute platform init when firmware. Init serial.
1467 (grub_halt): Implement.
1468 (grub_exit): Likewise.
1469 (grub_reboot): Likewise.
1470 * term/serial.c (serial_hw_init): Update macros.
1471 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
1472 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
1473 (image_targets): New target mipsel-yeeloong-flash.
1474 (generate_image): Support IMAGE_YEELOONG_FLASH.
1475 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
1476 (grub_video_sm712_setup): Init card.
1477 (grub_video_sm712_set_palette): Removed.
1478 * video/sm712_init.c: New file.
1479
ff4a70d2
CW
14802010-06-30 Colin Watson <cjwatson@ubuntu.com>
1481
1482 * Makefile.in (install-local): Temporarily prepend $(builddir) to
1483 PATH when running help2man and then run it on the unadorned
1484 executable names, rather than passing $(builddir)/* paths to
1485 help2man. This avoids the build directory ending up in generated
1486 manual pages.
1487
1246efeb
CW
14882010-06-29 Colin Watson <cjwatson@ubuntu.com>
1489
1490 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
1491 to avoid accidents when debugging with 'sh -x'.
1492 * util/grub-mkrescue.in: Likewise.
1493 * util/grub.d/00_header.in: Likewise.
1494 * util/grub.d/10_hurd.in: Likewise.
1495 * util/grub.d/10_kfreebsd.in: Likewise.
1496 * util/grub.d/10_linux.in: Likewise.
1497 * util/grub.d/10_netbsd.in: Likewise.
1498 * util/grub.d/10_windows.in: Likewise.
1499 * util/grub.d/20_linux_xen.in: Likewise.
1500 * util/grub.d/30_os-prober.in: Likewise.
1501 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1502
1ba9b889
CW
15032010-06-29 Colin Watson <cjwatson@ubuntu.com>
1504
1505 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
1506 last character in the buffer.
1507 Reported by: Vladimir Serbinenko.
1508
dccaf99d
RM
15092010-06-29 Robert Millan <rmh@gnu.org>
1510
1511 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
1512 (Command-line and menu entry commands): Document `badram' command.
1513
d500ed12
RM
15142010-06-28 Robert Millan <rmh@gnu.org>
1515
1516 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
1517 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
1518 command using ${GRUB_BADRAM} as parameter.
1519
20bc84a6
CW
15202010-06-28 Colin Watson <cjwatson@ubuntu.com>
1521
1522 * docs/grub.texi (Device map): New section.
1523 (Themes): New section (stub).
1524 * Makefile.in (docs/grub.info): The info documentation now builds
1525 without errors. Make sure it stays that way.
1526
4045dee1
VS
15272010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 Use normal parser for menu entries.
1530 Reported by: Thomas Frauendorfer
1531
1532 * include/grub/parser.h (grub_parser_execute): Don't export.
1533 * normal/menu.c (grub_menu_execute_entry_real): New function.
1534 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
1535
bca58c7b
CW
15362010-06-28 Colin Watson <cjwatson@ubuntu.com>
1537
1538 * docs/grub.texi (Embedded configuration): New section (replacing
1539 old "Preset Menu" stub).
1540 (Images): New section.
1541 (configfile): Note that any menu entries defined in `file' are shown
1542 immediately.
1543
dec53e63
JT
15442010-06-28 Josh Triplett <josh@joshtriplett.org>
1545
1546 * mmap/i386/pc/mmap_helper.S: Set CF on return.
1547
c06e40f7
CW
15482010-06-28 Colin Watson <cjwatson@ubuntu.com>
1549
1550 * util/grub-install.in: Add --debug-image= option.
1551
cb88052b
CW
15522010-06-28 Colin Watson <cjwatson@ubuntu.com>
1553
1554 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
1555 possible on Linux.
1556
1557 * util/deviceiter.c (check_device): Rename to ...
1558 (check_device_readable_unique): ... this. Update all callers.
1559 Maintain and check a list of which devices (by canonicalized name)
1560 have already been seen.
1561 (clear_seen_devices): New function.
1562 (compare_file_names) [__linux__]: New function.
1563 (grub_util_iterate_devices): Clear the list of seen devices on exit
1564 and (just in case) on entry.
1565 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
1566 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
1567 seen-devices list, superseded by general code in check_device.
1568
bbe34652
CW
15692010-06-28 Colin Watson <cjwatson@ubuntu.com>
1570
1571 * commands/cat.c (options): New variable.
1572 (grub_cmd_cat): Parse options. If the --dos option is given, print
1573 DOS-style "\r\n" line endings as simple newlines (Debian bug
1574 #586358).
1575 (GRUB_MOD_INIT): Use extcmd.
1576 (GRUB_MOD_FINI): Likewise.
1577 * docs/grub.texi (cat): Document --dos.
1578
412e09f3
VS
15792010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 XEN with Linux grub-mkconfig support.
1582
1583 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
1584 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
1585 GRUB_CMDLINE_XEN_DEFAULT.
1586 * util/grub.d/20_linux_xen.in: New file.
1587
53f3ef38 15882010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
1589
1590 Initialise VGA video on qemu ourselves.
1591
1592 * boot/i386/qemu/boot.S: Don't call 0xc000.
1593 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
1594 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
1595 (kernel_img_HEADERS): Add pci.h.
1596 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
1597 * configure.ac: Force unifont on qemu and yeeloong.
1598 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
1599 (grub_vga_palette_write): Use correct register.
1600 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
1601 Call grub_qemu_init_cirrus.
1602 * kern/i386/qemu/init.c: New file.
1603 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
1604
1605 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
1606
c75be4fb
PR
16072010-06-26 Pavel Roskin <proski@gnu.org>
1608
1609 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
1610 13.
1611
d8034603
CW
16122010-06-26 Colin Watson <cjwatson@ubuntu.com>
1613
1614 * docs/grub.texi (Simple configuration): Explain that
1615 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
1616 set to `true' to disable their respective recovery entries, not
1617 merely set.
1618
3fa06487
CW
16192010-06-26 Colin Watson <cjwatson@ubuntu.com>
1620
1621 Make the `source' command slightly faster.
1622
1623 * normal/main.c (grub_normal_execute): Don't re-read list files when
1624 nested.
1625
e9b29642
CW
16262010-06-23 Colin Watson <cjwatson@ubuntu.com>
1627
1628 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
1629 field position and mask size to red fields from mode_info, not
1630 green.
1631 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
1632 Remove redundant tag->common.framebuffer_type assignment.
1633 Reported by: Seth Goldberg.
1634
e726542f
CW
16352010-06-23 Colin Watson <cjwatson@ubuntu.com>
1636
1637 Sync up other versions of the Linux loader with Robert Millan's
1638 change of 2010-01-09, "Make loader output a bit more user-friendly".
1639
1640 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
1641 grub_dprintf().
1642 (grub_cmd_linux): Likewise.
1643 (grub_cmd_initrd): Likewise.
1644 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
1645 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1646
d6e98a17
CW
16472010-06-21 Colin Watson <cjwatson@ubuntu.com>
1648
1649 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
1650 larger than MEMORY_MAP_SIZE.
1651
14d3f08e
BC
16522010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
1653
1654 Fix parallel build.
1655
1656 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
1657 dependency.
1658 * script/parser.y: #include grub_script.tab.h header.
1659
4f9613a3
VS
16602010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 Support >3GiB and <16MiB RAM in i386-qemu.
1663
1664 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
1665 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
1666 (grub_lower_mem): Removed.
1667 (grub_upper_mem): Likewise.
1668 (mem_size): Made static.
1669 (above_4g): New variable.
1670 (grub_machine_mmap_init): Detect small mem_size and above_4g.
1671 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
1672 support.
1673
05e51879
VS
16742010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 Cirrus 5446 and Bochs video cards support.
1677
1678 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
1679 video_bochs.mod
1680 (video_cirrus_mod_SOURCES): New variable.
1681 (video_cirrus_mod_CFLAGS): Likewise.
1682 (video_cirrus_mod_LDFLAGS): Likewise.
1683 (video_bochs_mod_SOURCES): Likewise.
1684 (video_bochs_mod_CFLAGS): Likewise.
1685 (video_bochs_mod_LDFLAGS): Likewise.
1686 * include/grub/vga.h: New file.
1687 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
1688 (grub_video_fb_set_page_t): New type.
1689 (grub_video_fb_setup): New prototype.
1690 (grub_video_fb_swap_buffers): Likewise.
1691 (grub_video_fb_get_info_and_fini): Likewise.
1692 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
1693 (CRTC_DATA_PORT): Likewise.
1694 (CRTC_CURSOR): Likewise.
1695 (CRTC_CURSOR_ADDR_HIGH): Likewise.
1696 (CRTC_CURSOR_ADDR_LOW): Likewise.
1697 (CRTC_CURSOR_DISABLE): Likewise.
1698 (update_cursor): Use grub_vga_cr_write.
1699 (grub_vga_text_setcursor): Likewise.
1700 * video/bochs.c: New file.
1701 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
1702 (palette): Likewise.
1703 (palette_size): Likewise.
1704 (framebuffer): New variable.
1705 (grub_video_fb_init): Use 'framebuffer'.
1706 (grub_video_fb_fini): Likewise.
1707 (grub_video_fb_get_info): Likewise.
1708 (grub_video_fb_get_palette): Likewise.
1709 (grub_video_fb_set_palette): Likewise.
1710 (grub_video_fb_set_viewport): Likewise.
1711 (grub_video_fb_get_viewport): Likewise.
1712 (grub_video_fb_map_color): Likewise.
1713 (grub_video_fb_map_rgb): Likewise.
1714 (grub_video_fb_map_rgba): Likewise.
1715 (grub_video_fb_unmap_color): Likewise.
1716 (grub_video_fb_unmap_color_int): Likewise.
1717 (grub_video_fb_fill_rect): Likewise.
1718 (grub_video_fb_blit_bitmap): Likewise.
1719 (grub_video_fb_blit_render_target): Likewise.
1720 (grub_video_fb_scroll): Likewise.
1721 (grub_video_fb_create_render_target): Likewise.
1722 (grub_video_fb_doublebuf_blit_init): Likewise.
1723 (grub_video_fb_set_active_render_target): Handle doublebuffering.
1724 (doublebuf_pageflipping_update_screen): New function.
1725 (doublebuf_pageflipping_init): Likewise.
1726 (grub_video_fb_setup): Likewise.
1727 (grub_video_fb_swap_buffers): Likewise.
1728 (grub_video_fb_get_info_and_fini): Likewise.
1729 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
1730 All users updated.
1731 (doublebuf_pageflipping_commit): Restructured into ...
1732 (doublebuf_pageflipping_set_page): ... this.
1733 (doublebuf_pageflipping_update_screen): Removed.
1734 (doublebuf_pageflipping_init): Likewise.
1735 (double_buffering_init): Likewise.
1736 (grub_video_vbe_setup): Use grub_video_fb_setup.
1737 (grub_video_vbe_swap_buffers): Removed.
1738 (grub_video_vbe_set_active_render_target): Likewise.
1739 (grub_video_vbe_get_active_render_target): Likewise.
1740 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
1741 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
1742 grub_video_fb_set_active_render_target and
1743 grub_video_fb_get_active_render_target.
1744 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
1745 (SEQUENCER_DATA_PORT): Likewise.
1746 (MAP_MASK_REGISTER): Likewise.
1747 (CRTC_ADDR_PORT): Likewise.
1748 (CRTC_DATA_PORT): Likewise.
1749 (START_ADDR_HIGH_REGISTER): Likewise.
1750 (START_ADDR_LOW_REGISTER): Likewise.
1751 (GRAPHICS_ADDR_PORT): Likewise.
1752 (GRAPHICS_DATA_PORT): Likewise.
1753 (READ_MAP_REGISTER): Likewise.
1754 (INPUT_STATUS1_REGISTER): Likewise.
1755 (INPUT_STATUS1_VERTR_BIT): Likewise.
1756 (get_map_mask): Use grub_vga_sr_read.
1757 (set_map_mask): Use grub_vga_sr_write.
1758 (set_read_map): Use grub_vga_gr_write.
1759 (set_start_address): Use grub_vga_cr_write.
1760 * video/sm712.c (framebuffer): Remove leftover fields.
1761
4321c64a
CW
17622010-06-20 Colin Watson <cjwatson@ubuntu.com>
1763
1764 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
1765 setting GRUB_VIDEO_BACKEND. Make it available as a user override
1766 instead. Replace the gfxterm backend check with a check that
1767 ${GRUB_PREFIX}/video.lst is non-empty.
1768 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
1769 again.
1770 (load_video): New generated function. Call it before loading
1771 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
1772 * util/grub.d/10_linux.in (linux_entry): Call load_video.
1773 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
1774 * docs/grub.texi (Simple configuration): Document
1775 GRUB_VIDEO_BACKEND.
1776
17772010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 Use video functions in linux and xnu loaders.
1780
1781 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
1782 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
1783 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
1784 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
1785 loader/i386/pc/linux.c.
1786 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
1787 (find_line_len): Removed.
1788 (find_framebuf): Likewise.
1789 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
1790 * loader/i386/efi/xnu.c: Removed.
1791 * loader/i386/pc/xnu.c: Moved from here...
1792 * loader/i386/xnu.c: ...here.
1793
1794 Enable priorities in video drivers.
1795
1796 * include/grub/video.h (grub_video_adapter_prio_t): New type.
1797 (grub_video_adapter): New field prio.
1798 (grub_video_register): Respect prio when inserting.
1799 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
1800 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
1801 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
1802 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
1803 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
1804 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
1805 * video/sm712.c (grub_video_sm712_adapter): Likewise.
1806
1807 Fix SDL driver ID.
1808
1809 * include/grub/video.h (grub_video_driver_id_t): New value
1810 GRUB_VIDEO_DRIVER_SDL.
1811 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
1812
7d24e434
CW
18132010-06-17 Colin Watson <cjwatson@ubuntu.com>
1814
1815 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
1816 argument to printf.
1817 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1818
c88a83f6
CW
18192010-06-17 Colin Watson <cjwatson@ubuntu.com>
1820
1821 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
1822 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1823
094dfb69
CW
18242010-06-17 Colin Watson <cjwatson@ubuntu.com>
1825
1826 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
1827 directly, and recommend grub-install instead.
1828 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1829
2164da6b
CW
18302010-06-17 Colin Watson <cjwatson@ubuntu.com>
1831
1832 Fix i386-pc prefix handling with nested partitions (Debian bug
1833 #585068). Note that the case where the core image is booted using
1834 multiboot and relocated from its original location still requires
1835 more work.
1836
1837 * kern/i386/pc/init.c (make_install_device): If the prefix starts
1838 with "(,", fill the boot drive in between those two characters, but
1839 expect that a full partition specification including partition map
1840 names will follow.
1841 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
1842 specified, write a prefix without the drive name but including a
1843 full partition specification.
1844
044e2e60
CW
18452010-06-16 Colin Watson <cjwatson@ubuntu.com>
1846
1847 * util/grub-mkconfig.in: Ignore non-option arguments, for
1848 compatibility with older versions (before 2010-06-12) which did the
1849 same. In particular, this makes it easier to ship an update-grub
1850 wrapper which is compatible with that used with GRUB Legacy (Debian
1851 bug #586056).
1852
5591324f
GS
18532010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1854
1855 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
1856 for manual page generation.
1857
662e24d5
GS
18582010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1859
1860 * po/POTFILES: Remove leftover commands/handler.c.
1861
8d70754e
CW
18622010-06-14 Colin Watson <cjwatson@ubuntu.com>
1863
1864 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
1865 left this script non-functional.
1866
41160e2e
CW
18672010-06-14 Colin Watson <cjwatson@ubuntu.com>
1868
1869 * docs/man/grub-emu.h2m: New file.
1870
b5309cc1
CW
18712010-06-13 Colin Watson <cjwatson@ubuntu.com>
1872
1873 * docs/grub.texi (Commands): Document reduced command set in rescue
1874 mode.
1875 (cpuid): New section.
1876
fcb2d090
GS
18772010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
1878
1879 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
1880 new partition naming style.
1881 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
1882
96e5c556
BC
18832010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
1884
1885 Add "-o grub.iso" like cmdline options support.
1886
1887 * util/grub-install.in: Improve cmdline option parsing.
1888 * util/grub-mkconfig.in: Likewise.
1889 * util/grub-mkrescue.in: Likewise.
1890 * util/grub-reboot.in: Likewise.
1891 * util/grub-set-default.in: Likewise.
1892 * util/i386/efi/grub-install.in: Likewise.
1893 * util/ieee1275/grub-install.in: Likewise.
1894 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1895
c16be99b
CW
18962010-06-12 Colin Watson <cjwatson@ubuntu.com>
1897
1898 * .bzrignore: Ignore 41_custom.
1899
ce08a9fb
TS
19002010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1901
1902 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
1903
7beac90c
CW
19042010-06-12 Colin Watson <cjwatson@ubuntu.com>
1905
1906 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
1907 prototype declarations.
1908
1909 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
1910 generating fs, partmap, and video lists.
1911 * include/grub/fs.h (grub_fs_register): Omit prototype if
1912 GRUB_LST_GENERATOR is defined.
1913 * include/grub/partition.h (grub_partition_map_register): Likewise.
1914 * include/grub/video.h (grub_video_register): Likewise.
1915
1c8f0f8d
JM
19162010-06-12 Javier Martín <lordhabbit@gmail.com>
1917
1918 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
1919
a6085973
TS
19202010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1921
1922 * util/grub-mkrescue.in: Support --xorriso argument.
1923
25c56d29
VS
19242010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
1927 Suggested by: Thomas Schmitt.
1928
e03e4b24
VS
19292010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
1932 Suggested by: Thomas Schmitt.
1933
57711df6
VS
19342010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 custom.cfg support.
1937
1938 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
1939 * util/grub.d/41_custom.in: New file.
1940
ee62c427
CW
19412010-06-12 Colin Watson <cjwatson@ubuntu.com>
1942
1943 * util/grub-mkrescue.in (make_image): Remove sh module, which has
1944 been merged back into normal.
1945
283af07a
CW
19462010-06-11 Colin Watson <cjwatson@ubuntu.com>
1947
1948 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
1949 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
1950
56a0d956
CW
19512010-06-11 Colin Watson <cjwatson@ubuntu.com>
1952
1953 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
1954 when generating manual pages.
1955 * docs/man/grub-bin2h.h2m: New file.
1956 * docs/man/grub-editenv.h2m: New file.
1957 * docs/man/grub-fstest.h2m: New file.
1958 * docs/man/grub-install.h2m: New file.
1959 * docs/man/grub-macho2img.h2m: New file.
1960 * docs/man/grub-mkconfig.h2m: New file.
1961 * docs/man/grub-mkdevicemap.h2m: New file.
1962 * docs/man/grub-mkfont.h2m: New file.
1963 * docs/man/grub-mkimage.h2m: New file.
1964 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
1965 * docs/man/grub-mkrelpath.h2m: New file.
1966 * docs/man/grub-mkrescue.h2m: New file.
1967 * docs/man/grub-ofpathname.h2m: New file.
1968 * docs/man/grub-pe2elf.h2m: New file.
1969 * docs/man/grub-probe.h2m: New file.
1970 * docs/man/grub-reboot.h2m: New file.
1971 * docs/man/grub-script-check.h2m: New file.
1972 * docs/man/grub-set-default.h2m: New file.
1973 * docs/man/grub-setup.h2m: New file.
1974
3a37e322
VS
19752010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 Use FOR_* macros instead of *_iterate whenever possible.
1978
1979 * commands/handler.c: Removed.
1980 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
1981 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
1982 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1983 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
1984 (grub_probe_SOURCES): Remove kern/parser.c.
1985 (util/grub-script-check.c_DEPENDENCIES): Removed.
1986 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
1987 and grub_script_check_init.c.
1988 (grub_script_check_init.lst): Removed.
1989 (grub_script_check_init.h): Likewise.
1990 (grub_script_check_init.c): Likewise.
1991 (pkglib_MODULES): Remove handler.mod and sh.mod.
1992 (handler_mod_SOURCES): Removed.
1993 (handler_mod_CFLAGS): Likewise.
1994 (handler_mod_LDFLAGS): Likewise.
1995 (normal_mod_SOURCES): Remove normal/handler.c.
1996 Add script/main.c, script/script.c, script/execute.c,
1997 script/function.c, script/lexer.c, grub_script.tab.c
1998 and grub_script.yy.c.
1999 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
2000 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
2001 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
2002 (grub_setup_SOURCES): Remove kern/parser.c.
2003 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
2004 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
2005 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
2006 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
2007 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
2008 (grub_setup_SOURCES): Remove kern/parser.c.
2009 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
2010 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
2011 * include/grub/command.h (grub_command_iterate): Removed.
2012 (FOR_COMMANDS): New macro.
2013 * include/grub/dl.h (grub_dl): New member next.
2014 (grub_dl_iterate): Removed.
2015 (grub_dl_head): New variable declaration.
2016 (FOR_DL_MODULES): New macro.
2017 * include/grub/fs.h: Include list.h.
2018 (grub_fs): Make next first element.
2019 (grub_fs_list): New variable declaration.
2020 (grub_fs_register): Make inline.
2021 (grub_fs_unregister): Likewise.
2022 (grub_fs_iterate): Removed.
2023 (FOR_FILESYSTEMS): New macro.
2024 * include/grub/handler.h: Removed.
2025 * include/grub/list.h (grub_list_hook_t): Removed.
2026 (grub_list_test_t): Likewise.
2027 (grub_list_pop): Likewise.
2028 (grub_list_iterate): Likewise.
2029 (grub_list_insert): Likewise.
2030 (FOR_LIST_ELEMENTS): New macro.
2031 * include/grub/parser.h (grub_parser_class): Removed.
2032 (grub_parser_register): Likewise.
2033 (grub_parser_unregister): Likewise.
2034 (grub_parser_get_current): Likewise.
2035 (grub_parser_set_current): Likewise.
2036 (grub_register_rescue_parser): Likewise.
2037 (grub_rescue_parse_line): New function.
2038 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
2039 * include/grub/script_sh.h (grub_script_function_list): New variable
2040 declaration.
2041 (FOR_SCRIPT_FUNCTIONS): New macro.
2042 (grub_script_function_iterate): Removed.
2043 (grub_normal_parse_line): New prototype.
2044 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
2045 (FOR_DISABLED_TERM_INPUTS): Likewise.
2046 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
2047 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
2048 * include/grub/video.h (grub_video_adapter): Move 'next' to first
2049 element.
2050 (grub_video_register): Inline.
2051 (grub_video_unregister): Likewise.
2052 (grub_video_adapter_list): New variable declaration.
2053 (grub_video_iterate): Removed.
2054 (FOR_VIDEO_ADAPTERS): New macro.
2055 * kern/dl.c (grub_dl_list): Removed. All users updated.
2056 (grub_dl_iterate): Removed.
2057 * kern/fs.c (grub_fs_list): Make global.
2058 (grub_fs_register): Removed.
2059 (grub_fs_unregister): Likewise.
2060 (grub_fs_iterate): Likewise.
2061 * kern/handler.c: Removed.
2062 * kern/list.c (grub_list_pop): Removed.
2063 (grub_list_iterate): Likewise.
2064 (grub_list_insert): Likewise.
2065 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
2066 (grub_prio_list_insert): Don't use grub_list_insert.
2067 * kern/main.c (grub_register_rescue_parser): Don't call
2068 grub_register_rescue_parser.
2069 * kern/parser.c (grub_parser_class): Removed.
2070 (grub_parser_execute): Use grub_rescue_parse_line.
2071 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
2072 (grub_rescue_parser): Removed.
2073 (grub_register_rescue_parser): Likewise.
2074 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
2075 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
2076 (grub_auth_check_authentication): Likewise.
2077 * normal/completion.c (iterate_command): Removed.
2078 (grub_normal_do_completion): Use FOR_COMMANDS.
2079 * normal/handler.c: Removed.
2080 * normal/main.c (read_config_file): Remove parser changing.
2081 (grub_normal_execute): Don't call read_handler_list.
2082 (grub_normal_read_line_real): Statically allocate prompt.
2083 (grub_cmdline_run): Use grub_normal_parse_line.
2084 (GRUB_MOD_FINI): Don't call free_handler_list.
2085 * normal/menu_entry.c (run): Likewise.
2086 * script/function.c (grub_script_function_list): Make global.
2087 (grub_script_function_iterate): Removed.
2088 * script/main.c (grub_normal_parse_line): Make global.
2089 (grub_sh_parser): Removed.
2090 (GRUB_MOD_INIT): Likewise.
2091 (GRUB_MOD_FINI): Likewise.
2092 * tests/lib/functional_test.c (grub_functional_test): Use
2093 FOR_LIST_ELEMENTS.
2094 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
2095 (grub_test_run): Use FOR_LIST_ELEMENTS.
2096 * tests/lib/unit_test.c (main): Likewise.
2097 * util/deviceiter.c (grub_util_iterate_devices): Don't use
2098 grub_list_pop.
2099 * util/grub-fstest.c (grub_term_input_class): Removed.
2100 (grub_term_output_class): Likewise.
2101 * util/grub-probe.c: Likewise.
2102 * util/i386/pc/grub-setup.c: Likewise.
2103 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2104 * util/grub-script-check.c (main): Don't call grub_init_all and
2105 grub_fini_all.
2106 * video/video.c (grub_video_adapter_list): Make global.
2107 (grub_video_register): Removed.
2108 (grub_video_unregister): Likewise.
2109 (grub_video_iterate): Likewise.
2110
6289c3a7
VS
21112010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
2114 reported by Henrique Ferreiro.
2115
91460247
RM
21162010-06-09 Robert Millan <rmh@gnu.org>
2117
2118 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
2119 ones, when both are available.
2120
0ea7c4f9
GS
21212010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2122
2123 Make --version uniform and avoid hard-coded program name.
2124
2125 * util/grub-mkimage.c (main): Use `program_name' instead of
2126 hard-coded string.
2127 * util/i386/pc/grub-setup.c (main): Likewise.
2128 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
2129 * util/grub-install.in: Save the basename of $0 in $self, and use the
2130 latter in informational messages. Use the same format for --version
2131 as the binary programs.
2132 * util/grub-mkconfig.in: Likewise.
2133 * util/grub-mkrescue.in: Likewise.
2134 * util/grub-reboot.in: Likewise.
2135 * util/grub-set-default.in: Likewise.
2136 * util/i386/efi/grub-install.in: Likewise.
2137 * util/ieee1275/grub-install.in: Likewise.
2138 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2139
e8a6f3b6
GS
21402010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2141
2142 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
2143 embedding area. Use <= instead of == when checking for non-emptiness.
2144
f4d095d7
GS
21452010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2146
2147 * configure.ac: Add `.' to the directories searched for unifont.
2148
50e532ca
CW
21492010-06-08 Colin Watson <cjwatson@ubuntu.com>
2150
2151 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
2152 grub_script.yy.h.
2153
d39f3dec
CW
21542010-06-08 Colin Watson <cjwatson@ubuntu.com>
2155
2156 * docs/grub.texi (History): Expand to cover GRUB 2.
2157 (Serial terminal): Refer to `terminal_input' and `terminal_output'
2158 commands, not `terminal'.
2159 (serial): Likewise.
2160 (terminal_input): New section.
2161 (terminal_output): New section.
2162 (uppermem): New section (stub).
2163 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
2164
6ef0ddb4
CW
21652010-06-08 Colin Watson <cjwatson@ubuntu.com>
2166
2167 * docs/grub.texi (Security): Menu entries are unrestricted by
2168 default, not restricted to superusers as I had previously thought.
2169 Reword to account for this.
2170
e0f4c438
CW
21712010-06-07 Colin Watson <cjwatson@ubuntu.com>
2172
2173 * kern/emu/misc.c (device_mapper_null_log): New function.
2174 (grub_device_mapper_supported): New function.
2175 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
2176 prototype.
2177 * kern/emu/hostdisk.c (find_partition_start): Check whether
2178 device-mapper is supported before trying to use it.
2179 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
2180
da908200
CW
21812010-06-07 Colin Watson <cjwatson@ubuntu.com>
2182
2183 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
2184 (File name syntax): Likewise.
2185 (help): --all is no longer supported in GRUB 2. Be more precise
2186 about pattern matching.
2187
fb55c3ac
CW
21882010-06-07 Colin Watson <cjwatson@ubuntu.com>
2189
2190 * normal/completion.c (grub_normal_do_completion): When completing
2191 arguments to "set" and the current word contains an equals sign,
2192 skip to after the equals sign before starting completion.
2193
258c2573
CW
21942010-06-07 Colin Watson <cjwatson@ubuntu.com>
2195
2196 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
2197
ee75515e
CW
21982010-06-07 Colin Watson <cjwatson@ubuntu.com>
2199
2200 * docs/grub.texi (Network): New section.
2201 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
2202 `(nd)' as in GRUB Legacy.
2203 (pxe_unload): New section.
2204
a6a700aa
CW
22052010-06-07 Colin Watson <cjwatson@ubuntu.com>
2206
2207 * docs/grub.texi (Troubleshooting): `echo' is not usually available
2208 in the rescue shell, so recommend using `set' instead. Thanks,
2209 Jordan Uggla.
2210
4003dd38
CW
22112010-06-07 Colin Watson <cjwatson@ubuntu.com>
2212
2213 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
2214 (password): New section.
2215 (password_pbkdf2): New section.
2216 (search): New section.
2217 (Security): New section.
2218 (Troubleshooting): New section, currently very incomplete.
2219 (Invoking grub-mkpasswd-pbkdf2): New section.
2220 (Internals): New section, currently very incomplete.
2221
e1cbcc40
CW
22222010-06-07 Colin Watson <cjwatson@ubuntu.com>
2223
2224 * util/grub.d/00_header.in: Add some more quoting (of
2225 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
2226 work again.
2227 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
2228
db8fa1ad
CW
22292010-06-07 Colin Watson <cjwatson@ubuntu.com>
2230
2231 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
2232 to `count', fixing variable shadowing that broke the -c option.
2233
22342010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
2235
2236 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
2237 in case they contain spaces.
2238
f28a9212
CW
22392010-06-04 Colin Watson <cjwatson@ubuntu.com>
2240
2241 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
2242 "part_" to partmap module names, in line with grub-install.
2243 Reported by: Jindřich Makovička (Debian bug #584426).
2244
9cdfe32f
CW
22452010-06-04 Colin Watson <cjwatson@ubuntu.com>
2246
2247 * util/grub-mkimage.c: Make target-related error messages slightly
2248 more helpful; -O talks about "format". Explicitly point to the use
2249 of -O if no target is specified.
2250 Reported by: Didier Raboud (Debian bug #584415).
2251
795b593a
CW
22522010-06-03 Colin Watson <cjwatson@ubuntu.com>
2253
2254 * INSTALL: Document several build requirements for optional features
2255 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
2256
9d9b5833
GS
22572010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
2258
2259 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
2260 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
2261 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
2262
0819fec8
CW
22632010-06-02 Colin Watson <cjwatson@ubuntu.com>
2264
2265 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
2266 Thanks to Jordan Uggla for spotting this.
2267
49396b4f
VS
22682010-06-02 Aleš Nesrsta <starous@volny.cz>
2269
2270 Finally make USB usable.
2271
2272 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
2273 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
2274 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
2275 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
2276 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
2277 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
2278 (GRUB_OHCI_FSMPS): Likewise.
2279 (GRUB_OHCI_PERIODIC_START): Likewise.
2280 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
2281 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
2282 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
2283 (GRUB_OHCI_SET_PORT_RESET): Likewise.
2284 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
2285 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
2286 (grub_ohci_transaction): Likewise.
2287 (grub_ohci_transfer): Improve condition detection algorithms.
2288 Handle toggle property. Program the transactions correctly.
2289 Improve error handling. Various important fixups.
2290 (grub_ohci_portstatus): Put register writes in right order.
2291 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
2292 (grub_uhci_transfer): Don't show "failed" message on success.
2293 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
2294 array.
2295 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
2296 determine its size.
2297 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
2298 before initialization is completed. Use IN direction for empty
2299 transfers. Use last_trans and compute toggle.
2300 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
2301 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
2302 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
2303 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
2304 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
2305 (grub_usb_device): Increase toggle to 256.
2306 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
2307 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
2308 GRUB_USBMS_SUBCLASS_SFF8070.
2309 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
2310 (grub_scsi_inquiry): New member page and alloc_length.
2311 (grub_scsi_request_sense): New structure.
2312 (grub_scsi_request_sense_data): Likewise.
2313 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
2314 control.
2315 * disk/scsi.c (grub_scsi_request_sense): New function.
2316 (grub_scsi_test_unit_ready): Likewise.
2317 (grub_scsi_inquiry): Fill new fields.
2318 (grub_scsi_read_capacity): Likewise.
2319 (grub_scsi_read10): Add request sense at the end.
2320 (grub_scsi_read12): Likewise.
2321 (grub_scsi_write10): Likewise.
2322 (grub_scsi_write12): Likewise.
2323 (grub_scsi_open): Add Test Unit Ready.
2324 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
2325 Support additional subclasses. Con't clear halt yet. Activate the
2326 proper config. Calculate LUNs correctly.
2327 (grub_usbms_transfer): Various important fixups.
2328
23292010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
2332 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
2333 (grub_ohci_fini_hw): New function.
2334 (grub_ohci_restore_hw): Likewise.
2335 (GRUB_MOD_INIT(ohci)): Register preboot hook.
2336 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
2337 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
2338
23392010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 Dedicated DMA allocations.
2342
2343 * bus/pci.c (grub_memalign_dma32): New function
2344 (grub_dma_free): Likewise.
2345 (grub_dma_get_virt): Likewise.
2346 (grub_dma_get_phys): Likewise.
2347 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
2348 (grub_ohci_pci_iter): Use dma32_alloc.
2349 (grub_ohci_transfer): Likewise.
2350 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
2351 (grub_usb_bulk_readwrite): Likewise.
2352 * include/grub/pci.h: Add declarations.
2353
23542010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 CS5536 support.
2357
2358 * bus/cs5536.c: New file.
2359 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
2360 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
2361 (cs5536_mod_SOURCES): New variable.
2362 (cs5536_mod_CFLAGS): Likewise.
2363 (cs5536_mod_LDFLAGS): Likewise.
2364 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
2365 machine/pci.h.
2366 (kernel_img_SOURCES): Add bus/cs5536.c.
2367 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
2368 usb_keyboard.mod.
2369 (usb_mod_SOURCES): New variable.
2370 (usb_mod_CFLAGS): New variable.
2371 (usb_mod_LDFLAGS): New variable.
2372 (usbtest_mod_SOURCES): New variable.
2373 (usbtest_mod_CFLAGS): New variable.
2374 (usbtest_mod_LDFLAGS): New variable.
2375 (ohci_mod_SOURCES): New variable.
2376 (ohci_mod_CFLAGS): New variable.
2377 (ohci_mod_LDFLAGS): New variable.
2378 (usbms_mod_SOURCES): New variable.
2379 (usbms_mod_CFLAGS): New variable.
2380 (usbms_mod_LDFLAGS): New variable.
2381 (usb_keyboard_mod_SOURCES): New variable.
2382 (usb_keyboard_mod_CFLAGS): New variable.
2383 (usb_keyboard_mod_LDFLAGS): New variable.
2384 * include/grub/smbus.h: New file.
2385 * include/grub/cs5536.h: New file.
2386
0b35b2a9
CW
23872010-06-02 Colin Watson <cjwatson@ubuntu.com>
2388
2389 * util/grub.d/00_header.in: Add safety check to make sure that
2390 ${locale_dir} exists before trying to probe it.
2391
ca0afd5b
CW
23922010-06-02 Colin Watson <cjwatson@ubuntu.com>
2393
2394 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
2395 per the GNU Coding Standards; this is now too obscure to be worth
2396 documenting.
2397 (QNX): Likewise.
2398 (chainloader): Remove cross-reference to `SCO UnixWare'.
2399
1c41aa78
CW
24002010-06-02 Colin Watson <cjwatson@ubuntu.com>
2401
2402 * docs/grub.texi (Chain-loading): New section.
2403 (DOS/Windows): New section, borrowed from GRUB Legacy with details
2404 adjusted for GRUB 2.
2405 (SCO UnixWare): Likewise.
2406 (QNX): Likewise.
2407 (chainloader): Add reference to `Block list syntax'.
2408 (drivemap): New section.
2409 (parttool): New section.
2410
bb8ea0f5
CW
24112010-06-02 Colin Watson <cjwatson@ubuntu.com>
2412
2413 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
2414 the grub shell'.
2415 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
2416 (Installing GRUB using grub-install): Remove reference to the grub
2417 shell; mention `grub-mkimage' and `grub-setup' instead.
2418 (Invoking grub-install): Likewise.
2419 (Interface): Add reference to `Menu entry editor'.
2420 (serial): Remove `--device' option.
2421
288dd6ed
CW
24222010-06-02 Colin Watson <cjwatson@ubuntu.com>
2423
2424 * docs/grub.texi (Configuration): New section, documenting
2425 configuration file generation using grub-mkconfig. I've left a slot
2426 for documenting the full shell scripting format but have not yet
2427 started on writing that up.
2428 (Invoking grub-mkconfig): New section.
2429
34c9f0e9
CW
24302010-06-02 Colin Watson <cjwatson@ubuntu.com>
2431
2432 * docs/grub.texi (direntry): Remove grub-terminfo reference.
2433 (GNU GRUB manual): Likewise.
2434 (General commands): Update description of `terminfo' for GRUB 2.
2435
9121567e
CW
24362010-06-02 Colin Watson <cjwatson@ubuntu.com>
2437
2438 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
2439 (GRUB_MOD_INIT): Fix capitalisation.
2440 * docs/grub.texi (Command-line and menu entry commands): Document
2441 gettext and gptsync commands.
2442
ab631611
CW
24432010-06-02 Colin Watson <cjwatson@ubuntu.com>
2444
2445 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
2446 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
2447
bde4a9ac
CW
24482010-06-01 Colin Watson <cjwatson@ubuntu.com>
2449
2450 Add btrfs probing support, currently only in the single-device case.
2451
2452 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
2453 function.
2454 (grub_guess_root_device): Call find_root_device_from_mountinfo
2455 before looking in /dev.
2456
b1d17e10
VS
24572010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
2460 GRUB_DISK_SIZE_UNKNOWN.
2461 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
2462
dfbfe004
JS
24632010-05-31 Jiro SEKIBA <jir@unicus.jp>
2464
2465 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
2466 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
2467 corrupted or not synced properly.
2468
c2ffc8e9
VS
24692010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
2472 Reported by: Seth Goldberg.
2473
56293166
VS
24742010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
2477 addition of dest.
2478 Reported by: Seth Goldberg.
2479
7620e7de
VS
24802010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
2483 Reported by: Seth Goldberg.
2484
c837af3f
VS
24852010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
2488 64-bit address as signed on MIPS.
2489
c7c75cf4
CW
24902010-05-28 Colin Watson <cjwatson@ubuntu.com>
2491
2492 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
2493 to the empty string.
2494
fa4b8490
BC
24952010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
2496
2497 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
2498
2499 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
2500 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
2501 * kern/misc.c (__enable_execute_stack): Disable on
2502 GRUB_MACHINE_EMU.
2503
a33075b9
CW
25042010-05-28 Colin Watson <cjwatson@ubuntu.com>
2505
2506 Make grub-probe work with symbolic links under /dev/mapper as well
2507 as with real block devices. The Linux world seems to be (at best)
2508 in transition here, and GRUB shouldn't get caught in the middle.
2509
2510 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
2511 /dev/mapper.
2512
d8708134
CW
25132010-05-27 Colin Watson <cjwatson@ubuntu.com>
2514
2515 * util/grub-script-check.c (main): Ensure defined behaviour on empty
2516 input files (in which case exit zero).
2517
db2102a0
CW
25182010-05-27 Colin Watson <cjwatson@ubuntu.com>
2519
2520 * kern/emu/misc.c (canonicalize_file_name): realpath can still
2521 return NULL for various reasons even if it has a maximum-length
2522 buffer: for example, there might be a symlink loop, or the path
2523 might exceed PATH_MAX. If this happens, return NULL.
2524
5fdba519
RM
25252010-05-27 Robert Millan <rmh@gnu.org>
2526
2527 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
2528 partmap module to handle cross-partmap setups.
2529 Reported by Orestes Mas. Gràcies!
2530
d1d368e4
CW
25312010-05-27 Colin Watson <cjwatson@ubuntu.com>
2532
2533 * util/grub-mkrescue.in: Initialise override_dir rather than
2534 assuming that it's unset or empty in the environment.
2535
95ac3c73
GS
25362010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2537
2538 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
2539 variable index into p_index to suppress a warning with -Wshadow.
2540
7d8c0213
BC
25412010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
2542
2543 * INSTALL: Added flex >= 2.5.35 requirement.
2544
db4d5813
VS
25452010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
2548
f24f4300
VS
25492010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 cmostest support.
2552
2553 * commands/i386/cmostest.c: New file.
2554 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
2555 (cmostest_mod_SOURCES): New variable.
2556 (cmostest_mod_CFLAGS): Likewise.
2557 (cmostest_mod_LDFLAGS): Likewise.
2558 * conf/i386-pc.rmk: Likewise.
2559 * docs/grub.texi (Vendor power-on keys): New section.
2560 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
2561 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
2562 and GRUB_BUTTON_CMOS_ADDRESS.
2563 * util/grub.d/00_header.in: Handle powering-on by separate button.
2564
ad603f61
VS
25652010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
2568 Removed drawing_scrollbar argument. All users updated
2569 Fixes #29792.
2570 Reported by Jo Shields
2571
3ecb080a
VS
25722010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
2575 buffer since gfxterm handles double repaint.
2576
5f2316c1
VS
25772010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
2580 * term/gfxterm.c (real_scroll): Likewise.
2581
9a25f885
VS
25822010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
2585 before calling BIOS.
2586
39fbb79a
VS
25872010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * include/grub/i18n.h: Always enable grub_gettext.
2590
228cfa97
VS
25912010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
2594 partition naming style.
2595
21717c8f
CW
25962010-05-21 Colin Watson <cjwatson@ubuntu.com>
2597
2598 * util/grub-mkconfig.in: Fix handling of -o so that it works when
2599 not the first option.
2600
c0f48e65
CW
26012010-05-20 Colin Watson <cjwatson@ubuntu.com>
2602
2603 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
2604
96779aec
CW
26052010-05-20 Colin Watson <cjwatson@ubuntu.com>
2606
2607 * util/misc.c: Move inclusion of <limits.h> to ...
2608 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
2609
fa9d256e
GS
26102010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2611
2612 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
2613 Fix merge error in NetBSD code.
2614 (find_partition_start) [__NetBSD__]: Likewise.
2615
123b7a85
BC
26162010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
2617
2618 Fix grub-mkrescue usage unit testing.
2619
2620 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
2621
74276c0d
CF
26222010-05-18 Christian Franke <franke@computer.org>
2623
2624 * util/grub.d/10_windows.in: Use path names instead of
2625 drive letters to prevent warning from Cygwin 1.7.
2626 Add drivemap command to menuentry if needed.
2627
c4f7b523
ST
26282010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
2629
2630 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
2631 gnumach and gnumach.gz.
2632
95b97950
VS
26332010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * include/grub/i18n.h (gettext): Inline instead of using #define.
2636 (grub_gettext): Likewise.
2637 (_): Likewise.
2638
01b8d2d7
VS
26392010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
2642 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
2643 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
2644 (main): Add a slash after pkglibdirroot.
2645
654e1d1e
VS
26462010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * util/grub-install.in: Add missing "in" keyword.
2649
26966aeb
VS
26502010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
2653 Reported by: Seth Goldberg.
2654
75006747
VS
26552010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
2658
74cbf5bd
CW
26592010-05-18 Colin Watson <cjwatson@ubuntu.com>
2660
2661 * configure.ac: Check for Linux device-mapper support.
2662
2663 * util/hostdisk.c (device_is_mapped): New function.
2664 (find_partition_start): New function, partly broken out from
2665 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
2666 device-mapper support added.
2667 (linux_find_partition): Use find_partition_start.
2668 (convert_system_partition_to_system_disk): Add `st' argument.
2669 Support Linux /dev/mapper/* devices if device-mapper support is
2670 available; only DM-RAID devices are understood at present.
2671 (find_system_device): Add `st' argument. Pass it to
2672 convert_system_partition_to_system_disk.
2673 (grub_util_biosdisk_get_grub_dev): Pass stat result to
2674 find_system_device and convert_system_partition_to_system_disk. Use
2675 find_partition_start.
2676
2677 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
2678 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
2679 * util/deviceiter.c [__linux__]: Define MINOR.
2680 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
2681 * util/mkdevicemap.c (grub_putchar): New function.
2682 (grub_getkey): New function.
2683 (grub_refresh): New function.
2684 (main): Set debug=all if -v -v is used.
2685
355b51e9
CW
26862010-05-18 Colin Watson <cjwatson@ubuntu.com>
2687
2688 Fix build with non-GNU libcs.
2689
2690 * util/misc.c (canonicalize_file_name): Move to ...
2691 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
2692 grub_make_system_path_relative_to_its_root.
2693
7fb5c25f
CW
26942010-05-18 Colin Watson <cjwatson@ubuntu.com>
2695
2696 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
2697 we handle finding grub-mkimage. Default to finding grub-mkimage in
2698 ${bindir} with program_transform_name applied, and provide a
2699 --grub-mkimage option to override this.
2700
1d3293d6
VS
27012010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 Remove grub-mkisofs.
2704
2705 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
2706 (grub_mkisofs_SOURCES): Removed.
2707 (grub_mkisofs_CFLAGS): Removed.
2708 * util/mkisofs/defaults.h: Removed.
2709 * util/mkisofs/eltorito.c: Likewise.
2710 * util/mkisofs/exclude.h: Likewise.
2711 * util/mkisofs/hash.c: Likewise.
2712 * util/mkisofs/include/: Likewise.
2713 * util/mkisofs/include/fctldefs.h: Likewise.
2714 * util/mkisofs/include/mconfig.h: Likewise.
2715 * util/mkisofs/include/prototyp.h: Likewise.
2716 * util/mkisofs/include/statdefs.h: Likewise.
2717 * util/mkisofs/iso9660.h: Likewise.
2718 * util/mkisofs/joliet.c: Likewise.
2719 * util/mkisofs/match.c: Likewise.
2720 * util/mkisofs/match.h: Likewise.
2721 * util/mkisofs/mkisofs.c: Likewise.
2722 * util/mkisofs/mkisofs.h: Likewise.
2723 * util/mkisofs/msdos_partition.h: Likewise.
2724 * util/mkisofs/multi.c: Likewise.
2725 * util/mkisofs/name.c: Likewise.
2726 * util/mkisofs/rock.c: Likewise.
2727 * util/mkisofs/tree.c: Likewise.
2728 * util/mkisofs/write.c: Likewise.
2729
5dde9afe
VS
27302010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 Unify grub-mkimage accross platforms.
2733
2734 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
2735 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
2736 (grub_mkelfimage_SOURCES): Removed.
2737 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
2738 (util/grub-mkimage.c_DEPENDENCIES): .. this.
2739 (bin_UTILITIES): Add grub-mkimage.
2740 (grub_mkimage_SOURCES): New variable.
2741 (kernel_img_HEADERS): Remove machine/kernel.h.
2742 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
2743 (pkglib_PROGRAMS): Add kernel.img.
2744 (kernel_img_HEADERS): Add machine/kernel.h.
2745 (kernel_img_FORMAT): Removed.
2746 (bin_UTILITIES): Remove grub-mkimage.
2747 (grub_mkimage_SOURCES): Removed.
2748 (grub_mkimage_CFLAGS): Likewise.
2749 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2750 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
2751 (pkglib_PROGRAMS): Add kernel.img.
2752 (bin_UTILITIES): Remove grub-mkimage.
2753 (grub_mkimage_SOURCES): Removed.
2754 (grub_mkimage_CFLAGS): Likewise.
2755 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2756 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
2757 (pkglib_PROGRAMS): Add kernel.img.
2758 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
2759 (pkglib_PROGRAMS): Add kernel.img.
2760 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
2761 (grub_mkimage_SOURCES): Removed.
2762 (grub_mkimage_CFLAGS): Likewise.
2763 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2764 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
2765 (pkglib_PROGRAMS): Add kernel.img.
2766 (bin_UTILITIES): Remove grub-mkimage.
2767 (grub_mkimage_SOURCES): Removed.
2768 (grub_mkimage_CFLAGS): Likewise.
2769 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2770 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
2771 (grub_mkimage_SOURCES): Removed.
2772 (grub_mkimage_CFLAGS): Likewise.
2773 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2774 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
2775 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
2776 (grub_pe32_optional_header): ... this.
2777 (grub_pe64_optional_header): ... and this. All users updated.
2778 (GRUB_PE32_PE32_MAGIC): Split into ..
2779 (GRUB_PE32_PE32_MAGIC): .. this.
2780 (GRUB_PE32_PE64_MAGIC): .. and this.
2781 (GRUB_PE32_SIGNATURE_SIZE): New definition.
2782 * include/grub/elf.h (PT_GNU_STACK): New definition.
2783 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
2784 * include/grub/i386/efi/kernel.h: Likewise.
2785 * include/grub/i386/kernel.h: Likewise.
2786 * include/grub/i386/pc/kernel.h: Likewise.
2787 * include/grub/i386/qemu/boot.h: Likewise.
2788 * include/grub/mips/kernel.h: Likewise.
2789 * include/grub/mips/qemu-mips/kernel.h: Likewise.
2790 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
2791 * include/grub/powerpc/kernel.h: Likewise.
2792 * include/grub/sparc64/ieee1275/boot.h: Likewise.
2793 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
2794 * include/grub/sparc64/kernel.h: Likewise.
2795 * include/grub/x86_64/efi/kernel.h: Likewise.
2796 * include/grub/x86_64/kernel.h: Likewise.
2797 * include/grub/offsets.h: New file.
2798 * include/grub/kernel.h (grub_module_info): Split into ...
2799 (grub_module_info32): ... this.
2800 (grub_module_info64): ... and this.
2801 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
2802 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
2803 (grub_boot_blocklist): Moved from here ...
2804 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
2805 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
2806 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
2807 * include/grub/types.h (grub_target_to_host16): Removed.
2808 (grub_target_to_host32): Likewise.
2809 (grub_target_to_host64): Likewise.
2810 (grub_host_to_target16): Likewise.
2811 (grub_host_to_target32): Likewise.
2812 (grub_host_to_target64): Likewise.
2813 (grub_host_to_target_addr): Likewise.
2814
2815 Support grub-mkrescue for efi, coreboot and qemu.
2816
2817 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
2818 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
2819 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
2820 * util/grub-mkrawimage.c: Moved from here ...
2821 * util/grub-mkimage.c: ... here. All users updated.
2822 (ALIGN_ADDR): Use image_target.
2823 (TARGET_NO_FIELD): New const.
2824 (image_target_desc): New type.
2825 (image_targets): New array.
2826 (grub_target_to_host64): Use image_target.
2827 (grub_target_to_host32): Likewise.
2828 (grub_target_to_host16): Likewise.
2829 (grub_host_to_target64): Likewise.
2830 (grub_host_to_target32): Likewise.
2831 (grub_host_to_target16): Likewise.
2832 (grub_host_to_target_addr): Likewise.
2833 (generate_image): Handle multiimage.
2834 (main): Require -O parameter. All users updated.
2835 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
2836 util/efi/grub-mkimage.c
2837 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
2838 New option --rom-directory.
2839 Use xorriso.
2840 * util/i386/efi/grub-mkimage.c: Removed.
2841 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
2842 (grub_target_to_host32): Likewise.
2843 (grub_target_to_host64): Likewise.
2844 (grub_host_to_target16): Likewise.
2845 (grub_host_to_target32): Likewise.
2846 (grub_host_to_target64): Likewise.
2847 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
2848 (grub_target_to_host32): Likewise.
2849 (grub_target_to_host64): Likewise.
2850 (grub_host_to_target16): Likewise.
2851 (grub_host_to_target32): Likewise.
2852 (grub_host_to_target64): Likewise.
2853
f4fc97d0
BC
28542010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
2855
2856 Source tree is reorganized for emu build.
2857
2858 * include/grub/util/console.h: Move from here...
2859 * include/grub/emu/console.h: ...to here.
2860 * include/grub/util/getroot.h: Move from here...
2861 * include/grub/emu/getroot.h: ...to here.
2862 * include/grub/util/hostdisk.h: Move from here...
2863 * include/grub/emu/hostdisk.h: ...to here.
2864 * util/console.c: Move from here...
2865 * kern/emu/console.c: ...to here.
2866 * util/getroot.c: Move from here...
2867 * kern/emu/getroot.c: ...to here.
2868 * util/grub-emu.c: Move from here...
2869 * kern/emu/main.c: ...to here.
2870 * util/hostdisk.c: Move from here...
2871 * kern/emu/hostdisk.c: ...to here.
2872 * util/hostfs.c: Move from here...
2873 * kern/emu/hostfs.c: ...to here.
2874 * util/mm.c: Move from here...
2875 * kern/emu/mm.c: ...to here.
2876 * util/pci.c: Move from here...
2877 * bus/emu/pci.c: ...to here.
2878 * util/sdl.c: Move from here...
2879 * video/emu/sdl.c: ...to here.
2880 * util/time.c: Move from here...
2881 * kern/emu/time.c: ...to here.
2882 * util/usb.c: Move from here...
2883 * bus/usb/emu/usb.c: ...to here.
2884
2885 * include/grub/emu/misc.h: New header for grub-emu functions.
2886 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
2887
2888 * conf/any-emu.rmk: Rule updates for above renames.
2889 * conf/common.rmk: Likewise.
2890 * conf/i386-pc.rmk: Likewise.
2891 * conf/i386-qemu.rmk: Likewise.
2892 * conf/mips.rmk: Likewise.
2893 * conf/sparc64-ieee1275.rmk: Likewise.
2894 * conf/x86-efi.rmk: Likewise.
2895
2896 * disk/lvm.h: #include updates for above renames.
2897 * util/grub-mkrelpath.c: Likewise.
2898 * util/grub-probe.c: Likewise.
2899 * util/i386/pc/grub-setup.c: Likewise.
2900 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2901 * kern/emu/console.c: Likewise.
2902 * kern/emu/getroot.c: Likewise.
2903 * kern/emu/hostdisk.c: Likewise.
2904 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
2905
2906 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
2907 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
2908 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
2909 * util/misc.c: Remove grub-emu functions.
2910
cced9145
VS
29112010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 Fix gfxmenu crash.
2914 Reported by: Thorsten Grützmacher.
2915
2916 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
2917 timeout hook.
2918 (circprog_set_property): Register and unregister timeout hook.
2919 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
2920 (label_destroy): Free template. and unregister hook.
2921 (label_set_state): New function.
2922 (label_set_property): Handle templates and hooks.
2923 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
2924 timeout hook.
2925 (progress_bar_set_property): Register and unregister timeout hook.
2926 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
2927 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
2928 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
2929 (update_timeout_visit): Removed.
2930 (update_timeouts): New function.
2931 (redraw_timeouts): Likewise.
2932 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
2933 (grub_gfxmenu_clear_timeout): Likewise.
2934 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
2935 (grub_gfxmenu_timeout_notify): Likewise.
2936 (grub_gfxmenu_timeout_notifications): New external variable.
2937 (grub_gfxmenu_timeout_register): New function.
2938 (grub_gfxmenu_timeout_unregister): Likewise.
2939
c6e5caab
VS
29402010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 Transform (broken) vga terminal into (working) vga video driver.
2943
2944 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
2945 video/i386/pc/vga.c.
2946 * include/grub/video.h (grub_video_driver_id):
2947 Add GRUB_VIDEO_DRIVER_VGA.
2948 * term/i386/pc/vga.c: Renamed to ...
2949 * video/i386/pc/vga.c: ...this
2950 (DEBUG_VGA): Removed.
2951 (CHAR_WIDTH): Likewise.
2952 (CHAR_HEIGHT): Likewise.
2953 (TEXT_WIDTH): Likewise.
2954 (TEXT_HEIGHT): Likewise.
2955 (DEFAULT_FG_COLOR): Likewise.
2956 (DEFAULT_BG_COLOR): Likewise.
2957 (colored_char): Likewise.
2958 (xpos): Likewise.
2959 (ypos): Likewise.
2960 (cursor_state): Likewise.
2961 (fg_color): Likewise.
2962 (bg_color): Likewise.
2963 (text_buf): Likewise.
2964 (page): Likewise.
2965 (font): Likewise.
2966 (framebuffer): New variable.
2967 (set_read_map): Disabled.
2968 (setup): New variable.
2969 (is_target): Likewise.
2970 (grub_vga_mod_init): Likewise.
2971 (grub_vga_mod_fini): Likewise.
2972 (check_vga_mem): Likewise.
2973 (write_char): Likewise.
2974 (write_cursor): Likewise.
2975 (scroll_up): Likewise.
2976 (grub_vga_putchar): Likewise.
2977 (grub_vga_getcharwidth): Likewise.
2978 (grub_vga_getwh): Likewise.
2979 (grub_vga_getxy): Likewise.
2980 (grub_vga_gotoxy): Likewise.
2981 (grub_vga_cls): Likewise.
2982 (grub_vga_setcolorstate): Likewise.
2983 (grub_vga_setcursor): Likewise.
2984 (grub_video_vga_init): New function.
2985 (grub_video_vga_setup): Likewise.
2986 (grub_video_vga_fini): Likewise.
2987 (update_target): Likewise.
2988 (grub_video_vga_blit_bitmap): Likewise.
2989 (grub_video_vga_blit_render_target): Likewise.
2990 (grub_video_vga_set_active_render_target): Likewise.
2991 (grub_video_vga_get_active_render_target): Likewise.
2992 (grub_video_vga_swap_buffers): Likewise.
2993 (grub_video_vga_set_palette): Likewise.
2994 (grub_video_vga_get_info_and_fini): Likewise.
2995 (grub_vga_term): Removed.
2996 (grub_video_vga_adapter): New variable.
2997 (GRUB_MOD_INIT): Register a video driver instead of terminal.
2998 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
2999
2bf61a98
VS
30002010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * video/readers/jpeg.c: Indented.
3003
09ddcd11
VS
30042010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 Various jpeg cleanups.
3007
3008 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
3009 (grub_jpeg_decode_quan_table): Use sizeof.
3010 (grub_jpeg_decode_du): Use ARRAY_SIZE.
3011
e5507505
PH
30122010-05-05 Peter Hurley <No e-mail available> (tiny change)
3013
3014 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
3015 tables. Ignore non-last ac bit.
3016 (grub_jpeg_decode_quan_table): Likewise.
3017
7e720a9b
VS
30182010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
3021 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
3022 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3023 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
3024 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
3025 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
3026
a7fc080b
VS
30272010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
3030 error.
3031
2bf6012d
VS
30322010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
3035
265d68cd
VS
30362010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
3039 condition.
3040
30412010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
3042
3043 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
3044 part.
3045
265d68cd 30462010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
3047
3048 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
3049 pointers.
3050
265d68cd 30512010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
3052
3053 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
3054
d1b61374
CF
30552010-05-01 Christian Franke <franke@computer.org>
3056
3057 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
3058 Remove broken Cygwin path conversion.
3059 * util/misc.c: [__CYGWIN__] Add include and define.
3060 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
3061 for Cygwin 1.7.
3062 (make_system_path_relative_to_its_root): Simplify loop, replace early
3063 return by break.
3064 [__CYGWIN__] Add conversion to win32 path.
3065 Include "/" case in trailing slash removal.
3066
3558c6e9
VS
30672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 * kern/main.c (grub_load_config): Fix copy-pasted comment.
3070 Reported by: Seth Goldberg
3071
f5f3ff93
VS
30722010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * commands/help.c (grub_cmd_help): Fix a typo.
3075 Reported by: Seth Goldberg
3076
d8b5cd40
VS
30772010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
3080 name and add N_.
3081 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
3082 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
3083 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
3084 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
3085 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
3086 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
3087 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
3088 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
3089 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
3090 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
3091 * normal/context.c (GRUB_MOD_INIT): Likewise.
3092 * normal/main.c (GRUB_MOD_INIT): Likewise.
3093 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
3094 * term/serial.c (GRUB_MOD_INIT): Likewise.
3095 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
3096
88c14915
VS
30972010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
3100 extra == 0.
3101
165134bc
VS
31022010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * commands/iorw.c: New file.
3105 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
3106 (iorw_mod_SOURCES): New variable.
3107 (iorw_mod_CFLAGS): Likewise.
3108 (iorw_mod_LDFLAGS): Likewise.
3109
c5ac9b32
VS
31102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 Hotkey support
3113
3114 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
3115 * normal/main.c (hotkey_aliases): New variable.
3116 (grub_normal_add_menu_entry): Parse "--hotkey".
3117 * normal/menu_text.c (run_menu): Handle hotkeys.
3118
ce60689c
VS
31192010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * kern/i386/coreboot/init.c (grub_machine_init): Call
3122 grub_machine_mmap_init on qemu.
3123
0359d006
VS
31242010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * boot/i386/qemu/boot.S: Add a missing .code16.
3127
7819a456
VS
31282010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 Use LBIO on coreboot.
3131
3132 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
3133 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
3134 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
3135 New declaration.
3136 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
3137 grub_machine_mmap_init on coreboot.
3138 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
3139 GRUB_LINUXBIOS_MEMBER_LINK.
3140 (grub_machine_mmap_iterate): Fix declaration.
3141 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
3142
7210dca9
VS
31432010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 Split coreboot and multiboot ports.
3146
3147 * conf/i386-multiboot.rmk: New file.
3148 * configure.ac: Add multiboot port.
3149 * include/grub/i386/multiboot/boot.h: New file.
3150 * include/grub/i386/multiboot/console.h: Likewise.
3151 * include/grub/i386/multiboot/init.h: Likewise.
3152 * include/grub/i386/multiboot/kernel.h: Likewise.
3153 * include/grub/i386/multiboot/loader.h: Likewise.
3154 * include/grub/i386/multiboot/memory.h: Likewise.
3155 * include/grub/i386/multiboot/serial.h: Likewise.
3156 * include/grub/i386/multiboot/time.h: Likewise.
3157 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
3158 * loader/multiboot.c: Likewise.
3159 * loader/multiboot_mbi2.c: Likewise.
3160 * util/grub-mkrescue.in: Generate multiboot rescue.
3161
6f8aaf68
VS
31622010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3163
3080f7a7
VS
3164 * kern/parser.c (grub_parser_execute): Cope with read-only config.
3165
31662010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
3169
3170 * commands/terminal.c (abstract_terminal): New struct.
3171 (handle_command): New function. Based on grub_cmd_terminal_input.
3172 (grub_cmd_terminal_input): Use handle_command.
3173 (grub_cmd_terminal_output): Use handle_command.
3174
a8ebb841
BC
31752010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
3176
3177 Fix comment handling.
3178
3179 * tests/grub_script_comments.in: New testcase.
3180 * conf/tests.rmk: Rules for new testcase.
3181 * script/yylex.l: Updated flex rules.
3182
bb06ba08
ST
31832010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
3184
3185 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
3186 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
3187 if argc is 1.
bb06ba08 3188
cc9d2425
VS
31892010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
3192 autogen issues.
3193
460d8402
CF
31942010-04-26 Christian Franke <franke@computer.org>
3195
3196 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
3197 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
3198 (grub_get_prefix): Remove function.
3199 * util/grub-emu.c (main): Replace grub_get_prefix () call by
3200 make_system_path_relative_to_its_root ().
3201 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
3202
553c01f9
CF
32032010-04-24 Christian Franke <franke@computer.org>
3204
3205 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
3206 (kernel_img_LDFLAGS): Remove -static-libgcc.
3207
2aec1692
CF
32082010-04-24 Christian Franke <franke@computer.org>
3209
3210 * configure.ac: Do not CHECK_BSS_START_SYMBOL
3211 and CHECK_END_SYMBOL if grub-emu is built.
3212 Unset TARGET_OBJ2ELF if grub-emu is built
3213 without module support.
3214
f67dc308
JS
32152010-04-24 Jiro SEKIBA <jir@unicus.jp>
3216
3217 Nilfs2 support.
3218
3219 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
3220 (grub_fstest_SOURCES): Likewise.
3221 (pkglib_MODULES): Add nilfs2.mod.
3222 (nilfs2_mod_SOURCES): New variable.
3223 (nilfs2_mod_CFLAGS): Likewise.
3224 (nilfs2_mod_LDFLAGS): Likewise.
3225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
3226 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
3227 * fs/nilfs2.c: New file.
3228
4ba8d354
VS
32292010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
3232 is not supported.
3233
0d2c20c6
GS
32342010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
3235
3236 Add grub-mkconfig support for NetBSD.
3237
3238 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
3239 * util/grub-mkconfig.in: export new NetBSD specific variables.
3240 * po/POTFILES-shell: added 10_netbsd.in.
3241 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
3242
bc4a2d83
BC
32432010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
3244
3245 Fix emu build with grub-emu-pci and grub-emu-modules.
3246
3247 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
3248 functions.
3249 * include/grub/libpciaccess.h: New file.
3250 * conf/any-emu.rmk: Update kernel headers for emu build.
3251
f48c87aa
VS
32522010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3253
3254 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
3255
18959385
VS
32562010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
3259
0037de3f
VS
32602010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
3263 Retrieve chosen/bootpath if bootpath isn't hardcoded.
3264 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
3265 util/ieee1275/ofpath.c.
3266 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
3267 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
3268 * include/grub/sparc64/ieee1275/boot.h
3269 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
3270 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
3271 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
3272 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
3273 const char *.
3274 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
3275 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
3276 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
3277 install.
3278
38e55e90
GS
32792010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
3280
3281 * util/grub-mkconfig.in: Corrected two == equality tests.
3282 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
3283 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
3284 expect a number appended to it.
3285 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
3286 expects a number appended to it.
3287
a9e6ff28
VS
32882010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
3291
0b830b8f
VS
32922010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * util/hostdisk.c (make_device_name): Change to new partition naming.
3295
0973daeb
VS
32962010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
3299
460d8402 33002010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
3301
3302 * Makefile.in: Add missing localedir setting.
3303
0b456309
CW
33042010-04-14 Colin Watson <cjwatson@ubuntu.com>
3305
3306 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
3307 mistake in r2156. Noticed by Anthony Fok.
3308
3309 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
3310 @localedir@.
3311 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
3312
08f46d62
BC
33132010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
3314
3315 Fix a spurious, uninitialized variable warning.
3316
3317 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
3318 Initialize variable, shdr.
3319 (grub_freebsd_load_elfmodule): Likewise.
3320 (grub_freebsd_load_elf_meta): Likewise.
3321
8c4a72d4
BC
33222010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
3323
3324 Fix for escaped dollar in double quoted strings.
3325
3326 * script/yylex.l: Updated flex rules.
3327 * conf/tests.rmk: Rule for new testcase.
3328 * tests/grub_script_dollar.in: New testcase.
3329
ce44826e
CPE
33302010-04-13 Carles Pina i Estany <carles@pina.cat>
33312010-04-13 Colin Watson <cjwatson@ubuntu.com>
3332
3333 Enclose all translated strings in grub.cfg in single quotes, and
3334 escape them appropriately (Ubuntu bug #552921).
3335
3336 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
3337 * util/grub.d/10_hurd.in: Use it.
3338 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
3339 * util/grub.d/10_linux.in (linux_entry): Likewise.
3340
4b0cd8f8
VS
33412010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 Fix cygwin compilation.
3344
3345 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
3346 * include/grub/misc.h (__register_frame_info)
3347 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
3348 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
3349 * kern/misc.c (__register_frame_info)
3350 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
3351 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
3352
01fcf061
VS
33532010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
3356
5d04b11e
VS
33572010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 Unify libgcc processing.
3360
3361 * Makefile.in (kernel_img_LDFLAGS): New variable.
3362 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
3363 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
3364 overwriting.
3365 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
3366 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
3367 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
3368 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
3369 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
3370 overwriting. Remove -lgcc and -static-libgcc
3371 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
3372 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
3373 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
3374 (kernel_img_LDFLAGS): Append instead of overwriting.
3375 Remove -lgcc and -static-libgcc
3376 * conf/sparc64-ieee1275.rmk: Likewise.
3377 * include/grub/powerpc/libgcc.h: Move to ...
3378 * include/grub/libgcc.h: .. this.
3379 * include/grub/libgcc.h: Don't export most of the function on x86.
3380 (__bswapsi2): New export.
3381 (__bswapdi2): Likewise.
3382 * include/grub/mips/libgcc.h: Removed.
3383 * include/grub/sparc64/libgcc.h: Likewise.
3384
b7f3ac29
VS
33852010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
3388 disk_info_msg (conflicts with gettexting into languages with cases).
3389
2c7031b1
GS
33902010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
3391
3392 Add grub-probe support for NetBSD.
3393
3394 * util/getroot.c (find_root_device): Convert block device to
3395 character device on NetBSD.
3396 * util/probe.c (probe): Require character device on NetBSD.
3397 * util/hostdisk.c: NetBSD specific headers.
3398 (configure_device_driver): new function to tune device driver
3399 parameters (currently only for NetBSD floppy driver).
3400 (grub_util_biosdisk_open): NetBSD specific code (get disk size
3401 via disklabel ioctl).
3402 (open_device): call configure_device_driver on NetBSD.
3403 (convert_system_partition_to_system_disk): NetBSD specific code.
3404 (device_is_wholedisk): Likewise.
3405 (grub_util_biosdisk_get_grub_dev): Likewise.
3406 (make_device_name): Fixed a typo in bsd_part_str.
3407 * configure.ac: check for opendisk() and getrawpartition() on
3408 NetBSD and set LIBUTIL.
3409 * Makefile.in: add LIBUTIL to LIBS.
3410
f516290c
BC
34112010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
3412
3413 Documentation fix.
3414
3415 * util/grub-script-check.c: Better help message.
3416
d8dcc0df
BC
34172010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
3418
3419 Fix FreeBSD build.
3420
3421 * configure.ac: Flex version check.
3422 * conf/common.rmk: Add -Wno-error to sh.mod.
3423 * script/yylex.l: Remove all #pragma.
3424
6734334a
VS
34252010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * include/grub/util/misc.h (canonicalise_file_name): Add missing
3428 prototype.
3429 Reported by: Seth Goldberg.
3430
daea6abd
VS
34312010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
3434 Rename "module" to "module2".
3435 Reported by: Seth Goldberg.
3436
f2fd9d2b
VS
34372010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3438
3439 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
3440 EXPORT_FUNC.
3441 Reported by: Seth Goldberg.
3442
be124579
VS
34432010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 * lib/posix_wrap/locale.h: Add missing file.
3446 Reported by: Seth Goldberg.
3447
ef5da797
VS
34482010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
3449
3450 grub-emu module load support.
3451
3452 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
3453 NO_DYNAMIC_MODULES switched to this.
3454 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
3455 (CFLAGS): Likewise.
3456 * conf/any-emu.rmk: Generate symlist.
3457 (kernel_img_HEADERS): Add util/datetime.h.
3458 (kernel_img_HEADERS) [sdl]: Add sdl.h.
3459 (kernel_img_HEADERS) [libusb]: Add libusb.h.
3460 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
3461 kern/$(target_cpu)/cache.S.
3462 * configure.ac (grub-emu-modules): New option.
3463 * genmk.rb: Handle multiple source lists.
3464 * include/grub/sdl.h: New file.
3465 * include/grub/libusb.h: Likewise.
3466 * util/grub-emu.c (main): Hanle (host) root.
3467 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
3468 GRUB_ERR_UNKNOWN_DEVICE.
3469 * util/misc.c: Move mm functions to ...
3470 * util/mm.c: ... here. All users updated.
3471
47822096
VS
34722010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
3475 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
3476 missing files.
3477 (maintainer-clean): Remove libgcrypt-grub.
3478
5d7e7445
VS
34792010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
3482
25f4e252
EC
34832010-04-09 EFI Coder <eficoder@hotmail.com>
3484
3485 * normal/menu_text.c (print_message): Clean up the message and show
3486 the Fn information when on EFI
3487 * term/efi/console.c (grub_console_checkkey): Add F4 support.
3488
027de555
VS
34892010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
3492 All users updated.
3493 * normal/crypto.c (read_crypto_list): Likewise.
3494 * normal/dyncmd.c (read_command_list): Likewise.
3495 * normal/term.c (read_terminal_list): Likewise.
3496 * normal/main.c (read_lists): Use explicit prefix.
3497 (read_lists_hook): Use read_lists.
3498 (grub_normal_execute): Likewise.
3499
47779711
VS
35002010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
3503 Reported by: Thomas Schmitt.
3504 Add -no-emul-boot to grub-mkisofs parameters.
3505
1118c32e
VS
35062010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * font/font.c: Indented.
3509
7d652447
BC
35102010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
3511
3512 Elif support to GRUB script (by Deepak Vankadaru).
3513
3514 * tests/grub_script_if.in: New testcase.
3515 * conf/tests.rmk: Rule for new testcase.
3516 * script/parser.y: Grammar rules for elif.
3517
34bb22df
BC
35182010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
3519
3520 While and until loops support to GRUB script.
3521
3522 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
3523 (grub_script_create_cmdwhile): New function prototype.
3524 (grub_script_execute_cmdwhile): New function prototype.
3525 * script/execute.c (grub_script_execute_cmdwhile): New function.
3526 * script/parser.y (command): New commands.
3527 (whilecmd): New grammar rule.
3528 (untilcmd): New grammar rule.
3529 * script/script.c (grub_script_create_cmdwhile): New function.
3530 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
3531 function.
3532
3533 * tests/grub_script_while1.in: New testcase.
3534 * conf/tests.rmk: Rule for new testcase.
3535
e215d8e0
VS
35362010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
3539 as *.jpg.
3540
d7c43ba1
MV
35412010-04-09 Mario Vazquez <mariovazq@gmail.com>
3542
3543 GRUB_BACKGROUND support.
3544
3545 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
3546 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
3547
d64795c0
VS
35482010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 3551 Idea by: Mario Vazquez
d64795c0
VS
3552
3553 * util/grub.d/00_header.in: Load pf2 and image modules.
3554
f267f83a
VS
35552010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 grub-mkconfig multiple terminal support.
3558
3559 * util/grub-mkconfig.in: Handle multiple terminals correctly.
3560 * util/grub.d/00_header.in: Likewise.
3561
b7841ceb
VS
35622010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * Makefile.in: Specify files explicitly instead of using $< and $@ since
3565 we use cd $(srcdir).
3566
df60998c
CW
35672010-04-08 Colin Watson <cjwatson@ubuntu.com>
3568
3569 * util/grub.d/10_linux.in: Only use the first word of
3570 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
3571 spaces in GRUB_DISTRIBUTOR.
3572 * util/grub.d/10_kfreebsd.in: Likewise.
3573 * util/grub.d/10_hurd.in: Likewise.
3574
fa09c82e
BC
35752010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
3576
14e18ae3 3577 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
3578
3579 * tests/util/grub-shell.in: Remove -serial stdio option.
3580
daf892b3
BC
35812010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 POSIX header file wrappers.
3584
3585 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
3586 equivalents.
3587 * lib/posix_wrap/ctype.h: Likewise.
3588 * lib/posix_wrap/errno.h: Likewise.
3589 * lib/posix_wrap/langinfo.h: Likewise.
3590 * lib/posix_wrap/limits.h: Likewise.
3591 * lib/posix_wrap/localcharset.h: Likewise.
3592 * lib/posix_wrap/stdint.h: Likewise.
3593 * lib/posix_wrap/stdio.h: Likewise.
3594 * lib/posix_wrap/stdlib.h: Likewise.
3595 * lib/posix_wrap/string.h: Likewise.
3596 * lib/posix_wrap/sys/types.h: Likewise.
3597 * lib/posix_wrap/unistd.h: Likewise.
3598 * lib/posix_wrap/wchar.h: Likewise.
3599 * lib/posix_wrap/wctype.h: Likewise.
3600 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
3601 (grub_script.yy.h): Likewise.
3602 * script/yylex.l: Remove POSIX emulation #defines.
3603 * Makefile.in (POSIX_CFLAGS): New variable.
3604 (GNULIB_UTIL_CFLAGS): Likewise.
3605
3606 Regexp support.
3607
3608 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
3609 (regexp_mod_SOURCES): New variable.
3610 (regexp_mod_CFLAGS): Likewise.
3611 (regexp_mod_LDFLAGS): Likewise.
3612 * commands/regexp.c: New file.
3613 * gnulib/regcomp.c: New file. Imported from gnulib.
3614 * gnulib/regex.c: Likewise.
3615 * gnulib/regex_internal.c: Likewise.
3616 * gnulib/regex_internal.h: Likewise.
3617 * gnulib/regexec.c: Likewise.
3618 * gnulib/regex.h: Likewise.
3619
974ac4f7
VS
36202010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
3623 unsupported video mode types.
3624
2622c3ff
VS
36252010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
3628
064cb524
VS
36292010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
3632 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
3633
a8c3b552
VS
36342010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 Remove unused grub_vga_get_font.
3637
3638 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
3639 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
3640
187bbe3d
GS
36412010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3642
3643 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
3644 * include/grub/misc.h: Likewise.
3645
b9396631
GS
36462010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3647
3648 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
3649 for which failure is fatal.
3650
50479feb
GS
36512010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3652
3653 * util/grub-install.in: Use mkdir -p to create grub directory.
3654 * util/i386/efi/grub-install.in: Likewise.
3655 * util/ieee1275/grub-install.in: Likewise.
3656
b1654fdf
GS
36572010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3658
3659 * Makefile.in (LEX): new variable.
3660
bd5a6415
GS
36612010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3662
3663 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
3664 `=' and added double quotes on operands of this equality test.
3665
3db3a82b
VS
36662010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 * Makefile.in (uninstall): Remove a leftover debug echo.
3669 Reported by: Grégoire Sutre
3670
38023412
VS
36712010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 MIPS multiboot2 support.
3674
3675 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
3676 (multiboot2_mod_SOURCES): New variable.
3677 (multiboot2_mod_CFLAGS): Likewise.
3678 (multiboot2_mod_LDFLAGS): Likewise.
3679 (multiboot2_mod_ASFLAGS): Likewise.
3680 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
3681 definition.
3682 (MULTIBOOT_ENTRY_REGISTER): Likewise.
3683 (MULTIBOOT_MBI_REGISTER): Likewise.
3684 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
3685 (MULTIBOOT_ELF32_MACHINE): Likewise.
3686 (MULTIBOOT_ELF64_MACHINE): Likewise.
3687 * include/grub/mips/multiboot.h: New file.
3688 * include/grub/video.h (grub_video_driver_id): New type
3689 GRUB_VIDEO_DRIVER_SM712.
3690 (grub_video_get_info_and_fini): Export.
3691 (grub_video_get_palette): Likewise.
3692 (grub_video_get_driver_id): Likewise.
3693 * include/multiboot2.h: Resynced with spec.
3694 * loader/i386/multiboot.c: Moved from here ...
3695 * loader/multiboot.c: ... here. All users updated.
3696 (grub_multiboot_boot): Use platform-specific macros.
3697 * loader/i386/multiboot_elfxx.c: Moved from here ...
3698 * loader/multiboot_elfxx.c: ... here. All users updated.
3699 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
3700 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
3701 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
3702
47674667
VS
37032010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 Import gnulib argp module.
3706
3707 * gnulib/argp-ba.c: New file.
3708 * gnulib/argp-eexst.c: Likewise.
3709 * gnulib/argp-fmtstream.c: Likewise.
3710 * gnulib/argp-fmtstream.h: Likewise.
3711 * gnulib/argp-fs-xinl.c: Likewise.
3712 * gnulib/argp-help.c: Likewise.
3713 * gnulib/argp-namefrob.h: Likewise.
3714 * gnulib/argp-parse.c: Likewise.
3715 * gnulib/argp-pin.c: Likewise.
3716 * gnulib/argp-pv.c: Likewise.
3717 * gnulib/argp-pvh.c: Likewise.
3718 * gnulib/argp-version-etc.c: Likewise.
3719 * gnulib/argp-version-etc.h: Likewise.
3720 * gnulib/argp-xinl.c: Likewise.
3721 * gnulib/argp.h: Likewise.
3722
495442ed
VS
37232010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 * kern/device.c (grub_device_iterate): Clear errors after failed
3726 opening device.
3727
f9fd65df
VS
37282010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
3731 returned by firmware.
3732
af09641e
VS
37332010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
3736 compilation on coreboot and qemu
3737
016883a5
VS
37382010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * include/multiboot2.h: Resync with spec.
3741
f97e1f7d
VS
37422010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 Multiboot2 tag support
3745
3746 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
3747 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
3748 Remove loader/multiboot_loader.c.
3749 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
3750 (grub_multiboot2_real_boot): Likewise.
3751 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
3752 (grub_get_multiboot_mmap_count): New proto.
3753 (grub_fill_multiboot_mmap): Likewise.
3754 (grub_multiboot_set_video_mode): Likewise.
3755 (grub_multiboot_set_console): Likewise.
3756 (grub_multiboot_load): Likewise.
3757 (grub_multiboot_load_elf): Likewise.
3758 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
3759 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
3760 * include/multiboot.h: Resynced with specification.
3761 * include/multiboot2.h: Resynced with specification.
3762 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
3763 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
3764 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
3765 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
3766 users updated.
3767 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
3768 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
3769 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
3770 Removed.
3771 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
3772 Moved from here...
3773 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
3774 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
3775 Moved from here...
3776 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
3777 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
3778 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
3779 All users updated.
3780 * loader/i386/multiboot_mbi2.c: New file.
3781
3506b90b
VS
37822010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 Resync with gnulib.
3785
3786 * Makefile.in (GNULIB_CFLAGS): New variable.
3787 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
3788 (grub_script_check_CFLAGS): New variable.
3789 * gnulib/alloca.h: Resync with gnulib.
3790 * gnulib/error.c: Likewise.
3791 * gnulib/error.h: Likewise.
3792 * gnulib/fnmatch.c: Likewise.
3793 * gnulib/fnmatch_loop.c: Likewise.
3794 * gnulib/getdelim.c: Likewise.
3795 * gnulib/getline.c: Likewise.
3796 * gnulib/getopt.c: Likewise.
3797 * gnulib/getopt1.c: Likewise.
3798 * gnulib/getopt_int.h: Likewise.
3799 * gnulib/gettext.h: Likewise.
3800 * gnulib/progname.c: Likewise.
3801 * gnulib/progname.h: Likewise.
3802
394a3120
GS
38032010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
3804
3805 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
3806 which is the case with --disabled-nls.
3807
3808 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
3809 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
3810 * util/misc.c: Likewise.
3811 * util/mkisofs/mkisofs.c: Likewise.
3812 * util/mkisofs/mkisofs.h: Likewise.
3813
969d1c78
VS
38142010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 Simplify Apple CC support.
3817
3818 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
3819 Add 0 byte at the end not to have a symbol with empty target.
3820 * mmap/i386/pc/mmap_helper.S: Likewise.
3821 * genmk.rb: Ignore errors 2030 and 2050.
3822 * kern/i386/pc/startup.S: Use LOCAL when possible.
3823
8d2977bb
BC
38242010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
3825
3826 Testcase and the fix for final semicolon on cmdline.
3827
3828 * tests/grub_script_final_semicolon.in: New testcase.
3829 * conf/tests.rmk: Rules for the new testcase.
3830 * script/parser.y: Grammar fix.
3831
a7bd6915
BC
38322010-03-26 BVK Chaitanya <bvk@localhost>
3833
3834 Blank lines testcase for GRUB script.
3835
3836 * tests/grub_script_blanklines.in: New testcase.
3837 * conf/tests.rmk: Rules for the new testcase.
3838
e4ff6628
VS
38392010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 Don't use __FILE__.
3842
3843 * genmk.rb: Add -DGRUB_FILE to all C targets.
3844 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
3845 * include/grub/list.h: Likewise.
3846 * include/grub/misc.h: Likewise.
3847 * include/grub/mm.h: Likewise.
3848 * include/grub/test.h: Likewise.
3849 * kern/mm.c: Likewise.
3850 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
3851
6a5cf6b6
VS
38522010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 Sunpc partitions support.
3855
3856 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
3857 (grub_fstest_SOURCES): Likewise.
3858 (pkglib_MODULES): Add part_sunpc.mod.
3859 (part_sunpc_mod_SOURCES): New variable.
3860 (part_sunpc_mod_CFLAGS): Likewise.
3861 (part_sunpc_mod_LDFLAGS): Likewise.
3862 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
3863 * partmap/sunpc.c: New file.
3864
746d9045
BC
38652010-03-26 BVK Chaitanya <bvk@localhost>
3866
3867 For loop support to GRUB script.
3868
3869 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
3870 (grub_script_create_cmdfor): New function prototype.
3871 (grub_script_execute_cmdfor): New function prototype.
3872 * script/execute.c (grub_script_execute_cmdfor): New function.
3873 * script/parser.y (command): New for command.
3874 (forcmd): New grammar rule.
3875 * script/script.c (grub_script_create_cmdfor): New function.
3876 * util/grub-script-check.c (grub_script_execute_cmdfor): New
3877 function.
3878 * tests/grub_script_for1.in: New testcase.
3879 * conf/tests.rmk: Rules for new testcase.
3880
18486b18
VS
38812010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 Nested partitions
3884
3885 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
3886 'partition' is NULL, grub_partition_get_start already does that.
3887 * commands/loadenv.c (check_blocklists): Likewise.
3888 (write_blocklists): Likewise.
3889 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
3890 (grub_fstest_SOURCES): Likewise.
3891 (pkglib_MODULES): Add part_bsd.mod.
3892 (part_bsd_mod_SOURCES): New variable.
3893 (part_bsd_mod_CFLAGS): Likewise.
3894 (part_bsd_mod_LDFLAGS): Likewise.
3895 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
3896 (grub_emu_SOURCES): Likewise.
3897 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3898 * include/grub/bsdlabel.h: New file.
3899 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
3900 'get_name'.
3901 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
3902 (grub_partition_map_list): New variable.
3903 (grub_partition_map_register): Inline.
3904 (grub_partition_map_unregister): Likewise.
3905 (FOR_PARTITION_MAPS): New macro.
3906 (grub_partition_map_iterate): Removed.
3907 (grub_partition_get_start): Handle nested partitions.
3908 * include/grub/msdos_partition.h: Remove bsd-related entries.
3909 (grub_pc_partition): Remove.
3910 * kern/disk.c (grub_disk_close): Free partition data.
3911 (grub_disk_adjust_range): Handle nested partitions.
3912 * kern/partition.c (grub_partition_map_probe): New function.
3913 (grub_partition_probe): Parse name to number, handle subpartitions.
3914 (get_partmap): New function.
3915 (grub_partition_iterate): Handle subpartitions.
3916 (grub_partition_get_name): Likewise.
3917 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
3918 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
3919 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
3920 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
3921 Set 'number'.
3922 (acorn_partition_map_probe): Remove.
3923 (acorn_partition_map_get_name): Likewise.
3924 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
3925 Set 'number'.
3926 Set 'index' to 0 since there can be only one partition entry per sector.
3927 (amiga_partition_map_probe): Remove.
3928 (amiga_partition_map_get_name): Likewise.
3929 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
3930 Set 'number'.
3931 Set 'offset' and 'index' to real positions of partitions.
3932 (apple_partition_map_probe): Remove.
3933 (apple_partition_map_get_name): Likewise.
3934 * partmap/bsdlabel.c: New file.
3935 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
3936 Set 'number'.
3937 Allocate 'data' so it can be correctly freed.
3938 Set 'index' to offset inside sector.
3939 (gpt_partition_map_probe): Remove.
3940 (gpt_partition_map_get_name): Likewise.
3941 * partmap/msdos.c (grub_partition_parse): Remove.
3942 (pc_partition_map_iterate): Don't force raw access.
3943 Set 'number'.
3944 Make 'ext_offset' a local variable.
3945 (pc_partition_map_probe): Remove.
3946 (pc_partition_map_get_name): Remove.
3947 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
3948 Set 'number'.
3949 (sun_partition_map_probe): Remove.
3950 (sun_partition_map_get_name): Likewise.
3951 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
3952 (grub_pcpart_type): Likewise.
3953 * util/hostdisk.c (open_device): Handle new numbering scheme.
3954 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
3955 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
3956 * util/grub-probe.c (probe_partmap): Handle nested paritions.
3957 * util/grub-install.in: Insert all subpartition modules.
3958 * util/ieee1275/grub-install.in: Likewise.
3959
a3940f88
AG
39602010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
3961
3962 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
3963 grammar.
3964
21b99926 39652010-03-24 Colin Watson <cjwatson@ubuntu.com>
3966
3967 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
3968
bed1d352
CW
39692010-03-21 Colin Watson <cjwatson@ubuntu.com>
3970
3971 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
3972 match where 'make install' puts them.
3973 * util/i386/efi/grub-install.in: Likewise.
3974
c9f58427
CW
39752010-03-19 Colin Watson <cjwatson@ubuntu.com>
3976
3977 * .bzrignore: Add gentrigtables, grub-script-check,
3978 grub_script_check_init.c, grub_script_check_init.h, and
3979 trigtables.c.
3980
f84afb27
VS
39812010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * kern/parser.c: Indented.
3984
ed0e3d30
VS
39852010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
3988
0ea81d98
VS
39892010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
3992 alpha_mask_size == 0 case.
3993
0cdc2a09
BC
39942010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
3995
3996 GRUB shell lexer and parser improvements.
3997
3998 * conf/any-emu.rmk: Build rule updates.
3999 * conf/common.rmk: Likewise.
4000 * conf/i386-coreboot.rmk: Likewise.
4001 * conf/i386-efi.rmk: Likewise.
4002 * conf/i386-ieee1275.rmk: Likewise.
4003 * conf/i386-pc.rmk: Likewise.
4004 * conf/powerpc-ieee1275.rmk: Likewise.
4005 * conf/x86_64-efi.rmk: Likewise.
4006
4007 * configure.ac: Configure check for flex.
4008
4009 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
4010 types.
4011 (grub_lexer_param): Struct member updates.
4012 (grub_parser_param): Likewise.
4013 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
4014 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
4015 (grub_script_lexer_init): Prototype update.
4016 (grub_script_lexer_record_start): Likewise.
4017 (grub_script_lexer_record_stop): Likewise.
4018 (grub_script_lexer_yywrap): New function prototype.
4019 (grub_script_lexer_fini): Likewise.
4020 (grub_script_execute_argument_to_string): Removed by...
4021 (grub_script_execute_argument_to_argv): ...better version.
4022
4023 * script/execute.c (ROUND_UPTO): New macro.
4024 (grub_script_execute_cmdline): Out of memory fixes.
4025 (grub_script_execute_menuentry): Likewise.
4026 (grub_script_execute_argument_to_string): Removed. Update all
4027 users by...
4028 (grub_script_execute_argument_to_argv): ...better version.
4029 * script/function.c (grub_script_function_create): Use
4030 grub_script_execute_argument_to_argv instead of
4031 grub_script_execute_argument_to_string.
4032
4033 * script/lexer.c (check_varstate): Removed.
4034 (check_textstate): Removed.
4035 (grub_script_lexer_record_start): Likewise.
4036 (grub_script_lexer_record_stop): Likewise.
4037 (recordchar): Replaced with...
4038 (grub_script_lexer_record): ...new function.
4039 (nextchar): Removed.
4040 (grub_script_lexer_init): Rewritten.
4041 (grub_script_yylex): Rewritten.
4042 (append_newline): New function.
4043 (grub_script_lexer_yywrap): New function.
4044 (grub_script_lexer_fini): New function.
4045 (grub_script_yyerror): Sets error flag.
4046
4047 * script/yylex.l: New file.
4048 (grub_lexer_yyfree): Wrapper for flex yyffre.
4049 (grub_lexer_yyalloc): Likewise.
4050 (grub_lexer_yyrealloc): Likewise.
4051 * script/parser.y: Refactored.
4052
4053 * script/script.c (grub_script_arg_add): Out of memory fixes.
4054 (grub_script_add_arglist): Likewise.
4055 (grub_script_create_cmdline): Likewise.
4056 (grub_script_create_cmdmenu): Likewise.
4057 (grub_script_add_cmd): Likewise.
4058 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
4059 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
4060 unnecessary code.
4061
4062 * tests/grub_script_echo1.in: New testcase.
4063 * tests/grub_script_vars1.in: New testcase.
4064 * tests/grub_script_echo_keywords.in: New testcase.
4065
1d63a066
VS
40662010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 Remove some redundancy in build system.
4069
4070 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
4071 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
4072 (TARGET_LDFLAGS): Add -nostdlib.
4073 (TARGET_IMG_LDFLAGS): Likewise.
4074 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
4075 anything since mmap isn't available.
4076 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
4077 Add util/time.c.
4078 (pkglib_MODULES): Remove reboot.mod.
4079 (reboot_mod_SOURCES): Removed.
4080 (reboot_mod_CFLAGS): Likewise.
4081 (reboot_mod_LDFLAGS): Likewise.
4082 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
4083 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
4084 (DEFSYMFILES): Add kernel_syms.lst.
4085 (kernel_img_HEADERS): Add common headers.
4086 (symlist.c): New target.
4087 (kernel_syms.lst): Likewise.
4088 (pkglib_MODULES): Add memdisk.mod.
4089 (memdisk_mod_SOURCES): New variable.
4090 (memdisk_mod_CFLAGS): Likewise.
4091 (memdisk_mod_LDFLAGS): Likewise.
4092 (pkglib_MODULES): Add reboot.mod.
4093 (reboot_mod_SOURCES): New variable.
4094 (reboot_mod_CFLAGS): Likewise.
4095 (reboot_mod_LDFLAGS): Likewise.
4096 (pkglib_MODULES): Add date.mod.
4097 (date_mod_SOURCES): New variable.
4098 (date_mod_CFLAGS): Likewise.
4099 (date_mod_LDFLAGS): Likewise.
4100 (pkglib_MODULES): Add datehook.mod.
4101 (datehook_mod_SOURCES): New variable.
4102 (datehook_mod_CFLAGS): Likewise.
4103 (datehook_mod_LDFLAGS): Likewise.
4104 (pkglib_MODULES): Add lsmmap.mod.
4105 (lsmmap_mod_SOURCES): New variable.
4106 (lsmmap_mod_CFLAGS): Likewise.
4107 (lsmmap_mod_LDFLAGS): Likewise.
4108 (pkglib_MODULES): Add boot.mod.
4109 (boot_mod_SOURCES): New variable.
4110 (boot_mod_CFLAGS): Likewise.
4111 (boot_mod_LDFLAGS): Likewise.
4112 * conf/i386-coreboot.rmk: Removed redundant parts.
4113 * conf/i386-ieee1275.rmk: Likewise.
4114 * conf/i386-pc.rmk: Likewise.
4115 * conf/mips-yeeloong.rmk: Likewise.
4116 * conf/mips.rmk: Likewise.
4117 * conf/powerpc-ieee1275.rmk: Likewise.
4118 * conf/sparc64-ieee1275.rmk: Likewise.
4119 * conf/x86_64-efi.rmk: Likewise.
4120 * conf/i386-coreboot.rmk: Moved qemu parts ..
4121 * conf/i386-qemu.rmk: ... here
4122 * conf/i386-efi.rmk: Moved common parts to...
4123 * conf/x86-efi.rmk: ... here.
4124 * conf/i386.rmk: Added modules common to all x86 variants.
4125 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
4126 * disk/memdisk.c: Remove grub/machine/kernel.h.
4127 * gensymlist.sh.in: Include symbol.h.
4128 * hook/datehook.c: Correct module name.
4129 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
4130 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
4131 * include/grub/i386/efi/serial.h: New file.
4132 * include/grub/x86_64/efi/serial.h: Likewise.
4133 * util/time.c: Likewise.
4134 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
4135
463ac55f
CK
41362010-03-14 Colin King <colin.king@ubuntu.com>
41372010-03-14 Colin Watson <cjwatson@ubuntu.com>
4138
4139 Shrink the pre-partition-table part of boot.img by eight bytes.
4140
4141 * boot/i386/pc/boot.S (ERR): New macro.
4142 (chs_mode): Use ERR.
4143 (geometry_error): Likewise.
4144 (hd_probe_error): Remove. This is only used once, so we wrwite
4145 it inline instead.
4146 (read_error): Instead of printing read_error_string, just set up
4147 %si and fall through to ...
4148 (error_message): ... this new function, also used by ERR.
4149
08e46ede
CW
41502010-03-14 Colin Watson <cjwatson@ubuntu.com>
4151
4152 Speed up consecutive hostdisk operations on the same device.
4153
4154 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
4155 (grub_util_biosdisk_open): Initialise disk->data.
4156 (struct linux_partition_cache): New structure.
4157 (linux_find_partition): Cache partition start positions; these are
4158 expensive to compute on every read and write.
4159 (open_device): Cache open file descriptor in disk->data, so that we
4160 don't have to reopen it and flush the buffer cache for consecutive
4161 operations on the same device.
4162 (grub_util_biosdisk_close): New function.
4163 (grub_util_biosdisk_dev): Set `close' member.
4164
4165 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
4166 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
4167 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
4168 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
4169 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
4170
4a6d2d06
VS
41712010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
4172
4173 Compile parts of grub-emu as modules.
4174
4175 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
4176 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
4177 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
4178 (all-local): Add $(GRUB_EMU).
4179 (install-local): Install $(GRUB_EMU).
4180 (uninstall): Uninstall $(GRUB_EMU).
4181 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
4182 * kern/dl.c: Likewise.
4183 * commands/sleep.c: Not include machine/time.h.
4184 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
4185 (COMMON_CFLAGS): Likewise.
4186 (sbin_UTILITIES): Remove grub-emu.
4187 (grub_emu_SOURCES): Removed.
4188 (kernel_img_RELOCATABLE): New variable.
4189 (pkglib_PROGRAMS): Add kernel.img.
4190 (kernel_img_SOURCES): New variable
4191 (kernel_img_CFLAGS): Likewise.
4192 (kernel_img_LDFLAGS): Likewise.
4193 (TARGET_NO_STRIP): Likewise.
4194 (TARGET_NO_DYNAMIC_MODULES): Likewise.
4195 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
4196 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
4197 (grub-emu): New target.
4198 (GRUB_EMU): New variable.
4199 * configure.ac: Whitelist -emu as possible x86_64 architecture.
4200 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
4201 * loader/xnu.c: Likewise.
4202 * include/grub/pci.h: Likewise.
4203 * genemuinit.sh: New file.
4204 * genemuinitheader.sh: Likewise.
4205 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
4206 Support TARGET_NO_DYNAMIC_MODULES.
4207 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
4208 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
4209 * disk/loopback.c: Likewise.
4210 * font/font_cmd.c: Likewise.
4211 * partmap/acorn.c: Likewise.
4212 * partmap/amiga.c: Likewise.
4213 * partmap/apple.c: Likewise.
4214 * partmap/gpt.c: Likewise.
4215 * partmap/msdos.c: Likewise.
4216 * partmap/sun.c: Likewise.
4217 * parttool/msdospart.c: Likewise.
4218 * term/gfxterm.c: Likewise.
4219 * video/bitmap.c: Likewise.
4220 * video/readers/jpeg.c: Likewise.
4221 * video/readers/png.c: Likewise.
4222 * video/readers/tga.c: Likewise.
4223 * video/video.c: Likewise.
4224 * util/grub-emu.c (read_command_list): Removed.
4225 (main): Don't call util_init_nls.
4226 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
4227 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
4228
91fdd2ed
VS
42292010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
4232 date.mod, datehook.mod.
4233 (datetime_mod_SOURCES): New variable.
4234 (datetime_mod_CFLAGS): Likewise.
4235 (datetime_mod_LDFLAGS): Likewise.
4236 (date_mod_SOURCES): Likewise.
4237 (date_mod_CFLAGS): Likewise.
4238 (date_mod_LDFLAGS): Likewise.
4239 (datehook_mod_SOURCES): Likewise.
4240 (datehook_mod_CFLAGS): Likewise.
4241 (datehook_mod_LDFLAGS): Likewise.
4242 * conf/sparc64-ieee1275.rmk: Likewise.
4243 * lib/ieee1275/datetime.c: New file.
4244
873ccae6
VS
42452010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
4248 (ieee1275_fb_mod_SOURCES): New variable.
4249 (ieee1275_fb_mod_CFLAGS): Likewise.
4250 (ieee1275_fb_mod_LDFLAGS): Likewise.
4251 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
4252 New proto.
4253 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
4254 (HEAP_MAX_ADDR): Likewise.
4255 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
4256 type.
4257 Correct stop condition.
4258 (grub_ieee1275_devices_iterate): New function.
4259 * video/ieee1275.c: New file.
4260
601c97c0
VS
42612010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
4264
4265 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
4266 as scratch.
4267 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
4268 SCRATCH_PAD_DISKBOOT as scratch.
4269 (bootit): Pass Openfirmware pointer in %o4.
4270 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
4271 of 0x200000.
4272 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
4273 with util/grub-mkrawimage.c.
4274 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
4275 * include/grub/aout.h (AOUT_MID_SUN): New definition.
4276 (grub_aout_get_type) [GRUB_UTIL]: Removed.
4277 (grub_aout_load) [GRUB_UTIL]: Likewise.
4278 * include/grub/kernel.h (grub_modules_get_end): New proto.
4279 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
4280 (SCRATCH_PAD_BOOT): New definition.
4281 (SCRATCH_PAD_DISKBOOT): Likewise.
4282 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
4283 * include/grub/sparc64/ieee1275/ieee1275.h
4284 (grub_ieee1275_original_stack): New variable
4285 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
4286 New definition
4287 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
4288 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
4289 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
4290 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
4291 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
4292 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
4293 (grub_platform_image_format_t): New type.
4294 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
4295 * kern/main.c (grub_modules_get_end)
4296 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
4297 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
4298 (codestart): Switch stacks.
4299 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
4300 variable.
4301 (grub_heap_init): Use grub_modules_get_end.
4302 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
4303 stack.
4304 * util/grub-mkrawimage.c (generate_image): Support sparc64.
4305 (main): Likewise.
4306 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
4307
d68b491e
TG
43082010-03-14 Thorsten Glaser <tg@mirbsd.org>
4309
4310 * util/grub-mkrescue.in: Base ISO UUID on UTC.
4311
4e02ed50
MK
43122010-03-08 Matt Kraai <kraai@ftbfs.org>
4313
4314 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
4315 bug #559005).
4316
1f15fc1e
VS
43172010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4318
4319 * genmoddep.awk: Output all missing symbols and not only first.
4320
fce5d8ff
VS
43212010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * NEWS: Put the date of 1.98 release.
4324
d1e8a02f
VS
43252010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
4328 ft2build.h.
4329
696fd607
VS
43302010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
4333 completition in the middle of string.
4334
33e2e6f3
VS
43352010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4336
4337 * util/grub-mkrescue.in: Use mktemp with explicit template.
4338
b1f6d291
VS
43392010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
4342
2ac227c7
VS
43432010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
4346 right pointer.
4347
8f9a632b
VS
43482010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 Fix FreeBSD compilation.
4351
4352 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
4353 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
4354
60b03859
VS
43552010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
4358
48a5a769
VS
43592010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4360
4361 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
4362
3ab4bd77
VS
43632010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
4366
d116e0d8
RM
43672010-03-04 Robert Millan <rmh.grub@aybabtu.com>
4368
4369 Support relative image path in theme file.
4370
4371 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
4372 (image_set_property): Handle theme_dir and relative path.
4373
c7ef54aa
VS
43742010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 * configure.ac: Alias amd64 to x86_64.
4377
fcee14ed
VS
43782010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4379
4380 * NEWS: mention multiboot on EFI.
4381
d0780363
VS
43822010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * kern/main.c (grub_load_modules): Handle errors from init functions of
4385 embeded modules.
4386
41168ea4
VS
43872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * normal/autofs.c (autoload_fs_module): Handle errors.
4390
b54d93ac
VS
43912010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 Disable linux.mod on qemu-mips since it's not functional and leads
4394 to compilation failure.
4395
4396 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
4397 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
4398 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
4399 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
4400 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
4401 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
4402 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
4403 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
4404 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
4405 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
4406 Reported by: BVK Chaitanya
4407
fc8345da
JU
44082010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
4409
4410 * INSTALL: Add gettext as a dependency and add qemu to a new section
4411 "Prerequisites for make-check".
4412
4760f979
CF
44132010-03-04 Christian Franke <franke@computer.org>
4414
4415 * util/grub-pe2elf.c: Add missing include "progname.h".
4416
f209b5b2
VS
44172010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * normal/crypto.c (read_crypto_list): Fix a typo.
4420 Reported by: Seth Goldberg.
4421
b4b7be98
VS
44222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 4425 Reported by: Seth Goldberg.
b4b7be98 4426
c0ee0385
VS
44272010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
4430 ascii.bitmaps.
4431
a8efbf64
VS
44322010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 4435 Reported by: Seth Goldberg.
a8efbf64 4436
08dcd913
VS
44372010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * util/i386/efi/grub-install.in: Copy gettext files.
4440
c4d0b332
VS
44412010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
4444
c6f2fe52
VS
44452010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 Wait for user entry basing on presence of output rather than on errors.
4448
4449 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
4450 (grub_install_newline_hook): Likewise.
4451 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
4452 * normal/menu.c (show_menu): Check line_counter to determine presence
4453 of output.
4454 * normal/term.c (grub_normal_line_counter): New variable.
4455 (grub_normal_get_line_counter): New function.
4456 (grub_install_newline_hook): Likewise.
4457
5382b1e4
VS
44582010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
4461
5519963b
VS
44622010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * configure.ac: Update version to 1.98.
4465
72b28631
VS
44662010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * util/grub.d/10_linux.in (linux_entry): Don't default to
4469 gfxpayload=keep if Linux doesn't support video handover.
4470
c140a180
VS
44712010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 Don't compile video modules on yeeloong since video subsystem is part
4474 of kernel.
4475
4476 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
4477 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
4478 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
4479 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
4480 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
4481 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
4482 * include/grub/bitmap_scale.h: Likewise.
4483 * include/grub/bufio.h: Likewise.
4484 * include/grub/font.h: Likewise.
4485 * include/grub/gfxterm.h: Likewise.
4486 * include/grub/video.h: Likewise.
4487 * include/grub/vbe.h: Don't include video_fb.h.
4488 * video/i386/pc/vbe.c: Include video_fb.h.
4489 * commands/i386/pc/vbetest.c: Include video.h.
4490
a0ca21c2
CW
44912010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
4492
4493 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
4494 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
4495 default entry if GRUB_SAVEDEFAULT=true. This allows using
4496 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
4497 saving a new default on every boot.
4498
4a8a763c
VS
44992010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 * normal/crypto.c (read_crypto_list): Fix a memory leak.
4502 * normal/term.c (read_terminal_list): Likewise.
4503 * normal/main.c (grub_normal_init_page): Likewise.
4504 (grub_normal_read_line_real): Likewise.
4505
607ffde2
VS
45062010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
4509 memory leak.
4510 Reported by: Seth Goldberg.
4511
2b8fa975
CW
45122010-02-24 Joey Korkames <joey+lists@kidfixit.com>
4513
4514 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
4515 duplicate declaration of `start'.
4516
618307dd
VS
45172010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
4520 filename.
4521 Reported by: Georgy Buranov
4522
7dd05b96 45232010-02-20 Carles Pina i Estany <carles@pina.cat>
4524
4525 * util/grub-mkrawimage.c (usage): Change string formatting to
4526 improve gettext.
4527
d1484a42
MRA
45282010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
4529
4530 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
4531 backspace keys.
4532
42b1d186
VS
45332010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
4536 Reported by: Michael Suchanek.
4537
45382010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
4539
4540 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
4541 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
4542
d9f31a41
VS
45432010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 Remove any reference to non-free fonts.
4546
4547 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
4548 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
4549 uses non-free components.
4550 * font/font.c (grub_font_get_name): Remove example name.
4551 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
4552 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
4553 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
4554 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
4555
2793c71e
GB
45562010-02-16 Georgy Buranov <gburanov@gmail.com>
4557
4558 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
4559
402e3779
VS
45602010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
4563 Double divisor.
4564 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
4565 features.
4566 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
4567
0dd1e0dd
VS
45682010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
4569
4570 * gensymlist.sh.in: Use TARGET_CC instead of CC.
4571
6fa7cfce
ST
45722010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4573
4574 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
4575 * docs/grub.texi (Command-line and menu entry commands): Document play
4576 command.
4577
37c8483b
ST
45782010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4579
4580 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
4581 parse arguments as inline tempo and notes. Move code for playing notes
4582 to...
4583 (play): ... new function.
4584
14da0fb7
ST
45852010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4586
4587 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
4588 grub_uint16_t instead of short.
4589 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
4590 disk from little endian to cpu endianness.
4591
04459e70
ST
45922010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4593
4594 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
4595 GRUB_TICKS_PER_SECOND instead of 120.
4596
a0876943
VS
45972010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
4600 escape sequence after \e.
4601
e29f95dc
VS
46022010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
4605 non-ASCII characters.
4606
d27859b2
VS
46072010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
4610 set root in single quotes to prevent \, from being unescaped.
4611
bc028f2f
VS
46122010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 Prevent unknown commands from stopping menuentry execution.
4615
4616 * script/execute.c (grub_script_execute_cmdline): Print error after
4617 unknown command.
4618
095f5f82
VS
46192010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
4622 Reported by: Pavel Pisa.
4623
8c717950
VS
46242010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
4627
904935c3
VS
46282010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 Merge grub_ieee1275_map_physical into grub_map and rename to
4631 grub_ieee1275_map
4632
4633 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
4634 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
4635 Remove.
4636 * kern/ieee1275/openfw.c (grub_map): Rename to ...
4637 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
4638 necessary.
4639 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
4640
5b59a4e3
VS
46412010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4642
4643 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
4644 opening and not after.
4645
69e137e8
VS
46462010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4647
4648 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
4649 constants.
4650
2c0fcc36
VS
46512010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4652
4653 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
4654 (alloc_phys): Use ALIGN_UP instead of align_addr.
4655
8c6052ce
VS
46562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
4659
17cec782
VS
46602010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4661
4662 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
4663
e0128bbd
VS
46642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
4667 verbose dprintf.
4668
ca62070b
VS
46692010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 Fix over-4GiB seek on sparc64.
4672
4673 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
4674 Replace pos_i and pos_lo with pos. All users updated.
4675 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
4676 New constant.
4677 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
4678 Likewise.
4679 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
4680 and pos_lo.
4681
bdca2607
VS
46822010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4683
4684 * util/grub-mkrawimage.c (main): Call set_program_name.
4685
da278c4d
VS
46862010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4687
4688 Properly align 64-bit targets.
4689
4690 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
4691 (generate_image): Use ALIGN_ADDR.
4692
b274d734
VS
46932010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 Properly create cross-endian images.
4696
4697 * include/grub/types.h (grub_host_to_target_addr): New macro
4698 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
4699
82da2062
VS
47002010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
4703
7cae4377
VS
47042010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
4707
4708 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
4709 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
4710 (grub_linux_boot): Divide by 64K when on VESA.
4711
65a533e7
VS
47122010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 Support GRUB_GFXPAYLOAD_LINUX.
4715
4716 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
4717 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
4718
dd01d397
VS
47192010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
4722 to show messages instead of discarding them.
4723 Process errors after executing command and not before. Keep old method
4724 too as precaution.
4725
660960d6
VS
47262010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * configure.ac: Check for ft2build.h.
4729
62509f04
VS
47302010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
4733
473df63d
VS
47342010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * genkernsyms.sh.in: Use TARGET_CC.
4737
c98d2a13
CW
47382010-02-07 Colin Watson <cjwatson@ubuntu.com>
4739
4740 * NEWS: Update.
4741
6e14234c
VS
47422010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4743
4744 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
4745 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
4746 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 4747
b255e9cf
YB
47482010-02-07 Yves Blusseau <blusseau@zetam.org>
4749
6e14234c 4750 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 4751
98e6959d
VS
47522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 Fix warnings in grub-emu when compiling with maximum warning options.
4755
4756 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
4757 (grub_arch_modules_addr): Return 0 and not NULL.
4758 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 4759 (xstrdup): Use newstr instead of dup.
f88d801b
VS
4760 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
4761 of disk to dsk to avoid shadowing.
74e4934e
VS
4762 (find_free_slot): Fix prototype.
4763 * util/getroot.c (grub_util_is_dmraid): Make static.
4764 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
4765 Add missing prototype.
4766 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 4767
74e31b5c
VS
47682010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * loader/i386/linux.c (grub_linux_setup_video): Handle error
4771 appropriately.
4772
6b2ad14b
VS
47732010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
4776 code out.
4777
8f891adc
VS
47782010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
4781 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
4782 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
4783 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
4784 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
4785 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
4786
74b45184
VS
47872010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * include/grub/err.h (grub_err_printf): Don't export.
4790
a4bced77
VS
47912010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4792
4793 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
4794
007d0695
VS
47952010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 * include/grub/i18n.h (grub_gettext_dummy): Removed.
4798 * kern/misc.c (grub_gettext_dummy): Make static.
4799
b6c0d9c2
VS
48002010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
4803 by non-valid ones.
4804 * kern/term.c (grub_putchar): Likewise.
4805
f51a90d0
VS
48062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4807
4808 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
4809 buggy hook call and memory leak.
4810
6846cec5
VS
48112010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4812
4813 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
4814
468d69fe
VS
48152010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4816
4817 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
4818
51906b8c
VS
48192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
4822 modevar.
4823 Return grub_errno on allocation error.
4824
09706ce5
VS
48252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
4828
911df80c
YB
48292010-02-06 Yves Blusseau <blusseau@zetam.org>
4830
4831 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
4832 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
4833
3746a6bc
VS
48342010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4835
4836 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
4837 non-pxe disk.
4838 (grub_pxefs_open): Likewise.
4839
09706ce5
VS
48402010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4841
4842 * util/grub.d/10_hurd.in: Add --class information to menuentries.
4843 * util/grub.d/10_kfreebsd.in: Likewise.
4844 * util/grub.d/10_linux.in: Likewise.
4845
7cc192d9
VS
48462010-02-06 Colin D Bennett <colin@gibibit.com>
4847
4848 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
4849 (gfxmenu_mod_SOURCES): New variable.
4850 (gfxmenu_mod_CFLAGS): Likewise.
4851 (gfxmenu_mod_LDFLAGS): Likewise.
4852 * include/grub/term.h (grub_term_set_current_output): Declare
4853 argument as const.
4854 * docs/gfxmenu-theme-example.txt: New file.
4855 * gfxmenu/gfxmenu.c: Likewise.
4856 * gfxmenu/gui_box.c: Likewise.
4857 * gfxmenu/gui_canvas.c: Likewise.
4858 * gfxmenu/gui_circular_progress.c: Likewise.
4859 * gfxmenu/gui_image.c: Likewise.
4860 * gfxmenu/gui_label.c: Likewise.
4861 * gfxmenu/gui_list.c: Likewise.
4862 * gfxmenu/gui_progress_bar.c: Likewise.
4863 * gfxmenu/gui_string_util.c: Likewise.
4864 * gfxmenu/gui_util.c: Likewise.
4865 * gfxmenu/icon_manager.c: Likewise.
4866 * gfxmenu/model.c: Likewise.
4867 * gfxmenu/named_colors.c: Likewise.
4868 * gfxmenu/theme_loader.c: Likewise.
4869 * gfxmenu/view.c: Likewise.
4870 * gfxmenu/widget-box.c: Likewise.
4871 * include/grub/gfxmenu_model.h: Likewise.
4872 * include/grub/gfxmenu_view.h: Likewise.
4873 * include/grub/gfxwidgets.h: Likewise.
4874 * include/grub/gui.h: Likewise.
4875 * include/grub/gui_string_util.h: Likewise.
4876 * include/grub/icon_manager.h: Likewise.
4877
48782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 Agglomerate scrolling in gfxterm.
4881
4882 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
4883 (grub_virtual_screen_setup): Initialise 'total_screen'.
4884 (write_char): Split to ...
4885 (paint_char): ... this ...
4886 (write_char): ... and this.
4887 (paint_char): Handle delayed scrolling.
4888 (draw_cursor): Likewise.
4889 (scroll_up): Split to ...
4890 (real_scroll): ... this ...
4891 (scroll_up): ... and this.
4892 (real_scroll): Handle multi-line scroll and draw below-the-bottom
4893 characters.
4894 (grub_gfxterm_refresh): Call real_scroll.
4895
48962010-02-06 Colin D Bennett <colin@gibibit.com>
4897
4898 * include/grub/misc.h (grub_iscntrl): New inline function.
4899 (grub_isalnum): Likewise.
4900 (grub_strtol): Likewise.
4901
49022010-02-06 Colin D Bennett <colin@gibibit.com>
4903
4904 * normal/menu_text.c (get_entry_number): Move from here ...
4905 * normal/menu.c (get_entry_number): ... moved here.
4906 * include/grub/menu.h (grub_menu_get_default_entry_index):
4907 New prototype.
4908 * normal/menu.c (grub_menu_get_default_entry_index): New function.
4909 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
4910 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
4911 (grub_menu_viewer_should_return): Likewise.
4912 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
4913 * normal/menu_text.c (run_menu): Enable menu switching.
4914 * normal/menu_viewer.c (should_return): New variable.
4915 (menu_viewer_changed): Likewise.
4916 (grub_menu_viewer_show_menu): Handle menu viewer changes.
4917 (grub_menu_viewer_should_return): New function.
4918 (menuviewer_write_hook): Likewise.
4919 (grub_menu_viewer_init): Likewise.
4920
49212010-02-06 Colin D Bennet <colin@gibibit.com>
49222010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 Support for gfxterm in a window.
4925
4926 * include/grub/gfxterm.h: New file.
4927 * include/grub/video.h (struct grub_video_rect): New declaration.
4928 (grub_video_rect_t): Likewise.
4929 * term/gfxterm.c (struct grub_gfxterm_window): New type.
4930 (refcount): New variable.
4931 (render_target): Likewise.
4932 (window): Likewise.
4933 (repaint_callback): Likewise.
4934 (grub_virtual_screen_setup): Use 'render_target'.
4935 (init_window): New function.
4936 (grub_gfxterm_init_window): Likewise.
4937 (grub_gfxterm_init): Check reference counter.
4938 Use init_window.
4939 (destroy_window): New function.
4940 (grub_gfxterm_destroy_window): Likewise.
4941 (grub_gfxterm_fini): Check reference counter.
4942 Use destroy_window.
4943 (redraw_screen_rect): Restore viewport.
4944 Use 'render_target' and 'window'.
4945 Call 'repaint_callback'.
4946 (write_char): Use 'render_target'.
4947 (draw_cursor): Likewise.
4948 (scroll_up): Restore viewport.
4949 Use 'render_target' and 'window'.
4950 Call 'repaint_callback'.
4951 (grub_gfxterm_cls): Likewise.
4952 (grub_gfxterm_refresh): Use 'window'.
4953 (grub_gfxterm_set_repaint_callback): New function.
4954 (grub_gfxterm_background_image_cmd): Use 'window'.
4955 (grub_gfxterm_get_term): New function.
4956 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
4957
49582010-02-06 Colin D Bennett <colin@gibibit.com>
4959
4960 Bitmap scaling support.
4961
4962 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
4963 (bitmap_scale_mod_SOURCES): New variable.
4964 (bitmap_scale_mod_CFLAGS): Likewise.
4965 (bitmap_scale_mod_LDFLAGS): Likewise.
4966 * include/grub/bitmap_scale.h: New file.
4967 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
4968 (background_image_cmd_options): New variable.
4969 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
4970 (cmd): Rename and change type to ...
4971 (background_image_cmd_handle): ... this. All users updated.
4972 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
4973 * video/bitmap_scale.c: New file.
4974
49752010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 SDL support.
4978
4979 * Makefile.in (LIBSDL): New variable.
4980 (enable_grub_emu_sdl): Likewise.
4981 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
4982 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
4983 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
4984 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
4985 * util/sdl.c: New file.
4986
49872010-02-06 Colin D Bennett <colin@gibibit.com>
49882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4989
4990 Double buffering support.
4991
4992 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
4993 * include/grub/video.h: Update comment.
4994 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4995 New type.
4996 (grub_video_fb_doublebuf_blit_init): New prototype.
4997 * term/gfxterm.c (scroll_up): Support double buffering.
4998 (grub_gfxterm_refresh): Likewise.
4999 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
5000 (grub_video_fb_doublebuf_blit_init): Likewise.
5001 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
5002 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
5003 'displayed_page', 'render_page' and 'update_screen'.
5004 (grub_video_vbe_fini): Free offscreen buffer.
5005 (doublebuf_pageflipping_commit): New function.
5006 (doublebuf_pageflipping_update_screen): Likewise.
5007 (doublebuf_pageflipping_init): Likewise.
5008 (double_buffering_init): Likewise.
5009 (grub_video_vbe_setup): Enable doublebuffering.
5010 (grub_video_vbe_swap_buffers): Implement.
5011 (grub_video_vbe_set_active_render_target): Handle double buffering.
5012 (grub_video_vbe_get_active_render_target): Likewise.
5013 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
5014 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
5015 (grub_video_vbe_enable_double_buffering): Likewise.
5016 (grub_video_vbe_swap_buffers): Use update_screen.
5017 (grub_video_set_mode): Use double buffering.
5018
50192010-02-06 Robert Millan <rmh.grub@aybabtu.com>
5020
5021 * maintainance/gentrigtables.py: Remove.
5022 * lib/trig.c: Likewise.
5023
5024 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
5025
5026 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
5027 `trigtables.c'.
5028 (trigtables.c): New rule.
5029 (gentrigtables): Likewise.
5030 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
5031
50322010-02-06 Robert Millan <rmh.grub@aybabtu.com>
5033
5034 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
5035 integer constants.
5036
50372010-02-06 Colin D Bennet <colin@gibibit.com>
5038
5039 Trigonometry support.
5040
5041 * include/grub/trig.h: New file.
5042 * lib/trig.c: Likewise.
5043 * maintainance/gentrigtables.py: Likewise.
5044 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
5045 (trig_mod_SOURCES): New variable.
5046 (trig_mod_CFLAGS): Likewise.
5047 (trig_mod_LDFLAGS): Likewise.
5048
5562834e
VS
50492010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
5052 disk devices.
5053
4f8528fc
VS
50542010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
5057 error.
5058
2b4068e9
VS
50592010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5060
5061 * util/hostdisk.c (open_device): Don't use partition device when reading
5062 before the partition.
5063 (grub_util_biosdisk_read): Don't read from partition and before the
5064 partition in single operation.
5065 (grub_util_biosdisk_write): Don't write to partition and before the
5066 partition in single operation.
5067
399f6e4d
TL
50682010-02-03 Torsten Landschoff <torsten@debian.org>
5069
5070 * kern/disk.c (grub_disk_read): Fix offset computation when reading
5071 last sectors.
5072
996649b0
VS
50732010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
5076 CDROM reads.
5077 (grub_biosdisk_write): Refuse to write to CDROM.
5078
3b205d4d
VS
50792010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
5082
61e89d9d
VS
50832010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 * font/font.c (find_glyph): Check that bmp_idx is available before
5086 using it.
5087 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
5088 with (font == NULL).
5089
bf7fcba2
CS
50902010-01-28 Christian Schmitt <chris@ilovelinux.de>
5091
5092 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
5093
f45d2663
BC
50942010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
5095
5096 * include/grub/script_sh.h (sourcecode): Add const qualifier.
5097 * util/grub-script-check.c (getline): Fix empty lines case.
5098
ec1444e6
RM
50992010-01-28 Robert Millan <rmh.grub@aybabtu.com>
5100
5101 * Makefile.in (check): Exit with fail status when one of the tests
5102 fails.
5103 * tests/example_functional_test.c (example_test): Fix reversed assert.
5104 * tests/example_unit_test.c (example_test): Likewise.
5105
2e1cb9bb
CW
51062010-01-28 Colin Watson <cjwatson@ubuntu.com>
5107
5108 * util/grub.d/10_linux.in: This script does not use any of the
5109 contents of gettext.sh, only the external command `gettext', so stop
5110 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
5111 the same prefix as GRUB.)
5112 * util/grub.d/10_kfreebsd.in: Likewise.
5113
63533ab0
VS
51142010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
5115
5116 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
5117 of the line.
5118
989e1f93
VS
51192010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * kern/disk.c (grub_disk_read): Fix offset computation when reading
5122 last sectors.
5123
e709ebe2
VS
51242010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
5127 having a 4KiB and not 32KiB buffer size.
5128
27dea7ed
RM
51292010-01-27 Robert Millan <rmh.grub@aybabtu.com>
5130
5131 * util/hostfs.c: Include `<errno.h>'.
5132 (grub_hostfs_read): Handle errors from fseeko() and fread().
5133
67667b9c
RM
51342010-01-27 Robert Millan <rmh.grub@aybabtu.com>
5135
5136 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
5137 loop when using read hooks on files whose size isn't sector-aligned.
5138
c294d9d8
RM
51392010-01-27 Robert Millan <rmh.grub@aybabtu.com>
5140
5141 Remove unused parameter.
5142
5143 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
5144 (grub_iso9660_open): Remove initialization of `data->length'.
5145
af75a9f1
RM
51462010-01-27 Robert Millan <rmh.grub@aybabtu.com>
5147
5148 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
5149 memleak conditions.
5150
254e2ce5 51512010-01-27 Carles Pina i Estany <carles@pina.cat>
5152
5153 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
5154 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
5155
b510928c 51562010-01-26 Carles Pina i Estany <carles@pina.cat>
5157
5158 * util/bin2h.c (usage): Fix warning (space after backslash).
5159
aa2f9dd2 51602010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 5161
5162 * font/font.c: Include `grub/fontformat.h.
5163 Remove font file format constants.
5164 (grub_font_load): Use the new macros.
5165 * include/grub/fontformat.h: New file.
5166 * util/grub-mkfont.c: Include `grub/fontformat.c'.
5167 (write_font_pf2): Use the new macros.
5168
94e7e712
RM
51692010-01-26 Robert Millan <rmh.grub@aybabtu.com>
5170
5171 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
5172 does.
5173
3973a59a
RM
51742010-01-26 Robert Millan <rmh.grub@aybabtu.com>
5175
5176 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
5177
5178 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
5179 (_start): Macroify `0x7F'.
5180
5181 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
5182 (make_install_device): Use "(pxe)" as fallback prefix when booting
5183 via PXE.
5184
42e0cba3
GS
51852010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
5186
5187 * configure.ac: Reset LIBS after check for libgcc symbols.
5188
847effd8
CW
51892010-01-25 Colin Watson <cjwatson@ubuntu.com>
5190
5191 * util/hostdisk.c (open_device): Add trailing newline to debug
5192 message.
5193
ea4a7e35
GS
51942010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5195
5196 * configure.ac: Check for `limits.h'.
5197 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
5198
67951a53
RM
51992010-01-24 Robert Millan <rmh.grub@aybabtu.com>
5200
5201 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
5202 capitalize error strings.
5203
c273d4ce
ST
52042010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
5205
5206 * util/grub.d/10_hurd.in: Add a recovery mode.
5207
69be5b74
VS
52082010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
5209
5210 * configure.ac: Check for libgcc symbols with -nostdlib.
5211
fc9e5810
BC
52122010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
5213
5214 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
5215
4b358c0a
VS
52162010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
5219 stack since heap may be unavailable at that point.
5220 (grub_ofconsole_gotoxy): Likewise.
5221
454fcd1c
VS
52222010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * configure.ac: Check for _restgpr_14_x.
5225 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
5226 and _savegpr_* prototypes.
5227
566863ca
RM
52282010-01-22 Robert Millan <rmh.grub@aybabtu.com>
5229
5230 Use generic grub_reboot() for i386-efi.
5231
5232 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
5233 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
5234 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
5235
bf86e59a
VS
52362010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
5239 presence of "prefix" variable as it breaks when normal.mod is
5240 embedded.
5241
d645e0f8
VS
52422010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
5245 stack since heap is unavailable at that point.
5246
f9ab2e25
VS
52472010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
5250 (grub_freebsd_bootinfo): Rewritten.
5251 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
5252
01fc7054
VS
52532010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
5256
caab4fd6
RM
52572010-01-21 Robert Millan <rmh.grub@aybabtu.com>
5258
5259 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
5260 domain now.
5261
67eb1427
FZ
52622010-01-20 Felix Zielcke <fzielcke@z-51.de>
5263
5264 * util/misc.c (make_system_path_relative_to_its_root): Change the work
5265 around for handling "/" to the correct fix. Fix a memory leak. Use
5266 xstrdup instead of strdup.
5267
a9ed4ff3
VS
52682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
5271
52722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
5273
5274 Optimise glyph lookup by Basic Multilingual Plane lookup array.
5275
5276 * font/font.c (struct grub_font): New member 'bmp_idx'.
5277 (font_init): Initialise 'bmp_idx'.
5278 (load_font_index): Fill 'bmp_idx'.
5279 (find_glyph): Make inline. Use bmp_idx for BMP characters.
5280
48209f4f
VS
52812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5282
5283 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
5284 unnecessary calls.
5285
9f0a4bb7
VS
52862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5287
5288 Move context handling out of the kernel.
5289
5290 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
5291 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
5292 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
5293 * conf/i386-efi.rmk: Likewise.
5294 * conf/i386-ieee1275.rmk: Likewise.
5295 * conf/i386-pc.rmk: Likewise.
5296 * conf/powerpc-ieee1275.rmk: Likewise.
5297 * conf/sparc64-ieee1275.rmk: Likewise.
5298 * conf/x86_64-efi.rmk: Likewise.
5299 * include/grub/env.h: Include grub/menu.h.
5300 (grub_env_var_type): Removed.
5301 (grub_env_var): Replaced field 'type' with 'global'.
5302 (grub_env_find): New prototype.
5303 (grub_env_context_open): Remove EXPORT_FUNC.
5304 (grub_env_context_close): Likewise.
5305 (grub_env_export): Likewise.
5306 (grub_env_set_data_slot): Removed.
5307 (grub_env_get_data_slot): Likewise.
5308 (grub_env_unset_data_slot): Likewise.
5309 (grub_env_unset_menu): New prototype.
5310 (grub_env_set_menu): Likewise.
5311 (grub_env_get_menu): Likewise.
5312 * include/grub/env_private.h: New file.
5313 * include/grub/normal.h (grub_context_init): New prototype.
5314 (grub_context_fini): Likewise.
5315 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
5316 * normal/context.c (grub_cmd_export): ... to here.
5317 * kern/env.c: Include env_private.h.
5318 (HASHSZ): Moved to include/grub/env_private.h.
5319 (grub_env_context): Likewise.
5320 (grub_env_sorted_var): Likewise.
5321 (current_context): Renamed from this ...
5322 (grub_current_context): ...to this. 'static' removed. All users updated.
5323 (grub_env_find): Removed 'static'.
5324 (grub_env_context_open): Moved to normal/context.c.
5325 (grub_env_context_close): Likewise.
5326 (grub_env_export): Likewise.
5327 (mangle_data_slot_name): Removed.
5328 (grub_env_set_data_slot): Likewise.
5329 (grub_env_get_data_slot): Likewise.
5330 (grub_env_unset_data_slot): Likewise.
5331 * kern/main.c (grub_set_root_dev): Don't export root.
5332 It will be done later.
5333 (grub_main): Don't export prefix.
5334 It will be done later.
5335 * normal/context.c: New file.
5336 * normal/main.c (free_menu): Use grub_env_unset_menu.
5337 (grub_normal_add_menu_entry): Use grub_env_get_menu.
5338 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
5339 (GRUB_MOD_INIT(normal)): Call grub_context_init.
5340 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
5341
8dd35b8c
VS
53422010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 setpci support.
5345
5346 * commands/setpci.c: New file.
5347 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
5348 (setpci_mod_SOURCES): New variable.
5349 (setpci_mod_CFLAGS): Likewise.
5350 (setpci_mod_LDFLAGS): Likewise.
5351
449193d5
VS
53522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 Byte-addressable PCI configuration space.
5355
5356 * bus/pci.c (grub_pci_make_address): Use byte address instead of
5357 dword address.
5358 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
5359 GRUB_PCI_REG_CACHELINE.
5360 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
5361 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
5362 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
5363 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
5364 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
5365 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
5366 grub_pci_make_address.
5367 (lock_rom_area): Likewise.
5368 * commands/lspci.c (grub_lspci_iter): Use macroses
5369 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
5370 of grub_pci_make_address.
5371 * disk/ata.c (grub_ata_pciinit): Likewise.
5372 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
5373 (GRUB_PCI_REG_VENDOR): Likewise.
5374 (GRUB_PCI_REG_DEVICE): Likewise.
5375 (GRUB_PCI_REG_COMMAND): Likewise.
5376 (GRUB_PCI_REG_STATUS): Likewise.
5377 (GRUB_PCI_REG_REVISION): Likewise.
5378 (GRUB_PCI_REG_CLASS): Likewise.
5379 (GRUB_PCI_REG_CACHELINE): Likewise.
5380 (GRUB_PCI_REG_LAT_TIMER): Likewise.
5381 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
5382 (GRUB_PCI_REG_BIST): Likewise.
5383 (GRUB_PCI_REG_ADDRESSES): Likewise.
5384 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
5385 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
5386 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
5387 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
5388 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
5389 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
5390 (GRUB_PCI_REG_CIS_POINTER): Likewise.
5391 (GRUB_PCI_REG_SUBVENDOR): Likewise.
5392 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
5393 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
5394 (GRUB_PCI_REG_CAP_POINTER): Likewise.
5395 (GRUB_PCI_REG_IRQ_LINE): Likewise.
5396 (GRUB_PCI_REG_IRQ_PIN): Likewise.
5397 (GRUB_PCI_REG_MIN_GNT): Likewise.
5398 (GRUB_PCI_REG_MAX_LAT): Likewise.
5399 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
5400 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
5401 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 5402 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
5403 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
5404 space.
5405
96d73208
RM
54062010-01-20 Robert Millan <rmh.grub@aybabtu.com>
5407
5408 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
5409 can be reliably determined to be supported.
5410
d4484482
RM
54112010-01-20 Robert Millan <rmh.grub@aybabtu.com>
5412
5413 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
5414 that VESA is supported.
5415 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
5416 supported.
5417
00308ecf
VS
54182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
5421
f66924a4
RM
54222010-01-20 Robert Millan <rmh.grub@aybabtu.com>
5423
5424 * util/misc.c (make_system_path_relative_to_its_root): Work around
5425 special-casing of "/", as previous incarnation of this routine did.
5426
cbca0ada
VS
54272010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5428
5429 Fix any-emu compilation.
5430
5431 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
5432 * grub_bin2h_SOURCES: New variable.
5433
34a66d99
RM
54342010-01-20 Robert Millan <rmh.grub@aybabtu.com>
5435
5436 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
5437
94fabf58
RM
54382010-01-20 Robert Millan <rmh.grub@aybabtu.com>
5439
5440 * util/grub.d/00_header.in: Fix handling of locale_dir.
5441
02cf98ca
VS
54422010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
5445 as possible unifont location (Gentoo).
5446 Reported by: Alexander Brüning
5447
327dbcd7
VS
54482010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 Don't try to generate lists for kernel.img.
5451
5452 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
5453 (pkglib_MODULES): Remove kernel.img.
5454 (kernel_img_EXPORTS): Removed.
5455 (kernel_img_RELOCATABLE): New variable.
5456 * conf/x86_64-efi.rmk: Likewise.
5457 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
5458
ca467290
VS
54592010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
5462 grub_xasprintf or grub_snprintf.
5463 (grub_vsprintf): Likewise.
5464 (grub_snprintf): New proto.
5465 (grub_vsnprintf): Likewise.
5466 (grub_xasprintf): Likewise.
5467 (grub_xvasprintf): Likewise.
5468 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
5469 (grub_sprintf): Removed.
5470 (grub_vsnprintf): New function.
5471 (grub_snprintf): Likewise.
5472 (grub_xvasprintf): Likewise.
5473 (grub_xasprintf): Likewise.
5474 (grub_vsprintf): Renamed to ...
5475 (grub_vsnprintf_real): ...this. New argument max_len.
5476
aca655fd
BC
54772010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
5478
5479 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
5480 fix grub-script-check warning.
5481
7ee92c32
VS
54822010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * include/grub/font.h (grub_font_load): Fix prototype.
5485
f80927ca
VS
54862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
5489
119c50ea
VS
54902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * include/grub/x86_64/at_keyboard.h: New file.
5493
47d5f3c1
VS
54942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5495
5496 * loader/mips/linux.c: Include missing grub/i18n.h.
5497
55ff5266
RM
54982009-12-20 Robert Millan <rmh.grub@aybabtu.com>
5499
5500 * normal/menu.c (notify_execution_failure): Clarify error message.
5501
c893cc87
RM
55022009-12-20 Robert Millan <rmh.grub@aybabtu.com>
5503
5504 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
5505 return value (and revert all return statements). Update users.
5506
917dd370
CW
55072010-01-20 Dan Merillat <debian@dan.merillat.org>
5508
5509 * kern/device.c (grub_device_iterate): Allocate new part_ent
5510 structure based on sizeof (*p) rather than sizeof (p->next), to
5511 account for structure padding.
5512
5513 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
5514 disk is NULL, which might happen for LVM physical volumes with no
5515 LVM signature.
5516
d4a4ee57
RM
55172009-12-20 Robert Millan <rmh.grub@aybabtu.com>
5518
5519 * loader/mips/linux.c (grub_cmd_initrd)
5520 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
5521
55222009-12-20 Robert Millan <rmh.grub@aybabtu.com>
5523
5524 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
5525 (grub_video_video_init, grub_video_bitmap_init)
5526 (grub_font_manager_init, grub_term_gfxterm_init)
5527 (grub_at_keyboard_init): New extern declarations.
5528 (grub_machine_init): Initialize gfxterm and at_keyboard.
5529
5530 * kern/main.c (grub_main): Revert grub_printf delay kludge.
5531
5532 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
5533 `gfxterm.mod' into core image.
5534
5535 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
5536 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
5537 (kernel_img_FORMAT): Copy to ...
5538
5539 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
5540 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
5541 (kernel_img_FORMAT): ... here, and ...
5542
5543 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
5544 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
5545 (kernel_img_FORMAT): ... here.
5546
5547 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
5548 and input (at_keyboard) terminals in kernel.
5549 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
5550
5551 (pkglib_MODULES): Remove `pci.mod'.
5552 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
5553 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
5554 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
5555 (at_keyboard_mod_LDFLAGS): Remove variables.
5556
55572010-01-11 Felix Zielcke <fzielcke@z-51.de>
5558
5559 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
5560
55612009-12-10 Robert Millan <rmh.grub@aybabtu.com>
5562
5563 * include/grub/mips/libgcc.h: Only export symbols for functions
5564 that libgcc provides.
5565
55662009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 MIPS support.
5569
5570 * bus/bonito.c: New file.
5571 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
5572 GRUB_PCI_NUM_DEVICES.
5573 * term/i386/pc/serial.c: Move to ...
5574 * term/serial.c: ... here. All users updated.
5575 * util/i386/pc/grub-mkimage.c: Move to ...
5576 * util/grub-mkrawimage.c: ... here. All users updated.
5577 * term/i386/pc/at_keyboard.c: Move to ...
5578 * term/at_keyboard.c: ... here. All users updated.
5579 * conf/mips-qemu-mips.rmk: New file.
5580 * conf/mips-yeeloong.rmk: Likewise.
5581 * conf/mips.rmk: Likewise.
5582 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
5583 mipsel-qemu-mips.
5584 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
5585 to port addresses.
5586 (grub_ata_pciinit): Support CS5536.
5587 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
5588 * font/font_cmd.c (loadfont_command): Open file before passing it to
5589 grub_font_load.
5590 (pseudo_file_read): New function.
5591 (pseudo_file_close): Likewise.
5592 (pseudo_fs): New structure.
5593 (load_font_module): New function.
5594 (GRUB_MOD_INIT(font_manager)): Load embedded font.
5595 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
5596 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
5597 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
5598 * include/grub/i386/at_keyboard.h: Split into ...
5599 * include/grub/at_keyboard.h: ... this ...
5600 * include/grub/i386/at_keyboard.h: ... and this.
5601 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
5602 New prototype.
5603 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
5604 updated.
5605 (grub_elf64_size): Likewise.
5606 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
5607 filename.
5608 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
5609 * include/grub/i386/coreboot/serial.h: Rewritten.
5610 * include/grub/i386/ieee1275/serial.h: Include
5611 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
5612 * include/grub/i386/pc/serial.h: Moved from here ...
5613 * include/grub/serial.h: ... to here. All users updated.
5614 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
5615 (GRUB_PCI_NUM_BUS): Likewise.
5616 (GRUB_PCI_NUM_DEVICES): Likewise.
5617 (grub_pci_device_map_range): Add missing volatile keyword.
5618 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
5619 * include/grub/mips/at_keyboard.h: New file.
5620 * include/grub/mips/cache.h: Likewise.
5621 * include/grub/mips/io.h: Likewise.
5622 * include/grub/mips/kernel.h: Likewise.
5623 * include/grub/mips/libgcc.h: Likewise.
5624 * include/grub/mips/pci.h: Likewise.
5625 * include/grub/mips/qemu-mips/boot.h: Likewise.
5626 * include/grub/mips/qemu-mips/kernel.h: Likewise.
5627 * include/grub/mips/qemu-mips/loader.h: Likewise.
5628 * include/grub/mips/qemu-mips/memory.h: Likewise.
5629 * include/grub/mips/qemu-mips/serial.h: Likewise.
5630 * include/grub/mips/qemu-mips/time.h: Likewise.
5631 * include/grub/mips/relocator.h: Likewise.
5632 * include/grub/mips/time.h: Likewise.
5633 * include/grub/mips/types.h: Likewise.
5634 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
5635 * include/grub/mips/yeeloong/boot.h: Likewise.
5636 * include/grub/mips/yeeloong/kernel.h: Likewise.
5637 * include/grub/mips/yeeloong/loader.h: Likewise.
5638 * include/grub/mips/yeeloong/memory.h: Likewise.
5639 * include/grub/mips/yeeloong/pci.h: Likewise.
5640 * include/grub/mips/yeeloong/serial.h: Likewise.
5641 * include/grub/mips/yeeloong/time.h: Likewise.
5642 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
5643 * kern/elf.c (grub_elf32_size): New parameter. All users
5644 updated.
5645 (grub_elf64_size): Likewise.
5646 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
5647 Load modules before saying "Welcome to GRUB!".
5648 Call grub_refresh after saying "Welcome to GRUB!".
5649 * kern/mips/cache.S: New file.
5650 * kern/mips/cache_flush.S: Likewise.
5651 * kern/mips/dl.c: Likewise.
5652 * kern/mips/init.c: Likewise.
5653 * kern/mips/qemu-mips/init.c: Likewise.
5654 * kern/mips/startup.S: Likewise.
5655 * kern/mips/yeeloong/init.c: Likewise.
5656 * kern/term.c (grub_putcode): Handle NULL terminal.
5657 (grub_getcharwidth): Likewise.
5658 (grub_getkey): Likewise.
5659 (grub_checkkey): Likewise.
5660 (grub_getkeystatus): Likewise.
5661 (grub_getxy): Likewise.
5662 (grub_getwh): Likewise.
5663 (grub_gotoxy): Likewise.
5664 (grub_cls): Likewise.
5665 (grub_setcolorstate): Likewise.
5666 (grub_setcolor): Likewise.
5667 (grub_getcolor): Likewise.
5668 (grub_refresh): Likewise.
5669 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
5670 (write_jump): Add hatch nop.
5671 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
5672 * lib/mips/setjmp.S: New file.
5673 * loader/mips/linux.c: Likewise.
5674 * term/i386/pc/at_keyboard.c: Move from here ...
5675 * term/at_keyboard.c: ... to here.
5676 * term/i386/pc/serial.c: Moved from here ...
5677 * term/serial.c: ... to here. All users updated.
5678 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
5679 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
5680 (serial_translate_key_sequence): Avoid deadlock.
5681 (grub_serial_getkey): Handle backspace.
5682 (grub_serial_putchar): Fix newline handling.
5683 * util/i386/pc/grub-mkimage.c: Move from here ...
5684 * util/grub-mkrawimage.c: ... to here. All users updated.
5685 (generate_image): New parameters 'font_path' and 'format'.
5686 Support embedding font.
5687 Use grub_host_to_target* instead of grub_cpu_to_le*.
5688 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
5689 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
5690 (options): New option "--font".
5691 (usage): Likewise.
5692 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
5693 (main): Handle "--font".
5694 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
5695 (grub_virtual_screen_setup): Set bg_color_display.
5696 (redraw_screen_rect): Use bg_color_display instead of incorrect
5697 bg_color.
5698 (grub_gfxterm_cls): Likewise.
5699 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
5700 Support embedding config file.
5701 (add_segments): Likewise.
5702 (options): New option "--config".
5703 (main): Handle "--config".
5704 * video/sm712.c: New file.
5705
25c2b5b3
RM
57062010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5707
5708 Fix parallel builds.
5709
5710 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
5711 font.c depend on ascii.h).
5712
57132010-01-12 Carles Pina i Estany <carles@pina.cat>
5714
5715 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
5716
57172010-01-11 Carles Pina i Estany <carles@pina.cat>
5718
5719 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
5720 By default: disabled.
5721 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
5722 parameter.
5723
57242010-01-10 Carles Pina i Estany <carles@pina.cat>
5725
5726 * font/font.c: Update copyright years.
5727 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
5728
57292010-01-10 Carles Pina i Estany <carles@pina.cat>
5730
5731 * font/font.c: Include `ascii.h'.
5732 (ASCII_BITMAP_SIZE): New macro.
5733 (ascii_font_glyph): Define.
5734 (ascii_glyph_lookup): New function.
5735 (grub_font_get_string_width): Change comment. If glyph not found, use
5736 ascii_glyph_lookup.
5737 (grub_font_get_glyph_with_fallback): If glyph not available returns
5738 ascii_glyph_lookup.
5739 * util/grub-mkfont.c (file_formats): New enum.
5740 (options): Add `ascii-bitmaps' new option.
5741 (usage): Add `asii-bitmaps' new option.
5742 (write_font_ascii_bitmap): New function.
5743 (write_font): Rename to ...
5744 (write_font_p2): ... this. Remove print_glyphs call.
5745 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
5746 used. Call print_glyphs.
5747 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
5748
57492010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5750
5751 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
5752 (grub_bin2h_SOURCES): New variable.
5753 * util/bin2h.c: New file.
5754
915fc1b8
VS
57552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * include/multiboot.h: Resynced with spec.
5758 * include/multiboot2.h: Likewise.
5759 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
5760 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
5761
9444b678
RM
57622010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5763
5764 * include/grub/term.h (grub_term_register_input,
5765 grub_term_register_output): Check return of terminal init()
5766 routines, and abort if errors are raised.
5767
5768 * commands/terminal.c: Update copyright year.
5769
cba98e8d
RM
57702010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5771
5772 * commands/terminal.c (grub_cmd_terminal_input)
5773 (grub_cmd_terminal_output): Check return of terminal init()
5774 routines, and abort if errors are raised.
5775
6f7db5d6
VS
57762010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
5777
5778 * include/grub/i386/bsd.h: Fix include pathes.
5779
262bff8d
VS
57802010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 Add missing *BSD copyright headers.
5783
5784 * include/grub/aout.h: Add BSD licence.
5785 * include/grub/i386/bsd.h: Parts under different licences moved to ...
5786 * include/grub/i386/freebsd_linker.h: ... here,
5787 * include/grub/i386/freebsd_reboot.h: ... here,
5788 * include/grub/i386/netbsd_bootinfo.h: ... here,
5789 * include/grub/i386/netbsd_reboot.h: ... here,
5790 * include/grub/i386/openbsd_bootarg.h: ... here,
5791 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
5792 licence to each file.
5793
b2cab848
RM
57942010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5795
5796 * acinclude.m4: Remove `nop' assembly instruction; it's not
5797 implemented by all architectures.
5798
2cb6be4b
RM
57992010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5800
5801 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
5802 ELILO. This is no longer necessary.
5803
a2eaee15
BC
58042010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
5805
5806 Added new tool, grub-scrit-check to verify grub.cfg syntax.
5807
5808 * util/grub-script-check.c: grub-script-check tool.
5809 * conf/common.rmk: Make rules for grub-script-check.
5810
88d17012
RM
58112010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5812
5813 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
5814 spotting it back in 2008. Shame on me for forgetting he did.
5815
5816 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
5817
8040619d
RM
58182010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5819
5820 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
5821 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
5822 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
5823 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
5824 (GRUB_VIDEO_TYPE_EFI): Rename to ...
5825 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
5826
a0c2a0f6
RM
58272010-01-17 Robert Millan <rmh.grub@aybabtu.com>
5828
5829 * include/grub/test.h: Add license header.
5830 * tests/example_functional_test.c: Likewise.
5831 * tests/example_unit_test.c: Likewise.
5832 * tests/lib/functional_test.c: Likewise.
5833 * tests/lib/test.c: Likewise.
5834 * tests/lib/unit_test.c: Likewise.
5835
b0b13907
VS
58362010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 Use flag-based instead of hook-based video mode selection and "auto"
5839 keyword.
5840
5841 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
5842 (grub_video_set_mode): Changed prototype. All users updated.
5843 (grub_video_check_mode_flag): New inline function.
5844 * video/video.c (parse_modespec): New function.
5845 (grub_video_set_mode): Parse flags and keywords.
5846
ea379330 58472010-01-17 Carles Pina i Estany <carles@pina.cat>
5848
5849 * util/misc.c (grub_util_info): Fix the order of the parameters in a
5850 fprintf call.
5851
e15c215e
FZ
58522010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5853
5854 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
5855
409ae1c9 58562010-01-16 Carles Pina i Estany <carles@pina.cat>
5857
5858 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
5859 string.
5860 * util/grub-emu.c (usage): Likewise.
5861 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
5862 * util/i386/efi/grub-mkimage.c (usage): Likewise.
5863 * util/i386/pc/grub-mkimage.c (usage): Likewise.
5864 * util/i386/pc/grub-setup.c (usage): Likewise.
5865
70a14d3d 58662010-01-16 Carles Pina i Estany <carles@pina.cat>
5867
5868 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
5869 the message.
5870 (grub_util_info): Likewise.
5871 (grub_util_error): Likewise.
5872 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
5873 and/or new lines in `grub_util_warna', `grub_util_info',
5874 `grub_util_error' calls.
5875 * util/getroot.c: Likewise.
5876 * util/grub-editenv.c: Likewise.
5877 * util/grub-emu.c: Likewise.
5878 * util/grub-fstest.c: Likewise.
5879 * util/grub-mkdevicemap.c: Likewise.
5880 * util/grub-mkfont.c: Likewise.
5881 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5882 * util/grub-mkrelpath.c: Likewise.
5883 * util/grub-pe2elf.c: Likewise.
5884 * util/grub-probe.c: Likewise.
5885 * util/hostdisk.c: Likewise.
5886 * util/i386/efi/grub-mkimage.c: Likewise.
5887 * util/i386/pc/grub-mkimage.c: Likewise.
5888 * util/i386/pc/grub-setup.c: Likewise.
5889 * util/ieee1275/ofpath.c: Likewise.
5890 * util/mkisofs/eltorito.c: Likewise.
5891 * util/mkisofs/rock.c: Likewise.
5892 * util/mkisofs/write.c: Likewise.
5893 * util/raid.c: Likewise.
5894 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
5895 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5896
a0b766fc
VS
58972010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 Enable multiboot on non-pc.
5900
5901 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
5902 multiboot.mod and multiboot2.mod to ...
5903 * conf/i386.rmk (pkglib_MODULES): ... here.
5904 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
5905 Moved to ...
5906 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
5907 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
5908 Moved to ...
5909 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
5910 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
5911 Moved to ...
5912 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
5913 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
5914 Moved to ...
5915 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
5916 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
5917 relocator.mod.
5918 (ata_mod_SOURCES): Removed.
5919 (ata_mod_CFLAGS): Likewise.
5920 (ata_mod_LDFLAGS): Likewise.
5921 (relocator_mod_SOURCES): Removed.
5922 (relocator_mod_CFLAGS): Likewise.
5923 (relocator_mod_ASFLAGS): Likewise.
5924 (relocator_mod_LDFLAGS): Likewise.
5925 Include i386.mk.
5926 * include/grub/x86_64/multiboot.h: New file.
5927 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
5928 Terminate EFI.
5929
884ade56
VS
59302010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5931
5932 Video multiboot support.
5933
5934 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
5935 New prototype.
5936 * include/multiboot.h: Resynced with multiboot specification.
5937 * include/multiboot2.h: Likewise.
5938 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
5939 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
5940 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
5941 (HAS_VGA_TEXT): Likewise.
5942 (accepts_video): New variable.
5943 (grub_multiboot_set_accepts_video): New function.
5944 (grub_multiboot_get_mbi_size): Account for video structures.
5945 (set_video_mode): New function.
5946 (retrieve_video_parameters): Likewise.
5947 (grub_multiboot_make_mbi): Fill video fields.
5948
0d90e8a6
VS
59492010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5950
5951 Video driver ids.
5952
5953 * include/grub/video.h (grub_video_driver_id): New type.
5954 (grub_video_adapter): New member 'id'. All users updated.
5955 (grub_video_get_driver_id): New proto.
5956 * video/video.c (grub_video_get_driver_id): New function.
5957
5c71db1b 59582010-01-14 Carles Pina i Estany <carles@pina.cat>
5959
5960 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
5961 `var=val'.
5962
cca15b52 59632010-01-14 Carles Pina i Estany <carles@pina.cat>
5964
5965 * normal/cmdline.c (print_completion): Gettextizze.
5966
c586fbb2 59672001-01-14 Carles Pina i Estany <carles@pina.cat>
5968
5969 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
5970
ba2f6848 59712010-01-14 Carles Pina i Estany <carles@pina.cat>
5972
5973 * gettext/gettext.c (grub_gettext_translate): Push and pop
5974 grub_errno.
5975 (grub_gettext_delete_list): Change comment style.
5976 * kern/err.c (grub_error): Gettextizze.
5977 (grub_fatal): Gettextizze.
5978
0a46429a
RM
59792010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5980
5981 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
5982 (grub_linux16_real_boot): ... this.
5983 * kern/i386/loader.S: Likewise.
5984 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
5985 (grub_linux16_boot): New function. Switches to text mode and calls
5986 grub_linux16_real_boot().
5987
5988 * loader/i386/bsd.c: Include `<grub/video.h>'.
5989 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
5990 text mode before calling grub_unix_real_boot().
5991
5992 * loader/i386/multiboot.c: Include `<grub/video.h>'.
5993 (grub_multiboot_boot): Switch to text mode before calling
5994 grub_relocator32_boot().
5995
5996 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
5997 (grub_chainloader_boot): Switch to text mode before calling
5998 grub_chainloader_real_boot().
5999
d6f93a66
RM
60002010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
60012010-01-05 Colin Watson <cjwatson@ubuntu.com>
6002
6003 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
6004 non-empty value.
6005
60062010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
60072010-01-05 Colin Watson <cjwatson@ubuntu.com>
6008
6009 * util/grub.d/00_header.in: Define a "savedefault" function for use
6010 in menu entries.
6011 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
6012
60132010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
60142010-01-05 Colin Watson <cjwatson@ubuntu.com>
6015
6016 * util/grub-mkconfig_lib.in (save_default_entry): Only set
6017 saved_entry if boot_once is unset.
6018 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
6019 previous saved entry (i.e. grub-reboot).
6020
60212009-12-08 Colin Watson <cjwatson@ubuntu.com>
6022
6023 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
6024
60252009-12-08 Colin Watson <cjwatson@ubuntu.com>
6026
6027 * util/grub.d/00_header.in: Use `set var=val' rather than plain
6028 `var=val'.
6029 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
6030
60312009-12-08 Colin Watson <cjwatson@ubuntu.com>
6032
6033 * util/grub-reboot.in: Fix --version output.
6034 * util/grub-set-default.in: Likewise.
6035
60362009-12-08 Colin Watson <cjwatson@ubuntu.com>
6037
6038 * util/grub.d/00_header.in: Silently ignore zero-sized environment
6039 blocks.
6040
60412009-12-08 Colin Watson <cjwatson@ubuntu.com>
6042
6043 * util/grub.d/00_header.in: Quote the value assigned to `default',
6044 in case it contains spaces.
6045
60462009-12-08 Colin Watson <cjwatson@ubuntu.com>
6047
6048 * util/grub.d/30_os-prober.in: Fix merge error that moved a
6049 `save_default_entry' call from the macosx case to the linux case.
6050
60512009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
60522009-10-25 Colin Watson <cjwatson@ubuntu.com>
6053
6054 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
6055 in `chosen' environment variable.
6056 * normal/menu_text.c (get_entry_number): Check if the variable
6057 matches the title of a menu entry.
6058 (run_menu): Pass menu to get_entry_number.
6059
6060 * util/grub-reboot.in: New file.
6061 * util/grub-set-default.in: New file.
6062 * conf/common.rmk (grub-reboot): New utility.
6063 (grub-set-default): New utility.
6064
6065 * util/grub-mkconfig_lib.in (save_default_entry): New function.
6066 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
6067 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
6068 move it to `saved_entry' for the next boot. Load environment on
6069 initialisation.
6070 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
6071 * util/grub.d/10_hurd.in: Likewise.
6072 * util/grub.d/10_linux.in (linux_entry): Likewise.
6073 * util/grub.d/10_windows.in: Likewise.
6074 * util/grub.d/30_os-prober.in: Likewise.
6075
6076 * util/grub-install.in: Create environment block.
6077 * util/i386/efi/grub-install.in: Likewise.
6078 * util/ieee1275/grub-install.in: Likewise.
6079 * util/sparc64/ieee1275/grub-install.in: Likewise.
6080
0934d184
BC
60812010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
6082
6083 Unit testing framework for GRUB.
6084
6085 * Makefile.in: Test framework build rules for 'make check'.
6086 * conf/tests.rmk: Build rules for individual tests and framework.
6087
6088 * include/grub/test.h: Header file for whitebox tests.
6089 * tests/lib/functional_test.c: Framework support for whitebox
6090 functional tests.
6091 * tests/lib/test.c: Common whitebox testing code for unit and
6092 functional tests.
6093 * tests/lib/unit_test.c: Framework support for whitebox unit
6094 tests.
6095
6096 * tests/util/grub-shell-tester.in: Support utility for grub-script
6097 tests.
6098 * tests/util/grub-shell.in: Utility to execute grub-script
6099 commands in a Qemu instance.
6100
6101 * tests/example_functional_test.c: Example whitebox functional
6102 test.
6103 * tests/example_grub_script_test.in: Example grub-script test.
6104 * tests/example_scripted_test.in: Example scripted test.
6105 * tests/example_unit_test.c: Example whitebox unit test.
6106
9c4ffeeb
VS
61072010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
6110 Add loader/i386/multiboot_mbi.c.
6111 (multiboot2_mod_SOURCES): Likewise.
6112 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
6113 (multiboot2_mod_SOURCES): Likewise.
6114 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
6115 (grub_multiboot_make_mbi): Likewise.
6116 (grub_multiboot_free_mbi): Likewise.
6117 (grub_multiboot_init_mbi): Likewise.
6118 (grub_multiboot_add_module): Likewise.
6119 (grub_multiboot_set_bootdev): Likewise.
6120 * loader/i386/multiboot.c (mbi): Removed.
6121 (mbi_dest): Likewise.
6122 (alloc_mbi): New variable.
6123 (grub_multiboot_payload_size): Removed. All users updated.
6124 (grub_multiboot_pure_size): New variable.
6125 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
6126 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
6127 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
6128 (grub_fill_multiboot_mmap): Likewise.
6129 (grub_multiboot_get_bootdev): Likewise.
6130 (grub_multiboot): Use multiboot_mbi functions.
6131 * loader/i386/multiboot_mbi.c: New file.
6132
17383dfe
VS
61332010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
6136 it would result in module crash.
6137
c1f28820
VS
61382010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
6141 (grub_ofconsole_getwh): Split to ...
6142 (grub_ofconsole_getwh): ... this.
6143 (grub_ofconsole_dimensions): ...and this.
6144 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
6145
58655a16
RM
61462010-01-13 Robert Millan <rmh.grub@aybabtu.com>
6147
6148 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
6149
10891398
VS
61502010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * loader/i386/pc/multiboot2.c: Removed stalled file.
6153
0b8a223c
VS
61542010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
6157 Reported by: Grégoire Sutre
6158
92ab12b0
RM
61592010-01-11 Robert Millan <rmh.grub@aybabtu.com>
6160
6161 * util/misc.c (canonicalize_file_name): New function.
6162 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
6163 instead of realpath().
6164
a788afb6
CW
61652010-01-11 Colin Watson <cjwatson@ubuntu.com>
6166
6167 * util/grub-install.in (usage): Clarify meaning of --root-directory,
6168 and make it clearer that it's optional. Based on confusion
6169 witnessed on IRC.
6170
ffa8e3d2
VS
61712010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
6174 in premature implicit newline.
6175
e9060a9d
VS
61762010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6179 which resulted in garbled command line at the end of screen.
6180
f0d0c0b7
RM
61812010-01-10 Robert Millan <rmh.grub@aybabtu.com>
6182
6183 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
6184 initialization with similar approach as with other Linux loaders.
6185
0e60bae7
RM
61862010-01-10 Robert Millan <rmh.grub@aybabtu.com>
6187
6188 Fix i386-ieee1275 build.
6189
6190 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
6191 and grub_term_height() for video_{width,height} initialization.
6192
61932010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
6194
6195 Fix grub-emu build.
6196
6197 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
6198
cdb3f378
RM
61992010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
62002010-01-09 Robert Millan <rmh.grub@aybabtu.com>
6201
6202 Support for multiple terminals.
6203
6204 * Makefile.in (pkglib_DATA): terminal.lst.
6205 (terminal.lst): New target.
6206 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
6207 (GRUB_MOD_INIT(handler)): Likewise.
6208 (GRUB_MOD_FINI(handler)): Likewise.
6209 * commands/help.c (grub_cmd_help): Handle multiple terminals.
6210 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
6211 * commands/sleep.c (do_print): Use grub_term_restore_pos.
6212 (grub_cmd_sleep): Use grub_term_save_pos.
6213 * commands/terminal.c: New file.
6214 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
6215 commands/terminal.c and lib/charset.c.
6216 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
6217 (pkglib_MODULES): Add terminal.mod.
6218 (terminal_mod_SOURCES): New variable.
6219 (terminal_mod_CFLAGS): Likewise.
6220 (terminal_mod_LDFLAGS): Likewise.
6221 * genhandlerlist.sh: Don't handle terminals.
6222 * genmk.rb: Generate terminal-*.lst.
6223 * genterminallist.sh: New file.
6224 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
6225 (grub_is_valid_utf8): Likewise.
6226 (grub_utf8_to_ucs4_alloc): Likewise.
6227 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
6228 (grub_menu_register_viewer): Changed argument.
6229 (grub_menu_try_text): New proto.
6230 (grub_gfxmenu_try_hook): New declaration.
6231 * include/grub/normal.h (grub_normal_exit_level): New declaration.
6232 (grub_menu_init_page): Additional argument term.
6233 (grub_normal_init_page): Likewise.
6234 (grub_cmdline_get): Arguments simplified.
6235 (grub_utf8_to_ucs4_alloc): Removed.
6236 (grub_print_ucs4): Additional argument term.
6237 (grub_getstringwidth): Likewise.
6238 (grub_print_message_indented): Likewise.
6239 (grub_menu_text_register_instances): New proto.
6240 (grub_show_menu): Likewise.
6241 (read_terminal_list): Likewise.
6242 (grub_set_more): Likewise.
6243 * include/grub/parser.h: Include handler.h.
6244 * include/grub/reader.h: Rewritten.
6245 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
6246 (GRUB_TERM_WIDTH): Changed to function.
6247 (GRUB_TERM_HEIGHT): Likewise.
6248 (GRUB_TERM_BORDER_WIDTH): Likewise.
6249 (GRUB_TERM_BORDER_HEIGHT): Likewise.
6250 (GRUB_TERM_NUM_ENTRIES): Likewise.
6251 (GRUB_TERM_ENTRY_WIDTH): Likewise.
6252 (GRUB_TERM_CURSOR_X): Likewise.
6253 (grub_term_input_class): Likewise.
6254 (grub_term_output_class): Likewise.
6255 (grub_term_outputs_disabled): New declaration.
6256 (grub_term_inputs_disabled): Likewise.
6257 (grub_term_outputs): Likewise.
6258 (grub_term_inputs): Likewise.
6259 (grub_term_register_input): Rewritten.
6260 (grub_term_register_output): Likewise.
6261 (grub_term_unregister_input): Likewise.
6262 (grub_term_unregister_output): Likewise.
6263 (FOR_ACTIVE_TERM_INPUTS): New macro.
6264 (FOR_DISABLED_TERM_INPUTS): Likewise.
6265 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
6266 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
6267 * include/grub/terminfo.h: Add oterm argument to all protypes.
6268 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
6269 Use grub_rescue_run.
6270 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
6271 All users updated.
6272 * kern/reader.c: Removed. All users updated.
6273 * kern/rescue_reader.c (grub_rescue_init): Removed.
6274 (grub_rescue_reader): Likewise.
6275 (grub_register_rescue_reader): Likewise.
6276 (grub_rescue_run): New function based on kern/reader.c.
6277 * kern/term.c: Adapted for multiterm.
6278 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
6279 (grub_is_valid_utf8): Likewise.
6280 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
6281 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
6282 right terminal.
6283 * loader/i386/linux.c (grub_linux_boot): Likewise.
6284 * normal/auth.c (grub_username_get): New function.
6285 (grub_auth_check_authentication): Use grub_username_get.
6286 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
6287 * normal/color.c: Adapt for multiterm.
6288 * normal/main.c (read_config_file): Don't use grub_reader_loop.
6289 (grub_normal_init_page): Additional argument term.
6290 (read_lists): Call read_terminal_lists.
6291 (grub_enter_normal_mode): Call grub_cmdline_run.
6292 Handle grub_normal_exit_level.
6293 (grub_cmd_normal): Make reentrant.
6294 (grub_cmd_normal_exit): New function.
6295 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
6296 * normal/menu.c: Adapt for multiterm.
6297 * normal/menu_entry.c: Likewise.
6298 * normal/menu_text.c: Likewise.
6299 * normal/menu_viewer.c: Removed. All users updated.
6300 * normal/term.c: New file.
6301 * util/console.c: Change order of includes to workaround a bug in
6302 ncurses headers.
6303 * term/terminfo.c: New argument oterm on all exported functions.
6304 All users updated.
6305 * util/grub-editenv.c (grub_term_input_class): Removed.
6306 (grub_term_output_class): Likewise.
6307
1a064917
RM
63082010-01-09 Robert Millan <rmh.grub@aybabtu.com>
6309
6310 Make loader output a bit more user-friendly.
6311
6312 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
6313 is being loaded. Likewise for the Hurd.
6314
6315 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
6316 that kernel of FreeBSD ${version} is being loaded.
6317
6318 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
6319 grub_dprintf().
6320 (grub_cmd_initrd): Likewise.
6321 * util/grub.d/10_linux.in (linux_entry): Print message indicating
6322 that Linux ${version} is being loaded. Likewise for initrd.
6323
5ce0a83a 63242010-01-09 Carles Pina i Estany <carles@pina.cat>
6325
6326 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
6327
809bbfeb 63282010-01-08 Carles Pina i Estany <carles@pina.cat>
6329
6330 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
6331 (GRUB_MOD_INIT): Gettextizze.
6332 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
6333 (GRUB_MOD_INIT): Gettextizze.
6334 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
6335 (grub_cmd_linux): Capitalise Linux.
6336 (GRUB_MOD_INIT): Gettextizze.
6337 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
6338 (grub_cmd_linux): Capitalise Linux.
6339 (GRUB_MOD_INIT): Gettextizze.
6340 * loader/i386/linux.c: Include `<grub/i18n.h>'.
6341 (grub_cmd_linux): Capitalise Linux.
6342 (GRUB_MOD_INIT): Gettextizze.
6343 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
6344 (GRUB_MOD_INIT): Gettextizze.
6345 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
6346 (grub_cmd_linux): Capitalise Linux.
6347 (GRUB_MOD_INIT): Gettextizze.
6348 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
6349 (grub_cpu_xnu_init): Gettextizze.
6350 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
6351 (GRUB_MOD_INIT): Gettextizze.
6352 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
6353 (GRUB_MOD_INIT): Gettextizze.
6354 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
6355 (grub_linux_load64): Capitalise Linux.
6356 (GRUB_MOD_INIT): Gettextizze.
6357 * loader/xnu.c: Include `<grub/i18n.h>'.
6358 (GRUB_MOD_INIT): Gettextizze.
6359 * po/POTFILES: Add `loader/efi/appleloader.c',
6360 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
6361 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
6362 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
6363 `loader/i386/xnu.c', `loader/multiboot_loader.c',
6364 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
6365 and `loader/xnu.c'.
6366
b394b2ca
RM
63672010-01-08 Robert Millan <rmh.grub@aybabtu.com>
6368
6369 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
6370
63712010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
6372
6373 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
6374 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
6375 * util/mkisofs/mkisofs.c (main): Readjust --version output.
6376
bc8b32b3
RM
63772010-01-07 Robert Millan <rmh.grub@aybabtu.com>
6378
6379 Reset Multiboot 2 support. New loader implements the draft in
6380 /branches/multiboot2 and shares as much code as possible with the
6381 production Multiboot 1 implementation.
6382
6383 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
6384 * loader/multiboot2.c: Likewise.
6385 * loader/i386/multiboot_helper.S: Likewise.
6386 * include/multiboot2.h: Replace with latest version from the draft
6387 in /branches/multiboot2.
6388
6389 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
6390 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
6391 and `loader/multiboot2.c'.
6392 (pkglib_MODULES): Add `multiboot2.mod'.
6393 (multiboot2_mod_SOURCES): New variable.
6394 (multiboot2_mod_LDFLAGS): Likewise.
6395 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
6396
6397 * conf/i386-pc.rmk: Likewise.
6398
6399 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
6400 (multiboot_mod_SOURCES): Remove variable.
6401 (multiboot_mod_LDFLAGS): Likewise.
6402 (multiboot_mod_CFLAGS): Likewise.
6403
6404 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
6405 `<multiboot2.h>' instead of `<multiboot.h>'.
6406 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
6407 (MULTIBOOT_HEADER_MAGIC): New macros.
6408
6409 * loader/multiboot_loader.c (module_version_status): Remove variable.
6410 (find_multi_boot2_header): Remove function.
6411 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
6412 logic. Always check for the Multiboot version we're compiling for.
6413 (grub_cmd_module_loader): Likewise.
6414 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
6415 command instead of `multiboot'.
6416
5d2c52b8
RM
64172010-01-07 Robert Millan <rmh.grub@aybabtu.com>
6418
6419 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
6420 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
6421 all users.
6422
53108d92
RM
64232010-01-07 Robert Millan <rmh.grub@aybabtu.com>
64242010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6425
6426 Fix breakage introduced with previous commit.
6427
6428 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
6429 commands.
6430 * normal/handler.c (read_handler_list): Revert part of previous commit
6431 affecting this file.
6432 * normal/main.c (read_lists): Move read_handler_list() call back to ...
6433 (grub_normal_execute): ... here.
6434
e2e936b2
RM
64352010-01-07 Robert Millan <rmh.grub@aybabtu.com>
6436
6437 Merge prefix-redefinition-fix branch.
6438
6439 * normal/autofs.c (read_fs_list): Make function capable of being
6440 run multiple times, gracefuly replacing the previous data
6441 structures.
6442 * normal/dyncmd.c (read_command_list): Likewise.
6443 * normal/handler.c (read_handler_list): Likewise.
6444 * normal/main.c (read_lists): New function. Calls all the
6445 list reading functions.
6446 (grub_normal_execute): Use read_lists() instead of calling all
6447 list reading functions explicitly. Register read_lists() as a
6448 variable hook attached to ${prefix}.
6449
607a3701
VS
64502010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
6451
6452 Merge crypto branch.
6453
6454 * Makefile.in (pkglib_DATA): Add crypto.lst.
6455 (crypto.lst): New target.
6456 * commands/hashsum.c: New file.
6457 * commands/password.c (check_password): Use grub_crypto_memcmp.
6458 * commands/password_pbkdf2.c: New file.
6459 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
6460 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
6461 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
6462 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
6463 -I$(srcdir)/lib/libgcrypt_wrap.
6464 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
6465 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
6466 password_pbkdf2.mod.
6467 (crypto_mod_SOURCES): New variable.
6468 (crypto_mod_CFLAGS): Likewise.
6469 (crypto_mod_LDFLAGS): Likewise.
6470 (hashsum_mod_SOURCES): New variable.
6471 (hashsum_mod_CFLAGS): Likewise.
6472 (hashsum_mod_LDFLAGS): Likewise.
6473 (pbkdf2_mod_SOURCES): New variable.
6474 (pbkdf2_mod_CFLAGS): Likewise.
6475 (pbkdf2_mod_LDFLAGS): Likewise.
6476 (password_pbkdf2_mod_SOURCES): New variable.
6477 (password_pbkdf2_mod_CFLAGS): Likewise.
6478 (password_pbkdf2_mod_LDFLAGS): Likewise.
6479 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
6480 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
6481 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
6482 Include conf/gcry.rmk.
6483 * include/grub/auth.h: Rewritten.
6484 * include/grub/crypto.h: New file.
6485 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
6486 * include/grub/normal.h (read_crypto_list): New prototype.
6487 * lib/crypto.c: New file.
6488 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
6489 * lib/pbkdf2.c: Likewise.
6490 * normal/auth.c (grub_auth_strcmp): Removed.
6491 (grub_iswordseparator): Likewise.
6492 (grub_auth_strword): Likewise.
6493 (is_authenticated): Use grub_strword.
6494 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
6495 and grub_strword. Pass entered password to authentication callback.
6496 * normal/crypto.c: New file.
6497 * normal/main.c: Call read_crypto_list.
6498 * util/grub-mkpasswd-pbkdf2.c: New file.
6499 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
6500
42841caa
VS
65012010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 Fix descent and ascent calculation.
6504
6505 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
6506 (options): New option "asce".
6507 (usage): Likewise.
6508 (add_char): Ignore invalid glyphs for descent calculation.
6509 Calculate ascent from actual content.
6510 (print_glyphs): Use 'asce'.
6511 (write_font): Likewise. Allow ascent override.
6512 (main): Handle "asce" option.
6513
e7730de7 65142010-01-06 Carles Pina i Estany <carles@pina.cat>
6515
6516 * kern/err.c: Include `<grub/i18n.h>'.
6517 (grub_print_error): Add full stop. Gettextizze.
6518 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
6519 (grub_bsd_load_elf): Capitalise ELF.
6520 (grub_cmd_freebsd_loadenv): Add `s' in error string.
6521 (grub_cmd_freebsd_module): Likewise.
6522 (grub_cmd_freebsd_module_elf): Likewise.
6523 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
6524
40e3a41f 65252010-01-06 Carles Pina i Estany <carles@pina.cat>
6526
6527 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
6528 * commands/search_file.c (HELP_MESSAGE): New macro.
6529 * commands/search_label.c (HELP_MESSAGE): Likewise.
6530 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
6531 * po/POTFILES: Add `commands/search_file.c',
6532 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
6533 `commands/search.c'.
6534
83507e68
RM
65352010-01-05 Robert Millan <rmh.grub@aybabtu.com>
6536
6537 * config.rpath: Update from Gnulib.
6538
465c787b
YB
65392010-01-05 Yves Blusseau <blusseau@zetam.org>
6540
6541 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
6542
6581dd3a
YB
65432010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
6544
6545 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
6546
3bff18c5
CW
65472010-01-05 Colin Watson <cjwatson@ubuntu.com>
6548
6549 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
6550 arguments to fread so that we get a return value in bytes, rather
6551 than something that will normally be rounded down to 0.
6552 Adjust error handling to avoid producing garbage when size_t is not
6553 the same size as long long.
6554
a1368118
CW
65552010-01-05 Colin Watson <cjwatson@ubuntu.com>
6556
6557 * util/mkisofs/write.c (padblock_write): Check return value of
6558 fread.
6559
7c302978
RM
65602010-01-05 Robert Millan <rmh.grub@aybabtu.com>
6561
6562 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
6563 floppy images now.
6564
6565 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
6566
e33ace06
RM
65672010-01-04 Robert Millan <rmh.grub@aybabtu.com>
6568
6569 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
6570 instead of manual alignment.
6571 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
6572 verbose). Avoid attempts to read past end of the device
6573 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
6574 but GRUB_DISK_CACHE_SIZE may exceed that).
6575
4b856776
RM
65762010-01-04 Robert Millan <rmh.grub@aybabtu.com>
6577
6578 * commands/crc.c (grub_cmd_crc): Abort on read errors.
6579 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
6580 it to upper layer.
6581
52c2d97f
VS
65822010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
6585 New constant.
6586 (grub_efi_piwg_device_path): New structure
6587 (grub_efi_piwg_device_path_t): New type.
6588 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
6589 (devpath_1): Transform to a structure. All users updated.
6590 (devpath_2): Likewise.
6591 (devpath_3): Likewise.
6592 (devpath_4): Likewise.
6593 (devpath_5): Likewise.
6594
98ff6a54
VS
65952010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 * loader/efi/appleloader.c: Restored. Update all users.
6598
3a73dcb6
RM
65992010-01-03 Robert Millan <rmh.grub@aybabtu.com>
6600
6601 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
6602
6603 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
6604 (struct boot_blocklist): Move from here ...
6605 * include/grub/i386/pc/boot.h [ASM_FILE]
6606 (struct grub_boot_blocklist): ... to here. Update all users.
6607 (setup): Only initialize `start' member of `first_block'
6608 structure. Add assert() calls to verify the other members.
6609
6610 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
6611 (generate_image): Fix broken blocklist length initialization.
6612 Add assert() call to verify blocklist `segment' field.
6613
ab0eeb0c
RM
66142010-01-03 Robert Millan <rmh.grub@aybabtu.com>
6615
6616 * loader/efi/appleloader.c: Remove. Update all users.
6617
58bc8bd5
RM
66182010-01-03 Robert Millan <rmh.grub@aybabtu.com>
6619
6620 * boot/i386/pc/boot.S: Update copyright year.
6621 * boot/i386/pc/cdboot.S: Likewise.
6622 * boot/i386/pc/diskboot.S: Likewise.
6623 * boot/i386/pc/lnxboot.S: Likewise.
6624 * boot/i386/pc/pxeboot.S: Likewise.
6625 * bus/pci.c: Likewise.
6626 * commands/cmp.c: Likewise.
6627 * commands/help.c: Likewise.
6628 * commands/hexdump.c: Likewise.
6629 * commands/i386/pc/halt.c: Likewise.
6630 * commands/i386/pc/play.c: Likewise.
6631 * commands/i386/pc/vbeinfo.c: Likewise.
6632 * commands/ls.c: Likewise.
6633 * commands/test.c: Likewise.
6634 * disk/dmraid_nvidia.c: Likewise.
6635 * disk/i386/pc/biosdisk.c: Likewise.
6636 * disk/ieee1275/nand.c: Likewise.
6637 * disk/ieee1275/ofdisk.c: Likewise.
6638 * disk/lvm.c: Likewise.
6639 * disk/raid.c: Likewise.
6640 * disk/raid6_recover.c: Likewise.
6641 * disk/scsi.c: Likewise.
6642 * fs/affs.c: Likewise.
6643 * fs/cpio.c: Likewise.
6644 * fs/ext2.c: Likewise.
6645 * fs/hfs.c: Likewise.
6646 * fs/iso9660.c: Likewise.
6647 * fs/ntfs.c: Likewise.
6648 * fs/sfs.c: Likewise.
6649 * fs/udf.c: Likewise.
6650 * fs/ufs.c: Likewise.
6651 * fs/xfs.c: Likewise.
6652 * gencmdlist.sh: Likewise.
6653 * genmk.rb: Likewise.
6654 * include/grub/disk.h: Likewise.
6655 * include/grub/efi/api.h: Likewise.
6656 * include/grub/efi/efi.h: Likewise.
6657 * include/grub/efi/pe32.h: Likewise.
6658 * include/grub/elf.h: Likewise.
6659 * include/grub/fs.h: Likewise.
6660 * include/grub/i386/at_keyboard.h: Likewise.
6661 * include/grub/i386/pc/memory.h: Likewise.
6662 * include/grub/i386/pc/vbe.h: Likewise.
6663 * include/grub/i386/pci.h: Likewise.
6664 * include/grub/i386/tsc.h: Likewise.
6665 * include/grub/ieee1275/ieee1275.h: Likewise.
6666 * include/grub/ntfs.h: Likewise.
6667 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
6668 * include/grub/sparc64/libgcc.h: Likewise.
6669 * include/grub/symbol.h: Likewise.
6670 * include/grub/types.h: Likewise.
6671 * include/multiboot2.h: Likewise.
6672 * io/gzio.c: Likewise.
6673 * kern/device.c: Likewise.
6674 * kern/disk.c: Likewise.
6675 * kern/efi/efi.c: Likewise.
6676 * kern/efi/mm.c: Likewise.
6677 * kern/elf.c: Likewise.
6678 * kern/file.c: Likewise.
6679 * kern/i386/dl.c: Likewise.
6680 * kern/i386/pc/init.c: Likewise.
6681 * kern/i386/pc/startup.S: Likewise.
6682 * kern/ieee1275/ieee1275.c: Likewise.
6683 * kern/ieee1275/init.c: Likewise.
6684 * kern/main.c: Likewise.
6685 * kern/mm.c: Likewise.
6686 * kern/powerpc/dl.c: Likewise.
6687 * kern/sparc64/dl.c: Likewise.
6688 * kern/x86_64/dl.c: Likewise.
6689 * lib/hexdump.c: Likewise.
6690 * loader/efi/appleloader.c: Likewise.
6691 * loader/i386/ieee1275/linux.c: Likewise.
6692 * loader/i386/pc/chainloader.c: Likewise.
6693 * loader/i386/pc/linux.c: Likewise.
6694 * loader/i386/pc/multiboot2.c: Likewise.
6695 * loader/ieee1275/multiboot2.c: Likewise.
6696 * loader/multiboot2.c: Likewise.
6697 * loader/multiboot_loader.c: Likewise.
6698 * loader/powerpc/ieee1275/linux.c: Likewise.
6699 * normal/completion.c: Likewise.
6700 * normal/menu_entry.c: Likewise.
6701 * partmap/apple.c: Likewise.
6702 * util/grub.d/10_hurd.in: Likewise.
6703 * util/hostfs.c: Likewise.
6704 * video/readers/png.c: Likewise.
6705
e2d70b5c
CW
67062010-01-03 Colin Watson <cjwatson@ubuntu.com>
6707
6708 * include/grub/misc.h (GNUC_PREREQ): New macro.
6709 (ATTRIBUTE_ERROR): New macro.
6710 * include/grub/list.h (grub_bad_type_cast_real): Use
6711 ATTRIBUTE_ERROR.
6712
a173283f 67132010-01-03 Carles Pina i Estany <carles@pina.cat>
6714
6715 * normal/menu_text.c (print_message): Change messages.
6716
7fa7ff74 67172010-01-03 Carles Pina i Estany <carles@pina.cat>
6718
6719 * normal/menu_entry.c (store_completion): Gettextizze.
6720
136d24f6 67212010-01-03 Carles Pina i Estany <carles@pina.cat>
6722
6723 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
6724
f936862e 67252010-01-03 Carles Pina i Estany <carles@pina.cat>
6726
6727 * po/POTFILES: Sort correctly.
6728
29c44ad1 67292010-01-03 Carles Pina i Estany <carles@pina.cat>
6730
6731 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
6732 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
6733 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
6734 full stop.
6735 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
6736 summary. Gettextizze the strings.
6737 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
6738 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
6739 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
6740 full stop.
6741 (GRUB_MOD_INIT): Remove command name from summary.
6742 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
6743 summary.
6744 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
6745 * term/i386/pc/serial.c (options): Add full stops.
6746 (GRUB_MOD_INIT): Remove command name from the summary.
6747
77a79592 67482010-01-03 Carles Pina i Estany <carles@pina.cat>
6749
6750 * commands/acpi.c: Gettextizze help strings and/or options. Include
6751 `grub/i18n.h' if needed.
6752 * commands/blocklist.c: Likewise.
6753 * commands/boot.c: Likewise.
6754 * commands/cat.c: Likewise.
6755 * commands/cmp.c: Likewise.
6756 * commands/configfile.c: Likewise.
6757 * commands/crc.c: Likewise.
6758 * commands/date.c: Likewise.
6759 * commands/echo.c: Likewise.
6760 * commands/efi/fixvideo.c: Likewise.
6761 * commands/efi/loadbios.c: Likewise.
6762 * commands/gptsync.c: Likewise.
6763 * commands/halt.c: Likewise.
6764 * commands/handler.c: Likewise.
6765 * commands/hdparm.c: Likewise.
6766 * commands/hexdump.c: Likewise.
6767 * commands/i386/cpuid.c: Likewise.
6768 * commands/i386/pc/drivemap.c: Likewise.
6769 * commands/i386/pc/halt.c: Likewise.
6770 * commands/i386/pc/pxecmd.c: Likewise.
6771 * commands/i386/pc/vbeinfo.c: Likewise.
6772 * commands/i386/pc/vbetest.c: Likewise.
6773 * commands/ieee1275/suspend.c: Likewise.
6774 * commands/keystatus.c: Likewise.
6775 * commands/loadenv.c: Likewise.
6776 * commands/ls.c: Likewise.
6777 * commands/lsmmap.c: Likewise.
6778 * commands/lspci.c: Likewise.
6779 * commands/memrw.c: Likewise.
6780 * commands/minicmd.c: Likewise.
6781 * commands/parttool.c: Likewise.
6782 * commands/password.c: Likewise.
6783 * commands/probe.c: Likewise.
6784 * commands/read.c: Likewise.
6785 * commands/reboot.c: Likewise.
6786 * commands/search.c: Likewise.
6787 * commands/sleep.c: Likewise.
6788 * commands/test.c: Likewise.
6789 * commands/true.c: Likewise.
6790 * commands/usbtest.c: Likewise.
6791 * commands/videotest.c: Likewise.
6792 * commands/xnu_uuid.c: Likewise.
6793 * disk/loopback.c: Likewise.
6794 * hello/hello.c: Likewise.
6795 * loader/i386/bsd.c: Likewise.
6796 * term/i386/pc/serial.c: Likewise.
6797 * po/POTFILES: Add new files.
6798
da8d5c53
CW
67992010-01-02 Colin Watson <cjwatson@ubuntu.com>
6800
6801 * term/i386/pc/at_keyboard.c
6802 (keyboard_controller_wait_untill_ready): Rename to ...
6803 (keyboard_controller_wait_until_ready): ... this. Update all users.
6804
33937904 68052010-01-01 Carles Pina i Estany <carles@pina.cat>
6806
6807 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
6808 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
6809 string using string width.
6810 * normal/menu_text.c (grub_print_message_indented): Use
6811 grub_print_spaces and not print_spaces.
6812 (print_timeout): Likewise.
6813 (print_spaces): Move to...
6814 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
6815
3fd3b8d8
RM
68162010-01-01 Robert Millan <rmh.grub@aybabtu.com>
6817
6818 Import from Gnulib.
6819
6820 * gnulib/getdelim.c: New file.
6821 * gnulib/getline.c: Likewise.
6822
33433555
VS
68232009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
6824
6825 * include/grub/list.h (grub_assert_fail): Removed.
6826 (grub_bad_type_cast_real): New function.
6827 (grub_bad_type_cast): New macro.
6828 (GRUB_AS_LIST): Use grub_bad_type_cast.
6829 (GRUB_AS_LIST_P): Likewise.
e44721e8 6830 (GRUB_AS_NAMED_LIST): Likewise.
33433555 6831 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 6832 (GRUB_AS_PRIO_LIST): Likewise.
33433555 6833 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 6834 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 6835
f5a51306
VS
68362009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
6837
6838 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
6839 Fix syntax error.
6840
90d1e879
RM
68412009-12-29 Robert Millan <rmh.grub@aybabtu.com>
6842
6843 * configure.ac: Check for TARGET_CFLAGS initialization before we
6844 initialize it ourselves (sigh).
6845 Move a few modifications to TARGET_CFLAGS to be unconditional
6846 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
6847 eh_frame)
6848
6849 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
6850 * term/i386/pc/at_keyboard.c
6851 (keyboard_controller_wait_untill_ready): Likewise.
6852 (keyboard_controller_led): Rename `led_status' paramter to avoid
6853 name conflict.
6854
465b5a81 68552009-12-28 Carles Pina i Estany <carles@pina.cat>
6856
6857 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
6858 quotes.
6859
c181849b
VS
68602009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6861
6862 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
6863
9c8739a4
VS
68642009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6865
6866 * normal/menu_text.c (grub_print_message_indented): Prevent
6867 past-the-end-of-array dereference.
6868
3e74249c
VS
68692009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6870
6871 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
6872 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
6873
64fd18ed 68742009-12-27 Carles Pina i Estany <carles@pina.cat>
6875
6876 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
6877 * normal/main.c (grub_normal_read_line): Remove a space from the
6878 default prompt.
6879
714af9b9 68802009-12-27 Carles Pina i Estany <carles@pina.cat>
6881
6882 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
6883 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6884 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6885 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6886 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6887 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6888 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6889
82f3e412 68902009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 6891
6892 * video/readers/jpeg.c (cmd): Declare.
6893 (grub_cmd_jpegtest): Use `grub_command_t' type.
6894 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6895 Assign to `cmd'.
6896 (GRUB_MOD_FINI): Use `cmd' to unregister.
6897 * video/readers/png.c (cmd): Declare.
6898 (grub_cmd_pngtest): Use `grub_command_t' type.
6899 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6900 Assign to `cmd'.
6901 (GRUB_MOD_FINI): Use `cmd' to unregister.
6902 * video/readers/tga.c (cmd): Declare.
6903 (grub_cmd_tgatest): Use `grub_command_t' type.
6904 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6905 Assign to `cmd'.
6906 (GRUB_MOD_FINI): Use `cmd' to unregister.
6907
82f3e412 69082009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 6909
6910 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
6911 stops.
6912 * kern/corecmd.c (grub_register_core_commands): Likewise.
6913 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
6914 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6915 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
6916 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6917 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6918 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
6919 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6920 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
6921 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6922 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6923 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6924 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6925 * normal/handler.c (insert_handler): Likewise.
6926 * normal/main.c (GRUB_MOD_INIT): Likewise.
6927 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6928
fdcdbb66 69292009-12-26 Carles Pina i Estany <carles@pina.cat>
6930
6931 * commands/help.c (grub_cmd_help): Print the command name before the
6932 summary.
6933 (GRUB_MOD_INIT): Remove command name from the summary.
6934 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 6935 string as summary.
fdcdbb66 6936 * lib/arg.c (find_long): Print the command name before the summary.
6937 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
6938 summary.
6939 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
6940 * commands/cat.c (GRUB_MOD_INIT): Likewise.
6941 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
6942 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
6943 * commands/crc.c (GRUB_MOD_INIT): Likewise.
6944 * commands/date.c (GRUB_MOD_INIT): Likewise.
6945 * commands/echo.c (GRUB_MOD_INIT): Likewise.
6946 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
6947 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6948 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6949 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
6950 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
6951 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
6952 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
6953 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6954 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
6955 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
6956 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
6957 * commands/ls.c (GRUB_MOD_INIT): Likewise.
6958 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6959 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6960 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6961 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
6962 * commands/password.c (GRUB_MOD_INIT): Likewise.
6963 * commands/probe.c (GRUB_MOD_INIT): Likewise.
6964 * commands/read.c (GRUB_MOD_INIT): Likewise.
6965 * commands/search.c (GRUB_MOD_INIT): Likewise.
6966 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
6967 * commands/test.c (GRUB_MOD_INIT): Likewise.
6968 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
6969 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6970 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6971 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
6972 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6973 * lib/arg.c (GRUB_MOD_INIT): Likewise.
6974 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
6975 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6976 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6977 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6978 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6979 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
6980 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
6981 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
6982
9c288be2
VS
69832009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 Use search command for preliminar UUID search.
6986
6987 * commands/search.c: Split into ...
6988 * commands/search_wrap.c: ...this
6989 * commands/search.c: ...and this.
6990 * commands/search_file.c: New file.
6991 * commands/search_label.c: New file.
6992 * commands/search_uuid.c: New file.
6993 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
6994 Add commands/search_wrap.c, commands/search_file.c,
6995 commands/search_label.c and commands/search_uuid.c.
6996 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
6997 (search_mod_SOURCES): Set to commands/search_wrap.c.
6998 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
6999 search_label.mod.
7000 (search_fs_file_mod_SOURCES): New variable.
7001 (search_fs_file_mod_CFLAGS): Likewise.
7002 (search_fs_file_mod_LDFLAGS): Likewise.
7003 (search_label_mod_SOURCES): Likewise.
7004 (search_label_mod_CFLAGS): Likewise.
7005 (search_label_mod_LDFLAGS): Likewise.
7006 (search_fs_uuid_mod_SOURCES): New variable.
7007 (search_fs_uuid_mod_CFLAGS): Likewise.
7008 (search_fs_uuid_mod_LDFLAGS): Likewise.
7009 (fs_file_mod_SOURCES): Removed.
7010 (fs_file_mod_CFLAGS): Likewise.
7011 (fs_file_mod_LDFLAGS): Likewise.
7012 (fs_uuid_mod_SOURCES): Removed.
7013 (fs_uuid_mod_CFLAGS): Likewise.
7014 (fs_uuid_mod_LDFLAGS): Likewise.
7015 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
7016 Set to util/grub-install.in.
7017 * disk/fs_file.c: Removed.
7018 * disk/fs_uuid.c: Likewise.
7019 * include/grub/search.h: New file.
7020 * util/grub-install.in: Handle sparc64.
7021 Create and use load.cfg.
7022 * util/sparc64/ieee1275/grub-install.in: Removed.
7023
db943399
VS
70242009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
7027 Ignore return status if CF is cleared.
7028 (grub_biosdisk_get_diskinfo_standard): Likewise.
7029
3fdae612
RM
70302009-12-25 Robert Millan <rmh.grub@aybabtu.com>
7031
7032 * term/i386/pc/at_keyboard.c
7033 (keyboard_controller_wait_untill_ready): New function.
7034 (grub_keyboard_controller_write, grub_keyboard_controller_read)
7035 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
7036 for keyboard polling, rather than duplicate the same loop. This
7037 saves a few bytes in code size.
7038
7ebaa2b4
VS
70392009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7040
7041 Support for (pxe[:server[:gateway]]) syntax and
7042 use environment variable for PXE.
7043
7044 * commands/i386/pc/pxecmd.c (options): Removed.
7045 (print_ip): Removed.
7046 (grub_cmd_pxe): Removed
7047 (grub_cmd_pxe_unload): New function.
7048 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
7049 (grub_pxe_your_ip): Made static.
7050 (grub_pxe_default_server_ip): Likewise.
7051 (grub_pxe_default_gateway_ip): Likewise.
7052 (grub_pxe_blksize): Likewise.
7053 (parse_ip): New function.
7054 (grub_pxe_open): Support server and gateway specification.
7055 (grub_pxe_close): Free disk->data.
7056 (grub_pxefs_open): Use disk->data.
7057 (grub_pxefs_read): Likewise.
7058 (grub_env_write_readonly): New function.
7059 (set_mac_env): Likewise.
7060 (set_env_limn_ro): Likewise.
7061 (parse_dhcp_vendor): Likewise.
7062 (grub_pxe_detect): Set the environment variables.
7063 (set_ip_env): New function.
7064 (write_ip_env): Likewise.
7065 (grub_env_write_pxe_default_server): Likewise.
7066 (grub_env_write_pxe_default_gateway): Likewise.
7067 (grub_env_write_pxe_blocksize): Likewise.
7068 (GRUB_MOD_INIT(pxe)): Set environment variables.
7069 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
7070 (grub_pxe_mac_addr_t): ... this. All users updated.
7071 (grub_pxe_your_ip): Removed.
7072 (grub_pxe_server_ip): Likewise.
7073 (grub_pxe_gateway_ip): Likewise.
7074 (grub_pxe_blksize): Likewise.
7075
ec5f98ab 70762009-12-25 Carles Pina i Estany <carles@pina.cat>
7077
7078 * commands/help.c: Include `<grub/i18n.h>'.
7079 (grub_cmd_help): Gettextizze.
7080 (GRUB_MOD_INIT): Likewise.
7081 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
7082 (GRUB_MOD_INIT): Gettextizze.
7083 * commands/search.c: Include `<grub/i18n.h>'.
7084 (options): Gettextizze.
7085 (GRUB_MOD_INIT): Gettextizze.
7086 * lib/arg.c: Include `<grub/i18n.h>'.
7087 (help_options): Gettextizze.
7088 (find_long): Likewise.
7089 (grub_arg_show_help): Likewise.
7090 * normal/dyncmd.c: Include `<grub/i18n.h>'.
7091 (read_command_list): Gettextizze.
7092 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 7093 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 7094
22815526
RM
70952009-12-25 Robert Millan <rmh.grub@aybabtu.com>
7096
7097 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
7098 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
7099 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
7100 (led_status): New variable.
7101 (keyboard_controller_led): New function.
7102 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
7103 update led status for caps lock, num lock and scroll lock.
7104
0ad46fd7
FZ
71052009-12-25 Felix Zielcke <fzielcke@z-51.de>
7106
7107 * util/hostdisk.c (open_device): Fix a comment.
7108
d0e158c2
RM
71092009-12-24 Robert Millan <rmh.grub@aybabtu.com>
7110
7111 * util/grub-install.in (host_os): New variable.
7112 * util/i386/efi/grub-install.in (host_os): Likewise.
7113
401c0ad6
RM
71142009-12-24 Robert Millan <rmh.grub@aybabtu.com>
7115
7116 * util/mkisofs/write.c (padblock_write): Abort when given an
7117 excedingly large embed image, instead of silently truncating it.
7118
d14d3370
RM
71192009-12-24 Robert Millan <rmh.grub@aybabtu.com>
7120
7121 * include/multiboot.h: Indentation fixes.
7122
eeed10b4
RM
71232009-12-24 Robert Millan <rmh.grub@aybabtu.com>
7124
7125 * include/multiboot.h (struct multiboot_aout_symbol_table)
7126 (struct multiboot_elf_section_header_table): New structure
7127 declarations (stolen from GRUB Legacy).
7128 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
7129 table information.
7130
7131 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
7132 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
7133 type aliases.
7134
681c70ab
RM
71352009-12-24 Robert Millan <rmh.grub@aybabtu.com>
7136
7137 * include/multiboot.h: Make comments src2texi-friendly.
7138
e4d47d8d
RM
71392009-12-24 Robert Millan <rmh.grub@aybabtu.com>
7140
7141 For consistency with [multiboot]/docs/boot.S.
7142
7143 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
7144 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
7145 (MULTIBOOT_MAGIC2): Rename from this ...
7146 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
7147
a0b70bda
RM
71482009-12-24 Robert Millan <rmh.grub@aybabtu.com>
7149
7150 * include/multiboot.h: Remove `<grub/types.h>'.
7151 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
7152 types. Update all users.
7153
61ba42be 71542009-12-25 Carles Pina i Estany <carles@pina.cat>
7155
7156 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
7157 `couldn't' and `can not' by `cannot'.
7158 * commands/i386/pc/drivemap.c: Likewise.
7159 * disk/ata.c: Likewise.
7160 * disk/ieee1275/nand.c: Likewise.
7161 * fs/affs.c: Likewise.
7162 * fs/fat.c: Likewise.
7163 * fs/hfs.c: Likewise.
7164 * fs/hfsplus.c: Likewise.
7165 * fs/iso9660.c: Likewise.
7166 * fs/jfs.c: Likewise.
7167 * fs/minix.c: Likewise.
7168 * fs/reiserfs.c: Likewise.
7169 * fs/sfs.c: Likewise.
7170 * fs/udf.c: Likewise.
7171 * fs/ufs.c: Likewise.
7172 * fs/xfs.c: Likewise.
7173 * loader/powerpc/ieee1275/linux.c: Likewise.
7174 * loader/sparc64/ieee1275/linux.c: Likewise.
7175 * util/grub-probe.c: Likewise.
7176 * util/misc.c: Likewise.
7177
7fd0baee 71782009-12-24 Carles Pina i Estany <carles@pina.cat>
7179
7180 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
7181 grub_errno calls.
7182 * commands/acpi.c: Likewise.
7183 * commands/blocklist.c: Likewise.
7184 * commands/efi/loadbios.c: Likewise.
7185 * commands/i386/pc/drivemap.c: Likewise.
7186 * commands/loadenv.c: Likewise.
7187 * commands/memrw.c: Likewise.
7188 * commands/password.c: Likewise.
7189 * commands/videotest.c: Likewise.
7190 * disk/ata.c: Likewise.
7191 * disk/ata_pthru.c: Likewise.
7192 * disk/dmraid_nvidia.c: Likewise.
7193 * disk/ieee1275/nand.c: Likewise.
7194 * disk/ieee1275/ofdisk.c: Likewise.
7195 * disk/loopback.c: Likewise.
7196 * disk/lvm.c: Likewise.
7197 * disk/mdraid_linux.c: Likewise.
7198 * disk/raid.c: Likewise.
7199 * disk/raid6_recover.c: Likewise.
7200 * disk/scsi.c: Likewise.
7201 * efiemu/main.c: Likewise.
7202 * efiemu/mm.c: Likewise.
7203 * efiemu/pnvram.c: Likewise.
7204 * efiemu/symbols.c: Likewise.
7205 * font/font.c: Likewise.
7206 * fs/cpio.c: Likewise.
7207 * fs/hfsplus.c: Likewise.
7208 * fs/iso9660.c: Likewise.
7209 * fs/jfs.c: Likewise.
7210 * fs/minix.c: Likewise.
7211 * fs/ntfs.c: Likewise.
7212 * fs/ntfscomp.c: Likewise.
7213 * fs/reiserfs.c: Likewise.
7214 * fs/ufs.c: Likewise.
7215 * fs/xfs.c: Likewise.
7216 * gettext/gettext.c: Likewise.
7217 * include/grub/auth.h: Likewise.
7218 * kern/elf.c: Likewise.
7219 * kern/file.c: Likewise.
7220 * kern/ieee1275/init.c: Likewise.
7221 * kern/ieee1275/mmap.c: Likewise.
7222 * kern/ieee1275/openfw.c: Likewise.
7223 * kern/powerpc/dl.c: Likewise.
7224 * kern/sparc64/dl.c: Likewise.
7225 * lib/arg.c: Likewise.
7226 * loader/i386/bsd.c: Likewise.
7227 * loader/i386/bsdXX.c: Likewise.
7228 * loader/i386/efi/linux.c: Likewise.
7229 * loader/i386/efi/xnu.c: Likewise.
7230 * loader/i386/ieee1275/linux.c: Likewise.
7231 * loader/i386/linux.c: Likewise.
7232 * loader/i386/multiboot.c: Likewise.
7233 * loader/i386/pc/linux.c: Likewise.
7234 * loader/i386/pc/multiboot2.c: Likewise.
7235 * loader/i386/xnu.c: Likewise.
7236 * loader/ieee1275/multiboot2.c: Likewise.
7237 * loader/macho.c: Likewise.
7238 * loader/machoXX.c: Likewise.
7239 * loader/multiboot2.c: Likewise.
7240 * loader/multiboot_loader.c: Likewise.
7241 * loader/powerpc/ieee1275/linux.c: Likewise.
7242 * loader/sparc64/ieee1275/linux.c: Likewise.
7243 * loader/xnu.c: Likewise.
7244 * loader/xnu_resume.c: Likewise.
7245 * mmap/i386/pc/mmap.c: Likewise.
7246 * normal/menu_viewer.c: Likewise.
7247 * partmap/acorn.c: Likewise.
7248 * partmap/amiga.c: Likewise.
7249 * partmap/apple.c: Likewise.
7250 * script/lexer.c: Likewise.
7251 * term/gfxterm.c: Likewise.
7252 * term/i386/pc/serial.c: Likewise.
7253 * term/i386/pc/vga.c: Likewise.
7254 * term/ieee1275/ofconsole.c: Likewise.
7255 * term/terminfo.c: Likewise.
7256 * video/bitmap.c: Likewise.
7257 * video/efi_gop.c: Likewise.
7258 * video/efi_uga.c: Likewise.
7259 * video/fb/video_fb.c: Likewise.
7260 * video/i386/pc/vbe.c: Likewise.
7261 * video/readers/tga.c: Likewise.
7262 * video/video.c: Likewise.
7263
0ad46fd7 72642009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
7265
7266 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
7267 * commands/lspci.c: Likewise.
7268 * commands/probe.c: Likewise.
7269 * commands/xnu_uuid.c: Likewise.
7270 * conf/i386-coreboot.rmk: Likewise.
7271 * conf/i386-efi.rmk: Likewise.
7272 * conf/i386-ieee1275.rmk: Likewise.
7273 * conf/i386-pc.rmk: Likewise.
7274 * conf/powerpc-ieee1275.rmk: Likewise.
7275 * conf/sparc64-ieee1275.rmk: Likewise.
7276 * conf/x86_64-efi.rmk: Likewise.
7277 * fs/i386/pc/pxe.c: Likewise.
7278 * gettext/gettext.c: Likewise.
7279 * include/grub/efi/graphics_output.h: Likewise.
7280 * include/grub/i386/pc/memory.h: Likewise.
7281 * kern/env.c: Likewise.
7282 * kern/i386/qemu/startup.S: Likewise.
7283 * lib/i386/pc/biosnum.c: Likewise.
7284 * lib/i386/relocator.c: Likewise.
7285 * lib/i386/relocator_asm.S: Likewise.
7286 * lib/relocator.c: Likewise.
7287 * loader/i386/bsd.c: Likewise.
7288 * loader/i386/multiboot.c: Likewise.
7289 * loader/i386/pc/chainloader.c: Likewise.
7290 * loader/i386/xnu.c: Likewise.
7291 * loader/xnu.c: Likewise.
7292 * normal/main.c: Likewise.
7293 * normal/menu_text.c: Likewise.
7294 * util/getroot.c: Likewise.
7295 * util/grub-mkconfig_lib.in: Likewise.
7296 * util/grub.d/00_header.in: Likewise.
7297 * util/i386/pc/grub-mkimage.c: Likewise.
7298 * util/mkisofs/eltorito.c: Likewise.
7299 * util/mkisofs/exclude.h: Likewise.
7300 * util/mkisofs/hash.c: Likewise.
7301 * util/mkisofs/iso9660.h: Likewise.
7302 * util/mkisofs/joliet.c: Likewise.
7303 * util/mkisofs/mkisofs.c: Likewise.
7304 * util/mkisofs/mkisofs.h: Likewise.
7305 * util/mkisofs/multi.c: Likewise.
7306 * util/mkisofs/name.c: Likewise.
7307 * util/mkisofs/rock.c: Likewise.
7308 * util/mkisofs/tree.c: Likewise.
7309 * util/mkisofs/write.c: Likewise.
7310 * video/efi_gop.c: Likewise.
7311
009ec743
VS
73122009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
7315 size counting.
7316
0ad46fd7 73172009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
7318
7319 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
7320 * genmk.rb (class SCRIPT): Modify the target file instead of source.
7321
d3d30ea0
VS
73222009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
7325 (GRUB_MOD_INIT(memrw)): Update help line.
7326
a34f5c70
VS
73272009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
7330 Use grub_extcmd_t. All users updated.
7331 (options): New variable.
7332 (grub_cmd_read): Restructure for readability. Support "-v" option.
7333 (grub_cmd_write): Restructure for readability.
7334
0ad46fd7 73352009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
7336
7337 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
7338
0ad46fd7 73392009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
7340
7341 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
7342 with the actual contents of the correspondending make variable.
7343 * util/grub-mkrescue.in (pkglib_DATA): New variable.
7344 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
7345 specifying `*.lst' and `efiemu??.o'
7346
0ad46fd7 73472009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
7348
7349 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
7350 after function name.
7351 Noticed by Rene Engelhard <rene@debian.org>.
7352
dc77a799
VS
73532009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
7356 (options): New variable.
7357 (iospace): Likewise.
7358 (grub_lspci_iter): List IO spaces if "-i" was given.
7359 (grub_cmd_lspci): Parse options.
7360 (GRUB_MOD_INIT(lspci)): Use extcmd.
7361 (GRUB_MOD_FINI(lspci)): Likewise.
7362
0ad46fd7 73632009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
7364
7365 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
7366 `function' keyword.
7367 Patch by Tony Mancill <tmancill@debian.org>.
7368
b5d5993b
VS
73692009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7370
7371 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
7372 (grub_uhci_portstatus): Likewise.
7373 (grub_uhci_portstatus): Add necessary delay.
11d18281 7374 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 7375
941903f2 73762009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 7377
941903f2 7378 * commands/acpi.c (options): Fix capitalizations and/or full stops.
7379 (GRUB_MOD_INIT): Likewise.
7380 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 7381 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
7382 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 7383 * commands/efi/loadbios.c (enable_rom_area): Likewise.
7384 (enable_rom_area): Likewise.
7385 (GRUB_MOD_INIT): Likewise.
7386 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
7387 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
7388 * commands/handler.c (GRUB_MOD_INIT): Likewise.
7389 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
7390 * commands/hexdump.c (options): Likewise.
7391 * commands/i386/cpuid.c (options): Likewise.
7392 (GRUB_MOD_INIT): Likewise.
7393 * commands/i386/pc/drivemap.c (options): Likewise.
7394 (GRUB_MOD_INIT): Likewise.
7395 * commands/i386/pc/halt (options): Likewise.
7396 (GRUB_MOD_INIT): Likewise.
7397 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
7398 * commands/i386/pc/pxecmd.c (options): Likewise.
7399 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
7400 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
7401 * commands/keystatus.c (options): Likewise.
7402 (GRUB_MOD_INIT): Likewise.
7403 * commands/loadenv.c (options): Likewise.
7404 * commands/ls.c (options): Likewise.
7405 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
7406 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
7407 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
7408 * commands/parttool.c (helpmsg): Likewise.
7409 * commands/probe.c (options): Likewise.
7410 * commands/read.c (GRUB_MOD_INIT): Likewise.
7411 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
7412 * commands/search.c (options): Likewise.
7413 * commands/sleep.c (options): Likewise.
7414 * commands/test.c (GRUB_MOD_INIT): Likewise.
7415 * commands/true.c (GRUB_MOD_INIT): Likewise.
7416 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
7417 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
7418 * lib/arg.c (help_options): Likewise.
e9bbb4e7 7419 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
7420 `$(XGETTEXT)'.
98a50553 7421 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 7422
0ad46fd7 74232009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 7424
ef3c2c3a 7425 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
7426 instead of specifying them explicit.
7427
7922f68b
RM
74282009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7429
7430 * NEWS: Add grub-probe support for GNU/Hurd.
7431
537ce47f
RM
74322009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7433
7434 * NEWS: gettext was added after 1.97.
7435
9b214e3a
RM
74362009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7437
7438 * util/mkisofs/msdos_partition.h: New file (based on
7439 include/grub/msdos_partition.h).
7440 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
7441 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
7442 (ld_options, main): Recognize --protective-msdos-label.
7443 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
7444 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
7445 (padblock_write): If `use_protective_msdos_label' is set, patch a
7446 protective DOS-style label in the output image.
7447
7448 * util/grub-mkrescue.in: Use --protective-msdos-label.
7449
e9309813
RM
74502009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7451
7452 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
7453 boot.
7454
0ae56929
RM
74552009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7456
7457 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
7458 variables.
7459 (ld_options, main): Recognize `--embedded-boot'.
7460 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
7461 declarations.
7462 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
7463 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
7464 (padblock_write): Likewise. Rewrite to support embedded boot image.
7465
7466 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
7467 for BIOS-based disk boot instead of only ElTorito.
7468
b15937b1
RM
74692009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7470
7471 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
7472 build (not needed for bootstrap).
7473
52cc3ce0
RM
74742009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7475
7476 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
7477 from i386-pc build (not needed for bootstrap).
7478 Rewrite a pair of strings.
7479
36f5ff04
RM
74802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
7481
7482 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
7483
973c6c85 74842009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
7485
7486 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
7487
05d21547
AB
74882009-12-21 Andreas Born <futur.andy@googlemail.com>
7489
7490 * kern/env.c (grub_env_context_open): Mark exported variable for
7491 reexport.
7492
0175d51f
AB
74932009-12-21 Andreas Born <futur.andy@googlemail.com>
7494
7495 * kern/env.c (grub_env_export): Create nonexistent variables before
7496 exporting.
7497
7f39d92f 74982009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 7499
7f39d92f 7500 * include/grub/auth.h: Include `<grub/i18n.h>'.
7501 (GRUB_GET_PASSWORD): Gettextizze string.
7502 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
7503 menu_text.c.
7504 (grub_utf8_to_ucs4_alloc): Fix indentation.
7505 (grub_print_ucs4): Likewise.
7506 (grub_getstringwidth): Likewise.
7507 (print_message_indented): New declaration.
7508 * normal/auth.c: Include `<grub/i18n.h>'.
7509 (grub_auth_check_authentication): Gettexttize string.
7510 * normal/cmdline.c: Include `<grub/i18n.h>'.
7511 (grub_cmdline_get): Gettextizze.
7512 * normal/color.c: Include `<grub/i18n.h>'.
7513 (grub_parse_color_name_pair): Gettexttize strings.
7514 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
7515 string (use `print_message_indented').
7516 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
7517 `include/grub/normal.h'.
7518 (print_message_indented): Renamed to ...
7519 (grub_print_message_indented): ... this. Remove `static' qualifer (now
7520 used in normal/main.c).
7521 (print_message): Use `grub_print_message_indented' instead of
7522 `print_message_indented'.
7523 (print_timeout): Likewise.
7524 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
7525 (grub_normal_print_device_info): Gettexttize strings.
7526 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
7527
3041d898
VS
75282009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
7531 of arguments. Return number of tokens and not arguments. All users
7532 updated.
7533
de15bf8e
VS
75342009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
7537 non-MSDOS paritions.
7538
e0a6ca52
VS
75392009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7540
7541 * include/grub/types.h (UNUSED): Removed since it conflicts with
7542 NetBSD headers. All users changed to direct __attribute__ ((unused)).
7543 Reported by Grégoire Sutre.
7544
b99518d1 75452009-12-19 Carles Pina i Estany <carles@pina.cat>
7546
7547 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
7548 (grub_print_ucs4_alloc): Likewise.
7549 (grub_getstringwidth): Likewise.
7550 * normal/main.c (grub_normal_init_page): Gettextize version string.
7551 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
7552 (getstringwidth): Renamed to ...
7553 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
7554 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
7555 (grub_print_ucs4): Remove `static' qualifer (now used in
7556 normal/main.c).
7557 * po/POTFILES: Add normal/main.c.
7558
bfd5e52b 75592009-12-19 Carles Pina i Estany <carles@pina.cat>
7560
7561 * normal/menu_text.c (STANDARD_MARGIN): New macro.
7562 (print_message_indented): Add `margin_left' and `margin_right'
7563 parameters.
7564 (print_message): Update `print_message_indented' calls. Adds '\n' to the
7565 strings.
7566 (print_timeout): Use `print_message_indented' to print the message.
7567 Deletes `second_stage' parameter.
7568 (run_menu): Update `print_timeout' calls.
7569
5a1ad2b9
VS
75702009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 Fix console palette on OpenFirmware.
7573
7574 * term/ieee1275/ofconsole.c (MAX): Removed.
7575 (colors): Redone based on VGA palette.
7576 (grub_ofconsole_setcolor): Discard brightness bit since only 8
7577 colors are supported.
7578 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
7579
b045f00a
VS
75802009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 Fix potential EfiEmu double prepare.
7583
7584 * efiemu/main.c (prepared): New variable
7585 (grub_efiemu_unload): Set prepare to '0'.
7586 (grub_efiemu_prepare): Return if already prepared. Set prepared.
7587
7588 set_virtual_address_map support.
7589
7590 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
7591 prototype.
7592 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
7593 prototype.
7594 (grub_efiemu_crc32): Likewise.
7595 (grub_efiemu_crc64): Likewise.
7596 (grub_efiemu_set_virtual_address_map): Likewise.
7597 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
7598 New definition.
7599 (grub_autoefi_set_virtual_address_map): Likewise.
7600 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
7601 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
7602 Restructure flow to accomodate it.
7603 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
7604 (grub_efiemu_crc): Recompute CRC32.
7605 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
7606 (efiemu_ptv_relocated): ... this. Made global. All users updated.
7607 * efiemu/symbols.c (relocated_handle): New variable.
7608 (grub_efiemu_free_syms): Free relocated_handle.
7609 (grub_efiemu_alloc_syms): Allocate relocated_handle.
7610 (grub_efiemu_write_sym_markers): New function.
7611 (grub_efiemu_set_virtual_address_map): Likewise.
7612
7613 Newer XNU parameters.
7614
7615 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
7616 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
7617 (grub_xnu_fill_devicetree): New prototype.
7618 (grub_xnu_heap_real_start): New variable.
7619 * loader/xnu.c (get_name_ptr): New function.
7620 (grub_xnu_load_driver): Fill namelen and name.
7621
7622 64-bit xnu support.
7623
7624 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
7625 and 'loader/macho64.c'.
7626 * conf/i386-pc.rmk: Likewise.
7627 * conf/x86_64-efi.rmk: Likewise.
7628 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
7629 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
7630 * include/grub/macho.h (grub_macho_segment64): New structure.
7631 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
7632 (grub_macho_size32): ... to this.
7633 (grub_macho32_get_entry_point): Renamed from ...
7634 (grub_macho_get_entry_point32): ... to this.
7635 (grub_macho_contains_macho64): New prototype.
7636 (grub_macho_size64): Likewise.
7637 (grub_macho_get_entry_point64): Likewise.
7638 (grub_macho32_load): Renamed from ...
7639 (grub_macho_load32): ... to this.
7640 (grub_macho32_filesize): Renamed from ...
7641 (grub_macho_filesize32): ... to this.
7642 (grub_macho32_readfile): Renamed from ...
7643 (grub_macho_readfile32): ... to this.
7644 (grub_macho_filesize64): New prototype.
7645 (grub_macho_readfile64): Likewise.
7646 (grub_macho_parse32): Likewise.
7647 (grub_macho_parse64): Likewise.
7648 * loader/macho.c: Split into ...
7649 * loader/machoXX.c: ... and this. Replace 32 with XX.
7650 * loader/macho32.c: New file.
7651 * loader/macho64.c: Likewise.
7652 * loader/xnu.c (grub_xnu_is_64bit): New variable.
7653 (grub_cmd_xnu_kernel): Make 32-bit only.
7654 (grub_cmd_xnu_kernel64): New function.
7655 (grub_xnu_load_driver): Support Mach-O 64.
7656 (grub_cmd_xnu_mkext): Likewise.
7657 * util/grub.d/30_os-prober.in (osx_entry): New function.
7658 Generate entries for 64-bit boot too.
7659
7660 Eliminate ad-hoc tree format in XNU and EfiEmu.
7661
7662 * efiemu/main.c (grub_efiemu_prepare): Update comment.
7663 * efiemu/pnvram.c: Rewritten to use environment variables.
7664 All users updated.
7665
7666 Inline utf16_to_utf8.
7667
7668 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
7669 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
7670 All users updated.
7671 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
7672
7673 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
7674 * commands/usbtest.c (grub_usb_get_string): ... move here.
7675 (usb_print_str): Fix error handling.
7676 * include/grub/usb.h (grub_usb_get_string): Remove.
7677
7678 UTF-8 to UTF-16 transformation.
7679
7680 * conf/common.rmk (pkglib_MODULES): Add charset.mod
7681 (charset_mod_SOURCES): New variable.
7682 (charset_mod_CFLAGS): Likewise.
7683 (charset_mod_LDFLAGS): Likewise.
7684 * include/grub/utf.h: New file.
7685 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
7686
7687 Support for device properties.
7688
7689 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
7690 (grub_xnu_devprop_device_header): Likewise.
7691 (grub_xnu_devprop_device_descriptor): Likewise.
7692 (grub_xnu_devprop_add_device): New prototype.
7693 (grub_xnu_devprop_remove_device): Likewise.
7694 (grub_xnu_devprop_remove_property): Likewise.
7695 (grub_xnu_devprop_add_property_utf8): Likewise.
7696 (grub_xnu_devprop_add_property_utf16): Likewise.
7697 (grub_cpu_xnu_init): Likewise.
7698 (grub_cpu_xnu_fini): Likewise.
7699 (grub_cpu_xnu_unload): Likewise.
7700 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
7701 (property_descriptor): Likewise.
7702 (devices): New variable.
7703 (grub_xnu_devprop_remove_property): New function.
7704 (grub_xnu_devprop_add_device): Likewise.
7705 (grub_xnu_devprop_remove_device): Likewise.
7706 (grub_xnu_devprop_add_property): Likewise.
7707 (grub_xnu_devprop_add_property_utf8): Likewise.
7708 (grub_xnu_devprop_add_property_utf16): Likewise.
7709 (hextoval): Likewise.
7710 (grub_cpu_xnu_fill_devprop): Likewise.
7711 (grub_cmd_devprop_load): Likewise.
7712 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
7713 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
7714 (cmd_devprop_load): New variable.
7715 (grub_cpu_xnu_init): New function.
7716 (grub_cpu_xnu_fini): Likewise.
7717 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
7718 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
7719 (grub_cmd_xnu_devtree): Likewise.
7720 (hextoval): New function.
7721 (unescape): Likewise.
7722 (grub_xnu_fill_devicetree): Likewise.
7723
7724 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
7725 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
7726
0945f181
VS
77272009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 Workaround for broken ATI VBE.
7730
7731 * video/i386/pc/vbe.c (last_set_mode): New variable.
7732 (grub_vbe_set_video_mode): Set 'last_set_mode'.
7733 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
7734 (grub_video_vbe_setup): Don't check for reserved flag.
7735
0ad46fd7 77362009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
7737
7738 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
7739 the `find' command.
7740
c179ebe4
VS
77412009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7742
7743 UUID support for HFS.
7744
7745 * fs/hfs.c (grub_hfs_uuid): New function.
7746 (grub_hfs_fs): New value .uuid.
7747 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
7748
0ad46fd7 77492009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
7750
7751 Fix a segfault with parsing unknown long options.
7752
7753 * util/grub-mkrelpath.c (options): Zero terminate it.
7754
c4a3e41a
CPE
77552009-12-13 Carles Pina i Estany <carles@pina.cat>
7756
7757 * include/grub/misc.h (grub_puts): New declaration.
7758 (grub_puts_): Likewise.
a22008a6 7759 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
7760 (grub_puts_): Likewise.
7761
2e8a7602
RM
77622009-12-13 Robert Millan <rmh.grub@aybabtu.com>
7763
7764 * util/grub-probe.c (probe): Improve error message.
7765
b50b77b9
RM
77662009-12-13 Robert Millan <rmh.grub@aybabtu.com>
7767
7768 * loader/i386/multiboot_elfxx.c
7769 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
7770 initialization.
7771
77722009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7773
7774 Relocator framework
7775
7776 * loader/i386/xnu_helper.S: Removed. All users updated.
7777 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
7778 (relocator_mod_SOURCES): New variable.
7779 (relocator_mod_CFLAGS): Likewise.
7780 (relocator_mod_LDFLAGS): Likewise.
7781 (relocator_mod_ASFLAGS): Likewise.
7782 * conf/x86_64.rmk: Likewise.
7783 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
7784 (grub_multiboot_payload_entry_offset): Likewise.
7785 (grub_multiboot_forward_relocator): Likewise.
7786 (grub_multiboot_forward_relocator_end): Likewise.
7787 (grub_multiboot_backward_relocator): Likewise.
7788 (grub_multiboot_backward_relocator_end): Likewise.
7789 (grub_multiboot_payload_eip): New variable.
7790 (grub_multiboot_payload_orig): Likewise.
7791 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
7792 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
7793 * include/grub/i386/memory.h
7794 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
7795 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
7796 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
7797 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
7798 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
7799 * include/grub/i386/relocator.h: New file.
7800 * include/grub/x86_64/relocator.h: Likewise.
7801 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
7802 (XNU_RELOCATOR): New macro.
7803 (grub_xnu_launcher_start): Remove.
7804 (grub_xnu_launcher_end): Likewise.
7805 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
7806 (grub_xnu_heap_real_start): Remove.
7807 (grub_xnu_heap_start): Change to void *. All users updated.
7808 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
7809 * lib/i386/relocator.c: New file.
7810 * lib/i386/relocator_asm.S: Likewise.
7811 * lib/i386/relocator_backward.S: Likewise.
7812 * lib/mips/relocator.c: Likewise.
7813 * lib/mips/relocator_asm.S: Likewise.
7814 * lib/relocator.c: Likewise.
7815 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
7816 (entry): Removed.
7817 (playground): Likewise.
7818 (grub_multiboot_payload_orig): New variable.
7819 (grub_multiboot_payload_dest): Likewise.
7820 (grub_multiboot_payload_size): Likewise.
7821 (grub_multiboot_payload_eip): Likewise.
7822 (grub_multiboot_payload_esp): Likewise.
7823 (grub_multiboot_boot): Use grub_relocator32_boot.
7824 (grub_multiboot_unload): Free relocators.
7825 (grub_multiboot): Setup stack. Use relocators.
7826 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
7827 (grub_multiboot_load_elfXX): Use relocators.
7828 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
7829 (grub_multiboot_payload_size): Likewise.
7830 (grub_multiboot_payload_dest): Likewise.
7831 (grub_multiboot_payload_entry_offset): Likewise.
7832 (grub_multiboot_forward_relocator): Likewise.
7833 (grub_multiboot_backward_relocator): Likewise.
7834 (grub_multiboot_real_boot): Likewise.
7835 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
7836 (grub_xnu_entry_point): Likewise.
7837 (grub_xnu_arg1): Likewise.
7838 (grub_xnu_stack): Likewise.
7839 (grub_xnu_launch): Removed.
7840 (grub_xnu_boot_resume): New function.
7841 (grub_xnu_boot): Use relocators.
7842 * loader/i386/xnu_helper.S: Removed.
7843 * loader/xnu.c (grub_xnu_heap_start): New variable.
7844 (grub_xnu_heap_size): Likewise.
7845 (grub_xnu_heap_malloc): Use relocators.
7846 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
7847
29eb90c6
VS
78482009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
7851 anything.
7852
31027430
CPE
78532009-12-13 Carles Pina i Estany <carles@pina.cat>
7854
7855 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
7856 GRUB_ERR_NONE before calling grub_env_set.
7857
dc0c71d9
RM
78582009-12-12 Robert Millan <rmh@aybabtu.com>
7859
7860 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
7861 * genmk.rb (video): New variable.
7862 (CLEANFILES, VIDEOFILES): Add #{video}.
7863 (#{video}): New target rule.
7864 * genvideolist.sh: New file.
7865 * Makefile.in (pkglib_DATA): Add video.lst.
7866 (video.lst): New target rule.
7867 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
7868 `video.lst'.
7869 * util/grub.d/30_os-prober.in: Replace `vbe' with
7870 ${GRUB_VIDEO_BACKEND}.
7871
2a4bfcf0
RM
78722009-12-11 Robert Millan <rmh.grub@aybabtu.com>
7873
7874 * THANKS: Add David Miller.
7875
2a3aa4d5
RM
78762009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7877
7878 libpciaccess support.
7879
7880 * Makefile.in (LIBPCIACCESS): New variable.
7881 (enable_grub_emu_pci): Likewise.
7882 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
7883 util/pci.c and commands/lspci.c.
7884 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
7885 * configure.ac (grub-emu-pci): New option.
7886 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
7887 (grub_pci_device_unmap_range): Likewise.
7888 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
7889 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
7890 (grub_pci_address_t) [!GRUB_UTIL]: New type.
7891 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
7892 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
7893 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
7894 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
7895 * include/grub/pciutils.h: New file.
7896 * util/pci.c: Likewise.
7897
0ad46fd7 78982009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
7899
7900 * util/misc.c: Don't include <errno.h> twice.
7901
0ad46fd7 79022009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
7903
7904 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
7905 name in an error message.
7906 (grub_biosdisk_rw): Likewise.
7907
2e59983c
VS
79082009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 Eliminate NTFS 4Gib barrier.
7911
7912 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
7913 (read_run_data): Likewise.
7914 (grub_ntfs_read_run_list): Likewise.
7915 (grub_ntfs_read_block): Likewise.
7916 (grub_ntfs_iterate_dir): Likewise.
7917 (read_mft): Likewise.
7918 (read_data): Likewise.
7919 Use COM_LOG_LEN.
7920 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
7921 to avoid 64-bit division
7922 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
7923 (grub_ntfs_rlst): Use grub_disk_addr_t.
7924
71ee178a
VS
79252009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7926
7927 Eliminate grub-fstest 4Gib barrier.
7928
7929 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
7930 (read_file): Fix error reporting.
7931
2520d4b8
VS
79322009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 Eliminate hexdump 4Gib barrier.
7935
7936 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
7937 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
7938
e1f27065
VS
79392009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7940
7941 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
7942 Fixes amarsh bug.
7943
1a0f7f45
RM
79442009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
7945
7946 Remove miscellaneous files in distclean target.
7947
7948 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
7949
c631d9fb
CW
79502009-12-09 Colin Watson <cjwatson@ubuntu.com>
7951
7952 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
7953 if they're already set. This resolves the conflict between my
7954 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
7955 fixing the --grub-probe option again.
7956 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
7957 change on 2009-10-06, so that we now once again source
7958 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7959
7c7b6106
RM
79602009-12-08 Robert Millan <rmh.grub@aybabtu.com>
7961
7962 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
7963 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
7964 `util/devicemap.c'.
7965
e3069ec1
CPE
79662009-12-08 Carles Pina i Estany <carles@pina.cat>
7967
7968 * include/grub/misc.h (grub_printf_): New declaration.
7969 * kern/misc.c (grub_printf_): New definition.
7970 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
7971 instead of `grub_printf' and `_'.
7972 * normal/menu_entry.c (store_completion): Likewise.
7973 (run): Likewise.
7974 (grub_menu_entry_run): Likewise.
7975 * normal/menu_text.c (grub_wait_after_message): Likewise.
7976 (notify_booting): Likewise.
7977 (notify_fallback): Likewise.
7978 (notify_execution_failure): Likewise.
7979
d6ceebf1
CW
79802009-12-07 Colin Watson <cjwatson@ubuntu.com>
7981
7982 * configure.ac: Check for vasprintf.
7983 * util/misc.c (asprintf): Move allocation from here ...
7984 (vasprintf): ... to here. New function.
7985 (xasprintf): New function.
7986 * include/grub/util/misc.h (vasprintf, xasprintf): Add
7987 prototypes.
7988 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7989 * util/grub-mkfont.c (write_font): Likewise.
7990 * util/grub-probe.c (probe): Likewise.
7991 * util/hostdisk.c (make_device_name): Likewise.
7992
de6daa8b
DM
79932009-12-06 David S. Miller <davem@sunset.davemloft.net>
7994
7995 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
7996 anything even prefixed with 'cdrom' as a cdrom.
7997
0ad46fd7 79982009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
7999
8000 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
8001 mount points.
8002
98d3dc02
CPE
80032009-12-05 Carles Pina i Estany <carles@pina.cat>
8004
8005 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
8006 grub_gettext_msg_list.
8007 (grub_gettext_gettranslation_from_position): Return const char *
8008 and not char *.
a2c1332b 8009 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
8010 returns from the list if existing there.
8011 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
8012 (grub_gettext_delete_list): Delete the list.
8013 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
8014 lang environment variable is changed.
8015 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
8016
b283f108
VS
80172009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
8018
8019 Rename kernel.mod to kernel.img.
8020
8021 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
8022 (kernel_mod_EXPORTS): Rename to ...
8023 (kernel_img_EXPORTS): ... this.
8024 (kernel_mod_SOURCES): Rename to ...
8025 (kernel_img_SOURCES): ... this.
8026 (kernel_mod_HEADERS): Rename to ...
8027 (kernel_img_HEADERS): ... this. All users updated.
8028 (kernel_mod_CFLAGS): Rename to ...
8029 (kernel_img_CFLAGS): ... this.
8030 (kernel_mod_ASFLAGS): Rename to ...
8031 (kernel_img_ASFLAGS): ... this.
8032 (kernel_mod_LDFLAGS): Rename to ...
8033 (kernel_img_LDFLAGS): ... this.
8034 * conf/x86_64-efi.rmk: Likewise.
8035 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
8036 (read_kernel_image): ... this. All users updated.
8037 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
8038
69055f8a
CPE
80392009-12-05 Carles Pina i Estany <carles@pina.cat>
8040
8041 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
8042 (print_spaces): New function.
8043 (grub_print_ucs4): New function.
8044 (getstringwidth): New function.
8045 (print_message_indented): New function.
8046 (print_message): Gettexttize strings using print_message_indented.
8047 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
8048 width.
8049 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 8050 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
8051 Gettextize.
8052 * normal/menu_entry.c (store_completion): Cleanup the gettextized
8053 string.
8054 (run): Likewise.
8055 (grub_menu_entry_run): Likewise.
8056 * PO/POTFILES: Add normal/menu_entry.c.
8057
f616f51c
VS
80582009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
8061
57bbe3be
CPE
80622009-12-05 Carles Pina i Estany <carles@pina.cat>
8063
8064 * util/grub-install.in: Install gettext .mo files.
8065 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
8066
013d67a1
CPE
80672009-12-05 Carles Pina i Estany <carles@pina.cat>
8068
8069 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
8070 grub_dprintf.
8071
fb954db0
RM
80722009-12-05 Robert Millan <rmh.grub@aybabtu.com>
8073
8074 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
8075 non-firmware-dependant one in realmode.S takes precedence.
8076
6b8474f8
RM
80772009-12-04 Robert Millan <rmh.grub@aybabtu.com>
8078
8079 * commands/halt.c: Replace misc arch-specific headers with
8080 `<grub/misc.h>'.
8081 * commands/reboot.c: Likewise.
8082 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
8083 `<grub/misc.h>'.
8084 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
8085 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
8086 (kernel_img_SOURCES): ... to here.
8087
8088 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
8089 * include/grub/i386/pc/init.h: Likewise.
8090 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
8091 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
8092
8093 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
8094
8095 * include/grub/i386/halt.h: Remove.
8096 * include/grub/i386/reboot.h: Likewise.
8097
8098 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
8099
4b2e6ca2
DM
81002009-12-03 David S. Miller <davem@sunset.davemloft.net>
8101
8102 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
8103 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
8104 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
8105 "progname.h"
8106 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
8107 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8108 (usage): Add missing comma in printf.
8109
5239348f
RM
81102009-12-02 Robert Millan <rmh.grub@aybabtu.com>
8111
8112 Use the same reboot approach on i386 coreboot and qemu as we do on
8113 BIOS.
8114
8115 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
8116 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
8117 * kern/i386/reboot.c: Remove.
8118 * include/grub/i386/reboot.h (grub_reboot): Export function.
8119 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
8120 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
8121 0xf000:0xfff0 instead of 0xffff:0x0000.
8122 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
8123 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
8124
ef34cbd4
RM
81252009-11-30 Robert Millan <rmh.grub@aybabtu.com>
8126
8127 Fix $srcdir != $objdir build.
8128
8129 * Makefile.in (po/%.po): Rewrite as ...
8130 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
8131
dc9837ea
ST
81322009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
8133
8134 Fix GNU/Hurd grub-install crash.
8135 * util/grub-probe.c (probe): Try to access `path' only when it is not
8136 NULL.
8137
2f857f98
VS
81382009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
8139
8140 Correct module naming.
8141
8142 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
8143 (GRUB_MOD_INIT(efi_uga)): ... to this
8144 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
8145 (GRUB_MOD_FINI(efi_uga)): ... to this
8146 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
8147 (GRUB_MOD_INIT(efi_gop)): ... to this
8148 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
8149 (GRUB_MOD_FINI(efi_gop)): ... to this
8150
c5448046
RM
81512009-11-28 Robert Millan <rmh.grub@aybabtu.com>
8152
8153 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
8154 translatable.
8155 (usage): Translate `arg' strings using gettext().
8156 Thanks to Jordi Mallach for the suggestion.
8157
c85184ad
VS
81582009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 GOP support. Based on patch from Bean
8161 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
8162
8163 * video/efi_gop.c: New file.
8164 * include/grub/efi/graphics_output.h: Likewise.
8165 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
8166 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
8167 variables.
8168 * conf/x86_64-efi.rmk: Likewise.
8169
8a4c48d8
VS
81702009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
8171
8172 Rename efi_fb to efi_uga.
8173
8174 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
8175 'efi_uga.mod'.
8176 (efi_fb_mod_SOURCES): Rename this ...
8177 (efi_uga_mod_SOURCES): ... to this.
8178 (efi_fb_mod_CFLAGS): Rename this ...
8179 (efi_uga_mod_CFLAGS): ... to this.
8180 (efi_fb_mod_LDFLAGS): Rename this ...
8181 (efi_uga_mod_LDFLAGS): ... to this.
8182 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
8183 'efi_uga.mod'.
8184 (efi_fb_mod_SOURCES): Rename this ...
8185 (efi_uga_mod_SOURCES): ... to this.
8186 (efi_fb_mod_CFLAGS): Rename this ...
8187 (efi_uga_mod_CFLAGS): ... to this.
8188 (efi_fb_mod_LDFLAGS): Rename this ...
8189 (efi_uga_mod_LDFLAGS): ... to this.
8190 * video/efi_fb.c: Move this ...
8191 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
8192
fb6c1a7b
RM
81932009-11-27 Robert Millan <rmh.grub@aybabtu.com>
8194
8195 * po/README: New file. Explain our PO file workflow.
8196
3bc7896c
RM
81972009-11-27 Robert Millan <rmh.grub@aybabtu.com>
8198
8199 * po/ChangeLog: Remove. Move relevant entries back to ...
8200 * ChangeLog: ... here.
8201 * po/ca.po: Remove (now handled by TLP).
8202 * po/id.po: Likewise.
8203 * po/zh_CN.po: Likewise.
8204 * Makefile.in (LINGUAS): Initialize in a way that supports
8205 empty set.
8206
9ed4841d
RM
82072009-11-27 Robert Millan <rmh.grub@aybabtu.com>
8208
8209 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
8210 reliing on po/LINGUAS.
8211 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
8212 (po/%.po): ... this.
8213
0ad46fd7 82142009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
8215
8216 * util/i386/efi/grub-mkimage.c: Include "progname.h".
8217 (main): Use `program_name' instead of nonexistent `progname'.
8218
e30dd392
FZ
82192009-11-26 Felix Zielcke <fzielcke@z-51.de>
8220
8221 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
8222 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
8223
7656de4f
RM
82242009-11-26 Robert Millan <rmh.grub@aybabtu.com>
8225
8226 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
8227 commit.
8228 * conf/i386-efi.rmk: Likewise.
8229 * conf/i386-ieee1275.rmk: Likewise.
8230 * conf/powerpc-ieee1275.rmk: Likewise.
8231 * conf/sparc64-ieee1275.rmk: Likewise.
8232 * conf/x86_64-efi.rmk: Likewise.
8233
db77c4d4
FZ
82342009-11-26 Felix Zielcke <fzielcke@z-51.de>
8235
8236 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
8237
a755bb04
FZ
82382009-11-26 Felix Zielcke <fzielcke@z-51.de>
8239
8240 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
8241
8a4c07fd
RM
82422009-11-26 Robert Millan <rmh.grub@aybabtu.com>
8243
8244 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
8245 (grub_mkdevicemap_SOURCES): New variable.
8246 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
8247 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
8248 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
8249 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
8250 (grub_mkdevicemap_SOURCES): Remove.
8251 * conf/i386-efi.rmk: Likewise.
8252 * conf/i386-ieee1275.rmk: Likewise.
8253 * conf/i386-pc.rmk: Likewise.
8254 * conf/powerpc-ieee1275.rmk: Likewise.
8255 * conf/sparc64-ieee1275.rmk: Likewise.
8256 * conf/x86_64-efi.rmk: Likewise.
8257 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
8258 (usage): Fix strings to use `program_name'.
8259 (main): Initialize gettext.
8260 * util/grub-editenv.c: Likewise.
8261 * util/grub-emu.c: Likewise.
8262 * util/grub-fstest.c: Likewise.
8263 * util/grub-mkdevicemap.c: Likewise.
8264 * util/grub-mkfont.c: Likewise.
8265 * util/grub-mkrelpath.c: Likewise.
8266 * util/grub-pe2elf.c: Likewise.
8267 * util/grub-probe.c: Likewise.
8268 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
8269 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
8270 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8271
8272 * util/misc.c: Include `"progname.h"'.
8273 (progname): Remove variable.
8274 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
8275
6f61ed55
FZ
82762009-11-25 Felix Zielcke <fzielcke@z-51.de>
8277
8278 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
8279 printf and print a newline after the menuentry header line.
8280 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8281
f022876b
FZ
82822009-11-25 Felix Zielcke <fzielcke@z-51.de>
8283
8284 autoconf >= 2.60 support $(localedir).
8285
8286 * INSTALL: Note that autoconf 2.60 is required.
8287 * configure.ac (AC_PREREQ): Bump to 2.60.
8288 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
8289 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
8290
6717926e
YB
82912009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
8292
8293 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
8294 aclocal is run.
8295
08806a54
RM
82962009-11-25 Robert Millan <rmh.grub@aybabtu.com>
8297
8298 * normal/main.c (grub_normal_read_line): Fix off-by-one
8299 buffer overflow.
8300
13b33fba
RM
83012009-11-25 Robert Millan <rmh.grub@aybabtu.com>
8302
8303 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
8304 "parser.grub" in grub_command_execute() call.
8305
4a8572e9
CPE
83062009-11-24 Carles Pina i Estany <carles@pina.cat>
8307
8308 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
8309 * conf/i386-efi.rmk: Likewise.
8310 * conf/i386-ieee1275.rmk: Likewise.
8311 * conf/i386-pc.rmk: Likewise.
8312 * conf/powerpc-ieee1275.rmk: Likewise.
8313 * conf/sparc64-ieee1275.rmk: Likewise.
8314 * conf/x86_64-efi.rmk: Likewise.
8315 * gettext/gettex.c: Include <grub/i18n.h>.
8316 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
8317 here ...
8318 * include/grub/i18n.h: ... to here
8319 * include/grub/i18n.h: ... to here.
8320 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 8321 (grub_gettext_dummy): Move above user.
4a8572e9 8322
bee48093
FZ
83232009-11-24 Felix Zielcke <fzielcke@z-51.de>
8324
8325 * util/Makefile.in (install-local): Convert a `for' into a normal
8326 shell expansion.
8327
a031e91c
RM
83282009-11-24 Robert Millan <rmh.grub@aybabtu.com>
8329
8330 * autogen.sh: Add automake call.
8331 * config.guess: Remove.
8332 * config.sub: Likewise.
8333 * install-sh: Likewise.
8334
26bec39d
FZ
83352009-11-24 Felix Zielcke <fzielcke@z-51.de>
8336
8337 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
8338
8e2532fd
FZ
83392009-11-24 Felix Zielcke <fzielcke@z-51.de>
8340
8341 * util/Makefile.in (install-local): Convert a make `$(foreach)'
8342 function to a normal shell `for'.
8343
fefa1b7d
FZ
83442009-11-24 Felix Zielcke <fzielcke@z-51.de>
8345
8346 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
8347
4501250b
FZ
83482009-11-24 Felix Zielcke <fzielcke@z-51.de>
8349
8350 * util/grub-mkrelpath.c: New file.
8351 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
8352 (grub_mkrelpath_SOURCES): New variable.
8353 * include/grub/util/misc.h: New function prototype.
8354 * util/misc.c (make_system_path_relative_to_its_root): New function.
8355
8356 * util/grub-mkconfig_lib.in (bindir): New variable.
8357 (grub_mkrelpath): Likewise.
8358 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
8359
8360 * util/probe.c (probe): Make the file path relative to its root.
8361 Change a info message to use the GRUB path. Enable again the
8362 check if we can read the file with GRUB facilities.
8363
8364 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
8365 to its root.
8366
11d9778b
FZ
83672009-11-24 Felix Zielcke <fzielcke@z-51.de>
8368
8369 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
8370 platform.
8371
4465287d
FZ
83722009-11-24 Felix Zielcke <fzielcke@z-51.de>
8373
8374 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
8375 strncmp().
8376
62b47f22
FZ
83772009-11-24 Felix Zielcke <fzielcke@z-51.de>
8378
8379 * util/getroot.c (grub_util_is_dmraid): New function.
8380 (grub_util_get_dev_abstraction): Treat dmraid and multipath
8381 devices as normal ones, not as LVM.
8382
1eafb9b9 83832009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
8384
8385 * conf/common.rmk: Add grub-gettext_lib target and updates
8386 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
8387 LDFLAGS.
8388 * gettext/gettext.c: New file. (Reads mo files).
8389 * include/grub/file.h (grub_file_pread): New prototype.
8390 * include/grub/i18n.h (_): New prototype.
8391 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
8392 prototypes.
8393 * kern/misc.c (grub_gettext_dummy): New function.
8394 * normal/menu_text.c: Include <grub/i18n.h>.
8395 * normal/menu_text.c (print_timeout): Gettexttize string.
8396 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
8397 * po/POTFILES: Add `normal/menu_text.c'.
8398 * po/ca.po: Add new translations.
c3ea6bd4
CPE
8399 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
8400 gettext module and defines locale_dir and lang in grub.cfg.
8401 * NEWS: Add gettext support.
8402
0fdb2568
RM
84032009-11-23 Robert Millan <rmh.grub@aybabtu.com>
8404
8405 * util/hostdisk.c: Include `<grub/i18n.h>'.
8406 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
8407 (make_device_name): Rewrite using asprintf.
8408 (convert_system_partition_to_system_disk): Replace 0 with NULL.
8409 (find_system_device): If a device is not found, generate one just
8410 by reusing the OS path name.
8411 (read_device_map): Make it permissible for device.map not to exist.
8412
f515aa62
RM
84132009-11-23 Robert Millan <rmh.grub@aybabtu.com>
8414
8415 * script/sh/execute.c: Move from here ...
8416 * script/execute.c: ... to here. Update all users.
8417 * script/sh/function.c: Move from here ...
8418 * script/function.c: ... to here. Update all users.
8419 * script/sh/lexer.c: Move from here ...
8420 * script/lexer.c: ... to here. Update all users.
8421 * script/sh/main.c: Move from here ...
8422 * script/main.c: ... to here. Update all users.
8423 * script/sh/parser.y: Move from here ...
8424 * script/parser.y: ... to here. Update all users.
8425 * script/sh/script.c: Move from here ...
8426 * script/script.c: ... to here. Update all users.
8427
f84b481b
RM
84282009-11-23 Robert Millan <rmh.grub@aybabtu.com>
8429
8430 * configure.ac: Detect all `emu' platforms. Define
8431 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
8432 --enable-grub-emu logic. Disable include/grub/machine
8433 symlink on `emu' platforms.
8434
8435 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
8436 * gensymlist.sh.in: Likewise.
8437
8438 * include/grub/i386/coreboot/machine.h: Remove file.
8439 * include/grub/i386/efi/machine.h: Likewise.
8440 * include/grub/i386/ieee1275/machine.h: Likewise.
8441 * include/grub/i386/pc/machine.h: Likewise.
8442 * include/grub/i386/qemu/machine.h: Likewise.
8443 * include/grub/powerpc/ieee1275/machine.h: Likewise.
8444 * include/grub/sparc64/ieee1275/machine.h: Likewise.
8445 * include/grub/x86_64/efi/machine.h: Likewise.
8446
8447 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
8448 * commands/halt.c: Likewise.
8449 * commands/reboot.c: Likewise.
8450 * include/grub/autoefi.h: Likewise.
8451 * include/grub/i386/at_keyboard.h: Likewise.
8452 * include/grub/i386/kernel.h: Likewise.
8453 * include/grub/i386/loader.h: Likewise.
8454 * include/grub/i386/pc/memory.h: Likewise.
8455 * kern/dl.c: Likewise.
8456 * kern/i386/coreboot/init.c: Likewise.
8457 * loader/i386/bsd.c: Likewise.
8458 * loader/i386/linux.c: Likewise.
8459 * loader/multiboot_loader.c: Likewise.
8460 * term/i386/pc/serial.c: Likewise.
8461 * term/usb_keyboard.c: Likewise.
8462
8463 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
8464 `<grub/machine/machine.h>'
8465 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
8466 * util/misc.c: Remove `<grub/machine/machine.h>' and
8467 `<grub/machine/time.h>'.
8468
8469 * Makefile.in (enable_grub_emu): Remove variable.
8470 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
8471
8472 * conf/any-emu.rmk: New file.
8473 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
8474 (grub_emu_init.c): Move from here ...
8475 * conf/any-emu.rmk: ... to here.
8476
8477 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
8478 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
8479 * conf/any-emu.rmk: ... to here.
8480
4efeab03
RM
84812009-11-23 Robert Millan <rmh.grub@aybabtu.com>
8482
8483 * include/grub/parser.h (grub_parser_register): Document need
8484 of `name' parameter.
8485 * normal/main.c (grub_normal_read_line): Simplify prompt string.
8486 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
8487 "sh" to "grub".
8488
ea1dd8bf
RM
84892009-11-23 Robert Millan <rmh.grub@aybabtu.com>
8490
8491 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
8492 `$(XGETTEXT)'.
8493 * include/grub/i18n.h (N_): New macro.
8494 * util/mkisofs/mkisofs.h: Likewise.
8495 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
8496 around N_().
8497 (usage): Use gettext() to translate help strings when printing them.
8498
0c140626
RM
84992009-11-23 Robert Millan <rmh.grub@aybabtu.com>
8500
8501 Based on patch from Bean
8502 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
8503
8504 * video/efi_fb.c: New file.
8505 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
8506 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
8507 variables.
8508 * conf/x86_64-efi.rmk: Likewise.
8509
87d58298
RM
85102009-11-22 Robert Millan <rmh.grub@aybabtu.com>
8511
8512 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
8513 * util/i386/pc/grub-setup.c: Likewise.
8514
994cc3a3
ST
85152009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8516
8517 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
8518 <hurd/fs.h>
8519 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
8520 file_get_storage_info to implement grub_guess_root_device.
8521
26a61d6a
FZ
85222009-11-21 Felix Zielcke <fzielcke@z-51.de>
8523
8524 * Makefile.in (target): Use make's builtin $(shell) function
8525 instead of calling directly $(SHELL) to create the locale directories,
8526 inside the $(foreach) function.
8527
74ff1dd5
FZ
85282009-11-21 Felix Zielcke <fzielcke@z-51.de>
8529
8530 * util/grub-mkrescue.in: Print an error and usage if output option
8531 has not been given.
8532
0b787d0e
FZ
85332009-11-21 Felix Zielcke <fzielcke@z-51.de>
8534
8535 Patch from Loïc Minier <loic.minier@ubuntu.com>.
8536 * util/grub.d/30_os-prober.in: Cope with Linux entries where
8537 root and /boot are on different devices.
8538
1164b270
RM
85392009-11-21 Robert Millan <rmh.grub@aybabtu.com>
8540
8541 Fix build for srcdir != objdir.
8542
8543 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
8544 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
8545 $(srcdir).
8546 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
8547 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
8548 reference for input.
8549
13774a2f
RM
85502009-11-21 Robert Millan <rmh.grub@aybabtu.com>
8551
8552 * util/grub-mkrescue.in: Use source directory direcly (without copiing
8553 or hardlinking it). Remove -J option, Joliet is not compatible with
8554 multiple source directories.
8555
efda854e
RM
85562009-11-21 Carles Pina i Estany <carles@pina.cat>
85572009-11-21 Robert Millan <rmh.grub@aybabtu.com>
8558
8559 * util/grub-mkrescue.in: Recognize `--override-directory' option.
8560 (process_input_dir): New function. Process an arbitrary input
8561 directory.
8562 Misc adjustments to support both "override mode" and system-wide mode.
8563
6c09890c
FZ
85642009-11-20 Felix Zielcke <fzielcke@z-51.de>
8565
8566 * configure.ac (UNIFONT_BDF): Rename to ...
8567 (FONT_SOURCE): ... this. Update all users.
8568
a797824f
FZ
85692009-11-20 Felix Zielcke <fzielcke@z-51.de>
8570
8571 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
8572 to the list of unifont files to look for.
8573
cd4f42b0
RM
85742009-11-19 Robert Millan <rmh.grub@aybabtu.com>
8575
8576 Patch from Joe Auricchio <jauricchio@gmail.com>
8577 * commands/minicmd.c (grub_mini_cmd_clear): New function.
8578 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
8579 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
8580
393c783d
FZ
85812009-11-19 Felix Zielcke <fzielcke@z-51.de>
8582
8583 * Makefile.in (install-local): Add a missing backslash.
8584
b2f1e327
FZ
85852009-11-19 Felix Zielcke <fzielcke@z-51.de>
8586
8587 * include/grub/x86_64/io.h: New file.
8588
f577f7a0
RM
85892009-11-19 Robert Millan <rmh.grub@aybabtu.com>
8590
8591 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
8592 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
8593 Include `"progname.h"'.
8594 (main): Initialize gettext.
8595 * util/i386/pc/grub-setup.c: Gettexttize.
8596 * util/i386/pc/grub-mkimage.c: Likewise.
8597
8598 * Makefile.in (po/*.po): Redefine as ...
8599 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
8600
3bc7896c
RM
8601 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
8602
c37943b6
RM
86032009-11-19 Robert Millan <rmh.grub@aybabtu.com>
8604
8605 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
8606 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
8607 (program_name): Remove.
8608 (main): Initialize gettext support.
6323f705
RM
8609 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
8610 Include `<libintl.h>'.
8611 (_): New macro.
c37943b6
RM
8612
8613 * util/mkisofs/eltorito.c: Gettexttize.
8614 * util/mkisofs/joliet.c: Likewise.
8615 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
8616 * util/mkisofs/multi.c: Likewise.
8617 * util/mkisofs/rock.c: Likewise.
8618 * util/mkisofs/tree.c: Likewise.
8619 * util/mkisofs/write.c: Likewise.
8620
3bc7896c
RM
8621 * po/POTFILES: Update with new files.
8622
5ce77c6e
RM
86232009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8624
8625 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
8626 * util/mkisofs/iso9660.h: Likewise.
8627 * util/mkisofs/joliet.c: Likewise.
8628 * util/mkisofs/mkisofs.c: Likewise.
8629 * util/mkisofs/mkisofs.h: Likewise.
8630 * util/mkisofs/rock.c: Likewise.
8631 * util/mkisofs/tree.c: Likewise.
8632 * util/mkisofs/write.c: Likewise.
8633
8634 * util/mkisofs/eltorito.c (rcsid): Remove.
8635 * util/mkisofs/hash.c: Likewise.
8636 * util/mkisofs/joliet.c: Likewise.
8637 * util/mkisofs/name.c: Likewise.
8638 * util/mkisofs/rock.c: Likewise.
8639 * util/mkisofs/tree.c: Likewise.
8640 * util/mkisofs/write.c: Likewise.
8641
1dabbc77
RM
86422009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8643
8644 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
8645 instead of static allocation.
8646 * util/mkisofs/match.h: Likewise.
8647
633877cb
RM
86482009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8649
3bc7896c
RM
8650 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
8651 and `util/grub.d/10_linux.in'.
633877cb
RM
8652 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
8653 translatable Shell files.
8654
af1c0c85
RM
86552009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8656
8657 * Makefile.in ($(srcdir)/aclocal.m4): New target.
8658
769ae37b
RM
86592009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8660
8661 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 8662 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
8663 * util/grub.d/10_kfreebsd.in (bindir): New variable.
8664 Add gettext initialization.
8665 (kfreebsd_entry): Make menuentry output translatable.
8666
86672009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8668
8669 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
8670 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
8671 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
8672 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
8673 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 8674 * po/LINGUAS: New file.
769ae37b
RM
8675
86762009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8677
8678 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
8679 other things).
8680 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
8681 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
8682 bindtextdomain() calls for gettext initialization.
8683
86842009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8685
8686 * gnulib/progname.c: New file (imported from Gnulib).
8687 * gnulib/progname.h: Likewise.
8688 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
8689 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
8690 (usage): Replace `progname' with `program_name'.
8691 (main): Use set_program_name() for program name initialization.
8692
86932009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8694
8695 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
8696 from here ...
8697 * Makefile.in (CPPFLAGS): ... to here.
8698
86992009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8700
8701 * aclocal.m4: Move from here ...
8702 * acinclude.m4: ... to here.
8703 * autogen.sh: Add call to `aclocal'.
8704 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
8705
87062009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8707
8708 * Makefile.in (CLEANFILES): Add `po/*.mo'.
8709 (LINGUAS): New variable.
8710 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
8711 (install-local): Install MO files.
8712 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
8713 * include/grub/i18n.h: New file.
3bc7896c
RM
8714 * po/POTFILES: New file.
8715 * po/ca.po: New file.
769ae37b
RM
8716 * util/grub.d/10_linux.in (bindir): New variable.
8717 Add gettext initialization.
8718 (linux_entry): Make menuentry output translatable.
8719 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
8720 (usage): Make --help output translatable.
8721 (main): Initialize gettext.
8722
02c0a6ad
RM
87232009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8724
8725 * import_gcry.py: New file (written by Vladimir with minor
8726 adjustments).
8727 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
8728 ciphers.
8729 * INSTALL: Document that Python is required for bootstrap.
8730
87312009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8732
8733 Import ciphers from libgcrypt 1.4.4.
8734
8735 * lib/libgcrypt/cipher/ChangeLog
8736 * lib/libgcrypt/cipher/ac.c
8737 * lib/libgcrypt/cipher/arcfour.c
8738 * lib/libgcrypt/cipher/bithelp.h
8739 * lib/libgcrypt/cipher/blowfish.c
8740 * lib/libgcrypt/cipher/camellia-glue.c
8741 * lib/libgcrypt/cipher/camellia.c
8742 * lib/libgcrypt/cipher/camellia.h
8743 * lib/libgcrypt/cipher/cast5.c
8744 * lib/libgcrypt/cipher/cipher.c
8745 * lib/libgcrypt/cipher/crc.c
8746 * lib/libgcrypt/cipher/des.c
8747 * lib/libgcrypt/cipher/dsa.c
8748 * lib/libgcrypt/cipher/ecc.c
8749 * lib/libgcrypt/cipher/elgamal.c
8750 * lib/libgcrypt/cipher/hash-common.c
8751 * lib/libgcrypt/cipher/hash-common.h
8752 * lib/libgcrypt/cipher/hmac-tests.c
8753 * lib/libgcrypt/cipher/md.c
8754 * lib/libgcrypt/cipher/md4.c
8755 * lib/libgcrypt/cipher/md5.c
8756 * lib/libgcrypt/cipher/primegen.c
8757 * lib/libgcrypt/cipher/pubkey.c
8758 * lib/libgcrypt/cipher/rfc2268.c
8759 * lib/libgcrypt/cipher/rijndael-tables.h
8760 * lib/libgcrypt/cipher/rijndael.c
8761 * lib/libgcrypt/cipher/rmd.h
8762 * lib/libgcrypt/cipher/rmd160.c
8763 * lib/libgcrypt/cipher/rsa.c
8764 * lib/libgcrypt/cipher/seed.c
8765 * lib/libgcrypt/cipher/serpent.c
8766 * lib/libgcrypt/cipher/sha1.c
8767 * lib/libgcrypt/cipher/sha256.c
8768 * lib/libgcrypt/cipher/sha512.c
8769 * lib/libgcrypt/cipher/tiger.c
8770 * lib/libgcrypt/cipher/twofish.c
8771 * lib/libgcrypt/cipher/whirlpool.c
8772
af2f93ac
RM
87732009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8774
8775 Fix build for systems without error().
8776
8777 * gnulib/error.c: New file (imported from Gnulib).
8778 * gnulib/error.h: Likewise.
8779 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
8780 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
8781 (this variable is now used by error()).
8782
73fb3dd5
FZ
87832009-11-16 Felix Zielcke <fzielcke@z-51.de>
8784
814f5e96
FZ
8785 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
8786 instead of relying that char is signed.
73fb3dd5 8787
a691ca33
VS
87882009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
8791 blocksize different from specified.
8792 (grub_pxefs_read): Likewise.
8793
2af8f0f4
FZ
87942009-11-16 Felix Zielcke <fzielcke@z-51.de>
8795
8796 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
8797
8798 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
8799 (grub_ata_readwrite): Likewise. Update 2 format strings.
8800 (grub_atapi_read): Likewise.
8801
8802 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
8803 * conf/i386.rmk (pkglib_MODULES): ... to here ...
8804 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
8805 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
8806 (ata_mod_LDFLAGS): Move from here ...
8807 * conf/i386.rmk: ... to here ...
8808 * conf/x86_64-efi.rmk: ... and here.
8809 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
8810 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
8811
83bdecaf
RM
88122009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8813
8814 Relicense multiboot.h, with RMS' blessing.
8815
8816 * include/multiboot.h: Change to X11 license.
8817
fd6fd3d7
RM
88182009-11-15 Robert Millan <rmh.grub@aybabtu.com>
8819
8820 Support --version in grub-mkisofs.
8821
8822 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
8823 (OPTION_VERSION): New macro.
8824 (ld_options): Recognize --version.
8825 (usage): Move `program_name' from here ...
8826 (program_name): ... to here. Add `static' qualifier.
8827 (main): Recognize `OPTION_VERSION'.
8828
16a88c49
FZ
88292009-11-15 Felix Zielcke <fzielcke@z-51.de>
8830
8831 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
8832 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
8833
a4158476
RM
88342009-11-14 Robert Millan <rmh.grub@aybabtu.com>
8835
8836 Fix help2man generation for mkisofs.
8837
8838 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
8839 (usage): Send output to stdout (rather than stderr).
8840
fc2208b0
RM
88412009-11-14 Robert Millan <rmh.grub@aybabtu.com>
8842
8843 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
8844 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8845 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
8846 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8847 (bin_SCRIPTS): Add `grub-mkfloppy'.
8848 (grub_mkfloppy_SOURCES): New variable.
8849
8850 * util/grub-mkrescue.in: New file.
8851 * util/i386/pc/grub-mkfloppy.in: New file.
8852
8853 * util/i386/coreboot/grub-mkrescue.in: Remove.
8854 * util/i386/pc/grub-mkrescue.in: Remove.
8855
8d0edf4a
RM
88562009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8857
8858 * include/grub/multiboot.h (struct grub_multiboot_header): Move
8859 from here ...
8860 * include/multiboot.h (struct multiboot_header): ... to here. Update
8861 all users.
8862 * include/grub/multiboot.h (struct grub_multiboot_info): Move
8863 from here ...
8864 * include/multiboot.h (struct multiboot_info): ... to here. Update
8865 all users.
8866 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
8867 from here ...
8868 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
8869 Update all users.
8870 * include/grub/multiboot.h (struct grub_mod_list): Move
8871 from here ...
8872 * include/multiboot.h (struct multiboot_mod_list): ... to here.
8873 Update all users.
8874
a73f5969
RM
88752009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8876
8877 * include/multiboot2.h (multiboot_word): Rename from this ...
8878 (multiboot2_word): ... to this. Update all users.
8879 (multiboot_header): Rename from this ...
8880 (multiboot2_header): ... to this. Update all users.
8881 (multiboot_tag_header): Rename from this ...
8882 (multiboot2_tag_header): ... to this. Update all users.
8883 (multiboot_tag_start): Rename from this ...
8884 (multiboot2_tag_start): ... to this. Update all users.
8885 (multiboot_tag_name): Rename from this ...
8886 (multiboot2_tag_name): ... to this. Update all users.
8887 (multiboot_tag_module): Rename from this ...
8888 (multiboot2_tag_module): ... to this. Update all users.
8889 (multiboot_tag_memory): Rename from this ...
8890 (multiboot2_tag_memory): ... to this. Update all users.
8891 (multiboot_tag_unused): Rename from this ...
8892 (multiboot2_tag_unused): ... to this. Update all users.
8893 (multiboot_tag_end): Rename from this ...
8894 (multiboot2_tag_end): ... to this. Update all users.
8895
1c8927f0
RM
88962009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8897
8898 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
8899 this platform we should support Multiboot1 first.
8900
8901 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
8902 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
8903 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
8904
6e1e0d89
RM
89052009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8906
8907 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
8908 of write calls (converting them to fwrite() if they aren't already).
8909 (get_torito_desc): Likewise.
8910 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
8911
7f2b34d8
RM
89122009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8913
8914 * util/i386/pc/grub-install.in: Move from here ...
8915 * util/grub-install.in: ... to here. Update all users.
8916
c0ef3311
CW
89172009-11-11 Colin Watson <cjwatson@ubuntu.com>
8918
8919 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
8920
e1f240ff
RM
89212009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8922
8923 Support for El Torito without floppy emulation.
8924
8925 * util/mkisofs/eltorito.c: Include `<errno.h>'.
8926 (init_boot_catalog): Improve error handling.
8927 (get_torito_desc): Don't use floppy emulation unless requested by
8928 user. Patch boot information table when requested via
8929 `-boot-info-table'.
8930 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
8931 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
8932 (use_boot_info_table): New variables.
8933 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
8934 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
8935 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
8936 `--eltorito-emul-floppy'.
8937 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
8938 and `OPTION_ELTORITO_EMUL_FLOPPY'.
8939 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
8940 (use_boot_info_table, get_731): New prototypes.
8941 * util/mkisofs/write.c (get_731): New function.
8942
af7d4de5
FZ
89432009-11-11 Felix Zielcke <fzielcke@z-51.de>
8944
8945 Fix the generation of the man page.
8946
8947 * util/pc/i386/grub-install.in: Source
8948 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
8949
2c55dbc0
RM
89502009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8951
8952 Large file support for grub-mkisofs.
8953
8954 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
8955 * util/mkisofs/mkisofs.c (next_extent, last_extent)
8956 (session_start): Upgrade type to `uint64_t'. Update all users.
8957 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
8958 (struct directory_entry): Upgrade type of `starting_block' and
8959 `size' to `uint64_t'. Update all users.
8960 (struct deferred): Remove unused structure.
8961 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
8962 Update all users.
8963 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
8964 file is larger than `UINT32_MAX'.
8965 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
8966 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
8967 return value.
8968 (struct deferred_write): Upgrade type of `extent' and `size' to
8969 `uint64_t'. Update all users.
8970 (last_extent_written): Upgrade type to `uint64_t'. Update all
8971 users.
8972 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
8973 Update all users. Upgrade type of `remain' to `int64_t' and
8974 `use' to `size_t'. Use error() to handle fread() errors.
8975 (write_files): Rely on write_one_file() rather than calling
8976 xfwrite() directly.
8977
6a9cead5
FZ
89782009-11-09 Felix Zielcke <fzielcke@z-51.de>
8979
8980 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
8981
4825d790
RM
89822009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8983
8984 * util/mkisofs/fnmatch.c: Remove.
8985 * util/mkisofs/getopt1.c: Likewise.
8986 * util/mkisofs/getopt.c: Likewise.
8987 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
8988 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
8989 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
8990 `gnulib/getopt1.c' and `gnulib/getopt.c'.
8991 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
8992
8993 * configure.ac: Detect `mingw32msvc' host_os.
8994 Check for lstat(), getuid() and getgid().
8995
8996 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
8997 instances of `u_char' with `uint8_t'.
8998
8999 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
9000 [!HAVE_GETUID] (getuid): New function (stub).
9001 [!HAVE_GETGID] (getgid): Likewise.
9002 [!HAVE_LSTAT] (lstat): Likewise.
9003 [!S_IROTH] (S_IROTH): New macro (dummy).
9004 [!S_IRGRP] (S_IRGRP): Likewise.
9005
84b860d8
RM
90062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9007
9008 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
9009 conditional expression).
9010
66e9b712
RM
90112009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9012
9013 Import from Gnulib.
9014
9015 * gnulib/fnmatch.c: New file.
9016 * gnulib/fnmatch.h: Likewise.
9017 * gnulib/fnmatch_loop.c: Likewise.
9018 * gnulib/getopt.c: Likewise.
9019 * gnulib/getopt.h: Likewise.
9020 * gnulib/getopt1.c: Likewise.
9021 * gnulib/getopt_int.h: Likewise.
9022 * gnulib/gettext.h: Likewise.
9023
34f4a5b0
RM
90242009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9025
9026 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
9027 * normal/handler.c (read_handler_list): Likewise.
9028
ac451143
RM
90292009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9030
9031 Misc cleanup.
9032
9033 * kern/command.c (grub_register_command_prio): Use
9034 grub_zalloc() instead of explicitly zeroing data.
9035 * kern/list.c: Include `<grub/mm.h>'.
9036 (grub_named_list_find): Replace `0' with `NULL'.
9037 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
9038 (fs_module_list): Change type to `grub_named_list_t'. Update all
9039 users.
9040 * normal/dyncmd.c (read_command_list): Add space between function
9041 call and parenthesis.
9042 * normal/handler.c (read_handler_list): Likewise.
9043
4089b167
RM
90442009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9045
9046 * normal/auth.c (punishment_delay): Moved from here ...
9047 (grub_auth_strcmp): ... to here (inside function).
9048
325f5037
RM
90492009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9050
9051 * include/grub/list.h (struct grub_named_list): Remove `const'
9052 qualifier from `name'.
9053 (struct grub_prio_list): Likewise.
9054
7aea29a3
RM
90552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9056
9057 * normal/auth.c: Include `<grub/time.h>'.
9058 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
9059
3fd6f044
RM
90602009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9061
9062 * normal/auth.c (punishment_delay): New variable.
9063 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
9064 (grub_auth_check_authentication): Punish failed login attempts with
9065 an incremental (2^N) delay.
9066
a4cd68e4
RM
90672009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9068
9069 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
9070 path with $(srcdir).
9071
7ad12f43
VS
90722009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
9075
c1129f03
RM
90762009-11-09 Robert Millan <rmh.grub@aybabtu.com>
9077
9078 * util/i386/coreboot/grub-mkrescue.in: New file.
9079 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
9080 variables.
9081
9082 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
9083 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
9084 * configure.ac: Add header and function checks to satisfy grub-mkisofs
9085 requirements.
9086 * util/mkisofs/defaults.h: New file.
9087 * util/mkisofs/eltorito.c: Likewise.
9088 * util/mkisofs/exclude.h: Likewise.
9089 * util/mkisofs/fnmatch.c: Likewise.
9090 * util/mkisofs/getopt.c: Likewise.
9091 * util/mkisofs/getopt1.c: Likewise.
9092 * util/mkisofs/hash.c: Likewise.
9093 * util/mkisofs/include/fctldefs.h: Likewise.
9094 * util/mkisofs/include/mconfig.h: Likewise.
9095 * util/mkisofs/include/prototyp.h: Likewise.
9096 * util/mkisofs/include/statdefs.h: Likewise.
9097 * util/mkisofs/iso9660.h: Likewise.
9098 * util/mkisofs/joliet.c: Likewise.
9099 * util/mkisofs/match.c: Likewise.
9100 * util/mkisofs/match.h: Likewise.
9101 * util/mkisofs/mkisofs.c: Likewise.
9102 * util/mkisofs/mkisofs.h: Likewise.
9103 * util/mkisofs/multi.c: Likewise.
9104 * util/mkisofs/name.c: Likewise.
9105 * util/mkisofs/rock.c: Likewise.
9106 * util/mkisofs/tree.c: Likewise.
9107 * util/mkisofs/write.c: Likewise.
9108
ec8bb77d
VS
91092009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
9112 being insecure.
9113
3716b12c
RM
91142009-11-08 Robert Millan <rmh.grub@aybabtu.com>
9115
9116 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
9117 `grub-mkimage' (and use $0 when possible).
9118
b97b7b91
RM
91192009-11-08 Robert Millan <rmh.grub@aybabtu.com>
9120
9121 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
9122 error message for excessively large memory map.
9123
04114812
RM
91242009-11-08 Robert Millan <rmh.grub@aybabtu.com>
9125
9126 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
9127 executable bit.
9128
e4eb2373
RM
91292009-11-08 Robert Millan <rmh.grub@aybabtu.com>
9130
9131 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
9132 message for coreboot users.
9133
c926e1d5 91342009-11-07 Robert Millan <rmh.grub@aybabtu.com>
9135
9136 Fix build with GNU gold.
9137
9138 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
9139 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
9140 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
9141 link addresses.
9142 * aclocal.m4: Likewise.
9143
86e5b1db 91442009-11-04 Felix Zielcke <fzielcke@z-51.de>
9145
9146 * configure.ac (AC_PREREQ): Bump to 2.59d.
9147 * INSTALL: Make it more clear when Autoconf and Ruby are
9148 needed and when to run `./autogen.sh'.
9149
246cd78f 91502009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9151
9152 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
9153 OSes.
9154
4f9dfb37 91552009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9156
9157 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
9158
b82bd5e1 91592009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9160
9161 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
9162 giving it to GNU Mach.
9163
ff1a9bca 91642009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9165
9166 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
9167 GNU partition number to get internal GRUB partition number.
9168
61697d9c 91692009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9170
9171 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
9172 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
9173
a50569e1 91742009-11-01 Robert Millan <rmh.grub@aybabtu.com>
9175
9176 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
9177 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
9178 case.
9179
5b153867 91802009-11-01 Felix Zielcke <fzielcke@z-51.de>
9181
9182 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
9183
d9e2cd70 91842009-10-30 Robert Millan <rmh.grub@aybabtu.com>
9185
9186 Fix build problem.
9187
9188 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
9189 `-isystem=$(srcdir)/include'.
9190
805111a4 91912009-10-30 Robert Millan <rmh.grub@aybabtu.com>
9192
9193 * util/i386/pc/grub-install.in: Remove hint that device.map should be
9194 checked (grub-install doesn't currently rely on it).
9195
fa6e945f 91962009-10-29 Robert Millan <rmh.grub@aybabtu.com>
9197
9198 Revert SVN r2660.
9199
9200 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
9201 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
9202 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
9203 * conf/i386-ieee1275.rmk: Likewise.
9204 * conf/i386-pc.rmk: Likewise.
9205 * conf/powerpc-ieee1275.rmk: Likewise.
9206 * conf/sparc64-ieee1275.rmk: Likewise.
9207 * conf/x86_64-efi.rmk: Likewise.
9208
cee15086 92092009-10-28 Robert Millan <rmh.grub@aybabtu.com>
9210
9211 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
9212
95b9239e 92132009-10-28 Robert Millan <rmh.grub@aybabtu.com>
9214
9215 * include/grub/misc.h: Stop checking for APPLE_CC.
9216
2ed19dfd 92172009-10-28 Robert Millan <rmh.grub@aybabtu.com>
9218
9219 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
9220 doesn't cause an infinite call loop.
9221
fdcdde19 92222009-10-28 Felix Zielcke <fzielcke@z-51.de>
9223
9224 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
9225 strings.
9226
cefabfe1 92272009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9228
9229 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
9230 variable.
9231 * Makefile.in: Likewise.
9232
ed96ab6d 92332009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9234
9235 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
9236
0579b753 92372009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9238
9239 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
9240
478df409 92412009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9242
9243 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
9244
083d1679 92452009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9246
9247 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
9248 from here ...
9249 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
9250
5947ae32 92512009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9252
9253 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
9254 in $(MAKEINFO) invocation. This makes it clear in output that
9255 errors are being ignored.
9256
94180ff6 92572009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9258
9259 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
9260 from here ...
9261 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
9262 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
9263 * conf/i386-ieee1275.rmk: Likewise.
9264 * conf/i386-pc.rmk: Likewise.
9265 * conf/powerpc-ieee1275.rmk: Likewise.
9266 * conf/sparc64-ieee1275.rmk: Likewise.
9267 * conf/x86_64-efi.rmk: Likewise.
9268
9031b03a 92692009-10-26 Colin Watson <cjwatson@ubuntu.com>
9270
9271 * util/grub-editenv.c (main): If only a command is given, use
9272 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
9273 (usage): FILENAME is now optional and has a default.
9274
e4f6809b 92752009-10-26 Colin Watson <cjwatson@ubuntu.com>
9276
9277 Improve grub-mkconfig performance when there are several menu
9278 entries on a single filesystem.
9279
9280 * util/grub.d/10_linux.in (linux_entry): Cache the output of
9281 prepare_grub_to_access_device.
9282 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
9283 * util/grub.d/30_os-prober.in: Likewise.
9284
67937d4d 92852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9286
9287 * util/grub.d/10_freebsd.in: Remove.
9288 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
9289 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
9290
ee3756cc 92912009-10-26 Robert Millan <rmh.grub@aybabtu.com>
9292
5c35048e 9293 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 9294
4dea1c6f 92952009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9296
9297 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
9298 grub_util_error() call.
9299
042484d7 93002009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9301
9302 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
9303 `reserved_first_sector' member.
9304 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
9305 `reserved_first_sector' to 1.
9306 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
9307 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
9308 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
9309 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
9310 filesystems which begin at first sector.
9311 (options): New option --skip-fs-probe.
9312 (main): Handle --skip-fs-probe and pass it to setup().
9313
d64448a7 93142009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9315
9316 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
9317 (memset): Fix function prototype.
9318
508d42ec 93192009-10-25 Robert Millan <rmh.grub@aybabtu.com>
93202009-10-25 Vasily Averin <vvs@parallels.com>
9321
9322 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
9323 `dirent.direntlen == 0'.
9324
b240e30c 93252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9326
9327 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
9328 `cpio'.
9329 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
9330
346e7fbe 93312009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9332
9333 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
9334 `__trampoline_setup' and `__ucmpdi2'.
9335 * include/grub/powerpc/libgcc.h: Only export symbols for functions
9336 that libgcc provides.
9337
cdb308b0 93382009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9339
9340 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
9341 * include/grub/sparc64/libgcc.h (memset): Likewise.
9342 * include/grub/misc.h (memset, memcmp): New function prototypes.
9343
fb26abc2 93442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9345
9346 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
9347 `cpio'.
9348 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
9349
f6693890 93502009-10-25 Robert Millan <rmh.grub@aybabtu.com>
9351
9352 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
9353 * docs/grub.cfg: Compensate for recent change in multiboot
9354 loader (since 2009-08-14 it won't pass filename to payload).
9355 * util/grub.d/10_hurd.in: Likewise.
9356
0933cdc0 93572009-10-21 Felix Zielcke <fzielcke@z-51.de>
9358
9359 * config.guess: Update to latest version from config git
9360 repository.
9361 * config.sub: Likewise.
9362
3b2fe8c2 93632009-10-20 Robert Millan <rmh.grub@aybabtu.com>
9364
9365 Fix build on sparc64.
9366
9367 * configure.ac: Perform checks for libgcc symbols before
9368 adding `-nostdlib' to LDFLAGS.
9369
46695a62 93702009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 Let user specify OpenBSD root device.
9373
9374 * loader/i386/bsd.c (openbsd_root): New variable.
9375 (openbsd_opts): New option 'root'.
9376 (OPENBSD_ROOT_ARG): New macro.
9377 (grub_openbsd_boot): Use 'openbsd_root'.
9378 (grub_cmd_openbsd): Fill 'openbsd_root'.
9379
d2b6b7fc 93802009-10-16 Robert Millan <rmh.grub@aybabtu.com>
9381
9382 * NEWS: Misc adjustments.
9383
421bd7ac 93842009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
9385
9386 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
9387
f1d29d87 93882009-10-16 Robert Millan <rmh.grub@aybabtu.com>
9389
9390 * configure.ac: Bump version to 1.97.
9391
6f3cd880 93922009-10-16 Colin Watson <cjwatson@ubuntu.com>
9393
9394 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
9395 -mno-3dnow on x86 architectures. Some toolchains enable these
9396 features by default, but they rely on registers that aren't enabled
9397 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
9398
035f7122 93992009-10-15 Robert Millan <rmh.grub@aybabtu.com>
9400
9401 Make entry text a bit more readable.
9402
9403 * util/grub.d/10_linux.in: Add `with' before `Linux'.
9404
44998e58 94052009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
9406
9407 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
9408
cd2851b3 94092009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
9410
9411 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
9412 operations.
9413
c6f3b249 94142009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 * configure.ac: Add missing dollar.
9417
6b5886ba 94182009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
9421
9422 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
9423 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
9424 exports.
9425 * include/grub/sparc64/libgcc.h: Likewise. Use
9426 preprocessor conditionals.
9427
e9d66f6d 94282009-10-14 Robert Millan <rmh.grub@aybabtu.com>
9429
9430 * conf/common.rmk (grub-dumpbios): Remove rule.
9431 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
9432 * util/grub-dumpbios.in: Remove file.
9433
9155bc17 94342009-10-14 Robert Millan <rmh.grub@aybabtu.com>
9435
9436 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
9437 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
9438
9439 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
9440 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
9441 users.
9442
9443 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
9444 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
9445 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
9446 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
9447 users.
9448
bf7f7a18 94492009-10-12 Robert Millan <rmh.grub@aybabtu.com>
9450
9451 * term/tparm.c: Switch to GPLv3.
9452
86564c26 94532009-10-09 Robert Millan <rmh.grub@aybabtu.com>
9454
9455 * include/grub/i386/cpuid.h: Add header protection.
9456
5c936493 94572009-10-09 Robert Millan <rmh.grub@aybabtu.com>
9458
9459 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
9460
9461 * include/grub/i386/cpuid.h: New file.
9462 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
9463 (has_longmode): Rename to ...
9464 (grub_cpuid_has_longmode): ... this. Update all users. Remove
9465 `static' attribute.
9466 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
9467 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
9468 on a CPU that doesn't implement AMD64 instruction set.
9469
186e7cf2 94702009-10-06 Colin Watson <cjwatson@ubuntu.com>
9471
9472 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
9473 that version.texi is rebuilt on version number changes.
9474
83b65c4a 94752009-10-06 Colin Watson <cjwatson@ubuntu.com>
9476
9477 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
9478 Fixes bug #27602.
9479
d244281c 94802009-10-06 Colin Watson <cjwatson@ubuntu.com>
9481
9482 * util/i386/pc/grub-install.in: Source
9483 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
9484 that the --grub-probe option will work.
9485 * util/sparc64/ieee1275/grub-install.in: Likewise.
9486
da25306d 94872009-10-05 Robert Millan <rmh.grub@aybabtu.com>
9488
9489 * configure.ac: Bump version to 1.97~beta4.
9490
e8ee83c0 94912009-10-03 Robert Millan <rmh.grub@aybabtu.com>
9492
9493 Resync grub-mkdevicemap in x86_64-efi.
9494
9495 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
9496 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
9497 `util/devicemap.c'.
9498
50dcabcf 94992009-10-01 Colin Watson <cjwatson@ubuntu.com>
9500
9501 * util/grub-editenv.c (create_envblk_file): Write new block with a
9502 .new suffix and then rename it into place, to ensure atomic
9503 creation.
9504
0e51c3a7 95052009-09-28 Robert Millan <rmh.grub@aybabtu.com>
9506
9507 Do not automatically install headers.
9508
9509 * Makefile.in (include_DATA): Remove. Update all users.
9510
31299a95 95112009-09-26 Robert Millan <rmh.grub@aybabtu.com>
9512
9513 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
9514 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
9515
9516 * util/osdetect.lua: Remove.
9517 * script/lua/lauxlib.c: Likewise.
9518 * script/lua/ldebug.c: Likewise.
9519 * script/lua/grub_main.c: Likewise.
9520 * script/lua/lauxlib.h: Likewise.
9521 * script/lua/ldebug.h: Likewise.
9522 * script/lua/ltablib.c: Likewise.
9523 * script/lua/liolib.c: Likewise.
9524 * script/lua/lstrlib.c: Likewise.
9525 * script/lua/lualib.h: Likewise.
9526 * script/lua/ldo.c: Likewise.
9527 * script/lua/ldump.c: Likewise.
9528 * script/lua/ldo.h: Likewise.
9529 * script/lua/loslib.c: Likewise.
9530 * script/lua/lundump.c: Likewise.
9531 * script/lua/grub_lib.c: Likewise.
9532 * script/lua/ldblib.c: Likewise.
9533 * script/lua/lundump.h: Likewise.
9534 * script/lua/lmem.c: Likewise.
9535 * script/lua/grub_lib.h: Likewise.
9536 * script/lua/lmathlib.c: Likewise.
9537 * script/lua/lstate.c: Likewise.
9538 * script/lua/ltm.c: Likewise.
9539 * script/lua/lvm.c: Likewise.
9540 * script/lua/lmem.h: Likewise.
9541 * script/lua/lstate.h: Likewise.
9542 * script/lua/ltm.h: Likewise.
9543 * script/lua/ltable.c: Likewise.
9544 * script/lua/lvm.h: Likewise.
9545 * script/lua/llex.c: Likewise.
9546 * script/lua/lgc.c: Likewise.
9547 * script/lua/grub_lua.h: Likewise.
9548 * script/lua/loadlib.c: Likewise.
9549 * script/lua/lfunc.c: Likewise.
9550 * script/lua/lopcodes.c: Likewise.
9551 * script/lua/lparser.c: Likewise.
9552 * script/lua/ltable.h: Likewise.
9553 * script/lua/llex.h: Likewise.
9554 * script/lua/lgc.h: Likewise.
9555 * script/lua/lfunc.h: Likewise.
9556 * script/lua/lbaselib.c: Likewise.
9557 * script/lua/lopcodes.h: Likewise.
9558 * script/lua/lparser.h: Likewise.
9559 * script/lua/lzio.c: Likewise.
9560 * script/lua/linit.c: Likewise.
9561 * script/lua/lobject.c: Likewise.
9562 * script/lua/llimits.h: Likewise.
9563 * script/lua/lstring.c: Likewise.
9564 * script/lua/lzio.h: Likewise.
9565 * script/lua/lapi.c: Likewise.
9566 * script/lua/lcode.c: Likewise.
9567 * script/lua/lua.h: Likewise.
9568 * script/lua/lobject.h: Likewise.
9569 * script/lua/lstring.h: Likewise.
9570 * script/lua/lapi.h: Likewise.
9571 * script/lua/lcode.h: Likewise.
9572 * script/lua/luaconf.h: Likewise.
9573
cb8a2c38 95742009-09-26 Colin Watson <cjwatson@ubuntu.com>
9575
9576 * docs/grub.texi (Command-line and menu entry commands): Document
9577 date and echo commands.
9578
6b9b6276 95792009-09-24 Pavel Roskin <proski@gnu.org>
9580
9581 * include/grub/kernel.h (struct grub_module_header): Remove
9582 `grub_module_header_types'. Make `type' unsigned. Make `size'
9583 32-bit on all platforms.
9584 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
9585 8-bit field. Use grub_host_to_target32() for `size'.
9586 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
9587 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
9588 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
9589
4e5a02a7 95902009-09-24 Robert Millan <rmh.grub@aybabtu.com>
9591
9592 Fix "lost keypress" bug in at_keyboard.
9593
9594 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
9595 Checks for readyness of input buffer (without flushing it).
9596 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
9597 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
9598
c6dcedf6 95992009-09-24 Robert Millan <rmh.grub@aybabtu.com>
9600
9601 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
9602 size check within GRUB_MACHINE_PCBIOS section.
9603
74c958b1 96042009-09-24 Robert Millan <rmh.grub@aybabtu.com>
9605
9606 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
9607 return value.
9608 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
9609 KEYBOARD_ISREADY check.
9610 (grub_at_keyboard_checkkey): Rename to ...
9611 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
9612 Remove gratuitous cast.
9613
ff420223 96142009-09-23 Colin Watson <cjwatson@ubuntu.com>
9615
9616 * configure.ac: Call AC_PROG_MKDIR_P.
9617 * Makefile.in (docs/stamp-vti): Create docs directory. Create
9618 version.texi in $(builddir) rather than $(srcdir).
9619 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
9620 to makeinfo's @include search path.
9621
d96875df 96222009-09-23 Felix Zielcke <fzielcke@z-51.de>
9623
9624 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
9625
9b3f8365 96262009-09-23 Felix Zielcke <fzielcke@z-51.de>
9627
9628 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
9629 for `*.dpkg-new'.
9630
c44c90db 96312009-09-21 Colin Watson <cjwatson@ubuntu.com>
9632
9633 Build info documentation. Some code borrowed from Automake.
9634
9635 * configure.ac: Check for makeinfo.
9636 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
9637 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
9638 docs/version.texi.
9639 (MOSTLYCLEANFILES): Add vti.tmp.
9640 (docs/version.texi, docs/stamp-vti): Update automatically.
9641 (docs/grub.info): Build info documentation. Use --force and ignore
9642 errors for now.
9643 (all-local): Add $(INFOS).
9644 (install-local): Install info files.
9645 (uninstall): Uninstall info files.
9646 * docs/version.texi: Remove from revision control. This file is
9647 automatically generated on build now.
9648 * gendistlist.sh: Add `*.info'.
9649
e0b37bb5 96502009-09-21 Felix Zielcke <fzielcke@z-51.de>
9651
9652 * kern/term.c: Fix indentation.
9653
5a78865b 96542009-09-21 Felix Zielcke <fzielcke@z-51.de>
9655
9656 * util/hostdisk.c: Fix a comment.
9657
dace7e8a 96582009-09-20 Robert Millan <rmh.grub@aybabtu.com>
9659
9660 Fix regression introduced in r2539.
9661
9662 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
9663 to 0xA1.
9664
a83d079b 96652009-09-19 Colin Watson <cjwatson@ubuntu.com>
9666
9667 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 9668 os-prober. Under normal operation, it does not print anything to
9669 stderr; if it does, we need to debug it, and throwing away stderr
9670 makes that excessively difficult.
a83d079b 9671
be94a509 96722009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
9675
63f745e8 96762009-09-16 Robert Millan <rmh.grub@aybabtu.com>
9677
9678 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
9679 AC_LANG_PROGRAM from autoconf.
9680 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
9681 prototypes (fixes warning).
9682
9683 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
9684 `--disable-werror' was used.
9685
bbb2a70f 96862009-09-16 Robert Millan <rmh.grub@aybabtu.com>
9687
9688 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
9689 uninitialized `lastaddr'.
9690
77c24f1d 96912009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9692
0f0b8c87 9693 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 9694
07197f23 96952009-09-14 Colin Watson <cjwatson@ubuntu.com>
9696
9697 * commands/test.c (get_fileinfo): Return immediately if
9698 grub_fs_probe fails.
9699
dabf1798 97002009-09-14 José Martínez <xosemp@gmail.com>
9701
9702 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
9703
d52109a7 97042009-09-14 Colin Watson <cjwatson@ubuntu.com>
9705
9706 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
9707 output.
9708
56532179 97092009-09-13 Robert Millan <rmh.grub@aybabtu.com>
9710
9711 * configure.ac: Remove --enable-grub-pe2elf. Only build
9712 grub-pe2elf when needed by the build system itself.
9713 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
9714
8ef070f5 97152009-09-12 Robert Millan <rmh.grub@aybabtu.com>
9716
9717 * configure.ac: Bump version to 1.97~beta3.
9718 * docs/version.texi: Likewise.
9719
61229557 97202009-09-12 Robert Millan <rmh.grub@aybabtu.com>
9721
9722 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
9723 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
9724 from here ...
9725 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
9726 (grub_linux_setup_video): ... to here (with some adjustments).
9727
5c9f8d84 97282009-09-12 Robert Millan <rmh.grub@aybabtu.com>
9729
9730 Fix memory corruption issue (spotted by Colin Watson).
9731
9732 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
9733 causing returned size to be stored in an incorrect memory location.
9734 Fix use of uninitialized value when storing the returned size.
9735
e8f5d6e9 97362009-09-12 Yves Blusseau <blusseau@zetam.org>
9737
9738 Change clean rules to properly remove files
9739
9740 * genmk.rb: add new clean rules
9741 * Makefile.in (clean): add the new targets
9742 (mostlyclean): likewise
9743
cda2a409 97442009-09-11 Colin Watson <cjwatson@ubuntu.com>
9745
9746 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
9747 to grub_uint64_t.
9748 * fs/ntfs.c (init_file): Understand 64-bit sizes for
9749 non-resident files.
9750
86695375 97512009-09-11 Colin Watson <cjwatson@ubuntu.com>
9752
9753 * configure.ac: Don't look for help2man when cross-compiling. Fixes
9754 part of bug #27349.
9755
8aa1541a 97562009-09-10 Felix Zielcke <fzielcke@z-51.de>
9757
9758 * util/grub-mkconfig.in: Make the created config mode 400 and
9759 print a warning if it fails.
9760
48d9bb0a 97612009-09-10 Robert Millan <rmh.grub@aybabtu.com>
9762
9763 * util/grub.d/40_custom.in: Ask user to type custom entries below
9764 comment, rather than below 'exec tail' line.
9765
3b0521be 97662009-09-10 Colin Watson <cjwatson@ubuntu.com>
9767
9768 * util/grub.d/40_custom.in: Make sure that the explanatory text is
9769 visible in grub.cfg.
9770
50051d55 97712009-09-10 Colin Watson <cjwatson@ubuntu.com>
9772
9773 * util/grub.d/40_custom.in: Make it a little clearer how to use this
9774 file.
9775
c0d34387 97762009-09-10 Felix Zielcke <fzielcke@z-51.de>
9777
9778 * docs/grub.cfg: Add an example menu entry for memtest86+.
9779
80a608f3 97802009-09-09 Felix Zielcke <fzielcke@z-51.de>
9781
a2094832 9782 * config.guess: Update to latest version from config git.
80a608f3 9783 * config.sub: Likewise.
9784
99423078 97852009-09-08 Colin Watson <cjwatson@ubuntu.com>
9786
9787 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
9788 unknown-command case. Fixes bug #27320.
9789
44454e4c 97902009-09-08 Felix Zielcke <fzielcke@z-51.de>
9791
9792 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
9793 `help' if the command exists.
9794
e30d87ad 97952009-09-06 Robert Millan <rmh.grub@aybabtu.com>
9796
9797 * INSTALL: Require GCC 4.1.3 or later.
9798
9a86f1ec 97992009-09-06 Yves Blusseau <blusseau@zetam.org>
9800
9801 * Makefile.in (RMKFILES): add i386-qemu.rmk
9802 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
9803 $(srcdir)/stamp-h.in
9804
7f26d466 98052009-09-05 Robert Millan <rmh.grub@aybabtu.com>
9806
9807 * util/grub-probe.c (probe): Comment out buggy codepath, which
9808 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
9809 should be re-enabled after 1.97.
9810
3a613259 98112009-09-05 Felix Zielcke <fzielcke@z-51.de>
9812
9813 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
9814 find searches for.
9815
197f76c7 98162009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
9819 unnecessary calls to grub_error.
9820
70ba68ce 98212009-09-04 Colin Watson <cjwatson@ubuntu.com>
9822
9823 * NEWS: Mention `keystatus' and Unicode fonts.
9824
4ff0d7a4 98252009-09-04 Robert Millan <rmh.grub@aybabtu.com>
9826
9827 * configure.ac: Bump version to 1.97~beta2.
9828 * docs/version.texi: Likewise.
9829
77c55a87 98302009-09-03 Colin Watson <cjwatson@ubuntu.com>
9831
9832 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
9833 containing unwind information in some cases where it previously did
9834 not. Use -fno-dwarf2-cfi-asm if available to restore the old
9835 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
9836 discussion.
9837
f79572cd 98382009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
9839
9840 Embedding loadenv module into grub-emu
9841
9842 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
9843 commands/loadenv.c
9844 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
9845 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
9846 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
9847 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
9848 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
9849 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
9850
93a81088 98512009-09-03 Magnus Granberg <zorry@ume.nu>
9852
9853 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
9854 include -fPIE in the default specs.
9855 * configure.ac: Check if pie_possible is yes and add -fno-PIE
9856 to TARGET_CFLAGS.
9857
160034b2 98582009-09-03 Felix Zielcke <fzielcke@z-51.de>
9859
9860 * INSTALL: Note that GNU Bison 2.3 or later is required.
9861
087c07c4 98622009-09-03 Colin Watson <cjwatson@ubuntu.com>
9863
9864 * kern/i386/pc/startup.S: Fix typo.
9865
cbf978c0 98662009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9867
9868 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
9869 according to GCS.
9870
98712009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 9872
9873 * docs/grub.texi (Naming convention): Describe one-based partition
9874 numbering.
9875 (Device syntax): Likewise.
9876 (File name syntax): Likewise.
9877 (Block list syntax): Likewise.
9878 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
9879 menu.lst.
9880 (File name syntax): Likewise.
9881 (Command-line and menu entry commands): Document acpi, blocklist,
9882 crc, export, insmod, keystatus, ls, set, and unset commands.
9883
f3e8cdfd 98842009-09-02 Colin Watson <cjwatson@ubuntu.com>
9885
9886 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
9887 to avoid implying that only one of --shift, --ctrl, or --alt may be
9888 used.
9889
c0bc232b 98902009-09-02 Colin Watson <cjwatson@ubuntu.com>
9891
9892 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
9893 rather than comparing against S_IFREG, which will almost never work.
9894
aa0f752d 98952009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9896
9897 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
9898 (write_blocklists): Likewise.
9899
ecb3166a 99002009-09-01 Colin Watson <cjwatson@ubuntu.com>
9901
9902 * script/lua/grub_lua.h (fputs): Supply a format string as the first
9903 argument to grub_printf.
9904
c403a125 99052009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 9906
9907 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 9908 non GNU test.
31aba781 9909
b5e7312c 99102009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * kern/file.c (grub_file_read): Spelling fix
9913
fe00f472 99142009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9915
9916 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
9917 loading of headers in some cases.
9918
cc55302e 99192009-08-30 Robert Millan <rmh.grub@aybabtu.com>
9920
9921 * configure.ac: Bump version to 1.97~beta1.
9922 * docs/version.texi: Likewise.
9923
5c90cdd2 99242009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 9925
9926 * include/grub/i386/xnu.h: Add license header.
9927 include grub/err.h explicitly.
9928
c90edae4 99292009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9930
9931 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
9932 to `ufs' in the vfs.root.mountfrom kernel parameter.
9933
d8888b5c 99342009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9935
9936 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
9937
9938 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
9939 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
9940
9941 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
9942 `ARRAY_SIZE' macro.
9943
6f07b921 99442009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 * kern/file.c (grub_file_read): Check offset.
9947 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
9948 * fs/jfs.c (grub_jfs_read_file): Likewise.
9949 * fs/ntfs.c (grub_ntfs_read): Likewise.
9950 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
9951 * fs/minix.c (grub_minix_read_file): Correct offset check.
9952 * fs/ufs.c (grub_ufs_read_file): Likewise.
9953
b4f34077 99542009-08-28 Colin Watson <cjwatson@ubuntu.com>
9955
9956 * term/i386/pc/console.c (bios_data_area): Cast
9957 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
9958
e7c69859 99592009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 1-bit optimised blitters.
9962
9963 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
9964 prototype.
9965 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9966 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9967 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9968 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9969 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9970 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9971 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
9972 function.
9973 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9974 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9975 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9976 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9977 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9978 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9979 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
9980 when possible.
9981 * video/video.c (grub_video_get_blit_format): Return
9982 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
9983
a57da43f 99842009-08-28 Colin Watson <cjwatson@ubuntu.com>
9985
9986 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
9987 the first argument to grub_printf.
9988
4cbe67e5 99892009-08-28 Colin Watson <cjwatson@ubuntu.com>
99902009-08-28 Robert Millan <rmh.grub@aybabtu.com>
9991
9992 Add `getkeystatus' terminal method. Add a new `keystatus' command
9993 to query it.
9994
9995 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
9996 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
9997 modifier key bitmasks.
9998 (struct grub_term_input): Add `getkeystatus' member.
9999 (grub_getkeystatus): Add prototype.
10000 * kern/term.c (grub_getkeystatus): New function.
10001
10002 * include/grub/i386/pc/memory.h
10003 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
10004 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
10005 Data Area layout.
10006 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
10007 (grub_console_term_input): Set `getkeystatus' member.
10008 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
10009 constants.
10010 (grub_usb_keyboard_getreport): Likewise.
10011 (grub_usb_keyboard_checkkey): Likewise.
10012 (grub_usb_keyboard_getkeystatus): New function.
10013 (grub_usb_keyboard_term): Set `getkeystatus' member.
10014
10015 * commands/keystatus.c: New file.
10016 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
10017 (keystatus_mod_SOURCES): New variable.
10018 (keystatus_mod_CFLAGS): Likewise.
10019 (keystatus_mod_LDFLAGS): Likewise.
10020 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
10021 commands/keystatus.c.
10022 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10023 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10024 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10026 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10027 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 10028
6e2a9085 100292009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 Split befs.mod and afs.mod into *_be.mod and *.mod
10032
10033 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
10034 (grub_fstest_SOURCES): Likewise.
10035 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
10036 (afs_be_mod_SOURCES): New variable.
10037 (afs_be_mod_CFLAGS): Likewise.
10038 (afs_be_mod_LDFLAGS): Likewise.
10039 (befs_be_mod_SOURCES): Likewise.
10040 (befs_be_mod_CFLAGS): Likewise.
10041 (befs_be_mod_LDFLAGS): Likewise.
10042 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
10043 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10044 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10045 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10046 (grub_emu_SOURCES): Likewise.
10047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10048 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10049 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10050 * fs/afs_be.c: New file.
10051 * fs/befs_be.c: New file.
10052 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
10053 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
10054 (U16): Replaced with ...
10055 (grub_afs_to_cpu16): ...this. All users updated.
10056 (U32): Replaced with ...
10057 (grub_afs_to_cpu32): ...this. All users updated.
10058 (U64): Replaced with ...
10059 (grub_afs_to_cpu64): ...this. All users updated.
10060 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
10061 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 10062 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 10063 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
10064 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
10065 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
10066 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
10067 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
10068 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
10069 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
10070 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
10071
32a71655 100722009-08-26 Bean <bean123ch@gmail.com>
10073
10074 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
10075 64-bit number.
10076 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10077 (grub_xfs_inode_block): Change return type to grub_uint64_t.
10078 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
10079
552bf6c5 100802009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 NetBSD memory map support.
10083
10084 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
10085 (grub_netbsd_btinfo_mmap_header): New structure.
10086 (grub_netbsd_btinfo_mmap_entry): Likewise.
10087 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
10088
1ae2078c 100892009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 Enable bsd.mod on coreboot.
10092
10093 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
10094 (bsd_mod_SOURCES): New variable.
10095 (bsd_mod_CFLAGS): Likewise.
10096 (bsd_mod_LDFLAGS): Likewise.
10097 (bsd_mod_ASFLAGS): Likewise.
10098 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
10099 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
10100
beefc598 101012009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10102
10103 Cleanup NetBSD root support.
10104
10105 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
10106 grub_bsd_get_device.
10107 Fix typo.
10108
3b76e68b 101092009-08-25 Felix Zielcke <fzielcke@z-51.de>
10110
10111 * util/grub.d/00_header.in: Move check for the video backend of
10112 gfxterm from here ...
10113 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
10114 a suitable video backend.
10115
aea664ea 101162009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10117
10118 Fix breakage in grub-setup.
10119
10120 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
10121 "msdos_partition_map".
10122
ff747d50 101232009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 Fix breakage in normal/auth.c.
10126
10127 * normal/auth.c (grub_iswordseparator): New function.
10128
e7e1f93f 101292009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 Authentication support.
10132
10133 * commands/password.c: New file.
10134 * conf/common.rmk (pkglib_MODULES): Add password.mod.
10135 (password_mod_SOURCES): New variable.
10136 (password_mod_CFLAGS): Likewise.
10137 (password_mod_LDFLAGS): Likewise.
10138 (normal_mod_SOURCES): Add normal/auth.c.
10139 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
10140 normal/auth.c.
10141 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10142 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10143 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10145 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10146 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
10147 * include/grub/auth.h: New file.
10148 * include/grub/err.h (grub_err_t): New enum value
10149 GRUB_ERR_ACCESS_DENIED.
10150 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
10151 'users'.
10152 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
10153 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
10154 users updated.
10155 * normal/auth.c: New file.
10156 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
10157 (grub_cmdline_run): Don't allow to go to command line without
10158 authentication.
10159 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
10160 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
10161 menuentry without superuser rights.
10162 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
10163 user isn't a superuser.
10164
70f1161d 101652009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
10166
10167 Save space by inlining misc.c functions.
10168
10169 * kern/misc.c (grub_iswordseparator): Made static.
10170 * kern/misc.c (grub_strcat): Moved from here ...
10171 * include/grub/misc.h (grub_strcat): ... here. Inlined.
10172 * kern/misc.c (grub_strncat): Moved from here ...
10173 * include/grub/misc.h (grub_strncat): ... here. Inlined.
10174 * kern/misc.c (grub_strcasecmp): Moved from here ...
10175 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
10176 * kern/misc.c (grub_strncasecmp): Moved from here ...
10177 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
10178 * kern/misc.c (grub_isalpha): Moved from here ...
10179 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
10180 * kern/misc.c (grub_isdigit): Moved from here ...
10181 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
10182 * kern/misc.c (grub_isgraph): Moved from here ...
10183 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
10184 * kern/misc.c (grub_tolower): Moved from here ...
10185 * include/grub/misc.h (grub_tolower): ... here. Inlined.
10186
48e40bff 101872009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 * script/sh/function.c (grub_script_function_find): Cut error message
10190 not to flood terminal.
10191 * script/sh/lexer.c (grub_script_yylex): Remove command line length
10192 limit.
10193 * script/sh/script.c (grub_script_arg_add): Duplicate string.
10194
c385bfc3 101952009-08-24 Colin Watson <cjwatson@ubuntu.com>
10196
10197 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
10198 `report' grub_uint8_t *.
10199 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
10200 Use a 50-millisecond timeout rather than just repeating
10201 grub_usb_keyboard_getreport 50 times.
10202 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
10203
2d21e3e8 102042009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 Rename *_partition_map to part_*
10207
10208 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
10209 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
10210 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
10211 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
10212 All users updated.
10213 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
10214 All users updated.
10215 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
10216 * util/grub-probe.c (probe_partmap): Don't transform partition name
10217 to get module name.
10218
dd103c4e 102192009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 Fix OpenBSD and NetBSD support.
10222
10223 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
10224 memory address conflict.
10225 (OPENBSD_MMAP_ACPI): New definition.
10226 (OPENBSD_MMAP_NVS): Likewise.
10227 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
10228 and OPENBSD_MMAP_NVS.
10229 Add memory map terminator
10230 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 10231 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 10232
16c84d74 102332009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 Let user specify NetBSD root device.
10236
10237 * loader/i386/bsd.c (netbsd_root): New variable.
10238 (netbsd_opts): New option 'root'.
10239 (NETBSD_ROOT_ARG): New macro.
10240 (grub_netbsd_boot): Use 'netbsd_root'.
10241 (grub_bsd_unload): Free 'netbsd_root'.
10242 (grub_cmd_netbsd): Fill 'netbsd_root'.
10243
adb29902 102442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
10245
10246 Support for 64-bit NetBSD.
10247
10248 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
10249 point when booting non-FreeBSD.
10250
f5ae9f74 102512009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 Support --no-smp and --no-acpi for NetBSD.
10254
10255 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
10256 (NETBSD_AB_NOACPI): Likewise.
10257 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
10258 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
10259
de74f136 102602009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10261
10262 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
10263 errors.
10264 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
10265 errors. Call grub_error when needed.
10266
e9a925da 102672009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 * commands/search.c (search_fs): Try searching without autoload first.
10270 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
10271 filesystem module explicitly for faster booting.
10272
5174302b 102732009-08-23 Colin Watson <cjwatson@ubuntu.com>
10274
10275 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
10276
c8c80635 102772009-08-23 Colin Watson <cjwatson@ubuntu.com>
10278
10279 * util/grub.d/30_os-prober.in: Disable os-prober if
10280 `GRUB_DISABLE_OS_PROBER' was set to true.
10281
71acf5e5 102822009-08-23 Robert Millan <rmh.grub@aybabtu.com>
10283
10284 * partmap/pc.c: Rename to ...
10285 * partmap/msdos.c: ... this. Update all users.
10286 (grub_pc_partition_map): Rename to ...
10287 (grub_msdos_partition_map): ... this. Update all users.
10288
10289 * parttool/pcpart.c: Rename to ...
10290 * parttool/msdospart.c: ... this. Update all users.
10291
10292 * include/grub/pc_partition.h: Rename to ...
10293 * include/grub/msdos_partition.h: ... this. Update all users.
10294 (grub_pc_partition_bsd_entry): Rename to ...
10295 (grub_msdos_partition_bsd_entry): ... this. Update all users.
10296 (grub_pc_partition_disk_label): Rename to ...
10297 (grub_msdos_partition_disk_label): ... this. Update all users.
10298 (grub_pc_partition_entry): Rename to ...
10299 (grub_msdos_partition_entry): ... this. Update all users.
10300 (grub_pc_partition_mbr): Rename to ...
10301 (grub_msdos_partition_mbr): ... this. Update all users.
10302 (grub_pc_partition): Rename to ...
10303 (grub_msdos_partition): ... this. Update all users.
10304 (grub_pc_partition_is_empty): Rename to ...
10305 (grub_msdos_partition_is_empty): ... this. Update all users.
10306 (grub_pc_partition_is_extended): Rename to ...
10307 (grub_msdos_partition_is_extended): ... this. Update all users.
10308 (grub_pc_partition_is_bsd): Rename to ...
10309 (grub_msdos_partition_is_bsd): ... this. Update all users.
10310
10311 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
10312 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
10313 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
10314 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
10315 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
10316 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
10317 (gpt_mod_LDFLAGS): Rename to ...
10318 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
10319 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
10320 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
10321 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
10322 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
10323 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
10324 (part_gpt_mod_LDFLAGS): ... this.
10325 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
10326 `pcpart.mod' to `msdospart.mod'.
10327 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
10328 to ...
10329 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
10330 (msdospart_mod_LDFLAGS): ... this.
10331
c11fded5 103322009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
10335 (openbsd_opts): Likewise.
10336 (netbsd_opts): Likewise.
10337 (freebsd_flags): Added 0 terminator.
10338 (openbsd_flags): Likewise.
10339 (netbsd_flags): Likewise.
10340 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
10341 (grub_cmd_freebsd): Transformed into extended command.
10342 (grub_cmd_openbsd): Likewise.
10343 (grub_cmd_netbsd): Likewise.
10344 (cmd_freebsd): Changed type to grub_extcmd_t.
10345 (cmd_openbsd): Likewise.
10346 (cmd_netbsd): Likewise.
10347 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
10348 grub_cmd_openbsd as extended commands.
10349 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
10350 cmd_netbsd and cmd_openbsd
10351
11d1c769 103522009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
10353
10354 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
10355
7a9094e5 103562009-08-21 Pavel Roskin <proski@gnu.org>
10357
5496c37e 10358 * Makefile.in (install-local): When checking if a file is in the
10359 build directory, use "test -e" to detect symlinks.
10360
7a9094e5 10361 * Makefile.in (install-local): Remove all files in
10362 $(DESTDIR)$(pkglibdir) before installing new files there.
10363
e53cea11 103642009-08-18 Felix Zielcke <fzielcke@z-51.de>
10365
10366 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
10367 grub-mkelfimage.
10368
9aced544 103692009-08-18 Felix Zielcke <fzielcke@z-51.de>
10370
10371 * util/grub-mkconfig.in: Don't use gfxterm by default if not
10372 explicitly specified by the user.
10373
b7da6bab 103742009-08-18 Pavel Roskin <proski@gnu.org>
10375
10376 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
10377 grub_uint8_t pointer for data.
10378 * include/grub/fbutil.h (struct grub_video_fbblit_info):
10379 Likewise.
10380 * video/fb/fbutil.c: Remove unnecessary casts.
10381
19f1b335 103822009-08-17 Michal Suchanek <hramrach@centrum.cz>
10383
10384 VBE cleanup.
10385
10386 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
10387 (grub_vbe_set_video_mode): Save active mode info
10388 only after setting the mode.
10389 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
10390 second argument.
10391
2f467aa9 103922009-08-17 Michal Suchanek <hramrach@centrum.cz>
10393
10394 Rename variables for clarity.
10395
10396 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
10397 (active_vbe_mode_info): ... this. All users updated.
10398 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
10399 All users updated.
10400 (initial_mode): Rename to ...
10401 (initial_vbe_mode): ... this. All users updated.
10402 (mode_in_use): Rename to ..
10403 (vbe_mode_in_use): ... this. All users updated.
10404 (mode_list): Rename to ..
10405 (vbe_mode_list): ... this. All users updated.
10406 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
10407 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
10408 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
10409 'mode_list_size' to 'vbe_mode_list_size'.
10410 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
10411 'best_mode_info' to 'best_vbe_mode_info' and
10412 'best_mode' to 'best_vbe_mode'
10413
6025fcd7 104142009-08-17 Michal Suchanek <hramrach@centrum.cz>
10415
10416 Remove duplicate grub_video_fb_get_video_ptr.
10417
10418 * include/grub/fbutil.h (get_data_ptr): Rename to ...
10419 (grub_video_fb_get_video_ptr): ... this.
10420 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
10421 * video/fb/fbutil.c: Add comment about addressing.
10422 (get_data_ptr): Rename to ...
10423 (grub_video_fb_get_video_ptr): ... this. All users updated.
10424 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
10425
cc8c6faf 104262009-08-17 Robert Millan <rmh.grub@aybabtu.com>
10427
10428 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
10429 grub_dprintf() that was just added.
10430
08aa61f0 104312009-08-17 Robert Millan <rmh.grub@aybabtu.com>
10432
10433 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
10434 (DEFAULT_VIDEO_MODE): Remove macros.
10435 (grub_linux_boot): Remove assumption that Linux has FB support,
10436 and use "text" as default video mode.
10437
7cef4f75 104382009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
10439
10440 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
10441 grub_dprintf.
10442 * fs/fat.c (grub_fat_read_data): Likewise.
10443
e1f39873 104442009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
10447 payload.
10448 (grub_module): Likewise.
10449
c166d79e 104502009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
10451
10452 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
10453 mbi->cmdline but free playground.
10454
c60cee8e 104552009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 Handle group offset on UFS1.
10458
10459 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
10460 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
10461
c0d8b5d4 104622009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
10463
10464 Split ufs.mod into ufs1.mod and ufs2.mod.
10465
10466 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
10467 (grub_fstest_SOURCES): Likewise.
10468 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
10469 (ufs_mod_SOURCES): Remove.
10470 (ufs_mod_CFLAGS): Likewise.
10471 (ufs_mod_LDFLAGS): Likewise.
10472 (ufs1_mod_SOURCES): New variable.
10473 (ufs1_mod_CFLAGS): Likewise.
10474 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 10475 (ufs2_mod_SOURCES): New variable.
10476 (ufs2_mod_CFLAGS): Likewise.
10477 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 10478 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
10479 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
10480 Likewise.
10481 (grub_emu_SOURCES): Likewise.
10482 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10483 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10484 (grub_setup_SOURCES): Likewise.
10485 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10486 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
10487 (grub_setup_SOURCES): Likewise.
10488 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
10489 Likewise.
10490 * fs/ufs2.c: New file.
10491 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
10492
d3539132 104932009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 Framebuffer split.
10496
10497 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
10498 subsystem at the end.
10499 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
10500 (video_fb_mod_SOURCES): New variable.
10501 (video_fb_mod_CFLAGS): Likewise.
10502 (video_fb_mod_LDFLAGS): Likewise.
10503 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
10504 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
10505 * video/i386/pc/vbeblit.c: Moved from here ...
10506 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
10507 * video/i386/pc/vbefill.c: Moved from here ...
10508 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
10509 * video/i386/pc/vbeutil.c: Moved from here ...
10510 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
10511 * include/grub/i386/pc/vbeblit.h: Moved from here ...
10512 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
10513 * include/grub/i386/pc/vbefill.h: Moved from here ...
10514 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
10515 * include/grub/i386/pc/vbeutil.h: Moved from here ...
10516 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
10517 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
10518 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
10519 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
10520 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
10521 (grub_video_adapter): Added 'get_info_and_fini'.
10522 (grub_video_get_info_and_fini): New prototype.
10523 (grub_video_set_mode): make modestring const char *.
10524 * loader/i386/linux.c (grub_linux_setup_video): Use
10525 grub_video_get_info_and_fini.
10526 (grub_linux_boot): Move modesetting just before booting.
10527 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
10528 grub_video_get_info_and_fini.
10529 * video/i386/pc/vbe.c: Moved framebuffer part ...
10530 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
10531 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
10532 grub_video_fbstd_colors and grub_video_fb_set_palette.
10533 (grub_video_vbe_init): Clear 'framebuffer' variable and use
10534 grub_video_fb_init.
10535 (grub_video_vbe_fini): Use grub_video_fb_fini.
10536 (grub_video_vbe_setup): Use framebuffer.render_target instead of
10537 render_target and use grub_video_fb_set_active_render_target and
10538 grub_video_fb_set_palette.
10539 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
10540 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
10541 (grub_video_vbe_adapter): Use framebuffer.
10542 * video/video.c (grub_video_get_info_and_fini): New function.
10543 (grub_video_set_mode): Make modestring const char *.
10544 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
10545 values are already initialised.
10546
d404ee56 105472009-08-14 Pavel Roskin <proski@gnu.org>
10548
10549 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
10550 ABS and APPLE_CC.
10551 * boot/i386/pc/diskboot.S: Likewise.
10552 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
10553 sectors allow compilation on MacOSX.
10554 * conf/i386-pc.rmk: Enable unconditional compilation of
10555 lnxboot.img.
10556
9a10df16 105572009-08-13 Colin Watson <cjwatson@ubuntu.com>
10558
10559 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
10560 * util/grub.d/00_header.in: Enter interruptible sleep if
10561 GRUB_HIDDEN_TIMEOUT is set.
10562
be3c9ca7 105632009-08-13 Yves Blusseau <blusseau@zetam.org>
10564
10565 * include/grub/symbol.h: Add the LOCAL macro.
10566 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
10567 starting with "L_".
10568
1f9e557e 105692009-08-13 Pavel Roskin <proski@gnu.org>
10570
9ca62843 10571 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
10572 any modern compilers we support.
10573
1f9e557e 10574 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
10575 Use local labels starting with "L_" so that Apple assembler
10576 knows they are local.
10577
81623db6 105782009-08-10 Robert Millan <rmh.grub@aybabtu.com>
10579
10580 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
10581 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
10582 (bsd_kernel_types): ... this enum.
10583
10584 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
10585 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
10586 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
10587
10588 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
10589 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
10590 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
10591 messages.
10592
f5d35e7a 105932009-08-08 Robert Millan <rmh.grub@aybabtu.com>
10594
10595 * util/grub-dumpdevtree: Moved from here ...
10596 * util/i386/efi/grub-dumpdevtree: ... to here.
10597 (hexify): New function. Converts a string to its hex version.
10598 Generate hex versions of "efi" and "device-properties" by calling
10599 hexify() on the ASCII strings rather than by hardcoding numbers.
10600
d1e1d527 106012009-08-08 Robert Millan <rmh.grub@aybabtu.com>
10602
10603 * fs/jfs.c: Update copyright year.
10604
1ebbe064 106052009-08-08 Felix Zielcke <fzielcke@z-51.de>
10606
10607 * util/grub.d/00_header.in: Fix a comment.
10608 * util/grub.d/10_linux.in: Likewise.
10609 * util/grub.d/10_windows.in: Likewise.
10610 * util/grub.d/10_hurd.in: Likewise.
10611
a78c8d24 106122009-08-08 Felix Zielcke <fzielcke@z-51.de>
10613
10614 * util/grub-mkconfig.in: Allow the user to specify the used font
10615 with GRUB_FONT.
10616
29a6b9e8 106172009-08-08 Pavel Roskin <proski@gnu.org>
10618
b5f16cc4 10619 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
10620 available, xfs.mod needs it now.
10621
2f5cb827 10622 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
10623 the "g" modifier in sed when the intention is to strip something
10624 once. This fixes comparison of kernels with multiple dashes.
10625
29a6b9e8 10626 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
10627 on it. Add missing space before closing bracket. Fix
10628 misleading formatting.
10629
892a3d98 106302009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10631
10632 * docs/grub.texi: Major overhaul. Remove all sections that are
10633 specific to GRUB Legacy, or mostly composed of Legacy-specific
10634 information.
10635
ed94253f 106362009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10637
10638 * docs/version.texi: New file. Provides version information for
10639 grub.texi.
10640
126d6628 106412009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10642
10643 * docs/grub.texi: Update CVS information to SVN.
10644 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
10645
998b5aa9 106462009-08-07 Felix Zielcke <fzielcke@z-51.de>
10647
10648 * util/grub-mkconfig.in: Remove a wrong `fi'.
10649
818e094a 106502009-08-07 Felix Zielcke <fzielcke@z-51.de>
10651
10652 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
10653 (grub_jfs_uuid): New function.
10654 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
10655
b969c52f 106562009-08-07 Felix Zielcke <fzielcke@z-51.de>
10657
10658 * util/grub-mkconfig_lib.in (font_path): Move the functionality
10659 of it to ...
10660 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
10661 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
10662
7a4894cc 106632009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10664
10665 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
10666 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
10667 Update all users.
10668
10669 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
10670 not just "vmlinu[zx]".
10671 Moved from here ...
10672 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
10673 all users.
10674
10675 * util/grub.d/10_linux.in (find_latest): Moved from here ...
10676 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
10677 all users.
10678
4e2171f8 106792009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10680
10681 * util/grub.d/10_freebsd.in: Use an absolute device path for
10682 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
10683
6dcfcb32 106842009-08-06 Felix Zielcke <fzielcke@z-51.de>
10685
10686 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
10687 handling of multiple abstraction modules.
10688
f56a8756 106892009-08-04 Robert Millan <rmh.grub@aybabtu.com>
10690
10691 Fix a bug resulting in black screen when loading Linux using a
10692 packed video mode.
10693
10694 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
10695 function.
10696
10697 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
10698 (grub_vbe_bios_getset_dac_palette_width): New function.
10699 (grub_vbe_bios_get_dac_palette_width)
10700 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
10701 grub_vbe_bios_getset_dac_palette_width()).
10702
10703 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
10704 check for return status.
10705 (grub_vbe_get_video_mode_info): When getting information for a packed
10706 mode (<= 8 bpp), obtain DAC palette width using
10707 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
10708 {red,green,blue}_mark_size.
10709
222671b2 107102009-08-04 Felix Zielcke <fzielcke@z-51.de>
10711
ecb1a6d9 10712 * commands/search.c (options): Fix help output to match actual code.
222671b2 10713
f84114f5 107142009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
10715
10716 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
10717 of homegrown code.
10718
bd288a20 107192009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 10720
10721 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
10722 on XFS or ReiserFS.
10723
8aab5e25 107242009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
10725
10726 Support Apple partition map with sector size different from 512 bytes.
10727
10728 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
10729 (apple_partition_map_iterate): Respect 'aheader.blocksize'
10730 and 'apart.partmap_size'.
10731
6ad6258a 107322009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
107332009-08-01 Robert Millan <rmh.grub@aybabtu.com>
10734
10735 Fix cpuid command.
10736
10737 * commands/i386/cpuid.c (options): New variable.
10738 (grub_cmd_cpuid): Return real error.
10739 (GRUB_MOD_INIT(cpuid)): Declare options.
10740
67459bc6 107412009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
10742
10743 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
10744 valid.
10745
fbc6ab54 107462009-07-31 Bean <bean123ch@gmail.com>
10747
10748 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
10749 log2_inode.
10750 (grub_fshelp_node): Move inode field to the end.
10751 (grub_xfs_data): Remove inode field.
10752 (grub_xfs_inode_block): Calculate inode size using sblock.
10753 (grub_xfs_inode_offset): Likewise.
10754 (grub_xfs_read_inode): Calculate inode size using sblock.
10755 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
10756 (grub_xfs_iterate_dir): Calculate inode size using sblock.
10757 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
10758 to match inode size.
10759 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
10760 not accessible when data is null.
10761 (grub_xfs_open): Likewise.
10762
f45d6cfc 107632009-07-31 Bean <bean123ch@gmail.com>
10764
10765 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
10766 Don't change pv->disk if it's already set.
10767
10768 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
10769 (grub_raid_register): ... here.
10770 (grub_raid_rescan): Removed.
10771
10772 * include/grub/raid.h (grub_raid_rescan): Removed.
10773
10774 * util/grub-fstest.c: Remove include file <grub/raid.h>.
10775 (fstest): Replace grub_raid_rescan with module fini function followed
10776 by init function.
10777
10778 * util/grub-probe.c: Add include file <grub/raid.h>.
10779 (probe_raid_level): New function.
10780 (probe): Detect abstraction by walking the disk device, support two
10781 level of abstraction (LVM on RAID) when detecting partition map.
10782
24443b5a 107832009-07-31 Pavel Roskin <proski@gnu.org>
10784
10785 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
10786 to grub_zalloc(), it was erroneous.
10787 Reported by Bean <bean123ch@gmail.com>
10788
a275d9e7 107892009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 10792 embedding zone, not only the first one.
a275d9e7 10793
56c5a47f 107942009-07-29 Joe Auricchio <jauricchio@gmail.com>
10795
10796 * term/gfxterm.c (clear_char): New function.
10797 (grub_virtual_screen_setup): Use clear_char.
10798 (scroll_up): Likewise.
10799 (grub_virtual_screen_cls): Likewise.
10800
67bb323a 108012009-07-29 Felix Zielcke <fzielcke@z-51.de>
10802
10803 * util/deviceiter.c (get_acceleraid_disk_name): New static
10804 function.
10805 (grub_util_iterate_devices): Handle Accelraid devices.
10806 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
10807
388a7c75 108082009-07-28 Robert Millan <rmh.grub@aybabtu.com>
10809
10810 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
10811 separator for the suggested gfxpayload string (';' collides with the
10812 parser and needs escaping).
10813
3bb7abcf 108142009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
10817 Clear direction flag before jumping to OS.
10818 (grub_multiboot2_real_boot): Likewise.
10819
2ddd36d7 108202009-07-28 Felix Zielcke <fzielcke@z-51.de>
10821
10822 * util/i386/pc/grub-install: Fix parsing of --disk-module
10823 option.
10824
c521b62b 108252009-07-28 Felix Zielcke <fzielcke@z-51.de>
10826
10827 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
10828 when embedding.
10829
880e0a0c 108302009-07-26 Felix Zielcke <fzielcke@z-51.de>
10831
10832 * util/grub-mkconfig.in (package_version): New variable.
10833 Use it do display the version.
10834
2366e356 108352009-07-25 Felix Zielcke <fzielcke@z-51.de>
10836
10837 * kern/file.c (grub_file_open): Revert to previous check with
10838 grub_errno.
10839
7ad8c80e 108402009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
10843 from help line. It's out of sync with code.
10844
72b9658b 108452009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
10848 entries on failed boot.
10849
77435277 108502009-07-25 Felix Zielcke <fzielcke@z-51.de>
10851
10852 * kern/file.c (grub_file_open): Fix an error check.
10853
fcaa8b21 108542009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
10855
35d16c74 10856 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
10857 partition map couldn't be identified.
fcaa8b21 10858
48904cd1 108592009-07-23 Pavel Roskin <proski@gnu.org>
10860
ef3c317f 10861 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
10862 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
10863 case of little endian words becomes just an optimization.
10864 Respect const modifier.
ad8ea1f4 10865 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 10866
48904cd1 10867 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
10868 to avoid loss of upper bits if align is unsigned and shorter
10869 than addr.
10870
260c9a89 108712009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 UUID support for UFS
10874
10875 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
10876 (grub_ufs_uuid): New function.
10877 (grub_ufs_fs): add .uuid
10878
f76ce889 108792009-07-21 Pavel Roskin <proski@gnu.org>
10880
10881 * kern/dl.c (grub_dl_check_header): Make static.
10882
6a6cbcaf 108832009-07-21 Felix Zielcke <fzielcke@z-51.de>
10884
10885 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
10886 add drivemap for Vista. It breaks Windows 7.
10887
cffcddb2 108882009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10889
10890 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
10891 128 bytes
10892
1ef44b80 108932009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 Add BFS support
10896
10897 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
10898 (grub_fstest_SOURCES): Likewise.
10899 (pkglib_MODULES): Add befs.mod.
10900 (befs_mod_SOURCES): New variable.
10901 (befs_mod_CFLAGS): Likewise.
10902 (befs_mod_LDFLAGS): Likewise.
10903 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10904 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10905 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10906 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10907 (grub_setup_SOURCES): Likewise.
10908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10909 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10910 (grub_setup_SOURCES): Likewise.
10911 * fs/befs.c: New file.
10912 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
10913 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
10914 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
10915 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
10916 (B_KEY_INDEX_ALIGN): New declaration.
10917 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
10918 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
10919 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
10920 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
10921 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
10922 (grub_afs_mount) [MODE_BFS]: Likewise.
10923 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
10924 (grub_afs_fs): Use GRUB_AFS_FSNAME
10925 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
10926 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
10927 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
10928 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
10929
4f253044 109302009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
10931
10932 * util/getroot.c (find_root_device): Add support for MacOSX.
10933 * util/hostdisk.c: Likewise.
10934
57a55913 109352009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10936
10937 * font/font.c (find_glyph): Check whether a font is present to avoid
10938 segmentation fault.
75421ca9 10939
109402009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 10941
10942 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
10943
e98cd0c2 109442009-07-20 Pavel Roskin <proski@gnu.org>
10945
10946 * configure.ac: Trim excessively wordy excuses.
10947
1d2d169a 109482009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 Add symlink, mtime and label support to AtheFS.
10951
10952 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
10953 (grub_afs_iterate_dir): Handle symlinks.
10954 (grub_afs_open): Use grub_afs_read_symlink.
10955 (grub_afs_dir): Likewise.
10956 Pass mtime.
10957 (grub_afs_label): New function.
10958 (grub_afs_fs): Add grub_afs_label.
10959 (grub_afs_read_symlink): New function.
10960
186f3189 109612009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10962
10963 Fix AtheFS support.
10964
10965 * fs/afs.c: Fix comments style.
10966 (grub_afs_blockrun): Declare as packed.
10967 (grub_afs_datastream): Likewise.
10968 (grub_afs_bnode): Likewise.
10969 (grub_afs_btree): Likewise.
10970 (grub_afs_sblock): Likewise.
10971 Declare `name' as char.
10972 (grub_afs_inode): Declare as packed.
10973 Change void *vnode to grub_uint32_t unused.
10974 (grub_afs_iterate_dir): Check that key_size is positive.
10975 (grub_afs_mount): Don't read superblock twice.
75421ca9 10976 (grub_afs_dir): Don't free node in case of error,
186f3189 10977 grub_fshelp_find_file already handles this.
10978 (grub_afs_open): Likewise.
10979
5680109e 109802009-07-19 Pavel Roskin <proski@gnu.org>
10981
10982 * Makefile.in: Remove LIBLZO and enable_lzo.
10983 * conf/i386-pc.rmk: Remove lzo support.
10984 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
10985 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
10986 support.
10987 * kern/i386/pc/lzo1x.S: Remove.
10988 * kern/i386/pc/startup.S: Remove lzo support.
10989 * util/i386/pc/grub-mkimage.c: Likewise.
10990
ac70fa32 109912009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
10992
10993 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
10994 * fs/xfs.c (grub_xfs_dir): Likewise.
10995 * fs/afs.c (grub_afs_dir): Likewise.
10996 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10997 (grub_iso9660_open): Likewise.
10998 * fs/jfs.c (grub_jfs_open): Likewise.
10999 * fs/ext2.c (grub_ext2_dir): Likewise.
11000 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
11001 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 11002
eab58da2 110032009-07-16 Pavel Roskin <proski@gnu.org>
11004
d2838156 11005 * configure.ac: Never add "-c" to CFLAGS.
11006
55c70904 11007 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
11008
43e6200c 11009 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
11010 grub_cv_cc_efiemu should be used.
11011
ce7a733d 11012 * configure.ac: Typo fixes.
11013
eab58da2 11014 * kern/mm.c (grub_zalloc): New function.
11015 (grub_debug_zalloc): Likewise.
11016 * include/grub/mm.h: Declare grub_zalloc() and
11017 grub_debug_zalloc().
11018 * util/misc.c (grub_zalloc): New function.
11019 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
11020 instead of grub_malloc(), remove unneeded initializations.
11021 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
11022 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
11023 * commands/parttool.c (grub_cmd_parttool): Likewise.
11024 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
11025 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
11026 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
11027 * disk/usbms.c (grub_usbms_finddevs): Likewise.
11028 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
11029 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
11030 (grub_cmd_efiemu_pnvram): Likewise.
11031 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
11032 * fs/iso9660.c (grub_iso9660_mount): Likewise.
11033 (grub_iso9660_iterate_dir): Likewise.
11034 * fs/jfs.c (grub_jfs_opendir): Likewise.
11035 * fs/ntfs.c (list_file): Likewise.
11036 (grub_ntfs_mount): Likewise.
11037 * kern/disk.c (grub_disk_open): Likewise.
11038 * kern/dl.c (grub_dl_load_core): Likewise.
11039 * kern/elf.c (grub_elf_file): Likewise.
11040 * kern/env.c (grub_env_context_open): Likewise.
11041 (grub_env_set): Likewise.
11042 (grub_env_set_data_slot): Likewise.
11043 * kern/file.c (grub_file_open): Likewise.
11044 * kern/fs.c (grub_fs_blocklist_open): Likewise.
11045 * loader/i386/multiboot.c (grub_module): Likewise.
11046 * loader/xnu.c (grub_xnu_create_key): Likewise.
11047 (grub_xnu_create_value): Likewise.
11048 * normal/main.c (grub_normal_add_menu_entry): Likewise.
11049 (read_config_file): Likewise.
11050 * normal/menu_entry.c (make_screen): Likewise.
11051 * partmap/sun.c (sun_partition_map_iterate): Likewise.
11052 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
11053 * script/sh/script.c (grub_script_parse): Likewise.
11054 * video/bitmap.c (grub_video_bitmap_create): Likewise.
11055 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11056 * video/readers/png.c (grub_png_output_byte): Likewise.
11057 (grub_video_reader_png): Likewise.
11058
830afef7 110592009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 11060
11061 Enable all targets that can be built by default
11062
830afef7 11063 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 11064 grub-mkfont and grub-fstest if they can be built
11065
ee293aee 110662009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 Fix hang and segmentation fault in grub-emu-usb
11069
11070 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
11071 * util/usb.c (grub_libusb_devices): likewise
11072 (grub_libusb_init): rename to ...
11073 (GRUB_MOD_INIT (libusb)):...this
11074 (grub_libusb_fini): rename to ..
11075 (GRUB_MOD_FINI (libusb)):...this
11076 * disk/usbms.c (grub_usbms_transfer): fix retry logic
11077 * include/grub/disk.h (grub_raid_init): removed, it's useless
11078 (grub_raid_fini): likewise
11079 (grub_lvm_init): likewise
11080 (grub_lvm_fini): likewise
11081 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
11082 by grub_init_all
11083
94414221 110842009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
11085
11086 Fix libusb
11087
11088 * Makefile.in (LIBUSB): new macro
11089 * genmk.rb (Utility/print_tail): new method
11090 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
11091 (top level): call util.print_tail at the end.
11092
59ade63d 110932009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 Make FreeBSD accept zpool.cache
11096
11097 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
11098 type is /boot/zfs/zpool.cache
11099
a58da8c7 111002009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
11101
11102 Fix 64-bit efiemu
11103
11104 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
11105 correct wrong typedef
11106 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
11107
20591577 111082009-07-15 Pavel Roskin <proski@gnu.org>
11109
560ca572 11110 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
11111 * kern/disk.c (struct grub_disk_cache): Likewise.
11112
e8e8e4fd 11113 * commands/probe.c (options): Typo fix.
11114
fde24e10 11115 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
11116 Increase to 0x5a to accommodate FAT32. Adjust other offsets
11117 accordingly.
11118 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
11119
379c54c1 11120 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
11121 the end of "Error" to make the message more readable.
11122
7bd8f5bf 11123 * boot/i386/pc/boot.S (kernel_segment): Remove.
11124 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
11125 for destination.
11126
40b132c5 11127 * boot/i386/pc/boot.S (boot_version): Remove.
11128 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
11129 Remove.
11130
20591577 11131 * include/grub/i386/pc/boot.h: Sort all offsets.
11132 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
11133 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
11134 * boot/i386/pc/boot.S: Assert location of every offset listed in
11135 include/grub/i386/pc/boot.h.
11136
2df32b2c 111372009-07-13 Pavel Roskin <proski@gnu.org>
11138
44b5d879 11139 * include/grub/i386/coreboot/machine.h: Rename
11140 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
11141 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
11142 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
11143
17dc3751 11144 * kern/dl.c: Force native word size to suppress warnings when
11145 compiling grub-emu.
11146
2df32b2c 11147 * kern/device.c (grub_device_iterate): Change struct part_ent to
11148 hold the name, not a pointer to it. Use one grub_malloc() per
11149 partition, not two. Free partition_name if grub_malloc() fails.
11150 Set ents to NULL only before grub_partition_iterate() is called.
11151
75c59f59 111522009-07-11 Bean <bean123ch@gmail.com>
11153
11154 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
11155 childname.
11156
0ae1bf88 111572009-07-10 Bean <bean123ch@gmail.com>
111582009-07-10 Robert Millan <rmh.grub@aybabtu.com>
11159
11160 * kern/ieee1275/openfw.c (grub_children_iterate)
11161 (grub_devalias_iterate): Fix size evaluation for property or path
11162 strings, which was broken since r2132.
11163
8279cade 111642009-07-07 Pavel Roskin <proski@gnu.org>
11165
7d8a52d3 11166 * commands/search.c (search_file): Merge into ...
11167 (search_fs): ... this. Accept search type as argument.
11168 (grub_cmd_search): Pass search type to search_fs().
11169
25f9a05a 11170 * include/grub/util/console.h: New file.
11171 * util/console.c: Use it instead of grub/machine/console.h.
11172 * util/grub-emu.c: Likewise.
11173
8279cade 11174 * lib/arg.c (find_long_option): Remove.
11175 (find_long): Add `len' argument, make `s' const char *.
11176 (grub_arg_parse): Parse long options in place, not in a
11177 temporary buffer.
11178
4a11b60f 111792009-07-06 Pavel Roskin <proski@gnu.org>
11180
99f68041 11181 * commands/search.c (search_fs): Fix potential NULL pointer
11182 dereference.
11183
4a11b60f 11184 * commands/search.c (search_fs): Replace QUID macro with quid_fn
11185 function pointer.
11186
e110f4de 111872009-07-06 Daniel Mierswa <impulze@impulze.org>
11188
11189 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
11190 comparison.
11191
46eeb6a2 111922009-07-05 Pavel Roskin <proski@gnu.org>
11193
bab74958 11194 * include/grub/i386/linux.h (struct linux_kernel_params):
11195 Restore padding3, it's still needed.
11196
46eeb6a2 11197 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
11198 FreeBSD.
11199 * util/osdetect.lua: Likewise.
11200
b4a1dc79 112012009-07-05 Bean <bean123ch@gmail.com>
11202
11203 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
11204
11205 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
11206 (grub_lua_getenv): Likewise.
11207 (grub_lua_setenv): Likewise.
11208 (save_errno): New function.
11209 (push_result): Likewise.
11210 (grub_lua_enum_device): Likewise.
11211 (grub_lua_enum_file): Likewise.
11212 (grub_lua_file_open): Likewise.
11213 (grub_lua_file_close): Likewise.
11214 (grub_lua_file_seek): Likewise.
11215 (grub_lua_file_read): Likewise.
11216 (grub_lua_file_getline): Likewise.
11217 (grub_lua_file_getsize): Likewise.
11218 (grub_lua_file_getpos): Likewise.
11219 (grub_lua_file_eof): Likewise.
11220 (grub_lua_file_exist): Likewise.
11221 (grub_lua_add_menu): Likewise.
11222
11223 * script/lua/grub_lua.h (isupper): New inline function.
11224 (islower): Likewise.
11225 (ispunct): Likewise.
11226 (isxdigit): Likewise.
11227 (strcspn): Change to normal function.
11228 (strpbkr): New function declaration.
11229 (memchr): Likewise.
11230
11231 * script/lua/grub_main.c (scan_str): New function.
11232 (strcspn): Likewise.
11233 (strpbrk): Likewise.
11234 (memchr): Likewise.
11235
11236 * script/lua/linit.c (lualibs): Enable the string library.
11237
11238 * util/osdetect.lua: New file.
11239
2da92295 112402009-07-04 Robert Millan <rmh.grub@aybabtu.com>
11241
11242 * include/grub/i386/linux.h (struct linux_kernel_params): Add
11243 `capabilities' member.
11244
b2582ec9 112452009-07-02 Pavel Roskin <proski@gnu.org>
11246
11247 * genparttoollist.sh: Add missing newline at the end.
11248
32622956 112492009-07-01 Pavel Roskin <proski@gnu.org>
11250
87a7339e 11251 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
11252
d23af54e 11253 * util/hostdisk.c (open_device): Remove `const' from
11254 `sysctl_size', as sysctlbyname() can change it (in this case it
11255 doesn't actually happen).
11256
c94b18a9 11257 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
11258 using signed long int constants.
11259
c6cd3ef0 11260 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
11261 constant to avoid a warning on FreeBSD.
11262
0df63420 11263 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
11264 where it's needed.
11265
999577f1 11266 * Makefile.in: Install include/grub/machine symlink.
11267
6f41557f 11268 * Makefile.in: When installing symlinks, use "cp -fR", which
11269 works on FreeBSD and MacOSX.
11270 From Yves Blusseau <cl7m42e02@sneakemail.com>
11271
c8d22988 11272 * kern/dl.c (grub_dl_resolve_symbol): Make static.
11273 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
11274
1b96e952 11275 * util/misc.c: Move grub_reboot() and grub_halt() ...
11276 * util/grub-emu.c: ... here. Make main_env static.
11277 * include/grub/util/misc.h: Remove main_env.
11278
2ef0084d 11279 * kern/mm.c: Use correct format to print size_t.
11280
32622956 11281 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
11282 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
11283 * kern/powerpc/dl.c: Likewise.
11284 * kern/sparc64/dl.c: Likewise.
11285 * kern/x86_64/dl.c: Likewise.
11286
3f7f0cd0 112872009-07-01 Robert Millan <rmh.grub@aybabtu.com>
11288
11289 Fix grub-emu build on sparc64-ieee1275.
11290
75421ca9 11291 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 11292 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
11293
211d06b5 112942009-07-01 Robert Millan <rmh.grub@aybabtu.com>
11295
11296 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
11297 (grub_reboot, grub_halt): New functions.
11298
11299 * util/i386/pc/misc.c: Delete. Update all users.
11300 * util/sparc64/ieee1275/misc.c: Likewise.
11301 * util/powerpc/ieee1275/misc.c: Likewise.
11302
aaf53e3c 113032009-07-01 Robert Millan <rmh.grub@aybabtu.com>
11304
11305 * conf/i386.rmk (setjmp_mod_SOURCES)
11306 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
11307 * conf/common.rmk (setjmp_mod_SOURCES)
11308 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
11309 to use $(target_cpu).
11310 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
11311 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
11312 * conf/powerpc-ieee1275.rmk: Likewise.
11313 * conf/sparc64-ieee1275.rmk: Likewise.
11314
11315 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
11316 $(target_cpu) for kern/$(target_cpu)/dl.c.
11317 * conf/i386-efi.rmk: Likewise.
11318 * conf/i386-ieee1275.rmk: Likewise.
11319 * conf/x86_64-efi.rmk: Likewise.
11320 * conf/i386-coreboot.rmk: Likewise.
11321 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
11322 $(target_cpu) for kern/$(target_cpu)/dl.c and for
11323 kern/$(target_cpu)/cache.S.
11324 * conf/sparc64-ieee1275.rmk: Likewise.
11325
a337130b 113262009-07-01 Robert Millan <rmh.grub@aybabtu.com>
11327
11328 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
11329 type to `grub_uint8_t', and adjust `padding9' accordingly.
11330
c6fe4d53 113312009-06-29 Robert Millan <rmh.grub@aybabtu.com>
11332
b09db61d 11333 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
11334
c6fe4d53 11335 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
11336 assembly in final jump, using register constraints.
11337
b09db61d 11338 (grub_linux_boot): For text mode, initialize `have_vga' using
11339 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
11340
11341 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
11342 right before the final jump.
11343
11344 Set `video_mode' to 0x3.
11345
11346 Document initialization of `video_page', `video_mode' and
11347 `video_ega_bx'.
11348
28333ad0 113492009-06-29 Robert Millan <rmh.grub@aybabtu.com>
11350
11351 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
11352 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 11353 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 11354
02164e1b 113552009-06-29 Robert Millan <rmh.grub@aybabtu.com>
11356
11357 Fix build on Debian / sparc.
11358
11359 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
11360
18b6c557 113612009-06-28 Pavel Roskin <proski@gnu.org>
11362
85f2aab6 11363 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
11364 fix a warning.
11365
18b6c557 11366 * util/grub.d/10_linux.in: Match SUSE style initrd names.
11367
ad760f81 113682009-06-27 Robert Millan <rmh.grub@aybabtu.com>
11369
11370 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
11371 `err'.
11372
87a4623b 113732009-06-27 Robert Millan <rmh.grub@aybabtu.com>
11374
11375 Revert r2338.
11376
11377 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
11378 file can't be opened. grub_file_open() is already supposed to set
75421ca9 11379 grub_errno / grub_errmsg appropriately.
87a4623b 11380 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11381
8231fb77 113822009-06-27 Pavel Roskin <proski@gnu.org>
113832009-06-27 Robert Millan <rmh.grub@aybabtu.com>
11384
11385 * include/grub/dl.h: Include grub/elf.h.
11386 (struct grub_dl): Add symtab field.
11387 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
11388 GRUB_MODULES_MACHINE_READONLY.
11389 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
11390 of the header for read-only modules.
11391 (grub_dl_unload): Free mod->symtab for read-only modules.
11392 * kern/i386/dl.c: Use mod->symtab.
11393 * kern/powerpc/dl.c: Likewise.
11394 * kern/sparc64/dl.c: Likewise.
11395 * kern/x86_64/dl.c: Likewise.
11396
11397 * conf/i386-qemu.rmk: New file.
11398 * kern/i386/qemu/startup.S: Likewise.
11399 * kern/i386/qemu/mmap.c: Likewise.
11400 * boot/i386/qemu/boot.S: Likewise.
11401 * include/grub/i386/qemu/time.h: Likewise.
11402 * include/grub/i386/qemu/serial.h: Likewise.
11403 * include/grub/i386/qemu/kernel.h: Likewise.
11404 * include/grub/i386/qemu/console.h: Likewise.
11405 * include/grub/i386/qemu/boot.h: Likewise.
11406 * include/grub/i386/qemu/init.h: Likewise.
11407 * include/grub/i386/qemu/machine.h: Likewise.
11408 * include/grub/i386/qemu/loader.h: Likewise.
11409 * include/grub/i386/qemu/memory.h: Likewise.
11410
11411 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
11412 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
11413 [qemu] (pkglib_IMAGES): Add `boot.img'.
11414 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
11415 [qemu] (boot_img_FORMAT): New variables.
11416 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
11417 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
11418 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
11419 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
11420 [qemu] (kernel_img_FORMAT): New variables.
11421
11422 * configure.ac: Recognise `i386-qemu'.
11423
11424 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
11425 (for no compression).
11426 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
11427 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
11428 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
11429 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
11430 ifdefs).
11431
97fe384e 114322009-06-27 Pavel Roskin <proski@gnu.org>
11433
11434 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
11435 read.
11436 * efiemu/prepare32.c: Likewise.
11437 * efiemu/prepare64.c: Likewise.
11438
c402ab17 114392009-06-26 Pavel Roskin <proski@gnu.org>
11440
11441 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
11442 * include/grub/elf.h: Define symbols without "32" or "64" based
11443 on GRUB_TARGET_WORDSIZE.
11444 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
11445 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
11446 ELF definitions.
11447 * efiemu/loadcore64.c: Likewise.
11448 * loader/i386/bsd32.c: Likewise.
11449 * loader/i386/bsd64.c: Likewise.
11450 * kern/dl.c: Remove own ELF definitions.
11451 * util/i386/efi/grub-mkimage.c: Likewise.
11452
9bbdfd4d 114532009-06-23 Robert Millan <rmh.grub@aybabtu.com>
11454
11455 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
11456 segment 0x0 unconditionally, because the reference generated by
11457 GAS is an absolute address.
11458
a42ce6e9 114592009-06-22 Robert Millan <rmh.grub@aybabtu.com>
11460
11461 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
11462 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
11463
c952cf92 114642009-06-22 Robert Millan <rmh.grub@aybabtu.com>
11465
11466 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
11467 indexes. Check for -f explicitly.
cc3752ad 11468 (search_file): Improve error message.
11469 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 11470
132a0a59 114712009-06-22 Robert Millan <rmh.grub@aybabtu.com>
11472
11473 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
11474 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
11475
387a140c 114762009-06-22 Robert Millan <rmh.grub@aybabtu.com>
11477
11478 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
11479 * conf/i386-ieee1275.rmk: Likewise.
11480 * conf/i386-coreboot.rmk: Likewise.
11481
11482 * kern/i386/pc/startup.S (grub_stop): Remove function.
11483 * kern/i386/ieee1275/startup.S: Likewise.
11484 * kern/i386/coreboot/startup.S: Likewise.
11485 * kern/i386/misc.S (grub_stop): New function.
11486
41da9665 114872009-06-22 Robert Millan <rmh.grub@aybabtu.com>
11488
11489 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
11490 * kern/i386/realmode.S (real_to_prot): ... to here.
11491
bf337234 114922009-06-22 Robert Millan <rmh.grub@aybabtu.com>
11493
11494 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
11495 with `kernel.img'.
11496 (kernel_elf_SOURCES): Rename to ...
11497 (kernel_img_SOURCES): ... this.
11498 (kernel_elf_HEADERS): Rename to ...
11499 (kernel_img_HEADERS): ... this. Update all users.
11500 (kernel_elf_ASFLAGS): Rename to ...
11501 (kernel_img_ASFLAGS): ... this.
11502 (kernel_elf_CFLAGS): Rename to ...
11503 (kernel_img_CFLAGS): ... this.
11504 (kernel_elf_LDFLAGS): Rename to ...
11505 (kernel_img_LDFLAGS): ... this.
11506 * conf/i386-coreboot.rmk: Likewise.
11507 * conf/powerpc-ieee1275.rmk: Likewise.
11508
11509 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
11510 with "kernel.img".
11511
f52196ff 115122009-06-21 Pavel Roskin <proski@gnu.org>
11513
c3cee413 11514 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
11515 to match nested functions.
11516 * loader/sparc64/ieee1275/linux.c: Likewise.
11517
f52196ff 11518 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
11519
58750afc 115202009-06-21 Robert Millan <rmh.grub@aybabtu.com>
11521
11522 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
11523 all i386 platforms.
11524
15355c7d 115252009-06-21 Robert Millan <rmh.grub@aybabtu.com>
11526
11527 Fix asm file handling on ELF, and remove workarounds.
11528
11529 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 11530 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 11531 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
11532 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
11533
3f3ec72b 115342009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
11535
11536 Load BSD ELF modules
11537
11538 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
11539 and loader/i386/bsd64.c
11540 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
11541 (FREEBSD_MODTYPE_ELF_MODULE): New definition
11542 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
11543 (grub_freebsd_load_elfmodule32): New declaration
11544 (grub_freebsd_load_elfmoduleobj64): Likewise
11545 (grub_freebsd_load_elf_meta32): Likewise
11546 (grub_freebsd_load_elf_meta64): Likewise
11547 (grub_freebsd_add_meta): Likewise
11548 (grub_freebsd_add_meta_module): Likewise
11549 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
11550 (grub_freebsd_add_meta_module): Likewise and move module-specific
11551 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
11552 (grub_cmd_freebsd): Add elf-kernel specific parts
11553 based on grub_freebsd_add_meta_module
11554 (grub_cmd_freebsd_module): Add type parsing moved from
11555 grub_freebsd_add_meta_module
11556 (grub_cmd_freebsd_module_elf): New function
11557 (cmd_freebsd_module_elf): New variable
11558 (GRUB_MOD_INIT): Register freebsd_module_elf
11559 * loader/i386/bsd32.c: New file
11560 * loader/i386/bsd64.c: Likewise
11561 * loader/i386/bsdXX.c: Likewise
11562 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
11563 (grub_elf64_load): Likewise
11564 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
11565 All users updated
11566 (grub_elf64_load_hook_t): Likewise
11567
0db15301 115682009-06-21 Colin Watson <cjwatson@ubuntu.com>
11569
11570 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
11571 variable.
11572 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
11573 don't write a menu entry for recovery mode.
11574
546796c1 115752009-06-20 Robert Millan <rmh.grub@aybabtu.com>
11576
11577 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
11578 after it's no longer needed.
11579
cd7310d5 115802009-06-20 Robert Millan <rmh.grub@aybabtu.com>
11581
11582 * include/grub/i386/loader.h (grub_linux_prot_size)
11583 (grub_linux_tmp_addr, grub_linux_real_addr)
11584 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
11585 GRUB_MACHINE_PCBIOS.
11586 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
11587 common grub_util_info() call to ...
11588 (generate_image): ... here.
11589 Fix use of uninitialized memory, comparison of signed with
11590 unsigned integers and memory leak.
11591 Remove bogus module address message.
11592
ab32d3b5 115932009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
11594
11595 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
11596 grub_raid_register
11597 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
11598
024ef597 115992009-06-19 Pavel Roskin <proski@gnu.org>
11600
11601 * configure.ac: Remove stray AC_MSG_CHECKING.
11602
3ac72b51 116032009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
11604
11605 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 11606
e14cd814 116072009-06-18 Pavel Roskin <proski@gnu.org>
11608
11609 * conf/common.rmk: Add fs_file.mod.
11610 * disk/fs_file.c: New file.
11611 * include/grub/disk.h (enum grub_disk_dev_id): Add
11612 GRUB_DISK_DEVICE_FILE_ID.
11613
26586d98 116142009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 Fix build with Apple's toolchain. Part 2
11617
11618 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
11619 a fake start
11620
26de2bcd 116212009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 Fix build with Apple's toolchain. Part 1
11624
11625 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
11626 for long calls
11627 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 11628 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 11629 Apple's toolchain
11630
09b3490b 116312009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 Fix warnings
11634
11635 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
11636 (decomp_block): initialize ch
11637 use grub_memcpy instead of memcpy
11638
c22a006a 116392009-06-17 Pavel Roskin <proski@gnu.org>
11640
d3638678 11641 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
11642 version, use declarations needed to use vga_text as the startup
11643 console.
11644
c22a006a 11645 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
11646 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
11647 the kernel.
11648 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
11649 and grub_at_keyboard_fini(), it's done on module load and
11650 unload.
11651
05b129e0 116522009-06-17 Felix Zielcke <fzielcke@z-51.de>
11653
11654 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
11655 file can't be found.
11656 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11657
cf24ed9e 116582009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
11659
11660 Fix newline handling
11661
11662 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 11663 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 11664 (grub_script_yylex): don't segfault on unterminated script
11665 newline terminates command and variable
11666
74aa8e4b 116672009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
11668
11669 avoid double grub_adjust_range call. Bug reported by David Simner
11670
11671 * kern/disk.c (grub_disk_write): change to raw disk access before
11672 calling disk_read
11673
1bd265f3 116742009-06-17 Colin Watson <cjwatson@ubuntu.com>
11675
11676 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
11677 spaces, for the benefit of help2man.
11678 * util/i386/efi/grub-mkimage.c (usage): Likewise.
11679
a2d08c06 116802009-06-16 Pavel Roskin <proski@gnu.org>
11681
11682 * kern/i386/halt.c: Include grub/machine/init.h.
11683 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
11684
b97bcb19 116852009-06-16 Felix Zielcke <fzielcke@z-51.de>
11686
11687 * util/grub.d/30_os-prober.in: Use ${root} in the generated
11688 drivemap menuentry.
11689
0644f96c 116902009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
11691
11692 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
11693 `echo' command.
11694
3ef17a2e 116952009-06-16 Pavel Roskin <proski@gnu.org>
11696
11697 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
11698 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
11699 save %dx, we only need %dl and we never change it.
11700 * boot/i386/pc/cdboot.S: Don't set the root drive.
11701 * boot/i386/pc/pxeboot.S: Likewise.
11702 * include/grub/i386/pc/boot.h: Remove
11703 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
11704 GRUB_BOOT_MACHINE_DRIVE_CHECK.
11705 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
11706 * kern/i386/pc/init.c (make_install_device): Remove references
11707 to grub_root_drive.
11708 * kern/i386/pc/startup.S: Likewise.
11709 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
11710
693fe637 117112009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 xnu_uuid command
11714
11715 * commands/xnu_uuid.c: new file
11716 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
11717 (xnu_uuid_mod_SOURCES): new variable
11718 (xnu_uuid_mod_CFLAGS): likewise
11719 (xnu_uuid_mod_LDFLAGS): likewise
11720 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
11721 * conf/i386-ieee1275.rmk: likewise
11722 * conf/i386-pc.rmk: likewise
11723 * conf/powerpc-ieee1275.rmk: likewise
11724 * conf/sparc64-ieee1275.rmk: likewise
11725 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
11726
c9da87d0 117272009-06-16 Pavel Roskin <proski@gnu.org>
11728
11729 * configure.ac: Avoid '==' in test command, it's not portable.
11730
9c6f4596 117312009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
11732
11733 Probe command
11734
11735 * commands/probe.c: new file
11736 * conf/common.rmk (pkglib_MODULES): add probe.mod
11737 (probe_mod_SOURCES): new variable
11738 (probe_mod_CFLAGS): likewise
11739 (probe_mod_LDFLAGS): likewise
11740 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
11741 * conf/i386-ieee1275.rmk: likewise
11742 * conf/i386-pc.rmk: likewise
11743 * conf/powerpc-ieee1275.rmk: likewise
11744 * conf/sparc64-ieee1275.rmk: likewise
11745
70b7f9fd 117462009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
11747
11748 Fix handling of string like \"hello\" and "a
11749 b"
11750
11751 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
11752 (grub_script_yylex): fix parsing of quoting, escaping and newline
11753
71c79a6b 117542009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
11755
dd74360c 11756 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 11757 handling
dd74360c 11758
0644f96c 117592009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 11760
11761 * util/grub-mkconfig.in: Fix parsing of --output option.
11762
e40893c3 117632009-06-12 Pavel Roskin <proski@gnu.org>
11764
11765 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
11766 genmk.rb don't need to be generated or installed.
11767
3a1acfe2 117682009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11769
11770 * commands/i386/pc/drivemap_int13h.S: add more comments
11771
3a4575d4 117722009-06-11 Pavel Roskin <proski@gnu.org>
11773
0658e928 11774 * Makefile.in (uninstall): Uninstall manuals.
11775
ca0388f0 11776 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
11777 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
11778 and update-grub_lib in two places.
11779 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
11780
e3b27c39 11781 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
11782 a compiler warning.
11783
3a4575d4 11784 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
11785 `entry_lo' to fix variable shadowing.
11786
af1f4f55 117872009-06-11 Christian Franke <franke@computer.org>
11788
11789 * kern/misc.c (__enable_execute_stack): Add missing return type
11790 to prevent gcc warning.
11791
5225e649 117922009-06-11 Felix Zielcke <fzielcke@z-51.de>
11793
11794 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
11795
7d83bd47 117962009-06-11 Pavel Roskin <proski@gnu.org>
11797
c1cb63ba 11798 * Makefile.in: Don't rely on any scripts being executable.
11799 Always use $(SHELL) to run shell scripts.
11800
7d83bd47 11801 * configure.ac: Always define ___main if using -nostdlib. This
11802 fixes tests on Cygwin.
11803
948f48e7 118042009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
11805
11806 UDF fix
11807
7d83bd47 11808 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 11809 is in bytes and not in blocks
7d83bd47 11810
8ada9bc1 118112009-06-11 Pavel Roskin <proski@gnu.org>
11812
11813 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
11814 warning.
11815
25ad2323 118162009-06-11 Felix Zielcke <fzielcke@z-51.de>
11817
11818 * util/grub.d/30_os-prober.in: Fix a comment. Source
11819 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
11820 to set the root device. Place drivemap command in the generated
11821 chain entry.
11822
e65acb0c 118232009-06-11 Pavel Roskin <proski@gnu.org>
11824
11825 * configure.ac: Remove host_m32. Issues with 64-bit utilities
11826 have long been resolved.
11827
f285fe2d 118282009-06-11 Colin Watson <cjwatson@ubuntu.com>
11829
bd47b0b5 11830 * util/grub.d/10_linux.in: Capitalise "Linux".
11831
f285fe2d 11832 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
11833
a0c62e4e 118342009-06-11 Pavel Roskin <proski@gnu.org>
11835
b6783cb2 11836 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
11837 fix a gcc warning and ensure that the function won't ever exit.
11838
dde032e8 11839 * kern/i386/ieee1275/init.c: Add missing prototype for
11840 grub_stop_floppy().
11841
22cd079d 11842 * loader/ieee1275/multiboot2.c [__i386__]: Include
11843 grub/cpu/multiboot.h.
11844
a0c62e4e 11845 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
11846 casts to short - they are not portable and cause warnings. Fix
11847 use of uninitialized values in input_buf. Use ARRAY_SIZE.
11848
63963d17 118492009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
11850
11851 Drivemap fixes
11852
11853 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
11854 new function
11855 (grub_get_root_biosnumber_saved): new variable
11856 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
11857 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 11858 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 11859 %dx after the call if necessary
11860 * conf/common.rmk (pkglib_MODULES): remove boot.mod
11861 (boot_mod_SOURCES): remove
11862 (boot_mod_CFLAGS): remove
11863 (boot_mod_LDFLAGS): remove
11864 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
11865 (boot_mod_SOURCES): new variable
11866 (boot_mod_CFLAGS): likewise
11867 (boot_mod_LDFLAGS): likewise
11868 * conf/i386-efi.rmk: likewise
11869 * conf/i386-ieee1275.rmk: likewise
11870 * conf/i386-pc.rmk: likewise
11871 * conf/powerpc-ieee1275.rmk: likewise
11872 * conf/sparc64-ieee1275.rmk: likewise
11873 * conf/x86_64-efi.rmk: likewise
11874 * include/grub/i386/pc/biosnum.h: new file
11875 * lib/i386/pc/biosnum.c: likewise
11876 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
11877 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
11878 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 11879
33abf7ae 118802009-06-10 Pavel Roskin <proski@gnu.org>
11881
5ac35b35 11882 * io/gzio.c (test_header): Don't reuse one buffer for all data.
11883 Use separate variables. Read only the file size at the end, but
11884 not the checksum that we don't use.
11885
5c5215d5 11886 * kern/file.c (grub_file_read): Use void pointer for the buffer.
11887 Adjust all callers.
11888
27d5fef7 11889 * kern/ieee1275/openfw.c: Remove libc includes.
11890 * kern/ieee1275/cmain.c: Likewise.
11891 * include/grub/ieee1275/ieee1275.h: Likewise.
11892
33abf7ae 11893 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
11894 compiler warnings.
11895
19d50c2b 118962009-06-10 Felix Zielcke <fzielcke@z-51.de>
11897
11898 * Makefile.in: Remove all trailing whitespace.
11899 * conf/i386-pc.rmk: Likewise.
11900 * conf/powerpc-ieee1275.rmk: Likewise.
11901 * conf/sparc64-ieee1275.rmk: Likewise.
11902 * docs/grub.texi: Likewise.
11903 * docs/texinfo.tex: Likewise.
11904 * disk/fs_uuid.c: Likewise.
11905 * disk/lvm.c: Likewise.
11906 * disk/scsi.c: Likewise.
11907 * disk/ata.c: Likewise.
11908 * disk/ieee1275/ofdisk.c: Likewise.
11909 * disk/i386/pc/biosdisk.c: Likewise.
11910 * disk/host.c: Likewise.
11911 * disk/raid.c: Likewise.
11912 * disk/efi/efidisk.c: Likewise.
11913 * disk/usbms.c: Likewise.
11914 * disk/memdisk.c: Likewise.
11915 * disk/loopback.c: Likewise.
11916 * kern/powerpc/dl.c: Likewise.
11917 * kern/device.c: Likewise.
11918 * kern/dl.c: Likewise.
11919 * kern/sparc64/dl.c: Likewise.
11920 * kern/ieee1275/ieee1275.c: Likewise.
11921 * kern/term.c: Likewise.
11922 * kern/fs.c: Likewise.
11923 * kern/i386/dl.c: Likewise.
11924 * kern/i386/pc/startup.S: Likewise.
11925 * kern/i386/pc/init.c: Likewise.
11926 * kern/i386/pc/mmap.c: Likewise.
11927 * kern/i386/pc/lzo1x.S: Likewise.
11928 * kern/i386/ieee1275/init.c: Likewise.
11929 * kern/i386/realmode.S: Likewise.
11930 * kern/i386/tsc.c: Likewise.
11931 * kern/partition.c: Likewise.
11932 * kern/corecmd.c: Likewise.
11933 * kern/file.c: Likewise.
11934 * kern/efi/efi.c: Likewise.
11935 * kern/efi/init.c: Likewise.
11936 * kern/efi/mm.c: Likewise.
11937 * kern/main.c: Likewise.
11938 * kern/err.c: Likewise.
11939 * kern/env.c: Likewise.
11940 * kern/disk.c: Likewise.
11941 * kern/generic/millisleep.c: Likewise.
11942 * kern/generic/rtc_get_time_ms.c: Likewise.
11943 * kern/misc.c: Likewise.
11944 * kern/parser.c: Likewise.
11945 * genmk.rb: Likewise.
11946 * configure.ac: Likewise.
11947 * boot/i386/pc/diskboot.S: Likewise.
11948 * boot/i386/pc/pxeboot.S: Likewise.
11949 * boot/i386/pc/boot.S: Likewise.
11950 * boot/i386/pc/lnxboot.S: Likewise.
11951 * boot/i386/pc/cdboot.S: Likewise.
11952 * parttool/pcpart.c: Likewise.
11953 * video/readers/tga.c: Likewise.
11954 * video/video.c: Likewise.
11955 * video/bitmap.c: Likewise.
11956 * lib/envblk.c: Likewise.
11957 * lib/i386/setjmp.S: Likewise.
11958 * fs/xfs.c: Likewise.
11959 * fs/afs.c: Likewise.
11960 * fs/fat.c: Likewise.
11961 * fs/ntfs.c: Likewise.
11962 * fs/udf.c: Likewise.
11963 * fs/affs.c: Likewise.
11964 * fs/iso9660.c: Likewise.
11965 * fs/hfs.c: Likewise.
11966 * fs/fshelp.c: Likewise.
11967 * fs/ext2.c: Likewise.
11968 * fs/jfs.c: Likewise.
11969 * fs/reiserfs.c: Likewise.
11970 * fs/hfsplus.c: Likewise.
11971 * fs/minix.c: Likewise.
11972 * fs/cpio.c: Likewise.
11973 * fs/sfs.c: Likewise.
11974 * fs/ufs.c: Likewise.
11975 * efiemu/prepare.c: Likewise.
11976 * efiemu/loadcore_common.c: Likewise.
11977 * efiemu/runtime/efiemu.sh: Likewise.
11978 * efiemu/runtime/efiemu.S: Likewise.
11979 * efiemu/runtime/efiemu.c: Likewise.
11980 * efiemu/pnvram.c: Likewise.
11981 * efiemu/main.c: Likewise.
11982 * efiemu/i386/pc/cfgtables.c: Likewise.
11983 * efiemu/i386/loadcore64.c: Likewise.
11984 * efiemu/i386/loadcore32.c: Likewise.
11985 * efiemu/loadcore.c: Likewise.
11986 * efiemu/symbols.c: Likewise.
11987 * efiemu/mm.c: Likewise.
11988 * include/grub/autoefi.h: Likewise.
11989 * include/grub/datetime.h: Likewise.
11990 * include/grub/term.h: Likewise.
11991 * include/grub/hfs.h: Likewise.
11992 * include/grub/lvm.h: Likewise.
11993 * include/grub/i386/tsc.h: Likewise.
11994 * include/grub/i386/linux.h: Likewise.
11995 * include/grub/i386/xnu.h: Likewise.
11996 * include/grub/i386/efiemu.h: Likewise.
11997 * include/grub/i386/pc/biosdisk.h: Likewise.
11998 * include/grub/i386/pc/memory.h: Likewise.
11999 * include/grub/i386/pc/vbe.h: Likewise.
12000 * include/grub/parttool.h: Likewise.
12001 * include/grub/video.h: Likewise.
12002 * include/grub/memory.h: Likewise.
12003 * include/grub/fs.h: Likewise.
12004 * include/grub/partition.h: Likewise.
12005 * include/grub/xnu.h: Likewise.
12006 * include/grub/efi/api.h: Likewise.
12007 * include/grub/efi/pe32.h: Likewise.
12008 * include/grub/efi/memory.h: Likewise.
12009 * include/grub/multiboot.h: Likewise.
12010 * include/grub/usbdesc.h: Likewise.
12011 * include/grub/multiboot2.h: Likewise.
12012 * include/grub/acpi.h: Likewise.
12013 * include/grub/efiemu/efiemu.h: Likewise.
12014 * include/grub/disk.h: Likewise.
12015 * include/grub/ieee1275/ieee1275.h: Likewise.
12016 * include/grub/net.h: Likewise.
12017 * include/grub/machoload.h: Likewise.
12018 * include/grub/macho.h: Likewise.
12019 * include/multiboot.h: Likewise.
12020 * genmoddep.awk: Likewise.
12021 * normal/main.c: Likewise.
12022 * normal/menu_entry.c: Likewise.
12023 * normal/menu_viewer.c: Likewise.
12024 * normal/completion.c: Likewise.
12025 * normal/cmdline.c: Likewise.
12026 * normal/misc.c: Likewise.
12027 * normal/datetime.c: Likewise.
12028 * bus/usb/usbtrans.c: Likewise.
12029 * bus/usb/ohci.c: Likewise.
12030 * bus/usb/uhci.c: Likewise.
12031 * bus/usb/usb.c: Likewise.
12032 * mmap/efi/mmap.c: Likewise.
12033 * mmap/i386/pc/mmap_helper.S: Likewise.
12034 * mmap/i386/pc/mmap.c: Likewise.
12035 * mmap/i386/mmap.c: Likewise.
12036 * mmap/i386/uppermem.c: Likewise.
12037 * mmap/mmap.c: Likewise.
12038 * commands/acpi.c: Likewise.
12039 * commands/echo.c: Likewise.
12040 * commands/blocklist.c: Likewise.
12041 * commands/loadenv.c: Likewise.
12042 * commands/usbtest.c: Likewise.
12043 * commands/boot.c: Likewise.
12044 * commands/parttool.c: Likewise.
12045 * commands/search.c: Likewise.
12046 * commands/cat.c: Likewise.
12047 * commands/i386/pc/play.c: Likewise.
12048 * commands/i386/pc/drivemap.c: Likewise.
12049 * commands/i386/pc/vbeinfo.c: Likewise.
12050 * commands/i386/pc/acpi.c: Likewise.
12051 * commands/i386/pc/vbetest.c: Likewise.
12052 * commands/ls.c: Likewise.
12053 * commands/cmp.c: Likewise.
12054 * commands/test.c: Likewise.
12055 * commands/efi/acpi.c: Likewise.
12056 * commands/gptsync.c: Likewise.
12057 * commands/help.c: Likewise.
12058 * partmap/amiga.c: Likewise.
12059 * partmap/apple.c: Likewise.
12060 * partmap/acorn.c: Likewise.
12061 * partmap/pc.c: Likewise.
12062 * partmap/sun.c: Likewise.
12063 * partmap/gpt.c: Likewise.
12064 * script/sh/lexer.c: Likewise.
12065 * script/sh/function.c: Likewise.
12066 * font/font.c: Likewise.
12067 * font/font_cmd.c: Likewise.
12068 * loader/powerpc/ieee1275/linux.c: Likewise.
12069 * loader/efi/chainloader.c: Likewise.
12070 * loader/multiboot_loader.c: Likewise.
12071 * loader/macho.c: Likewise.
12072 * loader/i386/multiboot.c: Likewise.
12073 * loader/i386/linux.c: Likewise.
12074 * loader/i386/pc/linux.c: Likewise.
12075 * loader/i386/pc/multiboot2.c: Likewise.
12076 * loader/i386/pc/chainloader.c: Likewise.
12077 * loader/i386/pc/xnu.c: Likewise.
12078 * loader/i386/bsd_trampoline.S: Likewise.
12079 * loader/i386/efi/linux.c: Likewise.
12080 * loader/i386/multiboot_elfxx.c: Likewise.
12081 * loader/i386/bsd_helper.S: Likewise.
12082 * loader/i386/bsd.c: Likewise.
12083 * loader/i386/linux_trampoline.S: Likewise.
12084 * loader/i386/xnu_helper.S: Likewise.
12085 * loader/i386/xnu.c: Likewise.
12086 * loader/i386/bsd_pagetable.c: Likewise.
12087 * loader/i386/multiboot_helper.S: Likewise.
12088 * loader/xnu.c: Likewise.
12089 * loader/xnu_resume.c: Likewise.
12090 * io/gzio.c: Likewise.
12091 * term/efi/console.c: Likewise.
12092 * term/terminfo.c: Likewise.
12093 * term/ieee1275/ofconsole.c: Likewise.
12094 * term/i386/pc/serial.c: Likewise.
12095 * term/i386/pc/vesafb.c: Likewise.
12096 * term/i386/pc/vga.c: Likewise.
12097 * term/usb_keyboard.c: Likewise.
12098 * term/gfxterm.c: Likewise.
12099 * aclocal.m4: Likewise.
12100 * util/lvm.c: Likewise.
12101 * util/grub.d/30_os-prober.in: Likewise.
12102 * util/grub.d/10_hurd.in: Likewise.
12103 * util/console.c: Likewise.
12104 * util/grub-macho2img.c: Likewise.
12105 * util/grub-probe.c: Likewise.
12106 * util/hostfs.c: Likewise.
12107 * util/i386/pc/grub-mkimage.c: Likewise.
12108 * util/i386/pc/grub-setup.c: Likewise.
12109 * util/i386/efi/grub-mkimage.c: Likewise.
12110 * util/grub-mkconfig.in: Likewise.
12111 * util/raid.c: Likewise.
12112 * util/resolve.c: Likewise.
12113 * util/grub-mkdevicemap.c: Likewise.
12114 * util/grub-emu.c: Likewise.
12115 * util/getroot.c: Likewise.
12116 * util/hostdisk.c: Likewise.
12117 * util/usb.c: Likewise.
12118 * util/grub-editenv.c: Likewise.
12119 * util/misc.c: Likewise.
12120
d2d49665 121212009-06-10 Felix Zielcke <fzielcke@z-51.de>
12122
12123 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
12124 `genparttoollist.sh'.
12125 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
12126 Add `*.sh' to the list find searches for and change `mdate.sh'
12127 to `mdate-sh'.
12128
fe052e37 121292009-06-10 Pavel Roskin <proski@gnu.org>
12130
2763ac18 12131 * include/grub/multiboot2.h: Provide compatibility defines for
12132 multiboot2.h.
12133 * include/multiboot2.h: Include stdint.h only if needed, using
12134 angle brackets.
12135 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
12136 grub/multiboot2.h.
12137 * loader/ieee1275/multiboot2.c: Likewise.
12138 * loader/multiboot2.c: Likewise.
12139 * loader/multiboot_loader.c: Likewise.
12140
437e6adc 12141 * configure.ac: Use -nostdlib when probing for the target. It
12142 should not be required to have libc for the target.
12143
06a6836c 12144 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
12145 they fail without libc headers for the target.
12146 * include/grub/powerpc/libgcc.h: Use weak attribute for all
12147 exports.
12148 * include/grub/sparc64/libgcc.h: Likewise. Don't use
12149 preprocessor conditionals.
12150
fe052e37 12151 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
12152 build system doesn't need to be aware of the tar.c internals.
12153
afd22553 121542009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 12155
afd22553 12156 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 12157
6b787c4f 121582009-06-09 Robert Millan <rmh.grub@aybabtu.com>
12159
12160 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
12161 disk limit to 26 for IDE, Virtio, Xen and SCSI.
12162
121632009-06-09 Felix Zielcke <fzielcke@z-51.de>
12164
12165 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 12166 aren't available if ata.mod gets used.
6b787c4f 12167
473d1e45 121682009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 12169
473d1e45 12170 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 12171 initialising controller.
473d1e45 12172 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 12173
255a27d4 121742009-06-08 Felix Zielcke <fzielcke@z-51.de>
12175
12176 * util/i386/pc/grub-install.in: Add a parameter --disk-module
12177 to choose between ata and biosdisk module on i386-pc.
12178
473d1e45 121792009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 12180
d55842d8 12181 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
12182 Subclass and Programming Interface fields in terms of the 3 byte
12183 Class Code register.
12184 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
12185
fa5db0b1 12186 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
12187 interface is OHCI. Add grub_dprintf for symmetry with
12188 bus/usb/uhci.c.
12189 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
12190 interface is UHCI. Add interf variable for programming
12191 interface. Print interface with class/subclass.
12192
c0947beb 12193 * bus/usb/ohci.c: Set interf with correct field.
12194
69da8877 12195 * bus/usb/uhci.c: Remove unneeded doubled lines.
12196 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
12197 Remove whitespace inside comment.
12198
9e172e30 121992009-06-08 Robert Millan <rmh.grub@aybabtu.com>
12200
12201 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
12202 as fallback an equivalent option without depth.
12203
de65ee2b 122042009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
12205
12206 Not fail if unable to retrieve C/H/S on LBA disks
12207
473d1e45 12208 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 12209 if unable to retrieve C/H/S on LBA disks
12210
b57ea2c9 122112009-06-08 Pavel Roskin <proski@gnu.org>
12212
12213 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
12214 about aliasing.
12215
af361263 122162009-06-08 Felix Zielcke <fzielcke@z-51.de>
12217
12218 * Makefile.in (uninstall): Remove all $lib_DATA files.
12219
4c9ec6b3 122202009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 Bugfix: install on partitionless device
12223
12224 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
12225 is a whole disk
12226
e76fc924 122272009-06-08 Felix Zielcke <fzielcke@z-51.de>
12228
12229 * Makefile.in (uninstall): Remove all $include_DATA files.
12230
ba5a0d05 122312009-06-08 Felix Zielcke <fzielcke@z-51.de>
12232
12233 * commands/true.c: New file. Implement the true and false commands.
12234 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
12235 (true_mod_SOURCES): New variable.
12236 (true_mod_CFLAGS): Likewise.
12237 (true_mod_LDFLAGS): Likewise.
12238
c8048e32 122392009-06-05 Colin D Bennett <colin@gibibit.com>
12240
12241 Optimized font character lookup using binary search instead of linear
12242 search. Fonts now are required to have the character index ordered by
12243 code point.
12244
12245 * font/font.c (load_font_index): Verify that fonts have ordered
12246 character indices.
12247 (find_glyph): Use binary search instead of linear search to find a
12248 character in a font.
12249
408305be 122502009-06-05 Michael Scherer <misc@mandriva.org>
12251
12252 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
12253 uses case sensitive btree.
12254 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
12255 only for case insensitive filesystems.
12256
8ee1e0d9 122572009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
12258
12259 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
12260 * conf/common.rmk (search_mod_CFLAGS): likewise
12261
a9966eb1 122622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12263
473d1e45 12264 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 12265 compensate a compiler bug
12266
9e7100fb 122672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12268
473d1e45 12269 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 12270 instead of '\b'
473d1e45 12271
ede21d71 122722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 Definitions for creating asm symbols with Apple's CC
12275
12276 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
12277 [APPLE_CC] (VARIABLE): likewise
12278
9dbf7653 122792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12280
12281 Disable lnxboot.img when compiled
12282 with Apple's CC
12283
12284 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
12285 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
12286 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
12287 [! APPLE_CC] (CODE_LENG): skip
12288 [! APPLE_CC] (setup_sects): likewise
12289 [! APPLE_CC]: skip filling
473d1e45 12290
e93cdc3d 122912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12292
12293 Address in trampolines based on 32-bit registers when compiled
12294 with Apple's CC
12295
473d1e45 12296 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 12297 for addresses
12298 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
12299
6c688477 123002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 Avoid aliases when compiling with Apple's CC for PCBIOS machine
12303
12304 * kern/misc.c [APPLE_CC] (memcpy): new function
12305 [APPLE_CC] (memmove): likewise
12306 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 12307 (memcpy): define alias conditionally on !APPLE_CC
6c688477 12308 (memset): likewise
12309 (abort): likewise
12310 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
12311 APPLE_CC are defined
12312 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
12313 (grub_assert_fail): make prototype conditional
12314
e37ffc5c 123152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12316
12317 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
12318
473d1e45 12319 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
12320 grub-macho2img
e37ffc5c 12321 (CLEANFILES): add grub-macho2img
12322 (grub_macho2img_SOURCES): new variable
12323 * kern/i386/pc/startup.S (bss_start): new variable
12324 (bss_end): likewise
12325 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
12326 * util/grub-macho2img.c: new file
12327
cf00df31 123282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 Use objconv when compiling with Apple's CC
12331
12332 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
12333 (efiemu64.o): likewise
12334 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
12335 when compiling with Apple's CC
12336 (efiemu64_s.o): likewise
12337 * configure.ac: check for objconv when compiling with Apple's CC
12338 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 12339
d119a20c 123402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 Define segment as well as section when compiling with
12343 Apple's CC
12344
12345 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
12346 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
12347 (efiemu_convert_pointer): likewise
12348 (efiemu_set_virtual_address_map): likewise
12349 (efiemu_convert_pointer): likewise
12350 (efiemu_getcrc32): likewise
12351 (init_crc32_table): likewise
12352 (reflect): likewise
12353 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
12354 (GRUB_MOD_DEP): likewise
473d1e45 12355
c8600122 123562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12357
12358 Allow a compilation without -mcmodel=large
12359
12360 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
12361 when compiled without -mcmodel=large
473d1e45 12362 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 12363 without -mcmodel=large
473d1e45 12364 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 12365 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 12366
e8df1d4e 123672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12368
12369 Remove nested functions in efiemu core
12370
12371 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 12372
cc6c3ac1 123732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12374
12375 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
12376
12377 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
12378 temporary storage
473d1e45 12379 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
12380 using Apple's CC
cc6c3ac1 12381 (grub_cpu_is_tsc_supported): likewise
12382 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 12383
3e325901 123842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 Absolute addressing through constant with Apple's cc
12387
12388 * kern/i386/pc/startup.S: Define necessary constants
12389 and address through it when using ABS with Apple's CC
12390 * boot/i386/pc/diskboot.S: likewise
12391 * boot/i386/pc/boot.S: likewise
12392 * boot/i386/pc/lnxboot.S: likewise
12393 * boot/i386/pc/cdboot.S: likewise
12394 * mmap/i386/pc/mmap_helper.S: likewise
12395 * commands/i386/pc/drivemap_int13h.S: likewise
12396
2b167a72 123972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12398
12399 Check if compiler is apple cc
12400
12401 * Makefile.in (ASFLAGS): new variable
12402 (TARGET_ASFLAGS): likewise
12403 (TARGET_MODULE_FORMAT): likewise
12404 (TARGET_APPLE_CC): likewise
12405 (OBJCONV): likewise
12406 (TARGET_IMG_CFLAGS): likewise
12407 (TARGET_CPPFLAGS): add includedir
12408 * configure.ac: call grub_apple_cc and grub_apple_target_cc
12409 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
12410 Check for linker script only if compiler isn't Apple's CC
12411 (TARGET_MODULE_FORMAT): set
12412 (TARGET_APPLE_CC): likewise
12413 (TARGET_ASFLAGS): likewise
12414 (ASFLAGS): likewise
12415 Check for objcopy only if compiler isn't Apple's CC
12416 Check for BSS symbol only if compiler isn't Apple's CC
12417 * genmk.rb: adapt nm options if we use Apple's utils
12418 * aclocal.m4 (grub_apple_cc): new test
12419 (grub_apple_target_cc): likewise
473d1e45 12420
fb14123e 124212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12422
12423 Simplify sed expressions and improve awk
12424
12425 * Makefile.in (install-local): simplify sed expression
12426 * gencmdlist.sh: likewise
12427 * genmoddep.awk: avoid adding module as a dependency of itself
12428
5b889789 124292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12430
12431 Add missing start symbols
12432
12433 * boot/i386/pc/boot.S: add start
fb14123e 12434 * boot/i386/pc/pxeboot.S: likewise
473d1e45 12435
fd2bf2e3 124362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12437
12438 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 12439
12440 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 12441 (relocate_addresses): consider both r_addend and value at offset
12442 (make_mods_section): zerofill modinfo and header
12443 (convert_elf): write prefix here
473d1e45 12444
5389763d 124452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12446
12447 Use .asciz instead of .string
12448
12449 * i386/pc/diskboot.S: use .asciz instead of .string
12450 * i386/pc/boot.S: likewise
12451 * include/grub/dl.h (GRUB_MOD_DEP): likewise
12452 (GRUB_MOD_NAME): likewise
473d1e45 12453
3eb5ed4e 124542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12455
12456 gfxpayload support
12457
12458 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
12459 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
12460 (grub_video_setup): remove
12461 (grub_video_set_mode): new prototype
12462 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
12463 (vid_mode): remove
12464 (linux_vesafb_res): compile only on PCBIOS
12465 (grub_linux_boot): support gfxpayload
12466 * loader/i386/pc/xnu.c (video_hook): new function
12467 (grub_xnu_set_video): support gfxpayload
12468 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
12469 (DEFAULT_VIDEO_HEIGHT): likewise
12470 (DEFAULT_VIDEO_FLAGS): likewise
12471 (DEFAULT_VIDEO_MODE): new definition
12472 (video_hook): new function
12473 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 12474 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 12475 loading xnu
12476 * video/video.c (grub_video_setup): removed
473d1e45 12477 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 12478 grub_video_setup
12479
4b0e1143 124802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12481
12482 Avoid calling biosdisk in drivemap
12483
12484 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
12485 (revparse_biosdisk): likewise
12486 (list_mappings): derive name from id directly
12487 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 12488
fda6cb98 124892009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
12490
12491 Script fixes
12492
12493 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
12494 (grub_lexer_param): add tokenonhold
12495 (grub_script_create_cmdline): remove cmdline. All callers updated
12496 (grub_script_function_create): make functionname
12497 grub_script_arg. All callers updated
12498 (grub_script_execute_argument_to_string): new prototype
12499 * kern/parser.c (state_transitions): reorder
12500 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 12501 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 12502 make global
12503 (grub_script_execute_cmdline): use new format
12504 * script/sh/function.c (grub_script_function_create): make functionname
12505 grub_script_arg. All callers updated
473d1e45 12506 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 12507 (grub_script_yylex): remove
12508 (grub_script_yylex2): renamed to ...
12509 (grub_script_yylex): ...renamed
12510 parse the expressions like a${b}c
12511 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
12512 (GRUB_PARSER_TOKEN_VAR): remove
12513 (GRUB_PARSER_TOKEN_NAME): likewise
12514 ("if"): declare as typeless
12515 ("while"): likewise
12516 ("function"): likewise
12517 ("else"): likewise
12518 ("then"): likewise
12519 ("fi"): likewise
12520 (text): remove
12521 (argument): likewise
12522 (script): accept empty scripts and make exit on error
12523 (arguments): use GRUB_PARSER_TOKEN_ARG
12524 (function): likewise
12525 (command): move error handling to script
12526 (menuentry): move grub_script_lexer_ref before
473d1e45 12527 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 12528 argument. All callers updated
12529
f4448a07 125302009-06-04 Robert Millan <rmh.grub@aybabtu.com>
12531
12532 Prevent GRUB from probing floppies during boot.
12533
12534 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
12535 * commands/search.c (options): Add --no-floppy.
12536 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
12537 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
12538 --no-floppy when searching for UUIDs.
12539
2bf5885a 125402009-06-04 Robert Millan <rmh.grub@aybabtu.com>
12541
12542 Simplify the code duplication in commands/search.c.
12543
12544 * commands/search.c (search_label, search_fs_uuid): Merge into ...
12545 (search_fs): ... this. Update all users.
12546
f6fd460a 125472009-06-03 Felix Zielcke <fzielcke@z-51.de>
12548
12549 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
12550
cbb3c83e 125512009-05-28 Pavel Roskin <proski@gnu.org>
12552
57788cfd 12553 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
12554 Remove the original symlink explicitly.
12555
cbb3c83e 12556 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
12557 just one slash. That's how grub_fshelp_find_file() does it.
12558
cd0d5e30 125592009-05-26 Pavel Roskin <proski@gnu.org>
12560
f0f8bbe2 12561 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
12562 to `str'.
12563
cd0d5e30 12564 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
12565 possibly unused.
12566
8c2cab51 125672009-05-25 Christian Franke <franke@computer.org>
12568
12569 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
12570 register.
12571 (grub_atapi_identify): Add wait after drive select.
12572 (grub_ata_identify): Do more strict status register check before
12573 calling grub_atapi_identify (). Suppress error message if status
12574 register is 0x00 after command failure. Add status register
12575 check after PIO read to avoid bogus identify due to stuck DRQ.
12576 Thanks to Pavel Roskin for testing.
12577 (grub_device_initialize): Remove unsafe status register check.
12578 Thanks to 'phcoder' for problem report and patch.
12579 Prevent sign extension in debug message.
12580
230c0ad6 125812009-05-23 Colin D Bennett <colin@gibibit.com>
12582
12583 Cleaned up `include/grub/normal.h'. Grouped prototypes by
12584 definition file, and functions defined in `normal/menu.c' have had
12585 their prototypes moved to `include/grub/menu.h' for consistency.
12586
12587 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
12588 from normal.h.
12589 (grub_menu_get_entry): Likewise.
12590 (grub_menu_get_timeout): Likewise.
12591 (grub_menu_set_timeout): Likewise.
12592 (grub_menu_execute_entry): Likewise.
12593 (grub_menu_execute_with_fallback): Likewise.
12594 (grub_menu_entry_run): Likewise.
12595
12596 * include/grub/normal.h: Re-ordered and grouped function
12597 prototypes by file that the function is defined in.
12598 (grub_menu_execute_callback): Removed; moved to menu.h.
12599 (grub_menu_get_entry): Likewise.
12600 (grub_menu_get_timeout): Likewise.
12601 (grub_menu_set_timeout): Likewise.
12602 (grub_menu_execute_entry): Likewise.
12603 (grub_menu_execute_with_fallback): Likewise.
12604 (grub_menu_entry_run): Likewise.
12605 (grub_menu_addentry): Renamed from this ...
12606 (grub_normal_add_menu_entry): ... to this.
12607
12608 * normal/main.c (grub_menu_addentry): Renamed from this ...
12609 (grub_normal_add_menu_entry): ... to this.
12610
12611 * script/sh/execute.c (grub_script_execute_menuentry): Update
12612 reference to renamed grub_menu_addentry function.
12613
861f03a5 126142009-05-23 Felix Zielcke <fzielcke@z-51.de>
12615
12616 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
12617
96b1619a 126182009-05-22 Pavel Roskin <proski@gnu.org>
12619
bf6a5fb2 12620 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
12621 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
12622 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
12623 compiling for the i386 targets, but not for the utilities.
12624
96b1619a 12625 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
12626 to grub_uint8_t.
12627 (grub_root_drive): Likewise.
12628 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
12629 remove alignment.
12630 (grub_root_drive): Change size to byte.
12631 (grub_start_addr): Remove.
12632 (grub_end_addr): Likewise.
12633 (grub_apm_bios_info): Likewise.
12634
b729776b 126352009-05-21 Felix Zielcke <fzielcke@z-51.de>
12636
12637 * normal/i386: Remove.
12638 * normal/powerpc: Likewise.
12639 * normal/sparc64: Likewise.
12640 * normal/x86_64: Likewise.
12641
0a15ce80 126422009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12643
12644 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 12645 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 12646 * loader/i386/xnu_helper.S: Likewise
d6da58e6 12647
33db9015 126482009-05-18 Colin D Bennett <colin@gibibit.com>
12649
d6da58e6 12650 Display error messages when parsing a Lua statement fails.
12651 Previously, executing a syntactically invalid statement like
12652 ")foo" or "bar;" would silently fail.
33db9015 12653
12654 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 12655 (grub_lua_parse_line): Improved reporting of Lua parser and
12656 execution errors.
33db9015 12657
46422c89 126582009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 Remove -Werror which causes build to fail on some systems
12661
12662 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
12663 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
12664 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 12665
22f53a96 126662009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12667
12668 trampoline for linux on 64-bit platform
12669
18f547ad 12670 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
12671 loader/i386/efi/linux_trampoline.S
12672 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 12673 declaration
d6da58e6 12674 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
12675 here
22f53a96 12676 * loader/i386/linux_trampoline.S: moved here
d6da58e6 12677 * loader/i386/efi/linux.c (allocate_pages): reserve space for
12678 trampoline
22f53a96 12679 (jumpvector): removed
12680 (grub_linux_trampoline_start): new declaration
12681 (grub_linux_trampoline_end): likewise
12682 (grub_linux_boot): use trampoline when on 64-bit platform
12683 * loader/i386/linux.c: likewise
12684
cb5a0f40 126852009-05-16 Pavel Roskin <proski@gnu.org>
12686
12687 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
12688 const to avoid a warning.
12689 (grub_lua_setenv): Likewise.
12690 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
12691 lmsg to fix a warning.
12692
334f2c28 126932009-05-16 Felix Zielcke <fzielcke@z-51.de>
12694
12695 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 12696 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
12697 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
12698 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
12699 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
12700 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
12701 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
12702 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 12703
59e5d3ec 127042009-05-16 Felix Zielcke <fzielcke@z-51.de>
12705
12706 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
12707
9d87a1ba 127082009-05-16 Bean <bean123ch@gmail.com>
12709
12710 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
12711 (lua_mod_SOURCES): New variable.
12712 (lua_mod_CFLAGS): Likewise.
12713 (lua_mod_LDFLAGS): Likewise.
12714
12715 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
12716 (setjmp_mod_SOURCES): New variable.
12717 (setjmp_mod_CFLAGS): Likewise.
12718 (setjmp_LDFLAGS): Likewise.
12719
12720 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
12721 (setjmp_mod_SOURCES): New variable.
12722 (setjmp_mod_CFLAGS): Likewise.
12723 (setjmp_LDFLAGS): Likewise.
12724
12725 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
12726 (setjmp_mod_SOURCES): New variable.
12727 (setjmp_mod_CFLAGS): Likewise.
12728 (setjmp_LDFLAGS): Likewise.
12729
12730 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
12731 (setjmp_mod_SOURCES): New variable.
12732 (setjmp_mod_CFLAGS): Likewise.
12733 (setjmp_LDFLAGS): Likewise.
12734
12735 * normal/i386/setjmp.S: Moved from here ...
12736 * lib/i386/setjmp.S: ... Moved here
12737 * normal/x86_64/setjmp.S: Moved from here ...
12738 * lib/x86_64/setjmp.S: ... Moved here
12739 * normal/powerpc/setjmp.S: Moved from here ...
12740 * lib/powerpc/setjmp.S: ... Moved here
12741 * normal/sparc64/setjmp.S: Moved from here ...
12742 * lib/sparc64/setjmp.S: ... Moved here
12743
12744 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
12745 returns_twice in mingw.
12746
12747 * script/lua/grub_lib.c: New file.
12748 * script/lua/grub_lib.h: Likewise.
12749 * script/lua/grub_lua.h: Likewise.
12750 * script/lua/grub_main.c: Likewise.
12751 * script/lua/lapi.c: Likewise.
12752 * script/lua/lapi.h: Likewise.
12753 * script/lua/lauxlib.c: Likewise.
12754 * script/lua/lauxlib.h: Likewise.
12755 * script/lua/lbaselib.c: Likewise.
12756 * script/lua/lcode.c: Likewise.
12757 * script/lua/lcode.h: Likewise.
12758 * script/lua/ldblib.c: Likewise.
12759 * script/lua/ldebug.c: Likewise.
12760 * script/lua/ldebug.h: Likewise.
12761 * script/lua/ldo.c: Likewise.
12762 * script/lua/ldo.h: Likewise.
12763 * script/lua/ldump.c: Likewise.
12764 * script/lua/lfunc.c: Likewise.
12765 * script/lua/lfunc.h: Likewise.
12766 * script/lua/lgc.c: Likewise.
12767 * script/lua/lgc.h: Likewise.
12768 * script/lua/linit.c: Likewise.
12769 * script/lua/liolib.c: Likewise.
12770 * script/lua/llex.c: Likewise.
12771 * script/lua/llex.h: Likewise.
12772 * script/lua/llimits.h: Likewise.
12773 * script/lua/lmathlib.c: Likewise.
12774 * script/lua/lmem.c: Likewise.
12775 * script/lua/lmem.h: Likewise.
12776 * script/lua/loadlib.c: Likewise.
12777 * script/lua/lobject.c: Likewise.
12778 * script/lua/lobject.h: Likewise.
12779 * script/lua/lopcodes.c: Likewise.
12780 * script/lua/lopcodes.h: Likewise.
12781 * script/lua/loslib.c: Likewise.
12782 * script/lua/lparser.c: Likewise.
12783 * script/lua/lparser.h: Likewise.
12784 * script/lua/lstate.c: Likewise.
12785 * script/lua/lstate.h: Likewise.
12786 * script/lua/lstring.c: Likewise.
12787 * script/lua/lstring.h: Likewise.
12788 * script/lua/lstrlib.c: Likewise.
12789 * script/lua/ltable.c: Likewise.
12790 * script/lua/ltable.h: Likewise.
12791 * script/lua/ltablib.c: Likewise.
12792 * script/lua/ltm.c: Likewise.
12793 * script/lua/ltm.h: Likewise.
12794 * script/lua/lua.h: Likewise.
12795 * script/lua/luaconf.h: Likewise.
12796 * script/lua/lualib.h: Likewise.
12797 * script/lua/lundump.c: Likewise.
12798 * script/lua/lundump.h: Likewise.
12799 * script/lua/lvm.c: Likewise.
12800 * script/lua/lvm.h: Likewise.
12801 * script/lua/lzio.c: Likewise.
12802 * script/lua/lzio.h: Likewise.
12803
5e898c9d 128042009-05-16 Bean <bean123ch@gmail.com>
12805
12806 * include/grub/kernel.h (grub_module_header_types): Add type
12807 OBJ_TYPE_CONFIG.
12808
12809 * kern/main.c (grub_load_config): New function.
12810 (grub_main): Call grub_load_config to read boot config.
12811
12812 * grub-mkimage (generate_image): New parameter config_path.
12813 (options): New option --config.
12814 (main): Parse --config option, and pass it to generate_image.
12815
cf353a47 128162009-05-14 Christian Franke <franke@computer.org>
12817
12818 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
12819 This fixes build on Cygwin.
12820
3834887f 128212009-05-14 Pavel Roskin <proski@gnu.org>
12822
12823 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
12824 jump. This saves two bytes, so the typical case of 2 swapped
12825 drives would fit 32 bytes.
12826
8090fc01 128272009-05-13 Pavel Roskin <proski@gnu.org>
12828
ac963883 12829 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
12830 grub_uint32_t to avoid a warning.
12831
8090fc01 12832 * loader/i386/linux.c (allocate_pages): When assigning
12833 real_mode_mem, cast through grub_size_t to fix a warning. The
12834 code already makes sure that the value would fit a pointer.
12835 (grub_linux_setup_video): Cast render_target->data to
12836 grub_size_t to fix a warning.
12837
18f547ad 128382009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 12839
12840 * commands/i386/pc/drivemap.c: New file - implement drivemap
12841 command.
12842 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
12843 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
12844
6f6a8b28 128452009-05-13 Pavel Roskin <proski@gnu.org>
12846
12847 * util/i386/pc/grub-setup.c (setup): Remove unused variable
12848 embedding_area_exists.
12849
15fbf4c4 128502009-05-13 Robert Millan <rmh.grub@aybabtu.com>
12851
12852 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
12853 it easier to understand / work with.
59978c8a 12854 Improve warning messages for cases where there's no embedding area,
12855 or when it is too small (or core.img too large).
15fbf4c4 12856
238e871f 128572009-05-13 Pavel Roskin <proski@gnu.org>
12858
0ab3a9a4 12859 * loader/i386/pc/multiboot2.c: Add necessary includes for
12860 grub_multiboot2_real_boot().
12861
a2c8c5f8 12862 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
12863 PX record is always little-endian. We only need the lower 2
12864 bytes of the mode.
12865
faec96af 12866 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
12867 facilitate code reuse.
12868 (grub_cpio_mount): Use "struct head", not a char buffer. This
12869 fixes a warning reported by gcc 4.4.
12870
238e871f 12871 * kernel/disk.c (grub_disk_read): Use void pointer for the
12872 buffer.
12873 (grub_disk_write): Use const void pointer for the buffer.
12874 Adjust all callers. Remove unnecessary casts.
12875
901d2f0c 128762009-05-10 Robert Millan <rmh.grub@aybabtu.com>
12877
12878 * util/i386/pc/grub-install.in: Update copyright year.
12879
18f547ad 128802009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 12881
12882 gptsync
12883
12884 * commands/gptsync.c: new file
12885 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
12886 (gptsync_mod_SOURCES): new variable
12887 (gptsync_mod_CFLAGS): likewise
12888 (gptsync_mod_LDFLAGS): likewise
18f547ad 12889 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 12890 new definition
12891 (GRUB_PC_PARTITION_TYPE_HFS): likewise
12892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
12893 * conf/i386-ieee1275.rmk: likewise
12894 * conf/i386-pc.rmk: likewise
12895 * conf/powerpc-ieee1275.rmk: likewise
12896
b4ba690a 128972009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 Fixed grub-emu
12900
12901 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
12902 (grub_dl_ref): likewise
12903
317e1a44 129042009-05-08 Robert Millan <rmh.grub@aybabtu.com>
12905
12906 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
12907 split in two functions (one for msdos and one for gpt).
12908
041b8094 129092009-05-08 Pavel Roskin <proski@gnu.org>
12910
752473c2 12911 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
12912 not modified.
12913
041b8094 12914 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
12915 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
12916 Initialize them with -1. Add sanity check for bad1. Eliminate
12917 nerr variable.
12918
172800ce 129192009-05-08 David S. Miller <davem@davemloft.net>
12920
12921 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
12922
29aa5e81 129232009-05-06 Robert Millan <rmh.grub@aybabtu.com>
12924
12925 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 12926 existence.
29aa5e81 12927
96613b62 129282009-05-05 Felix Zielcke <fzielcke@z-51.de>
12929
12930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 12931 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 12932
eef73c8a 129332009-05-05 David S. Miller <davem@davemloft.net>
12934
12935 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
12936
119494b5 129372009-05-05 Pavel Roskin <proski@gnu.org>
12938
12939 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
12940 of grub_dl_ref() and grub_dl_unref().
12941 * commands/parttool.c: Remove preprocessor conditionals around
12942 grub_dl_ref() and grub_dl_unref().
12943 * fs/affs.c: Likewise.
12944 * fs/afs.c: Likewise.
12945 * fs/cpio.c: Likewise.
12946 * fs/ext2.c: Likewise.
12947 * fs/fat.c: Likewise.
12948 * fs/hfs.c: Likewise.
12949 * fs/hfsplus.c: Likewise.
12950 * fs/iso9660.c: Likewise.
12951 * fs/jfs.c: Likewise.
12952 * fs/minix.c: Likewise.
12953 * fs/ntfs.c: Likewise.
12954 * fs/reiserfs.c: Likewise.
12955 * fs/sfs.c: Likewise.
12956 * fs/udf.c: Likewise.
12957 * fs/ufs.c: Likewise.
12958 * fs/xfs.c: Likewise.
12959 * include/grub/dl.h: Likewise.
12960 * loader/xnu.c: Likewise.
12961
de5fd76e 129622009-05-04 Pavel Roskin <proski@gnu.org>
12963
12964 * commands/acpi.c: Remove unused variable my_mod.
12965 * partmap/amiga.c: Likewise.
12966 * partmap/apple.c: Likewise.
12967 * partmap/gpt.c: Likewise.
12968 * partmap/pc.c: Likewise.
12969 * partmap/sun.c: Likewise.
12970 * term/gfxterm.c: Likewise.
12971 * term/i386/pc/vesafb.c: Likewise.
12972 * term/i386/pc/vga.c: Likewise.
12973
983598ad 129742009-05-04 David S. Miller <davem@davemloft.net>
12975
12976 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
12977 pointer args to grub_ieee1275_get_property().
12978
8aadec43 12979 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
12980
9554b15e 12981 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
12982 devices, and do not traverse down under controller nodes.
12983
67e23c90 12984 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
12985 (grub_ofdisk_open): Use it to un-escape "," characters.
12986 * kern/disk.c (find_part_sep): New.
12987 (grub_disk_open): Use it to find the first non-escaped ','
12988 character in the disk name.
12989 * util/ieee1275/devicemap.c (escape_of_path): New.
12990 (grub_util_emit_devicemap_entry): Use it.
12991 * util/sparc64/ieee1275/grub-install.in: Update script to
12992 strip partition specifiers properly by not triggering on
12993 '\' escaped ',' characters.
12994
74bfdd2f 129952009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12996
12997 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
12998 to 0x300.
12999 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
13000 resolutions.
13001 (linux_vesafb_modes): Add a lot of additional modes to the list (based
13002 on documentation from Wikipedia).
13003
4241d2b1 130042009-05-04 Pavel Roskin <proski@gnu.org>
13005
13006 * disk/ata.c: Spelling fixes.
13007 * disk/raid.c: Likewise.
13008 * disk/usbms.c: Likewise.
13009 * disk/dmraid_nvidia.c: Likewise.
13010 * kern/ieee1275/openfw.c: Likewise.
13011 * kern/ieee1275/init.c: Likewise.
13012 * kern/ieee1275/cmain.c: Likewise.
13013 * boot/i386/pc/cdboot.S: Likewise.
13014 * video/readers/png.c: Likewise.
13015 * video/i386/pc/vbe.c: Likewise.
13016 * fs/udf.c: Likewise.
13017 * fs/hfs.c: Likewise.
13018 * fs/reiserfs.c: Likewise.
13019 * efiemu/runtime/efiemu.c: Likewise.
13020 * efiemu/main.c: Likewise.
13021 * efiemu/mm.c: Likewise.
13022 * include/grub/elf.h: Likewise.
13023 * include/grub/xnu.h: Likewise.
13024 * include/grub/usbdesc.h: Likewise.
13025 * include/grub/usb.h: Likewise.
13026 * include/grub/script_sh.h: Likewise.
13027 * include/grub/lib/LzmaEnc.h: Likewise.
13028 * include/grub/efiemu/efiemu.h: Likewise.
13029 * include/grub/command.h: Likewise.
13030 * normal/menu.c: Likewise.
13031 * normal/main.c: Likewise.
13032 * normal/datetime.c: Likewise.
13033 * bus/usb/uhci.c: Likewise.
13034 * mmap/i386/uppermem.c: Likewise.
13035 * mmap/mmap.c: Likewise.
13036 * commands/acpi.c: Likewise.
13037 * commands/test.c: Likewise.
13038 * partmap/apple.c: Likewise.
13039 * font/font.c: Likewise.
13040 * loader/sparc64/ieee1275/linux.c: Likewise.
13041 * loader/macho.c: Likewise.
13042 * loader/i386/bsd_trampoline.S: Likewise.
13043 * loader/i386/bsd.c: Likewise.
13044 * loader/xnu.c: Likewise.
13045 * term/i386/pc/vesafb.c: Likewise.
13046 * term/usb_keyboard.c: Likewise.
13047 * util/resolve.c: Likewise.
13048 * util/getroot.c: Likewise.
13049
0cfc0083 130502009-05-04 Felix Zielcke <fzielcke@z-51.de>
13051
13052 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
13053
7c1d00cd 130542009-05-04 Robert Millan <rmh.grub@aybabtu.com>
13055
13056 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
13057 build error.
13058
b01f0548 130592009-05-04 Robert Millan <rmh.grub@aybabtu.com>
13060
13061 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
13062 parameter only available on BIOS.
13063
ecc3eb22 130642009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
13065
13066 Removed wrong semicolon in declaration
13067
13068 * grub/misc.h (grub_dprintf): remove semicolon
13069
112972a9 130702009-05-04 Robert Millan <rmh.grub@aybabtu.com>
13071
13072 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
13073 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
13074 is done by grub_cmd_linux() now).
13075 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
13076 restore video to text mode.
13077 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
13078 indicates lack of "vga=" parameter. "vga=0" is mapped to
13079 `GRUB_LINUX_VID_MODE_NORMAL'.
13080
afd5c115 130812009-05-04 Felix Zielcke <fzielcke@z-51.de>
13082
13083 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
13084 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
13085 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 13086 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 13087 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
13088 `grub_script.tab.c'.
13089
13090 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13091 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13093 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13094 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13095
faa517ce 13096 * Makefile.in: Remove duplicated 2008 in Copyright line.
13097
ae0c0bdc 130982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
13099
473d1e45 13100 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 13101 unconditionally.
13102 * include/grub/util/misc.h (grub_util_warn): New declaration.
13103
13104 * util/i386/pc/grub-install.in: Understand --force and pass it down
13105 to grub-setup.
13106
13107 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
13108 down to setup().
13109 (setup): Improve error messages and add warnings when requested to
13110 install in odd layouts. Refuse to install using blocklists unless
13111 --force was set.
13112
18f547ad 131132009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 13114
13115 * disk/raid.c (grub_raid_scan_device): Improve debug message.
13116
6d260daa 131172009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
13118
13119 Updated copyright year
13120
13121 * fs/hfsplus.c: updated copyright year
18f547ad 13122
69f853f8 131232009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 HFS+ UUID
13126
18f547ad 13127 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 13128 in the space previously used by unused3
13129 (grub_hfsplus_uuid): new function
13130 (grub_hfsplus_fs): added uuid field
13131
4c402e73 131322009-05-03 Pavel Roskin <proski@gnu.org>
13133
13134 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
13135 suppress warnings. It's no longer needed.
13136 * disk/host.c: Likewise.
13137 * disk/ata_pthru.c: Likewise.
13138 * disk/loopback.c: Likewise.
13139 * hook/datehook.c: Likewise.
13140 * parttool/pcpart.c: Likewise.
13141 * fs/i386/pc/pxe.c: Likewise.
13142 * fs/ntfscomp.c: Likewise.
13143 * efiemu/main.c: Likewise.
13144 * mmap/mmap.c: Likewise.
13145 * commands/crc.c: Likewise.
13146 * commands/hexdump.c: Likewise.
13147 * commands/hdparm.c: Likewise.
13148 * commands/acpi.c: Likewise.
13149 * commands/echo.c: Likewise.
13150 * commands/minicmd.c: Likewise.
13151 * commands/blocklist.c: Likewise.
13152 * commands/memrw.c: Likewise.
13153 * commands/loadenv.c: Likewise.
13154 * commands/usbtest.c: Likewise.
13155 * commands/lsmmap.c: Likewise.
13156 * commands/boot.c: Likewise.
13157 * commands/parttool.c: Likewise.
13158 * commands/configfile.c: Likewise.
13159 * commands/search.c: Likewise.
13160 * commands/ieee1275/suspend.c: Likewise.
13161 * commands/cat.c: Likewise.
13162 * commands/i386/pc/pxecmd.c: Likewise.
13163 * commands/i386/pc/play.c: Likewise.
13164 * commands/i386/pc/halt.c: Likewise.
13165 * commands/i386/pc/vbeinfo.c: Likewise.
13166 * commands/i386/pc/vbetest.c: Likewise.
13167 * commands/lspci.c: Likewise.
13168 * commands/date.c: Likewise.
13169 * commands/handler.c: Likewise.
13170 * commands/ls.c: Likewise.
13171 * commands/test.c: Likewise.
13172 * commands/cmp.c: Likewise.
13173 * commands/efi/loadbios.c: Likewise.
13174 * commands/efi/fixvideo.c: Likewise.
13175 * commands/halt.c: Likewise.
13176 * commands/help.c: Likewise.
13177 * commands/reboot.c: Likewise.
13178 * hello/hello.c: Likewise.
13179 * script/sh/main.c: Likewise.
13180 * loader/xnu.c: Likewise.
13181 * term/terminfo.c: Likewise.
13182 * term/i386/pc/serial.c: Likewise.
13183 * term/usb_keyboard.c: Likewise.
13184
515b5079 131852009-05-03 David S. Miller <davem@davemloft.net>
13186
13187 * normal/menu.c: Include grub/parser.h
13188
dfc31a22 131892009-05-03 Pavel Roskin <proski@gnu.org>
13190
2fee74f1 13191 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
13192 not char*.
13193 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
13194 Suggested by Javier Martín <lordhabbit@gmail.com>
13195
dfc31a22 13196 * util/i386/pc/grub-mkrescue.in: Allow for the case when
13197 efiemu??.o doesn't exist.
13198 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
13199 copying.
13200
18f547ad 132012009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 13202
13203 FreeBSD 64-bit support
13204
18f547ad 13205 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 13206 and loader/i386/bsd_trampoline.S
13207 (bsd_mod_ASFLAGS): new variable
13208 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
13209 (FREEBSD_MODTYPE_KERNEL64): likewise
13210 (grub_bsd64_trampoline_start): likewise
13211 (grub_bsd64_trampoline_end): likewise
13212 (grub_bsd64_trampoline_selfjump): likewise
13213 (grub_bsd64_trampoline_gdt): likewise
13214 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
13215 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
13216 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
13217 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 13218 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 13219 of "attrib" member
13220 * loader/i386/bsd_pagetable.c: new file
13221 * loader/i386/bsd_trampoline.S: likewise
13222 * loader/i386/bsd.c (ALIGN_QWORD): new macro
13223 (ALIGN_VAR): likewise
13224 (entry_hi): new variable
13225 (kern_end_mdofs): likewise
13226 (is_64bit): likewise
13227 (grub_freebsd_add_meta): use ALIGN_VAR
13228 (grub_e820_mmap): new declaration
13229 (grub_freebsd_add_mmap): new function
13230 (grub_freebsd_add_meta_module): support 64 bit kernels
13231 (grub_freebsd_list_modules): use ALIGN_VAR
13232 (gdt_descriptor): new declaration
13233 (grub_freebsd_boot): support 64 bit kernels
13234 (grub_bsd_elf64_hook): new function
13235 (grub_bsd_load_elf): support elf64
13236
038c5720 132372009-05-03 Bean <bean123ch@gmail.com>
13238
13239 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
13240 after we get the result of if statement.
13241
fc45fb58 132422009-05-03 Bean <bean123ch@gmail.com>
13243
13244 * Makefile.in (enable_efiemu): New variable.
13245
13246 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
13247 set.
13248 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
13249 path.
13250 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
13251 path, add -mno-red-zone option.
13252 (efiemu64_s.o): Likewise.
13253 (efiemu64.o): Use macro $^ for source file.
13254
13255 * configure.ac (--enable-efiemu): New option.
13256
bbee0f2b 132572009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 xnu support
13260
13261 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
13262 (pkglib_MODULES): add xnu.mod
13263 (xnu_mod_SOURCES): new variable
13264 (xnu_mod_CFLAGS): likewise
13265 (xnu_mod_LDFLAGS): likewise
13266 (xnu_mod_ASFLAGS): likewise
13267 * conf/i386-pc.rmk: likewise
13268 * conf/x86_64-efi.rmk: likewise
7dd4a573 13269 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 13270 new declaration
13271 * include/grub/i386/macho.h: new file
13272 * include/grub/i386/xnu.h: likewise
13273 * include/grub/macho.h: likewise
13274 * include/grub/machoload.h: likewise
13275 * include/grub/x86_64/macho.h: likewise
13276 * include/grub/x86_64/xnu.h: likewise
13277 * include/grub/xnu.h: likewise
13278 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
13279 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
13280 * loader/i386/efi/xnu.c: new file
13281 * loader/i386/pc/xnu.c: likewise
13282 * loader/i386/xnu.c: likewise
13283 * loader/i386/xnu_helper.S: likewise
13284 * loader/macho.c: likewise
13285 * loader/xnu.c: likewise
13286 * loader/xnu_resume.c: likewise
13287 * util/grub-dumpdevtree: likewise
13288 * include/grub/i386/pit.h: include grub/err.h
13289 (grub_pit_wait): export
13290 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 13291
5caf964d 132922009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
13293
13294 Efiemu
7dd4a573 13295
5caf964d 13296 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 13297 _linux_efi, linux_efi.
13298 new files in grub-emu
5caf964d 13299 new targets efiemu32.o and efiemu64.o
13300 * loader/linux_normal_efiemu.c: likewise
13301 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 13302 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 13303 files to copy
13304 * include/grub/autoefi.h: new file
7dd4a573 13305 * include/grub/i386/efiemu.h: likewise
5caf964d 13306 * include/grub/i386/pc/efiemu.h: likewise
13307 * include/grub/efi/api.h: add LL suffix when necessary
13308 new definitions relating to tables
13309 * include/grub/efiemu/efiemu.h: new file
13310 * include/grub/efiemu/runtime.h: likewise
13311 * efiemu/prepare.c: likewise
13312 * efiemu/loadcore_common.c: likewise
13313 * efiemu/loadcore64.c: likewise
13314 * efiemu/runtime/efiemu.sh: likewise
13315 * efiemu/runtime/efiemu.S: likewise
13316 * efiemu/runtime/efiemu.c: likewise
13317 * efiemu/runtime/config.h: likewise
13318 * efiemu/prepare32.c: likewise
13319 * efiemu/main.c: likewise
13320 * efiemu/modules/pnvram.c: likewise
13321 * efiemu/modules/i386: likewise
13322 * efiemu/modules/i386/pc: likewise
13323 * efiemu/modules/acpi.c: likewise
13324 * efiemu/i386/pc/cfgtables.c: likewise
13325 * efiemu/i386/loadcore64.c: likewise
13326 * efiemu/i386/loadcore32.c: likewise
13327 * efiemu/prepare64.c: likewise
13328 * efiemu/loadcore.c: likewise
13329 * efiemu/symbols.c: likewise
13330 * efiemu/mm.c: likewise
13331 * efiemu/loadcore32.c: likewise
7dd4a573 13332
133332009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 13334
13335 ACPI spoofing
13336
13337 * commands/acpi.c: new file
13338 * commands/i386/pc/acpi.c: likewise
13339 * commands/efi/acpi.c: likewise
13340 * include/grub/acpi.h: likewise
13341 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
13342 (acpi_mod_SOURCES): new variable
13343 (acpi_mod_CFLAGS): likewise
13344 (acpi_mod_LDFLAGS): likewise
13345 * conf/i386-efi.rmk: likewise
13346 * conf/x86_64-efi.rmk: likewise
13347
7dd4a573 133482009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 13349
13350 Missing part from mmap patch
13351
13352 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
13353 (grub_mmap_unregister)
13354 (grub_mmap_free_and_unregister): use grub_mmap_register
13355
7dd4a573 133562009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 13357
13358 Mmap services
13359
13360 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
13361 * loader/i386/linux.c (find_mmap_size): likewise
13362 (allocate_pages): likewise
13363 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
13364 (grub_fill_multiboot_mmap): likewise
13365 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
13366 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
13367 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
13368 (OPENBSD_MMAP_RESERVED): likewise
13369 * include/grub/i386/pc/memory.h: include grub/memory.h
13370 (grub_lower_mem): removed
13371 (grub_upper_mem): likewise
13372 (GRUB_MACHINE_MEMORY_ACPI): new definition
13373 (GRUB_MACHINE_MEMORY_NVS): likewise
13374 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
13375 (GRUB_MACHINE_MEMORY_HOLE): likewise
13376 (grub_machine_mmap_register): likewise
13377 (grub_machine_mmap_unregister): likewise
13378 (grub_machine_get_upper): likewise
13379 (grub_machine_get_lower): likewise
13380 (grub_machine_get_post64): likewise
13381 * include/grub/i386/efi/memory.h: new file
13382 * include/grub/x86_64/efi/memory.h: likewise
13383 * include/grub/efi/memory.h: likewise
13384 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
13385 (mmap_mod_SOURCES): new variable
13386 (mmap_mod_LDFLAGS): likewise
13387 (mmap_mod_ASFLAGS): likewise
13388 * conf/i386-coreboot.rmk: likewise
13389 * conf/i386-ieee1275.rmk: likewise
13390 * conf/i386-efi.rmk: likewise
13391 * conf/x86_64-efi.rmk: likewise
13392 * include/grub/types.h (UINT_TO_PTR): new macro
13393 (PTR_TO_UINT32): likewise
13394 (PTR_TO_UINT64): likewise
13395 * include/grub/memory.h: new file
13396 * mmap/i386/pc/mmap.c: likewise
13397 * mmap/i386/pc/mmap_helper.S: likewise
13398 * mmap/i386/uppermem.c: likewise
13399 * mmap/mmap.c: likewise
13400 * mmap/efi/mmap.c: likewise
7dd4a573 13401 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 13402 grub_upper_mem
13403 * kern/i386/pc/init.c (grub_lower_mem): removed variable
13404 (grub_upper_mem): likewise
13405 (grub_machine_init): don't use grub_upper_mem,
13406 make grub_lower_mem local
13407 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
13408 grub_mmap_iterate and grub_mmap_get_upper
13409 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
13410
d558e6b5 134112009-05-02 Bean <bean123ch@gmail.com>
13412
13413 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
13414 script/sh/parser.y.
13415 (pkglib_MODULES): Add normal.mod and sh.mod.
13416 (normal_SOURCES): New variable.
13417 (normal_mod_CFLAGS): Likewise.
13418 (normal_mod_LDFLAGS): Likewise.
13419 (sh_mod_SOURCES): Likewise.
13420 (sh_mod_CFLAGS): Likewise.
13421 (sh_mod_LDFLAGS): Likewise.
13422
13423 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
13424 script/sh/lexer.c_DEPENDENCIES.
13425 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
13426 kern/rescue_reader.c and kern/rescue_parser.c.
13427 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
13428 (grub_emu_SOURCES): Change source files.
13429 (pkglib_MODULES): Remove normal.mod.
13430 (normal_SOURCES): Removed.
13431 (normal_mod_CFLAGS): Likewise.
13432 (normal_mod_LDFLAGS): Likewise.
13433 * conf/i386-coreboot.rmk: Likewise.
13434 * conf/i386-efi.rmk: Likewise.
13435 * conf/i386-ieee1276.rmk: Likewise.
13436 * conf/powerpc-ieee1275.rmk: Likewise.
13437 * conf/sparc64-ieee1275.rmk: Likewise.
13438 * conf/x86_64-efi.rmk: Likewise.
13439
13440 * include/grub/command.h (grub_command_execute): New inline function.
13441
13442 * include/grub/menu.h (grub_menu_entry): Removed commands field.
13443
13444 * include/grub/normal.h: Remove <grub/setjmp.h>.
13445 (grub_fs_module_list): Moved to normal/autofs.c.
13446 (grub_exit_env): Removed.
13447 (grub_command_execute): Likewise.
13448 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
13449 parameter script.
13450 (read_command_list): New function declaration.
13451 (read_fs_list): Likewise.
13452
13453 * include/parser.h: Include <grub/reader.h>.
13454 (grub_parser_split_cmdline): Change type of getline parameter.
13455 (grub_parser): New structure.
13456 (grub_parser_class): New variable.
13457 (grub_parser_execute): New function declaration.
13458 (grub_register_rescue_parser): Likewise.
13459 (grub_parser_register): New inline function.
13460 (grub_parser_unregister): Likewise.
13461 (grub_parser_get_current): Likewise.
13462 (grub_parser_set_current): Likewise.
13463
13464 * include/grub/reader.h: New file.
13465 * kern/reader.c: Likewise.
13466 * kern/rescue_parser.c: Likewise.
13467 * kern/rescue_reader.c: Likewise.
13468 * normal/autofs.c: Likewise.
13469 * normal/dyncmd.c: Likewise.
13470
13471 * include/grub/rescue.h: Removed.
13472 * normal/command.h: Likewise.
13473
13474 * include/grub/script.h: Moved to ...
13475 * include/grub/script_sh.h: ... Moved here.
13476 * normal/execute.c: Moved to ...
13477 * script/sh/execute.c: ... Moved here.
13478 * normal/function.c: Moved to ...
13479 * script/sh/function.c: ... Moved here.
13480 * normal/lexer.c: Moved to ...
13481 * script/sh/lexer.c: ... Moved here.
13482 * normal/parser.y: Moved to ...
13483 * script/sh/parser.y: ... Moved here.
13484 * normal/script.c: Moved to ...
13485 * script/sh/script.c: ... Moved here.
13486
13487 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
13488 <grub/reader.h>.
13489 (grub_exit_env): Removed.
13490 (fs_module_list): Moved to normal/autofs.c.
13491 (grub_file_getline): Don't handle comment here.
13492 (free_menu): Skip removed field entry->commands.
13493 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
13494 script parameter.
13495 (read_config_file): Removed nested parameter, change getline function.
13496 (grub_enter_normal_mode): Removed.
13497 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
13498 (read_command_list): Likewise.
13499 (autoload_fs_module): Moved to normal/autofs.c.
13500 (read_fs_list): Likewise.
13501 (reader_nested): New variable.
13502 (grub_normal_execute): Run parser.sh to switch to sh parser.
13503 (grub_cmd_rescue): Removed.
13504 (cmd_normal): Removed.
13505 (grub_cmd_normal): Unregister itself at the beginning. Don't register
13506 rescue command.
13507 (grub_cmdline_run): New function.
13508 (grub_normal_reader_init): Likewise.
13509 (grub_normal_read_line): Likewise.
13510 (grub_env_write_pager): Likewise.
13511 (cmdline): New variable.
13512 (grub_normal_reader): Likewise.
13513 (GRUB_MOD_INIT): Register normal reader and set as current, register
13514 pager hook, register normal command with grub_register_command_prio,
13515 so that it won't show up in command.lst.
13516 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
13517 grub_fs_autoload_hook.
13518
13519 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
13520 (grub_menu_execute_entry): Replace grub_script_execute with
13521 grub_parser_execute, change parameter to grub_command_execute.
13522
13523 * normal/menu_text.c: Remove <grub/script.h>.
13524
13525 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
13526 and <grub/parser.h>.
13527 (run): Change editor_getline to use new parser interface. Change
13528 parameter to grub_command_execute.
13529
13530 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
13531 <grub/reader.h> and <grub/parser.h>.
13532 (grub_load_normal_mode): Execute normal command.
13533 (grub_main): Call grub_register_core_commands,
13534 grub_register_rescue_parser and grub_register_rescue_reader, use
13535 grub_reader_loop to enter input loop.
13536
7dd4a573 13537 * kern/parser.c (grub_parser_split_cmdline): Change type of
13538 getline parameter.
d558e6b5 13539 (grub_parser_class): New variable.
13540 (grub_parser_execute): New function.
13541
13542 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
13543 * loader/multiboot2.c: Likewise.
13544 * loader/sparc64/ieee1275/linux.c: Likewise.
13545
13546 * util/grub-emu.c (read_command_list): New dummy function.
13547
18db813d 135482009-05-02 Robert Millan <rmh.grub@aybabtu.com>
13549
13550 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
13551 count to 16 for CCISS and IDA.
13552
6c67de15 135532009-05-02 Robert Millan <rmh.grub@aybabtu.com>
13554
13555 * normal/menu_text.c (grub_wait_after_message): Print a newline
13556 after waiting for user input.
13557
13558 * loader/i386/linux.c: Include `<grub/normal.h>'.
13559 (grub_cmd_linux): Improve the error message about `ask' mode, by
13560 waiting for user input so it's not missed (we can do this, since
13561 user requested interaction).
13562
d9dc87b0 135632009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 Added missing lst to grub-mkrescue
13566
13567 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
13568 and ${input_dir}/parttool.lst
13569
ac8a2baa 135702009-04-30 David S. Miller <davem@davemloft.net>
13571
ad22a610 13572 * util/hostdisk.c (device_is_wholedisk): New function.
13573 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
13574 zero only if device_is_wholedisk() returns true.
13575
6966215d 13576 * util/hostdisk.c (convert_system_partition_to_system_disk):
13577 Handle virtual disk devices named /dev/vdiskX as found on sparc
13578 and powerpc.
13579
ac8a2baa 13580 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
13581 lettered partition specifier is found, convert to numbered.
13582
979b4fb4 135832009-04-29 David S. Miller <davem@davemloft.net>
13584
e2bf39b2 13585 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
13586 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13587
3c64e104 13588 * normal/command.c: Add missing newline at end of file.
13589
979b4fb4 13590 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
13591 warnings.
13592 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
13593 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
13594 grub_ofdisk_read): Likewise, and deal similarly with the fact that
13595 ihandles have a 32-bit type but need to be stored in a "void *".
13596
136d9f82 135972009-04-28 Pavel Roskin <proski@gnu.org>
13598
9459c306 13599 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
13600 not disk. Adjust all dependencies.
2e08a26a 13601 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 13602 grub_disk_close().
13603
136d9f82 13604 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
13605 parent's partition, don't copy it by reference, as it gets freed
13606 on close.
13607
7dd4a573 136082009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 13609
13610 Preboot hooks support
13611
13612 * commands/boot.c (struct grub_preboot_t): new declaration
13613 (preboots_head): new variable
13614 (preboots_tail): likewise
13615 (grub_loader_register_preboot_hook): new function
13616 (grub_loader_unregister_preboot_hook): likewise
13617 (grub_loader_set): launch preboot hooks
13618 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
13619 (grub_loader_register_preboot_hook): new declaration
13620 (grub_loader_unregister_preboot_hook): likewise
13621
5af922b5 136222009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
13623
13624 Warning fix
13625
7dd4a573 13626 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 13627 calling grub_dprintf
13628
a5562c30 136292009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
13630
13631 Bug and warning fixes
13632
7dd4a573 13633 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 13634 declaration
13635 * commands/test.c (test_parse): fixed bug with file tests and corrected
13636 declaration of find_file
13637
4006f85c 136382009-04-26 Pavel Roskin <proski@gnu.org>
13639
13640 * Makefile.in: Don't install empty manual pages if help2man is
13641 missing. Use help2man option for output, not shell redirection.
13642
5c77c3de 136432009-04-26 David S. Miller <davem@davemloft.net>
13644
13645 * util/grub-mkdevicemap.c (make_device_map): Add missing
13646 NESTED_FUNC_ATTR to process_device().
13647
033b10a8 136482009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 Test command
13651
13652 * commands/test.c: rewritten to use bash-like test
13653
e4343593 136542009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 Parttool autoloading and improvements
13657
7dd4a573 13658 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 13659 (parttool.lst): new target
13660 * genmk.rb: generate parttool-*
13661 (CLEANFILES): add #{parttool}
13662 (PARTTOOLFILES): new variable
13663 * genparttoollist.sh: new file
7dd4a573 13664 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 13665 (grub_pcpart_type): likewise
13666 * commands/parttool.c (helpmsg): new variable
13667 (grub_cmd_parttool): output help if not enough arguments are supplied
13668 autoload modules
13669 (GRUB_MOD_INIT(parttool)): use helpmsg
13670
0d312500 136712009-04-24 David S. Miller <davem@davemloft.net>
13672
7dd4a573 13673 Avoiding opening same device multiple times in device iterator.
0d312500 13674
13675 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 13676 and use it to build a list of partitions in iterate_disk() and
0d312500 13677 iterate_partition().
13678
ac20caff 13679 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
13680 on disk->data.
13681
0dcf7495 13682 * disk/ieee1275/nand.c (grub_nand_iterate): Return
13683 grub_devalias_iterate() result instead of unconditional 0.
13684 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
13685 Also, capture hook return value, either directly or via
13686 grub_children_iterate(), and propagate to caller.
13687 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
13688 grub_children_iterate): Return value is now 'int' instead of
13689 'grub_err_t'.
13690 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
13691 like a proper iterator, stopping when hooks return non-zero.
13692 (grub_devalias_iterate): Likewise.
13693
c8c08833 136942009-04-23 David S. Miller <davem@davemloft.net>
13695
13696 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
13697
f01005a8 136982009-04-22 David S. Miller <davem@davemloft.net>
13699
13700 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
13701 is larger than address_cells, use that value for address_cells too.
13702
4e8269da 13703 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
13704 IEEE1275_MAX_PATH_LEN): Define.
13705 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
13706 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
13707 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
13708 'devtype'. Explicitly NULL terminate devalias expansion.
13709
a1447506 13710 * util/sparc64/ieee1275/misc.c: New file.
13711 * util/sparc64/ieee1275/grub-setup.c: New file.
13712 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
13713 * util/sparc64/ieee1275/grub-mkimage.c: New file.
13714 * util/sparc64/ieee1275/grub-install.in: New file.
13715 * util/ieee1275/ofpath.c: New file.
13716 * util/ieee1275/devicemap.c: New file.
13717 * util/devicemap.c: New file.
13718 * util/deviceiter.c: New file.
13719 * kern/sparc64/ieee1275/init.c: New file.
13720 * include/grub/util/ofpath.h: New file.
13721 * include/grub/util/deviceiter.h: New file.
13722 * util/grub-mkdevicemap.c: Include deviceiter.h.
13723 Implement using grub_util_emit_devicemap_entry and
13724 grub_util_iterate_devices.
13725 * conf/i386-corebook.rmk: Build util/deviceiter.c and
13726 util/devicemap.c into grub-mkdevicemap
13727 * conf/i386-efi.rmk: Likewise.
13728 * conf/i386-ieee1275.rmk: Likewise.
13729 * conf/i386-pc.rmk: Likewise.
13730 * conf/powerpc-ieee1275.rmk: Likewise.
13731 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
13732 images and installation utilities. Build kernel as image
13733 instead of as elf binary. Use common rules as much as possible.
13734
7dd4a573 137352009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 13736
13737 Correct GPT definition
13738
7dd4a573 13739 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 13740 of "attrib" member
13741
c6c5219f 137422009-04-19 Felix Zielcke <fzielcke@z-51.de>
13743
13744 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
13745
0552ff9f 137462009-04-19 David S. Miller <davem@davemloft.net>
13747
13748 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
13749 (grub_rescue_cmd_linux): Rename to...
13750 (grub_cmd_linux): and fix prototype.
13751 (grub_rescue_cmd_initrd): Rename to...
13752 (grub_cmd_initrd): and fix prototype.
13753 (cmd_linux, cmd_initrd): New.
13754 (GRUB_MOD_INIT(linux)): Use grub_register_command().
13755 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
13756
d1a282fc 137572009-04-17 Pavel Roskin <proski@gnu.org>
13758
07c5039f 13759 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
13760 format.
13761 (grub_ohci_transfer): Likewise.
13762
b012002d 13763 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
13764
1bc09c35 13765 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
13766 return without a value. Fix inconsistent indentation.
13767
e0ff9126 13768 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
13769 match struct grub_fs.
13770
d1a282fc 13771 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
13772 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
13773 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
13774 * commands/lspci.c (grub_lspci_iter): Likewise.
13775
a96df3f2 137762009-04-16 Bean <bean123ch@gmail.com>
13777
13778 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
13779 value.
13780
41bb0fe9 137812009-04-15 Pavel Roskin <proski@gnu.org>
13782
13783 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
13784 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
13785 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
13786 definitions.
13787
596c6970 137882009-04-15 Felix Zielcke <fzielcke@z-51.de>
13789
13790 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 13791 that no multiple data or metadata areas are supported and `Unknown
596c6970 13792 metadata header'.
13793
7dd4a573 137942009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 13795
13796 Move loader out of the kernel
13797
13798 * kern/loader.c: moved to ...
13799 * commands/boot.c: ... moved here
13800 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
13801 * commands/boot.c (grub_cmd_boot): moved here. All users updated
13802 * include/grub/kernel.h (grub_machine_fini): export
13803 * include/grub/loader.h (grub_loader_is_loaded): update declaration
13804 (grub_loader_set): likewise
13805 (grub_loader_unset): likewise
13806 (grub_loader_boot): likewise
13807 * conf/common.rmk: new module boot.mod
13808 (pkglib_MODULES): add boot.mod
13809 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
13810 (grub_emu_SOURCES): likewise
13811 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
13812 (grub_emu_SOURCES): likewise
13813 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
13814 (grub_emu_SOURCES): likewise
13815 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
13816 (grub_emu_SOURCES): likewise
13817 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
13818 (grub_emu_SOURCES): likewise
7dd4a573 13819 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
13820 (grub_emu_SOURCES): likewise
0d5d5653 13821 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 13822 (grub_emu_SOURCES): likewise
0d5d5653 13823
7dd4a573 138242009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 13825
13826 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 13827
5999d619 13828 * kern/misc.c (grub_itoa): Removed function
13829 (grub_ltoa): likewise
13830 (grub_vsprintf): use grub_lltoa
13831
7dd4a573 138322009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 13833
13834 Restore grub-emu
13835
13836 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
13837 * conf/i386-coreboot.rmk: likewise
13838 * conf/i386-ieee1275.rmk: likewise
13839 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 13840
20318222 138412009-04-15 Felix Zielcke <fzielcke@z-51.de>
13842
13843 * INSTALL: Add that `./autogen.sh' needs to be run before
13844 `./configure.'.
13845
d05f0df3 138462009-04-14 Bean <bean123ch@gmail.com>
13847
13848 * Makefile.in (pkglib_DATA): Add handler.lst.
13849 (handler.lst): New rule.
13850
13851 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
13852 * conf/i386-coreboot.rmk: Likewise.
13853 * conf/i386-ieee1275.rmk: Likewise.
13854 * conf/i386-efi.rmk: Likewise.
13855 * conf/x86_64-efi.rmk: Likewise.
13856 * conf/powerpc-ieee1275.rmk: Likewise.
13857 * conf/sparc64-ieee1275.rmk: Likewise.
13858
13859 * genhandlerlist.sh: New file.
13860
13861 * genmk.rb: Add rules to generate handler.lst.
13862
13863 * include/grub/normal.h (grub_file_getline): New function definition.
13864 (read_handler_list): Likewise.
13865 (free_handler_list): Likewise.
13866
13867 * include/grub/term.h (grub_term_register_input): Add name parameter
13868 for auto generation of handler.lst.
13869 (grub_term_register_output): Likewise.
13870
13871 * normal/handler.c: New file.
13872
13873 * normal/main.c (get_line): Renamed to grub_file_getline.
13874 (read_config_file): Use the newly renamed grub_file_getline.
13875 (read_command_list): Likewise.
13876 (read_fs_list): Likewise.
13877 (grub_normal_execute): Call read_handler_list to parse handler.lst.
13878 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
13879
13880 * term/efi/console.c (grub_console_init): Add name parameter for auto
13881 generation of handler.lst.
13882 * term/gfxterm.c: Likewise.
13883 * term/i386/pc/at_keyboard.c: Likewise.
13884 * term/i386/pc/console.c: Likewise.
13885 * term/i386/pc/serial.c: Likewise.
13886 * term/i386/pc/vesafb.c: Likewise.
13887 * term/i386/pc/vga.c: Likewise.
13888 * term/i386/pc/vga_text.c: Likewise.
13889 * term/ieee1275/ofconsole.c: Likewise.
13890 * term/usb_keyboard.c: Likewise.
13891
33c846be 138922009-04-14 Bean <bean123ch@gmail.com>
13893
13894 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
13895 properly with null character.
13896
4484e01e 138972009-04-14 Felix Zielcke <fzielcke@z-51.de>
13898
13899 * configure: Remove.
13900 * config.h.in: Likewise.
f93d668e 13901 * stamp-h.in: Likewise.
4484e01e 13902 * DISTLIST: Likewise.
13903 * conf/common.mk: Likewise.
13904 * conf/i386-coreboot.mk: Likewise.
13905 * conf/i386-efi.mk: Likewise.
13906 * conf/i386-ieee1275.mk: Likewise.
13907 * conf/i386.mk: Likewise.
13908 * conf/i386-pc.mk: Likewise.
13909 * conf/powerpc-ieee1275.mk: Likewise.
13910 * conf/sparc64-ieee1275.mk: Likewise.
13911 * conf/x86_64-efi.mk: Likewise.
13912
13913 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
13914 develop on GRUB.
13915
7dd4a573 139162009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 13917 David S. Miller <davem@davemloft.net>
13918
13919 * util/hostdisk.c (make_device_name): Fix buffer length
13920 calculations.
13921
e25b5a8c 139222009-04-14 Felix Zielcke <fzielcke@z-51.de>
13923
13924 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
13925 <sys/param.h> and <sys/sysctl.h>.
13926 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
13927 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
13928 opening the device and reset them afterwards.
13929
1f1f580c 139302009-04-13 Pavel Roskin <proski@gnu.org>
13931
13932 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
13933 Reported by John Stanley <jpsinthemix@verizon.net>
13934
7ebc2d6b 139352009-04-13 Robert Millan <rmh@aybabtu.com>
13936
13937 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 13938 that name for menuentries when appropriate.
7ebc2d6b 13939
d8ba3667 139402009-04-13 Felix Zielcke <fzielcke@z-51.de>
13941
13942 * util/grub.d/10_freebsd.in: Add a missing `fi'.
13943
cba416eb 139442009-04-13 Robert Millan <rmh@aybabtu.com>
13945
13946 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
13947 to Linux, simply abort telling the user it's no longer supported.
13948
a547a745 139492009-04-13 Felix Zielcke <fzielcke@z-51.de>
13950
13951 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 13952 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 13953 `freebsd_loadenv' only when devices.hints exist.
13954
232a769c 139552009-04-13 Pavel Roskin <proski@gnu.org>
13956
13957 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
13958
c3012039 139592009-04-13 Felix Zielcke <fzielcke@z-51.de>
13960
13961 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
13962 partition number.
13963 (grub_drive): Likewise.
13964
234022fe 139652009-04-13 David S. Miller <davem@davemloft.net>
13966
13967 * kern/sparc64/ieee1275/ieee1275.c: New file.
13968 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
13969 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
13970 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
13971 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
13972 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
13973 grub_ieee1275_alloc_physmem): Declare new exported functions.
13974
d8e1836c 13975 * include/grub/sparc64/ieee1275/loader.h: New file.
13976 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13977 * include/grub/sparc64/kernel.h: Likewise.
13978 * loader/sparc64/ieee1275/linux.c: Likewise.
13979
96bd81ec 13980 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
13981 (grub_fstest_SOURCES): Likewise.
13982
6a4737e5 13983 * util/hostdisk.c (make_device_name): Do not make any assumptions
13984 about the length of drive names.
13985
1d7a72fd 13986 * kern/dl.c (grub_dl_load_file): Close file immediately when
13987 we are done using it.
13988
56bc2471 139892009-04-12 David S. Miller <davem@davemloft.net>
13990
13991 * kern/misc.c (grub_ltoa): Fix cast when handling negative
13992 values. Noticed by Pavel Roskin.
13993
df38d0bb 13994 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
13995 target compiler.
7dd4a573 13996
e382e93a 13997 * genmk.rb: Add more flexible image type specification, also
13998 pass --strip-unneeded to objcopy.
13999 * conf/i386-pc.rmk: Use *_FORMAT.
14000 * conf/i386-pc.mk: Rebuilt.
14001
f5dbbca9 14002 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
14003 (OFDISK_HASH_SZ): Define.
14004 (ofdisk_hash): New hash table.
14005 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
14006 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
14007 instead of device phandle which is not unique.
14008
91c88b12 14009 * kern/sparc64/ieee1275/init.c: Delete, replace with...
14010 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
14011 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
14012 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
14013 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
14014 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
14015 GRUB_KERNEL_MACHINE_DATA_END): Define.
14016 (grub_kernel_image_size, grub_total_module_size): Declare.
14017
5b5d4aa5 140182009-04-12 Pavel Roskin <proski@gnu.org>
14019
7dd4a573 14020 * configure.ac: Change the logic when we check for target tools.
14021 Do it when the target is specified and it's different from the
14022 specified value of the host.
5b5d4aa5 14023
c91e1793 140242009-04-11 Felix Zielcke <fzielcke@z-51.de>
14025
14026 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
14027 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
14028 GNU/kFreeBSD. Check if a device is a character device. Use
14029 DIOCGMEDIASIZE to get the size.
14030 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
14031 support for GNU/kFreeBSD.
14032 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
14033 is a character device instead of a block device. Add support for
14034 FreeBSD device names.
14035
14036 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
14037 is a character device instead of a block device.
14038
14039 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
14040 is a character device instead of a block device.
14041
b1ac8644 140422009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
14043
14044 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
14045 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
14046 FreeBSD. Check if a device is a character device. Use
14047 DIOCGMEDIASIZE to get the size.
14048 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
14049 support for FreeBSD.
14050 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
14051 is a character device instead of a block device. Add support for
14052 FreeBSD device names.
14053
14054 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
14055 a character device instead of a block device.
14056 (grub_util_check_char_device): New function.
14057
14058 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
14059 a character device instead of a block device.
14060
14061 * include/grub/util/getroot.h (grub_util_check_char_device): New
14062 prototype.
14063
a3f7515a 140642009-04-11 David S. Miller <davem@davemloft.net>
14065
14066 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
14067 static libgcc.
14068 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
14069 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
14070 function, if present.
14071 (__bswapdi2): Likewise.
14072
0d44993d 14073 * include/grub/sparc64/ieee1275/boot.h: New file.
14074 * boot/sparc64/ieee1275/boot.S: Likewise.
14075 * boot/sparc64/ieee1275/diskboot.S: Likewise.
14076
ed3d2bc2 14077 * kern/misc.c (grub_ltoa): New function.
14078 (grub_vsprintf): Use it to format 'long' integers.
14079
d3bfb59c 140802009-04-10 David S. Miller <davem@davemloft.net>
14081
14082 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
14083 slots are of type grub_ieee1275_cell_t.
14084 (grub_nand_read): Likewise.
14085 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
14086 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
14087 macros are used to compare values in arg/ret block of the call.
14088 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
14089 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
14090 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
14091 grub_ieee1275_instance_to_path, grub_ieee1275_write,
14092 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
14093 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
14094 grub_ieee1275_close, grub_ieee1275_set_property,
14095 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
14096 grub_ieee1275_cell_t.
14097 * kern/ieee1275/openfw.c (grub_map): Likewise.
14098 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
14099 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
14100
450e2238 14101 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
14102 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
14103 (grub_devalias_iterate): Likewise.
14104
7dd4a573 141052009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 14106
14107 UFS improvements
14108
14109 * fs/ufs.c (INODE_NBLOCKS): new definition
14110 (struct grub_ufs_dirent): added fields for non-BSD dirents
14111 (grub_ufs_get_file_block): fixed double indirect handling
14112 (grub_ufs_lookup_symlink): use more robust way to determine whether
14113 symlink is inline
14114 (grub_ufs_find_file): support for non-BSD dirents
14115 (grub_ufs_dir): support for non-BSD dirents
14116
e7e6862a 141172009-04-10 Bean <bean123ch@gnail.com>
14118
14119 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
14120 attribute, otherwise the size would be wrong for i386 platform.
14121
14122 * include/grub/pci.h (grub_pci_read_word): New inline function.
14123 (grub_pci_read_byte): Likewise.
14124 (grub_pci_write): Likewise.
14125 (grub_pci_write_word): Likewise.
14126 (grub_pci_write_byte): Likewise.
14127
14128 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
14129
14130 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
14131 (find_framebuf): Scan pci to locate the frame buffer address.
14132
14133 * commands/efi/fixvideo.c: New file.
14134
14135 * commands/efi/loadbios.c: Likewise.
14136
14137 * commands/memrw.c: Likewise.
14138
14139 * util/grub-dumpbios.in: Likewise.
14140
14141 * conf/common.rmk (grub-dumpbios): New utility.
14142 (pkglib_MODULES): New module memrw.mod.
14143 (memrw_mod_SOURCE): New macro.
14144 (memrw_mod_CFLAGS): Likewise.
14145 (memrw_mod_LDFLAGS): Likewise.
14146
7dd4a573 14147 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 14148 fixvideo.mod.
14149 (loadbios_mod_SOURCE): New macro.
14150 (loadbios_mod_CFLAGS): Likewise.
14151 (loadbios_mod_LDFLAGS): Likewise.
14152 (fixvideo_mod_SOURCE): Likewise.
14153 (fixvideo_mod_CFLAGS): Likewise.
14154 (fixvideo_mod_LDFLAGS): Likewise.
14155
7dd4a573 14156 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 14157 fixvideo.mod.
14158 (loadbios_mod_SOURCE): New macro.
14159 (loadbios_mod_CFLAGS): Likewise.
14160 (loadbios_mod_LDFLAGS): Likewise.
14161 (fixvideo_mod_SOURCE): Likewise.
14162 (fixvideo_mod_CFLAGS): Likewise.
14163 (fixvideo_mod_LDFLAGS): Likewise.
14164
af63ada2 141652009-04-08 Felix Zielcke <fzielcke@z-51.de>
14166
14167 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
14168
c2cdde70 141692009-04-07 David S. Miller <davem@davemloft.net>
14170
14171 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
14172 support for R_SPARC_OLO10 relocations. Fix compile warning for
14173 R_SPARC_WDISP30 case.
ea3f72cf 14174 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 14175
761319cf 141762009-04-06 Pavel Roskin <proski@gnu.org>
14177
1007d1f5 14178 * include/grub/misc.h (ARRAY_SIZE): New macro.
14179 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
14180 New macro.
14181 * loader/i386/linux.c (allocate_pages): Use free_pages().
14182 (grub_linux_unload): Don't use free_pages().
14183 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
14184 wrong index. Treat all other modes as text modes.
14185 (grub_cmd_linux): Initialize vid_mode unconditionally to
14186 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
14187
761319cf 14188 * commands/help.c (print_command_help): Use cmd->prio, not
14189 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
14190
ea761d40 141912009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 14192
ea761d40 14193 Parttool
14194
14195 * parttool/pcpart.c: new file
14196 * commands/parttool.c: likewise
14197 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
14198 (parttool_mod_SOURCES): new variable
14199 (parttool_mod_CFLAGS): likewise
14200 (parttool_mod_LDFLAGS): likewise
14201 (pcpart_mod_SOURCES): likewise
14202 (pcpart_mod_CFLAGS): likewise
14203 (pcpart_mod_LDFLAGS): likewise
7dd4a573 14204 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 14205 and parttool/pcpart.c
14206 * conf/i386-efi.rmk: likewise
14207 * conf/i386-ieee1275.rmk: likewise
14208 * conf/i386-pc.rmk: likewise
14209 * conf/powerpc-ieee1275.rmk: likewise
14210 * conf/sparc64-ieee1275.rmk: likewise
14211 * conf/x86_64-ieee1275.rmk: likewise
14212
05aaebfb 142132009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14214
14215 Support for mtime and further expandability of dir command
14216
14217 * include/grub/lib/datetime.h: moved to ...
7dd4a573 14218 * include/grub/datetime.h: ... moved here and added
05aaebfb 14219 declaration of grub_unixtime2datetime. All users updated
7dd4a573 14220 * include/grub/fs.h: new syntax for dir and mtime functions in
14221 struct grub_fs
05aaebfb 14222 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
14223 and GRUB_FSHELP_FLAGS_MASK
14224 * commands/ls.c (grub_ls_list_files): Write mtime in long format
14225 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
14226 (grub_ext2_mtime): new function
14227 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
14228 (grub_hfsplus_mtime): new function
14229 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
14230 (GRUB_UFS_ATTR_FILE): likewise
14231 (GRUB_UFS_ATTR_LNK): likewise
14232 (struct grub_ufs_sblock): new fields mtime
14233 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
14234 all users updated
14235 (grub_ufs_dir): mtime support
14236 (grub_ufs_mtime): new function
14237 * fs/affs.c (grub_affs_dir): use new dir syntax
14238 * fs/afs.c (grub_afs_dir): likewise
14239 * fs/cpio.c (grub_cpio_dir): likewise
14240 * fs/fat.c (grub_fat_find_dir): likewise
14241 * fs/hfs.c (grub_hfs_dir): likewise
14242 * fs/iso9660.c (grub_iso9660_dir): likewise
14243 * fs/jfs.c (grub_jfs_dir): likewise
14244 * fs/minix.c (grub_minix_dir): likewise
14245 * fs/ntfs.c (grub_ntfs_dir): likewise
14246 * fs/reiserfs.c (grub_reiserfs_dir): likewise
14247 * fs/sfs.c (grub_sfs_dir): likewise
14248 * fs/xfs.c (grub_xfs_dir): likewise
14249 * util/hostfs.c (grub_hostfs_dir): likewise
14250 * lib/datetime.c: moved to ...
14251 * normal/datetime.c: ... moved here
14252 (grub_unixtime2datetime): new function
14253 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 14254 * normal/completion.c (iterate_dir): use new dir syntax
14255 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 14256 last modification time of a volume
7dd4a573 14257 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 14258 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 14259 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 14260 (normal_mod_SOURCES): likewise
14261 (datetime_mod_SOURCES): Removed lib/datetime.c
14262 * conf/i386-efi.rmk: likewise
7dd4a573 14263 * conf/i386-ieee1275.rmk: likewise
05aaebfb 14264 * conf/i386-pc.rmk: likewise
14265 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 14266 * conf/sparc64-ieee1275.rmk: likewise
14267 * conf/x86_64-efi.rmk: likewise
05aaebfb 14268
8a7e1a14 142692009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
14270
14271 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 14272
14273 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 14274 on grub_fat_find_dir
14275 (grub_fat_find_dir): use grub_fat_iterate_dir
14276 (grub_fat_label): likewise
14277
04186a9c 142782009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
14279
7dd4a573 14280 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 14281 and command.h
14282 remove extraneous kernel_elf_HEADERS
14283
da4c0bb6 142842009-04-04 Bean <bean123ch@gnail.com>
14285
14286 * include/grub/util/misc.h: Add dummy function fsync for mingw.
14287
14288 * util/misc.c: Likewise.
14289
54ad9555 142902009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
14291
14292 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
14293 instead of grub_printf.
14294
7a6bf9f2 142952009-04-03 Robert Millan <rmh@aybabtu.com>
14296
14297 * loader/i386/linux.c (grub_linux_setup_video): Fill
14298 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
14299 values from `mode info' structure instead of hardcoded
14300 values.
14301
3fcc2083 143022009-04-01 Pavel Roskin <proski@gnu.org>
14303
14304 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
14305 unused now.
14306 * genmk.rb: Likewise.
14307 * configure.ac: Likewise.
14308
5ec9740b 143092009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
14310
14311 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
14312 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
14313
5270cec8 143142009-04-01 David S. Miller <davem@davemloft.net>
14315
14316 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 14317 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 14318 (grub_setjmp): Mark with 'returns_twice' attribute.
14319 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
14320 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
14321 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
14322
9c3dd854 143232009-04-01 Robert Millan <rmh@aybabtu.com>
14324
14325 Reapply fix from 2008-07-28 which was accidentally reverted; also
14326 perform the same fix to a similar check in same function.
14327
14328 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
14329 with the same number are found, just use issue a warning with
14330 grub_dprintf(), as this error has been reported to be non-fatal.
14331
0d818b7e 143322009-03-31 Pavel Roskin <proski@gnu.org>
14333
14334 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
14335 for cross-compilation.
14336
95646d92 143372009-03-30 Robert Millan <rmh@aybabtu.com>
14338
14339 Fix i386-ieee1275 build.
14340
14341 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
14342 Remove declaration.
14343
6a003ed1 143442009-03-30 Pavel Roskin <proski@gnu.org>
14345
14346 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
14347 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
14348 zero-terminated, rely only on the strlen value. Fix comparison
14349 of strings differing in length.
14350
92f33540 143512009-03-30 Robert Millan <rmh@aybabtu.com>
14352
14353 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
14354 checking for abi version. Improve error messages on BIOS to notify
14355 user about `linux16' command.
14356
a8c48fd5 143572009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14358
f968172e 14359 Leak fixes
a8c48fd5 14360
f968172e 14361 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
14362 in case of collision
14363 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 14364
9c323f09 143652009-03-29 Robert Millan <rmh@aybabtu.com>
14366
14367 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
14368 set `vid_mode' accordingly.
14369 (grub_linux_boot): Process `vid_mode' and set video mode.
14370
ae68f423 143712009-03-29 Robert Millan <rmh@aybabtu.com>
14372
14373 * util/grub.d/10_linux.in (linux_entry): New function.
14374 Factorize generation of Linux boot entries.
14375
5709cfc4 143762009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
14377
14378 Make the format of Environment Block plain text. The boot loader
14379 part is not tested well yet.
7dd4a573 14380
5709cfc4 14381 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
14382 (buffer): Removed.
14383 (envblk): Likewise.
14384 (usage): Remove "info" and "clear". Add "unset". Update the
14385 description of "set", as this does not delete variables any
14386 longer.
14387 (create_envblk_file): Complete rewrite.
14388 (open_envblk_file): Likewise.
14389 (cmd_info): Removed.
14390 (cmd_list): Likewise.
14391 (cmd_set): Likewise.
14392 (cmd_clear): Likewise.
14393 (list_variables): New function.
14394 (write_envblk): Likewise.
14395 (set_variables): Likewise.
14396 (unset_variables): Likewise.
14397 (main): Complete rewrite.
14398
14399 * commands/loadenv.c (buffer): Removed.
14400 (envblk): Likewise.
14401 (open_envblk_file): New function.
14402 (read_envblk_file): Complete rewrite.
14403 (grub_cmd_load_env): Likewise.
14404 (grub_cmd_list_env): Likewise.
14405 (struct blocklist): New struct.
14406 (free_blocklists): New function.
14407 (check_blocklists): Likewise.
14408 (write_blocklists): Likewise.
14409 (grub_cmd_save_env): Complete rewrite.
14410
14411 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
14412 a plain text signature.
14413 (GRUB_ENVBLK_MAXLEN): Removed.
14414 (struct grub_envblk): Complete rewrite.
14415 (grub_envblk_find): Removed.
14416 (grub_envblk_insert): Likewise.
14417 (grub_envblk_open): New prototype.
14418 (grub_envblk_set): Likewise.
14419 (grub_envblk_delete): Put const to VALUE.
14420 (grub_envblk_iterate): Put const to NAME and VALUE.
14421 (grub_envblk_close): New prototype.
14422 (grub_envblk_buffer): New inline function.
14423 (grub_envblk_size): Likewise.
14424
14425 * lib/envblk.c: Include grub/mm.h.
14426 (grub_env_find): Removed.
14427 (grub_envblk_open): New function.
14428 (grub_envblk_close): Likewise.
14429 (escaped_value_len): Likewise.
14430 (find_next_line): Likewise.
14431 (grub_envblk_insert): Removed.
14432 (grub_envblk_set): New function.
14433 (grub_envblk_delete): Complete rewrite.
14434 (grub_envblk_iterate): Likewise.
14435
a9368fd3 144362009-03-28 Robert Millan <rmh@aybabtu.com>
14437
14438 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
14439 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
14440 variables. Use 16-bit loader.
14441 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
14442 loader.
14443 * kern/i386/loader.S (grub_linux_boot): Rename to ...
14444 (grub_linux16_boot): ... this. Update all users.
14445 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
14446 (grub_linux_boot): ... this. Update all users.
14447
14448 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
14449 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
14450 commands to `linux16' and `initrd16'.
14451 (GRUB_MOD_FINI(linux)): Rename to ...
14452 (GRUB_MOD_FINI(linux16)): ... this.
14453
e4dd5a7e 144542009-03-24 Pavel Roskin <proski@gnu.org>
14455
14456 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
14457 not just for compilation.
14458
c04d6e05 144592009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
14460
14461 Move multiboot helper out of kernel
14462
14463 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
14464 `loader/i386/multiboot_helper.S'.
14465 * conf/i386-coreboot.rmk: Likewise
14466 * conf/i386-ieee1275.rmk: Likewise
14467
14468 * kern/i386/loader.S: Move multiboot helpers from here...
14469 * loader/i386/multiboot_helper.S: ...moved here
14470 * include/grub/i386/loader.h: Move declarations of multiboot
14471 helpers from here...
14472 * include/grub/i386/multiboot.h: ...moved here
14473 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
14474
42a5b3fc 144752009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
14476
14477 * kern/env.c (grub_env_context_open): Added an argument to specify
14478 whether a new context inherits exported variables from current
14479 one. This is useful when making a sandbox to interpret a config
14480 file.
14481 All callers updated.
14482
14483 * include/grub/env.h (grub_env_context_open): Updated the prototype.
14484
b28bbc4e 144852009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
14486
14487 * kern/env.c (grub_env_context_close): Fix memory leaks.
14488
f04f02e4 144892009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
14490
14491 * normal/main.c (grub_normal_execute): Added an argument
14492 BATCH to specify if an interactive interface should be provided
14493 after reading a config file.
14494 All callers updated.
14495 (read_command_list): Prevent being executed twice.
14496 (read_fs_list): Likewise.
14497
42a5b3fc 14498 * include/grub/normal.h (grub_normal_execute): Updated the
14499 prototype.
f04f02e4 14500
41473ac2 145012009-03-22 Pavel Roskin <proski@gno.org>
14502
fbc00b0c 14503 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
14504 _start.
14505 * kern/i386/pc/startup.S: Likewise.
14506 * kern/i386/efi/startup.S: Likewise.
14507 * kern/i386/ieee1275/startup.S: Likewise.
14508 * kern/i386/coreboot/startup.S: Likewise.
14509 * kern/x86_64/efi/startup.S: Likewise.
14510
41473ac2 14511 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
14512 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
14513 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
14514
2274cc8f 145152009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
14516
14517 Bugfixes in multiboot for bugs uncovered by solaris kernel.
14518
14519 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
14520 limit detection.
14521 Use vaddr of correct segment for entry_point.
14522
b1b797cb 145232009-03-21 Bean <bean123ch@gmail.com>
14524
14525 * commands/blocklist.c: Add include file <grub/command.h>, remove
14526 <grub/normal.h> and <grub/arg.h>.
14527 (grub_cmd_blocklist): Use the new command interface.
14528 (GRUB_MOD_INIT): Likewise.
14529 (GRUB_MOD_FINI): Likewise.
14530 * commands/boot.c: Likewise.
14531 * commands/cat.c: Likewise.
14532 * commands/cmp.c: Likewise.
14533 * commands/configfile.c: Likewise.
14534 * commands/crc.c: Likewise.
14535 * commands/echo.c: Likewise.
14536 * commands/halt.c: Likewise.
14537 * commands/handler.c: Likewise.
14538 * commands/hdparm.c: Likewise.
14539 * commands/help.c: Likewise.
14540 * commands/hexdump.c: Likewise.
14541 * commands/loadenv.c: Likewise.
14542 * commands/ls.c: Likewise.
14543 * commands/lsmmap.c: Likewise.
14544 * commands/lspci.c: Likewise.
14545 * commands/loadenv.c: Likewise.
14546 * commands/read.c: Likewise.
14547 * commands/reboot.c: Likewise.
14548 * commands/search.c: Likewise.
14549 * commands/sleep.c: Likewise.
14550 * commands/test.c: Likewise.
14551 * commands/usbtest.c: Likewise.
14552 * commands/videotest.c: Likewise.
14553 * commands/i386/cpuid.c: Likewise.
14554 * commands/i386/pc/halt.c: Likewise.
14555 * commands/i386/pc/play.c: Likewise.
14556 * commands/i386/pc/pxecmd.c: Likewise.
14557 * commands/i386/pc/vbeinfo.c: Likewise.
14558 * commands/i386/pc/vbetest.c: Likewise.
14559 * commands/ieee1275/suspend.c: Likewise.
14560 * disk/loopback.c: Likewise.
14561 * font/font_cmd.c: Likewise.
14562 * hello/hello.c: Likewise.
14563 * loader/efi/appleloader.c: Likewise.
14564 * loader/efi/chainloader.c: Likewise.
14565 * loader/i386/bsd.c: Likewise.
14566 * loader/i386/efi/linux.c: Likewise.
14567 * loader/i386/ieee1275/linux.c: Likewise.
14568 * loader/i386/linux.c: Likewise.
14569 * loader/i386/pc/chainloader.c: Likewise.
14570 * loader/i386/pc/linux.c: Likewise.
14571 * loader/powerpc/ieee1275/linux.c: Likewise.
14572 * loader/multiboot_loader.c: Likewise.
14573 * term/gfxterm.c: Likewise.
14574 * term/i386/pc/serial.c: Likewise.
14575 * term/terminfo.c: Likewise.
14576
14577 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
14578 * term/i386/pc/vga.c: Likewise.
14579 * video/readers/jpeg.c: Likewise.
14580 * video/readers/png.c: Likewise.
14581 * video/readers/tga.c: Likewise.
14582
14583 * util/grub-fstest (cmd_loopback): Removed.
14584 (cmd_blocklist): Likewise.
14585 (cmd_ls): Likewise.
14586 (grub_register_command): Likewise.
14587 (grub_unregister_command): Likewise.
14588 (execute_command): Use grub_command_find to locate command and execute
14589 it.
14590
14591 * include/grub/efi/chainloader.h: Removed.
14592 * loader/efi/chainloader_normal.c: Likewise.
14593 * loader/i386/bsd_normal.c: Likewise.
14594 * loader/i386/pc/chainloader_normal.c: Likewise.
14595 * loader/i386/pc/multiboot_normal.c: Likewise.
14596 * loader/linux_normal.c: Likewise.
14597 * loader/multiboot_loader_normal.c: Likewise.
14598 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
14599
14600 * gencmdlist.sh: Scan new registration command grub_register_extcmd
14601 and grub_register_command_p1.
14602
14603 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
14604 kern/command.c, lib/arg.c and commands/extcmd.c.
14605 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
14606 (minicmd_mod_SOURCES): New variable.
14607 (minicmd_mod_CFLAGS): Likewise.
14608 (minicmd_mod_LDFLAGS): Likewise.
14609 (extcmd_mod_SOURCES): Likewise.
14610 (extcmd_mod_CFLAGS): Likewise.
14611 (extcmd_mod_LDFLAGS): Likewise.
14612 (boot_mod_SOURCES): Removed.
14613 (boot_mod_CFLAGS): Likewise.
14614 (boot_mod_LDFLAGS): Likewise.
14615
14616 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
14617 kern/corecmd.c.
14618 (kernel_img_HEADERS): Add command.h.
14619 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
14620 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
14621 and lib/arg.c.
14622 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
14623 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
14624 remove the corresponding normal mode command.
14625 (normal_mod_SOURCES): Remove normal/arg.c.
14626 * conf/i386-coreboot.rmk: Likewise.
14627 * conf/i386-efi.rmk: Likewise.
14628 * conf/i386-ieee1275.rmk: Likewise.
14629 * conf/powerpc-ieee1275.rmk: Likewise.
14630 * conf/x86_64-efi.rmk: Likewise.
14631
14632 * include/grub/arg.h: Move from here ...
14633 * include/grub/lib/arg.h: ... to here.
14634
14635 * normal/arg.c: Move from here ...
14636 * lib/arg.c: ... to here.
14637
14638 * commands/extcmd.c: New file.
14639 * commands/minicmd.c: Likewise.
14640 * include/grub/command.h: Likewise.
14641 * include/grub/extcmd.h: Likewise.
14642 * kern/command.c: Likewise.
14643 * kern/corecmd.c: Likewise.
14644
14645 * kern/list.c (grub_list_iterate): Return int instead of void.
14646 (grub_list_insert): New function.
14647 (grub_prio_list_insert): Likewise.
14648
14649 * kern/rescue.c (grub_rescue_command): Removed.
14650 (grub_rescue_command_list): Likewise.
14651 (grub_rescue_register_command): Likewise.
14652 (grub_rescue_unregister_command): Likewise.
14653 (grub_rescue_cmd_boot): Move to minicmd.c
14654 (grub_rescue_cmd_help): Likewise.
14655 (grub_rescue_cmd_info): Likewise.
14656 (grub_rescue_cmd_boot): Likewise.
14657 (grub_rescue_cmd_testload): Likewise.
14658 (grub_rescue_cmd_dump): Likewise.
14659 (grub_rescue_cmd_rmmod): Likewise.
14660 (grub_rescue_cmd_lsmod): Likewise.
14661 (grub_rescue_cmd_exit): Likewise.
14662 (grub_rescue_print_devices): Moved to corecmd.c.
14663 (grub_rescue_print_files): Likewise.
14664 (grub_rescue_cmd_ls): Likewise.
14665 (grub_rescue_cmd_insmod): Likewise.
14666 (grub_rescue_cmd_set): Likewise.
14667 (grub_rescue_cmd_unset): Likewise.
7d074e3c 14668 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 14669 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 14670 commands, remove grub_rescue_register_command calls.
b1b797cb 14671
7d074e3c 14672 * normal/command.c (grub_register_command): Removed.
b1b797cb 14673 (grub_unregister_command): Likewise.
14674 (grub_command_find): Likewise.
14675 (grub_iterate_commands): Likewise.
14676 (rescue_command): Likewise.
14677 (export_command): Moved to corecmd.c.
14678 (set_command): Removed.
14679 (unset_command): Likewise.
14680 (insmod_command): Likewise.
14681 (rmmod_command): Likewise.
14682 (lsmod_command): Likewise.
14683 (grub_command_init): Likewise.
14684
14685 * normal/completion.c (iterate_command): Use cmd->prio to check for
14686 active command.
14687 (complete_arguments): Use grub_extcmd_t structure to find options.
14688 (grub_normal_do_completion): Change function grub_iterate_commands to
14689 grub_command_iterate.
14690
14691 * normal/execute.c (grub_script_execute_cmd): No need to parse
14692 argument here.
14693
14694 * normal/main.c (grub_dyncmd_dispatcher): New function.
14695 (read_command_list): Register unload commands as dyncmd.
14696 (grub_cmd_normal): Use new command interface, register rescue,
14697 unregister normal at entry, register normal, unregister rescue at exit.
14698
14699 * include/grub/list.h (grub_list_test_t): New type.
14700 (grub_list_iterate): Return int instead of void.
14701 (grub_list_insert): New function.
14702 (GRUB_AS_NAMED_LIST_P): New macro.
14703 (GRUB_AS_PRIO_LIST): Likewise.
14704 (GRUB_AS_PRIO_LIST_P): Likewise.
14705 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
14706 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
14707 (grub_prio_list): New structure.
14708 (grub_prio_list_insert): New function.
14709 (grub_prio_list_remove): New inline function.
14710
14711 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
14712 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
14713 (GRUB_COMMAND_FLAG_MENU): Likewise.
14714 (GRUB_COMMAND_FLAG_BOTH): Likewise.
14715 (GRUB_COMMAND_FLAG_TITLE): Likewise.
14716 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
14717 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
14718 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
14719 (grub_command): Likewise.
14720 (grub_register_command): Likewise.
14721 (grub_command_find): Likewise.
14722 (grub_iterate_commands): Likewise.
14723 (grub_command_init): Likewise.
14724 (grub_arg_parse): Likewise.
14725 (grub_arg_show_help): Likewise.
14726
14727 * include/grub/rescue.h (grub_rescue_register_command): Removed.
14728 (grub_rescue_unregister_command): Likewise.
14729
14730 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
14731 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
14732 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
14733
14734 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
14735 grub_rescue_cmd_initrd.
14736 * include/grub/i386/loader.h: Likewise.
14737 * include/grub/x86_64/loader.h: Likewise.
14738
14739 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
14740
1f4147aa 147412009-03-21 Bean <bean123ch@gmail.com>
14742
14743 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
14744 instead of stat in mingw environment.
14745
14746 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
14747
14748 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
14749
14750 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
14751 AC_CONFIG_LINKS.
14752
2156d5ba 147532009-03-21 Bean <bean123ch@gmail.com>
14754
14755 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
14756 out of range error.
14757
177b82ca 147582009-03-18 Michel Dänzer <michel@daenzer.net>
14759
14760 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
14761 checking inode flags for EXT4_EXTENTS_FLAG.
14762
14aad807 147632009-03-18 Robert Millan <rmh@aybabtu.com>
14764
14765 * loader/i386/linux.c: Include `<grub/video.h>' and
14766 `<grub/i386/pc/vbe.h>'..
14767 (grub_linux_setup_video): New function. Loosely based on the EFI one.
14768 (grub_linux32_boot): Attempt to configure video settings with
14769 grub_linux_setup_video().
14770 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
14771 to avoid grub_console_fini() which would step out of graphical mode
14772 unconditionally.
14773
8cf83a27 147742009-03-14 Robert Millan <rmh@aybabtu.com>
14775
14776 Fix build on powerpc.
14777 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
14778
40164e75 147792009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
14780
14781 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
14782 background image command.
14783
c58bc32a 147842009-03-12 Colin D Bennett <colin@gibibit.com>
14785
14786 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
14787 (grub_gfxterm_putchar): Extract pairs of identical calls to
14788 draw_cursor out of conditional blocks.
14789
5415144a 147902009-03-11 Pavel Roskin <proski@gnu.org>
14791
14792 * fs/hfs.c (grub_hfs_strncasecmp): New function.
14793 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
14794
6394042e 147952009-03-11 Robert Millan <rmh@aybabtu.com>
14796
14797 * loader/i386/multiboot_elfxx.c
14798 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
14799
b7b50e5f 148002009-03-11 Felix Zielcke <fzielcke@z-51.de>
14801
14802 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
14803 `kern/handler.c'.
14804
1ca7fc96 148052009-03-11 Robert Millan <rmh@aybabtu.com>
14806
14807 * loader/i386/multiboot.c (code_size): New variable.
14808 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 14809 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 14810 4-byte alignment to MBI and others by increasing
7d074e3c 14811 `boot_loader_name_length' appropriately.
1ca7fc96 14812
14813 * loader/i386/multiboot_elfxx.c
14814 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
14815
a83ea1d2 148162009-03-09 Felix Zielcke <fzielcke@z-51.de>
14817
14818 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
14819 `fs/ext2.c'.
14820
aa9f3bff 148212009-03-08 Robert Millan <rmh@aybabtu.com>
14822
14823 Make loader/i386/linux.c usable on i386-pc again.
14824
14825 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
14826 memory to heap.
14827 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
14828 `#error' stanza.
14829
d8b3b60e 148302009-03-07 Bean <bean123ch@gmail.com>
14831
14832 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
14833 allocation.
14834
b362c9e9 148352009-03-06 Robert Millan <rmh@aybabtu.com>
14836
14837 Fix display issue on terminals with screen size other than 80x25
14838 (e.g. gfxterm with resolution higher than 640x480).
14839
14840 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 14841 position relative to the center of the terminal instead of relying
b362c9e9 14842 on a hardcoded offset.
14843
9304eef1 148442009-03-04 Robert Millan <rmh@aybabtu.com>
14845
14846 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
14847 installed.
14848
14849 * Makefile.in (host_kernel): New variable.
14850 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
14851 scripts instead of just the windows one.
14852 * configure.ac: Initialize and AC_SUBST `host_kernel'.
14853
eabc95fb 148542009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 14855
14856 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
14857 `kern/handler.c'.
14858 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14859 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14860 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14862 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14863 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14864
ceb1223c 148652009-03-04 Felix Zielcke <fzielcke@z-51.de>
14866
14867 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
14868 or if there's no space for the disk label and print the partition number on a
14869 invalid magic.
14870
4910684a 148712009-03-04 Felix Zielcke <fzielcke@z-51.de>
14872
14873 * util/misc.c: Include <time.h>.
14874 (grub_millisleep): New function.
14875
7e9ca17a 148762009-03-04 Bean <bean123ch@gmail.com>
14877
14878 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
14879 another option -mno-red-zone.
14880
14881 * commands/handler.c: Change module description.
14882
14883 * kern/handler.c: Add missing space at the end of description line.
14884
14885 * kern/list.c: Likewise.
14886
f501677c 148872009-03-03 Robert Millan <rmh@aybabtu.com>
14888
14889 Move more components to the relocation area, and fix mbi pointer
14890 handling to use the destination rather than the origin (thanks to
14891 Vladimir Serbinenko for spotting).
14892
14893 * loader/i386/multiboot.c (mbi_dest): New variable.
14894 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
14895 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
14896 relocation area.
14897
9902d047 148982009-03-01 Bean <bean123ch@gmail.com>
14899
50fb7002 14900 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 14901 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
14902 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
14903 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
14904
14905 * loader/i386/efi/linux.c (acpi_guid): New variable.
14906 (acpi_guid): Likewise.
14907 (EBDA_SEG_ADDR): New constant.
14908 (LOW_MEM_ADDR): Likewise.
14909 (FAKE_EBDA_SEG): Likewise.
14910 (fake_bios_data): New function.
14911 (grub_linux_boot): Call fake_bios_data.
14912
71b9f361 149132009-03-01 Bean <bean123ch@gmail.com>
14914
14915 * commands/terminal.c: Removed.
14916
14917 * commands/handler.c: New file.
14918
14919 * include/grub/list.h: Likewise.
14920
14921 * include/grub/handler.h: Likewise.
14922
14923 * kern/list.c: Likewise.
14924
14925 * kern/handler.c: Likewise.
14926
14927 * kern/term.h: Include header file <grub/handler.h>.
14928 (grub_term_input): Move next field to the beginning.
14929 (grub_term_output): Likewise.
14930 (grub_term_input_class): New variable.
14931 (grub_term_output_class): Likewise.
14932 (grub_term_register_input): Changed to inline function.
14933 (grub_term_register_output): Likewise.
14934 (grub_term_unregister_input): Likewise.
14935 (grub_term_unregister_output): Likewise.
14936 (grub_term_set_current_input): Likewise.
14937 (grub_term_set_current_output): Likewise.
14938 (grub_term_get_current_input): Likewise.
14939 (grub_term_get_current_output): Likewise.
14940 (grub_term_iterate_input): Removed.
14941 (grub_term_iterate_output): Likewise.
14942
14943 * kern/term.c (grub_term_list_input): Removed.
14944 (grub_term_list_output): Likewise.
14945 (grub_term_input_class): New variable.
14946 (grub_term_output_class): Likewise.
50fb7002 14947 (grub_cur_term_input): Change variable as macro.
71b9f361 14948 (grub_cur_term_output): Likewise.
14949 (grub_term_register_input): Removed.
14950 (grub_term_register_output): Likewise.
14951 (grub_term_unregister_input): Likewise.
14952 (grub_term_unregister_output): Likewise.
14953 (grub_term_set_current_input): Likewise.
14954 (grub_term_set_current_output): Likewise.
14955 (grub_term_iterate_input): Likewise.
14956 (grub_term_iterate_output): Likewise.
14957 (grub_term_get_current_input): Likewise.
14958 (grub_term_get_current_output): Likewise.
14959
14960 * util/grub-editenv.c: Include header file <grub/handler.h>.
14961 (grub_term_get_current_input): Removed.
14962 (grub_term_get_current_output): Likewise.
14963 (grub_term_input_class): New variable.
50fb7002 14964 (grub_term_output_class): Likewise.
71b9f361 14965
14966 * util/grub-fstest.c (grub_term_get_current_input): Removed.
14967 (grub_term_get_current_output): Likewise.
14968 (grub_term_input_class): New variable.
50fb7002 14969 (grub_term_output_class): Likewise.
71b9f361 14970
14971 * util/grub-probe.c (grub_term_get_current_input): Removed.
14972 (grub_term_get_current_output): Likewise.
14973 (grub_term_input_class): New variable.
50fb7002 14974 (grub_term_output_class): Likewise.
71b9f361 14975
14976 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
14977 (grub_term_get_current_output): Likewise.
14978 (grub_term_input_class): New variable.
50fb7002 14979 (grub_term_output_class): Likewise.
71b9f361 14980
14981 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
14982 (terminal_mod_SOURCES): Likewise.
14983 (terminal_mod_CFLAGS): Likewise.
14984 (terminal_mod_LDFLAGS): Likewise.
14985
14986 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
14987 handler.c.
14988 (kernel_img_SOURCES): Add list.c and handler.c.
14989 (kernel_img_HEADERS): Add list.h and handler.h.
14990
14991 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14992 handler.c.
14993 (kernel_mod_SOURCES): Add list.c and handler.c.
14994 (kernel_mod_HEADERS): Add list.h and handler.h.
14995
14996 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
14997 handler.c.
14998 (kernel_elf_SOURCES): Add list.c and handler.c.
14999 (kernel_elf_HEADERS): Add list.h and handler.h.
15000
15001 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
15002 handler.c.
15003 (kernel_elf_SOURCES): Add list.c and handler.c.
15004 (kernel_elf_HEADERS): Add list.h and handler.h.
15005
15006 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
15007 handler.c.
15008 (kernel_mod_SOURCES): Add list.c and handler.c.
15009 (kernel_mod_HEADERS): Add list.h and handler.h.
15010
15011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
15012 handler.c.
15013 (kernel_elf_SOURCES): Add list.c and handler.c.
15014 (kernel_elf_HEADERS): Add list.h and handler.h.
15015
8a31787f 150162009-02-27 Robert Millan <rmh@aybabtu.com>
15017
15018 Factorize elf32 / elf64 code in Multiboot loader. This will
15019 prevent it from getting out of sync again.
15020
15021 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
15022 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
15023 grub_multiboot_load_elf64): Move from here ...
15024 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
15025 grub_multiboot_load_elf): ... to here (new file).
15026
51cd3dfc 150272009-02-27 Robert Millan <rmh@aybabtu.com>
15028
15029 * util/grub.d/10_linux.in: Rename "single-user mode" to
15030 "recovery mode".
15031
6e8c9c3a 150322009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 Don't leak in SCSI code.
15035 * disk/scsi.c (grub_scsi_close): free `scsi'.
15036
4b6bf4f9 150372009-02-27 Robert Millan <rmh@aybabtu.com>
15038
15039 * loader/i386/pc/multiboot.c: Move from here ...
15040 * loader/i386/multiboot.c: ... to here. Update all users.
15041
b9413424 150422009-02-27 Robert Millan <rmh@aybabtu.com>
15043
15044 Patch from Alexandre Bique <bique.alexandre@gmail.com>
15045 * util/i386/pc/grub-setup.c (setup): Fix directory path.
15046
50fb7002 150472009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 15048
15049 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
15050 b-tree.
15051
8cc50345 150522009-02-27 Robert Millan <rmh@aybabtu.com>
15053
15054 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
15055 `0x' qualifier as 0 when base is specified as parameter).
15056
6e09b8b7 150572009-02-24 Bean <bean123ch@gmail.com>
15058
15059 * configure.ac: Check for -mcmodel=large in x86_64 target.
15060
15061 * include/grub/efi/api.h (efi_call_10): New macro.
15062 (efi_wrap_10): New function.
15063
15064 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
15065 (GRUB_PE32_REL_BASED_HIGH): Likewise.
15066 (GRUB_PE32_REL_BASED_LOW): Likewise.
15067 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
15068 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
15069 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
15070 (GRUB_PE32_REL_BASED_SECTION): Likewise.
15071 (GRUB_PE32_REL_BASED_REL): Likewise.
15072 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
15073 (GRUB_PE32_REL_BASED_DIR64): Likewise.
15074 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
15075
15076 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
15077 issue.
15078
15079 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
15080 (efi_wrap_10): New function.
15081
15082 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
15083
15084 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
15085 MB/MBP model (NV chipset).
15086 (devdata_devs): Add devpath_5 to the list.
15087
15088 * load/i386/efi/linux.c (video_base): Remove variable.
15089 (RGB_MASK): New macro.
15090 (RGB_MAGIC): Likewise.
15091 (LINE_MIN): Likewise.
15092 (LINE_MAX): Likewise.
15093 (FBTEST_STEP): Likewise.
15094 (FBTEST_COUNT): Likewise.
15095 (fb_list): New variable.
15096 (grub_find_video_card): Remove function.
15097 (find_framebuf): New function.
15098 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
15099 line length.
15100
15101 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
15102 problem for x86_64.
15103
74b21bee 151042009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
15105
15106 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
15107
15108 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
15109 coding tool name.
15110
a455f472 151112009-02-22 Robert Millan <rmh@aybabtu.com>
15112
15113 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
15114 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
15115 in our relocation, instead of using it directly from heap. Also
15116 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
15117
6374daf3 151182009-02-21 Robert Millan <rmh@aybabtu.com>
15119
15120 Implement USB keyboard support (based on patch by Marco Gerards)
15121
15122 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
15123 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
15124 (usb_keyboard_mod_LDFLAGS): New variables.
15125
15126 * term/usb_keyboard.c: New file.
15127
8fa4ea70 151282009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
15129
15130 Corrected wrong declaration
15131
15132 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
15133
353976ac 151342009-02-14 Christian Franke <franke@computer.org>
15135
15136 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
15137 (grub_lspci_iter): Print class code and programming interface byte.
15138
6aa1169b 151392009-02-14 Christian Franke <franke@computer.org>
15140
15141 * gendistlist.sh: Ignore `.svn' directories.
15142
265372ca 151432009-02-14 Felix Zielcke <fzielcke@z-51.de>
15144
15145 * fs/fat.c: Add 2009 to Copyright line.
15146
9ff516f3 151472009-02-14 Christian Franke <franke@computer.org>
15148
15149 * commands/hdparm.c: New file. Provides `hdparm' command
15150 which sends ATA commands via grub_disk_ata_pass_through ().
15151
15152 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
15153
15154 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
15155 and <grub/cpu/io.h> to include/grub/ata.h.
15156 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
15157 (GRUB_CDROM_SECTOR_SIZE): Remove.
15158 (GRUB_ATA_*): Move to include/grub/ata.h.
15159 (GRUB_ATAPI_*): Likewise.
15160 (enum grub_ata_commands): Likewise.
15161 (enum grub_ata_timeout_milliseconds): Likewise.
15162 (struct grub_ata_device): Likewise.
15163 (grub_ata_regset): Likewise.
15164 (grub_ata_regget): Likewise.
15165 (grub_ata_regset2): Likewise.
15166 (grub_ata_regget2): Likewise.
15167 (grub_ata_check_ready): Likewise.
15168 (grub_ata_wait_not_busy): Remove static, exported in
15169 include/grub/ata.h.
15170 (grub_ata_wait_drq): Likewise.
15171 (grub_ata_pio_read): Likewise.
15172
15173 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
15174 function for hdparm.mod.
15175
15176 * include/grub/ata.h: New file, contains declarations from
15177 disk/ata.c.
15178 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
15179
15180 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
15181 (grub_disk_ata_pass_through): New exported variable.
15182
15183 * kern/disk.c (grub_disk_ata_pass_through): New variable.
15184
772e23da 151852009-02-13 Colin D Bennett <colin@gibibit.com>
15186
15187 Support multiple fallback entries, and provide an API to support
15188 executing default+fallback menu entries. Renamed the `terminal' menu
15189 viewer to `text'.
15190
15191 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
15192 variable declaration.
15193 (grub_menu_execute_callback): New structure declaration.
15194 (grub_menu_execute_callback_t): New typedef.
15195 (grub_menu_execute_with_fallback): New function declaration.
15196 (grub_menu_get_entry): Likewise.
15197 (grub_menu_get_timeout): Likewise.
15198 (grub_menu_set_timeout): Likewise.
15199
15200 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
15201
15202 * normal/menu.c (grub_wait_after_message): Moved to
15203 `normal/menu_text.c'.
15204 (draw_border): Likewise.
15205 (print_message): Likewise.
15206 (print_entry): Likewise.
15207 (print_entries): Likewise.
15208 (grub_menu_init_page): Likewise.
15209 (get_entry_number): Likewise.
15210 (print_timeout): Likewise.
15211 (run_menu): Likewise.
15212 (grub_menu_execute_entry): Likewise.
15213 (show_text_menu): Likewise.
15214 (get_and_remove_first_entry_number): New function.
15215 (grub_menu_execute_with_fallback): Likewise.
15216 (get_entry): Renamed to ...
15217 (grub_menu_get_entry): .. this and made it global.
15218 (get_timeout): Renamed to ...
15219 (grub_menu_get_timeout): ... this and made it global.
15220 (set_timeout): Renamed to ...
15221 (grub_menu_set_timeout): ... this and made it global.
15222 (grub_normal_terminal_menu_viewer): Renamed to ...
15223 (grub_normal_text_menu_viewer): ... this.
15224
15225 * normal/menu_text.c: New file. Extracted text-menu-specific code
15226 from normal/menu.c.
15227
15228 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
15229 (normal_mod_SOURCES): Likewise.
15230
15231 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15232 (normal_mod_SOURCES): Likewise.
15233
15234 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15235 (normal_mod_SOURCES): Likewise.
15236
15237 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
15238 (normal_mod_SOURCES): Likewise.
15239
15240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15241 (normal_mod_SOURCES): Likewise.
15242
15243 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15244 (normal_mod_SOURCES): Likewise.
15245
15246 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15247 (normal_mod_SOURCES): Likewise.
15248
16ac430e 152492009-02-11 Robert Millan <rmh@aybabtu.com>
15250
15251 * util/grub.d/00_header.in: Update old reference to `font' command.
15252
06ff20fc 152532009-02-10 Felix Zielcke <fzielcke@z-51.de>
15254
15255 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
15256
15257 Based on patch from Javier Martín.
15258
96da9407 152592009-02-09 Felix Zielcke <fzielcke@z-51.de>
15260
15261 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 15262 to avoid false positives with FAT.
96da9407 15263 (grub_fstest_SOURCES): Likewise.
15264 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15265 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15267 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
15268 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15269 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15270
6dca6fe4 152712009-02-09 Felix Zielcke <fzielcke@z-51.de>
15272
06ff20fc 15273 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 15274 bpb.version_specific.fat12_or_fat16.fstype and
15275 bpb.version_specific.fat32.fstype.
15276
2550c62f 152772009-02-08 Robert Millan <rmh@aybabtu.com>
15278
be110b30 15279 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 15280
56978920 152812009-02-08 Robert Millan <rmh@aybabtu.com>
15282
15283 * Makefile.in (host_os, host_cpu): New variables.
15284 (target_os): Remove. Update all users.
15285
d64399b5 152862009-02-08 Marco Gerards <marco@gnu.org>
15287
15288 * Makefile.in (enable_grub_emu_usb): New variable.
15289 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
15290 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
15291 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
15292 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
15293 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
15294 `usbtest.mod' and `usbms.mod'.
15295 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
15296 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
15297 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
15298 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
15299 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
15300 variables.
15301
15302 * disk/usbms.c: New file.
15303
15304 * include/grub/usb.h: Likewise.
15305
15306 * include/grub/usbtrans.h: Likewise.
15307
15308 * include/grub/usbdesc.h: Likewise.
15309
15310 * bus/usb/usbtrans.c: Likewise.
15311
15312 * bus/usb/ohci.c: Likewise.
15313
15314 * bus/usb/uhci.c: Likewise.
15315
15316 * bus/usb/usbhub.c: Likewise.
15317
15318 * bus/usb/usb.c: Likewise.
15319
15320 * commands/usbtest.c: Likewise.
15321
15322 * util/usb.c: Likewise.
50fb7002 15323
d64399b5 15324 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
15325
15326 * configure.ac: Test for libusb presence.
50fb7002 15327
d64399b5 15328 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
15329
2b40d6bb 153302009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
15331
15332 * kern/mm.c: Add more comments.
15333
73a4ce81 153342009-02-08 Robert Millan <rmh@aybabtu.com>
15335
15336 Patch from Javier Martín.
15337 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
15338 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
15339
f821ce59 153402009-02-08 Robert Millan <rmh@aybabtu.com>
15341
15342 * fs/cpio.c: Split tar functionality to ...
15343 * fs/tar.c: ... here (new file). Update all users.
15344
aebfc4b0 153452009-02-07 Robert Millan <rmh@aybabtu.com>
15346
15347 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
15348 backward-incompatible features.
15349
15350 Based on patch from Javier Martín, with some adjustments.
15351
50fb7002 153522009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 15353
15354 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
15355
0bb5115e 153562009-02-07 Robert Millan <rmh@aybabtu.com>
15357
15358 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
15359 position of `disk/lvm.c' to ensure grub_init_all() always picks it
15360 after the RAID stuff.
15361
38a0f8e7 153622009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
15363
50fb7002 15364 Fixes problem when running vbetest command as reported by
38a0f8e7 15365 Vladimir Serbinenko <phcoder@gmail.com>.
15366
15367 * (grub_vbe_set_video_mode): Fixed problem with text modes.
15368
3143cc1c 153692009-02-04 Felix Zielcke <fzielcke@z-51.de>
15370
15371 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
15372 /dev/md/NpN style mdraid devices.
15373
9cba6fce 153742009-02-03 Felix Zielcke <fzielcke@z-51.de>
15375
15376 * util/unifont2pff.rb: Remove.
15377
e507a2c1 153782009-02-03 Felix Zielcke <fzielcke@z-51.de>
15379
15380 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
15381 `#'.
15382
d2c2b4cd 153832009-02-03 Felix Zielcke <fzielcke@z-51.de>
15384
15385 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
15386 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15387 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15388 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
15389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15390 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15391 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15392
b4315fb0 153932009-02-02 Christian Franke <franke@computer.org>
15394
15395 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
15396
de3aa260 153972009-02-01 Felix Zielcke <fzielcke@z-51.de>
15398
7c3ff286 15399 * INSTALL: Note that we now require at least autoconf 2.59 and
15400 that LZO is optional.
de3aa260 15401
825a182b 154022009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
15403
15404 Base on patch on bug #24154 created by Tomas Tintera
15405 <trosos@seznam.cz>.
15406
15407 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
15408
a69ef770 154092009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
15410
7c3ff286 15411 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 15412 <bero@arklinux.org>.
15413
15414 * normal/parser.y (script_init): Add missing semicolon.
15415
6fa42fa6 154162009-01-31 Colin D Bennett <colin@gibibit.com>
15417
7c3ff286 15418 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 15419 (free_menu_entry_classes): Added.
15420 (grub_normal_menu_addentry): Added class property handling.
15421 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
15422 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
15423
15424 * normal/menu_viewer.c: New file.
15425
15426 * normal/menu.c (run_menu_entry): Renamed to ...
15427 (grub_menu_execute_entry): ... this and made it as global.
15428 (grub_menu_run): Renamed to ...
15429 (show_text_menu): ... this and made it local.
15430 (show_text_menu): Adapt to new function names.
15431 (grub_normal_terminal_menu_viewer): New global variable.
15432
15433 * include/grub/menu.h: New file.
15434
15435 * include/grub/menu_viewer.h: New file.
15436
15437 * include/grub/normal.h: Added include to grub/menu.h.
15438 (grub_menu_entry): Moved to include/grub/menu.h.
15439 (grub_menu_entry_t): Likewise.
15440 (grub_menu): Likewise.
15441 (grub_menu_t): Likewise.
15442 (grub_normal_terminal_menu_viewer): Added.
15443 (grub_menu_execute_entry): Likewise.
15444 (grub_menu_run): Removed.
15445
15446 * DISTLIST: Added include/grub/menu.h.
15447 Added include/grub/menu_viewer.h.
15448 Added normal/menu_viewer.c.
15449
154502009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
15451
15452 * normal/execute.c (grub_script_execute_menuentry): Changed to use
15453 arglist for menutitle arguments.
15454
15455 * normal/main.c (grub_normal_menu_addentry): Likewise.
15456
15457 * normal/parser.y (menuentry): Likewise.
15458
15459 * normal/script.c (grub_script_create_cmdmenu): Likewise.
15460
15461 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
15462 (grub_script_create_cmdmenu): Likewise.
15463
15464 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
15465
15466 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
15467 changes.
15468
15469 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
15470
15471 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
15472
15473 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
15474
15475 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
15476
15477 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
15478
15479 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
15480
56192c23 154812009-01-30 Christian Franke <franke@computer.org>
15482
15483 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
15484 in option help text.
15485
d72521b3 154862009-01-27 Pavel Roskin <proski@gnu.org>
15487
15488 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
15489
994b5e84 154902009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
15491
15492 * commands/lsmmap.c: Add include to grub/machine/memory.h.
15493
15494 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
15495
15496 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
15497 unregister function.
15498
6a7eab2c 154992009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
15500
15501 * disk/scsi.c (grub_scsi_read): Fix sign problem.
15502
15503 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
15504
15505 * util/grub-mkfont.c (usage): Fix typo.
15506
15507 * util/elf/grub-mkimage.c (load_modules): Fix warning.
15508
1806b56e 155092009-01-26 Daniel Mierswa <impulze@impulze.org>
15510
3fb18f09 15511 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
15512
336e1fb9 15513 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
15514
1806b56e 15515 * kern/misc.c (grub_strcasecmp): New function.
15516 (grub_strcasecmp): Use grub_size_t instead of int for length.
15517 Fix return value.
15518 * include/grub/misc.h: Update function prototypes.
15519
580b2a0f 155202009-01-26 Robert Millan <rmh@aybabtu.com>
15521
15522 * configure.ac: Fix cross-compilation check.
ef257b36 15523
d31c24f1 155242009-01-22 Christian Franke <franke@computer.org>
15525
15526 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
15527 (precision) digit string. Allow `.format2' without `format1' (width).
15528 Limit input chars for `%s' output to `format2' if specified. This is
15529 compatible with standard printf ().
15530
3138b44c 155312009-01-22 Christian Franke <franke@computer.org>
15532
15533 * disk/ata.c (grub_ata_wait_status): Replace by ...
15534 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
15535 other status bits may be invalid while BSY is asserted.
15536 (grub_ata_check_ready): New function.
15537 (grub_ata_cmd): Removed.
15538 (grub_ata_wait_drq): New function.
15539 (grub_ata_strncpy): Remove inline.
15540 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
15541 and error check now done by grub_ata_wait_drq ().
15542 (grub_ata_pio_write): Likewise.
15543 (grub_atapi_identify): Set DEV before check for !BSY. Use
15544 grub_ata_wait_drq () to wait for data.
15545 (grub_ata_device_initialize): Add status register check to
15546 detect missing SATA slave devices. Add debug messages.
15547 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
15548 (grub_atapi_packet): Set DEV before check for !BSY. Replace
15549 transfer loop by grub_ata_pio_write ().
15550 (grub_ata_identify): Set DEV before check for !BSY. Use
15551 grub_ata_wait_drq () to wait for data.
ef257b36 15552 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 15553 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
15554 read/write in one loop. Fix invalid command on write. Fix incomplete
15555 command on (size % batch) == 0. Add missing error check after write of
15556 last block. Add debug messages.
15557 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
15558
59a64ef6 155592009-01-19 Christian Franke <franke@computer.org>
15560
15561 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
15562 (GRUB_ATAPI_IREASON_*): Likewise.
15563 (grub_ata_pio_write): Fix timeout error return.
15564 (grub_atapi_identify): Add grub_ata_wait () after cmd.
15565 (grub_atapi_wait_drq): New function.
15566 (grub_atapi_packet): New parameter `size'.
15567 Use grub_atapi_wait_drq () and direct write instead of
15568 grub_ata_pio_write ().
15569 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
15570 reads the number of bytes requested by the device for each DRQ
15571 assertion.
15572 (grub_atapi_write): Remove old implementation, return not
15573 implemented instead.
15574
1cfe20b3 155752009-01-19 Christian Franke <franke@computer.org>
15576
15577 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
15578 of 512 to calculate data size.
15579 (grub_scsi_read12): Likewise.
15580 (grub_scsi_write10): Likewise.
15581 (grub_scsi_write12): Likewise.
15582 (grub_scsi_read): Adjust size according to blocksize.
15583 Add checks for invalid blocksize and unaligned transfer.
15584
bee5fe5d 155852009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
15586
15587 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
15588
ef257b36 15589 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 15590 width glyphs.
15591
3e643f8c 155922009-01-19 Robert Millan <rmh@aybabtu.com>
15593
15594 * config.guess: Update to latest version from config git.
15595 * config.sub: Likewise.
15596
4fa80998 155972009-01-17 Felix Zielcke <fzielcke@z-51.de>
15598
15599 * Makefile.in: Change font compilation to use new grub-mkfont instead
15600 of java version.
15601
15602 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
15603 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
15604 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15605 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15606 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
15607 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
15608 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
15609 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
15610 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
15611
7086085b 156122009-01-16 Christian Franke <franke@computer.org>
15613
15614 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
15615 (enum grub_ata_timeout_milliseconds): New enum.
15616 (grub_ata_wait_status): Add parameter milliseconds.
15617 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
15618 recovery from timed-out commands.
15619 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
15620 return grub_errno instead of REG_ERROR.
15621 (grub_ata_pio_write): Add parameter milliseconds.
15622 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
15623 Pass milliseconds to grub_ata_wait_status () and
15624 grub_ata_pio_read ().
15625 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
15626 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
15627 grub_ata_wait_status (). Fix IDENTIFY timeout check.
15628 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
15629 It is not suitable for device detection, because DEV bit is ignored,
15630 the command may run too long, and not all devices set the signature
15631 properly.
15632 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
15633 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
15634 Fix device selection, DEV bit must be set first to address the registers
15635 of the correct device.
15636 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
15637 grub_ata_pio_read/write ().
15638 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
15639 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
15640
4a412913 156412009-01-13 Carles Pina i Estany <carles@pina.cat>
15642
15643 * util/grub-editenv.c (main): Use fseeko(), not fseek().
15644
7795c55e 156452009-01-13 Bean <bean123ch@gmail.com>
d913988c 15646
15647 * util/grub-mkfont.c (write_font): forget to remove some debug code.
15648
7795c55e 156492009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 15650
15651 * Makefile.in: (enable_grub_mkfont): New variable.
15652 (freetype_cflags): Likewise.
15653 (freetype_libs): Likewise.
15654
15655 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
15656 (grub_mkfont_SOURCES): New variable.
15657 (grub_mkfont_CFLAGS): Likewise.
15658 (grub_mkfont_LDFLAGS): Likewise.
15659
15660 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
15661 library if `--enable-grub-mkfont' is requested.
15662 (enable_grub_mkfont): New variable.
15663 (freetype_cflags): Likewise.
15664 (freetype_libs): Likewise.
15665
15666 * util/grub-mkfont.c: New file.
15667
093af1fe 156682009-01-12 Christian Franke <franke@computer.org>
15669
15670 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
15671 mode check. Fix setting of compat_use[].
15672
f36cc108 156732009-01-10 Robert Millan <rmh@aybabtu.com>
15674
15675 Update a few copyright years which we forgot to do in 2008 (only for
15676 files whose changes made in 2008 were copyright-significant)
15677
15678 * Makefile.in: Add 2008 to Copyright line.
15679 * disk/ieee1275/ofdisk.c: Likewise.
15680 * disk/efi/efidisk.c: Likewise.
15681 * kern/dl.c: Likewise.
15682 * kern/sparc64/ieee1275/init.c: Likewise.
15683 * kern/mm.c: Likewise.
15684 * kern/efi/mm.c: Likewise.
15685 * boot/i386/pc/boot.S: Likewise.
15686 * genfslist.sh: Likewise.
15687 * fs/iso9660.c: Likewise.
15688 * fs/hfs.c: Likewise.
15689 * fs/jfs.c: Likewise.
15690 * fs/minix.c: Likewise.
15691 * fs/ufs.c: Likewise.
15692 * gensymlist.sh.in: Likewise.
15693 * genkernsyms.sh.in: Likewise.
15694 * include/grub/misc.h: Likewise.
15695 * include/grub/types.h: Likewise.
15696 * include/grub/symbol.h: Likewise.
15697 * include/grub/elf.h: Likewise.
15698 * include/grub/kernel.h: Likewise.
15699 * include/grub/disk.h: Likewise.
15700 * include/grub/dl.h: Likewise.
15701 * include/grub/i386/linux.h: Likewise.
15702 * include/grub/i386/pc/biosdisk.h: Likewise.
15703 * include/grub/efi/api.h: Likewise.
15704 * include/grub/efi/pe32.h: Likewise.
15705 * include/grub/util/misc.h: Likewise.
15706 * normal/execute.c: Likewise.
15707 * normal/arg.c: Likewise.
15708 * normal/completion.c: Likewise.
15709 * normal/lexer.c: Likewise.
15710 * normal/parser.y: Likewise.
15711 * normal/misc.c: Likewise.
15712 * commands/i386/pc/vbeinfo.c: Likewise.
15713 * commands/hexdump.c: Likewise.
15714 * commands/terminal.c: Likewise.
15715 * commands/ls.c: Likewise.
15716 * commands/help.c: Likewise.
15717 * partmap/pc.c: Likewise.
15718 * loader/efi/chainloader.c: Likewise.
15719 * loader/multiboot_loader.c: Likewise.
15720 * loader/i386/pc/multiboot2.c: Likewise.
15721 * term/efi/console.c: Likewise.
15722 * term/i386/pc/serial.c: Likewise.
15723 * util/lvm.c: Likewise.
15724 * util/console.c: Likewise.
15725 * util/i386/efi/grub-mkimage.c: Likewise.
15726 * util/raid.c: Likewise.
15727
7f02114b 157282009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
15729
15730 * commands/videotest.c: Removed include to grub/machine/memory.h.
15731
15732 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
15733 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
15734 (video_mod_SOURCES): Removed.
15735 (video_mod_CFLAGS): Likewise.
15736 (video_mod_LDFLAGS): Likewise.
15737 (gfxterm_mod_SOURCES): Likewise.
15738 (gfxterm_mod_CFLAGS): Likewise.
15739 (gfxterm_mod_LDFLAGS): Likewise.
15740 (videotest_mod_SOURCES): Likewise.
15741 (videotest_mod_CFLAGS): Likewise.
15742 (videotest_mod_LDFLAGS): Likewise.
15743 (bitmap_mod_SOURCES): Likewise.
15744 (bitmap_mod_CFLAGS): Likewise.
15745 (bitmap_mod_LDFLAGS): Likewise.
15746 (tga_mod_SOURCES): Likewise.
15747 (tga_mod_CFLAGS): Likewise.
15748 (tga_mod_LDFLAGS): Likewise.
15749 (jpeg_mod_SOURCES): Likewise.
15750 (jpeg_mod_CFLAGS): Likewise.
15751 (jpeg_mod_LDFLAGS): Likewise.
15752 (png_mod_SOURCES): Likewise.
15753 (png_mod_CFLAGS): Likewise.
15754 (png_mod_LDFLAGS): Likewise.
15755
15756 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
15757 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
15758 (video_mod_SOURCES): Added.
15759 (video_mod_CFLAGS): Likewise.
15760 (video_mod_LDFLAGS): Likewise.
15761 (videotest_mod_SOURCES): Likewise.
15762 (videotest_mod_CFLAGS): Likewise.
15763 (videotest_mod_LDFLAGS): Likewise.
15764 (bitmap_mod_SOURCES): Likewise.
15765 (bitmap_mod_CFLAGS): Likewise.
15766 (bitmap_mod_LDFLAGS): Likewise.
15767 (tga_mod_SOURCES): Likewise.
15768 (tga_mod_CFLAGS): Likewise.
15769 (tga_mod_LDFLAGS): Likewise.
15770 (jpeg_mod_SOURCES): Likewise.
15771 (jpeg_mod_CFLAGS): Likewise.
15772 (jpeg_mod_LDFLAGS): Likewise.
15773 (png_mod_SOURCES): Likewise.
15774 (png_mod_CFLAGS): Likewise.
15775 (png_mod_LDFLAGS): Likewise.
15776 (gfxterm_mod_SOURCES): Likewise.
15777 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 15778 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 15779
15780 * term/gfxterm.c: Removed include to grub/machine/memory.h,
15781 grub/machine/console.h.
15782
644fff97 157832009-01-04 Jerone Young <jerone@gmail.com>
15784
15785 Make on screen instructions clearer
15786
15787 Based on patch created by Jidanni <jidanni@jidanni.org>
15788
15789 * normal/menu.c: print clearer instructions on the screen
15790
1e901a75 157912009-01-02 Colin D Bennett <colin@gibibit.com>
15792
15793 New font engine.
34c44600 15794
1e901a75 15795 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
15796 build system and fixed gfxterm.c to work with different sized fonts.
15797
15798 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 15799
1e901a75 15800 * configure: Re-generated.
34c44600 15801
1e901a75 15802 * DISTLIST: Removed font/manager.c.
15803 Added font/font.c.
15804 Added font/font_cmd.c.
34c44600 15805
1e901a75 15806 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
15807 compilation.
34c44600 15808
1e901a75 15809 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 15810
15811 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 15812
15813 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 15814
1e901a75 15815 * normal/menu.c: Likewise.
34c44600 15816
1e901a75 15817 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
15818 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 15819
1e901a75 15820 * include/grub/font.h: Replaced with new file.
34c44600 15821
1e901a75 15822 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
15823 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
15824 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
15825 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
15826 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 15827 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 15828 fg_red, fg_green, fg_blue, fg_alpha.
15829 (grub_video_adapter): Removed blit_glyph.
34c44600 15830 (grub_video_blit_glyph): Removed.
15831
1e901a75 15832 * font/manager.c: Removed file.
34c44600 15833
15834 * font/font.c: New file.
15835
1e901a75 15836 * font/font_cmd.c: Likewise.
34c44600 15837
1e901a75 15838 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 15839
1e901a75 15840 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
15841 (grub_video_vbe_map_rgba): Likewise.
15842 (grub_video_vbe_unmap_color_int): Likewise.
15843 (grub_video_vbe_blit_glyph): Removed.
15844 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 15845
1e901a75 15846 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
15847 (get_pixel): Likewise.
34c44600 15848 (set_pixel): Likewise.
15849
1e901a75 15850 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 15851
1e901a75 15852 * term/gfxterm.c: Adapted to new font engine.
34c44600 15853
1e901a75 15854 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 15855
1e901a75 15856 * term/i386/pc/vga.c: Likewise.
34c44600 15857
1e901a75 15858 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 15859
1e901a75 15860 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 15861
1e901a75 15862 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 15863
1e901a75 15864 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 15865
1e901a75 15866 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 15867
1e901a75 15868 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 15869
1e901a75 15870 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 15871
1e901a75 15872 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 15873
1e901a75 15874 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
15875
15876 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 15877
1e901a75 15878 * util/grub-mkconfig_lib.in: Changed font extension.
15879
278922e8 158802008-12-28 Felix Zielcke <fzielcke@z-51.de>
15881
15882 * util/getroot.c (grub_util_get_grub_dev): Add support for
15883 /dev/md/dNNpNN style partitionable mdraid devices.
15884
3ced05cf 158852008-12-12 Alex Smith <alex@alex-smith.me.uk>
15886
15887 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
15888 at a time limit of the PXE TFTP API correctly.
15889 (grub_pxefs_close): Likewise.
15890
7fd0ee30 158912008-11-29 Robert Millan <rmh@aybabtu.com>
15892
34c44600 15893 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 15894 grub_ata_device_initialize() calls.
15895
34c44600 158962008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 15897
15898 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
15899 iteration failed.
15900 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
15901
89313780 159022008-11-28 Robert Millan <rmh@aybabtu.com>
15903
15904 Fix build on powerpc-ieee1275. Based on patch created by
15905 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
15906 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15907 `kern/ieee1275/mmap.c'.
15908 * include/grub/powerpc/ieee1275/memory.h: New file.
15909
15257703 15910 Provide grub-install on coreboot.
15911 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
15912 (grub_install_SOURCES): New variable.
15913 * util/i386/pc/grub-install.in: Add a few condition checks to make it
15914 usable on coreboot.
15915
9fc5388a 159162008-11-25 Felix Zielcke <fzielcke@z-51.de>
15917
15918 * util/grub-fstest.c (grub_term_get_current_input): Change return type
15919 to `grub_term_input_t'.
15920 (grub_term_get_current_output): Change return type to
15921 `grub_term_output_t'.
15922
bc3a2f31 159232008-11-22 Robert Millan <rmh@aybabtu.com>
15924
34c44600 15925 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 15926 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
15927 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
15928 grub_vga_text_cls().
15929
80fc88f2 15930 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 15931 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 15932
cbf36fd3 15933 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
15934 to 0x200000 (avoids trouble with some OFW implementations, and matches
15935 with the one in Yaboot).
15936 Reported by Manoel Abranches
15937
73e8e268 159382008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 15939
15940 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
15941 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
15942
73e8e268 15943 * util/grub-mkconfig_lib.in (grub_warn): New function.
15944 (convert_system_path_to_grub_path): Use grub_warn() when issuing
15945 warnings, to obtain consistent formatting.
15946 * util/grub.d/00_header.in: Likewise.
15947 * util/update-grub_lib.in: Likewise.
15948
e94045a1 15949 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 15950 Move comment text to `#error' stanza.
e94045a1 15951
79d29fd7 15952 Harmonize ieee1275's grub_available_iterate() with the generic
15953 grub_machine_mmap_iterate() interface (fixes a recently-introduced
15954 build problem on i386-ieee1275):
15955 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
15956 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
15957 parameter `type'. Update all users of this function.
15958 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
15959 `kern/ieee1275/mmap.c'.
15960 * kern/ieee1275/init.c
15961 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
15962 with ...
15963 (grub_machine_mmap_iterate): ... this.
15964 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
15965 return type to `grub_err_t'. Update all implementations of this
15966 function prototype.
15967 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
15968 Likewise.
15969
60d6b16e 15970 Add `lsmmap' command (lists firmware-provided memory map):
15971 * commands/lsmmap.c: New file.
15972 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
15973 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
15974 variables.
15975 * conf/powerpc-ieee1275.rmk: Likewise.
15976 * conf/i386-coreboot.rmk: Likewise.
15977 * conf/i386-ieee1275.rmk: Likewise.
15978
ebaaf49b 159792008-11-19 Robert Millan <rmh@aybabtu.com>
15980
15981 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 15982 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
15983 constraints to initrd allocation (based on code from
15984 loader/i386/pc/linux.c). Without them, initrd was allocated too high
15985 for Linux to find it.
ebaaf49b 15986
dfab719f 159872008-11-14 Robert Millan <rmh@aybabtu.com>
15988
15989 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
15990 order to cope with duplicate slashes.
15991
10fc3eb9 159922008-11-14 Robert Millan <rmh@aybabtu.com>
15993
15994 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
15995 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
15996 don't want to mess with lower memory, because it is used in the Linux
15997 loader.
15998
15999 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 16000 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 16001 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
16002 is in our heap (probably as a result of it being corrupted during
2f2a3442 16003 decompression). Add #error instance with comment to explain why this
16004 loader isn't currently usable on PC/BIOS.
10fc3eb9 16005
e2e07847 160062008-11-14 Robert Millan <rmh@aybabtu.com>
16007
16008 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 16009 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 16010
fe8e8d69 160112008-11-12 Robert Millan <rmh@aybabtu.com>
16012
16013 Make loader/i386/linux.c buildable on i386-pc (although disabled).
16014
16015 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
16016 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
16017 from here ...
16018 * include/grub/i386/pc/memory.h: ... to here.
16019
976b07d0 160202008-11-12 Robert Millan <rmh@aybabtu.com>
16021
16022 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
16023 split).
16024
16025 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
16026 (grub_console_cur_color, grub_console_real_putchar)
16027 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
16028 (grub_console_setcolorstate, grub_console_setcolor)
16029 (grub_console_getcolor): Move from here ...
16030 * include/grub/i386/vga_common.h: ... to here (new file).
16031
16032 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
16033 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
16034 `<grub/i386/io.h>'.
16035 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
16036 `<grub/i386/vga_common.h>'.
16037
76679cd3 160382008-11-12 Robert Millan <rmh@aybabtu.com>
16039
16040 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
16041 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
16042 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
16043 variables.
16044 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
16045 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
16046
16047 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
16048 grub_console_init() with call to grub_vga_text_init().
16049 (grub_machine_fini): Replace call to
16050 grub_console_fini() with call to grub_vga_text_fini() and
16051 grub_at_keyboard_fini().
16052
16053 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
16054 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
16055 (grub_console_setcolorstate, grub_console_setcolor)
16056 (grub_console_getcolor): New function prototypes.
16057
16058 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
16059 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
16060 (grub_vga_text_setcursor): Static-ize.
16061 (grub_vga_text_term): New structure.
16062 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
16063
16064 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
16065 (grub_console_cur_color, grub_console_standard_color)
16066 (grub_console_normal_color, grub_console_highlight_color)
16067 (map_char, grub_console_putchar, grub_console_getcharwidth)
16068 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
16069 (grub_console_getcolor): Move from here ...
16070 * term/i386/vga_common.c: ... to here (same function names).
16071
95b841d3 160722008-11-12 Robert Millan <rmh@aybabtu.com>
16073
16074 Use newly-added Multiboot support in coreboot.
16075
16076 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
16077 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
16078
16079 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
16080 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
16081 (codestart): Store the MBI in `startup_multiboot_info' when we're
16082 being loaded using Multiboot.
16083
16084 * kern/i386/coreboot/init.c (grub_machine_init): Move
16085 grub_at_keyboard_init() call to beginning of function (useful for
16086 debugging). Call grub_machine_mmap_init() before attempting to use
16087 grub_machine_mmap_iterate().
16088 (grub_lower_mem, grub_upper_mem): Move from here ...
16089 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
16090 here (new file).
16091
16092 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
16093 function prototype.
16094
761ca975 160952008-11-12 Robert Millan <rmh@aybabtu.com>
16096
16097 Fix a regression introduced by the at_keyboard.mod split. Because
16098 some terminals are default on some platforms and non-default on
16099 others, the first terminal being registered determines which is
16100 going to be default.
16101
16102 * kern/term.c (grub_term_register_input): If this is the first
16103 terminal being registered, set it as the current one.
16104 (grub_term_register_output): Likewise.
16105
16106 * term/efi/console.c (grub_console_init): Do not call
16107 grub_term_set_current_output() or grub_term_set_current_input().
16108 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
16109 * term/i386/pc/console.c (grub_console_init): Likewise.
16110 (grub_console_fini): Do not call grub_term_set_current_input()
16111 (but leave grub_term_set_current_output() to restore text mode).
16112
6c529df7 161132008-11-10 Robert Millan <rmh@aybabtu.com>
16114
16115 * util/grub.d/00_header.in: Add backward compatibility check for
16116 versions of terminal.mod that don't understand `terminal_input' or
16117 `terminal_output'.
16118
132e4113 161192008-11-09 Robert Millan <rmh@aybabtu.com>
16120
16121 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
16122 `terminal_input' / `terminal_output', not `terminal'.
16123
ac293d50 161242008-11-08 Robert Millan <rmh@aybabtu.com>
16125
16126 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 16127 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 16128
0025933a 161292008-11-08 Robert Millan <rmh@aybabtu.com>
16130
16131 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 16132 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 16133 members. Update all users.
16134 * util/console.c (grub_ncurses_term): Split in ...
16135 (grub_ncurses_term_input): ... this, and ...
16136 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 16137 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 16138
37c86336 161392008-11-08 Robert Millan <rmh@aybabtu.com>
16140
16141 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
16142 (PKGDATA): Add $(pkgdata_SRCDIR).
16143 (pkglib_BUILDDIR): New variable.
16144 (pkgdata_SRCDIR): New variable.
16145 (build_env.mk): New target.
16146 (include_DATA): New variable.
16147 (install-local): Install $(include_DATA) files in $(includedir).
16148
b6c15a2d 161492008-11-07 Pavel Roskin <proski@gnu.org>
16150
d99d46f1 16151 * gendistlist.sh: Use C locale for sorting to ensure consistent
16152 output on all systems.
16153
b6c15a2d 16154 * util/grub.d/00_header.in: Remove incorrect space before
16155 "serial".
16156
c32ee8c9 161572008-11-07 Robert Millan <rmh@aybabtu.com>
16158
16159 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
16160 per specification.
16161 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
16162 * loader/multiboot_loader.c (find_multi_boot2_header): New function
16163 (based on find_multi_boot1_header).
16164 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
16165 using find_multi_boot2_header(), and abort if neither Multiboot or
16166 Multiboot headers were found.
16167
651c29b7 161682008-11-07 Robert Millan <rmh@aybabtu.com>
16169
16170 Modularize at_keyboard.mod:
16171
16172 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
16173 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
16174 (at_keyboard_mod_LDFLAGS): New variables.
16175
16176 Actual terminal split:
16177
16178 * include/grub/term.h (struct grub_term): Split in ...
16179 (struct grub_term_input): ... this, and ...
16180 (struct grub_term_output): ... this. Update all users.
16181 (grub_term_set_current): Split in ...
16182 (grub_term_set_current_input): ... this, and ...
16183 (grub_term_set_current_output): ... this.
16184 (grub_term_get_current): Split in ...
16185 (grub_term_get_current_input): ... this, and ...
16186 (grub_term_get_current_output): ... this.
16187 (grub_term_register): Split in ...
16188 (grub_term_register_input): ... this, and ...
16189 (grub_term_register_output): ... this.
16190 (grub_term_unregister): Split in ...
16191 (grub_term_unregister_input): ... this, and ...
16192 (grub_term_unregister_output): ... this.
16193 (grub_term_iterate): Split in ...
16194 (grub_term_iterate_input): ... this, and ...
16195 (grub_term_iterate_output): ... this.
16196
16197 * kern/term.c (grub_term_list): Split in ...
16198 (grub_term_list_input): ... this, and ...
16199 (grub_term_list_output): ... this. Update all users.
16200 (grub_cur_term): Split in ...
16201 (grub_cur_term_input): ... this, and ...
16202 (grub_cur_term_output): ... this. Update all users.
16203 (grub_term_set_current): Split in ...
16204 (grub_term_set_current_input): ... this, and ...
16205 (grub_term_set_current_output): ... this.
16206 (grub_term_get_current): Split in ...
16207 (grub_term_get_current_input): ... this, and ...
16208 (grub_term_get_current_output): ... this.
16209 (grub_term_register): Split in ...
16210 (grub_term_register_input): ... this, and ...
16211 (grub_term_register_output): ... this.
16212 (grub_term_unregister): Split in ...
16213 (grub_term_unregister_input): ... this, and ...
16214 (grub_term_unregister_output): ... this.
16215 (grub_term_iterate): Split in ...
16216 (grub_term_iterate_input): ... this, and ...
16217 (grub_term_iterate_output): ... this.
16218
16219 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
16220 a check for input and one for output (and only attempt to get keys
16221 from user when input works).
16222
16223 * util/grub-probe.c (grub_term_get_current): Split in ...
16224 (grub_term_get_current_input): ... this, and ...
16225 (grub_term_get_current_output): ... this.
16226 * util/grub-fstest.c: Likewise.
16227 * util/i386/pc/grub-setup.c: Likewise.
16228 * util/grub-editenv.c: Likewise.
16229
16230 Portability adjustments:
16231
16232 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
16233 `term/i386/pc/at_keyboard.c'.
16234 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
16235 grub_keyboard_controller_init() (now handled by terminal .init).
16236 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
16237 grub_at_keyboard_init().
16238 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
16239 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
16240 at_keyboard.mod via input terminal interface).
16241 * include/grub/i386/coreboot/console.h: Convert into a stub for
16242 `<grub/i386/pc/console.h>'.
16243
16244 Migrate full terminals to new API:
16245
16246 * term/efi/console.c (grub_console_term): Split into ...
16247 (grub_console_term_input): ... this, and ...
16248 (grub_console_term_output): ... this. Update all users.
16249 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
16250 (grub_ofconsole_init): Split into ...
16251 (grub_ofconsole_init_input): ... this, and ...
16252 (grub_ofconsole_init_output): ... this.
16253 (grub_ofconsole_term): Split into ...
16254 (grub_ofconsole_term_input): ... this, and ...
16255 (grub_ofconsole_term_output): ... this. Update all users.
16256 * term/i386/pc/serial.c (grub_serial_term): Split into ...
16257 (grub_serial_term_input): ... this, and ...
16258 (grub_serial_term_output): ... this. Update all users.
16259 * term/i386/pc/console.c (grub_console_term): Split into ...
16260 (grub_console_term_input): ... this, and ...
16261 (grub_console_term_output): ... this. Update all users.
16262 (grub_console_term_input): Only enable it on PC/BIOS platform.
16263 (grub_console_init): Remove grub_keyboard_controller_init() call.
16264
16265 Migrate input terminals to new API:
16266
16267 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
16268 `i386' and `i386/pc' to enable build on x86_64 (this driver is
16269 i386-specific anyway).
16270 (grub_console_checkkey): Rename to ...
16271 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
16272 users.
16273 (grub_keyboard_controller_orig): New variable.
16274 (grub_console_getkey): Rename to ...
16275 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
16276 users.
16277 (grub_keyboard_controller_init): Static-ize. Save original
16278 controller value so that it can be restored ...
16279 (grub_keyboard_controller_fini): ... here (new function).
16280 (grub_at_keyboard_term): New structure.
16281 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
16282 functions.
16283
16284 Migrate output terminals to new API:
16285
16286 * term/i386/pc/vga.c (grub_vga_term): Change type to
16287 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
16288 members. Update all users.
16289 * term/gfxterm.c (grub_video_term): Change type to
16290 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
16291 members. Update all users.
16292 * include/grub/i386/pc/console.h (grub_console_checkkey)
16293 (grub_console_getkey): Do not export (no longer needed by gfxterm,
16294 etc).
16295
16296 Migrate `terminal' command and userland tools to new API:
16297
16298 * commands/terminal.c (grub_cmd_terminal): Split into ...
16299 (grub_cmd_terminal_input): ... this, and ...
16300 (grub_cmd_terminal_output): ... this.
16301 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
16302 `terminal_input' and `terminal_output'.
16303 * util/grub.d/00_header.in: Adjust `terminal' calls to new
16304 `terminal_input' / `terminal_output' API.
16305 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
16306 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
16307 provided ${GRUB_TERMINAL}, convert it).
16308
96e5d876 163092008-11-04 Robert Millan <rmh@aybabtu.com>
16310
16311 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
16312 for FreeBSD.
16313 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
16314
556f3775 163152008-11-03 Bean <bean123ch@gmail.com>
16316
16317 * kern/elf.c (grub_elf32_load): Revert to previous code.
16318 (grub_elf64_load): Likewise.
16319
16320 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
16321
926b9823 163222008-11-01 Robert Millan <rmh@aybabtu.com>
16323
16324 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
16325 (TARGET_CPPFLAGS): Likewise.
16326 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
16327
1432e958 163282008-11-01 Carles Pina i Estany <carles@pina.cat>
16329
16330 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
16331
dba3f844 163322008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 16333
16334 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
16335 addition of objects until the code is not going to be able to fail.
16336
dba3f844 163372008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 16338
16339 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
16340 (add a missing NULL check, and correct them by moving the pointer
16341 operations after the actual check).
16342
7ab28c21 163432008-10-29 Robert Millan <rmh@aybabtu.com>
16344
16345 * util/i386/pc/grub-install.in: Handle empty string as output from
16346 make_system_path_relative_to_its_root().
16347
1b7748eb 163482008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
16349
16350 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
16351 circular metadata worst case scenario. If the metadata is circular
16352 then copy the wrap in place.
16353 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
16354 project lib/format_text/layout.h
16355 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
16356
c9618ab2 163572008-10-03 Felix Zielcke <fzielcke@z-51.de>
16358
7a36edca 16359 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 16360
bf981c62 163612008-10-03 Felix Zielcke <fzielcke@z-51.de>
16362
16363 * util/update-grub_lib.in: Mention filename in warning message.
16364
6d994591 163652008-09-29 Felix Zielcke <fzielcke@z-51.de>
16366
16367 * NEWS: Update for rename of update-grub to grub-mkconfig.
16368
18ade780 163692008-09-29 Felix Zielcke <fzielcke@z-51.de>
16370
16371 * util/update-grub_lib.in: Copy to ...
16372 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 16373 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 16374 * util/update-grub.in: Rename to ...
16375 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
16376 option. Add `--output' option to allow users to specify the generated
16377 configuration file. Default to stdout.
16378 (update_grub_dir): Rename to ...
16379 (grub_mkconfig_dir): ... this.
16380 (grub_cfg): Default to an empty string.
16381 * conf/common.rmk (update-grub): Rename to ...
16382 (grub-mkconfig): ... this.
16383 (update-grub_lib): Copy to ...
16384 (grub-mkconfig_lib): ... this.
16385 (update-grub_SCRIPTS): Copy to ...
16386 (grub-mkconfig_SCRIPTS): ... this. Update all users.
16387 (update-grub_DATA): Rename to ...
16388 (grub-mkconfig_DATA): ... this.
16389
556ce6ac 163902008-09-28 Robert Millan <rmh@aybabtu.com>
16391
16392 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
16393 to `modified'. Add the real `created' field.
16394 (grub_iso9660_uuid): Use `modified' rather than `created' for
16395 constructing the UUID.
16396
163972008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 16398
16399 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
16400 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
16401
92274e85 164022008-09-28 Bean <bean123ch@gmail.com>
16403
16404 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
16405 Thanks to Christian Franke for finding this bug.
16406
add6f17a 164072008-09-25 Robert Millan <rmh@aybabtu.com>
16408
16409 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
16410 instances of grub_util_get_disk_name() (see previous commit).
16411
d2a367b8 164122008-09-25 Robert Millan <rmh@aybabtu.com>
16413
16414 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
16415 `util/i386/get_disk_name.c'.
16416 * conf/i386-efi.rmk: Likewise.
16417 * conf/x86_64-efi.rmk: Likewise.
16418 * conf/i386-coreboot.rmk: Likewise.
16419 * conf/i386-ieee1275.rmk: Likewise.
16420 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
16421 `util/ieee1275/get_disk_name.c'.
16422 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
16423 * util/ieee1275/get_disk_name.c: Remove file.
16424 * util/i386/get_disk_name.c: Remove file.
16425 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
16426 "hd%d" for device.map entries, rather than using
16427 grub_util_get_disk_name().
16428
81a06771 164292008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 16430
16431 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
16432 warning.
16433 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
16434
5a004279 164352008-09-24 Carles Pina i Estany <carles@pina.cat>
16436
16437 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
16438 Changed to 0x5100.
16439 (GRUB_TERM_PPAGE): Changed to 0x4900.
16440
397093d3 164412008-09-24 Robert Millan <rmh@aybabtu.com>
16442
16443 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
16444 macros (they were i386-pc specific).
16445 * include/grub/sparc64/ieee1275/console.h: Likewise.
16446 * include/grub/efi/console.h: Likewise.
16447
a91b6c7c 164482008-09-22 Bean <bean123ch@gmail.com>
16449
16450 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
16451 resident and in attribute list.
16452
16453 * include/grub/ntfs.h (BMP_LEN): Removed.
16454
c40fd116 164552008-09-22 Bean <bean123ch@gmail.com>
16456
81a06771 16457 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 16458 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
16459
16460 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
16461 error occurs, as grub_disk_open will call grub_disk_close, which will
16462 call p->close (scsi).
16463
81a06771 164642008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 16465
16466 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
16467 (AC_PREREQ): Bumped to 2.59.
16468 (AC_TRY_COMPILE): Replace obsolete macro with ...
16469 (AC_COMPILE_IFELSE): ... this.
16470 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
16471 (AC_LINK_IFELSE): ... this.
16472
5dc43410 164732008-09-21 Felix Zielcke <fzielcke@z-51.de>
16474
16475 * autogen.sh: Add a call to `gendistlist.sh'.
16476
9035dce4 164772008-09-19 Christian Franke <franke@computer.org>
16478
16479 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
16480 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
16481 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
16482 Export __enable_execute_stack() to modules.
16483 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
16484 New function.
16485
7fd75377 164862008-09-09 Felix Zielcke <fzielcke@z-51.de>
16487
040030b3 16488 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
16489 Sort the list.
16490
164912008-09-09 Felix Zielcke <fzielcke@z-51.de>
16492
16493 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 16494 #include <grub/util/hostdisk.h>.
16495
89d5ffcf 164962008-09-08 Robert Millan <rmh@aybabtu.com>
16497
16498 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
16499 segments when their filesz is zero (grub_file_read() interprets
81a06771 16500 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 16501 Use `lowest_segment' rather than 0 for calculating the current
16502 segment load address.
16503
40da438f 165042008-09-08 Robert Millan <rmh@aybabtu.com>
16505
16506 * util/hostdisk.c (open_device): Replace a grub_util_info() call
16507 with grub_dprintf("hostdisk", ...), as it was so verbose that it
16508 clobbered useful information.
16509
ddbf5556 165102008-09-08 Robert Millan <rmh@aybabtu.com>
16511
16512 * include/grub/util/biosdisk.h: Move to ...
16513 * include/grub/util/hostdisk.h: ... here. Update all users.
16514 * util/biosdisk.c: Move to ...
16515 * util/hostdisk.c: ... here. Update all users.
16516
783d0f48 165172008-09-07 Robert Millan <rmh@aybabtu.com>
16518
16519 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
16520 variables.
16521 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
16522 and length can be stored directly in the `mbi->mmap_addr' and
16523 `mbi->mmap_length' struct fields.
16524
548e2ea5 165252008-09-07 Robert Millan <rmh@aybabtu.com>
16526
16527 * conf/i386.rmk: New file. Provides declaration for building
16528 `cpuid.mod'.
16529 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
16530 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
16531 variables.
16532 Include `conf/i386.mk'.
16533 * conf/i386-efi.rmk: Likewise.
16534 * conf/x86_64-efi.rmk: Likewise.
16535 * conf/i386-coreboot.rmk: Likewise.
16536 * conf/i386-ieee1275.rmk: Likewise.
16537
0ea85a37 165382008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
16539
16540 Based on patch created by Colin D Bennett <colin@gibibit.com>.
16541 Adds optimization support for BGR based modes.
16542
16543 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
16544 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
16545 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
16546 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
16547 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
16548 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
16549 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
16550 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
16551 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
16552 (grub_video_i386_vbeblit_index_index): Likewise.
16553 (grub_video_i386_vbeblit_replace_directN): Added.
16554 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
16555 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
16556 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
16557 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
16558 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
16559 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 16560 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 16561 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
16562 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
16563 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
16564 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
16565 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
16566 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
16567
16568 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
16569 (grub_video_i386_vbefill_R8G8B8): Likewise.
16570 (grub_video_i386_vbefill_index): Likewise.
16571 (grub_video_i386_vbefill_direct32): Added.
16572 (grub_video_i386_vbefill_direct24): Likewise.
16573 (grub_video_i386_vbefill_direct16): Likewise.
16574 (grub_video_i386_vbefill_direct8): Likewise.
16575
81a06771 16576 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 16577 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
16578 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
16579 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
16580 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
16581 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 16582
0ea85a37 16583 * video/video.c (grub_video_get_blit_format): Updated to use new
16584 blit formats. Added handling for 16 bit color modes.
81a06771 16585
16586 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 16587 fillers.
16588 (common_blitter): Updated to use new blitters.
16589
16590 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
16591 Removed.
16592 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
16593 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
16594 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
16595 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
16596 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
16597 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
16598 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
16599 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
16600 (grub_video_i386_vbeblit_index_index): Likewise.
16601 (grub_video_i386_vbeblit_replace_directN): Added.
16602 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
16603 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
16604 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
16605 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
16606 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
16607 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
16608 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
16609 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
16610 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
16611 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
16612 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
16613 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
16614 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 16615
0ea85a37 16616 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
16617 (grub_video_i386_vbefill_R8G8B8): Likewise.
16618 (grub_video_i386_vbefill_index): Likewise.
16619 (grub_video_i386_vbefill_direct32): Added.
16620 (grub_video_i386_vbefill_direct24): Likewise.
16621 (grub_video_i386_vbefill_direct16): Likewise.
16622 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 16623
0ea85a37 16624 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
16625 types.
81a06771 16626
0ea85a37 16627 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
16628 types.
81a06771 16629
0ea85a37 16630 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
16631 blitter types.
81a06771 16632
0ea85a37 16633 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
16634 types.
16635
e8a83df6 166362008-09-06 Felix Zielcke <fzielcke@z-51.de>
16637
16638 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
16639 RAID level 1.
16640
6bcd8ee5 166412008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 16642
6bcd8ee5 16643 * fs/iso9660.c (grub_iso9660_date): New structure.
16644 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
16645 (grub_iso9660_uuid): New function.
c375ae58 16646
59261157 166472008-09-05 Bean <bean123ch@gmail.com>
16648
16649 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
16650
16651 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
16652 insensitive bit for names in Win32 and Win32 & DOS namespace.
16653
16654 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
16655
16656 * include/grub/types.h (LONG_MAX): Likewise.
16657
58b6645a 166582008-09-04 Felix Zielcke <fzielcke@z-51.de>
16659
4ee55921 16660 * util/getroot.c: Include <config.h>.
16661 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
16662 add support for /dev/md/N devices and handle LVM double dash escaping.
16663
166642008-09-04 Felix Zielcke <fzielcke@z-51.de>
16665
16666 * config.guess: Update to latest version from config git.
16667 * config.sub: Likewise.
58b6645a 16668
9124f65d 166692008-09-03 Robert Millan <rmh@aybabtu.com>
16670
16671 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
16672 `disk->total_sectors'.
16673
81a06771 166742008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 16675
16676 * include/grub/normal.h: Fixed incorrect comment for
16677 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
16678
81a06771 166792008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 16680
16681 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
16682 values with defines.
16683
16684 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
16685 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
16686 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
16687 (GRUB_VBE_MODEATTR_COLOR): Likewise.
16688 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
16689 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
16690 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
16691 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
16692 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
16693 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
16694 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
16695 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
16696 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
16697 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
16698 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
16699 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
16700 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
16701 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
16702 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
16703
93d5cbf8 167042008-08-31 Robert Millan <rmh@aybabtu.com>
16705
16706 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
16707 declaration.
16708 (grub_multiboot): Fix a few warnings.
16709
21751d50 167102008-08-31 Robert Millan <rmh@aybabtu.com>
16711
16712 * loader/i386/pc/multiboot.c: Update comment not to say that
16713 boot_device support is unimplemented.
16714
e27a75c5 167152008-08-31 Robert Millan <rmh@aybabtu.com>
16716
16717 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
16718 or memory map support are unimplemented.
16719
81a06771 167202008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 16721
16722 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
16723
81a06771 167242008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 16725
16726 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
16727 total video memory in 'vbeinfo' output; show color format details for
16728 each video mode.
16729
7c5d8d95 167302008-08-30 Pavel Roskin <proski@gnu.org>
16731
16732 * util/genmoddep.c: Remove for real this time.
16733 * DISTLIST: Remove util/genmoddep.c.
16734
4cebd25a 167352008-08-30 Robert Millan <rmh@aybabtu.com>
16736
16737 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
16738 as required by Multiboot spec (it was already 4-byte aligned, but
16739 only by chance).
16740
b497a269 167412008-08-29 Pavel Roskin <proski@gnu.org>
16742
e3925185 16743 * kern/powerpc/ieee1275/crt0.S: Rename to ...
16744 * kern/powerpc/ieee1275/startup.S: ... this.
16745 * conf/powerpc-ieee1275.rmk: Adjust for the above.
16746 * DISTLIST: Likewise.
16747
b497a269 16748 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
16749 grub/cpu/kernel.h. Add start label for consistency with other
16750 platforms. Add grub_prefix immediately after start. Add jump
16751 to the code after grub_prefix.
16752 * include/grub/powerpc/kernel.h: Provide valid values for
16753 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
16754
6e5a42fe 167552008-08-29 Bean <bean123ch@gmail.com>
16756
16757 * configure.ac: Change host_os to cygwin for mingw.
16758 (asprintf): New check for function.
16759
16760 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
16761 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
16762
16763 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 16764 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 16765 sync, sleep and grub_util_get_disk_size for mingw.
16766
16767 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
16768 to get size in mingw.
16769 (open_device): Use flag O_BINARY if it's defined.
16770 (find_root_device): Add dummy code for mingw.
16771
16772 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
16773 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
16774 (get_scsi_disk_name): Return 0 for mingw.
16775
16776 * util/hostfs.c: #include <grub/util/misc.h>.
16777 (grub_hostfs_open): Use "rb" flag to open file, use
16778 grub_util_get_disk_size to get disk size for mingw.
16779
16780 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
16781 (asprintf): New function if HAVE_ASPRINTF is not set.
16782 (sync): New function for mingw.
16783 (sleep): Likewise.
16784 (grub_util_get_disk_size): Likewise.
16785
ab3f2673 167862008-08-28 Pavel Roskin <proski@gnu.org>
16787
16788 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16789 kern/time.c.
16790
1c282483 167912008-08-28 Robert Millan <rmh@aybabtu.com>
16792
16793 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
16794
678e849c 167952008-08-28 Robert Millan <rmh@aybabtu.com>
16796
16797 Change find_grub_drive() syntax so it doesn't prevent it from
16798 detecting NULL names as errors.
16799
16800 * util/biosdisk.c (find_grub_drive): Move free slot search code
16801 from here ...
16802 (find_free_slot): ... to here.
16803 (read_device_map): Use find_free_slot() to search for free slots.
16804
965c75ca 168052008-08-27 Marco Gerards <marco@gnu.org>
16806
16807 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
16808 (scsi_mod_SOURCES): New variable.
16809 (scsi_mod_CFLAGS): Likewise
16810 (scsi_mod_LDFLAGS): Likewise.
16811
16812 * disk/scsi.c: New file.
16813
16814 * include/grub/scsi.h: Likewise.
16815
16816 * include/grub/scsicmd.h: Likewise.
16817
16818 * disk/ata.c: Include <grub/scsi.h>.
16819 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
16820 instead.
16821 (grub_ata_iterate): Skip ATAPI devices.
16822 (grub_ata_open): Only handle ATAPI devices.
16823 (struct grub_atapi_read): Removed.
16824 (grub_atapi_readsector): Likewise.
16825 (grub_ata_read): No longer handle ATAPI devices.
16826 (grub_ata_write): Likewise.
16827 (grub_atapi_iterate): New function.
16828 (grub_atapi_read): Likewise.
16829 (grub_atapi_write): Likewise.
16830 (grub_atapi_open): Likewise.
16831 (grub_atapi_close): Likewise.
16832 (grub_atapi_dev): New variable.
16833 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
16834 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
16835
16836 * include/grub/disk.h (enum grub_disk_dev_id): Add
16837 `GRUB_DISK_DEVICE_SCSI_ID'.
16838
c07ae501 168392008-08-26 Robert Millan <rmh@aybabtu.com>
16840
16841 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
16842 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
16843 descriptive.
16844
5ed20adc 168452008-08-23 Bean <bean123ch@gmail.com>
16846
16847 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
16848 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16849 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
16850 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
16851 dm_nv.mod.
16852 (raid5rec_mod_SOURCES): New macro.
16853 (raid5rec_mod_CFLAGS): Likewise.
16854 (raid5rec_mod_LDFLAGS): Likewise.
16855 (raid6rec_mod_SOURCES): Likewise.
16856 (raid6rec_mod_CFLAGS): Likewise.
16857 (raid6rec_mod_LDFLAGS): Likewise.
16858 (mdraid_mod_SOURCES): Likewise.
16859 (mdraid_mod_CFLAGS): Likewise.
16860 (mdraid_mod_LDFLAGS): Likewise.
16861 (dm_nv_mod_SOURCES): Likewise.
16862 (dm_nv_mod_CFLAGS): Likewise.
16863 (dm_nv_mod_LDFLAGS): Likewise.
16864
16865 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
16866 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16867 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16868
16869 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
16870 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16871
16872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16873
16874 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16875
16876 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16877
16878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16879
16880 * disk/raid5_recover.c: New file.
16881
16882 * disk/raid6_recover.c: Likewise.
16883
16884 * disk/mdraid_linux.c: Likewise.
16885
16886 * disk/dmraid_nvidia.c: Likewise.
16887
16888 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
16889 ULONG_MAX.
16890
16891 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
16892 calculate the size of raid device.
16893 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
16894 different layout of raid5.
16895 (grub_raid_scan_device): Remove code specific to mdraid.
16896 (grub_raid_list): New variable.
16897 (free_array): New function.
16898 (grub_raid_register): Likewise.
16899 (grub_raid_unregister): Likewise.
16900 (grub_raid_rescan): Likewise.
16901 (GRUB_MOD_INIT): Don't iterate device here.
16902 (GRUB_MOD_FINI): Use free_array to release resource.
16903
16904 * include/grub/raid.h: Remove macro and structure specific to mdraid.
16905 (grub_raid5_recover_func_t): New function variable type.
16906 (grub_raid6_recover_func_t): Likewise.
16907 (grub_raid5_recover_func): New variable.
16908 (grub_raid6_recover_func): Likewise.
16909 (grub_raid_register): New function.
16910 (grub_raid_unregister): Likewise.
16911 (grub_raid_rescan): Likewise.
16912 (grub_raid_block_xor): Likewise.
16913
16914 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
16915 (CMD_CRC): New macro.
16916 (part): Removed.
16917 (read_file): Handle device as well as file.
16918 (cmd_crc): New function.
16919 (fstest): Handle multiple disks.
16920 (options): Remove part, raw and long, add root and diskcount.
16921 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 16922 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 16923 add handling for the new options, support multiple disks.
16924
16925 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
16926
29c18915 169272008-08-23 Bean <bean123ch@gmail.com>
16928
16929 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
16930
16931 * genfslist.sh: Ignore kernel.mod.
16932
16933 * genpartmaplist.sh: Likewise.
16934
8415f261 169352008-08-23 Robert Millan <rmh@aybabtu.com>
16936
16937 * util/getroot.c (find_root_device): Skip anything that starts with
16938 a dot, not just directories. This avoids things like /dev/.tmp.md0.
16939
d5a7dc5b 169402008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 16941
d5a7dc5b 16942 * util/update-grub.in (GRUB_GFXMODE): Export variable.
16943 * util/grub.d/00_header.in: Allow the administrator to change default
16944 gfxmode via ${GRUB_GFXMODE}.
16945
380cfbb4 169462008-08-21 Felix Zielcke <fzielcke@z-51.de>
16947
16948 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
16949
c9baafe7 169502008-08-21 Robert Millan <rmh@aybabtu.com>
16951
16952 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
16953 loader.
16954 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
16955 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
16956
e290bef2 169572008-08-20 Carles Pina i Estany <carles@pina.cat>
16958
16959 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
16960 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
16961
f9dbfc96 169622008-08-19 Robert Millan <rmh@aybabtu.com>
16963
16964 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
16965 (struct grub_virtual_screen): Remove `cursor_color'.
16966 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
16967 initialization.
16968 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
16969
dd6bd6ab 169702008-08-18 Robert Millan <rmh@aybabtu.com>
16971
16972 Unify (identical) linux_normal.c files.
16973 * loader/i386/efi/linux_normal.c: Move from here ...
16974 * loader/linux_normal.c: ... to here. Update all users.
16975 * loader/i386/pc/linux_normal.c: Delete. Update all users.
16976 * loader/i386/ieee1275/linux_normal.c: Likewise.
16977
7f42f83e 169782008-08-18 Robert Millan <rmh@aybabtu.com>
16979
16980 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
16981 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
16982 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
16983 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
16984 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
16985 New macros.
16986 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
16987 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
16988 (GRUB_LINUX_CL_END_OFFSET): ... to here.
16989 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
16990 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
16991 (GRUB_EFI_CL_END_OFFSET): Rename to ...
16992 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
16993 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
16994 Initialize `params->video_cursor_x' and `params->video_cursor_y'
16995 portably using grub_getxy().
16996 Replace `-EFI' with `-bzImage' in boot message.
16997
38487ddb 169982008-08-17 Robert Millan <rmh@aybabtu.com>
16999
17000 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
17001
deceb3ec 170022008-08-17 Robert Millan <rmh@aybabtu.com>
17003
17004 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
17005
17006 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
17007 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
17008 (grub_machine_mmap_iterate): New function declaration.
17009 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
17010 structure.
17011 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
17012 macros.
17013
17014 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
17015 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
17016 Move e820 parsing from here ...
17017 * kern/i386/pc/mmap.c: New file.
17018 (grub_machine_mmap_iterate): ... to here.
17019
17020 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
17021 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
17022 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
17023 (grub_available_iterate): Redeclare to return `void', and redeclare
17024 its hook to use grub_uint64_t as addr and size parameters, and rename
17025 to ...
17026 (grub_machine_mmap_iterate): ... this. Update all users.
17027
17028 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
17029 to make it more readable. Rename to ...
17030 (grub_machine_mmap_iterate): ... this.
17031
17032 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
17033 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
17034 (grub_multiboot): Allocate an extra region after the payload, and fill
17035 it with a Multiboot memory map. Adjust a.out loader to calculate size
17036 with the extra space.
17037 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
17038 with the extra space.
17039
f8aa0f43 170402008-08-17 Carles Pina i Estany <carles@pina.cat>
17041
9807deb9 17042 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 17043
605f5bb6 170442008-08-17 Felix Zielcke <fzielcke@z-51.de>
17045
17046 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
17047 mdate-sh to the list `find' searches for.
17048 * DISTLIST: Regenerated.
17049
210db6c6 170502008-08-16 Felix Zielcke <fzielcke@z-51.de>
17051
17052 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
17053 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 17054 genmoddep.awk, gensymlist.sh.in.
17055 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 17056 * DISTLIST: Regenerated.
48cdbfd4 17057 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 17058
1082b929 170592008-08-16 Robert Millan <rmh@aybabtu.com>
17060
17061 * disk/raid.c (grub_raid_init): Handle/report errors set by
17062 grub_device_iterate().
17063 * disk/lvm.c (grub_lvm_init): Likewise.
17064
42ce5170 170652008-08-15 Bean <bean123ch@gmail.com>
17066
17067 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
17068 and datehook.mod.
17069 (datetime_mod_SOURCES): New macro.
17070 (datetime_mod_CFLAGS): Likewise.
17071 (datetime_mod_LDFLAGS): Likewise.
17072 (date_mod_SOURCES): Likewise.
17073 (date_mod_CFLAGS): Likewise.
17074 (date_mod_LDFLAGS): Likewise.
17075 (datehook_mod_SOURCES): Likewise.
17076 (datehook_mod_CFLAGS): Likewise.
17077 (datehook_mod_LDFLAGS): Likewise.
17078
17079 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
17080 and datehook.mod.
17081 (datetime_mod_SOURCES): New macro.
17082 (datetime_mod_CFLAGS): Likewise.
17083 (datetime_mod_LDFLAGS): Likewise.
17084 (date_mod_SOURCES): Likewise.
17085 (date_mod_CFLAGS): Likewise.
17086 (date_mod_LDFLAGS): Likewise.
17087 (datehook_mod_SOURCES): Likewise.
17088 (datehook_mod_CFLAGS): Likewise.
17089 (datehook_mod_LDFLAGS): Likewise.
17090
17091 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
17092 and datehook.mod.
17093 (datetime_mod_SOURCES): New macro.
17094 (datetime_mod_CFLAGS): Likewise.
17095 (datetime_mod_LDFLAGS): Likewise.
17096 (date_mod_SOURCES): Likewise.
17097 (date_mod_CFLAGS): Likewise.
17098 (date_mod_LDFLAGS): Likewise.
17099 (datehook_mod_SOURCES): Likewise.
17100 (datehook_mod_CFLAGS): Likewise.
17101 (datehook_mod_LDFLAGS): Likewise.
17102
17103 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
17104 and datehook.mod.
17105 (datetime_mod_SOURCES): New macro.
17106 (datetime_mod_CFLAGS): Likewise.
17107 (datetime_mod_LDFLAGS): Likewise.
17108 (date_mod_SOURCES): Likewise.
17109 (date_mod_CFLAGS): Likewise.
17110 (date_mod_LDFLAGS): Likewise.
17111 (datehook_mod_SOURCES): Likewise.
17112 (datehook_mod_CFLAGS): Likewise.
17113 (datehook_mod_LDFLAGS): Likewise.
17114
17115 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
17116 and datehook.mod.
17117 (datetime_mod_SOURCES): New macro.
17118 (datetime_mod_CFLAGS): Likewise.
17119 (datetime_mod_LDFLAGS): Likewise.
17120 (date_mod_SOURCES): Likewise.
17121 (date_mod_CFLAGS): Likewise.
17122 (date_mod_LDFLAGS): Likewise.
17123 (datehook_mod_SOURCES): Likewise.
17124 (datehook_mod_CFLAGS): Likewise.
17125 (datehook_mod_LDFLAGS): Likewise.
17126
17127 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
17128
17129 * commands/date.c: New file.
17130
17131 * hook/datehook.c: Likewise.
17132
17133 * include/grub/lib/datetime.h: Likewise.
17134
17135 * include/grub/i386/cmos.h: Likewise.
17136
17137 * lib/datetime.c: Likewise.
17138
17139 * lib/i386/datetime.c: Likewise.
17140
17141 * lib/efi/datetime.c: Likewise.
17142
0e9242da 171432008-08-14 Robert Millan <rmh@aybabtu.com>
17144
17145 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
17146 (grub_mkelfimage_SOURCES): New variable.
17147 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
17148
17149 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
17150 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
17151 * conf/powerpc-ieee1275.rmk: Likewise.
17152 * conf/i386-ieee1275.rmk: Likewise.
17153
17154 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
17155 * kern/i386/coreboot/init.c: Likewise.
17156
17157 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
17158 with `<grub/cpu/kernel.h>'.
17159 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
17160 to ...
17161 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
17162 * kern/i386/coreboot/startup.S: Likewise.
17163
17164 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
17165 (GRUB_MOD_GAP): Remove.
17166 * include/grub/powerpc/kernel.h: New file.
17167 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
17168 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
17169 * include/grub/i386/kernel.h: New file.
17170 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
17171 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
17172 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
17173
17174 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
17175 `grub-mkelfimage'.
17176 Use --directory when invoking grub_mkimage.
17177
17178 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
17179 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
17180 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
17181 and GRUB_KERNEL_CPU_PREFIX.
17182
b86408f8 171832008-08-14 Felix Zielcke <fzielcke@z-51.de>
17184
d5e619ca 17185 * include/grub/err.h (grub_err_printf): New function prototype.
17186 * util/misc.c (grub_err_printf): New function.
17187 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
17188 grub_printf.
17189 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 17190
7161f0e0 171912008-08-13 Robert Millan <rmh@aybabtu.com>
17192
17193 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
17194
a1967522 171952008-08-13 Robert Millan <rmh@aybabtu.com>
17196
17197 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
17198 boot entry.
17199
371458b5 172002008-08-12 Robert Millan <rmh@aybabtu.com>
17201
17202 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
17203 of the relocation code from here ...
17204 (grub_multiboot): ... to here.
17205 (forward_relocator, backward_relocator): Move from here ...
17206 * kern/i386/loader.S (grub_multiboot_forward_relocator)
17207 (grub_multiboot_backward_relocator): ... to here.
17208 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
17209 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
17210 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
17211 (grub_multiboot_forward_relocator_end)
17212 (grub_multiboot_backward_relocator)
17213 (grub_multiboot_backward_relocator_end): New variables.
17214
05f9452b 172152008-08-12 Bean <bean123ch@gmail.com>
17216
17217 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
17218
20024ab0 172192008-08-11 Robert Millan <rmh@aybabtu.com>
17220
17221 * kern/i386/linuxbios/startup.S: Move from here ...
17222 * kern/i386/coreboot/startup.S: ... to here.
17223
17224 * kern/i386/linuxbios/init.c: Move from here ...
17225 * kern/i386/coreboot/init.c: ... to here.
17226
17227 * kern/i386/linuxbios/table.c: Move from here ...
17228 * kern/i386/coreboot/mmap.c: ... to here.
17229
17230 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
17231
e352e9cd 172322008-08-11 Robert Millan <rmh@aybabtu.com>
17233
17234 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
17235 errors. Leave it to the upper layer to handle them.
17236
2d05bc6a 172372008-08-09 Christian Franke <franke@computer.org>
17238
17239 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
17240 * conf/common.rmk: Install `grub-pe2elf' only if requested.
17241 Install `grub.d/10_windows' only on Cygwin.
17242 * configure.ac: Add subst of `target_os'.
17243 Check `target_os' also before setting TARGET_OBJ2ELF.
17244 Add `--enable-grub-pe2elf'.
17245
042bd419 172462008-08-08 Robert Millan <rmh@aybabtu.com>
17247
17248 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
17249 (grub_last_time): Change type to grub_uint64_t.
17250 (grub_disk_open): Migrate code from to using grub_get_time_ms().
17251 (grub_disk_close): Likewise.
17252
17253 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
17254 (run_menu): Migrate code from to using grub_get_time_ms().
17255
17256 * util/misc.c (grub_get_time_ms): New function.
17257
7f280db5 172582008-08-08 Marco Gerards <marco@gnu.org>
17259
17260 * disk/ata.c (grub_ata_regget): Change return type to
17261 `grub_uint8_t'.
17262 (grub_ata_regget2): Likewise.
17263 (grub_ata_wait_status): New function.
17264 (grub_ata_wait_busy): Removed function, updated all users to use
17265 `grub_ata_wait_status'.
17266 (grub_ata_wait_drq): Likewise.
17267 (grub_ata_cmd): New function.
17268 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
17269 error handling.
17270 (grub_ata_pio_write): Add error handling.
17271 (grub_atapi_identify): Likewise.
17272 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
17273 handling.
17274 (grub_ata_identify): Use `grub_ata_cmd' and improve error
17275 handling. Actually use the detected registers. Reorder the
17276 detection logic such that it is easier to read.
17277 (grub_ata_pciinit): Do not assign the same ID to each controller.
17278 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
17279 handling.
17280 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
17281
17282 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
17283
1fbc5e66 172842008-08-08 Marco Gerards <marco@gnu.org>
17285
17286 * NEWS: Update.
17287
819ce6c0 172882008-08-07 Bean <bean123ch@gmail.com>
17289
17290 * include/grub/x86_64/pci.h: New file.
17291
5c41d44d 172922008-08-07 Christian Franke <franke@computer.org>
17293
17294 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
17295 (TIMER2_GATE): Likewise.
17296 (grub_pit_wait): Add enable/disable of the timer2 gate
17297 bit of port 0x61. This fixes a possible infinite loop.
17298
5ebc275d 172992008-08-07 Bean <bean123ch@gmail.com>
17300
17301 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
17302 kern/i386/tsc.c and kern/i386/pit.c.
17303
17304 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
17305 x86_64 platform.
17306
17307 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
17308 <grub/i386/tsc.h>.
17309
17310 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
17311
e383b3d0 173122008-08-07 Bean <bean123ch@gmail.com>
17313
17314 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
17315
17316 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
17317
17318 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
17319 multiple inclusion. Add #include <grub/types.h>.
17320
1cbb58ac 173212008-08-06 Christian Franke <franke@computer.org>
17322
17323 * conf/common.rmk: Build and install `10_windows'.
17324 * util/grub.d/10_windows.in: New script.
17325
337f5a1e 173262008-08-06 Pavel Roskin <proski@gnu.org>
17327
17328 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
17329
057bc4ac 173302008-08-06 Robert Millan <rmh@aybabtu.com>
17331
17332 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
17333 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
17334
2b99f123 173352008-08-06 Bean <bean123ch@gmail.com>
17336
17337 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
17338 (grub_pxefs_fs_int): Remove dummy definition.
17339 (grub_pxefs_open): Use data->block_size to store the current block
17340 size setting.
17341 (grub_pxefs_read): Use block size stored in data->block_size. As the
17342 value of grub_pxe_blksize can be changed after the file is opened.
17343
9f0234cb 173442008-08-06 Bean <bean123ch@gmail.com>
17345
17346 * fs/i386/pc/pxe.c (curr_file): new variable.
17347 (grub_pxefs_open): Simply the handling of pxe file system. Don't
17348 require the dummy internal file system anymore.
17349 (grub_pxefs_read): Removed.
17350 (grub_pxefs_close): Likewise.
17351 (grub_pxefs_fs_int): Likewise.
17352 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
17353 connection when we switch file.
17354 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
17355
a55d42e0 173562008-08-06 Robert Millan <rmh@aybabtu.com>
17357
17358 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
17359 `halt.mod'.
17360 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
17361 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
17362
17363 * kern/i386/halt.c: New file.
17364 * kern/i386/reboot.c: Likewise.
17365 * include/grub/i386/reboot.h: Likewise.
17366 * include/grub/i386/halt.h: Likewise.
17367
17368 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
17369 Include `<grub/cpu/halt.h>'.
17370 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
17371 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
17372
17373 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
17374 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
17375 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
17376 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
17377 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
17378 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
17379 from here ...
17380 * include/grub/i386/at_keyboard.h: ... to here.
17381
24371d26 173822008-08-05 Robert Millan <rmh@aybabtu.com>
17383
17384 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
17385 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
17386 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
17387 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
17388 `kern/generic/millisleep.c'.
17389
17390 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
17391 instead of grub_get_rtc().
17392 (grub_tsc_init): Initialize `tsc_boot_time'.
17393
17394 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
17395 (grub_machine_init): Use grub_tsc_init() rather than
17396 installing an RTC-based handler via grub_install_get_time_ms().
17397
17398 * kern/i386/pit.c: New file.
17399 * include/grub/i386/pit.h: Likewise.
17400
9e7007b3 174012008-08-05 Bean <bean123ch@gmail.com>
17402
17403 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
17404
17405 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
17406 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
17407 (pxe_mod_SOURCES): New macro.
17408 (pxe_mod_CFLAGS): Likewise.
17409 (pxe_mod_LDFLAGS): Likewise.
17410 (pxecmd_mod_SOURCES): Likewise.
17411 (pxecmd_mod_CFLAGS): Likewise.
17412 (pxecmd_mod_LDFLAGS): Likewise.
17413
17414 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
17415 (grub_pxe_call): Likewise.
17416
17417 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
17418
17419 * commands/i386/pc/pxecmd.c: New file.
17420
9f0234cb 17421 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 17422
17423 * include/grub/i386/pc/pxe.h: Likewise.
17424
6977d49f 174252008-08-05 Bean <bean123ch@gmail.com>
17426
17427 * util/console.c (grub_console_cur_color): New variable.
17428 (grub_console_standard_color): Likewise.
17429 (grub_console_normal_color): Likewise.
17430 (grub_console_highlight_color): Likewise.
17431 (color_map): Likewise.
17432 (use_color): Likewise.
17433 (NUM_COLORS): New macro.
17434 (grub_ncurses_setcolorstate): Handle color properly.
17435 (grub_ncurses_setcolor): Don't change color here, just remember the
17436 settings, color will be set in grub_ncurses_setcolorstate.
17437 (grub_ncurses_getcolor): New function.
17438 (grub_ncurses_init): Initialize color pairs.
17439 (grub_ncurses_term): New member grub_ncurses_getcolor.
17440
9c2ff3ee 174412008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 17442
9c2ff3ee 17443 High resolution timer support. Implemented for x86 CPUs using TSC.
17444 Extracted generic grub_millisleep() so it's linked in only as needed.
17445 This requires a Pentium compatible CPU; if the RDTSC instruction is
17446 not supported, then it falls back on the generic grub_get_time_ms()
17447 implementation that uses the machine's RTC.
17448
17449 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
17450 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
17451 `kern/generic/millisleep.c'.
17452
17453 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
17454 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
17455
17456 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
17457 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
17458
17459 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17460
17461 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
17462 `kern/generic/millisleep.c'.
17463
17464 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
17465
17466 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
17467
17468 * kern/generic/rtc_get_time_ms.c: New file.
17469
17470 * kern/generic/millisleep.c: New file.
337f5a1e 17471
9c2ff3ee 17472 * kern/misc.c: Don't include
17473 <kern/time.h> anymore.
17474 (grub_millisleep_generic): Removed.
17475
17476 * commands/sleep.c (grub_interruptible_millisleep): Uses
17477 grub_get_time_ms() instead of grub_get_rtc().
17478
17479 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
17480 function.
17481 (grub_cpu_is_cpuid_supported): New inline function.
17482 (grub_cpu_is_tsc_supported): New inline function.
17483 (grub_tsc_init): New function prototype.
17484 (grub_tsc_get_time_ms): New function prototype.
17485
17486 * kern/i386/tsc.c (grub_get_time_ms): New file.
17487
17488 * include/grub/time.h: Include <grub/types.h.
17489 (grub_millisleep_generic): Removed.
17490 (grub_get_time_ms): New prototype.
17491 (grub_install_get_time_ms): New prototype.
17492 (grub_rtc_get_time_ms): New prototype.
17493
17494 * kern/time.c (grub_get_time_ms): New function.
17495 (grub_install_get_time_ms): New function.
17496
17497 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
17498 <grub/time.h> anymore.
17499 (grub_millisleep): Removed.
17500 (grub_machine_init): Call grub_tsc_init.
17501
17502 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
17503 get_time_ms() implementation.
17504
17505 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
17506 (ieee1275_get_time_ms): New function.
17507 (grub_machine_init): Install get_time_ms() implementation.
17508
17509 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
17510 (grub_machine_init): Call grub_tsc_init().
17511 (grub_millisleep): Removed.
bf06a93f 17512
9c2ff3ee 17513 * kern/ieee1275/init.c (grub_millisleep): Removed.
17514 (grub_machine_init): Install ieee1275_get_time_ms()
17515 implementation.
17516 (ieee1275_get_time_ms): New function.
17517 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
17518 real work.
17519
9ec92aaf 175202008-08-05 Marco Gerards <marco@gnu.org>
17521
17522 * disk/ata.c: Include <grub/pci.h>.
17523 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
17524 (grub_ata_initialize): Rewritten.
17525 (grub_ata_device_initialize): New function.
17526
8d23f507 175272008-08-04 Pavel Roskin <proski@gnu.org>
17528
17529 * kern/main.c: Include grub/mm.h.
17530
5e15ee3d 175312008-08-04 Robert Millan <rmh@aybabtu.com>
17532
17533 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
17534 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
17535 corruption problem).
17536
a9053f8f 175372008-08-04 Robert Millan <rmh@aybabtu.com>
17538
17539 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
17540 warnings introduced in my last commit.
17541
dd19c7d7 175422008-08-03 Robert Millan <rmh@aybabtu.com>
17543
17544 Make PCI available on all i386 architectures.
17545
17546 * include/grub/i386/pc/pci.h: Move from here ...
17547 * include/grub/i386/pci.h: ... to here.
17548
17549 * include/grub/i386/pc/pci.h: Remove.
17550 * include/grub/i386/efi/pci.h: Remove.
17551 * include/grub/x86_64/efi/pci.h: Remove.
17552
17553 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
17554 `<grub/cpu/pci.h>'.
17555
17556 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
17557 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
17558 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
17559
17560 * conf/i386-ieee1275.rmk: Likewise.
17561
e14a6184 175622008-08-03 Robert Millan <rmh@aybabtu.com>
17563
17564 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
17565 (grub_console_setcursor): Make it possible to set cursor off.
17566
52768e37 175672008-08-03 Robert Millan <rmh@aybabtu.com>
17568
17569 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
17570 of modules instead of assuming which platform provides what.
17571 * util/update-grub.in: Likewise.
17572
2d52f57f 175732008-08-03 Robert Millan <rmh@aybabtu.com>
17574
17575 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
17576 instead of `grub_install_dos_part' to determine whether a drive needs
17577 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 17578 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 17579
2a5cd121 175802008-08-02 Robert Millan <rmh@aybabtu.com>
17581
17582 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
17583
93808428 175842008-08-02 Robert Millan <rmh@aybabtu.com>
17585
17586 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
17587 of informational grub_dprintf() calls.
17588
3bd0a12a 175892008-08-02 Robert Millan <rmh@aybabtu.com>
17590
17591 * disk/memdisk.c (memdisk_size): Don't initialize.
17592 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
17593
17594 * include/grub/i386/pc/kernel.h
17595 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
17596 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
17597 (grub_memdisk_image_size, grub_arch_memdisk_addr)
17598 (grub_arch_memdisk_size): Remove.
17599
17600 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
17601 field (was only used to transfer a constant). Add `type' field to
17602 support multiple module types.
17603 (grub_module_iterate): New function.
17604
17605 * kern/device.c (grub_device_open): Do not hide error messages
17606 when grub_disk_open() fails. Use grub_print_error() instead.
17607
17608 * kern/i386/pc/init.c (grub_arch_modules_addr)
17609 (grub_arch_memdisk_size): Remove functions.
17610 (grub_arch_modules_addr): Return the module address in high memory
17611 (now that it isn't copied anymore).
17612
17613 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
17614 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
17615 decompression routine (grub_total_module_size already includes that
17616 now). Don't copy modules back to low memory.
17617
17618 * kern/main.c: Include `<grub/mm.h>'.
17619 (grub_load_modules): Split out (and use) ...
17620 (grub_module_iterate): ... this function, which iterates through
17621 module objects and runs a hook.
17622 Comment out grub_mm_init_region() call, as it would cause non-ELF
17623 modules to be overwritten.
17624
17625 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
17626 the memdisk image in its own region, make it part of the module list.
17627 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
17628 (main): Parse --memdisk|-m option, and pass user-provided path as
17629 parameter to generate_image().
17630 (add_segments): Pass `memdisk_path' down to load_modules().
17631 (load_modules): Embed memdisk image in module section when requested.
17632 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
17633 `header.type' instead of `header.offset'.
17634
17635 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
17636 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
17637 (memdisk_mod_LDFLAGS): New variables.
17638 * conf/i386-coreboot.rmk: Likewise.
17639 * conf/i386-ieee1275.rmk: Likewise.
17640
a927cc73 176412008-08-02 Robert Millan <rmh@aybabtu.com>
17642
17643 * loader/i386/pc/multiboot.c (playground, forward_relocator)
17644 (backward_relocator): New variables. Used to allocate and relocate
17645 the payload, respectively.
17646 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 17647 address, install the appropriate relocator code in each bound of
a927cc73 17648 the payload, and set the entry point such that
17649 grub_multiboot_real_boot() will jump to one of them.
17650
17651 * kern/i386/loader.S (grub_multiboot_payload_size)
17652 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
17653 (grub_multiboot_payload_entry_offset): New variables.
17654 (grub_multiboot_real_boot): Set cpu context to what the relocator
17655 expects, and jump to the relocator instead of the payload.
17656
17657 * include/grub/i386/loader.h (grub_multiboot_payload_size)
17658 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
17659 (grub_multiboot_payload_entry_offset): Export.
17660
b15d8a0c 176612008-08-01 Bean <bean123ch@gmail.com>
17662
17663 * normal/menu_entry.c (editor_getline): Don't return the original
17664 string as result, as it will be released by lexer once it has done
17665 using it.
17666
cdfb3d22 176672008-08-01 Robert Millan <rmh@aybabtu.com>
17668
17669 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
17670 within menuentries, not before them.
17671 util/grub.d/10_hurd.in: Likewise.
17672
9175e93d 176732008-08-01 Bean <bean123ch@gmail.com>
17674
17675 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
17676 (bufio_mod_SOURCES): New macro.
17677 (bufio_mod_CFLAGS): Likewise.
17678 (bufio_mod_LDFLAGS): Likewise.
17679
17680 * include/grub/bufio.h: New file.
17681
17682 * io/bufio.c: Likewise.
17683
17684 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
17685 (grub_video_reader_png): Use grub_buffile_open to open file.
17686
17687 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
17688 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
17689
17690 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
17691 (grub_video_reader_tga): Use grub_buffile_open to open file.
17692
17693 * font/manager.c: Include <grub/bufio.h>.
17694 (add_font): Use grub_buffile_open to open file.
17695
3d8383e7 176962008-07-31 Robert Millan <rmh@aybabtu.com>
17697
17698 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
17699 ELF segments, use a macro for arbitrarily accessing any of them instead
17700 of preparing a pointer that allows access to one at a time.
17701 (grub_multiboot_load_elf64): Likewise.
17702
16e641b6 177032008-07-31 Bean <bean123ch@gmail.com>
17704
17705 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
17706 GRUB_KERNEL_MACHINE_DATA_END.
17707
59198b72 177082008-07-30 Robert Millan <rmh@aybabtu.com>
17709
17710 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
17711 Increase from 0x50 to 0x60.
17712 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
17713 use UUIDs to identify the root drive for them. If that's not
17714 possible, abort.
17715 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
17716 check, for cross-disk installs.
17717
ae88bca3 177182008-07-30 Robert Millan <rmh@aybabtu.com>
17719
17720 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
17721 is non-empty, use it to set the `prefix' environment variable instead
17722 of the usual approach.
17723 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
17724 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
17725 environment variable instead of dummy make_install_device().
17726
17727 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
17728 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 17729 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 17730
17731 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
17732 New variable reference.
17733 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
17734 New macro. Defines offset of `grub_prefix' within startup.S (relative
17735 to `start').
17736 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
17737 section within startup.S (relative to `start').
17738 * include/grub/i386/coreboot/kernel.h: Likewise.
17739
17740 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
17741 Overwrite grub_prefix with its contents, at the beginning of the
17742 first segment.
17743 (main): Understand -p|--prefix.
17744
14f41dd1 177452008-07-30 Robert Millan <rmh@aybabtu.com>
17746
17747 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
17748
4ca049a3 177492008-07-30 Robert Millan <rmh@aybabtu.com>
17750
17751 * term/i386/pc/vga_text.c (grub_console_cls): Use
17752 grub_console_gotoxy() to go back to beginning of the screen.
17753 Found by Patrick Georgi <patrick.georgi@coresystems.de>
17754
2921d337 177552008-07-29 Christian Franke <franke@computer.org>
17756
17757 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17758 Add conversion of emulated mount points on Cygwin.
17759
b609876d 177602008-07-29 Christian Franke <franke@computer.org>
17761
17762 * util/update-grub.in: Add a check for admin
17763 group on Cygwin.
17764 Remove old `grub.cfg.new' before creation.
17765 Add `-f' to `mv' to handle the different filesystem
17766 semantics of Windows.
17767
e93e4679 177682008-07-29 Bean <bean123ch@gmail.com>
17769
17770 * normal/main.c (get_line): Fix buffer overflow bug.
17771
41694fd0 177722008-07-28 Robert Millan <rmh@aybabtu.com>
17773
17774 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
17775 (struct grub_apple_header): New struct. Describes the layout of
17776 the partmap header.
17777 (apple_partition_map_iterate): Check the header magic as well as the
17778 partition magic (which was already being checked).
17779
cfd0b4e6 177802008-07-28 Pavel Roskin <proski@gnu.org>
17781
17782 * genmk.rb: Add a warning to the beginning of the output that
17783 it's a generated file and should not be edited.
17784
93cce016 177852008-07-28 Robert Millan <rmh@aybabtu.com>
17786
17787 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
17788 with the same number are found, just use issue a warning with
17789 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 17790
cd1df915 177912008-07-27 Robert Millan <rmh@aybabtu.com>
17792
17793 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
17794 information.
17795
b70a8427 177962008-07-27 Bean <bean123ch@gmail.com>
17797
17798 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
17799 (grub_fat_find_dir): Ignore case when comparing filename.
17800
8f5e379f 178012008-07-27 Bean <bean123ch@gmail.com>
17802
17803 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
17804 smallino, as it's more descriptive, and i8count can be confused with
17805 the other field count.
17806 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
17807 inode type.
17808
a85cd5a0 178092008-07-27 Bean <bean123ch@gmail.com>
17810
17811 * commands/crc.c: New file.
17812
17813 * lib/crc.c: Likewise.
17814
17815 * include/grub/lib/crc.h: Likewise.
17816
17817 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
17818
17819 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
17820 (hexdump): Move this function to ...
17821
17822 * lib/hexdump.c: ... here.
17823
17824 * include/grub/hexdump.h: Renamed to ...
17825
17826 * include/grub/lib/hexdump.h: ... this.
17827
17828 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
17829
17830 * util/grub-editenv.c: Likewise.
17831
17832 * include/envblk.h: Renamed to ...
17833
17834 * include/lib/envblk.h: ... this.
17835
17836 * util/envblk.c: Renamed to ...
17837
17838 * lib/envblk.c: ... this.
17839
17840 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
17841 lib/hexdump.c.
17842 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
17843 (pkglib_MODULES): Add crc.mod.
17844 (hexdump_mod_SOURCES): Add lib/hexdump.c.
17845 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
17846 (crc_mod_SOURCES): New macro.
17847 (crc_mod_CFLAGS): Likewise.
17848 (crc_mod_LDFLAGS): Likewise.
17849
17850 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
17851
17852 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17853
17854 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17855
17856 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17857
17858 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17859
c298def0 178602008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 17861
17862 * commands/help.c: Include <grub/term.h>.
17863 (TERM_WIDTH): Removed. Updated all users.
17864
cc349fb3 178652008-07-27 Pavel Roskin <proski@gnu.org>
17866
17867 * util/getroot.c (find_root_device): Rephrase a comment to avoid
17868 spurious warnings about a comment within a comment.
17869
9051607e 178702008-07-25 Robert Millan <rmh@aybabtu.com>
17871
17872 * util/getroot.c (find_root_device): Skip devices that match
17873 /dev/dm-[0-9]. This lets the real device be found for any type of
17874 abstraction (LVM, EVMS, RAID..).
17875 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
17876 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
17877 device is found first, find_root_device() will now skip it.
17878
01453bfc 178792008-07-24 Pavel Roskin <proski@gnu.org>
17880
17881 * include/grub/types.h: Use __builtin_bswap32() and
17882 __builtin_bswap64() with gcc 4.3 and newer.
17883
6af9849f 178842008-07-24 Christian Franke <franke@computer.org>
17885
3a0fa256 17886 * util/i386/pc/grub-install.in: If `--debug' is specified,
17887 pass `--verbose' to grub-setup.
17888 Abort script if make_system_path_relative_to_its_root() fails.
17889
7810e747 178902008-07-24 Bean <bean123ch@gmail.com>
17891
17892 * configure.ac: Fixed a bug caused by the previous cygwin patch,
17893 variable `target_platform' should be `platform'.
17894
42290e17 178952008-07-24 Bean <bean123ch@gmail.com>
17896
51cc5193 17897 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 17898 (grub_png_init_fixed_block): New function.
17899 (grub_png_decode_image_data): Handle fixed huffman code compression.
17900
2a8a80e4 179012008-07-24 Bean <bean123ch@gmail.com>
17902
17903 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
17904 (grub_pe2elf_SOURCES): New macro.
17905 (CLEANFILES): Add grub-pe2elf.
17906
17907 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
17908 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
17909 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
17910 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
17911 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
17912 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
17913 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
17914 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
17915 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
17916 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
17917 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
17918 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
17919 (GRUB_PE32_DT_FUNCTION): Likewise.
17920 (GRUB_PE32_REL_I386_DIR32): Likewise.
17921 (GRUB_PE32_REL_I386_REL32): Likewise.
17922 (grub_pe32_symbol): New structure.
17923 (grub_pe32_reloc): Likewise.
17924
17925 * util/grub-pe2elf.c: New file.
17926
17927 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
17928 start symbol in non pc platform.
17929
17930 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
17931
17932 The following patches are from Christian Franke.
17933
17934 * include/grub/dl.h: Remove .previous, gas supports this only
17935 for ELF format.
17936
17937 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
17938 Remove .type, gas supports this only for ELF format.
17939
17940 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
17941 nullbytes in symbol table. This fixes an infinite loop if table is
17942 zero filled.
17943
17944 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
17945 TARGET_IMG_LDFLAGS and EXEEXT.
17946
17947 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
17948 TARGET_IMG_LDFLAGS_AC.
17949 (grub_CHECK_STACK_ARG_PROBE): New function.
17950
17951 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
17952
17953 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
17954
17955 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
17956 to set TARGET_IMG_LD* accordingly.
17957 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
17958 Add call to grub_CHECK_STACK_ARG_PROBE.
17959 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
17960
17961 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
17962
17963 * genmk.rb: Add EXEEXT to CLEANFILES.
17964
12ccdb75 179652008-07-23 Robert Millan <rmh@aybabtu.com>
17966
17967 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
17968 define the codes for arrows and lines used for the menu).
17969 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
17970 as well.
17971
17972 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
17973 fonts, because the latter are too slow.
17974
18eeaf04 179752008-07-21 Bean <bean123ch@gmail.com>
17976
17977 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
17978 a20. Run keyboard test last, as it will cause macbook to halt.
17979
b095e2ad 179802008-07-18 Pavel Roskin <proski@gnu.org>
17981
17982 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
17983 load foreign architecture modules correctly anyway. Keep
17984 support for loading host architecture modules, whether we
17985 compile them or not.
17986
737feb35 179872008-07-17 Pavel Roskin <proski@gnu.org>
17988
3f4ce737 17989 * configure.ac: Use -m32 or -m64 regardless of whether we had to
17990 change target_cpu. The compiler default can mismatch target_cpu
17991 in any case.
17992
4ad2d049 17993 * disk/efi/efidisk.c: Fix format warnings on x86_64.
17994 * kern/efi/efi.c: Likewise.
17995
f6130a12 17996 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
17997 target compiler is functional.
17998 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
17999 are set up.
18000
58393a2d 18001 * configure.ac: Default to efi platform for x86_64-apple. Allow
18002 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
18003 adjustments from the rest, only do them if target is not
18004 explicitly given. Merge other adjustments with the final sanity
18005 check. Remove an extraneous check for supported CPU. Be
18006 specific which CPU and which platform is not supported.
18007
737feb35 18008 * configure.ac: Default to pc platform for x86_64.
18009
546f966a 180102008-07-17 Robert Millan <rmh@aybabtu.com>
18011
18012 Partial LinuxBIOS -> Coreboot rename.
18013
18014 * conf/i386-linuxbios.rmk: Renamed to ...
18015 * conf/i386-coreboot.rmk: ... this.
18016 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
18017 * configure.ac: Accept "coreboot" as input platform (but maintain
18018 compatibility with "linuxbios").
18019 * include/grub/i386/linuxbios: Renamed to ...
18020 * include/grub/i386/coreboot: ... this.
18021
20011694 180222008-07-17 Bean <bean123ch@gmail.com>
18023
18024 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 18025 (appleldr_mod_SOURCE): New variable.
20011694 18026 (appleldr_mod_CFLAGS): Likewise.
18027 (appleldr_mod_LDFLAGS): Likewise.
18028 (pci_mod_SOURCES): Likewise.
18029 (pci_mod_CFLAGS): Likewise.
18030 (pci_mod_LDFLAGS): Likewise.
18031 (lspci_mod_SOURCES): Likewise.
18032 (lspci_mod_CFLAGS): Likewise.
18033 (lspci_mod_LDFLAGS): Likewise.
18034
18035 * conf/x86_64-efi.rmk: New file.
18036
18037 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
18038 macro.
18039 (grub_efidisk_write): Likewise.
18040
18041 * include/efi/api.h (efi_call_0): New macro.
18042 (efi_call_1): Likewise.
18043 (efi_call_2): Likewise.
18044 (efi_call_3): Likewise.
18045 (efi_call_4): Likewise.
18046 (efi_call_5): Likewise.
18047 (efi_call_6): Likewise.
18048
18049 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
18050 grub_rescue_cmd_chainloader.
18051
18052 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
18053 (grub_pe32_optional_header): Change some fields based on i386 or
18054 x86_64 platform.
18055 (GRUB_PE32_PE32_MAGIC): Likewise.
18056
18057 * include/grub/efi/uga_draw.h: New file.
18058
18059 * include/grub/elf.h (STN_ABS): New constant.
18060 (R_X86_64_NONE): Relocation constant for x86_64.
18061 (R_X86_64_64): Likewise.
18062 (R_X86_64_PC32): Likewise.
18063 (R_X86_64_GOT32): Likewise.
18064 (R_X86_64_PLT32): Likewise.
18065 (R_X86_64_COPY): Likewise.
18066 (R_X86_64_GLOB_DAT): Likewise.
18067 (R_X86_64_JUMP_SLOT): Likewise.
18068 (R_X86_64_RELATIVE): Likewise.
18069 (R_X86_64_GOTPCREL): Likewise.
18070 (R_X86_64_32): Likewise.
18071 (R_X86_64_32S): Likewise.
18072 (R_X86_64_16): Likewise.
18073 (R_X86_64_PC16): Likewise.
18074 (R_X86_64_8): Likewise.
18075 (R_X86_64_PC8): Likewise.
18076
18077 * include/grub/i386/efi/pci.h: New file.
18078
18079 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
18080 Change it value based on platform.
18081 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
18082 (GRUB_E820_RAM): Likewise.
18083 (GRUB_E820_RESERVED): Likewise.
18084 (GRUB_E820_ACPI): Likewise.
18085 (GRUB_E820_NVS): Likewise.
18086 (GRUB_E820_EXEC_CODE): Likewise.
18087 (GRUB_E820_MAX_ENTRY): Likewise.
18088 (grub_e820_mmap): New structure.
18089 (linux_kernel_header): Change the efi field according to different
18090 kernel version, also field from linux_kernel_header.
18091
18092 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
18093
18094 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
18095 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
18096 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
18097 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
18098 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
18099 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
18100 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
18101 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
18102 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
18103 (GRUB_PCI_ADDR_IO_MASK): Likewise.
18104
18105 * include/grub/x86_64/efi/kernel.h: New file.
18106
18107 * include/grub/x86_64/efi/loader.h: Likewise.
18108
18109 * include/grub/x86_64/efi/machine.h: Likewise.
18110
18111 * include/grub/x86_64/efi/pci.h: Likewise.
18112
18113 * include/grub/x86_64/efi/time.h: Likewise.
18114
18115 * include/grub/x86_64/linux.h: Likewise.
18116
18117 * include/grub/x86_64/setjmp.h: Likewise.
18118
18119 * include/grub/x86_64/time.h: Likewise.
18120
18121 * include/grub/x86_64/types.h: Likewise.
18122
18123 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
18124 GRUB_TARGET_SIZEOF_VOID_P.
18125
18126 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
18127 (grub_efi_locate_handle): Likewise.
18128 (grub_efi_open_protocol): Likewise.
18129 (grub_efi_set_text_mode): Likewise.
18130 (grub_efi_stall): Likewise.
18131 (grub_exit): Likewise.
18132 (grub_reboot): Likewise.
18133 (grub_halt): Likewise.
18134 (grub_efi_exit_boot_services): Likewise.
18135 (grub_get_rtc): Likewise.
18136
18137 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
18138 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
18139 (grub_efi_allocate_pages): Wrap efi calls.
18140 (grub_efi_free_pages): Wrap efi calls.
18141 (grub_efi_get_memory_map): Wrap efi calls.
18142
18143 * kern/x86_64/dl.c: New file.
18144
18145 * kern/x86_64/efi/callwrap.S: Likewise.
18146
18147 * kern/x86_64/efi/startup.S: Likewise.
18148
18149 * loader/efi/appleloader.c: Likewise.
18150
18151 * loader/efi/chainloader.c (cmdline): New variable.
18152 (grub_chainloader_unload): Wrap efi calls.
18153 (grub_chainloader_boot): Likewise.
18154 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
18155 command line.
18156
18157 * loader/efi/chainloader_normal.c (chainloader_command):
18158 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
18159 command line.
18160
18161 * loader/i386/efi/linux.c (allocate_pages): Change allocation
18162 method.
18163 (grub_e820_add_region): New function.
18164 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
18165 booting.
18166 (grub_find_video_card): New function.
18167 (grub_linux_setup_video): New function.
18168 (grub_rescue_cmd_linux): Probe for video information.
18169
18170 * normal/x86_64/setjmp.S: New file.
18171
18172 * term/efi/console.c (map_char): New function.
18173 (grub_console_putchar): Map unicode char.
18174 (grub_console_checkkey): Wrap efi calls.
18175 (grub_console_getkey): Likewise.
18176 (grub_console_getwh): Likewise.
18177 (grub_console_gotoxy): Likewise.
18178 (grub_console_cls): Likewise.
18179 (grub_console_setcolorstate): Likewise.
18180 (grub_console_setcursor): Likewise.
18181
18182 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
18183
59652a20 181842008-07-16 Pavel Roskin <proski@gnu.org>
18185
ef294055 18186 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
18187 format strings.
18188
59652a20 18189 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
18190 pointer, not an integer. This fixes a warning and prevents
18191 precision loss on 64-bit systems.
18192 (relocate_addresses): Remove unneeded cast.
18193
afc3b5d7 181942008-07-15 Pavel Roskin <proski@gnu.org>
18195
506b2b3e 18196 * kern/i386/ieee1275/init.c: Include grub/cache.h.
18197
62ead89c 18198 * term/ieee1275/ofconsole.c: Disable code unused on i386.
18199
c4cd51d7 18200 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
18201 Fix comparison between signed and unsigned.
18202
0d3d8f28 18203 * include/grub/i386/ieee1275/console.h: Declare
18204 grub_console_init() and grub_console_fini().
18205
8804b286 18206 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
18207 It's empty and unused.
18208
ee01cf35 18209 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
18210 beginning to avoid warnings with some compilers.
18211
afc3b5d7 18212 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
18213 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
18214
e4e8eaa5 182152008-07-14 Pavel Roskin <proski@gnu.org>
18216
407aceb4 18217 * kern/env.c (grub_register_variable_hook): Don't copy empty
18218 string, it leaks memory. Pass "" to grub_env_set(), it should
18219 handle constant strings.
18220
e4e8eaa5 18221 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
18222 * commands/cmp.c (grub_cmd_cmp): Likewise.
18223 * kern/dl.c (grub_dl_flush_cache): Likewise.
18224 (grub_dl_load_core): Likewise.
18225 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
18226 (grub_elf64_load_phdrs): Likewise.
18227
d4e2dad3 182282008-07-13 Pavel Roskin <proski@gnu.org>
18229
18230 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
18231 between signed and unsigned.
18232 (LzmaEnc_Finish): Fix warning about an unused parameter.
18233
aa24b516 182342008-07-13 Bean <bean123ch@gmail.com>
18235
18236 * Makefile.in (enable_lzo): New rule.
18237
18238 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
18239
18240 * configure.ac (ENABLE_LZO): New option --enable-lzo.
18241
18242 * boot/i386/pc/lnxboot.S: #include <config.h>.
18243
18244 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 18245 its value according to the compression algorithm used, lzo or lzma.
aa24b516 18246
18247 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
18248 compression algorithm according to configure macro.
18249
18250 * kern/i386/pc/startup.S (codestart): Likewise.
18251
18252 * kern/i386/pc/lzma_decode.S: New file.
18253
18254 * include/grub/lib/LzFind.h: Likewise.
18255
18256 * include/grub/lib/LzHash.h: Likewise.
18257
18258 * include/grub/lib/LzmaDec.h: Likewise.
18259
18260 * include/grub/lib/LzmaEnc.h: Likewise.
18261
18262 * include/grub/lib/LzmaTypes.h: Likewise.
18263
18264 * lib/LzFind.c: Likewise.
18265
18266 * lib/LzmaDec.c: Likewise.
18267
18268 * lib/LzmaEnc.c: Likewise.
18269
4ae821ac 182702008-07-13 Bean <bean123ch@gmail.com>
18271
18272 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
18273 (grub_ext4_extent_header): New structure.
18274 (grub_ext4_extent): Likewise.
18275 (grub_ext4_extent_idx): Likewise.
18276 (grub_ext4_find_leaf): New function.
18277 (grub_ext2_read_block): Handle extents.
18278
9a745147 182792008-07-12 Robert Millan <rmh@aybabtu.com>
18280
18281 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
18282
d49a4cf6 182832008-07-11 Robert Millan <rmh@aybabtu.com>
18284
18285 * util/grub.d/40_custom.in: New file. Example on how to add custom
18286 entries to /etc/grub.d.
18287 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
18288 40_custom (implicitly, by merging all the grub.d rules).
18289
947414b4 182902008-07-11 Pavel Roskin <proski@gnu.org>
18291
0059cf6f 18292 * commands/read.c (grub_getline): Fix invalid memory access.
18293 Don't add newline to the variable value.
18294
947414b4 18295 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
18296 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
18297 (serial_hw_get_port): Check validity of the port number.
18298 (grub_cmd_serial): Check return value of serial_hw_get_port().
18299
62a02d00 183002008-07-07 Pavel Roskin <proski@gnu.org>
18301
18302 * boot/i386/pc/diskboot.S (notification_string): Replace
18303 "Loading kernel" with just "loading". This is shorter, less
18304 confusing and saves a few bytes for possible future changes.
18305
3e5581b0 183062008-07-05 Pavel Roskin <proski@gnu.org>
18307
ea387a48 18308 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
18309 size for ATAPI devices, they are undefined. Output sector
18310 number in decimal form.
18311
3e5581b0 18312 * disk/ata.c: Use named constants for status bits.
18313
fdecb8fd 183142008-07-04 Pavel Roskin <proski@gnu.org>
18315
bcd35b90 18316 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
18317 grub_addr_t before casting it to the void pointer to fix a
18318 warning. Non-addressable regions are discarded earlier.
18319 (grub_arch_modules_addr): Cast _end to grub_addr_t.
18320 * kern/i386/linuxbios/table.c: Include grub/misc.h.
18321 (check_signature): Don't shadow table_header.
18322 (grub_linuxbios_table_iterate): Cast numeric constants to
18323 grub_linuxbios_table_header_t.
18324 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
18325 grub_stop().
18326
af58ab3d 18327 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
18328 prevent warnings.
18329
1759aa57 18330 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
18331 pointer, which can cause warnings. Support 64-bit addresses.
18332
fdecb8fd 18333 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
18334 of sizeof(long). This fixes PowerPC image generation on x86_64.
18335
8516d2a8 183362008-07-04 Robert Millan <rmh@aybabtu.com>
18337
18338 This fixes a performance issue when pc & gpt partmap iterators
18339 didn't abort iteration even after our hook found what it was
fe987087 18340 looking for (often causing expensive probes of non-existent drives).
8516d2a8 18341
18342 Some callers relied on previous buggy behaviour, since they would
34c44600 18343 raise an error when their own hooks caused early abortion of its
8516d2a8 18344 iteration.
18345
18346 * kern/device.c (grub_device_open): Improve error message.
18347 * disk/lvm.c (grub_lvm_open): Likewise.
18348 * disk/raid.c (grub_raid_open): Likewise.
18349
18350 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
18351 when hook requests it, independently of grub_errno.
18352 (pc_partition_map_probe): Do not fail when find_func() caused
18353 early abortion of pc_partition_map_iterate().
18354
18355 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
18356 when hook requests it, independently of grub_errno.
18357 (gpt_partition_map_probe): Do not fail when find_func() caused
18358 early abortion of gpt_partition_map_iterate().
18359
18360 * kern/partition.c (grub_partition_iterate): Abort parent iteration
18361 when hook requests it, independently of grub_errno. Do not fail when
18362 part_map_iterate_hook() caused early abortion of p->iterate().
18363
18364 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
18365 when grub_partition_iterate() returned with non-zero.
18366
277d0de9 183672008-07-03 Pavel Roskin <proski@gnu.org>
18368
18369 * disk/ata.c (grub_ata_pio_write): Check status before writing,
18370 like we do in grub_ata_pio_read().
18371 (grub_ata_readwrite): Always write individual sectors. Fix the
18372 sector count for the remainder.
18373 (grub_ata_write): Enable writing to ATA devices. Correctly
18374 report error for ATAPI devices.
18375
d4c9b428 183762008-07-02 Pavel Roskin <proski@gnu.org>
18377
e43fc690 18378 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
18379 warning.
18380
f707af42 18381 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
18382 for every read sector, we already increment it for the whole
18383 batch. This fixes reading more than 256 sectors at once.
18384
11e16b15 18385 * util/grub-editenv.c (cmd_info): Cast argument to long
18386 explicitly. ptrdiff_t reduces to int on i386.
18387
cbabfdd4 18388 * util/grub-editenv.c (main): Be specific which parameter is
18389 missing.
18390
b8fbce0a 18391 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
18392 (memdisk): Make memdisk_orig_addr a pointer.
18393
c9c8e606 18394 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
18395 for file offsets, use grub_off_t instead. Fix printf format
18396 warnings.
18397
ca62e598 18398 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
18399 there. Real unexpected warnings should not drown in the noise
18400 about known problems.
18401
ce8d1766 18402 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
18403 grub_disk_addr_t for memory addresses.
18404
00c7a56a 18405 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
18406 explicitly to fix a warning.
18407
08d3ef09 18408 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
18409
cb71ba20 18410 * Makefile.in (MODULE_LDFLAGS): New variable.
18411 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
18412 the linker accepts --build-id=none.
18413 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
18414 MODULE_LDFLAGS.
18415 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
18416
d4c9b428 18417 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
18418 those in Linux XFS code. Provide a way to access 64-bit parent
18419 inode.
18420 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
18421 the end of struct grub_xfs_dir_header.
18422
d4156eee 184232008-07-02 Bean <bean123ch@gmail.com>
18424
18425 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
18426 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
18427 and GRUB_IEEE1275_FLAG_NO_ANSI.
18428
18429 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
18430 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
18431 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
18432
18433 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
18434 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
18435
18436 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
18437 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
18438
18439 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
18440 esc sequence on non ANSI terminal.
18441 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
18442
18443 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
18444 beginning of file.
18445
2270f77b 184462008-07-02 Bean <bean123ch@gmail.com>
18447
18448 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
18449 (grub_editenv_SOURCES): New variable.
18450 (pkglib_MODULES): Add loadenv.mod.
18451 (loadenv_mod_SOURCES): New variable.
18452 (loadenv_mod_CFLAGS): Likewise.
18453 (loadenv_mod_LDFLAGS): Likewise.
18454
18455 * include/grub/envblk.h: New file.
18456
18457 * util/envblk.c: New file.
18458
18459 * util/grub-editenv.c: New file.
18460
18461 * commands/loadenv.c: New file.
18462
0e9e51ec 184632008-07-01 Pavel Roskin <proski@gnu.org>
18464
d89b7634 18465 * include/multiboot2.h (struct multiboot_tag_module): Use char,
18466 not unsigned char. This fixes warnings and is consistent with
18467 other tags.
18468
bf1835b1 18469 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
18470
8222a04b 18471 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
18472
6a42d99d 18473 * term/tparm.c (analyze): Always set *popcount.
18474
10b159d1 18475 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
18476 cast to fix a warning.
18477
b8789f6c 18478 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
18479 cast to suppress a warning.
18480
29d7e38a 18481 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
18482 grub_fshelp_read_file() expects.
18483
f341f669 18484 * fs/fat.c: Fix UUID calculation on big-endian systems. We
18485 write uuid as a 32-bit value in CPU byte order, so declare and
18486 use it as such.
18487
0e9e51ec 18488 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
18489 long if the format specifier expects it.
18490 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
18491 * partmap/pc.c (pc_partition_map_iterate): Likewise.
18492 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
18493 long to fix a warning.
18494 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
18495 grub_dprintf() arguments to fix warnings.
18496
3aefa857 184972008-06-30 Pavel Roskin <proski@gnu.org>
18498
56c7668b 18499 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
18500 install_bsd_part immediately before core.img is embedded or
18501 modified on disk. This fixes core.img verification if core.img
18502 cannot be embedded.
18503
3aefa857 18504 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
18505 core_path to calculate the blocklist.
18506 Patch from Javier Martín <lordhabbit@gmail.com>
18507
5444088d 185082008-06-29 Robert Millan <rmh@aybabtu.com>
18509
18510 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
18511 block to disk block.
18512 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
18513 Patch from Niels Böhm <bitbucket@arcor.de>
18514
674835c8 185152008-06-29 Robert Millan <rmh@aybabtu.com>
18516
18517 * util/update-grub_lib.in (font_path): Search for fonts in
18518 /boot/grub first, which is more likely to be readable (we aren't
18519 deciding where fonts live, just looking for them).
18520
f527dbc8 185212008-06-26 Pavel Roskin <proski@gnu.org>
18522
6c2d8df6 18523 * util/biosdisk.c (read_device_map): Don't leave dead map
18524 entries for devices failing stat() check.
18525
f527dbc8 18526 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
18527 core_path_dev for the core.img path on the target device.
18528
aebe3d13 185292008-06-26 Robert Millan <rmh@aybabtu.com>
18530
18531 * disk/fs_uuid.c: New file.
18532 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
18533 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
18534 (fs_uuid_mod_LDFLAGS): New variables.
18535 * include/grub/disk.h (grub_disk_dev_id): Add
18536 `GRUB_DISK_DEVICE_UUID_ID'.
18537 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
18538 implement iterate().
18539
37aaf354 185402008-06-26 Robert Millan <rmh@aybabtu.com>
18541
18542 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
18543 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
18544 Linux image includes no initrd.
18545
25ff262a 185462008-06-21 Javier Martín <lordhabbit@gmail.com>
18547
18548 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
18549 call to resolve the core image location that effectively appended the
18550 name twice.
18551
76a2bd44 185522008-06-21 Robert Millan <rmh@aybabtu.com>
18553
18554 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
18555 call from here ...
18556
18557 * util/grub.d/10_hurd.in: ... to here ...
18558 * util/grub.d/10_linux.in: ... and here.
18559
650e1c79 185602008-06-19 Robert Millan <rmh@aybabtu.com>
18561
fe987087 18562 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 18563 after it has been set by grub_machine_set_prefix().
18564
6ce63911 185652008-06-19 Robert Millan <rmh@aybabtu.com>
18566
18567 * commands/search.c (search_label, search_fs_uuid, search_file): Print
18568 search result when not saving to variable, not the other way around.
18569 When saving to variable, abort iteration as soon as a match is found.
18570
73940cec 185712008-06-19 Robert Millan <rmh@aybabtu.com>
18572
18573 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
18574 check for partition that provides /boot/grub. Its logic is flawed,
18575 as it prevents prepare_grub_to_access_device() from being called
18576 multiple times.
18577
3c62a39d 185782008-06-19 Robert Millan <rmh@aybabtu.com>
18579
18580 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
18581 "insmod" command directly when abstraction modules are needed,
fe987087 18582 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 18583 since it had already been processed).
18584
47395a42 185852008-06-19 Pavel Roskin <proski@gnu.org>
18586
18587 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
18588 changed. This is needed in case GRUB_LIBDIR changes.
18589 * conf/i386-ieee1275.rmk: Likewise.
18590 * conf/i386-linuxbios.rmk: Likewise.
18591 * conf/i386-pc.rmk: Likewise.
18592 * conf/powerpc-ieee1275.rmk: Likewise.
18593
a145ac2d 185942008-06-18 Pavel Roskin <proski@gnu.org>
18595
18596 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
18597 kernel_elf_symlist.c to symlist.c for consistency with other
18598 architectures. Update all users.
18599 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
18600
7847c51e 186012008-06-18 Robert Millan <rmh@aybabtu.com>
18602
18603 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
18604 it in prefix.
18605
18606 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
18607 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
18608 a RAID device, run setup() for all members independently on whether
18609 LVM abstraction is being used.
18610 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
18611 If grub-mkimage has set `*install_dos_part == -2', don't override this
18612 value.
18613 Perform *install_dos_part adjustments independently on whether
18614 we're embedding or not.
18615 Clarify error message when image is too big for embedding.
18616 Remove duplicate *install_dos_part stanza.
18617
b23e5644 186182008-06-17 Robert Millan <rmh@aybabtu.com>
18619
18620 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
18621 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
18622 variables.
18623 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
18624 values in grub_ofconsole_normal_color and
18625 grub_ofconsole_highlight_color (they're not directly related to
18626 background and foreground).
18627 (grub_ofconsole_setcolorstate): Extract background and foreground
18628 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
18629
0aac2f79 186302008-06-17 Robert Millan <rmh@aybabtu.com>
18631
18632 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
18633 /boot/grub for the check in last commit, not /boot (they could be
18634 different partitions).
18635
3cca7ef3 186362008-06-16 Robert Millan <rmh@aybabtu.com>
18637
18638 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
18639 asked to setup access for the same partition that provides /boot,
18640 don't bother using UUIDs since our root already has the value we
18641 want.
18642
347396d8 186432008-06-16 Robert Millan <rmh@aybabtu.com>
18644
18645 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
18646 I2O devices.
18647 Patch from Sven Mueller <sven@debian.org>.
18648
991477f8 186492008-06-16 Robert Millan <rmh@aybabtu.com>
18650
18651 * util/update-grub.in: Check for $EUID instead of $UID.
18652 Reported by Vincent Zweije.
18653
d31a32a1 186542008-06-16 Bean <bean123ch@gmail.com>
18655
fe987087 18656 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 18657 (grub_ext2_read_block): Likewise.
18658 (grub_ext2_read_inode): Likewise.
18659 (grub_ext2_mount): Likewise.
18660 (grub_ext2_close): Likewise.
18661 (grub_ext3_get_journal): Removed.
18662
fe987087 18663 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 18664 (grub_reiserfs_read_symlink): Likewise.
18665 (grub_reiserfs_mount): Likewise.
18666 (grub_reiserfs_open): Likewise.
18667 (grub_reiserfs_read): Likewise.
18668 (grub_reiserfs_close): Likewise.
18669 (grub_reiserfs_get_journal): Removed.
18670
18671 * fs/fshelp.c (grub_fshelp_read): Removed.
18672 (grub_fshelp_map_block): Likewise.
18673
18674 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
18675 (grub_fshelp_journal): Likewise.
18676 (grub_fshelp_read): Likewise.
18677 (grub_fshelp_map_block): Likewise.
18678
3540a760 186792008-06-16 Pavel Roskin <proski@gnu.org>
18680
18681 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
18682 floating point anymore.
18683 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
18684
95614c84 186852008-06-15 Pavel Roskin <proski@gnu.org>
18686
18687 * commands/ls.c (grub_ls_list_files): Use integer calculations
18688 for human readable format, avoid floating point use.
18689 * kern/misc.c (grub_ftoa): Remove.
18690 (grub_vsprintf): Remove floating point support.
18691
50465dd6 186922008-06-15 Robert Millan <rmh@aybabtu.com>
18693
fe6b695a 18694 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 18695 devices.
18696 Reported by Max Vozeler.
18697
a9207284 186982008-06-15 Robert Millan <rmh@aybabtu.com>
18699
18700 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
18701 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
18702 skipped later.
18703 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
18704 the beginning of the prefix.
18705
18706 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
18707 It is assumed that if we have a memdisk, grub-mkimage has set
18708 grub_prefix to include the "(memdisk)" drive in it.
18709
a7cbd45a 187102008-06-15 Robert Millan <rmh@aybabtu.com>
18711
18712 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
18713 Initialize keyboard controller after registering the terminal, so that
18714 grub_printf() can be called from grub_keyboard_controller_init().
18715
21cf716a 187162008-06-15 Robert Millan <rmh@aybabtu.com>
18717
18718 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
18719 extent-btree which is written as big endian on disk.
18720 Reported by Alain Greppin <al@chilibi.org>.
18721
23a64d8e 187222008-06-14 Robert Millan <rmh@aybabtu.com>
18723
18724 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
18725 * util/i386/pc/grub-install.in (modules): Likewise.
18726
d687651c 187272008-06-13 Pavel Roskin <proski@gnu.org>
18728
18729 * commands/ls.c (grub_ls_list_files): Fix format warnings.
18730
dfe9ddd4 187312008-06-13 Bean <bean123ch@gmail.com>
18732
18733 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
18734
18735 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
18736
18737 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
18738 to indicate sparse block.
18739
16ae7781 187402008-06-12 Pavel Roskin <proski@gnu.org>
18741
e6d1a308 18742 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
18743 number, grub_fshelp_read() does it for us.
18744
16ae7781 18745 * fs/fshelp.c (grub_fshelp_read): New function. Implement
18746 linear disk read with journal translation.
18747 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
18748 * include/grub/fshelp.h: Declare grub_fshelp_read().
18749
40fd3a2b 187502008-06-09 Pavel Roskin <proski@gnu.org>
18751
18752 * fs/minix.c (grub_minix_mount): Handle error reading
18753 superblock.
18754
f5679726 187552008-06-08 Robert Millan <rmh@aybabtu.com>
18756
18757 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
18758 don't append the RAID prefix afterwards.
18759 Reported by Clint Adams.
18760
ce525529 187612008-06-08 Robert Millan <rmh@aybabtu.com>
18762
18763 Based on description from Pavel:
18764 * kern/disk.c (grub_disk_check_range): Rename to ...
18765 (grub_disk_adjust_range): ... this. Add a comment explaining the
18766 tasks performed by this function.
18767
ad4936a0 187682008-06-08 Robert Millan <rmh@aybabtu.com>
18769
18770 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
18771 `num_serial' (for consistency with other variables).
18772 (struct grub_ntfs_data): Add `uuid' member.
18773 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
18774 (grub_ntfs_uuid): New function.
18775 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
18776
dc20b0f9 187772008-06-07 Pavel Roskin <proski@gnu.org>
18778
18779 * util/biosdisk.c (open_device): Revert last change to the
18780 function, it broke installation. The sector needs to be
18781 different dependent on which device is opened.
18782
c5e3cfba 187832008-06-06 Robert Millan <rmh@aybabtu.com>
18784
18785 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
18786 rest of GRUB, and breakage doesn't happen if its value were modified.
18787
18788 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18789 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
18790 a constant (same value).
18791 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
18792 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
18793
26a1f8c4 187942008-06-06 Robert Millan <rmh@aybabtu.com>
18795
18796 * util/biosdisk.c (open_device): Do not modify sector offset when
18797 accessing a partition. kern/disk.c already handles this for us.
18798
25d6b327 187992008-06-06 Robert Millan <rmh@aybabtu.com>
18800
18801 * util/grub-emu.c (grub_machine_init): Move code in this function from
18802 here ...
18803 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
18804 segfault in case grub_printf() is called).
18805
18806 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
18807 grub_probe. Update all users not to explicitly add it again.
18808 (grub_device): New variable; contains corresponding device for grubdir.
18809 (fs_module, partmap_module, devabstraction_module): Pass
18810 `--device ${grub_device}' to grub_probe to avoid traversing /dev
18811 every time.
18812
9ece62fb 188132008-06-05 Robert Millan <rmh@aybabtu.com>
18814
18815 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
18816 is found, print it (same layout as with labels).
18817
1ad36d37 188182008-06-04 Robert Millan <rmh@aybabtu.com>
18819
18820 * util/biosdisk.c (get_drive): Rename to ...
18821 (find_grub_drive): ... this. Update all users.
18822
18823 (get_os_disk): Rename to ...
18824 (convert_system_partition_to_system_disk): ... this. Update all users.
18825
18826 (find_drive): Rename to ...
18827 (find_system_device): ... this. Update all users.
18828
e6a30859 188292008-06-04 Robert Millan <rmh@aybabtu.com>
18830
18831 * util/biosdisk.c (get_os_disk): Handle IDA devices.
18832 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18833 (make_device_map): Likewise.
18834
00c108a4 188352008-06-01 Robert Millan <rmh@aybabtu.com>
18836
18837 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
18838 before dereferencing it.
18839
18840 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
18841 union with fat12/fat16-specific ones. Add some new fields, including
18842 `num_serial' for both versions.
18843 (struct grub_fat_data): Add `uuid' member.
18844 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
18845 names. Initialize `data->uuid' using `num_serial'.
18846 (grub_fat_uuid): New function.
18847 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
18848
18849 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
18850 (grub_reiserfs_uuid): New function.
18851 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
18852 member.
18853
18854 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
18855 (grub_xfs_uuid): New function.
18856 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
18857
1385c5bb 188582008-06-01 Robert Millan <rmh@aybabtu.com>
18859
18860 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
18861 code that is backward compatible with pre-uuid search command.
18862
c682dfd7 188632008-05-31 Robert Millan <rmh@aybabtu.com>
18864
18865 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
18866 floppies after everything else, to ensure floppy drive isn't accessed
18867 unnecessarily (patch from Bean).
18868
b7db5d47 188692008-05-31 Robert Millan <rmh@aybabtu.com>
18870
18871 * commands/search.c (search_label, search_fs_uuid, search_file): Do
18872 not print device names when we were asked to set a variable.
18873
6e037aa9 188742008-05-31 Robert Millan <rmh@aybabtu.com>
18875
18876 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
18877 using "cursor-on" and "cursor-off" commands (understood at least by
18878 the Open Firmware flavour on OLPC).
18879
41305bc8 188802008-05-31 Michael Gorven <michael@gorven.za.net>
18881
18882 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
18883 on and off sequences.
18884
69ba137e 188852008-05-31 Robert Millan <rmh@aybabtu.com>
18886
18887 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
18888 * util/update-grub.in: Likewise.
18889
520ae21b 188902008-05-30 Pavel Roskin <proski@gnu.org>
18891
18892 * util/biosdisk.c (linux_find_partition): Simplify logic and
18893 make the code more universal. Keep special processing for
18894 devfs, but use a simple rule for all other devices. If the
18895 device ends with a number, append 'p' and the partition number.
18896 Otherwise, append only the partition number.
18897
5786569b 188982008-05-30 Robert Millan <rmh@aybabtu.com>
18899
18900 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
18901 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
18902 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
18903 the `root' parameter to Linux.
18904
51500452 189052008-05-30 Robert Millan <rmh@aybabtu.com>
18906
18907 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
18908 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
18909 --fs_uuid with --fs-uuid.
18910 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
18911 all filesystems support them).
18912
811d3878 189132008-05-30 Robert Millan <rmh@aybabtu.com>
18914
18915 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 18916 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 18917
cab63c95 189182008-05-30 Robert Millan <rmh@aybabtu.com>
18919
18920 * util/grub.d/00_header.in: Remove obsolete comment referencing
18921 convert_system_path_to_grub_path().
18922 * util/update-grub.in: Likewise.
18923 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
18924 (convert_system_path_to_grub_path): Add a warning message explaining
18925 that this function is deprecated. Rely on is_path_readable_by_grub()
18926 for the readability checks.
18927 (font_path): Use is_path_readable_by_grub() for the readability
18928 check rather than convert_system_path_to_grub_path().
18929
972e2f7a 189302008-05-30 Robert Millan <rmh@aybabtu.com>
18931
18932 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
18933 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
18934 converting it first.
18935 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
18936 grub.cfg for access to font file, and afterwards call it again to set
18937 the root device.
18938
62191274 189392008-05-30 Robert Millan <rmh@aybabtu.com>
18940
18941 * commands/search.c (options): Add --fs_uuid option.
18942 (search_fs_uuid): New function.
18943 (grub_cmd_search): Fix --set argument passing.
18944 Use search_fs_uuid() when requested via --fs_uuid.
18945 (grub_search_init): Update help message.
18946 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
18947 and redeclare it as an array of 16-bit words.
18948 (grub_ext2_uuid): New function.
18949 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
18950 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
18951 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
18952 (GRUB_DEVICE_BOOT_UUID): New variables.
18953 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
18954 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
18955 whenever possible.
18956 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
18957 just assume `root' variable has the right value.
18958 * util/grub.d/10_linux.in: Likewise.
18959 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
18960 via PRINT_FS_UUID.
18961 (main): Recognise `-t fs_uuid' argument.
18962
01b73ec8 189632008-05-30 Robert Millan <rmh@aybabtu.com>
18964
18965 * util/biosdisk.c (map): Redefine structure to hold information
18966 about GRUB drive name.
fe6b695a 18967 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 18968 drive names.
18969 (call_hook): Remove.
18970 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
18971 member. Assume drive has partitions.
18972 (grub_util_biosdisk_open): Access device names via `.device' struct
18973 member.
18974 (open_device): Likewise.
18975 (find_drive): Likewise.
18976 (read_device_map): Adjust map[] usage to match the new struct
18977 definition. Don't check for duplicates (still possible, but not cheap
18978 anymore).
18979 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
18980 (make_device_name): Remove assumption of BIOS-like drive names.
18981
22f16596 189822008-05-30 Pavel Roskin <proski@gnu.org>
18983
18984 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
18985 compiling execute.c doesn't need grub_script.tab.h anymore.
18986 (normal/command.c_DEPENDENCIES): Likewise.
18987 (normal/function.c_DEPENDENCIES): Likewise.
18988 * conf/i386-ieee1275.rmk: Likewise.
18989 * conf/i386-linuxbios.rmk: Likewise.
18990 * conf/i386-pc.rmk: Likewise.
18991 * conf/powerpc-ieee1275.rmk: Likewise.
18992 * conf/sparc64-ieee1275.rmk: Likewise.
18993
528ad8f2 189942008-05-29 Pavel Roskin <proski@gnu.org>
18995
d1dff95d 18996 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
18997 when scanning metadata for volume group name.
18998
528ad8f2 18999 * include/grub/script.h: Don't include grub_script.tab.h. It's
19000 a generated file, which may only be included from the files with
19001 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
19002 use union YYSTYPE, as the later allows forward declaration.
19003 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
19004
47248e08 190052008-05-29 Robert Millan <rmh@aybabtu.com>
19006
19007 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
19008 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
19009 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
19010 (grub_console_checkkey): Add grub_dprintf() call to report unknown
19011 scan codes.
19012
ee632529 190132008-05-29 Robert Millan <rmh@aybabtu.com>
19014
19015 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
19016 control key combinations.
19017
eee96e08 190182008-05-29 Robert Millan <rmh@aybabtu.com>
19019
19020 * util/powerpc/ieee1275/grub-install.in: Move from here ...
19021 * util/ieee1275/grub-install.in: ... to here.
19022 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
19023 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
19024 (grub_install_SOURCES): Likewise.
19025
da9a6a94 190262008-05-29 Robert Millan <rmh@aybabtu.com>
19027
19028 * fs/affs.c: Update copyright year.
19029 * fs/ext2.c: Likewise.
19030 * fs/fshelp.c: Likewise.
19031 * fs/hfsplus.c: Likewise.
19032 * fs/ntfs.c: Likewise.
19033 * fs/xfs.c: Likewise.
19034 * include/grub/fshelp.h: Likewise.
19035 * util/grub-mkdevicemap.c: Likewise.
19036
12e65f3a 190372008-05-28 Robert Millan <rmh@aybabtu.com>
19038
19039 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
19040 might need to be fatfs to support some firmware implementations
19041 (e.g. OFW or EFI).
19042
23023641 190432008-05-28 Robert Millan <rmh@aybabtu.com>
19044
19045 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
19046 devices.
19047 * util/grub-mkdevicemap.c (get_mmc_disk_name)
19048 (make_device_map): Likewise.
19049
887d2619 190502008-05-20 Bean <bean123ch@gmail.com>
19051
19052 * fs/fshelp.c (grub_fshelp_map_block): New function.
19053 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
19054 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
19055
19056 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
19057 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
19058 (grub_fshelp_journal): New structure.
19059 (grub_fshelp_map_block): New function prototype.
19060 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
19061 (grub_fshelp_map_block): Likewise.
19062
19063 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
19064 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
19065 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
19066 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
19067 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
19068 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
19069 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
19070 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
19071 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
19072 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
19073 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
19074 (grub_ext2_sblock): New members for journal support.
19075 (grub_ext3_journal_header): New structure.
19076 (grub_ext3_journal_revoke_header): Likewise.
19077 (grub_ext3_journal_block_tag): Likewise.
19078 (grub_ext3_journal_sblock): Likewise.
19079 (grub_fshelp_node): New members logfile and journal.
19080 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
19081 grub_fshelp_map_block to get real block number.
19082 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
19083 number.
19084 (grub_ext2_read_inode): Likewise.
19085 (grub_ext3_get_journal): New function.
19086 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
19087 (grub_ext2_close): Release memory used by journal.
19088
19089 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
19090 (REISERFS_MAGIC_DESC_BLOCK): New macro.
19091 (grub_reiserfs_transaction_header): Renamed to
19092 grub_reiserfs_description_block, replace field data with real_blocks.
19093 (grub_reiserfs_commit_block): New structure.
19094 (grub_reiserfs_data): New member journal.
19095 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
19096 number.
19097 (grub_reiserfs_read_symlink): Likewise.
19098 (grub_reiserfs_iterate_dir): Likewise.
19099 (grub_reiserfs_open): Likewise.
19100 (grub_reiserfs_read): Likewise.
19101 (grub_reiserfs_get_journal): New function.
19102 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
19103 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
19104 using grub_reiserfs_get_journal.
19105 (grub_reiserfs_close): Release memory used by journal.
19106
19107 * fs/affs.c (grub_affs_read_block): Change block type to
19108 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
19109
19110 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
19111
19112 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
19113
19114 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
19115
19116 * fs/udf.c (grub_udf_read_block): Change block type to
19117 grub_disk_addr_t. Use type cast to avoid warning.
19118
19119 * fs/xfs.c (grub_xfs_read_block): Likewise.
19120
b7c6bed5 191212008-05-16 Christian Franke <franke@computer.org>
19122
19123 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
19124 to ensure that break with ESC will always work.
19125 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
19126 Remove ESC from keyboard queue.
19127
eedf167f 191282008-05-16 Christian Franke <franke@computer.org>
19129
19130 * util/biosdisk.c: [__CYGWIN__] Add includes.
19131 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
19132 (get_os_disk): Move variable declarations to OS specific
19133 parts to avoid warning.
19134 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
19135 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
19136 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
19137 Cygwin.
19138 * util/getroot.c: [__CYGWIN__] Add includes.
19139 (strip_extra_slashes): Fix "/" case.
19140 [__CYGWIN__] (get_win32_path): New function.
19141 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
19142 [__CYGWIN__] (find_root_device): Disable.
19143 [__CYGWIN__] (get_bootsec_serial): New function.
19144 [__CYGWIN__] (find_cygwin_root_device): Likewise.
19145 [__linux__] (grub_guess_root_device): Add early returns to simplify
19146 structure.
19147 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
19148 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
19149 check for Linux only.
19150
a079699e 191512008-05-15 Bean <bean123ch@gmail.com>
19152
19153 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
19154 keyboard hang problem in apple's intel mac.
19155
1cf4059a 191562008-05-09 Robert Millan <rmh@aybabtu.com>
19157
19158 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
19159 devices.
19160 * util/grub-mkdevicemap.c (get_virtio_disk_name)
19161 (make_device_map): Likewise.
19162 Reported by Aurelien Jarno <aurel32@debian.org>
19163
ed759390 191642008-05-07 Ian Campbell <ijc@hellion.org.uk>
19165
19166 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
19167 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
19168 (make_device_map): Output entries for xvd type disks.
19169
b56c4eaa 191702008-05-07 Robert Millan <rmh@aybabtu.com>
19171
19172 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
19173 devices.
19174 * util/grub-mkdevicemap.c (get_cciss_disk_name)
19175 (make_device_map): Likewise.
19176 Reported by Roland Dreier <rdreier@cisco.com>
19177
7f8866ed 191782008-05-07 Robert Millan <rmh@aybabtu.com>
19179
19180 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
19181 grub_strstr() call. Correct a few mistakes in failure path handling.
19182
b0346e0f 191832008-05-06 Robert Millan <rmh@aybabtu.com>
19184
19185 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
19186 Do not print a trailing slash (therefore, the root directory is an
19187 empty string).
19188 (convert_system_path_to_grub_path): Do not remove trailing slash
19189 from make_system_path_relative_to_its_root() output.
19190
19191 * util/i386/pc/grub-install.in: Add trailing slash to output from
19192 make_system_path_relative_to_its_root().
19193
6cf12cbd 191942008-05-06 Robert Millan <rmh@aybabtu.com>
19195
19196 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
19197 ensures that output lines aren't intermangled with those sent to
19198 stderr (via grub_util_info()).
19199 * util/grub-probe.c (grub_refresh): Likewise.
19200 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
19201
0fbb3117 192022008-05-05 Christian Franke <franke@computer.org>
19203
19204 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
19205 Add Cygwin device names.
19206 (get_ide_disk_name) [__CYGWIN__]: Likewise.
19207 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
19208 (check_device): Return error instead of success on empty name.
19209 (make_device_map): Move label inside linux specific code to
19210 prevent compiler warning.
19211
8124cdb7 192122008-04-30 Robert Millan <rmh@aybabtu.com>
19213
19214 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
19215 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
19216 first boot option.
19217 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
19218
094c01d0 192192008-04-29 Robert Millan <rmh@aybabtu.com>
19220
19221 * docs/grub.cfg: New file (example GRUB configuration).
19222
f4b1fc02 192232008-04-26 Robert Millan <rmh@aybabtu.com>
19224
329ce2a5 19225 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
19226 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
19227 and `disk/ieee1275/nand.c'.
f4b1fc02 19228
25f16ec1 192292008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 19230
25f16ec1 19231 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
19232 i386-linuxbios.
19233
19234 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
19235 change the buffer size to 4096 for cdrom device.
19236
19237 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
19238 and nand.mod.
19239 (_linux_mod_SOURCES): New variable.
19240 (_linux_mod_CFLAGS): Likewise.
19241 (_linux_mod_LDFLAGS): Likewise.
19242 (linux_mod_SOURCES): Likewise.
19243 (linux_mod_CFLAGS): Likewise.
19244 (linux_mod_LDFLAGS): Likewise.
19245 (nand_mod_SOURCES): Likewise.
19246 (nand_mod_CFLAGS): Likewise.
19247 (nand_mod_LDFLAGS): Likewise.
19248
19249 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
19250 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
19251 type property. (nand device in olpc don't have this property)
19252
19253 * include/grub/disk.h (grub_disk_dev_id): New macro
19254 GRUB_DISK_DEVICE_NAND_ID.
19255
19256 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
19257 function prototype.
19258 (grub_rescue_cmd_initrd): Likewise.
19259
19260 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
19261 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
19262 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 19263
25f16ec1 19264 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
19265 GRUB_MACHINE_IEEE1275 is defined.
19266
19267 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
19268 Use NESTED_FUNC_ATTR attribute on the hook parameter.
19269
19270 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
19271 on nested function heap_init.
19272 (grub_upper_mem): New variable for i386-ieee1275.
19273 (grub_get_extended_memory): New function for i386-ieee1275.
19274 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
19275
19276 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
19277 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
19278 property.
f19dbdb7 19279
25f16ec1 19280 * loader/i386/ieee1275/linux.c: New file.
19281
19282 * loader/i386/ieee1275/linux_normal.c: New file.
19283
19284 * disk/ieee1275/nand.c: New file.
19285
e89d61e9 192862008-04-18 Thomas Schwinge <tschwinge@gnu.org>
19287
19288 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
19289 value.
19290 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
19291
602566f6 192922008-04-18 Robert Millan <rmh@aybabtu.com>
19293
19294 Restructures early code path on ieee1275 to unify grub_main() as
19295 the first C function that is executed in every platform.
19296
19297 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
19298 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
19299 cmain().
19300 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
19301 * kern/ieee1275/cmain.c (cmain): Rename to ...
19302 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
19303 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
19304 at the beginning.
19305
57490c2b 193062008-04-18 Robert Millan <rmh@aybabtu.com>
19307
19308 * util/update-grub.in: Fix syntax error when setting
19309 `GRUB_PRELOAD_MODULES'.
19310 Reported by Stephane Chazelas <stephane@artesyncp.com>
19311
1977517d 193122008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
19313
19314 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
19315 section into account, newer toolchains generate unique build ids
19316 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 19317 we want build ids to be preserved
1977517d 19318 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
19319 far from other sections don't cause the raw binary images grow
19320 size
19321
bfb1f1a2 193222008-04-15 Robert Millan <rmh@aybabtu.com>
19323
19324 * disk/lvm.c: Update copyright year.
19325 * kern/misc.c: Likewise.
19326
01979850 193272008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
19328
19329 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 19330 there is no memory left for physical volume name.
01979850 19331
0a1150e2 193322008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
19333
19334 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
19335 volume name mapping to support bigger than 9 character names properly.
19336
82ead3fe 193372008-04-13 Robert Millan <rmh@aybabtu.com>
19338
19339 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
19340 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
19341
e54a72f5 193422008-04-13 Christian Franke <franke@computer.org>
19343
19344 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
19345 to create a floppy emulation boot CD when non emulation mode
19346 does not work.
19347 Enable Joliet CD filesystem extension.
19348
9fe86034 193492008-04-13 Robert Millan <rmh@aybabtu.com>
19350
19351 * kern/misc.c (grub_strncat): Fix off-by-one error.
19352 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
19353
19354 * kern/env.c (grub_env_context_close): Clear current context, not
19355 previous one.
19356 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
19357
19358 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
19359
7ceeee39 193602008-04-13 Robert Millan <rmh@aybabtu.com>
19361
19362 Improve robustness when handling LVM.
19363
19364 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 19365 (and leave `*p' unmodified).
7ceeee39 19366 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
19367 through it.
19368 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
19369 iterating through it.
19370 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
19371 through it.
fe6b695a 19372 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 19373 when due) on each grub_lvm_getvalue() or grub_strstr() call.
19374 Don't assume `vg->pvs != NULL' when iterating through it.
19375
58cd3d85 193762008-04-13 Robert Millan <rmh@aybabtu.com>
19377
19378 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
19379 * genmk.rb (partmap): New variable.
19380 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
19381 (#{partmap}): New target rule.
19382 * genpartmaplist.sh: New file.
19383 * Makefile.in (pkglib_DATA): Add partmap.lst.
19384 (partmap.lst): New target rule.
19385 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
19386 modules (including all partition maps), instead of preloading them.
19387
78b51059 193882007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
19389
19390 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
19391 `linux-boot-prober' (if installed) to detect other operating
19392 systems which are installed on the computer and add them to
19393 the boot menu.
19394 * conf/common.rmk: Build and install 30_os-prober.
19395
a91627b4 193962008-04-12 Robert Millan <rmh@aybabtu.com>
19397
19398 * kern/powerpc/ieee1275/init.c: Move from here ...
19399 * kern/ieee1275/init.c: ... to here. Update all users.
19400
19401 * kern/powerpc/ieee1275/cmain.c: Move from here ...
19402 * kern/ieee1275/cmain.c: ... to here. Update all users.
19403
19404 * kern/powerpc/ieee1275/openfw.c: Move from here ...
19405 * kern/ieee1275/openfw.c: ... to here. Update all users.
19406
19407 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
19408 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
19409
322562ea 194102008-04-10 Pavel Roskin <proski@gnu.org>
19411
19412 * configure.ac: Always use "_cv_" in cache variables for
19413 compatibility with Autoconf 2.62.
19414
a02a73c5 194152008-04-07 Robert Millan <rmh@aybabtu.com>
19416
19417 Revert grub/machine/init.h addition by Pavel (since it breaks on
19418 i386-ieee1275 and others):
19419 * util/i386/pc/misc.c: Remove grub/machine/init.h.
19420 * util/powerpc/ieee1275/misc.c: Likewise.
19421
25c024b1 194222008-04-07 Robert Millan <rmh@aybabtu.com>
19423
19424 * util/grub-probe.c (probe): Improve error message.
19425
3cbd2f98 194262008-04-07 Robert Millan <rmh@aybabtu.com>
19427
19428 * util/biosdisk.c (read_device_map): Skip devices that don't exist
19429 (this prevents the presence of a bogus entry from ruining the whole
19430 thing).
19431
87a297bf 194322008-04-06 Pavel Roskin <proski@gnu.org>
19433
36747a62 19434 * util/biosdisk.c: Include grub/util/biosdisk.h.
19435 * util/grub-fstest.c (execute_command): Make static.
19436 * util/grub-mkdevicemap.c (check_device): Likewise.
19437 * util/i386/pc/misc.c: Include grub/machine/init.h.
19438 * util/powerpc/ieee1275/misc.c: Likewise.
19439 * util/lvm.c: Include grub/util/lvm.h.
19440 * util/misc.c: Include grub/kernel.h, grub/misc.h and
19441 grub/cache.h.
19442 * util/raid.c: Include grub/util/raid.h.
19443 (grub_util_getdiskname): Make static.
19444
87a297bf 19445 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
19446 grub_hostfs_fini(), as they are called from grub_init_all() and
19447 grub_fini_all() respectively. This fixes an infinite loop in
19448 grub-fstest due to double registration of hostfs.
19449 Reported by Christian Franke <Christian.Franke@t-online.de>
19450
f6ce7629 194512008-04-05 Pavel Roskin <proski@gnu.org>
19452
19453 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
19454 all 8 functions. Otherwise, probe function 0 only.
19455
070e49e4 194562008-04-04 Pavel Roskin <proski@gnu.org>
19457
8b088a4c 19458 * commands/lspci.c (grub_lspci_iter): Print the bus number
19459 correctly.
19460
4f657021 19461 * commands/lspci.c (grub_pci_classes): Fix typos.
19462 (grub_lspci_iter): Don't print func twice. Print vendor ID
19463 before device ID, as it's normally done.
19464
070e49e4 19465 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
19466 Fix signedness warnings.
19467 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
19468 Likewise.
19469 * util/ieee1275/get_disk_name.c: Include config.h so that
19470 _GNU_SOURCE is defined and getline() is declared. Mark an
19471 unused argument as such. Fix a signedness warning.
19472
ba7328dc 194732008-04-02 Pavel Roskin <proski@gnu.org>
19474
26887f22 19475 * genkernsyms.sh.in: Use more robust assignments for CC and
19476 srcdir. Quote srcdir.
19477 * gensymlist.sh.in: Likewise. Assert at the compile time that
19478 the symbol table is not empty.
19479
ba7328dc 19480 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
19481 * fs/cpio.c (grub_cpio_read): Likewise.
19482
0f582c6b 194832008-04-01 Pavel Roskin <proski@gnu.org>
19484
4b6e1995 19485 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
19486 * disk/host.c (grub_host_open): Likewise.
19487 * disk/loopback.c (grub_loopback_open): Likewise.
19488 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
19489 disk->id as in disk/host.c, not a multi-character constant.
19490
828a2768 19491 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
19492 later is obsolete, potentially dangerous and sets a bad example.
19493 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
19494 * util/misc.c (grub_util_get_image_size): Likewise.
19495
2bb4fb47 19496 * disk/loopback.c (options): Improve help for "--partitions".
19497
0f582c6b 19498 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
19499 options to align them with the short options, e.g. "echo -e".
19500
a33224e0 195012008-03-31 Bean <bean123ch@gmail.com>
19502
19503 * video/reader/png.c (grub_png_data): New member is_16bit and
19504 image_data.
19505 (grub_png_decode_image_header): Detect 16 bit png image.
19506 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
19507 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
19508 (grub_video_reader_png): Release memory occupied by image_data.
19509
19510 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
19511 4096 bytes.
19512 (grub_nfs_mount): Skip the test for sector per cluster.
19513
19514 * include/grub/ntfs.h (MAX_SPC): Removed.
19515
86cb4f54 195162008-03-31 Bean <bean123ch@gmail.com>
19517
19518 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
19519 (grub_probe_SOURCES): Add fs/afs.c.
19520 (grub_fstest_SOURCES): Likewise.
19521 (afs_mod_SOURCES): New variable.
19522 (afs_mod_CFLAGS): Likewise.
19523 (afs_mod_LDFLAGS): Likewise.
19524
19525 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
19526 (grub_emu_SOURCES): Likewise.
19527
19528 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19529
19530 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19531
19532 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19533
19534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19535
19536 * fs/afs.c: New file.
19537
17c74c21 195382008-03-30 Pavel Roskin <proski@gnu.org>
19539
4cb68e89 19540 * disk/host.c: Include grub/misc.h to fix a warning.
19541 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
19542 warnings about implicit declarations.
19543
8790bb04 19544 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
19545 variable.
19546 * include/grub/i386/loader.h: Change declaration of
19547 grub_linux_boot() to match what grub_loader_set() expects.
19548 * util/getroot.c (grub_guess_root_device): Return const char* to
19549 fix a warning.
19550 * util/grub-probe.c (probe): Fix a warning about uninitialized
19551 abstraction_name variable.
19552 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
19553 second argument as unused to fix a warning.
19554
9a3f3296 19555 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
19556 missing grub_error() call.
19557
0ecef90d 19558 * util/update-grub_lib.in: Define datarootdir, since Autoconf
19559 2.60 and newer uses it to define datadir.
19560
0bf6d401 19561 * commands/sleep.c: Fix warning about implicit declaration.
19562 * disk/memdisk.c: Likewise.
19563 * loader/aout.c: Likewise.
19564 * loader/i386/bsd_normal.c: Likewise.
19565 * util/grub-probe.c: Likewise.
19566
7cdacf97 19567 * commands/i386/cpuid.c (has_longmode): Make static.
19568 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
19569 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
19570
17c74c21 19571 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
19572 GDT. This is more robust, as %ds can change.
19573 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
19574 calling real_to_prot().
19575 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
19576
80a3e68b 195772008-03-28 Pavel Roskin <proski@gnu.org>
19578
19579 * kern/i386/pc/startup.S: Assert that uncompressed functions
19580 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
19581 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
19582 code, as they push parts of the code (error handlers) beyond
19583 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
19584 code as correctness and size.
19585
77bcd272 195862008-03-28 Pavel Roskin <proski@gnu.org>
19587
19588 * kern/i386/pc/startup.S
19589 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
19590 data block address to the real mode, keep offset minimal. This
19591 works around a bug in AWARD BIOS on old Athlon systems, which
19592 makes CD detection hang.
19593
c5dfd43b 195942008-03-26 Pavel Roskin <proski@gnu.org>
19595
19596 * normal/color.c (grub_parse_color_name_pair): Make `name' a
19597 const.
19598 * include/grub/normal.h: Add grub_parse_color_name_pair()
19599 declaration.
19600
bf962df2 196012008-03-24 Bean <bean123ch@gmail.com>
19602
19603 * disk/i386/pc/biosdisk.c (cd_start): Removed.
19604 (cd_count): Removed.
19605 (cd_drive): New variable.
19606 (grub_biosdisk_get_drive): Don't check for (cdN) device.
19607 (grub_biosdisk_call_hook): Likewise.
19608 (grub_biosdisk_iterate): Change cdrom detection method.
19609 (grub_biosdisk_open): Replace cd_start with cd_drive.
19610 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
19611 detect cdrom device.
19612
19613 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
19614 Removed.
19615 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
19616 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
19617 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
19618 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
19619 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
19620 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
19621 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
19622 (grub_biosdisk_cdrp): New structure.
19623 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
19624
19625 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
19626
19627 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
19628 device.
19629
19630 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
19631 New function.
19632
68e7fc7a 196332008-03-20 Robert Millan <rmh@aybabtu.com>
19634
19635 Remove 2 TiB limit in ata.mod.
19636 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
19637 (grub_ata_dumpinfo): Print sector count with 0x%llx.
19638 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
19639 grub_uint64_t instead of grub_uint32_t.
19640
38ad2cf5 196412008-03-05 Bean <bean123ch@gmail.com>
19642
19643 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
19644 (grub_multiboot): Set boot device.
19645
19646 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
19647
2b89344e 196482008-03-02 Bean <bean123ch@gmail.com>
19649
19650 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
19651 symlink_buffer.
19652
87a95d1f 196532008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
19654
19655 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
19656 texinfo.tex.
19657
19658 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
19659 modified.
19660
19661 * docs/fdl.texi: New file.
f19dbdb7 19662
87a95d1f 19663 * docs/mdate-sh: New file. Copied from gnulib.
19664 * docs/texinfo.tex: Likewise.
19665
19666 * config.guess: Updated from gnulib.
19667 * install-sh: Likewise.
19668
7dc15d8e 196692008-02-28 Robert Millan <rmh@aybabtu.com>
19670
19671 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
19672 (aout_mod_SOURCES): New variable.
19673 (aout_mod_CFLAGS): Likewise.
19674 (aout_mod_LDFLAGS): Likewise.
19675
19676 * conf/i386-ieee1275.rmk: Likewise.
19677
b00ab696 196782008-02-28 Robert Millan <rmh@aybabtu.com>
19679
19680 * util/update-grub.in: Reorganise terminal validity check. Accept
19681 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
19682 Based on suggestion by Franklin PIAT.
19683
79ca2d78 196842008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
19685
19686 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
19687 function.
19688 * util/getroot.c (grub_util_check_block_device): New function that
19689 returns the given argument if it is a block device and returns NULL else.
19690 * util/grub-probe.c (argument_is_device): New variable.
19691 (probe): Promote device_name from a variable to an argument. Receive
19692 device_name from grub_util_check_block_device() if path is NULL and from
19693 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 19694 (options): Introduce new parameter '-d, --device'.
79ca2d78 19695 (main): Add description of the new parameter to the help screen.
19696 Rename path variable to argument. Set argument_is_device if the '-d'
19697 option is given. Pass argument to probe() depending on
19698 argument_is_device.
19699
0d16e571 197002008-02-24 Bean <bean123ch@gmail.com>
19701
19702 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
19703 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
19704 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
19705 (GRUB_ISO9660_VOLDESC_PART): Likewise.
19706 (GRUB_ISO9660_VOLDESC_END): Likewise.
19707 (grub_iso9660_primary_voldesc): New member escape.
19708 (grub_iso9660_data): New member joliet.
19709 (grub_iso9660_convert_string): New function.
19710 (grub_iso9660_mount): Detect joliet extension.
19711 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
19712 (grub_iso9660_iso9660_label): Likewise.
19713
19714 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
19715 (grub_setup_SOURCES): Add fs/udf.c.
19716 (grub_fstest_SOURCES): Likewise.
19717 (udf_mod_SOURCES): New variable.
19718 (udf_mod_CFLAGS): Likewise.
19719 (udf_mod_LDFLAGS): Likewise.
19720
19721 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
19722 (grub_emu_SOURCES): Likewise.
19723
19724 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19725
19726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19727
19728 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19729
19730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19731
19732 * fs/udf.c: New file.
19733
8a594a17 197342008-02-24 Robert Millan <rmh@aybabtu.com>
19735
19736 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
19737 (normal/lexer.c_DEPENDENCIES): New variables.
19738 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
19739 (normal/lexer.c_DEPENDENCIES): Likewise.
19740 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
19741 (normal/lexer.c_DEPENDENCIES): Likewise.
19742 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
19743 (normal/lexer.c_DEPENDENCIES): Likewise.
19744 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
19745 (normal/lexer.c_DEPENDENCIES): Likewise.
19746 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
19747 (normal/lexer.c_DEPENDENCIES): Likewise.
19748
2dc33c03 197492008-02-23 Robert Millan <rmh@aybabtu.com>
19750
19751 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
19752 since they were intended to be in hex. This didn't break previously
19753 because of a bug in gpt_partition_map_iterate() (see below).
19754
19755 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
19756 when checking the validity of GPT header.
19757 Remove `partno', since it always provides the same information as `i'.
19758
f6f4cfb0 197592008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
19760
19761 * include/grub/efi/time.h: Fix a wrong comment.
19762
79ff665f 197632008-02-19 Pavel Roskin <proski@gnu.org>
19764
19765 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
19766 message.
19767
d38e24c2 197682008-02-19 Bean <bean123ch@gmail.com>
19769
19770 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
19771 (aout_mod_SOURCES): New variable.
19772 (aout_mod_CFLAGS): Likewise.
19773 (aout_mod_LDFLAGS): Likewise.
19774 (_bsd_mod_SOURCES): New variable.
19775 (_bsd_mod_CFLAGS): Likewise.
19776 (_bsd_mod_LDFLAGS): Likewise.
19777 (bsd_mod_SOURCES): New variable.
19778 (bsd_mod_CFLAGS): Likewise.
19779 (bsd_mod_LDFLAGS): Likewise.
19780
19781 * include/grub/aout.h: New file.
19782
19783 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
19784
19785 * include/grub/i386/bsd.h: New file.
19786
19787 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
19788 to make it public.
19789
19790 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
19791 function is called, so that it's possible to change it inside the hook.
19792 (grub_elf64_load): Likewise.
19793 (grub_elf_file): Don't close the file if elf header is not found.
19794 (grub_elf_close): Close the file if grub_elf_file fails (The new
19795 grub_elf_file won't close it).
19796 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
19797 (grub_elf64_size): Likewise.
19798
19799 * kern/i386/loader.S (grub_unix_real_boot): New function.
19800
19801 * loader/aout.c: New file.
19802
19803 * loader/i386/bsd.c: New file.
19804
19805 * loader/i386/bsd_normal.c: New file.
19806
19807 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
19808
19809 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 19810 can test other formats.
d38e24c2 19811
b93bdb0f 198122008-02-19 Robert Millan <rmh@aybabtu.com>
19813
19814 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
19815 (grub_gpt_partition_type_empty): Redefine with macro from
19816 `<grub/gpt_partition.h>'.
19817 (gpt_partition_map_iterate): Adjust partition type comparison.
19818
19819 Export `entry' as partmap-specific `part.data' struct.
19820 (grub_gpt_header, grub_gpt_partentry): Move from here ...
19821
19822 * include/grub/gpt_partition.h (grub_gpt_header)
19823 (grub_gpt_partentry): ... to here (new file).
19824
19825 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
19826
19827 (grub_gpt_partition_type_bios_boot): New const variable, defined
19828 with macro from `<grub/gpt_partition.h>'.
19829
19830 (setup): Replace `first_start' with `embed_region', which keeps
19831 track of the embed region (and is partmap-agnostic).
19832
19833 Replace find_first_partition_start() with find_usable_region(),
19834 which finds a usable region for embedding using partmap-specific
19835 knowledge (supports PC/MSDOS and GPT).
19836
19837 Fix all assumptions that the embed region start at sector 1, using
19838 `embed_region.start' from now on. Similarly, use `embed_region.end'
19839 rather than `first_start' to calculate available size.
19840
19841 In grub_util_info() message, replace "into after the MBR" with an
19842 indication of the specific sector our embed region starts at.
19843
66cb40f6 198442008-02-19 Robert Millan <rmh@aybabtu.com>
19845
19846 * DISTLIST: Replace `commands/ieee1275/halt.c' and
19847 `commands/ieee1275/reboot.c' with `commands/halt.c' and
19848 `commands/reboot.c'.
19849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19850 (halt_mod_SOURCES): Likewise.
19851 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19852 (halt_mod_SOURCES): Likewise.
19853
b7202015 198542008-02-17 Christian Franke <franke@computer.org>
19855
19856 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
19857
32b0fc49 198582008-02-17 Robert Millan <rmh@aybabtu.com>
19859
19860 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19861 set `first_start' to 0 for non-PC/MSDOS partition maps.
19862
aca63502 198632008-02-16 Robert Millan <rmh@aybabtu.com>
19864
19865 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19866 do not assume partition map is PC/MSDOS before performing checks that
19867 are specific to that layout.
19868
0de8be86 198692008-02-13 Robert Millan <rmh@aybabtu.com>
19870
19871 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
19872 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
19873 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
19874
c3db8364 198752008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
19876
19877 * configure.ac: Only a cosmetic change on the handling of
19878 -fno-stack-protector.
19879
f714229e 198802008-02-12 Alexandre Boeglin <alex@boeglin.org>
19881
c3db8364 19882 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
19883 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
19884 reboot.c.
f714229e 19885 (grub_install_SOURCES): Add halt.mod and reboot.mod.
19886 (halt_mod_SOURCES): New variable.
19887 (halt_mod_CFLAGS): Likewise.
19888 (halt_mod_LDFLAGS): Likewise.
19889 (reboot_mod_SOURCES): Likewise.
19890 (reboot_mod_CFLAGS): Likewise.
19891 (reboot_mod_LDFLAGS): Likewise.
19892
c3db8364 19893 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
19894 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
19895 reboot.c.
f714229e 19896 (halt_mod_SOURCES): Likewise.
19897 (reboot_mod_SOURCES): Likewise.
19898
c3db8364 19899 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
19900 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 19901 (reboot_mod_SOURCES): Likewise.
19902
19903 * commands/i386/pc/reboot.c: merge this file ...
19904
19905 * commands/ieee1275/reboot.c: ... and this file ...
19906
19907 * commands/reboot.c: ... to this file.
c3db8364 19908 Add some precompiler directive to include the correct header for
19909 each machine.
f714229e 19910
19911 * commands/ieee1275/halt.c: move this file ...
19912
19913 * commands/halt.c: ... to here.
c3db8364 19914 Add some precompiler directive to include the correct header for
19915 each machine.
f714229e 19916
19917 * include/grub/efi/efi.h (grub_reboot): New function declaration.
19918 (grub_halt): Likewise.
19919
19920 * kern/efi/efi.c (grub_reboot): New function.
19921 (grub_halt): Likewise.
19922
c74493e0 199232008-02-12 Robert Millan <rmh@aybabtu.com>
19924
19925 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
19926 /dev (like it is done for /dev/mapper). This doesn't provide support
19927 for EVMS, but at least it is now easy to identify the problem when it
19928 arises.
19929
d0db4b04 199302008-02-11 Robert Millan <rmh@aybabtu.com>
19931
19932 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
19933 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
19934 comparing it with -1, not 0.
19935
bf748642 199362008-02-10 Robert Millan <rmh@aybabtu.com>
19937
19938 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
19939 `disk/lvm.c'.
19940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19941 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19942
19943 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
19944 `disk/lvm.c' to the end of the list.
19945 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19946 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19947
b5db202a 199482008-02-10 Robert Millan <rmh@aybabtu.com>
19949
19950 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
19951 grub_print_error() instead. This will let user know why we're entering
19952 rescue mode.
19953 Based on suggestions from Sam Morris.
19954
83abee31 199552008-02-10 Alexandre Boeglin <alex@boeglin.org>
19956
19957 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
19958 on remaining N args, instead of "--" arg N times.
19959
78d5a08b 199602008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
19961
19962 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
19963 (fill_with_default_glyph): Changed to use unknown_glyph for fill
19964 pattern for unknown glyphs.
19965
68807e5f 199662008-02-09 Robert Millan <rmh@aybabtu.com>
19967
19968 * configure.ac: Probe for `help2man'.
19969 * Makefile.in (builddir): New variable.
19970 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
19971 or otherwise add a few flags/options to it.
19972 (install-local): For every executable utility or script that is
19973 installed, invoke $(HELP2MAN) to install a manpage based on --help
19974 output.
19975
19976 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
19977 that it doesn't prevent --help from working in build tree.
19978
19979 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
19980 with `bug-grub@gnu.org'.
19981 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
19982 * util/update-grub.in (usage): New function.
19983 Implement proper argument check, with support for --help and --version
19984 (as well as existing -y).
19985
199862008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 19987
19988 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
19989 avoid overwriting previous output.
19990 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
19991
c1962162 199922008-02-09 Robert Millan <rmh@aybabtu.com>
19993
19994 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
19995 drawing the menu.
19996
3dac2e3f 199972008-02-09 Robert Millan <rmh@aybabtu.com>
19998
19999 * commands/sleep.c: New file.
20000 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
20001 (sleep_mod_SOURCES): New variable.
20002 (sleep_mod_CFLAGS): Likewise.
20003 (sleep_mod_LDFLAGS): Likewise.
20004
7a634e08 200052008-02-09 Robert Millan <rmh@aybabtu.com>
20006
20007 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
20008 situations in which we can deduce the RAID size and the superblock
20009 doesn't match it.
20010
b92f0c18 200112008-02-09 Robert Millan <rmh@aybabtu.com>
20012
20013 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
20014 and return a grub_diskmemberlist_t composed of LVM physical volumes.
20015 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
20016
20017 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
20018 and return a grub_diskmemberlist_t composed of physical array members.
20019 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
20020
20021 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
20022 prototype.
20023 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
20024 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
20025 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
20026
20027 * util/grub-probe.c (probe): Move partmap probing code from here ...
20028 (probe_partmap): ... to here.
20029 (probe): Use probe_partmap() once for the disk we're probing, and
20030 additionally, when such disk contains a memberlist() struct member,
20031 once for each disk that is contained in the structure returned by
20032 memberlist().
20033
91a4bf68 200342008-02-09 Robert Millan <rmh@aybabtu.com>
20035
20036 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
20037 environment variable to 'all' in order to obtain debug output from
20038 non-util/ code.
20039 * util/i386/pc/grub-setup.c (main): Likewise.
20040
a96f9caa 200412008-02-08 Robert Millan <rmh@aybabtu.com>
20042
20043 * disk/raid.c (grub_raid_scan_device): Check for
20044 `array->device[sb.this_disk.number]' rather than for
20045 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 20046 guaranteed to be accessible.
a96f9caa 20047
b37a9222 200482008-02-08 Robert Millan <rmh@aybabtu.com>
20049
20050 * disk/raid.c: Update copyright.
20051 * fs/cpio.c: Likewise.
20052 * include/grub/raid.h: Likewise.
20053 * loader/i386/pc/multiboot.c: Likewise.
20054 * util/hostfs.c: Likewise.
20055
5626aee1 200562008-02-08 Robert Millan <rmh@aybabtu.com>
20057
20058 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
20059 to a grub_disk_t array.
20060 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
20061 `device[x]'.
20062 (grub_raid_scan_device): Replace `device[x].name' accesses with
20063 `device[x]->name'. Simplify initialization of `array->device[x]'.
20064
554f0187 200652008-02-08 Robert Millan <rmh@aybabtu.com>
20066
20067 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
20068 grub_dprintf() calls.
20069 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
20070 error message.
20071
1ec8425d 200722008-02-07 Christian Franke <franke@computer.org>
20073
20074 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
20075 instead of fseek and ftell to support large files.
20076 (grub_hostfs_read): Likewise.
20077
f2156fda 200782008-02-07 Robert Millan <rmh@aybabtu.com>
20079
20080 Patch from Jeroen Dekkers.
20081 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 20082 failure, since successfully reading all array members might not be
f2156fda 20083 required.
20084
9216e0e7 200852008-02-06 Robert Millan <rmh@aybabtu.com>
20086
20087 * util/grub-probe.c (probe): Simplify partmap probing (with the
20088 assumption that the first word up to the underscore equals to
20089 the module name).
20090
b0dfd29a 200912008-02-06 Christian Franke <franke@computer.org>
20092
20093 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
20094 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
20095 last block of a cpio or tar stream.
20096 Check for "TRAILER!!!" instead of any empty data
20097 block to detect last block of a cpio stream.
20098 (grub_cpio_dir): Fix constness of variable np.
20099 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
20100 cpio or tar trailer is detected. This fixes a crash
20101 on open of a non existing file.
20102
c32865bf 201032008-02-05 Bean <bean123ch@gmail.com>
20104
20105 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
20106 address of entry.
20107 (grub_multiboot_load_elf64): Likewise.
20108 (grub_multiboot): Initialize mbi structure.
20109
20110 * util/grub-fstest.c: Don't include unused header file script.h.
20111
fe6b695a 20112 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 20113 of file.
20114 (grub_fstest_SOURCES): Likewise.
20115
409480b7 201162008-02-05 Robert Millan <rmh@aybabtu.com>
20117
20118 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
20119 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
20120 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
20121 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
20122
20123 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
20124 (translation_table): Replace hardcoded values with macros
20125 provided by `<grub/term.h>'.
20126
20127 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
20128 (keyboard_map): Correct/add a few values, with macros provided
20129 by `<grub/term.h>'.
20130 (keyboard_map_shift): Zero values that don't differ from their
20131 `keyboard_map' equivalents.
20132 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
20133 Discard the second scan code that is always sent by Caps lock.
20134 Only use `keyboard_map_shift' when it provides a non-zero value,
20135 otherwise fallback to `keyboard_map'.
20136
99fadbaa 201372008-02-04 Bean <bean123ch@gmail.com>
20138
20139 * Makefile.in (enable_grub_fstest): New variable.
20140
20141 * conf/common.rmk (grub_fstest_init.lst): New rule.
20142 (grub_fstest_init.h): Likewise.
20143 (grub_fstest_init.c): Likewise.
20144 (util/grub-fstest.c_DEPENDENCIES): New variable.
20145 (grub_fstest_SOURCES): Likewise.
20146
20147 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
20148
20149 * util/grub-fstest.c: New file.
20150
bf567c50 201512008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
20152
20153 Make grub-setup handle a separate root device.
f19dbdb7 20154
bf567c50 20155 * util/i386/pc/grub-setup.c (setup): Always open the root device,
20156 so that the root device can be compared with the destination
20157 device.
20158 When embedding the core image, if the root and destination devices
20159 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
20160 0xFF.
20161 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 20162
9be6b98b 201632008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
20164
20165 Add support for having a grub directory in a different drive. This
20166 is still only the data handling part.
f19dbdb7 20167
9be6b98b 20168 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
20169 (codestart): Save %dh in GRUB_ROOT_DRIVE.
20170 (grub_root_drive): New variable.
20171
20172 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
20173 instead of GRUB_BOOT_DRIVE to construct a device name. Set
20174 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
20175 as it was.
20176
20177 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
20178
20179 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
20180 macro.
20181 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
20182
20183 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
20184 is bogus, because PXE booting does not specify any drive
20185 correctly.
20186
20187 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
20188 am not sure if this is really correct.
20189
20190 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
20191 is always identical to the boot drive when booting from a CD.
20192
20193 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
20194 longer.
20195 (root_drive): New variable.
20196 (real_start): Unconditionally set %dh to ROOT_DRIVE.
20197 (setup_sectors): Push %dx right after popping it, because %dh will
20198 be modified later.
20199 (copy_buffer): Restore %dx.
20200
e0ca0677 202012008-02-03 Robert Millan <rmh@aybabtu.com>
20202
20203 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
20204 use `cdboot.img' for cdrom images.
20205
3b3f6629 202062008-02-03 Robert Millan <rmh@aybabtu.com>
20207
20208 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
20209 only setup gfxterm when `font' command has succeeded.
20210
d42b3672 202112008-02-03 Robert Millan <rmh@aybabtu.com>
20212
20213 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
20214 (grub_rescue_cmd_multiboot_loader)
20215 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
20216
fa370ea6 202172008-02-03 Pavel Roskin <proski@gnu.org>
20218
e0c5dacb 20219 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 20220 %edx and %esi from stack only after grub_gate_a20() is called.
20221 grub_gate_a20() clobbers %edx.
20222
f2a76e1d 202232008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
20224
20225 * configure.ac (AC_INIT): Bumped to 1.96.
20226
20227 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
20228 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
20229 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
20230 video/readers/png.c.
20231
90fd32d1 202322008-02-03 Bean <bean123ch@gmail.com>
9be665dd 20233
20234 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
20235 (cdboot_img_SOURCES): New variable.
20236 (cdboot_img_ASFLAGS): New variable.
20237 (cdboot_img_LDFLAGS): New variable.
20238
20239 * boot/i386/pc/cdboot.S: New file.
20240
20241 * disk/i386/pc/biosdisk.c (cd_start): New variable.
20242 (cd_count): Likewise.
20243 (grub_biosdisk_get_drive): Add support for cd device.
20244 (grub_biosdisk_call_hook): Likewise.
20245 (grub_biosdisk_iterate): Likewise.
20246 (grub_biosdisk_open): Likewise.
20247 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
20248 (grub_biosdisk_rw): Support reading from cd device.
20249 (GRUB_MOD_INIT): Iterate cd devices.
20250
20251 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
20252 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
20253 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
20254
20255 * kern/i386/pc/init.c (make_install_device): Check for cd device.
20256
4020aa53 202572008-02-02 Robert Millan <rmh@aybabtu.com>
20258
20259 * commands/read.c: New file.
20260 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
20261 (read_mod_SOURCES): New variable.
20262 (read_mod_CFLAGS): Likewise.
20263 (read_mod_LDFLAGS): Likewise.
20264
e03a1132 202652008-02-02 Robert Millan <rmh@aybabtu.com>
20266
20267 * normal/main.c (grub_normal_execute): Check for `menu->size' when
20268 determining whether menu has to be displayed.
20269
58c69220 202702008-02-02 Marco Gerards <marco@gnu.org>
20271
20272 * bus/pci.c: New file.
20273
20274 * include/grub/pci.h: Likewise.
20275
20276 * include/grub/i386/pc/pci.h: Likewise.
20277
20278 * commands/lspci.c: Likewise.
20279
20280 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
20281 `lspci.mod'.
20282 (pci_mod_SOURCES): New variable.
20283 (pci_mod_CFLAGS): Likewise.
20284 (pci_mod_LDFLAGS): Likewise.
20285 (lspci_mod_SOURCES): Likewise.
20286 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 20287 (lspci_mod_LDFLAGS): Likewise.
58c69220 20288
c004e1b4 202892008-02-02 Bean <bean123ch@gmail.com>
20290
20291 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
20292 (grub_ufs_get_file_block): Fix indirect block calculation problem.
20293
20294 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
20295 (grub_xfs_btree_node): New structure.
20296 (grub_xfs_btree_root): New structure.
20297 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
20298 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
20299 (GRUB_XFS_EXTENT_BLOCK): Likewise.
20300 (GRUB_XFS_EXTENT_SIZE): Likewise.
20301 (grub_xfs_read_block): Support btree format type.
20302 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
20303 Use directory block as basic unit.
20304
20305 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
20306
20307 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
20308 __attribute__ ((__regparm__ (1))).
20309
f95562bf 203102008-02-01 Robert Millan <rmh@aybabtu.com>
20311
20312 Correct a mistake in previous commit.
20313
20314 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
20315 top.
20316 (normal/command.c_DEPENDENCIES): New variable.
20317
7d31f41f 203182008-02-01 Robert Millan <rmh@aybabtu.com>
20319
20320 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
20321 top.
20322 (normal/command.c_DEPENDENCIES): New variable.
20323 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
20324 * conf/i386-ieee1275.rmk: Likewise.
20325 * conf/i386-linuxbios.rmk: Likewise.
20326 * conf/i386-pc.rmk: Likewise.
20327 * conf/sparc64-ieee1275.rmk: Likewise.
20328 * conf/powerpc-ieee1275.rmk: Likewise.
20329 (grub_emu_SOURCES): Add `fs/fshelp.c'.
20330
20331 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
20332
60b6be74 203332008-02-01 Robert Millan <rmh@aybabtu.com>
20334
20335 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
20336 call at beginning of function.
20337
078522ab 203382008-01-31 Pavel Roskin <proski@gnu.org>
20339
20340 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 20341 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
20342 (grub_mkrescue_SOURCES): Likewise.
078522ab 20343 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
20344
ccaa8a5f 203452008-01-30 Robert Millan <rmh@aybabtu.com>
20346
20347 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
20348 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
20349 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
20350 (grub_probe_SOURCES): ... to here.
20351
20352 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
20353 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
20354 * conf/i386-ieee1275.rmk: Likewise.
20355 * conf/i386-linuxbios.rmk: Likewise.
20356 * conf/powerpc-ieee1275.rmk: Likewise.
20357
ae5a9cd7 203582008-01-30 Tristan Gingold <gingold@free.fr>
20359
20360 * kern/rescue.c: Silently accept empty lines.
20361
70bc2ef2 203622008-01-29 Bean <bean123ch@gmail.com>
20363
20364 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
20365 (real_code_2): Code cleanup and change comment style.
20366 (move_memory): Avoid using 32-bit address mode.
20367
6a4d50ea 203682008-01-29 Bean <bean123ch@gmail.com>
20369
20370 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
20371 (png_mod_SOURCES): New variable.
20372 (png_mod_CFLAGS): Likewise.
20373 (png_mod_LDFLAGS): Likewise.
20374
20375 * video/readers/png.c: New file.
20376
11cc30ac 203772008-01-28 Robert Millan <rmh@aybabtu.com>
20378
20379 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
20380 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
20381 `ifndef GRUB_MOD_GAP' hack.
20382 * util/elf/grub-mkimage.c (add_segments): Likewise.
20383
3abc589f 203842008-01-27 Robert Millan <rmh@aybabtu.com>
20385
20386 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
20387 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 20388 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 20389
e1907778 203902008-01-27 Robert Millan <rmh@aybabtu.com>
20391
20392 Get grub-emu to build again (including parallel builds).
20393
20394 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
20395 Split into ...
20396 (util/grub-emu.c_DEPENDENCIES): ... this, ...
20397 (normal/execute.c_DEPENDENCIES): ... this, ...
20398 (grub-emu_DEPENDENCIES): ... and this.
20399
20400 * conf/i386-efi.rmk: Likewise.
20401 * conf/i386-linuxbios.rmk: Likewise.
20402 * conf/i386-ieee1275.rmk: Likewise.
20403 * conf/powerpc-ieee1275.rmk: Likewise.
20404 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
20405
2216b101 204062008-01-27 Robert Millan <rmh@aybabtu.com>
20407
20408 * NEWS: Add a few items.
20409
f75172d9 204102008-01-27 Robert Millan <rmh@aybabtu.com>
20411
20412 Fix parallel builds with grub-emu. Based on earlier commit for
20413 grub-probe and grub-setup.
20414
20415 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
20416 (util/grub-emu.c_DEPENDENCIES): ... this.
20417 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
20418 (util/grub-emu.c_DEPENDENCIES): ... this.
20419 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
20420 (util/grub-emu.c_DEPENDENCIES): ... this.
20421 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
20422 (util/grub-emu.c_DEPENDENCIES): ... this.
20423 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
20424 (util/grub-emu.c_DEPENDENCIES): ... this.
20425
3f51de77 204262008-01-27 Pavel Roskin <proski@gnu.org>
20427
20428 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
20429 to create a gap between _end and the modules added to the image
20430 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
20431 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
20432 * util/elf/grub-mkimage.c (add_segments): Likewise.
20433
2033f53e 204342008-01-26 Pavel Roskin <proski@gnu.org>
20435
20436 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
20437 just return an error.
20438
22da1f6f 204392008-01-26 Bean <bean123ch@gmail.com>
20440
20441 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
20442 (grub_reiserfs_get_item): Save offset of the next item.
20443 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
20444
2a9525e6 204452008-01-25 Robert Millan <rmh@aybabtu.com>
20446
20447 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
20448 make all filesystem sources appear together (possibly fixing omissions
20449 while at it).
20450 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20451 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20452 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20453 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20454
20455 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
20456 add `kern/file.c'.
20457 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
20458 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
20459 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
20460 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
20461
20462 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
20463 (probe): Add a sanity check to make sure of our ability to read
20464 requested files when probing for filesystem type.
20465
20466 * genmk.rb: Update copyright year (2007).
20467
20468 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
20469 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
20470 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
20471 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
20472 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
20473 : Remove function prototypes.
20474
b95f71b5 204752008-01-25 Robert Millan <rmh@aybabtu.com>
20476
20477 Revert my previous commits (based on wrong assumption of how grub_errno
20478 works).
20479
fe6b695a 20480 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 20481 * kern/file.c (grub_file_open): Likewise.
20482
d08bbb49 204832008-01-24 Pavel Roskin <proski@gnu.org>
20484
20485 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
20486 that hang if GRUB tries to setup colors.
20487 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
20488 colors for firmwares that don't support it.
20489 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
20490 Recognize Open Hack'Ware, set flags to work around its
20491 limitations.
20492
605e36ed 204932008-01-24 Robert Millan <rmh@aybabtu.com>
20494
20495 * kern/file.c (grub_file_open): Do not account previous failures of
20496 unrelated functions when grub_errno is checked for.
20497 Reported by Oleg Strikov.
20498
bac332a1 204992008-01-24 Bean <bean123ch@gmail.com>
20500
20501 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
20502 (grub_ufs_sblock): New member volume name.
20503 (grub_ufs_find_file): Fix string copy bug.
20504 (grub_ufs_label): Implement this function properly.
20505
20506 * fs/hfs.c (grub_hfs_cnid_type): New enum.
20507 (grub_hfs_iterate_records): Use the correct file number for extents
20508 and catalog file. Fix problem in next index calculation.
20509 (grub_hfs_find_node): Replace recursive function call with loop.
20510 (grub_hfs_iterate_dir): Replace recursive function call with loop.
20511
15c80c09 205122008-01-23 Robert Millan <rmh@aybabtu.com>
20513
20514 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
20515 `<grub/symbol.h>' and `<grub/multiboot.h>'.
20516 (grub_multiboot2_real_boot): New function prototype.
20517
20518 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
20519 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
20520
20521 * kern/i386/ieee1275/init.c (grub_os_area_addr)
20522 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
20523
305338fd 205242008-01-23 Robert Millan <rmh@aybabtu.com>
20525
20526 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
20527 #ifdef'ed out grub_printf().
20528
3ea52685 205292008-01-23 Robert Millan <rmh@aybabtu.com>
20530
20531 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
20532 grub_dprintf calls, since they make "debug=all" mode unusable.
20533 (grub_console_checkkey): Likewise.
20534
5882ae4b 205352008-01-23 Robert Millan <rmh@aybabtu.com>
20536
20537 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
20538 `term/i386/pc/at_keyboard.c'.
20539 (pkglib_MODULES): Add `serial.mod'.
20540 (serial_mod_SOURCES): New variable.
20541 (serial_mod_CFLAGS): Likewise.
20542 (serial_mod_LDFLAGS): Likewise.
20543
20544 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
20545 `<grub/powerpc/ieee1275/console.h>'.
20546 (grub_keyboard_controller_init): New function prototype.
20547 (grub_console_checkkey): Likewise.
20548 (grub_console_getkey): Likewise.
20549
20550 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
20551 keyboard on i386.
20552
20553 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
20554 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
20555
06ab5303 205562008-01-23 Robert Millan <rmh@aybabtu.com>
20557
20558 * kern/i386/pc/init.c (make_install_device): When memdisk image is
20559 present, "(memdisk)/boot/grub" becomes the default prefix.
20560
20561 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
20562 a memdisk tarball with all the modules. Add --overlay=DIR option that
20563 allows users to overlay additional files into the image.
20564
dbb475a4 205652008-01-23 Robert Millan <rmh@aybabtu.com>
20566
20567 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
20568 and `machine/memory.h'.
20569 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
20570 (_multiboot_mod_SOURCES): New variable.
20571 (_multiboot_mod_CFLAGS): Likewise.
20572 (_multiboot_mod_LDFLAGS): Likewise.
20573 (multiboot_mod_SOURCES): Likewise.
20574 (multiboot_mod_CFLAGS): Likewise.
20575 (multiboot_mod_LDFLAGS): Likewise.
20576
20577 * include/grub/i386/ieee1275/loader.h: New file.
20578
20579 * include/grub/i386/ieee1275/machine.h: Likewise.
20580
20581 * include/grub/i386/ieee1275/memory.h: Likewise.
20582
20583 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
20584 variable declaration.
20585 (grub_os_area_size): Likewise.
20586
20587 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
20588 (grub_lower_mem, grub_upper_mem): New variables.
20589 (grub_stop_floppy): New function (just to make
20590 grub_multiboot2_real_boot() happy).
20591
20592 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
20593 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
20594 (grub_stop): New function.
20595 Include `"../realmode.S"' and `"../loader.S"'.
20596
20597 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
20598 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
20599
20600 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
20601 rely on grub_multiboot2_real_boot() for final boot.
20602
25638629 206032008-01-22 Robert Millan <rmh@aybabtu.com>
20604
20605 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
20606 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
20607 device that doesn't look like an SD card.
20608 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20609 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
20610 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
20611 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
20612 found.
20613
9dad816d 206142008-01-22 Robert Millan <rmh@aybabtu.com>
20615
20616 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
20617 avoid claiming over our own code.
20618
34842f2d 206192008-01-22 Bean <bean123ch@gmail.com>
20620
20621 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
20622 (jpeg_mod_SOURCES): New variable.
20623 (jpeg_mod_CFLAGS): Likewise.
20624 (jpeg_mod_LDFLAGS): Likewise.
20625
20626 * video/readers/jpeg.c : New file.
20627
44023a28 206282008-01-22 Bean <bean123ch@gmail.com>
20629
20630 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
20631 there are no more items.
20632
bc2d8ac6 206332008-01-21 Robert Millan <rmh@aybabtu.com>
20634
20635 * kern/mm.c (grub_mm_init_region): Improve debug message.
20636
261bd4bc 206372008-01-21 Robert Millan <rmh@aybabtu.com>
20638
20639 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
20640 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
20641 address.
20642 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
20643 a C macro.
20644 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
20645 Indicates start of upper memory.
20646 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
20647 (generate_image): Abort when image size is big enough to corrupt
20648 upper memory.
20649
20650 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
20651 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
20652 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
20653 instead of hardcoding 0xA0000.
20654 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
20655 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
20656 instead of hardcoding 0xA0000.
20657
f970b55e 206582008-01-21 Robert Millan <rmh@aybabtu.com>
20659
20660 * disk/memdisk.c (memdisk_size): New variable.
20661 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
20662 `memdisk_size'.
20663 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
20664 image to dynamic memory.
20665 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
20666 `memdisk_size'. Free memdisk block.
20667
1a8b0526 206682008-01-21 Robert Millan <rmh@aybabtu.com>
20669
20670 Fix detection of very small filesystems (like tar).
20671
20672 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
20673 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
20674 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
20675 a problem with this disk).
20676
6e9b4aab 206772008-01-21 Robert Millan <rmh@aybabtu.com>
20678
20679 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
20680 on grub_biosdisk_rw_standard() error.
20681
0d8837b2 206822008-01-21 Robert Millan <rmh@aybabtu.com>
20683
20684 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
20685 recent changes.
20686 * kern/elf.c: Likewise.
20687 * kern/ieee1275/ieee1275.c: Likewise.
20688 * kern/powerpc/ieee1275/openfw.c: Likewise.
20689 * term/ieee1275/ofconsole.c: Likewise.
20690
ffd36e34 206912008-01-21 Robert Millan <rmh@aybabtu.com>
20692
20693 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
20694
3f0093d0 20695 * include/grub/kernel.h (grub_arch_memdisk_addr)
20696 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 20697
3f0093d0 20698 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
20699 (grub_arch_memdisk_size): ... to here.
ffd36e34 20700
6c391b21 207012008-01-21 Robert Millan <rmh@aybabtu.com>
20702
20703 Mostly based on bugfix from Bean.
20704
20705 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
20706 attribute with hook() parameter.
20707 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
20708 declaration.
20709 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
20710 attribute with hook() parameter.
20711 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
20712 declaration.
20713
55a581dc 207142008-01-21 Robert Millan <rmh@aybabtu.com>
20715
20716 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
20717 (pkglib_MODULES): Add `memdisk.mod'.
20718 (memdisk_mod_SOURCES): New variable.
20719 (memdisk_mod_CFLAGS): Likewise.
20720 (memdisk_mod_LDFLAGS): Likewise.
20721
20722 * disk/memdisk.c: New file.
20723
20724 * include/grub/disk.h (grub_disk_dev_id): Add
20725 `GRUB_DISK_DEVICE_MEMDISK_ID'.
20726
20727 * include/grub/i386/pc/kernel.h
20728 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
20729 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
20730 (grub_kernel_image_size): New variable declaration.
20731 (grub_total_module_size): Likewise.
20732 (grub_memdisk_image_size): Likewise.
20733
20734 * include/grub/i386/pc/memory.h
20735 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
20736
20737 * include/grub/kernel.h: Include `<grub/symbol.h>'.
20738 (grub_arch_memdisk_addr): New variable declaration.
20739 (grub_arch_memdisk_size): Likewise.
20740
20741 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
20742 (grub_arch_memdisk_size): Likewise.
20743
20744 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
20745 (codestart): Replace hardcoded `0x100000' with
20746 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
20747
20748 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
20749 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
20750 not NULL, append the contents of the file it refers to, at the end of
20751 the compressed kernel image. Initialize `grub_memdisk_image_size'
20752 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
20753 (options): Add "memdisk"|'m' option.
20754 (main): Parse --memdisk|-m option, and pass user-provided path as
20755 parameter to generate_image().
20756
3d7f54c9 207572008-01-20 Robert Millan <rmh@aybabtu.com>
20758
20759 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
20760 grub_dprintf() calls from here ...
20761 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
20762
0bf74728 207632008-01-20 Robert Millan <rmh@aybabtu.com>
20764
20765 Fix detection of "real mode" when /options/real-mode? doesn't exist.
20766
20767 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
20768 declaration.
20769 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
20770 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
20771 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 20772 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 20773 property).
20774 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
20775 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
20776
33bf70a7 207772008-01-19 Robert Millan <rmh@aybabtu.com>
20778
fe6b695a 20779 Get rid of confusing function (superseded by
33bf70a7 20780 `grub_ieee1275_get_integer_property')
20781 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
20782 prototype.
20783 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
20784 function.
20785 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
20786 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 20787 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 20788
e2da7d26 207892008-01-19 Robert Millan <rmh@aybabtu.com>
20790
20791 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
20792 command after "shut-down", since implementations differ on which
20793 the command for halt is.
20794
59f1fd8d 207952008-01-19 Robert Millan <rmh@aybabtu.com>
20796
20797 * include/grub/i386/linuxbios/console.h: Add header protection.
20798 (grub_keyboard_controller_init): New function prototype.
20799 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
20800 (KEYBOARD_COMMAND_READ): Likewise.
20801 (KEYBOARD_COMMAND_WRITE): Likewise.
20802 (KEYBOARD_SCANCODE_SET1): Likewise.
20803 (grub_keyboard_controller_write): New function.
20804 (grub_keyboard_controller_read): Likewise.
20805 (grub_keyboard_controller_init): Likewise.
20806
20807 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
20808 (grub_console_init): On coreboot/LinuxBIOS, call
20809 grub_keyboard_controller_init().
20810
5f5a7c15 208112008-01-19 Robert Millan <rmh@aybabtu.com>
20812
20813 PowerPC changes provided by Pavel Roskin.
20814
20815 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
20816 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
20817 don't rely on cmain() doing it.
20818 * kern/i386/ieee1275/startup.S (_start): Store %eax in
20819 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
20820
1210e168 208212008-01-16 Robert Millan <rmh@aybabtu.com>
20822
20823 * include/grub/i386/linuxbios/memory.h
20824 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
20825 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
20826 receive `table_header' as argument. Instead, probe for it in the
20827 known memory ranges where it can be present.
20828 (grub_available_iterate): Do not pass a fixed `table_header' address
20829 to grub_linuxbios_table_iterate().
20830
3d04eab8 208312008-01-15 Robert Millan <rmh@aybabtu.com>
20832
20833 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
20834 * conf/i386-ieee1275.rmk: New file.
20835 * include/grub/i386/ieee1275/console.h: Likewise.
20836 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
20837 * include/grub/i386/ieee1275/kernel.h: Likewise.
20838 * include/grub/i386/ieee1275/time.h: Likewise.
20839 * kern/i386/ieee1275/init.c: Likewise.
20840 * kern/i386/ieee1275/startup.S: Likewise.
20841
d1bc1b73 208422008-01-15 Robert Millan <rmh@aybabtu.com>
20843
20844 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
20845 when pointers are 32-bit (but still do set it to one when they are
20846 64-bit).
20847
66a65807 208482008-01-15 Robert Millan <rmh@aybabtu.com>
20849
20850 * include/grub/ieee1275/ieee1275.h
20851 (grub_ieee1275_get_integer_property): New function prototype.
20852
20853 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
20854 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 20855 grub_ieee1275_get_property() to handle endianness.
66a65807 20856
20857 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
20858 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 20859 where appropriate.
66a65807 20860 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
20861 (grub_map): Likewise.
20862 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
20863
a83ccafd 208642008-01-15 Bean <bean123ch@gmail.com>
20865
20866 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
20867 (grub_script_execute_cmdline): Reset grub_errno.
20868
20869 * normal/main.c (read_config_file): Reset grub_errno.
20870
20871 * normal/parse.y (script_init): New.
20872 (script): Move function and menuentry here.
20873 (delimiter): New.
20874 (command): Add delimiter at the end of command.
20875 (commands): Adjust to match the new command.
20876 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 20877 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 20878 (if): Use the new commands.
20879
20880 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
20881
df6ecfc6 208822008-01-15 Robert Millan <rmh@aybabtu.com>
20883
20884 * normal/menu.c (run_menu): Move timeout message from here ...
20885 (print_timeout): ... to here.
20886 (run_menu): Use print_timeout() once during initial draw to print
20887 the whole message, and again in every clock tick to update only
20888 the number of seconds.
20889
87ae25eb 208902008-01-15 Robert Millan <rmh@aybabtu.com>
20891
20892 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
20893 actual size of `available' from grub_ieee1275_get_property(), and
20894 restrict parsing to that bound.
20895
47bf09a4 208962008-01-15 Christian Franke <franke@computer.org>
20897
20898 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
20899 (argp_program_version): Remove variable.
20900 (argp_program_bug_address): Likewise.
20901 (options): Convert from struct argp_option to struct option.
20902 (struct arguments): Remove.
20903 (parse_opt): Remove.
20904 (usage): New function.
20905 (main): Replace struct args members by simple variables.
20906 Replace argp_parse() by getopt_long().
20907 Add switch to evaluate options.
20908 Add missing "(...)" around root_dev in prefix string.
20909
c86f1469 209102008-01-14 Robert Millan <rmh@aybabtu.com>
20911
20912 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
20913 for grub_ieee1275_exit(), in order to improve portability.
20914
e622c559 209152008-01-14 Robert Millan <rmh@aybabtu.com>
20916
20917 * util/grub.d/10_linux.in (prefix): Define.
20918 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
20919
44cb1ec8 209202008-01-13 Pavel Roskin <proski@gnu.org>
20921
20922 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
20923 grub_errno if no errors have been detected.
20924
1eb8c802 209252008-01-12 Robert Millan <rmh@aybabtu.com>
20926
20927 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
20928 (grub_util_get_dev_abstraction): New function prototype.
20929
20930 * util/getroot.c: Include `<grub/util/getroot.h>'
20931 (grub_util_get_grub_dev): Move detection of abstraction type to ...
20932 (grub_util_get_dev_abstraction): ... here (new function).
20933
20934 * util/grub-probe.c: Convert PRINT_* to an enum. Add
20935 `PRINT_ABSTRACTION'.
20936 (probe): Probe for abstraction type when requested.
20937 (main): Understand `--target=abstraction'.
20938
20939 * util/i386/efi/grub-install.in: Add abstraction module to core
20940 image when it is found to be necessary.
20941 * util/i386/pc/grub-install.in: Likewise.
20942 * util/powerpc/ieee1275/grub-install.in: Likewise.
20943
20944 * util/update-grub_lib.in (font_path): Return system path without
20945 converting to GRUB path.
20946 * util/update-grub.in: Convert system path returned by font_path()
20947 to a GRUB path. Use `grub-probe -t abstraction' to determine what
20948 abstraction module is needed for loading fonts (if any). Export
20949 that as `GRUB_PRELOAD_MODULES'.
20950 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
20951 insmod commands).
20952
52bd3de9 209532008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
20954
20955 Remove some unused code from reiserfs.
f19dbdb7 20956
52bd3de9 20957 * fs/reiserfs.c (struct grub_reiserfs_key)
20958 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
20959 (struct grub_reiserfs_node_body): Removed.
20960 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20961 Likewise.
20962 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20963 Likewise.
20964 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20965 Likewise.
20966 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20967 Likewise.
20968 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20969 Likewise.
20970 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
20971 Likewise.
20972 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20973 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20974 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20975
2f80039d 209762008-01-10 Robert Millan <rmh@aybabtu.com>
20977
20978 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
20979 Determines if a file is garbage left by packaging systems, etc.
20980 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
20981 for processing /etc/grub.d scripts.
20982 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
20983 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
20984 as a condition for processing Linux images.
20985
87888032 209862008-01-10 Pavel Roskin <proski@gnu.org>
20987
20988 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
20989 to compile reiserfs.c on PowerPC.
20990
7e54fced 209912008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 20992
20993 * kern/device.c (grub_device_iterate): Do not abort device iteration
20994 when one of the devices cannot be opened.
20995 * kern/disk.c (grub_disk_open): Do not account previous failures of
20996 unrelated functions when grub_errno is checked for.
20997
5aa541e6 209982008-01-08 Robert Millan <rmh@aybabtu.com>
20999
21000 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
21001 `! grub_linux_is_bzimage', change order of address comparison to make
21002 it more intuitive, and improve "too big zImage" error message.
21003
7076340d 210042008-01-08 Robert Millan <rmh@aybabtu.com>
21005
21006 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
21007 `$(update-grub_DATA)'.
21008 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
21009 targets.
21010
9ca70333 210112008-01-07 Robert Millan <rmh@aybabtu.com>
21012
21013 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
21014 which instruction is modified by grub-setup during installation
21015 (since it wasn't obvious by only looking at this file).
21016
38ccf575 210172008-01-07 Robert Millan <rmh@aybabtu.com>
21018
21019 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
21020 listing actual TODO items.
21021
f5db4291 210222008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
21023
868967cf 21024 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
21025 correctly.
21026 (grub_reiserfs_get_key_offset): Likewise.
21027 (grub_reiserfs_set_key_offset): Likewise.
21028 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 21029 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 21030
21031 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
21032 better to remove the bitfield version completely.
f19dbdb7 21033
868967cf 210342008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 21035
f5db4291 21036 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
21037 allocated from the heap, due to the fshelp implementation.
21038 (grub_reiserfs_dir): Free NODE, due to the same reason.
21039
492e6d9d 210402008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
21041
21042 Mostly from Vincent Pelletier:
f19dbdb7 21043
492e6d9d 21044 * fs/reiserfs.c: New file.
f19dbdb7 21045
492e6d9d 21046 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
21047 (reiserfs_mod_SOURCES): New variable.
21048 (reiserfs_mod_CFLAGS): Likewise.
21049 (reiserfs_mod_LDFLAGS): Likewise.
21050
21051 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
21052 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
21053 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
21054 normal/color.c.
21055
9ce3e7c1 210562008-01-06 Robert Millan <rmh@aybabtu.com>
21057
21058 * normal/color.c: Remove `<grub/env.h>'.
21059
f3b58148 210602008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
21061
21062 * include/grub/normal.h: Include <grub/env.h>.
21063
7ac3bcfa 210642008-01-05 Robert Millan <rmh@aybabtu.com>
21065
21066 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
21067 usage example with `(hd0,1)'.
fb358190 21068 Reported by Samuel Thibault.
7ac3bcfa 21069
c8ee99d7 210702008-01-05 Robert Millan <rmh@aybabtu.com>
21071
21072 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
21073 (grub_linux_boot_zimage): Rename to ...
21074 (grub_linux_boot): ... this.
21075 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
21076 (grub_linux_boot_zimage): Conditionalize zImage copy.
21077
21078 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
21079 (grub_linux_boot_bzimage): Remove prototype.
21080 (grub_linux_boot_zimage): Rename to ...
21081 (grub_linux_boot): ... this.
21082
21083 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
21084 (grub_linux_boot): Remove function.
21085
0ece25b1 210862008-01-05 Robert Millan <rmh@aybabtu.com>
21087
21088 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
21089 (grub_env_write_color_highlight): Likewise.
21090 (grub_wait_after_message): Likewise.
21091
21092 * normal/color.c: New file.
21093
21094 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
21095 (normal_mod_DEPENDENCIES): Likewise.
21096
21097 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
21098 (normal_mod_DEPENDENCIES): Likewise.
21099
21100 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
21101 (normal_mod_DEPENDENCIES): Likewise.
21102
21103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
21104 (normal_mod_DEPENDENCIES): Likewise.
21105
21106 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
21107 for waiting after a message is printed.
21108 * normal/main.c (read_config_file): Likewise.
21109 (grub_normal_init): Register grub_env_write_color_normal() and
21110 grub_env_write_color_highlight() hooks. Mark `color_normal' and
21111 `color_highlight' variables as global.
21112
21113 * normal/menu.c (grub_wait_after_message): New function.
21114 (grub_color_menu_normal): New variable. Replaces ...
21115 (GRUB_COLOR_MENU_NORMAL): ... this macro.
21116 (grub_color_menu_highlight): New variable. Replaces ...
21117 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
21118 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
21119 `GRUB_TERM_COLOR_STANDARD'.
21120 (print_message): Use `grub_setcolorstate' to reload colors. Rename
21121 `normal_code' and `highlight_code' to `old_color_normal' and
21122 `old_color_highlight', respectively.
21123 (grub_menu_init_page): Update colors when drawing the menu, based on
21124 `menu_color_normal' and `menu_color_highlight' variables.
21125 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
21126 a message is printed.
21127
182dd4e5 211282008-01-05 Robert Millan <rmh@aybabtu.com>
21129
21130 * kern/env.c (grub_env_context_open): Propagate hooks for global
21131 variables to new context.
21132
21133 * kern/main.c (grub_set_root_dev): Export `root' variable.
21134
ddf8f6ad 211352008-01-05 Robert Millan <rmh@aybabtu.com>
21136
21137 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 21138 discs unconditionally, since udev and others have options to provide
ddf8f6ad 21139 them.
21140
d8b43d9b 211412008-01-05 Robert Millan <rmh@aybabtu.com>
21142
21143 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
21144
2bff2de3 211452008-01-04 Christian Franke <franke@computer.org>
21146
21147 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
21148 of eisa_mmap.
21149
97eab917 211502008-01-03 Pavel Roskin <proski@gnu.org>
21151
21152 * kern/i386/linuxbios/init.c: Put "void" to all function
21153 declarations with no arguments.
21154 * kern/powerpc/ieee1275/init.c: Likewise.
21155 * term/i386/pc/at_keyboard.c: Likewise.
21156 * term/i386/pc/vga_text.c: Likewise.
21157 * util/grub-mkdevicemap.c: Likewise.
21158
b9416d00 211592008-01-02 Robert Millan <rmh@aybabtu.com>
21160
21161 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
21162 message when loaded image is out of bounds.
21163 (grub_multiboot_load_elf64): Likewise.
21164
92695df9 211652008-01-02 Pavel Roskin <proski@gnu.org>
21166
21167 * util/grub.d/10_linux.in: Try version without ".old" when
21168 looking for initrd. It's better to use initrd from the newer
21169 kernel of the same version than no initrd at all.
21170
d98d9cad 211712008-01-01 Robert Millan <rmh@aybabtu.com>
21172
21173 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
21174
dbfdce36 211752008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
21176
f19dbdb7 21177 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 21178 grub_video_get_active_render_target.
21179 (grub_video_adapter): Added unmap_color and get_active_render_target.
21180
f19dbdb7 21181 * video/video.c: Added grub_video_unmap_color and
dbfdce36 21182 grub_video_get_active_render_target.
21183 (grub_video_get_info): Changed method to accept NULL pointer as an
21184 argument to allow detection of active video adapter.
21185
21186 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
21187 grub_video_vbe_unmap_color_int.
21188 Added grub_video_vbe_unmap_color and
21189 grub_video_vbe_get_active_render_target.
21190 (grub_video_vbe_adapter): Added unmap_color and
21191 get_active_render_target.
21192
f19dbdb7 21193 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 21194 with grub_video_vbe_unmap_color_int.
21195
21196 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
21197 (DEFAULT_NORMAL_COLOR): Likewise.
21198 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
21199 (DEFAULT_FG_COLOR): Removed.
21200 (DEFAULT_BG_COLOR): Likewise.
21201 (DEFAULT_CURSOR_COLOR): Changed value.
21202 (grub_virtual_screen): Added standard_color_setting,
21203 normal_color_setting, highlight_color_setting and term_color.
21204 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
21205 (bitmap_width): Added.
21206 (bitmap_height): Likewise.
21207 (bitmap): Likewise.
21208 (set_term_color): Likewise.
21209 (grub_virtual_screen_setup): Changed to use new terminal coloring
21210 settings.
21211 (grub_gfxterm_init): Added init for bitmap.
21212 (grub_gfxterm_fini): Added destroy for bitmap.
21213 (redraw_screen_rect): Updated to use background bitmap and new
21214 terminal coloring.
21215 (scroll_up): Added optimization for case when there is no bitmap.
21216 (grub_gfxterm_cls): Fixed to use correct background color.
21217 (grub_virtual_screen_setcolorstate): Changed to use new terminal
21218 coloring.
21219 (grub_virtual_screen_setcolor): Likewise.
21220 (grub_virtual_screen_getcolor): Added.
21221 (grub_gfxterm_background_image_cmd): Likewise.
21222 (grub_video_term): Added setcolor and getcolor.
21223 (MOD_INIT): Added registration of background_image command.
21224 (MOD_TERM): Added unregistration for background_image command.
21225
c3c20931 212262007-12-30 Pavel Roskin <proski@gnu.org>
21227
21228 * loader/multiboot_loader.c: Fix multiboot command
21229 unregistration. Fix all typos in the word "multiboot".
21230
df266716 212312007-12-29 Pavel Roskin <proski@gnu.org>
94239199 21232
21233 * util/grub.d/10_linux.in: Refactor search for initrd. Add
21234 support for initrd names used in Fedora.
21235
fc6e896c 212362007-12-26 Bean <bean123ch@gmail.com>
21237
21238 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
21239 (cpio_mod_SOURCES): New variable.
21240 (cpio_mod_CFLAGS): Likewise.
21241 (cpio_mod_LDFLAGS): Likewise.
21242
21243 * fs/cpio.c: New file.
21244
21245 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
21246
21247 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21248
21249 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
21250
21251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21252
533110ad 212532007-12-25 Robert Millan <rmh@aybabtu.com>
21254
21255 * include/grub/term.h (struct grub_term): Add `getcolor' function.
21256 (grub_getcolor): New function.
21257
21258 * kern/term.c (grub_getcolor): New function.
21259 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
21260 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
21261 (print_entry): Set normal and highlight colors to
21262 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
21263 respectively, before printing and restore them to old
21264 values afterwards.
21265 (grub_menu_init_page): Likewise. Fill an additional colored space
21266 that would otherwise be left blank.
21267
21268 * term/efi/console.c (grub_console_getcolor): New function.
21269 (struct grub_console_term.getcolor): New variable.
21270 * term/i386/pc/console.c (grub_console_getcolor): New function.
21271 (struct grub_console_term.getcolor): New variable.
21272 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
21273 (struct grub_console_term.getcolor): New variable.
21274
21275 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
21276 (struct grub_console_term.setcolor): Remove variable.
21277 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
21278 (struct grub_console_term.setcolor): Remove variable.
21279 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
21280 (struct grub_console_term.setcolor): Remove variable.
21281 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
21282 (struct grub_console_term.setcolor): Remove variable.
21283
4931827f 212842007-12-25 Robert Millan <rmh@aybabtu.com>
21285
21286 * configure.ac: Search for possible unifont.hex locations, and
21287 define UNIFONT_HEX if found.
21288
21289 * Makefile.in (UNIFONT_HEX): Define variable.
21290 (DATA): Rename to ...
21291 (PKGLIB): ... this. Update all users.
21292 (PKGDATA): New variable.
21293 (pkgdata_IMAGES): Rename to ...
21294 (pkglib_IMAGES): ... this. Update all users.
21295 (pkgdata_MODULES): Rename to ...
21296 (pkglib_MODULES): ... this. Update all users.
21297 (pkgdata_PROGRAMS): Rename to ...
21298 (pkglib_PROGRAMS): ... this. Update all users.
21299 (pkgdata_DATA): Rename to ...
21300 (pkglib_DATA): ... this. Update all users.
21301 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
21302 (unicode.pff, ascii.pff): New rules.
21303 (all-local): Add `$(PKGDATA)' dependency.
21304 (install-local): Process `$(PKGDATA)'.
21305
21306 * util/update-grub_lib.in (font_path): Search for *.pff files in
21307 a few more locations, including `${pkgdata}'.
21308
57e57e31 213092007-12-23 Robert Millan <rmh@aybabtu.com>
21310
21311 Patch from Bean <bean123ch@gmail.com>:
21312 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
21313 `size'.
21314
4bc72aa9 213152007-12-21 Bean <bean123ch@gmail.com>
21316
21317 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
21318 (ntfscomp_mod_SOURCES): New variable.
21319 (ntfscomp_mod_CFLAGS): Likewise.
21320 (ntfscomp_mod_LDFLAGS): Likewise.
21321
21322 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
21323 (grub_probe_SOURCES): Likewise.
21324 (grub_emu_SOURCES): Likewise.
21325
21326 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
21327 (grub_emu_SOURCES): Likewise.
21328
21329 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
21330 (grub_emu_SOURCES): Likewise.
21331
21332 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
21333 (grub_emu_SOURCES): Likewise.
21334
21335 * fs/ntfs.c (grub_ntfscomp_func): New variable.
21336 (read_run_list): Renamed to grub_ntfs_read_run_list.
21337 (decomp_nextvcn): Moved to ntfscomp.c.
21338 (decomp_getch): Likewise.
21339 (decomp_get16): Likewise.
21340 (decomp_block): Likewise.
21341 (read_block): Likewise.
21342 (read_data): Partially moved to ntfscomp.c.
21343 (fixup): Change unsigned to grub_uint16_t.
21344 (read_mft): Change unsigned long to grub_uint32_t.
21345 (read_attr): Likewise.
21346 (read_data): Likewise.
21347 (read_run_data): Likewise.
21348 (read_run_list): Likewise.
21349 (read_mft): Likewise.
21350
21351 * fs/ntfscomp.c: New file.
21352
21353 * include/grub/ntfs.h: New file.
21354
af680a87 213552007-12-16 Robert Millan <rmh@aybabtu.com>
21356
21357 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
21358 IDE disk check, since Linux is known to support 20 IDE disks.
21359 Reported by Colin Watson.
21360
84be7599 213612007-12-15 Bean <bean123ch@gmail.com>
21362
21363 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
21364 (lnxboot_img_SOURCES): New variable.
21365 (lnxboot_img_ASFLAGS): Likewise.
21366 (lnxboot_img_LDFLAGS): Likewise.
21367
21368 * boot/i386/pc/lnxboot.S: New file.
21369
6af9db01 213702007-11-24 Pavel Roskin <proski@gnu.org>
21371
21372 * configure.ac: Test if '--build-id=none' is supported by the
21373 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
21374 objcopy to generate incorrect binary files (binutils
21375 2.17.50.0.18-1 as shipped by Fedora 8).
21376 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
21377 linking, so that build ID doesn't break the test.
21378
7361cfe6 213792007-11-24 Pavel Roskin <proski@gnu.org>
21380
21381 * include/grub/i386/time.h: use "void" in the argument list
21382 of grub_cpu_idle().
21383 * include/grub/powerpc/time.h: Likewise.
21384 * include/grub/sparc64/time.h: Likewise.
21385
1593e10c 213862007-11-18 Christian Franke <franke@computer.org>
21387
21388 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
21389 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
21390 This fixes the problem that function keys did not work in grub-emu.
21391
3b8db1a8 213922007-11-18 Christian Franke <franke@computer.org>
21393
21394 * disk/host.c (grub_host_open): Remove attribute unused from
21395 name parameter. Add check for "host". This fixes the problem
21396 that grub-emu does not find partitions.
21397
2e29408d 213982007-11-18 Christian Franke <franke@computer.org>
21399
21400 * util/hostfs.c (is_dir): New function.
21401 (grub_hostfs_dir): Handle missing dirent.d_type case.
21402 (grub_hostfs_read): Add missing fseek().
21403 (grub_hostfs_label): Clear label pointer. This fixes a crash
21404 of grub-emu on "ls (host)".
21405
398cd047 214062007-11-18 Christian Franke <franke@computer.org>
21407
21408 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
21409 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
21410 to 64 bit boundary by default.
21411
c405c391 214122007-11-18 Bean <bean123ch@gmail.com>
21413
21414 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
21415 (hexdump_mod_SOURCES): New variable.
21416 (hexdump_mod_CFLAGS): Likewise.
21417 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 21418
c405c391 21419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
21420
21421 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
21422
21423 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
21424
21425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
21426
21427 * include/grub/hexdump.h: New file.
21428
21429 * commands/hexdump.c: New file.
21430
5cced7fd 214312007-11-10 Robert Millan <rmh@aybabtu.com>
21432
21433 * commands/i386/pc/play.c (beep_off): Switch order of arguments
21434 in grub_outb() calls.
21435 (beep_on): Likewise.
21436
8b714eb0 214372007-11-10 Christian Franke <franke@computer.org>
21438
21439 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
21440 (grub_menu_run): Likewise.
21441
ce0f1839 214422007-11-10 Robert Millan <rmh@aybabtu.com>
21443
21444 * include/grub/i386/efi/machine.h: New file.
21445 * include/grub/i386/linuxbios/machine.h: Likewise.
21446 * include/grub/i386/pc/machine.h: Likewise.
21447 * include/grub/powerpc/ieee1275/machine.h: Likewise.
21448 * include/grub/sparc64/ieee1275/machine.h: Likewise.
21449
21450 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
21451 (serial_hw_io_addr): New variable.
21452 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
21453 instead of `(unsigned short *) 0x400'.
21454
270c237d 214552007-11-10 Bean <bean123ch@gmail.com>
21456
21457 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
21458
a87783bf 214592007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
21460
21461 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
21462 (vga_mod_SOURCES): Added.
21463 (vga_mod_CFLAGS): Likewise.
21464 (vga_mod_LDFLAGS): Likewise.
21465
21466 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
21467 grub_outb() calls.
21468 (set_map_mask): Likewise.
21469 (set_read_map): Likewise.
21470 (set_read_address): Likewise.
21471 (vga_font): Removed variable.
21472 (get_vga_glyph): Removed function.
21473 (invalidate_char): Likewise.
21474 (write_char): Changed to use grub_font_get_glyph() for font
21475 information.
21476 (grub_vga_putchar): Likewise.
21477 (grub_vga_getcharwidth): Likewise.
21478
6433b448 214792007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
21480
21481 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
21482 flags.
21483 (pxeboot_img_LDFLAGS): Likewise.
21484 (diskboot_img_LDFLAGS): Likewise.
21485 (kernel_img_LDFLAGS): Likewise.
21486
49178511 214872007-11-06 Robert Millan <rmh@aybabtu.com>
21488
21489 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
21490 in grub_outb() calls.
21491 (serial_hw_init): Likewise.
21492
53b052de 214932007-11-05 Robert Millan <rmh@aybabtu.com>
21494
21495 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
21496 spaces. Skip non-regular files.
21497
5ab33bba 214982007-11-05 Robert Millan <rmh@aybabtu.com>
21499
21500 * kern/disk.c (grub_disk_firmware_fini)
21501 (grub_disk_firmware_is_tainted): New variables.
21502
21503 * include/grub/disk.h (grub_disk_firmware_fini)
21504 (grub_disk_firmware_is_tainted): Likewise.
21505
21506 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
21507 (grub_disk_biosdisk_fini): ... to here.
21508 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
21509 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
21510 is set. Register grub_disk_biosdisk_fini() in
21511 `grub_disk_firmware_fini'.
21512
21513 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
21514 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
21515 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
21516 to finish existing firmware disk interface.
21517
21518 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
21519 (ata_mod_SOURCES): New variable.
21520 (ata_mod_CFLAGS): Likewise.
21521 (ata_mod_LDFLAGS): Likewise.
21522
0149ab7c 215232007-11-05 Robert Millan <rmh@aybabtu.com>
21524
21525 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
21526 (grub_ata_wait): Reimplement using grub_millisleep().
21527
21528 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
21529 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
21530
be7ac41e 215312007-11-03 Marco Gerards <marco@gnu.org>
21532
21533 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
21534 (CRTC_ADDR_PORT): New macro.
21535 (CRTC_DATA_PORT): Likewise.
21536 (CRTC_CURSOR): Likewise.
21537 (CRTC_CURSOR_ADDR_HIGH): Likewise.
21538 (CRTC_CURSOR_ADDR_LOW): Likewise.
21539 (update_cursor): New function.
21540 (grub_console_real_putchar): Call `update_cursor'.
21541 (grub_console_gotoxy): Likewise.
21542 (grub_console_cls): Set the default color when clearing the
21543 screen.
21544 (grub_console_setcursor): Implemented.
21545
bb06ab2e 215462007-11-03 Marco Gerards <marco@gnu.org>
21547
21548 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
21549 become activate.
21550 (grub_ata_pio_write): Likewise.
21551
21552 (grub_atapi_identify): Wait after issuing an ATA command.
21553 (grub_atapi_packet): Likewise.
21554 (grub_ata_identify): Likewise.
21555 (grub_ata_readwrite): Likewise.
21556
cf8f780b 215572007-11-03 Marco Gerards <marco@gnu.org>
21558
21559 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
21560 (grub_ata_pio_write): Likewise.
21561 (grub_ata_readwrite): Use `grub_error', instead of
21562 returning `grub_errno'.
21563
ed649e54 215642007-11-03 Marco Gerards <marco@gnu.org>
21565
21566 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
21567 grub_ata_pio_write once for every single sector, instead of for
21568 multiple sectors.
21569
ca25d8f0 215702007-10-31 Robert Millan <rmh@aybabtu.com>
21571
21572 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
21573
21574 * conf/i386-linuxbios.rmk: New file.
21575
21576 * kern/i386/pc/hardware.c: Likewise.
21577 * term/i386/pc/at_keyboard.c: Likewise.
21578 * term/i386/pc/vga_text.c: Likewise.
21579
21580 * include/grub/i386/linuxbios/boot.h: Likewise.
21581 * include/grub/i386/linuxbios/console.h: Likewise.
21582 * include/grub/i386/linuxbios/init.h: Likewise.
21583 * include/grub/i386/linuxbios/kernel.h: Likewise.
21584 * include/grub/i386/linuxbios/loader.h: Likewise.
21585 * include/grub/i386/linuxbios/memory.h: Likewise.
21586 * include/grub/i386/linuxbios/serial.h: Likewise.
21587 * include/grub/i386/linuxbios/time.h: Likewise.
21588
21589 * kern/i386/linuxbios/init.c: Likewise.
21590 * kern/i386/linuxbios/startup.S: Likewise.
21591 * kern/i386/linuxbios/table.c: Likewise.
21592
e911ecc1 215932007-10-31 Marco Gerards <marco@gnu.org>
21594
21595 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
21596 (ata_mod_SOURCES): New variable.
21597 (ata_mod_CFLAGS): Likewise.
21598 (ata_mod_LDFLAGS): Likewise.
21599
21600 * disk/ata.c: New file.
21601
21602 * include/grub/disk.h (grub_disk_dev_id): Add
21603 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 21604
7f66d0e0 216052007-10-31 Robert Millan <rmh@aybabtu.com>
21606
21607 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
21608 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
21609
21610 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
21611 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
21612
21613 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
21614 `<grub/types.h>'.
21615
21616 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
21617
5cd7dd46 216182007-10-27 Robert Millan <rmh@aybabtu.com>
21619
3236ca65 21620 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 21621
2ebfc90f 216222007-10-22 Robert Millan <rmh@aybabtu.com>
21623
21624 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
21625 `"../realmode.S"'.
21626 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
21627
73fcb0f3 216282007-10-22 Robert Millan <rmh@aybabtu.com>
21629
21630 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
21631 (pkgdata_MODULES): Add `biosdisk.mod'.
21632 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
21633 variables.
21634
21635 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
21636 (grub_biosdisk_init): Replace with ...
21637 (GRUB_MOD_INIT(biosdisk)): ... this.
21638 (grub_biosdisk_fini): Replace with ...
21639 (GRUB_MOD_FINI(biosdisk)): ... this.
21640
21641 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
21642 (grub_machine_init): Remove call to grub_biosdisk_init().
21643 (grub_machine_fini): Remove call to grub_machine_fini().
21644
21645 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
21646
3381d274 216472007-10-22 Robert Millan <rmh@aybabtu.com>
21648
21649 * include/grub/time.h: New file.
21650 * include/grub/i386/time.h: Likewise.
21651 * include/grub/powerpc/time.h: Likewise.
21652 * include/grub/sparc64/time.h: Likewise.
21653
21654 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
21655 instances to ...
21656 (KERNEL_MACHINE_TIME_HEADER): ... this.
21657 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
21658 instances to ...
21659 (KERNEL_MACHINE_TIME_HEADER): ... this.
21660 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
21661 instances to ...
21662 (KERNEL_MACHINE_TIME_HEADER): ... this.
21663
21664 * kern/i386/efi/init.c: Include `<grub/time.h>'.
21665 (grub_millisleep): New function.
21666 * kern/i386/pc/init.c: Include `<grub/time.h>'.
21667 (grub_millisleep): New function.
21668 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
21669 Remove `grub/machine/time.h' include.
21670 (grub_millisleep): New function.
21671 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
21672 Remove `grub/machine/time.h' include.
21673 (grub_millisleep): New function.
21674
21675 * include/grub/misc.h (grub_div_roundup): New function.
21676
21677 * kern/misc.c: Include `<grub/time.h>'.
21678 (grub_millisleep_generic): New function.
21679
21680 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
21681 Add `time.h'.
21682 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
21683 Add `time.h'.
21684 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
21685 `machine/time.h'. Add `time.h'.
21686 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21687
a39a0312 216882007-10-21 Robert Millan <rmh@aybabtu.com>
21689
21690 * include/grub/misc.h (grub_max): New function.
21691
2aad70e2 216922007-10-21 Robert Millan <rmh@aybabtu.com>
21693
21694 * util/misc.c (grub_util_info): Call fflush() before returning.
21695
54b71c4b 216962007-10-20 Robert Millan <rmh@aybabtu.com>
21697
21698 * genmk.rb (Image): Copy `extra_flags' from here ...
21699 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
21700
21701 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
21702 to `argc' and `args' arguments.
21703
a979f513 217042007-10-17 Robert Millan <rmh@aybabtu.com>
21705
21706 * kern/i386/loader.S: New file.
21707
21708 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
21709 * kern/i386/loader.S (grub_linux_prot_size)... to here.
21710 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
21711 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
21712 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
21713 * kern/i386/loader.S (grub_linux_real_addr)... to here.
21714 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
21715 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
21716 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
21717 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
21718 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
21719 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
21720 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
21721 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
21722
21723 * kern/i386/realmode.S: New file.
21724
21725 * kern/i386/pc/startup.S (protstack): Moved from here ...
21726 * kern/i386/realmode.S (protstack)... to here.
21727 * kern/i386/pc/startup.S (gdt): Moved from here ...
21728 * kern/i386/realmode.S (gdt)... to here.
21729 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
21730 * kern/i386/realmode.S (prot_to_real)... to here.
21731
21732 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
21733 `kern/i386/realmode.S'.
21734
825fc8fd 217352007-10-17 Robert Millan <rmh@aybabtu.com>
21736
21737 * include/grub/i386/loader.h: New file.
21738
21739 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
21740 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
21741 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
21742 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
21743 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
21744 * include/grub/i386/loader.h (grub_linux_prot_size)
21745 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
21746 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
21747 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
21748 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
21749
21750 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
21751
e179b2f4 217522007-10-15 Robert Millan <rmh@aybabtu.com>
21753
21754 * normal/misc.c (grub_normal_print_device_info): Do not probe for
21755 filesystem when dev->disk is unset.
21756 Do probe for filesystem even when dev->disk->has_partitions is set.
21757 In case a filesystem is found, always report it.
21758 In case it isn't, if dev->disk->has_partitions is set, report that
21759 a partition table was found instead of reporting that no filesystem
21760 could be identified.
21761
5db82af6 217622007-10-12 Robert Millan <rmh@aybabtu.com>
21763
21764 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
21765 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
21766
68f6ac74 21767 * include/grub/types.h (grub_host_to_target16): New macro.
21768 (grub_host_to_target32): Likewise.
21769 (grub_host_to_target64): Likewise.
21770 (grub_target_to_host16): Likewise.
21771 (grub_target_to_host32): Likewise.
21772 (grub_target_to_host64): Likewise.
5db82af6 21773
21774 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21775 Renamed from to ...
21776 (GRUB_MOD_ALIGN): ...this. Update all users.
21777
68f6ac74 21778 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
21779 grub_host_to_target32.
21780 Replace grub_be_to_cpu32 with grub_target_to_host32.
21781 (load_modules): Likewise.
21782 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
21783 Replace grub_be_to_cpu32 with grub_target_to_host32.
21784 Replace grub_cpu_to_be16 with grub_host_to_target16.
21785 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 21786
3cf497cc 217872007-10-12 Robert Millan <rmh@aybabtu.com>
21788
21789 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
21790 * util/elf/grub-mkimage.c: ... here.
21791
21792 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
21793 `util/powerpc/ieee1275/grub-mkimage.c'.
21794
c8cc3692 217952007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 21796
c8cc3692 21797 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
21798 and make it easier to figure out.
21799 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
21800 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
21801 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
21802 leave us with less than HEAP_MIN_SIZE total heap.
21803 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 21804
5c58b791 218052007-10-03 Robert Millan <rmh@aybabtu.com>
21806
21807 * include/grub/i386/io.h: New file.
21808 * commands/i386/pc/play.c (inb): Removed.
21809 (outb): Removed.
21810 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21811 with grub_outb().
afcd2ef8 21812 * term/i386/pc/serial.c (inb): Removed.
21813 (outb): Removed.
21814 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21815 with grub_outb().
21816 * term/i386/pc/vga.c (inb): Removed.
21817 (outb): Removed.
21818 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21819 with grub_outb().
5c58b791 21820
1a477ed6 218212007-10-02 Robert Millan <rmh@aybabtu.com>
21822
21823 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
21824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21825 Reported by Marcin Kurek.
21826
6b5d80fa 218272007-09-07 Robert Millan <rmh@aybabtu.com>
21828
21829 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
21830 SmartFirmware version updates (as released by Sven Luther), and avoid
21831 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
21832 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
21833 known broken.
21834
5618afbf 218352007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21836
21837 From Hitoshi Ozeki:
21838 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
21839 when merging two regions.
21840
6139dcd9 218412007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21842
508e39ee 21843 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
21844 * normal/completion.c (grub_normal_do_completion): Likewise.
21845 Reported by Hitoshi Ozeki.
21846
218472007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 21848
6139dcd9 21849 Do not use devices at boot in chainloading.
f19dbdb7 21850
6139dcd9 21851 * loader/i386/pc/chainloader.c (boot_drive): New variable.
21852 (boot_part_addr): Likewise.
21853 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
21854 with BOOT_DRIVE and BOOT_PART_ADDR.
21855 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
21856 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
21857
38da6516 218582007-08-29 Robert Millan <rmh@aybabtu.com>
21859
21860 Patch from Simon Peter <dn.tlp@gmx.net>:
21861 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
21862 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
21863 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
21864 util/i386/pc/grub-setup.c_DEPENDENCIES.
21865 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
21866 util/grub-probe.c_DEPENDENCIES.
21867 * conf/powerpc-ieee1275.rmk: Likewise.
21868
29d0928c 218692007-08-28 Robert Millan <rmh@aybabtu.com>
21870
21871 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
21872 to tell grub-mkdevicemap how to name devices.
21873 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
21874 feature).
21875
21876 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
21877 util/i386/get_disk_name.c.
21878 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
21879 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
21880 util/ieee1275/get_disk_name.c.
21881
21882 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
21883
21884 * DISTLIST: Add util/i386/get_disk_name.c and
21885 util/ieee1275/get_disk_name.c.
21886
21887 * util/grub-mkdevicemap.c: Replace device naming logic with
21888 grub_util_get_disk_name() calls.
21889
5a0d3cca 218902007-08-20 Robert Millan <rmh@aybabtu.com>
21891
21892 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
21893 (so that it works for both plural and singular quantities).
21894
8b72db2f 218952007-08-05 Robert Millan <rmh@aybabtu.com>
21896
21897 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
21898 so that [xz] isn't taken into account when determining order.
21899
352466bf 219002007-08-02 Marco Gerards <marco@gnu.org>
21901
21902 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
21903 `include/multiboot2.h', `include/grub/elfload.h',
21904 `include/multiboot.h', `include/grub/multiboot.h',
21905 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
21906 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
21907 `kern/elf.c', `loader/multiboot_loader.c',
21908 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
21909 `loader/i386/pc/multiboot2.c',
21910 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
21911 `util/i386/pc/grub-mkrescue.in'. Remove
21912 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
21913 `include/grub/i386/pc/util/biosdisk.h' and
21914 `include/grub/powerpc/ieee1275/multiboot.h'.
21915
8f096014 219162007-08-02 Bean <bean123ch@gmail.com>
21917
21918 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
21919 (ntfs_mod_SOURCES): New variable.
21920 (ntfs_mod_CFLAGS): Likewise.
21921 (ntfs_mod_LDFLAGS): Likewise.
21922
21923 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
21924 (grub_probe_SOURCES): Likewise.
21925 (grub_emu_SOURCES): Likewise.
21926
21927 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21928 (grub_emu_SOURCES): Likewise.
21929
21930 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21931 (grub_emu_SOURCES): Likewise.
f19dbdb7 21932
8f096014 21933 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
21934
21935 * fs/ntfs.c: New file.
21936
9959f7db 219372007-08-02 Bean <bean123ch@gmail.com>
21938
21939 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
21940
21941 * file.h (grub_file): Likewise.
21942
21943 * fshelp.h (grub_fshelp_read_file): Likewise.
21944
21945 * util/i386/pc/grub-setup.c (setup): Likewise.
21946 (save_first_sector): Likewise.
21947 (save_blocklists): Likewise.
f19dbdb7 21948
9959f7db 21949 * fs/affs.c (grub_affs_read_file): Likewise.
21950
21951 * fs/ext2.c (grub_ext2_read_file): Likewise.
21952
21953 * fs/fat.c (grub_fat_read_data): Likewise.
21954
21955 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
21956
21957 * fs/hfs.c (grub_hfs_read_file): Likewise.
21958
21959 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21960
21961 * fs/jfs.c (grub_jfs_read_file): Likewise.
21962
21963 * fs/minix.c (grub_minix_read_file): Likewise.
21964
21965 * fs/sfs.c (grub_sfs_read_file): Likewise.
21966
21967 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 21968
9959f7db 21969 * fs/xfs.c (grub_xfs_read_file): Likewise.
21970
21971 * command/blocklist.c (read_blocklist): Likewise.
21972 (print_blocklist): Likewise.
21973
0a203f83 219742007-08-02 Marco Gerards <marco@gnu.org>
21975
21976 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
21977 `util/hostfs.c'.
21978
21979 * disk/host.c: New file.
21980
21981 * util/hostfs.c: Likewise.
21982
21983 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
21984 return `GRUB_ERR_BAD_FS'.
21985 * fs/sfs.c (grub_sfs_mount): Likewise.
21986 * fs/xfs.c (grub_xfs_mount): Likewise.
21987
21988 * include/grub/disk.h (enum grub_disk_dev_id): Add
21989 `GRUB_DISK_DEVICE_HOST_ID'.
21990
21991 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
21992
e5dfe777 219932007-07-24 Jerone Young <jerone@gmail.com>
21994
f19dbdb7 21995 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 21996 modules for compilation.
21997 * conf/powerpc-ieee1275.rmk: Likewise.
21998
21999 * include/multiboot.h: Move multiboot definitions to one file. Rename
22000 many definitions to not get grub specific.
22001 * include/multiboot2.h: Create header with multiboot 2 definitions.
22002 * include/grub/multiboot.h: Header for grub specific function
22003 prototypes and definitions.
22004 * include/grub/multiboot2.h: Likewise.
22005 * include/grub/multiboot_loader.h: Likewise.
22006 * include/grub/i386/pc/multiboot.h: Removed.
22007 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
22008
22009 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
22010 and 2 to allow for one multiboot and module commands.
22011 * loader/multiboot2.c: Add multiboot2 functionality.
22012 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
22013 and definition names.
22014 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
22015 2 functions.
22016 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
22017 ieee1275 specific multiboot2 code.
22018
22019 * kern/i386/pc/startup.S: Change headers and definition names for
22020 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
22021
daf0f0ba 220222007-07-22 Robert Millan <rmh@aybabtu.com>
22023
22024 * geninitheader.sh: Process file specified in first parameter rather
22025 than hardcoding grub_modules_init.lst.
fe6b695a 22026 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 22027 than hardcoding grub_modules_init.h.
22028
22029 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
22030 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
22031 grub_probe_init.[ch] and grub_setup_init.[ch].
22032
22033 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
22034 grub_modules_init.h with grub_emu_init.h.
22035 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
22036 grub_probe_init.[ch] files.
22037 * conf/i386-efi.rmk: Likewise.
22038 * conf/i386-pc.rmk: Likewise.
22039 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
22040 grub_setup_init.[ch] files.
22041
22042 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
22043 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
22044 to initialize modules rather than a list of hardcoded functions.
22045 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
22046 grub_init_all() to initialize modules rather than a list of hardcoded
22047 functions.
22048
54cdc1cc 220492007-07-22 Robert Millan <rmh@aybabtu.com>
22050
22051 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22052 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
22053
ad0686cc 220542007-07-22 Robert Millan <rmh@aybabtu.com>
22055
22056 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
22057 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
22058 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
22059 flag when running on SmartFirmware.
22060 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
22061 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
22062 was set.
22063
22064 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22065 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
22066 rather than decreasing it.
22067
22068 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
22069 there's not enough space to do it, fail in the same way as when it
22070 can't be done because there are no partitions.
22071
22072 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
22073 when nvsetenv failed.
22074
969c02ec 220752007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
22076
22077 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
22078 because this rule is automatically generated.
22079 (grub-mkrescue): Removed for the same reason as above.
22080
5a79f472 220812007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
22082
22083 Migrate to GNU General Public License Version 3.
f19dbdb7 22084
5a79f472 22085 * COPYING: Replaced with the plain text version of GPLv3.
22086
22087 * config.guess: Updated from gnulib.
22088 * config.sub: Likewise.
22089
22090 * geninit.sh: Output a GPLv3 copyright notice.
22091 * geninitheader.sh: Likewise.
22092 * genmodsrc.sh: Likewise.
22093 * gensymlist.sh.in: Likewise.
22094
22095 * boot/i386/pc/boot.S: Upgraded to GPLv3.
22096 * boot/i386/pc/diskboot.S: Likewise.
22097 * boot/i386/pc/pxeboot.S: Likewise.
22098 * commands/blocklist.c: Likewise.
22099 * commands/boot.c: Likewise.
22100 * commands/cat.c: Likewise.
22101 * commands/cmp.c: Likewise.
22102 * commands/configfile.c: Likewise.
22103 * commands/echo.c: Likewise.
22104 * commands/help.c: Likewise.
22105 * commands/ls.c: Likewise.
22106 * commands/search.c: Likewise.
22107 * commands/terminal.c: Likewise.
22108 * commands/test.c: Likewise.
22109 * commands/videotest.c: Likewise.
22110 * commands/i386/cpuid.c: Likewise.
22111 * commands/i386/pc/halt.c: Likewise.
22112 * commands/i386/pc/play.c: Likewise.
22113 * commands/i386/pc/reboot.c: Likewise.
22114 * commands/i386/pc/vbeinfo.c: Likewise.
22115 * commands/i386/pc/vbetest.c: Likewise.
22116 * commands/ieee1275/halt.c: Likewise.
22117 * commands/ieee1275/reboot.c: Likewise.
22118 * commands/ieee1275/suspend.c: Likewise.
22119 * disk/loopback.c: Likewise.
22120 * disk/lvm.c: Likewise.
22121 * disk/raid.c: Likewise.
22122 * disk/efi/efidisk.c: Likewise.
22123 * disk/i386/pc/biosdisk.c: Likewise.
22124 * disk/ieee1275/ofdisk.c: Likewise.
22125 * font/manager.c: Likewise.
22126 * fs/affs.c: Likewise.
22127 * fs/ext2.c: Likewise.
22128 * fs/fat.c: Likewise.
22129 * fs/fshelp.c: Likewise.
22130 * fs/hfs.c: Likewise.
22131 * fs/hfsplus.c: Likewise.
22132 * fs/iso9660.c: Likewise.
22133 * fs/jfs.c: Likewise.
22134 * fs/minix.c: Likewise.
22135 * fs/sfs.c: Likewise.
22136 * fs/ufs.c: Likewise.
22137 * fs/xfs.c: Likewise.
22138 * hello/hello.c: Likewise.
22139 * include/grub/acorn_filecore.h: Likewise.
22140 * include/grub/arg.h: Likewise.
22141 * include/grub/bitmap.h: Likewise.
22142 * include/grub/boot.h: Likewise.
22143 * include/grub/cache.h: Likewise.
22144 * include/grub/device.h: Likewise.
22145 * include/grub/disk.h: Likewise.
22146 * include/grub/dl.h: Likewise.
22147 * include/grub/elfload.h: Likewise.
22148 * include/grub/env.h: Likewise.
22149 * include/grub/err.h: Likewise.
22150 * include/grub/file.h: Likewise.
22151 * include/grub/font.h: Likewise.
22152 * include/grub/fs.h: Likewise.
22153 * include/grub/fshelp.h: Likewise.
22154 * include/grub/gzio.h: Likewise.
22155 * include/grub/hfs.h: Likewise.
22156 * include/grub/kernel.h: Likewise.
22157 * include/grub/loader.h: Likewise.
22158 * include/grub/lvm.h: Likewise.
22159 * include/grub/misc.h: Likewise.
22160 * include/grub/mm.h: Likewise.
22161 * include/grub/net.h: Likewise.
22162 * include/grub/normal.h: Likewise.
22163 * include/grub/parser.h: Likewise.
22164 * include/grub/partition.h: Likewise.
22165 * include/grub/pc_partition.h: Likewise.
22166 * include/grub/raid.h: Likewise.
22167 * include/grub/rescue.h: Likewise.
22168 * include/grub/script.h: Likewise.
22169 * include/grub/setjmp.h: Likewise.
22170 * include/grub/symbol.h: Likewise.
22171 * include/grub/term.h: Likewise.
22172 * include/grub/terminfo.h: Likewise.
22173 * include/grub/tparm.h: Likewise.
22174 * include/grub/types.h: Likewise.
22175 * include/grub/video.h: Likewise.
22176 * include/grub/efi/api.h: Likewise.
22177 * include/grub/efi/chainloader.h: Likewise.
22178 * include/grub/efi/console.h: Likewise.
22179 * include/grub/efi/console_control.h: Likewise.
22180 * include/grub/efi/disk.h: Likewise.
22181 * include/grub/efi/efi.h: Likewise.
22182 * include/grub/efi/pe32.h: Likewise.
22183 * include/grub/efi/time.h: Likewise.
22184 * include/grub/i386/linux.h: Likewise.
22185 * include/grub/i386/setjmp.h: Likewise.
22186 * include/grub/i386/types.h: Likewise.
22187 * include/grub/i386/efi/kernel.h: Likewise.
22188 * include/grub/i386/efi/loader.h: Likewise.
22189 * include/grub/i386/efi/time.h: Likewise.
22190 * include/grub/i386/pc/biosdisk.h: Likewise.
22191 * include/grub/i386/pc/boot.h: Likewise.
22192 * include/grub/i386/pc/chainloader.h: Likewise.
22193 * include/grub/i386/pc/console.h: Likewise.
22194 * include/grub/i386/pc/init.h: Likewise.
22195 * include/grub/i386/pc/kernel.h: Likewise.
22196 * include/grub/i386/pc/loader.h: Likewise.
22197 * include/grub/i386/pc/memory.h: Likewise.
22198 * include/grub/i386/pc/multiboot.h: Likewise.
22199 * include/grub/i386/pc/serial.h: Likewise.
22200 * include/grub/i386/pc/time.h: Likewise.
22201 * include/grub/i386/pc/vbe.h: Likewise.
22202 * include/grub/i386/pc/vbeblit.h: Likewise.
22203 * include/grub/i386/pc/vbefill.h: Likewise.
22204 * include/grub/i386/pc/vbeutil.h: Likewise.
22205 * include/grub/i386/pc/vga.h: Likewise.
22206 * include/grub/ieee1275/ieee1275.h: Likewise.
22207 * include/grub/ieee1275/ofdisk.h: Likewise.
22208 * include/grub/powerpc/libgcc.h: Likewise.
22209 * include/grub/powerpc/setjmp.h: Likewise.
22210 * include/grub/powerpc/types.h: Likewise.
22211 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
22212 * include/grub/powerpc/ieee1275/console.h: Likewise.
22213 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
22214 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
22215 * include/grub/powerpc/ieee1275/loader.h: Likewise.
22216 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
22217 * include/grub/powerpc/ieee1275/time.h: Likewise.
22218 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
22219 * include/grub/sparc64/libgcc.h: Likewise.
22220 * include/grub/sparc64/setjmp.h: Likewise.
22221 * include/grub/sparc64/types.h: Likewise.
22222 * include/grub/sparc64/ieee1275/console.h: Likewise.
22223 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
22224 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22225 * include/grub/sparc64/ieee1275/time.h: Likewise.
22226 * include/grub/util/biosdisk.h: Likewise.
22227 * include/grub/util/getroot.h: Likewise.
22228 * include/grub/util/lvm.h: Likewise.
22229 * include/grub/util/misc.h: Likewise.
22230 * include/grub/util/raid.h: Likewise.
22231 * include/grub/util/resolve.h: Likewise.
22232 * io/gzio.c: Likewise.
22233 * kern/device.c: Likewise.
22234 * kern/disk.c: Likewise.
22235 * kern/dl.c: Likewise.
22236 * kern/elf.c: Likewise.
22237 * kern/env.c: Likewise.
22238 * kern/err.c: Likewise.
22239 * kern/file.c: Likewise.
22240 * kern/fs.c: Likewise.
22241 * kern/loader.c: Likewise.
22242 * kern/main.c: Likewise.
22243 * kern/misc.c: Likewise.
22244 * kern/mm.c: Likewise.
22245 * kern/parser.c: Likewise.
22246 * kern/partition.c: Likewise.
22247 * kern/rescue.c: Likewise.
22248 * kern/term.c: Likewise.
22249 * kern/efi/efi.c: Likewise.
22250 * kern/efi/init.c: Likewise.
22251 * kern/efi/mm.c: Likewise.
22252 * kern/i386/dl.c: Likewise.
22253 * kern/i386/efi/init.c: Likewise.
22254 * kern/i386/efi/startup.S: Likewise.
22255 * kern/i386/pc/init.c: Likewise.
22256 * kern/i386/pc/lzo1x.S: Likewise.
22257 * kern/i386/pc/startup.S: Likewise.
22258 * kern/ieee1275/ieee1275.c: Likewise.
22259 * kern/powerpc/cache.S: Likewise.
22260 * kern/powerpc/dl.c: Likewise.
22261 * kern/powerpc/ieee1275/cmain.c: Likewise.
22262 * kern/powerpc/ieee1275/crt0.S: Likewise.
22263 * kern/powerpc/ieee1275/init.c: Likewise.
22264 * kern/powerpc/ieee1275/openfw.c: Likewise.
22265 * kern/sparc64/cache.S: Likewise.
22266 * kern/sparc64/dl.c: Likewise.
22267 * kern/sparc64/ieee1275/init.c: Likewise.
22268 * kern/sparc64/ieee1275/openfw.c: Likewise.
22269 * loader/efi/chainloader.c: Likewise.
22270 * loader/efi/chainloader_normal.c: Likewise.
22271 * loader/i386/efi/linux.c: Likewise.
22272 * loader/i386/efi/linux_normal.c: Likewise.
22273 * loader/i386/pc/chainloader.c: Likewise.
22274 * loader/i386/pc/chainloader_normal.c: Likewise.
22275 * loader/i386/pc/linux.c: Likewise.
22276 * loader/i386/pc/linux_normal.c: Likewise.
22277 * loader/i386/pc/multiboot.c: Likewise.
22278 * loader/i386/pc/multiboot_normal.c: Likewise.
22279 * loader/powerpc/ieee1275/linux.c: Likewise.
22280 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
22281 * normal/arg.c: Likewise.
22282 * normal/cmdline.c: Likewise.
22283 * normal/command.c: Likewise.
22284 * normal/completion.c: Likewise.
22285 * normal/execute.c: Likewise.
22286 * normal/function.c: Likewise.
22287 * normal/lexer.c: Likewise.
22288 * normal/main.c: Likewise.
22289 * normal/menu.c: Likewise.
22290 * normal/menu_entry.c: Likewise.
22291 * normal/misc.c: Likewise.
22292 * normal/parser.y: Likewise.
22293 * normal/script.c: Likewise.
22294 * normal/i386/setjmp.S: Likewise.
22295 * normal/powerpc/setjmp.S: Likewise.
22296 * normal/sparc64/setjmp.S: Likewise.
22297 * partmap/acorn.c: Likewise.
22298 * partmap/amiga.c: Likewise.
22299 * partmap/apple.c: Likewise.
22300 * partmap/gpt.c: Likewise.
22301 * partmap/pc.c: Likewise.
22302 * partmap/sun.c: Likewise.
22303 * term/gfxterm.c: Likewise.
22304 * term/terminfo.c: Likewise.
22305 * term/efi/console.c: Likewise.
22306 * term/i386/pc/console.c: Likewise.
22307 * term/i386/pc/serial.c: Likewise.
22308 * term/i386/pc/vesafb.c: Likewise.
22309 * term/i386/pc/vga.c: Likewise.
22310 * term/ieee1275/ofconsole.c: Likewise.
22311 * util/biosdisk.c: Likewise.
22312 * util/console.c: Likewise.
22313 * util/genmoddep.c: Likewise.
22314 * util/getroot.c: Likewise.
22315 * util/grub-emu.c: Likewise.
22316 * util/grub-mkdevicemap.c: Likewise.
22317 * util/grub-probe.c: Likewise.
22318 * util/lvm.c: Likewise.
22319 * util/misc.c: Likewise.
22320 * util/raid.c: Likewise.
22321 * util/resolve.c: Likewise.
22322 * util/update-grub.in: Likewise.
22323 * util/update-grub_lib.in: Likewise.
22324 * util/grub.d/00_header.in: Likewise.
22325 * util/grub.d/10_hurd.in: Likewise.
22326 * util/grub.d/10_linux.in: Likewise.
22327 * util/i386/efi/grub-install.in: Likewise.
22328 * util/i386/efi/grub-mkimage.c: Likewise.
22329 * util/i386/pc/grub-install.in: Likewise.
22330 * util/i386/pc/grub-mkimage.c: Likewise.
22331 * util/i386/pc/grub-mkrescue.in: Likewise.
22332 * util/i386/pc/grub-setup.c: Likewise.
22333 * util/i386/pc/misc.c: Likewise.
22334 * util/powerpc/ieee1275/grub-install.in: Likewise.
22335 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
22336 * util/powerpc/ieee1275/misc.c: Likewise.
22337 * video/bitmap.c: Likewise.
22338 * video/video.c: Likewise.
22339 * video/i386/pc/vbe.c: Likewise.
22340 * video/i386/pc/vbeblit.c: Likewise.
22341 * video/i386/pc/vbefill.c: Likewise.
22342 * video/i386/pc/vbeutil.c: Likewise.
22343 * video/readers/tga.c: Likewise.
22344
3572d015 223452007-07-02 Robert Millan <rmh@aybabtu.com>
22346
22347 * conf/i386-efi.rmk: Replace obsolete reference to
22348 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
22349 with util/getroot.c.
22350 * conf/powerpc-ieee1275.rmk: Likewise.
22351 * conf/sparc64-ieee1275.rmk: Likewise.
22352
22353 * util/grub-emu.c (main): Fix unchecked pointer handling.
22354
2c2a681b 223552007-07-02 Robert Millan <rmh@aybabtu.com>
22356
22357 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
22358 invocation to fail, in order to support partition-less media.
22359
22360 * util/i386/pc/grub-install.in: Likewise.
22361
22362 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
22363 which fs or partmap modules are needed (akin to its sister scripts).
22364
22365 Also use grub-probe to get rid of unportable /proc/mounts check.
22366
22367 Print the same informational message that the other scripts do, before
fe6b695a 22368 exiting.
2c2a681b 22369
6193defe 223702007-06-23 Robert Millan <rmh@aybabtu.com>
22371
fe6b695a 22372 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 22373 a font file can be found and, if so, echo the GRUB path to it.
22374
22375 * util/update-grub.in: Handle multiple terminals depending on user
22376 input, platform availability and font file presence. Propagate
22377 variables of our findings to /etc/grub.d/ children.
22378
22379 * util/grub.d/00_header.in: Handle multiple terminals, based on
22380 environment setup by update-grub.
22381
eface1dc 223822007-06-23 Robert Millan <rmh@aybabtu.com>
22383
ba50d28f 22384 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 22385
bf697e28 223862007-06-21 Robert Millan <rmh@aybabtu.com>
22387
22388 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
22389 indicate end of data section in kernel image.
22390 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
22391 GRUB_KERNEL_MACHINE_DATA_END.
22392
22393 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
22394 space for it.
22395 * kern/i386/efi/startup.S: Likewise.
22396
22397 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
22398 during image generation. Implement --prefix option to override this
22399 patch.
22400 * util/i386/efi/grub-mkimage.c: Likewise.
22401
22402 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
22403 code to make path relative to its root into a separate function.
22404
22405 * util/i386/pc/grub-install.in: Use newly provided
22406 make_system_path_relative_to_its_root() to convert ${grubdir}, then
22407 pass the result to grub-install --prefix.
22408
baa574b4 224092007-06-13 Robert Millan <rmh@aybabtu.com>
22410
22411 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
22412 DEFAULT_DEVICE_MAP.
22413 * util/grub-emu.c: Use above definitions from misc.h instead of
22414 defining them.
22415 * util/grub-mkdevicemap.c: Likewise.
22416 * util/i386/pc/grub-setup.c: Likewise.
22417 * util/grub-probe.c: Likewise.
22418 (probe): Abort with grub_util_error() when either
22419 grub_guess_root_device or grub_util_get_grub_dev fails.
22420
0215dcbf 224212007-06-12 Robert Millan <rmh@aybabtu.com>
22422
22423 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
22424 "pager" assignment.
22425 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
22426 "pcdata".
22427 * util/grub-probe.c (probe): Likewise for "drive_name".
22428
8af2ab7b 224292007-06-11 Robert Millan <rmh@aybabtu.com>
22430
22431 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
22432 not just the cdrom one.
22433
59d31694 224342007-06-11 Robert Millan <rmh@aybabtu.com>
22435
22436 * util/i386/pc/grub-mkrescue.in: Add "set -e".
22437 Add --pkglibdir=DIR option to override pkglibdir.
22438 Mention --image-type=TYPE in help output.
22439 Fix --grub-mkimage (it was a no-op).
fe6b695a 22440 Abort gracefully when no parameter is given.
59d31694 22441
7ee367e4 224422007-06-11 Robert Millan <rmh@aybabtu.com>
22443
22444 * util/i386/pc/grub-mkrescue.in: New file.
22445 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
22446 * Makefile.in: Handle bin_SCRIPTS.
22447
29b0ed46 224482007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
22449
22450 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
22451 list of video modes.
22452
c0f90770 224532007-06-06 Robert Millan <rmh@aybabtu.com>
22454
22455 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
22456 file doesn't exist, or if it is in a filesystem grub can't read.
22457
22458 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
22459 not abort if GRUB_DRIVE could not be defined. Rearrange generated
22460 header comment to fit in 80 columns when the variables are resolved.
22461
22462 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
22463 could be identified by update-grub. Remove redundant check for
fe6b695a 22464 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 22465 handles that).
22466
fb36dc26 224672007-06-04 Robert Millan <rmh@aybabtu.com>
22468
22469 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
22470
22471 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
22472
22473 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
22474
0c68c93e 224752007-06-04 Robert Millan <rmh@aybabtu.com>
22476
22477 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
22478
22479 * include/grub/partition.h: Declare grub_apple_partition_map_init and
22480 grub_apple_partition_map_fini.
22481
22482 * util/biosdisk.c
22483 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
22484 to access >2 TiB disks).
22485
22486 Print disk->total_sectors with %llu instead of %lu, since this
22487 variable is always 64-bit (prevents wrong disk size from being displayed
22488 on either >2 TiB disk or big-endian CPU).
22489
22490 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
22491 into a generic case that supports all (sane) partition maps.
22492
22493 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
22494 breaks big-endian.
22495
22496 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
22497 and grub_apple_partition_map_fini() after that.
22498
0f23eb74 224992007-06-01 Robert Millan <rmh@aybabtu.com>
22500
22501 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
22502
22503 * util/grub.d/00_header.in: Only enable gfxterm when
22504 convert_system_path_to_grub_path() succeeds.
22505
42c71976 225062007-05-20 Robert Millan <rmh@aybabtu.com>
22507
22508 * util/update-grub_lib.in: New file.
22509 * DISTLIST: Add update-grub_lib.in.
22510 * conf/common.rmk: Generate update-grub_lib and install it in
22511 $(lib_DATA).
22512 * Makefile.in: Add install routine for $(lib_DATA).
22513
22514 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
22515 function provided by update-grub_lib to support arbitrary paths of
22516 unifont.pff.
22517 * util/update-grub.in: Use convert_system_path_to_grub_path() to
22518 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
22519
5beb2291 225202007-05-19 Robert Millan <rmh@aybabtu.com>
22521
22522 * commands/i386/cpuid.c: New module.
22523 * DISTLIST: Add it.
22524 * conf/i386-efi.rmk: Enable cpuid.mod.
22525 * conf/i386-pc.rmk: Likewise.
22526
7262eca1 225272007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
22528
22529 * kern/disk.c (grub_disk_read): Check return value of
22530 grub_realloc().
22531
260ba823 225322007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
22533
22534 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
22535 arrays.
22536 * disk/raid.c (grub_raid_open): Likewise.
22537
1ecb6cf2 225382007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
22539
22540 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
22541 stack instead of on the heap.
22542
22543 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
22544 before doing a read on it.
22545
22546 * configure.ac: Only use -fno-stack-protector for the target
22547 environment.
f19dbdb7 22548
21c8cbb1 225492007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
22550
22551 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
22552 __attribute_ ((unused)) to mode_type argument.
22553
22554 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 22555
21c8cbb1 22556 * kern/misc.c (memcmp): Fix prototype.
22557
22558 * include/grub/partition.h [GRUB_UTIL]
22559 (grub_gpt_partition_map_init): Add prototype.
22560 (grub_gpt_partition_map_fini): Likewise.
22561
22562 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
22563 at the right place.
22564
22565 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
22566 (grub_fat_read_data): Likewise.
22567 (grub_fat_find_dir): Likewise.
22568
22569 * font/manager.c (find_glyph): Make table a const.
22570 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 22571
849d55d3 225722007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
22573
22574 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
22575 code, first search for device in /dev/mapper, then in /dev.
22576 (grub_util_get_grub_dev): New function.
22577 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
22578 prototype.
22579 * util/grub-probe.c (probe): Remove check for RAID, call
22580 grub_util_get_grub_dev() instead of
22581 grub_util_biosdisk_get_grub_dev().
22582 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
22583 grub_util_biosdisk_get_grub_dev().
22584 * util/i386/pc/grub-setup.c (main): Likewise.
22585
8fff7c2f 225862007-05-16 Robert Millan <rmh@aybabtu.com>
22587
22588 * DISTLIST: Update for the latest changes.
22589 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
22590 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
22591 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
22592 grub/util/biosdisk.h.
22593 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
22594 grub/util/biosdisk.h.
22595
48e12b52 225962007-05-16 Robert Millan <rmh@aybabtu.com>
22597
22598 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
22599
46b9d128 226002007-05-16 Robert Millan <rmh@aybabtu.com>
22601
22602 * util/i386/efi/grub-install.in: New.
22603 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
22604 newly added grub-install.
22605 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
22606 include.
22607 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
22608 grub/util/biosdisk.h.
22609 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
22610 grub/util/biosdisk.h.
22611
2d1a40a9 226122007-05-16 Robert Millan <rmh@aybabtu.com>
22613
22614 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
22615 * include/grub/util/biosdisk.h: ... here.
22616 * util/i386/pc/biosdisk.c: Moved to ...
22617 * util/biosdisk.c: ... here.
22618 * util/i386/pc/getroot.c: Moved to ...
22619 * util/getroot.c: ... here.
22620 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
22621 * util/grub-mkdevicemap.c: ... here.
22622 * util/i386/pc/grub-probe.c: Moved to ...
22623 * util/grub-probe.c: ... here.
22624
9e26e3bc 226252007-05-15 Robert Millan <rmh@aybabtu.com>
22626
22627 * util/update-grub.in: Remove duplicated line in grub.cfg header
22628 message.
22629
57f96397 226302007-05-13 Robert Millan <rmh@aybabtu.com>
22631
22632 * util/update-grub.in: Fix a few assumptions about the devices holding
22633 /, /boot and /boot/grub being the same.
22634 * util/grub.d/00_header.in: Likewise.
22635 * util/grub.d/10_hurd.in: Likewise.
22636 * util/grub.d/10_linux.in: Likewise.
22637
22638 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
22639 patterns. Use that to define the `.old' suffix as older than `'.
22640
22641 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
22642
22643 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
22644 the grub.cfg header message.
22645
2e610d62 226462007-05-11 Robert Millan <rmh@aybabtu.com>
22647
22648 * util/update-grub.in: Create device.map if it doesn't already exist,
22649 before attempting to run grub-probe.
22650 Check for grub-probe and grub-mkdevicemap with the same code
22651 grub-install is using.
22652 Remove test mode.
22653
3f6a10ef 226542007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
22655
22656 * Makefile.in: Add the datarootdir autoconf variable.
22657
02e7b75e 226582007-05-09 Robert Millan <rmh@aybabtu.com>
22659
22660 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 22661 fail gracefully if dev->disk->partition == NULL.
02e7b75e 22662
75f396cc 226632007-05-07 Robert Millan <rmh@aybabtu.com>
22664
22665 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
22666 determine partition map module.
22667 * util/i386/pc/grub-install.in: Use this feature to decide which
22668 partition module to load, instead of hardcoding pc and gpt.
22669
da65cb36 226702007-05-07 Robert Millan <rmh@aybabtu.com>
22671
22672 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
22673 source directory differs from build directory.
22674
b57d6a91 226752007-05-05 Robert Millan <rmh@aybabtu.com>
22676
22677 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
22678 initialisation.
22679
509d00f1 226802007-05-05 Robert Millan <rmh@aybabtu.com>
22681
22682 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
22683
c48f23ef 226842007-05-05 Robert Millan <rmh@aybabtu.com>
22685
22686 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
22687 command-line arguments via ${GRUB_CMDLINE_LINUX}.
22688
20b97658 226892007-05-05 Robert Millan <rmh@aybabtu.com>
22690
22691 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
22692 (grub_probe_SOURCES): Likewise.
22693 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
22694 GPT and initialize dos_part and bsd_part accordingly.
22695 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
22696 install_bsd_part.
22697 (main): Activate gpt module for use during partition identification,
22698 and deactivate it afterwards.
22699 * util/i386/pc/grub-install.in: Add gpt module to core.img.
22700 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
22701 partition identification, and deactivate it afterwards.
22702
99123174 227032007-05-05 Robert Millan <rmh@aybabtu.com>
22704
22705 * term/i386/pc/console.c (grub_console_fini): Call
22706 grub_term_set_current() before grub_term_unregister().
22707
ebd97f6e 227082007-05-04 Robert Millan <rmh@aybabtu.com>
22709
22710 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
22711 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
22712 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
22713 and update-grub_DATA.
22714 * conf/common.rmk: Build and install update-grub components.
22715 * conf/common.mk: Regenerate.
22716 * util/update-grub.in: New. Core of update-grub.
22717 * util/grub.d/00_header.in: New. Generates grub.cfg header.
22718 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
22719 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
22720 * util/grub.d/README: New. Document grub.d directory layout.
22721
b06a264d 227222007-05-01 Robert Millan <rmh@aybabtu.com>
22723
22724 * util/grub-emu.c: Move initialization functions
22725 grub_util_biosdisk_init() and grub_init_all() before
22726 grub_util_biosdisk_get_grub_dev(), which relies on them.
22727
41f0050e 227282007-04-19 Robert Millan <rmh@aybabtu.com>
22729
22730 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
22731 it is used later.
22732
04582bb3 227332007-04-18 Jerone Young <jerone@gmail.com>
22734
f19dbdb7 22735 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 22736 stanza.
22737
08db4632 227382007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 22739
08db4632 22740 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
22741 continue on and look for device node with real device name.
22742
801b76be 227432007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 22744
fe6b695a 22745 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 22746 ability.
22747 * Makefile.in: Add autoconf package transformation code.
22748 * util/i386/pc/grub-install.in: Likewise.
22749 * util/powerpc/ieee1275/grub-install.in: Likewise.
22750
6795c4e1 227512007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
22752
22753 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
22754 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
22755 (EXT2_REVISION): Likewise.
22756 (EXT2_INODE_SIZE): Likewise.
22757 (struct grub_ext2_block_group): Added a missing member
22758 "used_dirs".
22759 (grub_ext2_read_inode): Divide by the inode size in a superblock
22760 instead of 128 to obtain INODES_PER_BLOCK.
22761 Use the macro EXT2_INODE_SIZE instead of directly using
22762 SBLOCK->INODE_SIZE.
22763
d70af616 227642007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
22765
22766 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
22767 superblock instead of the structure size to compute an
22768 offset. This fixes the problem that GRUB could not read a
22769 filesystem when inode size is different from 128-byte.
22770
3b801603 227712007-03-05 Marco Gerards <marco@gnu.org>
22772
22773 * normal/main.c (read_config_file): When "menu" is not set, create
22774 an initial context.
22775
4785bfe4 227762007-02-21 Hollis Blanchard <hollis@penguinppc.org>
22777
22778 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
22779 (HEAP_LIMIT): New macro.
22780 (grub_claim_heap): Claim memory up to `heaplimit'.
22781
a0cbb023 227822007-02-21 Hollis Blanchard <hollis@penguinppc.org>
22783
22784 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
22785 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
22786 (_start): Likewise.
22787 (grub_arch_modules_addr): Return address after `_end'.
22788 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
22789 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
22790 (add_segments): Calculate `_end' from phdr size and location.
22791 (ALIGN_UP): Moved to ...
22792 * include/grub/misc.h: here.
22793 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
22794 New macro.
22795 (GRUB_IEEE1275_MODULE_BASE): Removed.
22796
fd7d8eba 227972007-02-20 Hollis Blanchard <hollis@penguinppc.org>
22798
22799 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
22800 loop boundary.
22801
9b09e6fc 228022007-02-20 Hollis Blanchard <hollis@penguinppc.org>
22803
22804 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
22805 All users updated.
22806 (grub_elf64_load_hook_t): Likewise.
22807 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
22808 debug output.
22809
3ce27299 228102007-02-20 Hollis Blanchard <hollis@penguinppc.org>
22811
22812 * kern/mm.c: Update copyright.
22813 (grub_mm_debug): Correct syntax error.
22814 (grub_mm_dump_free): New function.
22815 (grub_debug_free): Call `grub_free'.
22816 * include/grub/mm.h: Update copyright.
22817 (grub_mm_dump_free): Add declaration.
22818
077d5fee 228192007-02-12 Hollis Blanchard <hollis@penguinppc.org>
22820
22821 * include/grub/ieee1275/ieee1275.h: Update copyright.
22822 * kern/powerpc/ieee1275/init.c: Likewise.
22823 * kern/powerpc/ieee1275/openfw.c: Likewise.
22824
22825 * loader/powerpc/ieee1275/linux.c: Likewise.
22826 * include/grub/elfload.h: Likewise.
22827 * kern/elf.c: Likewise.
22828 (grub_elf32_load): Pass `base' and `size' parameters. Update all
22829 callers.
22830 (grub_elf64_load): Likewise.
22831 (grub_elf32_load_segment): Move to a nested function.
22832 (grub_elf64_load_segment): Likewise.
22833
dc946850 228342007-02-12 Hollis Blanchard <hollis@penguinppc.org>
22835
22836 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
22837 prototype.
22838 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
22839 (grub_heap_len): Likewise.
22840 (HEAP_SIZE): New macro.
22841 (grub_claim_heap): New function.
22842 (grub_machine_init): Don't claim heap directly. Call
22843 `grub_claim_heap'.
22844 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
22845 (grub_available_iterate): New function.
22846
baa2a121 228472007-02-03 Thomas Schwinge <tschwinge@gnu.org>
22848
22849 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
22850 * configure.ac: Use it for testing the HOST and TARGET compilers.
22851
4fe9862e 228522006-12-13 Thomas Schwinge <tschwinge@gnu.org>
22853
22854 * Makefile.in (enable_grub_emu): New variable.
22855 * configure.ac (--enable-grub-emu): New option.
22856 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
22857 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
22858 * conf/i386-pc.rmk: Likewise.
22859 * conf/powerpc-ieee1275.rmk: Likewise.
22860 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
22861
a8aa5762 228622006-12-12 Marco Gerards <marco@gnu.org>
22863
22864 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
22865
22866 * kern/env.c (grub_env_unset): Don't free the member `value' when
22867 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
22868 pointer.
22869
22870 * normal/main.c (current_menu): Removed.
22871 (free_menu): Unset the `menu' environment variable.
22872 (grub_normal_menu_addentry): Make use of the environment variable
22873 `menu', instead of using the global `current_menu'. Allocate
22874 memory for the sourcecode of this entry.
22875 (read_config_file): New argument `nested', changed all callers.
22876 Only in the case of a new context, initialize a new menu. Set the
22877 `menu' environment variable.
22878 (grub_normal_execute): Don't set and unset the environment
22879 variable `menu' here anymore. Only free the menu when leaving the
22880 context.
22881
22882 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
22883 leak.
22884
957b3a3e 228852006-12-11 Marco Gerards <marco@gnu.org>
22886
22887 * normal/menu_entry.c (run): Fix off by one bug so the last line
22888 is executed. Move the loader check to outside the loop.
22889
ef875714 228902006-12-08 Hollis Blanchard <hollis@penguinppc.org>
22891
22892 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
22893
4e739985 228942006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
22895
22896 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
22897 the number of sectors. Reported by Andrey Shuvikov
22898 <mr_hyro@yahoo.com>.
f19dbdb7 22899
790707f2 229002006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
22901
22902 * kern/disk.c (grub_disk_read): When there is a read error, always
22903 try to read only the necessary data.
f19dbdb7 22904
790707f2 22905 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
22906 disk/raid.c.
22907 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
22908 prototype.
22909 [GRUB_UTIL] (grub_raid_fini): Likewise.
22910 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 22911 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 22912 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
22913 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
22914 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
22915 and grub_raid_fini().
f19dbdb7 22916
03e58196 229172006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
22918
22919 * include/grub/types.h (__unused): Rename to UNUSED.
22920 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
22921 (grub_elf64_size): Likewise.
f19dbdb7 22922
ae4f23bf 229232006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22924
22925 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
22926 grub_error_push and grub_error_pop in the error-handling path.
22927 (grub_elf32_load_segment): Only call grub_file_read with non-zero
22928 length.
22929
2166cc83 229302006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22931
22932 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
22933 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22934 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22935 (kernel_elf_SOURCES): Likewise.
22936 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
22937 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
22938 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22939 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22940 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
22941 (elf_mod_SOURCES): New variable.
22942 (elf_mod_CFLAGS): Likewise.
22943 (elf_mod_LDFLAGS): Likewise.
22944 * include/grub/types.h (__unused): New macro.
22945 * include/grub/elfload.h: New file.
22946 * kern/elf.c: Likewise.
22947 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
22948 (ELF32_LOADMASK): New macro.
22949 (ELF64_LOADMASK): Likewise.
22950 (vmlinux): Removed.
22951 (grub_linux_load32): New function.
22952 (grub_linux_load64): Likewise.
22953 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
22954 Use grub_elf_t instead of grub_file_t.
22955
a09d5aa5 229562006-11-02 Hollis Blanchard <hollis@penguinppc.org>
22957
22958 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
22959 `catch_result' to struct set_color_args.
22960
d976fc51 229612006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
22962
22963 * normal/menu.c: Include grub/script.h.
22964 * normal/menu_entry.c: Likewise.
22965 * include/grub/normal.h: Do not include grub/script.h.
22966
67507549 229672006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22968
22969 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
22970
69203a99 229712006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22972
22973 * kern/disk.c (grub_disk_open): Print debug messages when opening a
22974 disk.
22975 (grub_disk_close): Print debug messages when closing a disk.
22976 (grub_disk_read): Print debug messages when disk read fails.
22977 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
22978 filesystem type.
22979 * kern/partition.c: Include misc.h.
22980 (grub_partition_iterate): Print debug messages when detecting
22981 partition type.
22982
e2b8278c 229832006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22984
22985 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
22986 is negative.
22987 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
22988
97b2f2ff 229892006-10-26 Hollis Blanchard <hollis@penguinppc.org>
22990
22991 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22992 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
22993
6555d655 229942006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
22995
22996 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
22997 instead of sizeof(lv). Patch by Michael Guntsche.
22998
4d42b77f 229992006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
23000
23001 * disk/lvm.c: Rename VGS to VG_LIST.
23002 (grub_lvm_iterate): Change VGS->LV to VG-LV.
23003 (grub_lvm_open): Likewise.
23004 Thanks to Michael Guntsche for finding this bug.
23005
5d74d927 230062006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23007
23008 * configure.ac (AC_INIT): Bumped to 1.95.
23009
a1bb27e4 230102006-10-14 Robert Millan <rmh@aybabtu.com>
23011
23012 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
23013 with "/dev/.static/dev/md".
23014
e0994b8b 230152006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
23016
23017 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
23018 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
23019 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
23020 DRIVE_NAME are always freed.
23021
23022 * util/i386/pc/biosdisk.c (make_device_name): Add one into
23023 DOS_PART, as a DOS partition is counted from one instead of zero
23024 now. Reported by Robert Millan.
23025
ddd5cee9 230262006-10-14 Robert Millan <rmh@aybabtu.com>
23027
23028 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
23029 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
23030 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
23031 string returned by grub_guess_root_device.
23032 * util/i386/pc/grub-setup.c: Likewise.
23033 * util/i386/pc/grub-probefs.c: Likewise.
23034
23035 * util/i386/pc/grub-probefs.c: Rename to ...
23036 * util/i386/pc/grub-probe.c: ... this.
23037 * DISTLIST: Remove grub-probefs, add grub-probe.
23038 * conf/i386-efi.rmk: Likewise.
23039 * conf/i386-pc.rmk: Likewise.
23040 * util/i386/pc/grub-install.in: Likewise.
23041
23042 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
23043 choose which information we want to print.
23044
2b002173 230452006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
23046
23047 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
23048 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
23049 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
23050 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
23051 video/readers/tga.c and video/i386/pc/vbeutil.c.
23052
230532006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
23054
23055 Added support for RAID and LVM.
f19dbdb7 23056
2b002173 23057 * disk/lvm.c: New file.
23058 * disk/raid.c: Likewise.
23059 * include/grub/lvm.h: Likewise.
f19dbdb7 23060 * include/grub/raid.h: Likewise.
2b002173 23061 * include/grub/util/lvm.h: Likewise.
23062 * include/grub/util/raid.h: Likewise.
23063 * util/lvm.c: Likewise.
23064 * util/raid.c: Likewise.
23065
23066 * include/grub/disk.h (grub_disk_dev_id): Add
23067 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
23068 (grub_disk_get_size): New prototype.
23069 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
23070 returns a partition.
23071 (grub_disk_get_size): New function.
f19dbdb7 23072
2b002173 23073 * kern/i386/pc/init.c (make_install_device): Copy the prefix
23074 verbatim if grub_install_dos_part is -2.
23075
23076 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
23077 and LVM devices.
23078
23079 * util/i386/pc/grub-setup.c (setup): New argument
23080 MUST_EMBED. Force embedding of GRUB when the argument is
23081 true. Close FILE before returning.
23082 (main): Add support for RAID and LVM.
f19dbdb7 23083
2b002173 23084 * conf/common.rmk: Add RAID and LVM modules.
23085 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
23086 util/lvm.c.
23087 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
23088
23089 * kern/misc.c (grub_strstr): New function.
23090 * include/grub/misc.h (grub_strstr): New prototype.
23091
050548d0 230922006-10-10 Tristan Gingold <tristan.gingold@bull.net>
23093
23094 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
23095
da849d2d 230962006-10-05 Tristan Gingold <tristan.gingold@bull.net>
23097
23098 * kern/misc.c (grub_strtoull): Guess the base only if not
23099 specified.
23100
97b2f2ff 231012006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 23102
23103 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
23104 PowerMac support.
23105
97b2f2ff 231062006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 23107
23108 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
23109
23110 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
23111 Remove `flags' argument. All callers changed.
23112 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
23113 (IEEE1275_IHANDLE_INVALID): New variable.
23114 (IEEE1275_CELL_INVALID): New variable.
23115 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
23116 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
23117 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
23118 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
23119 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
23120 codes from Open Firmware. All callers updated.
23121 (grub_ieee1275_next_property): Directly return Open Firmware return
23122 code.
23123 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
23124 Standardize error checking from `grub_ieee1275_get_property'.
23125 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
23126 `devalias' to `aliases'. Correct comments. Consolidate error paths.
23127
97b2f2ff 231282006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 23129
23130 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
23131 `instance_to_package_args' to `instance_to_path_args'.
23132
23133 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
23134 `grub_ieee1275_chosen'.
23135
23136 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
23137 `grub_ieee1275_interpret'.
23138
97b2f2ff 231392006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 23140
23141 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
23142
97b2f2ff 231432006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 23144
23145 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
23146 (__cmpdi): Likewise.
23147
23148 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
23149 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
23150 `grub_ssize_t'.
23151
02bb8acc 23152 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 23153
23154 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
23155 to type `grub_ssize_t'.
23156 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
23157
7f9a8531 231582006-09-22 Marco Gerards <marco@gnu.org>
23159
23160 * normal/script.c (grub_script_create_cmdmenu): Skip leading
23161 newlines.
23162
b5ef1102 231632006-09-22 Marco Gerards <marco@gnu.org>
23164
23165 * commands/echo.c: New file.
23166
23167 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
23168
23169 * conf/common.rmk (echo_mod_SOURCES): New variable.
23170 (echo_mod_CFLAGS): Likewise.
23171 (echo_mod_LDFLAGS): Likewise.
23172
2cff3677 231732006-09-22 Marco Gerards <marco@gnu.org>
23174
23175 * normal/main.c (get_line): Malloc memory instead of using
23176 preallocated memory. Removed the arguments `cmdline' and
23177 `max_len'. Updated all callers.
23178
6ba4688b 231792006-09-22 Marco Gerards <marco@gnu.org>
23180
23181 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
23182 (normal_mod_DEPENDENCIES): Likewise.
23183
23184 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
23185 (normal_mod_DEPENDENCIES): Likewise.
23186
23187 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
23188
e02ac02c 231892006-09-22 Johan Rydberg <jrydberg@gnu.org>
23190
23191 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
23192 programs.
23193 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
23194 (normal_mod_DEPENDENCIES): Likewise.
23195 * conf/i386-pc.mk: Regenerate.
23196 * conf/i386-efi.mk: Likewise
23197 * conf/common.mk: Likewise.
23198 * conf/powerpc-ieee1275.mk: Likewise.
23199 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 23200
8d252e44 232012006-09-22 Robert Millan <rmh@aybabtu.com>
23202
23203 Sync with i386 version.
23204 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
23205 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
23206
209bf7ac 232072006-09-21 Robert Millan <rmh@aybabtu.com>
23208
23209 Import from GRUB Legacy (lib/device.c):
23210 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
23211 (init_device_map) [__linux__]: Add support for I2O devices.
23212
6b146090 232132006-09-14 Marco Gerards <marco@gnu.org>
23214
23215 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
23216 `-melf_i386'.
23217
e38600a8 232182006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 23219
23220 * util/i386/pc/grub-install.in: Skip menu.lst when removing
23221 /boot/grub/*.lst.
78fa1790 23222
2952da5d 23223 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 23224
2952da5d 23225 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
23226 before adding it to device.map.
23227
01b82a64 232282006-08-15 Johan Rydberg <jrydberg@gnu.org>
23229
fe6b695a 23230 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 23231 compiles a file; using the -MD option.
23232 * conf/common.mk: Regenerate.
23233 * conf/i386-pc.mk: Likewise.
23234 * conf/i386-efi.mk: Likewise.
23235 * conf/powerpc-ieee1275.mk: Likewise.
23236 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 23237
1064790d 232382006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
23239
23240 Move the prototypes of grub_setjmp and grub_longjmp to
23241 cpu/setjmp.h, so that each architecture may specify different
23242 attributes.
f19dbdb7 23243
1064790d 23244 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
23245 (grub_longjmp): Likewise.
23246 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
23247 (grub_longjmp): Likewise.
23248 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
23249 (grub_longjmp): Likewise.
23250
23251 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
23252 [!GRUB_UTIL] (grub_longjmp): Removed.
23253
29dda3ed 232542006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
23255
23256 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
23257 "color!" method does not return any value.
23258
ad2a06ed 232592006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
23260
23261 * include/grub/bitmap.h: New file.
23262
23263 * include/grub/i386/pc/vbeutil.h: Likewise.
23264
23265 * video/bitmap.c: Likewise.
23266
23267 * video/readers/tga.c: Likewise.
23268
23269 * video/i386/pc/vbeutil.c: Likewise.
23270
23271 * commands/videotest.c: Code cleanup and updated to reflect to new
23272 video API.
23273
23274 * term/gfxterm.c: Likewise.
23275
23276 * video/video.c: Likewise.
23277
23278 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
23279 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
23280 (bitmap_mod_SOURCES): New entry.
23281 (bitmap_mod_CFLAGS): Likewise.
23282 (bitmap_mod_LDFLAGS): Likewise.
23283 (tga_mod_SOURCES): Likewise.
23284 (tga_mod_CFLAGS): Likewise.
23285 (tga_mod_LDFLAGS): Likewise.
23286
23287 * include/grub/video.h (grub_video_blit_operators): New enum type.
23288 (grub_video_render_target): Changed as forward declaration and moved
23289 actual definition to be video driver specific.
23290 (grub_video_adapter.blit_bitmap): Added blitting operator.
23291 (grub_video_adapter.blit_render_target): Likewise.
23292 (grub_video_blit_bitmap): Likewise.
23293 (grub_video_blit_render_target): Likewise.
23294
23295 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
23296 driver specific render target definition.
23297 (grub_video_vbe_map_rgba): Added driver internal helper.
23298 (grub_video_vbe_unmap_color): Updated to use
23299 grub_video_i386_vbeblit_info.
23300 (grub_video_vbe_get_video_ptr): Likewise.
23301
23302 * include/grub/i386/pc/vbeblit.h
23303 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
23304 grub_video_i386_vbeblit_info.
23305 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23306 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23307 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23308 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23309 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23310 (grub_video_i386_vbeblit_index_index): Likewise.
23311 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
23312 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23313 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23314 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
23315 operator.
23316 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
23317 operator.
23318
23319 * video/i386/pc/vbeblit.c: Updated to reflect changes on
23320 include/grub/i386/pc/vbeblit.h.
23321
23322 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
23323 Updated to use grub_video_i386_vbeblit_info.
23324 (grub_video_i386_vbefill_R8G8B8): Likewise.
23325 (grub_video_i386_vbefill_index): Likewise.
23326 (grub_video_i386_vbefill): Added generic filler.
23327
23328 * video/i386/pc/vbefill.c: Updated to reflect changes on
23329 include/grub/i386/pc/vbefill.h.
23330
23331 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
23332 grub_video_i386_vbeblit_info.
23333 (grub_video_vbe_unmap_color): Likewise.
23334 (grub_video_vbe_blit_glyph): Likewise.
23335 (grub_video_vbe_scroll): Likewise.
23336 (grub_video_vbe_draw_pixel): Removed function.
23337 (grub_video_vbe_get_pixel): Likewise.
23338 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
23339 updated code to use it.
23340 (common_blitter): Added common blitter for render target and bitmap.
23341 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
23342 (grub_video_vbe_blit_render_target): Likewise.
23343
bc8c036d 233442006-07-30 Johan Rydberg <jrydberg@gnu.org>
23345
23346 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
23347 is in text mode if there is no console control protocol instance
23348 available.
23349
684a8eff 233502006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
23351
23352 * include/grub/video.h: Code cleanup.
23353
23354 * include/grub/i386/pc/vbe.h: Likewise.
23355
23356 * video/i386/pc/vbe.c: Likewise.
23357
23358 * video/i386/pc/vbeblit.c: Likewise.
23359
23360 * video/i386/pc/vbefill.c: Likewise.
23361
23362 * video/video.c: Likewise. Also added more comments.
23363
5915059b 233642006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
23365
23366 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
23367 (struct grub_biosdisk_dap): Likewise.
23368
23369 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
23370 linkage settings for all functions.
23371
90ce5d56 233722006-07-12 Marco Gerards <marco@gnu.org>
23373
23374 * configure.ac (--enable-mm-debug): Fix typo.
23375
23376 * genkernsyms.sh.in: Use proper quoting for `CC'.
23377
43e7f879 233782006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
23379
23380 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
23381 (normal_mod_ASFLAGS): Remove "-m32".
23382
4889bdec 233832006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
23384
23385 * util/misc.c: Include config.h.
23386 [!HAVE_MEMALIGN]: Do not include malloc.h.
23387 (grub_memalign): Use posix_memalign, if present. Then, use
23388 memalign, if present. Otherwise, emit an error.
23389
23390 * util/grub-emu.c: Do not include malloc.h.
23391
23392 * include/grub/util/misc.h: Include unistd.h. This is required for
23393 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
23394 D. Eades III <hde@foobar-qux.org>.
23395
23396 * configure.ac (AC_GNU_SOURCE): Added.
23397 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
23398 type.
23399
fd39d4da 234002006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
23401
23402 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
23403 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
23404
b786f3b5 234052006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
23406
23407 * include/grub/types.h (grub_host_addr_t): Rename to
23408 grub_target_addr_t.
23409 (grub_host_off_t): Rename to grub_target_off_t.
23410 (grub_host_size_t): Rename to grub_target_size_t.
23411 (grub_host_ssize_t): Rename to grub_target_ssize_t.
23412 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
23413
23414 * include/grub/kernel.h (struct grub_module_header): Change type
23415 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
23416 (grub_module_info): Likewise.
f19dbdb7 23417
051988bb 234182006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
23419
23420 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
23421 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
23422 Velazquez <jesus.velazquez@gmail.com>.
23423
deae281b 234242006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
23425
23426 Count partitions from 1 instead of 0 in the string representation
23427 of partitions. Still use 0-based internally.
f19dbdb7 23428
deae281b 23429 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
23430 (sun_partition_map_iterate): Use grub_partition_t instead of
23431 struct grub_partition *. Cast DESC->START_CYLINDER to
23432 grub_uint64_t after converting the endian.
23433 (sun_partition_map_probe): Subtract 1 for PARTNUM.
23434 (sun_partition_map_get_name): Add 1 to P->INDEX.
23435
23436 * partmap/pc.c (grub_partition_parse): Subtract 1 for
23437 PCDATA->DOS_PART.
23438 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
23439
23440 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
23441 zero instead of one.
23442 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
23443 (gpt_partition_map_get_name): Add 1 into P->INDEX.
23444
23445 * partmap/apple.c (apple_partition_map_iterate): Change the type
23446 of POS to unsigned.
23447 (apple_partition_map_probe): Subtract 1 for PARTNUM.
23448 (apple_partition_map_get_name): Add 1 into P->INDEX.
23449
23450 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
23451 of POS to unsigned.
23452 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
23453 calculate the offset of a partition.
23454 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
23455 (amiga_partition_map_get_name): Add 1 into P->INDEX.
23456
23457 * partmap/acorn.c (acorn_partition_map_find): Change the type of
23458 SECTOR to grub_disk_addr_t.
23459 (acorn_partition_map_iterate): Likewise.
23460 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
23461 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
23462 top.
23463 (acorn_partition_map_get_name): Add 1 into P->INDEX.
23464
23465 * kern/i386/pc/init.c (make_install_device): Add 1 into
23466 GRUB_INSTALL_DOS_PART.
23467
23468 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
23469 conditional.
23470
524a1e6a 234712006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
23472
23473 Clean up the code to support 64-bit addressing in disks and
23474 files. This change is not enough for filesystems yet.
f19dbdb7 23475
524a1e6a 23476 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
23477 type of "start" to grub_uint64_t.
23478 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
23479 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
23480 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
23481 convert addresses.
23482
23483 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
23484 to grub_disk_addr_t.
23485
23486 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
23487 string.
23488
23489 * partmap/pc.c (pc_partition_map_iterate): Likewise.
23490
23491 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
23492 to char *.
23493
23494 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
23495
23496 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
23497
23498 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
23499
23500 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
23501 to grub_off_t, to detect an error from grub_file_seek.
23502 (grub_multiboot_load_elf32): Likewise.
23503
23504 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
23505 maximum unsigned long value when an overflow is detected.
23506 (grub_strtoull): New function.
23507 (grub_divmod64): Likewise.
23508 (grub_lltoa): use grub_divmod64.
23509
23510 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
23511 grub_disk_addr_t.
23512 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
23513 the pointer to next character. Use grub_strtoull instead of
23514 grub_strtoul.
23515 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
23516 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
23517 respectively.
23518
fe6b695a 23519 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 23520 return value is signed.
23521 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
23522 test if OFFSET is less than zero, as OFFSET is unsigned now.
23523
23524 * kern/disk.c (struct grub_disk_cache): Change the type of
23525 "sector" to grub_disk_addr_t.
23526 (grub_disk_cache_get_index): Change the type of SECTOR to
23527 grub_disk_addr_t. Calculate the hash with SECTOR casted to
23528 unsigned after shifting.
23529 (grub_disk_cache_invalidate): Change the type of SECTOR to
23530 grub_disk_addr_t.
23531 (grub_disk_cache_unlock): Likewise.
23532 (grub_disk_cache_store): Likewise.
23533 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
23534 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
23535 grub_disk_addr_t and grub_uint64_t, respectively.
23536 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
23537 body, as the value of OFFSET is tweaked by
23538 grub_disk_check_range. Change the types of START_SECTOR, LEN and
23539 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
23540 respectively.
23541 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
23542 body, as the value of OFFSET is tweaked by
23543 grub_disk_check_range. Change the types of LEN and N to
23544 grub_size_t.
23545
23546 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
23547 and "saved_offset" to grub_off_t.
23548 (test_header): Cast BUF to char *.
23549 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
23550 to char *.
23551 (grub_gzio_read): Change the types of OFFSET and SIZE to
23552 grub_off_t and grub_size_t, respectively.
23553
23554 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
23555 Removed.
23556 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
23557 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
23558 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
23559 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
23560 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
23561
23562 * include/grub/types.h (grub_off_t): Unconditionally set to
23563 grub_uint64_t.
23564 (grub_disk_addr_t): Changed to grub_uint64_t.
23565
23566 * include/grub/partition.h (struct grub_partition): Change the
23567 types of "start", "len" and "offset" to grub_disk_addr_t,
23568 grub_uint64_t and grub_disk_addr_t, respectively.
23569 (grub_partition_get_start): Return grub_disk_addr_t.
23570 (grub_partition_get_len): Return grub_uint64_t.
23571
23572 * include/grub/misc.h (grub_strtoull): New prototype.
23573 (grub_divmod64): Likewise.
23574
23575 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
23576 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
23577 grub_off_t, respectively.
23578 All callers and references changed.
23579
23580 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
23581 grub_size_t in "read".
23582 All callers and references changed.
23583
23584 * include/grub/file.h (struct grub_file): Change the types of
23585 "offset" and "size" to grub_off_t and grub_off_t,
23586 respectively. Change the type of SECTOR to grub_disk_addr_t in
23587 "read_hook".
23588 (grub_file_read): Change the type of LEN to grub_size_t.
23589 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
23590 grub_off_t.
23591 (grub_file_size): Return grub_off_t.
23592 (grub_file_tell): Likewise.
23593 All callers and references changed.
23594
23595 * include/grub/disk.h (struct grub_disk_dev): Change the types of
23596 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
23597 "write".
23598 (struct grub_disk): Change the type of "total_sectors" to
23599 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 23600 "read_hook".
524a1e6a 23601 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
23602 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
23603 (grub_disk_write): Likewise.
23604 All callers and references changed.
23605
23606 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
23607 char * for grub_strncmp to silence gcc.
23608 (grub_iso9660_mount): Likewise.
23609 (grub_iso9660_mount): Likewise.
23610 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
23611 return statement.
23612 (grub_iso9660_iterate_dir): Likewise.
23613 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
23614
23615 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
23616 LEN to grub_disk_addr_t and grub_size_t, respectively.
23617
23618 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
23619
23620 * fs/jfs.c (grub_jfs_read_file): Likewise.
23621
23622 * fs/minix.c (grub_jfs_read_file): Likewise.
23623
23624 * fs/sfs.c (grub_jfs_read_file): Likewise.
23625
23626 * fs/ufs.c (grub_jfs_read_file): Likewise.
23627
23628 * fs/xfs.c (grub_jfs_read_file): Likewise.
23629
23630 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
23631 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
23632 respectively.
23633
23634 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
23635 BLKNR to -1 instead of returning GRUB_ERRNO.
23636 (grub_ext2_read_file): Change the types of SECTOR and
23637 LEN to grub_disk_addr_t and grub_size_t, respectively.
23638
23639 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
23640 LEN to grub_disk_addr_t and grub_size_t, respectively.
23641
23642 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
23643 grub_file_read.
23644
23645 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
23646 string. Do not cast SECTOR explicitly.
23647
23648 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
23649 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
23650 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
23651 grub_disk_addr_t and grub_size_t, respectively. If the sector is
23652 over 2TB and LBA mode is not supported, raise an error.
23653 (get_safe_sectors): New function.
23654 (grub_biosdisk_read): Use get_safe_sectors.
23655 (grub_biosdisk_write): Likewise.
23656
23657 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
23658 (grub_efidisk_write): Likewise.
23659
23660 * disk/loopback.c (delete_loopback): Cosmetic changes.
23661 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
23662 correctly.
23663 (grub_loopback_open): Likewise.
23664 (grub_loopback_read): Likewise. Also, change the type of POS to
23665 grub_off_t, and fix the usage of grub_memset.
23666
23667 * commands/i386/pc/play.c: Include grub/machine/time.h.
23668
23669 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
23670 print FILE->SIZE.
23671
23672 * commands/configfile.c: Include grub/env.h.
23673
23674 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
23675 GRUB_ERRNO directly instead. Change the type of POS to
23676 grub_off_t. Follow the coding standard.
23677
23678 * commands/blocklist.c: Include grub/partition.h.
23679 (grub_cmd_blocklist): Return an error if the underlying device is
23680 not a disk. Take the starting sector of a partition into account,
23681 if a partition is used.
23682
23683 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
23684 a length field.
23685 (lba_mode): Support 64-bit addresses.
23686 (chs_mode): Likewise.
23687 (copy_buffer): Adapted to the new offsets of a length field and a
23688 segment field.
23689 (blocklist_default_start): Allocate 64-bit space.
23690
23691 * boot/i386/pc/boot.S (force_lba): Removed.
23692 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 23693 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 23694 space.
23695 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
23696 is useless.
23697 (lba_mode): Refactored to support a 64-bit address. More size
23698 optimization.
23699 (setup_sectors): Likewise.
23700
53af98ad 237012006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
23702
23703 * DISTLIST: Added include/grub/i386/linux.h. Removed
23704 include/grub/i386/pc/linux.h
23705
23706 * configure.ac (AC_INIT): Bumped to 1.94.
23707
23708 * config.guess: Updated from gnulib.
23709 * config.sub: Likewise.
23710 * install-sh: Likewise.
23711 * mkinstalldirs: Likewise.
23712
b4c1940a 237132006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
23714
23715 * conf/common.rmk (grub_modules_init.lst): Depended on
23716 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
23717 MODSRCFILES.
23718
23719 * genmk.rb (PModule::rule): Reverted the previous change.
23720
cfca1cfd 237212006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
23722
23723 * conf/common.rmk (grub_modules_init.lst): Depends on
23724 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
23725 that the target does not exist before producing.
23726 (grub_modules_init.h): Remove the target before generating.
23727 (grub_emu_init.c): Likewise.
23728
23729 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
23730
aa6d7826 237312006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
23732
23733 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
23734 for the target-specific tests. Make sure that we also have the
23735 up-to-date target variables for those tests.
23736
26c607b9 237372006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
23738
23739 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
23740 (PModule::rule): Likewise.
23741
0162321a 237422006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
23743
23744 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
23745 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
23746 target-specific flags should be prefixed.
23747 (PModule::rule): Likewise.
23748
6c826348 237492006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
23750
23751 * configure.ac (CMP): Check if cmp is available explicitly.
23752
b977bf01 237532006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
23754
23755 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
23756 (target_cpu): New variable.
23757 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 23758
b977bf01 23759 * util/i386/pc/grub-install.in (host_cpu): Removed.
23760 (target_cpu): New variable.
23761 (pkglibdir): Use target_cpu instead of host_cpu.
23762
23763 * util/genmoddep.c: Removed.
f19dbdb7 23764
b977bf01 23765 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
23766 instead of GRUB_HOST_SIZEOF_VOID_P.
23767 * kern/dl.c: Likewise.
23768
23769 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
23770 ...
23771 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
23772 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
23773 (GRUB_TARGET_SIZEOF_LONG): ... this.
23774 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
23775 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
23776 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
23777 to ...
23778 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
23779 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
23780 (GRUB_TARGET_SIZEOF_LONG): ... this.
23781 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
23782 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
23783 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
23784 to ...
23785 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
23786 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
23787 (GRUB_TARGET_SIZEOF_LONG): ... this.
23788 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
23789 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
23790
23791 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
23792 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
23793 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
23794 instead of GRUB_HOST_SIZEOF_LONG.
23795 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
23796 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
23797 GRUB_CPU_WORDS_BIGENDIAN.
23798 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
23799 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
23800 grub_host_ssize_t.
23801
23802 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
23803 (genmoddep_SOURCES): Likewise.
23804 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
23805 (genmoddep_SOURCES): Likewise.
23806 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
23807 (genmoddep_SOURCES): Likewise.
23808 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
23809 Likewise.
23810 (genmoddep_SOURCES): Likewise.
23811
23812 * genmoddep.awk: New file.
23813
23814 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
23815 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
23816 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
23817 (PModule::rule): Likewise.
23818 (Program::rule): Likewise.
23819 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
23820 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
23821 respectively.
23822
23823 * configure.ac: Rewritten intensively to use host and target
23824 instead of build and host, respectively.
23825
23826 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
23827 (host_cpu): Removed.
23828 (target_cpu): New variable.
23829 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
23830 (BUILD_CC): Removed.
23831 (BUILD_CFLAGS): Likewise.
23832 (BUILD_CPPFLAGS): Likewise.
23833 (TARGET_CC): New variable.
23834 (TARGET_CFLAGS): Likewise.
23835 (TARGET_CPPFLAGS): Likewise.
23836 (TARGET_LDFLAGS): Likewise.
23837 (AWK): Likewise.
23838 (include): Use target_cpu instead of host_cpu.
23839 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 23840
b977bf01 23841 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
23842
f09771a1 238432006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
23844
23845 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
23846 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
23847 field 'false' to 'exec_on_false'.
23848 (grub_script_create_cmdif): Renamed argument names to reflect above
23849 changes.
23850
23851 * normal/execute.c (grub_script_execute_cmdif): Likewise.
23852
23853 * normal/script.c (grub_script_create_cmdif): Likewise.
23854
118f4fb3 238552006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
23856
23857 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
23858 top.
23859 (grub_hfsplus_btree_recptr): Likewise.
23860 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
23861 FILEBLOCK both to pass a block number and store next block
23862 number.
23863 (grub_hfsplus_read_block): Rewritten heavily to support an extent
23864 overflow file correctly. Specify errors appropriately, because
23865 fshelp expects that GRUB_ERRNO is set when fails. Reuse
23866 grub_hfsplus_btree_recptr to get the pointer to a found key.
23867 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
23868 is found.
23869
23870 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
23871 linux.mod.
23872 (_linux_mod_SOURCES): New variable.
23873 (_linux_mod_CFLAGS): Likewise.
23874 (_linux_mod_LDFLAGS): Likewise.
23875 (linux_mod_SOURCES): Likewise.
23876 (linux_mod_CFLAGS): Likewise.
23877 (linux_mod_LDFLAGS): Likewise.
23878
23879 * DISTLIST: Added loader/i386/efi/linux.c,
23880 loader/i386/efi/linux_normal.c and
23881 include/grub/i386/efi/loader.h.
23882
23883 * loader/i386/efi/linux.c: New file.
23884 * loader/i386/efi/linux_normal.c: Likewise.
23885 * include/grub/i386/efi/loader.h: Likewise.
23886
89a7d726 238872006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
23888
23889 * commands/blocklist.c: New file.
23890
23891 * DISTLIST: Added commands/blocklist.c.
23892
23893 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 23894 color for the background, and a darker color for the foreground.
89a7d726 23895 (grub_console_checkkey): Return READ_KEY.
23896 (grub_console_cls): Set the background to
23897 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
23898
23899 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
23900
23901 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
23902 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
23903
23904 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
23905 prototype.
23906
23907 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
23908 BG. The spec is wrong again.
23909
23910 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
23911 prototype.
23912 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
23913
23914 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23915 commands/blocklist.c.
23916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 23917
89a7d726 23918 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
23919 (blocklist_mod_SOURCES): New variable.
23920 (blocklist_mod_CFLAGS): Likewise.
23921 (blocklist_mod_LDFLAGS): Likewise.
23922
75c8f258 239232006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
23924
23925 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
23926 duplication.
23927 (lba_mode): Use %eax more intensively to reduce the code size.
23928
da2eb181 239292006-05-20 Marco Gerards <marco@gnu.org>
23930
23931 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
23932
23933 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
23934 for `menuentry'.
23935 (script): Accept leading newlines.
23936 (newlines): New rule to describe 0 or more newlines.
23937 (commands): Accept `command' with trailing newline. Fixed the
23938 order in which arguments were passed to `grub_script_add_cmd'.
23939 Accept commands separated by newlines.
23940 (function): Changed to accept newlines.
23941 (menuentry) Rewritten.
23942
23943 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
23944 front of the list, instead of to the end.
23945
577b4050 239462006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
23947
23948 * util/i386/pc/grub-install.in (bindir): New variable.
23949 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
23950 Shaver <lbgwjl@gmail.com>.
23951
0d6e1189 239522006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
23953
23954 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
23955 grub/machine/linux.h
23956 * loader/i386/pc/linux.c: Likewise.
23957
23958 * include/grub/i386/pc/linux.h: Moved to ...
23959 * include/grub/i386/linux.h: ... here.
23960
23961 * include/grub/i386/linux.h (struct linux_kernel_params): New
23962 struct.
f19dbdb7 23963
31b86e9f 239642006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
23965
23966 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
23967 checking.
23968 (grub_video_vbe_blit_glyph): Likewise.
23969 (grub_video_vbe_blit_bitmap): Likewise.
23970 (grub_video_vbe_blit_render_target): Likewise.
23971
83b984de 239722006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
23973
23974 * configure.ac (--with-platform): Properly quote the square
23975 brackets.
23976
5f0413bd 239772006-05-08 Marco Gerards <marco@gnu.org>
23978
23979 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
23980 this...
23981 (kernel_elf_HEADERS): ...to this. Updated all users.
23982 (grubof_symlist.c): Renamed from this...
23983 (kernel_elf_symlist.c): ...to this. Updated all users.
23984 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23985 (grubof_SOURCES): Renamed from this...
23986 (kernel_elf_SOURCES): ...to this.
23987 (grubof_HEADERS): Renamed from this...
23988 (kernel_elf_HEADERS): ...to this.
23989 (grubof_CFLAGS): Renamed from this...
23990 (kernel_elf_CFLAGS): ...to this.
23991 (grubof_ASFLAGS): Renamed from this...
23992 (kernel_elf_ASFLAGS): ...to this.
23993 (grubof_LDFLAGS): Renamed from this...
23994 (kernel_elf_LDFLAGS): ...to this.
23995
23996 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
23997 this...
23998 (kernel_elf_HEADERS): ...to this. Updated all users.
23999 (grubof_symlist.c): Renamed from this...
24000 (kernel_elf_symlist.c): ...to this. Updated all users.
24001 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
24002 (grubof_SOURCES): Renamed from this...
24003 (kernel_elf_SOURCES): ...to this.
24004 (grubof_HEADERS): Renamed from this...
24005 (kernel_elf_HEADERS): ...to this.
24006 (grubof_CFLAGS): Renamed from this...
24007 (kernel_elf_CFLAGS): ...to this.
24008 (grubof_ASFLAGS): Renamed from this...
24009 (kernel_elf_ASFLAGS): ...to this.
24010 (grubof_LDFLAGS): Renamed from this...
24011 (kernel_elf_LDFLAGS): ...to this.
24012
24013 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
24014 `kernel.elf' instead of `grubof'.
24015
05568c2e 240162006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
24017
24018 Add --with-platform to configure. Use pkglibdir instead of
24019 pkgdatadir. This is reported by Roger Leigh.
24020
24021 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
24022 (host_vendor): Likewise.
24023 (host_os): Likewise.
24024 (pkgdatadir): Likewise.
24025 (platform): New variable.
24026 (pkglibdir): Likewise.
24027 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 24028
05568c2e 24029 * util/i386/pc/grub-install.in (datadir): Removed.
24030 (host_vendor): Likewise.
24031 (host_os): Likewise.
24032 (pkgdatadir): Likewise.
24033 (platform): New variable.
24034 (pkglibdir): Likewise.
24035 Use PKGLIBDIR instead of PKGDATADIR.
24036
24037 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
24038 instead of GRUB_DATADIR.
24039 (main): Likewise.
24040 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24041 (main): Likewise.
24042 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24043 (main): Likewise.
24044
24045 * configure.ac (--with-platform): New option.
24046 Use PLATFORM instead of HOST_VENDOR to specify a platform.
24047
24048 * Makefile.in: Include a makefile based on PLATFORM instead of
24049 HOST_VENDOR.
24050 (pkgdatadir): Not appended by the machine type.
24051 (pkglibdir): Appended by the machine type.
24052 (host_vendor): Removed.
24053 (platform): New variable.
24054 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
24055 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
24056 (uninstall): Likewise.
24057
4e93851c 240582006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
24059
24060 Use the environment context in the menu. Remove the commands
24061 "default" and "timeout", and use variables instead.
f19dbdb7 24062
4e93851c 24063 * normal/menu.c: Include grub/env.h.
24064 (print_entry): Cast TITLE to silence gcc.
24065 (get_timeout): New function.
24066 (set_timeout): Likewise.
24067 (get_entry_number): Likewise.
24068 (run_menu): Use a default entry, a fallback entry and a timeout
24069 in the environment variables "default", "fallback" and
24070 "timeout". Also, tweak the default entry if it is not within the
24071 current menu entries.
24072 (grub_menu_run): Use a fallback entry in the environment variable
24073 "fallback".
24074
24075 * normal/main.c (read_config_file): Do not initialize
24076 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
24077 NEWMENU->TIMEOUT.
24078 (grub_normal_execute): Use a data slot to store the menu.
24079
24080 * include/grub/normal.h (struct grub_menu): Removed default_entry,
24081 fallback_entry and timeout.
24082 (struct grub_menu_list): Removed.
24083 (grub_menu_list_t): Likewise.
24084 (struct grub_context): Likewise.
24085 (grub_context_t): Likewise.
24086 (grub_context_get): Likewise.
24087 (grub_context_get_current_menu): Likewise.
24088 (grub_context_push_menu): Likewise.
24089 (grub_context_pop_menu): Likewise.
24090 (grub_default_init): Likewise.
24091 (grub_default_fini): Likewise.
24092 (grub_timeout_init): Likewise.
24093 (grub_timeout_fini): Likewise.
24094
24095 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
24096 and timeout.mod.
24097 (normal_mod_SOURCES): Removed normal/context.c.
24098
24099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
24100 commands/default.c, commands/timeout.c and normal/context.c.
24101 (normal_mod_SOURCES): Removed normal/context.c.
24102
24103 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
24104 commands/timeout.c and normal/context.c.
24105 (normal_mod_SOURCES): Removed normal/context.c.
24106
24107 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
24108 commands/default.c, commands/timeout.c and normal/context.c.
24109 (normal_mod_SOURCES): Removed normal/context.c.
24110
24111 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
24112 timeout.mod.
24113 (default_mod_SOURCES): Removed.
24114 (default_mod_CFLAGS): Likewise.
24115 (default_mod_LDFLAGS): Likewise.
24116 (timeout_mod_SOURCES): Removed.
24117 (timeout_mod_CFLAGS): Likewise.
24118 (timeout_mod_LDFLAGS): Likewise.
24119
24120 * DISTLIST: Removed commands/default.c, commands/timeout.c and
24121 normal/context.c.
24122
24123 * commands/default.c: Removed.
24124 * commands/timeout.c: Likewise.
24125 * normal/context.c: Likewise.
24126
1eb9cc1d 241272006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
24128
24129 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
24130
385bd9c1 241312006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
24132
24133 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
24134 "next" to "prev" for readability.
24135 (struct grub_env_sorted_var): New struct.
24136 (grub_env_context): Renamed to ...
24137 (initial_context): ... this.
24138 (grub_env_var_context): Renamed to ...
24139 (current_context): ... this.
24140 (grub_env_find): Look only at CURRENT_CONTEXT.
24141 (grub_env_context_open): Rewritten to copy exported variables from
24142 previous context.
24143 (grub_env_context_close): Rewritten according to the new
24144 scheme. Also, add an assertion to prevent the initial context from
24145 removed.
24146 (grub_env_insert): Removed the code for the sorted list.
24147 (grub_env_remove): Likewise.
24148 (grub_env_export): Simply mark the variable with
24149 GRUB_ENV_VAR_GLOBAL.
24150 (grub_env_set): A cosmetic change for naming consistency.
24151 (grub_env_get): Likewise.
24152 (grub_env_unset): Likewise.
24153 (grub_env_iterate): Rewritten to sort variables within this
24154 function.
24155 (grub_register_variable_hook): Fixed for naming consistency. Call
24156 grub_env_find again, only if NAME is not found at the first time.
24157 (mangle_data_slot_name): New function.
24158 (grub_env_set_data_slot): Likewise.
24159 (grub_env_get_data_slot): Likewise.
24160 (grub_env_unset_data_slot): Likewise.
24161
24162 * include/grub/env.h (grub_env_var_type): New enum.
24163 (GRUB_ENV_VAR_LOCAL): New constant.
24164 (GRUB_ENV_VAR_GLOBAL): Likewise.
24165 (GRUB_ENV_VAR_DATA): Likewise.
24166 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
24167 "type".
24168 (grub_env_set): Replace VAR with NAME for consistency.
24169 (grub_register_variable_hook): Likewise.
24170 (grub_env_export): Specify the name of the argument.
24171 (grub_env_set_data_slot): New prototype.
24172 (grub_env_get_data_slot): Likewise.
24173 (grub_env_unset_data_slot): Likewise.
24174
7f362539 241752006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
24176
24177 Extend the loader so that GRUB can accept a loader which comes
24178 back to GRUB when a loaded image exits. Also, this change adds
24179 support for a chainloader on EFI.
f19dbdb7 24180
7f362539 24181 * term/efi/console.c: Include grub/misc.h.
24182 (grub_console_checkkey): Display a scan code on the top for
24183 debugging. This will be removed once the EFI port gets stable.
24184 Correct the scan code mapping.
24185
24186 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
24187 allocate memory from larger regions, in order to reduce the number
24188 of allocated regions. Otherwise, the MacOSX loader panics.
24189 (filter_memory_map): Avoid less than 1MB for compatibility with
24190 other loaders.
24191 (add_memory_regions): Allocate from the tail of a region, if
24192 possible, to avoid allocating a region near to 1MB, for the MacOSX
24193 loader.
24194
24195 * kern/efi/init.c (grub_efi_set_prefix): Specify
24196 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
24197
24198 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
24199 argument IMAGE_HANDLE and specify it to get a loaded image.
24200 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
24201 grub_efi_get_loaded_image.
fe6b695a 24202 (grub_efi_get_filename): Divide the length by the size of
7f362539 24203 grub_efi_char16_t.
24204 (grub_efi_get_device_path): New function.
24205 (grub_efi_print_device_path): Print End Device Path nodes. Divide
24206 the length by the size of grub_efi_char16_t for a file path device
24207 path node.
24208
24209 * kern/loader.c (grub_loader_noreturn): New variable.
24210 (grub_loader_set): Accept a new argument NORETURN. Set
24211 GRUB_LOADER_NORETURN to NORETURN.
24212 All callers changed.
24213 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
24214 grub_machine_fini.
24215
24216 * include/grub/efi/efi.h (grub_efi_get_device_path): New
24217 prototype.
24218 (grub_efi_get_loaded_image): Take an argument to specify an image
24219 handle.
24220
24221 * include/grub/loader.h (grub_loader_set): Added one more argument
24222 NORETURN.
24223
24224 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
24225 instead of grub_efi_open_protocol.
24226 (grub_efidisk_get_device_name): Likewise.
24227 (grub_efidisk_close): Print a newline.
24228 (grub_efidisk_get_device_handle): Fixed to use
24229 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
24230 GRUB_EFI_DEVICE_PATH_TYPE.
24231
24232 * disk/efi/efidisk.c (device_path_guid): Moved to ...
24233 * kern/efi/efi.c (device_path_guid): ... here.
24234
24235 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
24236 chain.mod.
24237 (kernel_mod_HEADERS): Added efi/disk.h.
24238 (_chain_mod_SOURCES): New variable.
24239 (_chain_mod_CFLAGS): Likewise.
24240 (_chain_mod_LDFLAGS): Likewise.
24241 (chain_mod_SOURCES): Likewise.
24242 (chain_mod_CFLAGS): Likewise.
24243 (chain_mod_LDFLAGS): Likewise.
24244
24245 * DISTLIST: Added include/grub/efi/chainloader.h,
24246 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
24247
24248 * include/grub/efi/chainloader.h: New file.
24249 * loader/efi/chainloader.c: Likewise.
24250 * loader/efi/chainloader_normal.c: Likewise.
24251
c0111d6e 242522006-04-30 Marco Gerards <marco@gnu.org>
24253
24254 * commands/configfile.c (grub_cmd_source): New function.
24255 (GRUB_MOD_INIT): Register the commands `source' and `.'.
24256 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
24257
df5341da 242582006-04-30 Marco Gerards <marco@gnu.org>
24259
24260 * normal/execute.c (grub_script_execute_cmd): Change the return
24261 type to `grub_err_t'. Correctly return the error.
24262 (grub_script_execute_cmdline): In case a command line is not a
24263 command or a function, try to interpret it as an assignment.
24264
f85934bd 242652006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
24266
24267 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
24268 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
24269 skip a node whose name is obviously invalid as UTF-16,
24270 i.e. contains a NUL character. Stop the iteration when the last
24271 directory entry is found. Instead of using the return value of
24272 grub_hfsplus_btree_iterate_node, store the value in RET and use
24273 it, because the iterator can be stopped by the last directory
24274 entry.
24275
8f8a2cf8 242762006-04-30 Marco Gerards <marco@gnu.org>
24277
24278 * include/grub/env.h (grub_env_export): New prototype. Reported
24279 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
24280
a27e84ce 242812006-04-30 Marco Gerards <marco@gnu.org>
24282
24283 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
24284 size of the extents in a catalog file record.
24285
eaef0553 242862006-04-29 Marco Gerards <marco@gnu.org>
24287
24288 * commands/configfile.c (grub_cmd_configfile): Execute the
24289 configfile within its own context.
24290
24291 * include/grub/env.h (grub_env_context_open): New prototype.
24292 (grub_env_context_close): Likewise.
24293
24294 * kern/env.c (grub_env): Removed.
24295 (grub_env_sorted): Likewise.
24296 (grub_env_context): New variable.
24297 (grub_env_var_context): Likewise.
24298 (grub_env_find): Search both the active context and the global
24299 context.
24300 (grub_env_context_open): New function.
24301 (grub_env_context_close): Likewise.
24302 (grub_env_insert): Likewise.
24303 (grub_env_remove): Likewise.
24304 (grub_env_export): Likewise.
24305 (grub_env_set): Changed to use helper functions to avoid code
24306 duplication.
24307 (grub_env_iterate): Rewritten so both the current context and the
24308 global context are being used.
24309
24310 * normal/command.c (export_command): New function.
24311 (grub_command_init): Register the `export' function.
24312
7b455f4d 243132006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
24314
24315 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
24316 explicitly to suppress gcc's warnings.
24317 * fs/fat.c (grub_fat_find_dir): Likewise.
24318 (grub_fat_label): Likewise.
24319 * fs/xfs.c (grub_xfs_read_inode): Likewise.
24320 (grub_xfs_mount): Likewise.
24321 (grub_xfs_label): Likewise.
24322 * fs/affs.c (grub_affs_mount): Likewise.
24323 (grub_affs_label): Likewise.
24324 (grub_affs_iterate_dir): Likewise.
24325 * fs/sfs.c (grub_sfs_mount): Likewise.
24326 (grub_sfs_iterate_dir): Likewise.
24327 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
24328 * fs/hfs.c (grub_hfs_mount): Likewise.
24329 (grub_hfs_cmp_catkeys): Likewise.
24330 (grub_hfs_find_dir): Likewise.
24331 (grub_hfs_dir): Likewise.
24332 (grub_hfs_label): Likewise.
24333 * fs/jfs.c (grub_jfs_mount): Likewise.
24334 (grub_jfs_opendir): Likewise.
24335 (grub_jfs_getent): Likewise.
24336 (grub_jfs_lookup_symlink): Likewise.
24337 (grub_jfs_label): Likewise.
24338 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
24339 (grub_hfsplus_iterate_dir): Likewise.
24340 (grub_hfsplus_btree_iterate_node): Made static.
24341
24342 * util/grub-emu.c (prefix): New variable.
24343 (grub_machine_set_prefix): New function.
24344 (main): Do not set the environment variable "prefix" here. Only
24345 set PREFIX, which is used later by grub_machine_set_prefix.
24346
24347 * include/grub/video.h: Do not include grub/symbol.h.
24348 (grub_video_register): Not exported. This symbol is not defined in
24349 the kernel.
24350 (grub_video_unregister): Likewise.
24351 (grub_video_iterate): Likewise.
24352 (grub_video_setup): Likewise.
24353 (grub_video_restore): Likewise.
24354 (grub_video_get_info): Likewise.
24355 (grub_video_get_blit_format): Likewise.
24356 (grub_video_set_palette): Likewise.
24357 (grub_video_get_palette): Likewise.
24358 (grub_video_set_viewport): Likewise.
24359 (grub_video_get_viewport): Likewise.
24360 (grub_video_map_color): Likewise.
24361 (grub_video_map_rgb): Likewise.
24362 (grub_video_map_rgba): Likewise.
24363 (grub_video_fill_rect): Likewise.
24364 (grub_video_blit_glyph): Likewise.
24365 (grub_video_blit_bitmap): Likewise.
24366 (grub_video_blit_render_target): Likewise.
24367 (grub_video_scroll): Likewise.
24368 (grub_video_swap_buffers): Likewise.
24369 (grub_video_create_render_target): Likewise.
24370 (grub_video_delete_render_target): Likewise.
24371 (grub_video_set_active_render_target): Likewise.
24372
24373 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
24374 Undefined.
24375 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
24376
24377 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
24378 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
24379 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
24380 instead of $(srcdir)/genkernsyms.sh.
24381
24382 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
24383 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
24384 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
24385 instead of $(srcdir)/genkernsyms.sh.
24386
24387 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
24388 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
24389 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
24390 instead of $(srcdir)/genkernsyms.sh.
24391
24392 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
24393 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
24394 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
24395 instead of $(srcdir)/genkernsyms.sh.
24396
24397 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
24398 genkernsyms.sh.
24399
24400 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
24401 genkernsyms.sh.
24402 (gensymlist.sh): New target.
24403 (genkernsyms.sh): Likewise.
24404
24405 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
24406 genkernsyms.sh.in and gensymlist.sh.in.
24407
24408 * genkernsyms.sh: Removed.
24409 * gensymlist.sh: Likewise.
f19dbdb7 24410
7b455f4d 24411 * genkernsyms.sh.in: New file.
24412 * gensymlist.sh.in: Likewise.
24413
1885bb27 244142006-04-25 Hollis Blanchard <hollis@penguinppc.org>
24415
24416 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
24417 clobber "prefix", since we may have already set it manually.
24418
71538dff 244192006-04-25 Hollis Blanchard <hollis@penguinppc.org>
24420
24421 * kern/misc.c (abort): New alias for grub_abort.
24422
2965c7cc 244232006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
24424
24425 A new machine-specific function "grub_machine_set_prefix" is
24426 defined. This is called after loading modules, so that a prefix
24427 initialization can use modules. Also, this change adds an
24428 intensive debugging feature for the memory manager via the
24429 configure option "--enable-mm-debug".
f19dbdb7 24430
2965c7cc 24431 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
24432 PART.LEN.
24433
24434 * kern/sparc64/ieee1275/init.c (abort): Removed.
24435 (grub_stop): Likewise.
24436 (grub_exit): New function.
24437 (grub_set_prefix): Renamed to ...
24438 (grub_machine_set_prefix): ... this.
24439 (grub_machine_init): Do not call grub_set_prefix.
24440
24441 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
24442 (grub_machine_set_prefix): ... this.
24443 (grub_machine_init): Do not call grub_set_prefix.
24444
24445 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
24446 (grub_machine_init): Do not set the prefix here.
24447
24448 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
24449
24450 * kern/efi/init.c: Include grub/mm.h.
24451 (grub_efi_set_prefix): New function.
24452
24453 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
24454 (grub_efi_get_filename): New function.
24455 (grub_print_device_path): Renamed to ...
24456 (grub_efi_print_device_path): ... this.
24457
24458 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
24459 [MM_DEBUG] (grub_realloc): Likewise.
24460 [MM_DEBUG] (grub_free): Likewise.
24461 [MM_DEBUG] (grub_memalign): Likewise.
24462 [MM_DEBUG] (grub_mm_debug): New variable.
24463 [MM_DEBUG] (grub_debug_malloc): New function.
24464 [MM_DEBUG] (grub_debug_free): New function.
24465 [MM_DEBUG] (grub_debug_realloc): New function.
24466 [MM_DEBUG] (grub_debug_memalign): New function.
24467
24468 * kern/misc.c (grub_abort): Print a newline to distinguish
24469 the message.
24470
24471 * kern/main.c (grub_main): Call grub_machine_set_prefix and
24472 grub_set_root_dev after loading modules. This is necessary when
24473 setting a prefix depends on modules.
24474
24475 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
24476 (grub_efi_print_device_path): ... this.
24477 (grub_efi_get_filename): New prototype.
24478 (grub_efi_set_prefix): Likewise.
24479
24480 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
24481 and grub/disk.h.
24482 (grub_efidisk_get_device_handle): New prototype.
24483 (grub_efidisk_get_device_name): Likewise.
24484
24485 * include/grub/mm.h: Include config.h.
24486 (MM_DEBUG): Removed.
24487 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
24488 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
24489 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
24490 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
24491 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
24492 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
24493 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
24494 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
24495 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
24496
24497 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
24498
24499 * disk/efi/efidisk.c: Include grub/partition.h.
24500 (iterate_child_devices): New function.
24501 (add_device): First, compare only last device path nodes, so that
24502 devices are sorted by the types.
24503 (grub_efidisk_get_device_handle): New function.
24504 (grub_efidisk_get_device_name): Likewise.
24505
24506 * configure.ac (--enable-mm-debug): New option to enable the
24507 memory manager debugging feature. This makes the binary much
24508 bigger, so is disabled by default.
24509
9cacaa17 245102006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
24511
24512 Use grub_abort instead of grub_stop, and grub_exit must be
24513 define in each architecture now. Also, this change adds support
24514 for EFI disks.
f19dbdb7 24515
9cacaa17 24516 * util/i386/pc/grub-probefs.c: Include grub/term.h.
24517 (grub_getkey): New function.
24518 (grub_term_get_current): Likewise.
24519
24520 * util/i386/pc/grub-setup.c: Include grub/term.h.
24521 (grub_getkey): New function.
24522 (grub_term_get_current): Likewise.
24523
24524 * util/misc.c (grub_stop): Renamed to ...
24525 (grub_exit): ... this.
24526
24527 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
24528 (grub_exit): ... this.
24529 (grub_machine_init): Use grub_abort instead of abort.
24530 (grub_stop): Removed.
24531
24532 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
24533 abort.
24534
24535 * kern/i386/pc/startup.S (grub_exit): New function.
24536 (cold_reboot): New label.
24537
24538 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
24539 (grub_efi_init): Call grub_efidisk_init.
24540 (grub_efi_fini): Call grub_efidisk_fini.
24541
24542 * kern/efi/efi.c: Include grub/mm.h.
24543 (grub_efi_console_control_guid): Renamed to ...
24544 (console_control_guid): ... this.
24545 (grub_efi_loaded_image_guid): Renamed to ...
24546 (loaded_image_guid): ... this.
24547 (grub_efi_locate_handle): New function.
24548 (grub_efi_open_protocol): Likewise.
24549 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
24550 GRUB_EFI_CONSOLE_CONTROL_GUID.
24551 (grub_efi_exit): Removed.
24552 (grub_stop): Likewise.
24553 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
24554 (grub_exit): New function.
24555 (grub_print_device_path): Likewise.
24556
24557 * kern/rescue.c (grub_rescue_cmd_exit): New function.
24558 (grub_enter_rescue_mode): Register "exit".
24559
24560 * kern/misc.c (grub_real_dprintf): A cosmetic change.
24561 (grub_abort): New function.
24562
24563 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
24564
24565 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
24566
24567 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
24568
24569 * include/grub/efi/efi.h (grub_efi_exit): Removed.
24570 (grub_print_device_path): New prototype.
24571 (grub_efi_locate_handle): Likewise.
24572 (grub_efi_open_protocol): Likewise.
24573
24574 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
24575 * disk/efi/efidisk.c: Likewise.
24576
24577 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
24578
24579 * include/grub/efi/console_control.h
24580 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
24581
24582 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
24583 last 8 bytes as an array.
24584 (GRUB_EFI_DISK_IO_GUID): New macro.
24585 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
24586 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
24587 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
24588 grub_uint8_t.
24589 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
24590 (struct grub_efi_device_path): Rename the member "sub_type" to
24591 "subtype".
24592 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
24593 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
24594 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
24595 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
24596 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
24597 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
24598 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
24599 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
24600 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
24601 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
24602 (struct grub_efi_pci_device_path): New structure.
24603 (grub_efi_pci_device_path_t): New type.
24604 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
24605 (struct grub_efi_pccard_device_path): New structure.
24606 (grub_efi_pccard_device_path_t): New type.
24607 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
24608 (struct grub_efi_memory_mapped_device_path): New structure.
24609 (grub_efi_memory_mapped_device_path_t): New type.
24610 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
24611 (struct grub_efi_vendor_device_path): New structure.
24612 (grub_efi_vendor_device_path_t): New type.
24613 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
24614 (struct grub_efi_controller_device_path): New structure.
24615 (grub_efi_controller_device_path_t): New type.
24616 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
24617 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
24618 (struct grub_efi_acpi_device_path): New structure.
24619 (grub_efi_acpi_device_path_t): New type.
24620 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
24621 (struct grub_efi_expanded_acpi_device_path): New structure.
24622 (grub_efi_expanded_acpi_device_path_t): New type.
24623 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
24624 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
24625 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
24626 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
24627 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
24628 (struct grub_efi_atapi_device_path): New structure.
24629 (grub_efi_atapi_device_path_t): New type.
24630 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
24631 (struct grub_efi_fibre_channel_device_path): New structure.
24632 (grub_efi_fibre_channel_device_path_t): New type.
24633 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
24634 (struct grub_efi_1394_device_path): New structure.
24635 (grub_efi_1394_device_path_t): New type.
24636 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
24637 (struct grub_efi_usb_device_path): New structure.
24638 (grub_efi_usb_device_path_t): New type.
24639 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
24640 (struct grub_efi_usb_class_device_path): New structure.
24641 (grub_efi_usb_class_device_path_t): New type.
24642 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
24643 (struct grub_efi_i2o_device_path): New structure.
24644 (grub_efi_i2o_device_path_t): New type.
24645 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
24646 (struct grub_efi_mac_address_device_path): New structure.
24647 (grub_efi_mac_address_device_path_t): New type.
24648 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
24649 (struct grub_efi_ipv4_device_path): New structure.
24650 (grub_efi_ipv4_device_path_t): New type.
24651 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
24652 (struct grub_efi_ipv6_device_path): New structure.
24653 (grub_efi_ipv6_device_path_t): New type.
24654 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
24655 (struct grub_efi_infiniband_device_path): New structure.
24656 (grub_efi_infiniband_device_path_t): New type.
24657 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
24658 (struct grub_efi_uart_device_path): New structure.
24659 (grub_efi_uart_device_path_t): New type.
24660 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
24661 (struct grub_efi_vendor_messaging_device_path): New structure.
24662 (grub_efi_vendor_messaging_device_path_t): New type.
24663 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
24664 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
24665 (struct grub_efi_hard_drive_device_path): New structure.
24666 (grub_efi_hard_drive_device_path_t): New type.
24667 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
24668 (struct grub_efi_cdrom_device_path): New structure.
24669 (grub_efi_cdrom_device_path_t): New type.
24670 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
24671 (struct grub_efi_vendor_media_device_path): New structure.
24672 (grub_efi_vendor_media_device_path_t): New type.
24673 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
24674 (struct grub_efi_file_path_device_path): New structure.
24675 (grub_efi_file_path_device_path_t): New type.
24676 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
24677 (struct grub_efi_protocol_device_path): New structure.
24678 (grub_efi_protocol_device_path_t): New type.
24679 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
24680 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
24681 (struct grub_efi_bios_device_path): New structure.
24682 (grub_efi_bios_device_path_t): New type.
24683 (struct grub_efi_disk_io): New structure.
24684 (grub_efi_disk_io_t): New type.
24685 (struct grub_efi_block_io_media): New structure.
24686 (grub_efi_block_io_media_t): New type.
24687 (struct grub_efi_block_io): New structure.
24688 (grub_efi_block_io_t): New type.
24689
24690 * include/grub/misc.h (grub_stop): Removed.
24691 (grub_exit): New prototype.
24692 (grub_abort): Likewise.
24693
24694 * include/grub/disk.h (enum grub_disk_dev_id): Added
24695 GRUB_DISK_DEVICE_EFIDISK_ID.
24696
24697 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
24698 disk/efi/efidisk.c.
24699 (kernel_syms.lst): Remove the target if an error occurs.
24700
49986a9f 247012006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
24702
24703 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
24704 as it was simply too buggy.
24705
970d3b8a 247062006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
24707
24708 * kern/misc.c (grub_lltoa): New function.
24709 (grub_vsprintf): Added support for the long long suffix,
24710 i.e. "ll".
24711
ff04ec24 247122006-04-20 Hollis Blanchard <hollis@penguinppc.org>
24713
24714 * Makefile.in (LDFLAGS): Add variable.
24715 (LD): Remove variable.
24716 * configure.ac: Add -m32 to LDFLAGS.
24717 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
24718 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
24719 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
24720 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
24721 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
24722 variables.
24723 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
24724 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
24725 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
24726
37e5e1a4 247272006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
24728
24729 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
24730 length for unknown glyph.
24731
c352d8dd 247322006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
24733
2eab1c0d 24734 Add support for pre-loaded modules into the EFI port.
f19dbdb7 24735
2eab1c0d 24736 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
24737 completely. Accept one more argument DIR. The caller has changed.
24738
24739 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
24740
24741 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
24742 (grub_efi_loaded_image_guid): New variable.
24743 (grub_efi_get_loaded_image): New function.
24744 (grub_arch_modules_addr): Likewise.
24745
24746 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
24747 prototype.
24748
24749 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
24750 (struct grub_efi_loaded_image): New structure.
24751 (grub_efi_loaded_image_t): New type.
24752
247532006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 24754
c352d8dd 24755 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
24756 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
24757 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
24758
6d01d6b4 247592006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
24760
24761 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
24762
976a4ea0 247632006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
24764
24765 * DISTLIST: Added include/grub/efi/console.h,
24766 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
24767 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
24768
24769 * include/grub/efi/console.h: New file.
24770 * include/grub/efi/time.h: Likewise.
24771 * include/grub/i386/efi/kernel.h: Likewise.
24772 * kern/efi/init.c: Likewise.
24773 * kern/efi/mm.c: Likewise.
24774 * term/efi/console.c: Likewise.
f19dbdb7 24775
976a4ea0 24776 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
24777 (grub_stop): Removed.
24778 (grub_get_rtc): Likewise.
24779 (grub_machine_init): Simply call grub_efi_init.
24780 (grub_machine_fini): Call grub_efi_fini.
24781
24782 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
24783 (grub_efi_output_string): Removed.
24784 (grub_efi_stall): New function.
24785 (grub_stop): Likewise.
24786 (grub_get_rtc): Likewise.
24787
24788 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
24789 (grub_efi_stall): New prototype.
24790 (grub_efi_allocate_pages): Likewise.
24791 (grub_efi_free_pages): Likewise.
24792 (grub_efi_get_memory_map): Likewise.
24793 (grub_efi_mm_init): Likewise.
24794 (grub_efi_mm_fini): Likewise.
24795 (grub_efi_init): Likewise.
24796 (grub_efi_fini): Likewise.
24797
24798 * include/grub/i386/efi/time.h: Do not include
24799 grub/symbol.h. Include grub/efi/time.h.
24800 (GRUB_TICKS_PER_SECOND): Removed.
24801 (grub_get_rtc): Likewise.
24802
24803 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
24804 Added padding. The EFI spec is buggy.
24805 (GRUB_EFI_BLACK): New macro.
24806 (GRUB_EFI_BLUE): Likewise.
24807 (GRUB_EFI_GREEN): Likewise.
24808 (GRUB_EFI_CYAN): Likewise.
24809 (GRUB_EFI_RED): Likewise.
24810 (GRUB_EFI_MAGENTA): Likewise.
24811 (GRUB_EFI_BROWN): Likewise.
24812 (GRUB_EFI_LIGHTGRAY): Likewise.
24813 (GRUB_EFI_BRIGHT): Likewise.
24814 (GRUB_EFI_DARKGRAY): Likewise.
24815 (GRUB_EFI_LIGHTBLUE): Likewise.
24816 (GRUB_EFI_LIGHTGREEN): Likewise.
24817 (GRUB_EFI_LIGHTCYAN): Likewise.
24818 (GRUB_EFI_LIGHTRED): Likewise.
24819 (GRUB_EFI_LIGHTMAGENTA): Likewise.
24820 (GRUB_EFI_YELLOW): Likewise.
24821 (GRUB_EFI_WHITE): Likewise.
24822 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
24823 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
24824 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
24825 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
24826 (GRUB_EFI_BACKGROUND_RED): Likewise.
24827 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
24828 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
24829 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
24830 (GRUB_EFI_TEXT_ATTR): Likewise.
24831
24832 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
24833 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
24834 (kernel_mod_HEADERS): Added efi/time.h.
24835
83709125 248362006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
24837
24838 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
24839 include/grub/efi/api.h, include/grub/efi/console_control.h,
24840 include/grub/efi/efi.h, include/grub/efi/pe32.h,
24841 include/grub/i386/efi/time.h, kern/efi/efi.c,
24842 kern/i386/efi/init.c, kern/i386/efi/startup.S,
24843 and util/i386/efi/grub-mkimage.c.
24844
24845 * Makefile.in (RMKFILES): Added i386-efi.rmk.
24846
24847 * genmk.rb (PModule#rule): Do not export symbols if
24848 #{prefix}_EXPORTS is set to "no".
24849
24850 * conf/i386-efi.mk: New file.
24851 * conf/i386-efi.rmk: Likewise.
24852 * include/grub/efi/api.h: Likewise.
24853 * include/grub/efi/console_control.h: Likewise.
24854 * include/grub/efi/efi.h: Likewise.
24855 * include/grub/efi/pe32.h: Likewise.
24856 * include/grub/i386/efi/time.h: Likewise.
24857 * kern/efi/efi.c: Likewise.
24858 * kern/i386/efi/init.c: Likewise.
24859 * kern/i386/efi/startup.S: Likewise.
24860 * util/i386/efi/grub-mkimage.c: Likewise.
24861
248622006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 24863
24864 * include/grub/script.h: Include <grub/parser.h> and
24865 "grub_script.tab.h".
24866 (struct grub_lexer_param): New struct.
24867 (struct grub_parser_param): Likewise.
24868 (grub_script_create_arglist): Pass the state in an argument.
24869 (grub_script_add_arglist): Likewise.
24870 (grub_script_create_cmdline): Likewise.
24871 (grub_script_create_cmdblock): Likewise.
24872 (grub_script_create_cmdif): Likewise.
24873 (grub_script_create_cmdmenu): Likewise.
24874 (grub_script_add_cmd): Likewise.
24875 (grub_script_arg_add): Likewise.
24876 (grub_script_lexer_ref): Likewise.
24877 (grub_script_lexer_deref): Likewise.
24878 (grub_script_lexer_record_start): Likewise.
24879 (grub_script_lexer_record_stop): Likewise.
24880 (grub_script_mem_record): Likewise.
24881 (grub_script_mem_record_stop): Likewise.
24882 (grub_script_malloc): Likewise.
24883 (grub_script_yylex): Likewise.
24884 (grub_script_yyparse): Likewise.
24885 (grub_script_yyerror): Likewise.
24886 (grub_script_yylex): Likewise.
24887 (grub_script_lexer_init): Return the state.
24888
24889 * normal/lexer.c (grub_script_lexer_state): Removed variable.
24890 (grub_script_lexer_done): Likewise.
24891 (grub_script_lexer_getline): Likewise.
24892 (grub_script_lexer_refs): Likewise.
24893 (script): Likewise.
24894 (newscript): Likewise.
24895 (record): Likewise.
24896 (recording): Likewise.
24897 (recordpos): Likewise.
24898 (recordlen): Likewise.
24899 (grub_script_lexer_init): Return the state instead of setting
24900 global variables.
24901 (grub_script_lexer_ref): Use the newly added argument for state
24902 instead of globals.
24903 (grub_script_lexer_deref): Likewise.
24904 (grub_script_lexer_record_start): Likewise.
24905 (grub_script_lexer_record_stop): Likewise.
24906 (recordchar): Likewise.
24907 (nextchar): Likewise.
24908 (grub_script_yylex2): Likewise.
24909 (grub_script_yylex): Likewise.
24910 (grub_script_yyerror): Likewise.
24911
24912 * normal/parser.y (func_mem): Removed variable.
24913 (menu_entry): Likewise.
24914 (err): Likewise.
24915 (%lex-param): New parser option.
24916 (%parse-param): Likewise.
24917 (script): Always return the AST.
24918 (argument): Pass the state around.
24919 (arguments): Likewise.
24920 (grubcmd): Likewise.
24921 (commands): Likewise.
24922 (function): Likewise.
24923 (menuentry): Likewise.
24924 (if_statement): Likewise.
24925 (if): Likewise.
24926
24927 * normal/script.c (grub_script_memused): Removed variable.
24928 (grub_script_parsed): Likewise.
24929 (grub_script_malloc): Added a state argument. Use that instead of
24930 global variables.
24931 (grub_script_mem_record): Likewise.
24932 (grub_script_mem_record_stop): Likewise.
24933 (grub_script_arg_add): Likewise.
24934 (grub_script_add_arglist): Likewise.
24935 (grub_script_create_cmdline): Likewise.
24936 (grub_script_create_cmdif): Likewise.
24937 (grub_script_create_cmdmenu): Likewise.
24938 (grub_script_add_cmd): Likewise.
24939 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 24940
e2a8c904 249412006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 24942
24943 * normal/command.c (grub_command_init): Remove the title command.
24944
24945 * normal/lexer.c (grub_script_yylex): Renamed from this...
24946 (grub_script_yylex2): ... to this.
24947 (grub_script_yylex): New function. Temporary
24948 introduced to filter some tokens.
24949 (grub_script_yyerror): Print a newline.
24950
24951 * normal/main.c (read_config_file): Output information about the
24952 lines that contain errors. Wait for a key after all lines have
24953 been processed. Don't return an empty menu.
24954
24955 * normal/parser.y (func_mem): Don't initialize.
24956 (menu_entry): Likewise.
24957 (err): New variable.
24958 (script): Don't return anything when an error was encountered.
24959 (ws, returns): Removed rules.
24960 (argument): Disabled concatenated variable support.
24961 (arguments): Remove explicit separators.
24962 (grubcmd): Likewise.
24963 (function): Likewise.
24964 (menuentry): Likewise.
24965 (if): Likewise.
24966 (commands): Likewise. Add error handling.
24967
24968 * normal/script.c (grub_script_create_cmdline): If
24969 `grub_script_parsed' is 0, assume the parser encountered an error.
24970
c9a86192 249712006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
24972
24973 * configure.ac: Add support for EFI. Fix the typo
24974 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
24975
70f3b243 249762006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24977
24978 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
24979 foreign multibyte characters should be shown correctly.
24980
65f201ad 249812006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24982
24983 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
24984 calculation.
24985 (read_config_file): Made it to close file before returning.
24986
b4b93674 249872006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
24988
24989 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
24990 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
24991 video/i386/pc/vbefill.c.
24992
24993 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
24994 video/i386/pc/vbefill.c.
24995
24996 * include/grub/video.h (grub_video_blit_format): New enum.
24997 (grub_video_mode_info): Added new member blit_format.
24998 (grub_video_get_blit_format): New function prototype.
24999
25000 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
25001 function prototype.
25002 (grub_video_vbe_map_rgb): Likewise.
25003 (grub_video_vbe_unmap_color): Likewise.
25004
25005 * include/grub/i386/pc/vbeblit.h: New file.
25006
25007 * include/grub/i386/pc/vbefill.h: New file.
25008
25009 * video/video.c (grub_video_get_blit_format): New function.
25010 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
25011 (grub_video_vbe_map_rgb): Likewise.
25012 (grub_video_vbe_unmap_color): Likewise.
25013
25014 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
25015 optimized fills.
25016 (grub_video_vbe_blit_render_target): Changed to use more optimized
25017 blits.
25018 (grub_video_vbe_setup): Added detection for optimized settings.
25019 (grub_video_vbe_create_render_target): Likewise.
25020
25021 * video/i386/pc/vbeblit.c: New file.
25022
25023 * video/i386/pc/vbefill.c: New file.
25024
c2379b9c 250252006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
25026
25027 * font/manager.c (grub_font_get_glyph): Removed font fixup from
25028 here...
25029
25030 * util/unifont2pff.rb: ... and moved it to here. Improved argument
25031 parsing to support both hex and dec ranges. If filename was missing
25032 show usage information.
25033
bd0d7896 250342006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
25035
25036 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
25037 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
25038
25039 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
25040 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
25041 (video_mod_SOURCES): Added.
25042 (video_mod_CFLAGS): Likewise.
25043 (video_mod_LDFLAGS): Likewise.
25044 (gfxterm_mod_SOURCES): Likewise.
25045 (gfxterm_mod_CFLAGS): Likewise.
25046 (gfxterm_mod_LDFLAGS): Likewise.
25047 (videotest_mod_SOURCES): Likewise.
25048 (videotest_mod_CFLAGS): Likewise.
25049 (videotest_mod_LDFLAGS): Likewise.
25050 (vesafb_mod_SOURCES): Removed.
25051 (vesafb_mod_CFLAGS): Likewise.
25052 (vesafb_mod_LDFLAGS): Likewise.
25053 (vga_mod_SOURCES): Likewise.
25054 (vga_mod_CFLAGS): Likewise.
25055 (vga_mod_LDFLAGS): Likewise.
25056
25057 * commands/videotest.c: New file.
25058
25059 * font/manager.c (fill_with_default_glyph): Modified to use
25060 grub_font_glyph.
25061 (grub_font_get_glyph): Likewise.
25062 (fontmanager): Renamed from this...
25063 (font_manager): ... to this.
25064
25065 * include/grub/font.h (grub_font_glyph): Added new structure.
25066 (grub_font_get_glyph): Modified to use grub_font_glyph.
25067
25068 * include/grub/misc.h (grub_abs): Added as inline function.
25069
25070 * include/grub/video.h: New file.
25071
25072 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
25073 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
25074 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
25075 (grub_vbe_get_controller_info): Renamed from this...
25076 (grub_vbe_bios_get_controller_info): ... to this.
25077 (grub_vbe_get_mode_info): Renamed from this...
25078 (grub_vbe_bios_get_mode_info): ... to this.
25079 (grub_vbe_set_mode): Renamed from this...
25080 (grub_vbe_bios_set_mode): ... to this.
25081 (grub_vbe_get_mode): Renamed from this...
25082 (grub_vbe_bios_get_mode): ... to this.
25083 (grub_vbe_set_memory_window): Renamed from this...
25084 (grub_vbe_bios_set_memory_window): ... to this.
25085 (grub_vbe_get_memory_window): Renamed from this...
25086 (grub_vbe_bios_get_memory_window): ... to this.
25087 (grub_vbe_set_scanline_length): Renamed from this...
25088 (grub_vbe_set_scanline_length): ... to this.
25089 (grub_vbe_get_scanline_length): Renamed from this...
25090 (grub_vbe_bios_get_scanline_length): ... to this.
25091 (grub_vbe_set_display_start): Renamed from this...
25092 (grub_vbe_bios_set_display_start): ... to this.
25093 (grub_vbe_get_display_start): Renamed from this...
25094 (grub_vbe_bios_get_display_start): ... to this.
25095 (grub_vbe_set_palette_data): Renamed from this...
25096 (grub_vbe_bios_set_palette_data): ... to this.
25097 (grub_vbe_set_pixel_rgb): Removed.
25098 (grub_vbe_set_pixel_index): Likewise.
25099
25100 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
25101 from this...
25102 (grub_vbe_bios_get_controller_info): ... to this.
25103 (grub_vbe_get_mode_info): Renamed from this...
25104 (grub_vbe_bios_get_mode_info): ... to this.
25105 (grub_vbe_set_mode): Renamed from this...
25106 (grub_vbe_bios_set_mode): ... to this.
25107 (grub_vbe_get_mode): Renamed from this...
25108 (grub_vbe_bios_get_mode): ... to this.
25109 (grub_vbe_set_memory_window): Renamed from this...
25110 (grub_vbe_bios_set_memory_window): ... to this.
25111 (grub_vbe_get_memory_window): Renamed from this...
25112 (grub_vbe_bios_get_memory_window): ... to this.
25113 (grub_vbe_set_scanline_length): Renamed from this...
25114 (grub_vbe_set_scanline_length): ... to this.
25115 (grub_vbe_get_scanline_length): Renamed from this...
25116 (grub_vbe_bios_get_scanline_length): ... to this.
25117 (grub_vbe_set_display_start): Renamed from this...
25118 (grub_vbe_bios_set_display_start): ... to this.
25119 (grub_vbe_get_display_start): Renamed from this...
25120 (grub_vbe_bios_get_display_start): ... to this.
25121 (grub_vbe_set_palette_data): Renamed from this...
25122 (grub_vbe_bios_set_palette_data): ... to this.
25123 (grub_vbe_bios_get_controller_info): Fixed problem with registers
25124 getting corrupted after calling it. Added more pushes and pops.
25125 (grub_vbe_bios_set_mode): Likewise.
25126 (grub_vbe_bios_get_mode): Likewise.
25127 (grub_vbe_bios_get_memory_window): Likewise.
25128 (grub_vbe_bios_set_scanline_length): Likewise.
25129 (grub_vbe_bios_get_scanline_length): Likewise.
25130 (grub_vbe_bios_get_display_start): Likewise.
25131 (grub_vbe_bios_set_palette_data): Likewise.
25132
25133 * normal/cmdline.c (cl_set_pos): Refresh the screen.
25134 (cl_insert): Likewise.
25135 (cl_delete): Likewise.
25136
25137 * term/gfxterm.c: New file.
25138
25139 * term/i386/pc/vesafb.c: Removed file.
25140
25141 * video/video.c: New file.
25142
25143 * video/i386/pc/vbe.c (real2pm): Added new function.
25144 (grub_video_vbe_draw_pixel): Likewise.
25145 (grub_video_vbe_get_video_ptr): Likewise.
25146 (grub_video_vbe_get_pixel): Likewise
25147 (grub_video_vbe_init): Likewise.
25148 (grub_video_vbe_fini): Likewise.
25149 (grub_video_vbe_setup): Likewise.
25150 (grub_video_vbe_get_info): Likewise.
25151 (grub_video_vbe_set_palette): Likewise.
25152 (grub_video_vbe_get_palette): Likewise.
25153 (grub_video_vbe_set_viewport): Likewise.
25154 (grub_video_vbe_get_viewport): Likewise.
25155 (grub_video_vbe_map_color): Likewise.
25156 (grub_video_vbe_map_rgb): Likewise.
25157 (grub_video_vbe_map_rgba): Likewise.
25158 (grub_video_vbe_unmap_color): Likewise.
25159 (grub_video_vbe_fill_rect): Likewise.
25160 (grub_video_vbe_blit_glyph): Likewise.
25161 (grub_video_vbe_blit_bitmap): Likewise.
25162 (grub_video_vbe_blit_render_target): Likewise.
25163 (grub_video_vbe_scroll): Likewise.
25164 (grub_video_vbe_swap_buffers): Likewise.
25165 (grub_video_vbe_create_render_target): Likewise.
25166 (grub_video_vbe_delete_render_target): Likewise.
25167 (grub_video_vbe_set_active_render_target): Likewise.
25168 (grub_vbe_set_pixel_rgb): Remove function.
25169 (grub_vbe_set_pixel_index): Likewise.
25170 (index_color_mode): Remove static variable.
25171 (active_mode): Likewise.
25172 (framebuffer): Likewise.
25173 (bytes_per_scan_line): Likewise.
25174 (grub_video_vbe_adapter): Added new static variable.
25175 (framebuffer): Likewise.
25176 (render_target): Likewise.
25177 (initial_mode): Likewise.
25178 (mode_in_use): Likewise.
25179 (mode_list): Likewise.
25180
5f97350b 251812006-03-10 Marco Gerards <marco@gnu.org>
25182
25183 * configure.ac (AC_INIT): Bumped to 1.93.
25184
25185 * DISTLIST: Added `include/grub/hfs.h'.
25186
a3c5c6f8 251872006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
25188
25189 * boot/i386/pc/boot.S (general_error): Before looping, try INT
25190 18H, which might help the BIOS falling back to next boot media.
25191
6de53d26 251922006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
25193
25194 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
25195 Poe Chen <poe.poechen@gmail.com>.
25196
77c4a393 251972006-01-17 Marco Gerards <marco@gnu.org>
25198
25199 * include/grub/normal.h: Include <grub/script.h>.
25200 (grub_command_list): Removed struct.
25201 (grub_command_list_t): Removed type.
25202 (grub_menu_entry): Remove members `num' and `command_list'. Add
25203 members `commands' and `sourcecode'.
25204 * include/grub/script.h: Add inclusion guards.
25205 (grub_script_cmd_menuentry): New struct.
25206 (grub_script_execute_menuentry): New prototype.
25207 (grub_script_lexer_record_start): Likewise.
25208 (grub_script_lexer_record_stop): Likewise.
25209 * normal/execute.c (grub_script_execute_menuentry): New function.
25210 * normal/lexer.c (record, recording, recordpos, recordlen): New
25211 variables.
25212 (grub_script_lexer_record_start): New function.
25213 (grub_script_lexer_record_stop): Likewise.
25214 (recordchar): Likewise.
25215 (nextchar): Likewise.
25216 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
25217 2048 as the buffer size. Add the tokens `menuentry' and `@'.
25218 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
25219 (current_menu): New variable.
25220 (free_menu): Mainly rewritten.
25221 (grub_normal_menu_addentry): New function.
25222 (read_config_file): Rewritten.
25223 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 25224 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 25225 the menu entry.
25226 (run): Mainly rewritten.
25227 * normal/parser.y (menu_entry): New variable.
25228 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
25229 (menuentry): New rule.
25230 (command): Add `menuentry'.
25231 (if_statement): Allow additional returns before `fi'.
25232 * normal/script.c (grub_script_create_cmdmenu): New function.
25233
144f1f98 252342006-01-03 Marco Gerards <marco@gnu.org>
25235
25236 * INSTALL: GNU Bison is required.
25237 * configure.ac: Rewritten the test to detect Bison.
25238 * Makefile.in (YACC): New variable. Reported by Xun Sun
25239 <xun.sun.cn@gmail.com>.
25240
af4b2d89 252412006-01-03 Marco Gerards <marco@gnu.org>
25242
25243 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
25244 the HFS+ filesystem to filesystem blocks.
25245 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
25246 GCC warning is silenced.
25247
15643b71 252482006-01-03 Marco Gerards <marco@gnu.org>
25249
25250 * partmap/apple.c (apple_partition_map_iterate): Convert the data
25251 read from disk from big endian to host byte order.
25252
00905879 252532006-01-03 Hollis Blanchard <hollis@penguinppc.org>
25254
25255 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
25256 documentation.
25257 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
25258 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
25259 embedded HFS+ filesystem.
25260 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
25261 (grub_hfs_sblock): Move from here...
25262 * include/grub/hfs.h: To here... New file.
25263 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
25264 documentation.
25265 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
25266 New macros.
25267 (grub_hfsplus_volheader): Change type of member `magic' to
25268 `grub_uint16_t'.
25269 (grub_hfsplus_data): Add new member `embedded_offset'.
25270 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
25271 returned block.
25272 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
25273 Calculate the offset.
25274
8899bc3e 252752005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
25276
25277 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
25278 Removed.
25279 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
25280
ae8c0277 252812005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
25282
25283 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
25284 ENV->NAME is NULL after allocating ENV->VALUE.
25285
07084456 252862005-12-25 Marco Gerards <marco@gnu.org>
25287
25288 * kern/env.c (grub_env_set): Rewritten the error handling code.
25289
4750f5f1 252902005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
25291
25292 * geninit.sh: Made more robust, and more portable.
25293
50214199 252942005-12-25 Marco Gerards <marco@gnu.org>
25295
25296 Add support for Apple HFS+ filesystems.
f19dbdb7 25297
50214199 25298 * fs/hfsplus.c: New file.
25299
25300 * DISTLIST: Added `fs/hfsplus.c'.
25301
25302 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
25303 (hfsplus_mod_SOURCES): New variable.
25304 (hfsplus_mod_CFLAGS): Likewise.
25305 (hfsplus_mod_LDFLAGS): Likewise.
25306 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
25307 (grub_setup_SOURCES): Likewise.
25308 (grub_mkdevicemap_SOURCES): Likewise.
25309 (grub_emu_SOURCES): Likewise.
25310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25311
25312 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
25313
25314 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
25315
befaed6c 253162005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
25317
25318 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
25319 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
25320 include/grub/parser.h, include/grub/script.h, kern/parser.c,
25321 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
25322 normal/lexer.c, normal/parser.y, normal/script.c, and
25323 partmap/gpt.c.
25324 Removed kern/sparc64/cache.c.
25325
25326 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
25327 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
25328 grub_emu_init.c.
25329
25330 * configure.ac (AC_INIT): Bumped to 1.92.
25331
6a124103 253322005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
25333
25334 * kern/err.c (grub_error_push): Added new function to support error
25335 stacks.
25336 (grub_error_pop): Likewise.
25337 (grub_error_stack_items): New local variable to support error stacks.
25338 (grub_error_stack_pos): Likewise.
25339 (grub_error_stack_assert): Likewise.
25340 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
25341 stack depth.
25342 (grub_print_error): Added support to print errors from error stack.
25343
25344 * include/grub/err.h (grub_error_push): Added function prototype.
25345 (grub_error_pop): Likewise.
25346
be973c1b 253472005-12-09 Hollis Blanchard <hollis@penguinppc.org>
25348
25349 * configure.ac: Accept `powerpc64' as host_cpu.
25350 (amd64): Rename to `biarch32'.
25351
25352 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
25353 non-cacheline-aligned addresses.
25354
25355 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
25356 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
25357 if `size' is non-zero.
25358
b04216ab 253592005-12-03 Marco Gerards <mgerards@xs4all.nl>
25360
25361 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
25362 and `cd' to make sure the filename is not prefixed with a
25363 directory name.
25364 (pkgdata_MODULES): Add `gpt.mod'.
25365 (gpt_mod_SOURCES): New variable.
25366 (gpt_mod_CFLAGS): Likewise.
25367 (gpt_mod_LDFLAGS): Likewise.
25368
25369 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
25370
25371 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
25372 New macro.
25373
25374 * partmap/gpt.c: New file.
25375
25376 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
25377 GPT partition map is detected.
25378
41730ed9 253792005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
25380
25381 * commands/i386/pc/play.c: New file.
25382 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
25383 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
25384 macros.
f19dbdb7 25385
95dc3643 253862005-11-27 Marco Gerards <mgerards@xs4all.nl>
25387
25388 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
25389 ((unused))' to silence gcc warning.
25390
1569ec51 253912005-11-26 Hollis Blanchard <hollis@penguinppc.org>
25392
25393 * configure.ac: Correct `AC_PROG_YACC' test.
25394
9abde152 253952005-11-22 Hollis Blanchard <hollis@penguinppc.org>
25396
25397 * util/powerpc/ieee1275/grub-install.in: Run the mount point
25398 check before installing files.
25399
44b83271 254002005-11-22 Mike Small <smallm@panix.com>
25401
25402 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
25403 number regex so multidigit numbers are recognized correctly.
25404
254052005-11-22 Mike Small <smallm@panix.com>
25406
25407 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
25408 debugging message before attempting to claim memory.
25409 (grub_rescue_cmd_initrd): Add a claim debugging message and try
25410 multiple addresses in case of failure.
25411
9c12956b 254122005-11-22 Hollis Blanchard <hollis@penguinppc.org>
25413
25414 * term/tparm.c (get_space): Remove empty `if' statement.
25415
25416 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
25417
25418 * kern/parser.c (check_varstate): Rename `state' to 's'.
25419
aeaf81d9 254202005-11-22 Hollis Blanchard <hollis@penguinppc.org>
25421
25422 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
25423 variable definitions to the beginning of each function. Sort stack
25424 variables by size.
25425 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
25426 `buf' argument to `char *'.
25427
79bbb63f 254282005-11-22 Hollis Blanchard <hollis@penguinppc.org>
25429
25430 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
25431 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 25432 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 25433 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
25434 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
25435 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
25436 configfile.mod, search.mod, gzio.mod and test.mod.
25437 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
25438 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
25439 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
25440 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
25441 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
25442 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
25443 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
25444 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
25445 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
25446 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
25447 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
25448 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
25449 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
25450 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
25451 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
25452 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
25453 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
25454 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
25455 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
25456 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
25457 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
25458 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
25459 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
25460
25461 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
25462 `grep --include'.
25463 (pkgdata_MODULES): Add test.mod.
25464
233b1628 254652005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25466
25467 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
25468 appending to variables with "+=".
25469 (PModule): Use full pathname to generate *.lst filenames.
25470
25471 * Makefile.in: Fixed list rules moved from genmk.rb.
25472 (.DELETE_ON_ERROR): New special target.
25473 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
25474
25475 * conf/i386-pc.rmk: Include conf/common.mk.
25476 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 25477 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 25478 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
25479 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
25480 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
25481 configfile.mod, search.mod, gzio.mod and test.mod.
25482 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
25483 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
25484 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
25485 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
25486 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
25487 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
25488 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
25489 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
25490 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
25491 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
25492 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
25493 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
25494 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
25495 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
25496 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
25497 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
25498 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
25499 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
25500 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
25501 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
25502 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
25503 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
25504 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
25505 here...
25506 * conf/common.rmk: ... to here. New file.
25507
25508 * conf/common.mk: New file.
25509
16f820c8 255102005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
25511
25512 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
25513 (grub_script.tab.c): ... here.
25514
25515 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
25516 (grub_script.tab.c): ... here.
25517
25518 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
25519 (grub_script.tab.c): ... here.
25520
25521 * normal/command.c (grub_command_find): Fixed a memory leak of
25522 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
25523
63ba1554 255242005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25525
25526 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
25527 "@" which marks the start of a comment on ARM.
25528 (VARIABLE): Likewise.
25529
7f67dc13 255302005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25531
79bbb63f 25532 Add support for Linux/ADFS partition tables.
7f67dc13 25533
25534 * partmap/acorn.c: New file.
25535
25536 * include/grub/acorn_filecore.h: Likewise.
25537
25538 * DISTLIST: Added `partmap/acorn.c' and
25539 `include/grub/acorn_filecore.h'.
f19dbdb7 25540
7f67dc13 25541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25542 `partmap/acorn.c'.
25543 (pkgdata_MODULES): Add `acorn.mod'.
25544 (acorn_mod_SOURCES): New variable.
25545 (acorn_mod_CFLAGS): Likewise.
25546
25547 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
25548 `partmap/acorn.c'.
25549 (pkgdata_MODULES): Add `acorn.mod'.
25550 (acorn_mod_SOURCES): New variable.
25551 (acorn_mod_CFLAGS): Likewise.
25552
25553 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
25554 (pkgdata_MODULES): Add `acorn.mod'.
25555 (acorn_mod_SOURCES): New variable.
25556 (acorn_mod_CFLAGS): Likewise.
25557 (acorn_mod_LDFLAGS): Likewise.
25558
25559 * include/types.h (grub_disk_addr_t): New typedef.
25560
6d099807 255612005-11-13 Marco Gerards <mgerards@xs4all.nl>
25562
25563 * geninit.sh: New file.
25564
25565 * geninitheader.sh: Likewise.
25566
25567 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
25568 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
25569 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
25570 * commands/configfile.c (grub_configfile_init)
25571 (grub_configfile_fini): Likewise.
25572 * commands/default.c (grub_default_init, grub_default_fini):
25573 Likewise.
25574 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
25575 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
25576 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
25577 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
25578 Likewise.
25579 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
25580 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
25581 Likewise.
25582 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 25583 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 25584 Likewise.
25585 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
25586 Likewise.
fe6b695a 25587 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 25588 Likewise.
25589 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
25590 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
25591 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
25592 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
25593 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
25594 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
25595 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
25596 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
25597 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
25598 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
25599 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
25600 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
25601 * partmap/amiga.c (grub_amiga_partition_map_init)
25602 (grub_amiga_partition_map_fini): Likewise.
25603 * partmap/apple.c (grub_apple_partition_map_init)
25604 (grub_apple_partition_map_fini): Likewise.
25605 * partmap/pc.c (grub_pc_partition_map_init)
25606 (grub_pc_partition_map_fini): Likewise.
25607 * partmap/sun.c (grub_sun_partition_map_init,
25608 grub_sun_partition_map_fini): Likewise.
25609 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
25610 Likewise.
25611
25612 * util/grub-emu.c: Include <grub_modules_init.h>.
25613 (main): Don't initialize and de-initialize any modules directly,
25614 use `grub_init_all' and `grub_fini_all' instead.
25615
25616 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
25617 `grub_vesafb_mod_init'.
25618 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
25619 all users.
25620 * term/i386/pc/vga.c (grub_vga_init): Renamed to
25621 `grub_vga_mod_init'. Updated all users.
25622 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 25623
6d099807 25624 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
25625 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
25626 rules.
25627
25628 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
25629 Generate a function to initialize the module in utilities.
25630 Updated all callers.
25631 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
25632 initialize the module in utilities. Updated all callers.
25633
9046bcf0 256342005-11-09 Hollis Blanchard <hollis@penguinppc.org>
25635
25636 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
25637 escape sequence and a literal ^L to clear the screen.
25638
25639 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
25640 when returning from Open Firmware.
25641
d13ea639 256422005-11-09 Hollis Blanchard <hollis@penguinppc.org>
25643
25644 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
25645 (grub_ofconsole_height): Likewise.
25646 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
25647 manually insert a '\n'.
25648 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
25649 `grub_ofconsole_height'. Return early if these are already set.
25650
a8fcf206 256512005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
25652
25653 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
25654 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
25655 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
25656 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
25657 and `normal/script.c'.
25658 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
25659 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
25660 (test_mod_SOURCES): New variable.
25661 (test_mod_CFLAGS): Likewise.
25662 (test_mod_LDFLAGS): Likewise.
25663 (pkgdata_MODULES): Add `test.mod'.
25664 (grub_script.tab.c): New rule.
25665 (grub_script.tab.h): Likewise.
25666
b6b32745 256672005-11-07 Marco Gerards <mgerards@xs4all.nl>
25668
25669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25670 `commands/test.c', `normal/execute.c', `normal/lexer.c',
25671 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
25672 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
25673 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
25674 (test_mod_SOURCES): New variable.
25675 (test_mod_CFLAGS): Likewise.
25676 (pkgdata_MODULES): Add `test.mod'.
25677 (grub_script.tab.c): New rule.
25678 (grub_script.tab.h): Likewise.
25679
daac212a 256802005-11-06 Marco Gerards <mgerards@xs4all.nl>
25681
25682 Add initial scripting support.
25683
25684 * commands/test.c: New file.
25685 * include/grub/script.h: Likewise.
25686 * normal/execute.c: Likewise.
25687 * normal/function.c: Likewise.
25688 * normal/lexer.c: Likewise.
25689 * normal/parser.y: Likewise.
25690 * normal/script.c: Likewise.
25691
25692 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 25693
daac212a 25694 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
25695 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
25696 `normal/function.c' and `normal/script.c'.
25697 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
25698 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 25699 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
25700 variables.
daac212a 25701 (pkgdata_MODULES): Add `test.mod'.
25702 (grub_script.tab.c): New rule.
25703 (grub_script.tab.h): Likewise.
25704
25705 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
25706
25707 * include/grub/normal.h (grub_test_init): New prototype.
25708 (grub_test_fini): Likewise.
f19dbdb7 25709
daac212a 25710 * normal/command.c: Include <grub/script.h>.
25711 (grub_command_execute): Rewritten.
f19dbdb7 25712
daac212a 25713 * util/grub-emu.c (main): Call `grub_test_init' and
25714 `grub_test_fini'.
25715
77500b2b 257162005-11-03 Hollis Blanchard <hollis@penguinppc.org>
25717
25718 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
25719 to 0.
25720 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
25721 there are no pending characters.
25722
e45deb9e 257232005-11-03 Hollis Blanchard <hollis@penguinppc.org>
25724
25725 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
25726 `grub_strndup' to drop device arguments. Replace unnecessary
25727 `grub_strndup' with `grub_strdup'.
25728
4ce32619 257292005-11-03 Hollis Blanchard <hollis@penguinppc.org>
25730
25731 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
25732 `debug' environment variable has been set.
25733
257342005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 25735
4ce32619 25736 * Makefile.in (install-local): Use $(DATA).
25737 (uninstall): Likewise.
25738 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
25739 (sbin_UTILITIES): ... to here.
25740 (sbin_SCRIPTS): New variable.
25741 (grub_install_SOURCES): New variable.
25742 * util/powerpc/ieee1275/grub-install.in: New file.
25743 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
25744 variable.
25745 (add_segments): Call `grub_util_get_path'.
25746
25fe6f03 257472005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
25748
25749 From Timothy Baldwin:
25750 * commands/ls.c (grub_ls_list_files): Close FILE with
25751 grub_file_close.
25752 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
25753
04ccf3ec 257542005-10-24 Marco Gerards <mgerards@xs4all.nl>
25755
25756 * include/grub/parser.h: New file.
25757
25758 * kern/parser.c: Likewise.
25759
25760 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
25761 (grub_setup_SOURCES): Likewise.
25762 (grub_probefs_SOURCES): Likewise.
25763 (grub_emu_SOURCES): Likewise.
25764 (kernel_img_HEADERS): Add `parser.h'.
25765
25766 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
25767 (grub_emu_SOURCES): Add `kern/parser.c'.
25768 (grubof_SOURCES): Likewise.
25769
25770 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
25771 (grubof_SOURCES): Add `kern/parser.c'.
25772
25773 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
25774
25775 * kern/misc.c (grub_split_cmdline): Removed function.
25776
25777 * kern/rescue.c: Include <grub/parser.h>.
25778 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
25779 of `grub_split_cmdline'.
25780
25781 * normal/command.c: Include <grub/parser.h>.
25782 (grub_command_execute): Use `grub_parser_split_cmdline' instead
25783 of `grub_split_cmdline'.
25784
25785 * normal/completion.c: Include <grub/parser.h>.
25786 (cmdline_state): New variable.
25787 (iterate_dir): End the filename with a quote depending on the
25788 command line state.
25789 (get_state): new function.
25790 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
25791 split the arguments and determine the current argument. When the
25792 argument string is not quoted, escape all spaces.
25793
6d8f4b0e 257942005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
25795
25796 * normal/sparc64/setjmp.S: New file.
25797
15cf03ed 257982005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
25799
25800 * include/grub/sparc64/libgcc.h: New file.
25801 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
25802 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
25803 normal/sparc64/setjmp.c.
25804
03e8661a 258052005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
25806
25807 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
25808 * kern/sparc64/cache.S: New file.
25809 * kern/sparc64/cache.c: Removed.
25810 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
25811 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
25812 -mtune=ultrasparc.
25813 (COMMON_LDFLAGS): Add -melf64_sparc.
25814 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
25815 (grubof_SOURCES): Use cache.S instead of cache.c.
25816 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
25817 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
25818 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
25819 commented though.
25820 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
25821 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
25822 (linux_mod_CFLAGS): Commented out.
25823 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
25824 out because module isn't built.
25825 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
25826 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
25827 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
25828 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
25829 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
25830 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25831 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25832 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
25833 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
25834 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
25835 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
25836 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
25837 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
25838 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
25839
34eeec8a 258402005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
25841
25842 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
25843 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
25844 longer, because HFS should not be used on PC.
25845
708367a3 258462005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25847
25848 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
25849 consistently within the loop.
25850
6fa1251a 258512005-10-15 Marco Gerards <mgerards@xs4all.nl>
25852
25853 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
25854 directory can not be read.
25855
4801580b 258562005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25857
25858 * configure.ac (AC_INIT): Increase the version number to 1.91.
25859
25860 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
25861 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
25862 term/i386/pc/serial.c.
25863
219ad426 258642005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25865
25866 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
25867 file size must be permitted.
25868
25869 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
25870 between %ah and %al.
25871
688e5699 258722005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25873
25874 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
25875 grub_uint64_t.
25876 Call the hook with a NUL-terminated filename.
25877 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
25878 grub_cpu_to_be32.
25879
25880 * kern/term.c (cursor_state): New variable.
25881 (grub_term_set_current): Reset the cursor state on a new
25882 terminal.
25883 (grub_setcursor): Rewritten to use CURSOR_STATE.
25884 (grub_getcursor): New function.
25885
25886 * include/grub/term.h (grub_getcursor): New prototype.
25887
25888 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
25889 integers on ARM. Reported by Timothy Baldwin
25890 <T.E.Baldwin99@members.leeds.ac.uk>.
25891
bb34586c 258922005-10-11 Marco Gerards <mgerards@xs4all.nl>
25893
25894 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
25895 allocated.
25896 (grub_sfs_dir): Likewise.
25897
9a909877 258982005-10-09 Marco Gerards <mgerards@xs4all.nl>
25899
25900 Add support for the SFS filesystem.
25901
25902 * fs/sfs.c: New file.
25903
25904 * DISTLIST: Added `fs/sfs.c'.
25905
25906 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
25907 (grub_probefs_SOURCES): Likewise.
25908 (grub_emu_SOURCES): Likewise.
25909 (pkgdata_MODULES): Add `sfs.mod'.
25910 (sfs_mod_SOURCES): New variable.
25911 (sfs_mod_CFLAGS): Likewise.
25912 (sfs_mod_LDFLAGS): Likewise.
25913
25914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
25915 (pkgdata_MODULES): Add `sfs.mod'.
25916 (sfs_mod_SOURCES): New variable.
25917 (sfs_mod_CFLAGS): Likewise.
25918
25919 * util/grub-emu.c (main): Call `grub_sfs_init' and
25920 `grub_sfs_fini'.
25921
25922 * include/grub/fs.h (grub_sfs_init): New prototype.
25923 (grub_sfs_fini): Likewise.
25924
57bdbde3 259252005-10-07 Marco Gerards <mgerards@xs4all.nl>
25926
25927 Add support for the AFFS filesystem.
25928
25929 * fs/affs.c: New file.
25930
25931 * DISTLIST: Added `fs/affs.c'.
25932
25933 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
25934 (grub_probefs_SOURCES): Likewise.
25935 (grub_emu_SOURCES): Likewise.
25936 (pkgdata_MODULES): Add `affs.mod'.
25937 (affs_mod_SOURCES): New variable.
25938 (affs_mod_CFLAGS): Likewise.
25939 (affs_mod_LDFLAGS): Likewise.
25940
25941 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
25942 (pkgdata_MODULES): Add `affs.mod'.
25943 (affs_mod_SOURCES): New variable.
25944 (affs_mod_CFLAGS): Likewise.
25945
25946 * util/grub-emu.c (main): Call `grub_affs_init' and
25947 `grub_affs_fini'.
25948
25949 * include/grub/fs.h (grub_affs_init): New prototype.
25950 (grub_affs_fini): Likewise.
25951
047b67e0 259522005-10-01 Marco Gerards <mgerards@xs4all.nl>
25953
25954 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
25955
59b8208a 259562005-10-01 Marco Gerards <mgerards@xs4all.nl>
25957
25958 * configure.ac: Accept `x86_64' as host_cpu. In that case add
25959 `-m32' to CFLAGS.
25960
25961 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
25962 linking.
f19dbdb7 25963
59b8208a 25964 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
25965 (COMMON_LDFLAGS): New variable.
25966 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
25967 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
25968 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
25969 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
25970 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
25971 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
25972 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
25973 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
25974 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
25975 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
25976 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25977 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25978 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
25979 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
25980 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
25981 variables.
25982 (normal_mod_ASFLAGS): Add `-m32'.
25983
25984 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
25985 (grub_host_size_t, grub_host_ssize_t): New types.
25986 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 25987 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 25988 `GRUB_HOST_SIZEOF_VOID_P'.
25989
25990 * include/grub/kernel.h (struct grub_module_header): Type of
25991 member offset changed to `grub_host_off_t'. Type of member size
25992 changed to `grub_host_size_t'.
25993 (struct grub_module_info): Type of member offset changed to
25994 `grub_host_off_t'. Type of member size changed to
25995 `grub_host_size_t'.
25996
b4093103 259972005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
25998
25999 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 26000
b4093103 26001 * kern/i386/pc/startup.S (multiboot_header): New label.
26002 (multiboot_entry): Likewise.
26003 (multiboot_trampoline): Likewise.
26004
26005 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26006 Increased to 0x4A0.
26007
26008 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
26009 put parentheses after a question mark.
26010 [!GRUB_UTIL] (my_mod): New variable.
26011
26012 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
26013
b2499b29 260142005-09-28 Marco Gerards <mgerards@xs4all.nl>
26015
26016 Adds support for the XFS filesystem. Btrees are not supported
26017 yet.
26018
26019 * fs/xfs.c: New file.
26020
26021 * DISTLIST: Added `fs/xfs.c'.
26022
26023 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
26024 (grub_probefs_SOURCES): Likewise.
26025 (grub_emu_SOURCES): Likewise.
26026 (pkgdata_MODULES): Add `xfs.mod'.
26027 (xfs_mod_SOURCES): New variable.
26028 (xfs_mod_CFLAGS): Likewise.
26029
26030 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
26031 (pkgdata_MODULES): Add `xfs.mod'.
26032 (xfs_mod_SOURCES): New variable.
26033 (xfs_mod_CFLAGS): Likewise.
26034
26035 * util/grub-emu.c (main): Call `grub_xfs_init' and
26036 `grub_xfs_fini'.
26037
26038 * include/grub/fs.h (grub_xfs_init): New prototype.
26039 (grub_xfs_fini): Likewise.
26040
f19dbdb7 26041
83d37a62 260422005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
26043
26044 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
26045 color modes, allow greater than 16 colors to be configured as
26046 a default palette.
26047
47d2d65e 260482005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26049
26050 * normal/completion.c (complete_arguments): Add the qualifier
26051 const into OPTIONS.
26052
26053 From Omniflux <omniflux+lists@omniflux.com>:
26054 * include/grub/terminfo.h: New file.
26055 * include/grub/tparm.h: Likewise.
26056 * include/grub/i386/pc/serial.h: Likewise.
26057 * term/terminfo.c: Likewise.
26058 * term/tparm.c: Likewise.
26059 * term/i386/pc/serial.c: Likewise.
26060 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
26061 serial.mod.
26062 (terminfo_mod_SOURCES): New variable.
26063 (terminfo_mod_CFLAGS): Likewise.
26064 (serial_mod_SOURCES): Likewise.
26065 (serial_mod_CFLAGS): Likewise.
26066
48b671ff 260672005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
26068
26069 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
26070 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
26071 and kern/powerpc/ieee1275/cmain.c, respectively.
26072
26073 * boot/powerpc/ieee1275/crt0.S: Moved to ...
26074 * kern/powerpc/ieee1275/crt0.S: ... here.
26075
26076 * boot/powerpc/ieee1275/cmain.c: Moved to ...
26077 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 26078
48b671ff 26079 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
26080 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
26081 instead of boot/powerpc/ieee1275/crt0.S and
26082 boot/powerpc/ieee1275/cmain.c, respectively.
26083
26084 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
26085 sectors. It was not used anyway.
26086
09fc77a7 260872005-08-30 Hollis Blanchard <hollis@penguinppc.org>
26088
26089 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
26090 `unused parameter' warning.
26091
003789c7 260922005-08-30 Hollis Blanchard <hollis@penguinppc.org>
26093
26094 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
26095 function.
26096 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
26097 getcharwidth.
26098
67f44c86 260992005-08-28 Marco Gerards <metgerards@student.han.nl>
26100
26101 * include/grub/normal.h (enum grub_completion_type): Added
26102 `GRUB_COMPLETION_TYPE_ARGUMENT'.
26103
26104 * normal/cmdline.c (print_completion): Handle
26105 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
26106 * normal/menu_entry.c (store_completion): Likewise.
26107
26108 * normal/completion.c (complete_arguments): New function.
26109 (grub_normal_do_completion): Call `complete_arguments' when the
26110 current words start with a dash.
26111
0b5abe02 261122005-08-27 Marco Gerards <metgerards@student.han.nl>
26113
26114 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
26115 `gzio.mod' instead of `io.mod').
26116
d9864ee1 261172005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
26118
26119 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
26120 (DISTDIRS): Added io and video.
26121 Rewrite the search routine to make an output consistently.
26122
26123 * DISTLIST: Added conf/sparc64-ieee1275.mk,
26124 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
26125 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
26126 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
26127 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
26128 util/powerpc/ieee1275/misc.c.
f19dbdb7 26129
d9864ee1 26130 * include/grub/gzio.h: New file.
26131 * io/gzio.c: Likewise.
f19dbdb7 26132
d9864ee1 26133 * kern/file.c (grub_file_close): Call grub_device_close only if
26134 FILE->DEVICE is not NULL.
26135
26136 * include/grub/mm.h [!NULL] (NULL): New macro.
26137
26138 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
26139
26140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
26141 (pkgdata_MODULES): Added gzio.mod.
26142 (gzio_mod_SOURCES): New variable.
26143 (gzio_mod_CFLAGS): Likewise.
26144
26145 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
26146 (pkgdata_MODULES): Added gzio.mod.
26147 (gzio_mod_SOURCES): New variable.
26148 (gzio_mod_CFLAGS): Likewise.
26149
26150 * commands/cat.c: Include grub/gzio.h.
26151 (grub_cmd_cat): Use grub_gzfile_open instead of
26152 grub_file_open.
f19dbdb7 26153
d9864ee1 26154 * commands/cmp.c: Include grub/gzio.h.
26155 (grub_cmd_cmp): Use grub_gzfile_open instead of
26156 grub_file_open.
26157
26158 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
26159 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
26160 grub_file_open.
26161 (grub_rescue_cmd_module): Likewise.
26162
fa46f4b5 261632005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
26164
26165 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
26166 kern/sparc64/ieee1275/init.c because it contains _start.
26167 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
26168
e9211b5d 261692005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
26170
26171 * configure.ac: Add support for sparc64 host with ieee1275
26172 firmware.
26173 * configure: Generated from configure.ac.
26174 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
26175 instead of int.
26176 (grub_ofdisk_read): Likewise.
26177 (grub_ofdisk_open): Use %p to print pointer values, and cast the
26178 pointers as (void *) to remove a warning.
26179 (grub_ofdisk_close): Likewise.
26180 (grub_ofdisk_read): Likewise.
26181 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
26182 returns, so make it return void to remove a warning.
26183 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
26184 Corresponding prototype change.
26185 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
26186 values, and cast the pointers as (void *) to remove a warning.
26187 (grub_mm_dump): Likewise.
26188 * conf/sparc64-ieee1275.mk: New file.
26189 * conf/sparc64-ieee1275.rmk: Likewise.
26190 * include/grub/sparc64/setjmp.h: Likewise.
26191 * include/grub/sparc64/types.h: Likewise.
26192 * include/grub/sparc64/ieee1275/console.h: Likewise.
26193 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26194 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26195 * include/grub/sparc64/ieee1275/time.h: Likewise.
26196 * kern/sparc64/cache.c: Likewise.
26197 * kern/sparc64/dl.c: Likewise.
26198 * kern/sparc64/ieee1275/init.c: Likewise.
26199 * kern/sparc64/ieee1275/openfw.c: Likewise.
26200
385c6a92 262012005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26202
26203 * util/console.c (grub_ncurses_putchar): If C is greater than
26204 0x7f, set C to a question mark.
26205 (grub_ncurses_getcharwidth): New function.
26206 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
26207 getcharwidth.
26208
26209 * normal/menu.c (print_entry): Made aware of Unicode. First,
26210 convert TITLE to UCS-4, and predict the cursor position by
26211 grub_getcharwidth.
26212
26213 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
26214 const to SRC.
26215 * kern/misc.c (grub_utf16_to_utf8): Likewise.
26216
16ccb8b1 262172005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
26218
26219 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
26220 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
26221 grub_strcat.
26222
26223 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
26224 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
26225 grub_strcpy and grub_strlen. Take it into account that a space
26226 character is inserted as a delimiter.
26227
6a85ce79 262282005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
26229
26230 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 26231 invalid magic in the error.
6a85ce79 26232
26233 * commands/search.c: New file.
f19dbdb7 26234
6a85ce79 26235 * util/grub-emu.c (main): Call grub_search_init and
26236 grub_search_fini.
26237
26238 * kern/rescue.c (grub_rescue_print_disks): Removed.
26239 (grub_rescue_print_devices): New function.
26240 (grub_rescue_cmd_ls): Use grub_device_iterate with
26241 grub_rescue_print_devices instead of grub_disk_dev_iterate with
26242 grub_rescue_print_disks.
26243
26244 * kern/partition.c (grub_partition_iterate): Return the result of
26245 PARTMAP->ITERATE instead of GRUB_ERRNO.
26246
26247 * kern/device.c: Include grub/partition.h.
26248 (grub_device_iterate): New function.
26249
26250 * include/grub/partition.h (grub_partition_iterate): Return int
26251 instead of grub_err_t.
26252
26253 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
26254 prototype.
26255 [GRUB_UTIL] (grub_search_fini): Likewise.
26256
26257 * include/grub/device.h (grub_device_iterate): New prototype.
26258
26259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26260 commands/search.c.
26261 (pkgdata_MODULES): Added search.mod.
26262 (search_mod_SOURCES): New variable.
26263 (search_mod_CFLAGS): Likewise.
26264
26265 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
26266 (pkgdata_MODULES): Added search.mod.
26267 (search_mod_SOURCES): New variable.
26268 (search_mod_CFLAGS): Likewise.
26269
26270 * commands/ls.c (grub_ls_list_disks): Renamed to ...
26271 (grub_ls_list_devices): ... this, and use grub_device_iterate.
26272 All callers changed.
26273
26274 * DISTLIST: Added commands/search.c.
26275
ef095434 262762005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
26277
26278 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
26279 conversion.
26280 (grub_getcharwidth): New function.
26281
26282 * kern/misc.c (grub_utf8_to_ucs4): New function.
26283
26284 * include/grub/term.h (struct grub_term): Added a new member
26285 "getcharwidth".
26286 (grub_getcharwidth): New prototype.
26287
26288 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
26289
26290 * term/i386/pc/console.c (map_char): New function. Segregated from
26291 grub_console_putchar.
26292 (grub_console_putchar): Use map_char.
26293 (grub_console_getcharwidth): New function.
26294 (grub_console_term): Specified grub_console_getcharwidth as
26295 getcharwidth.
26296
26297 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
26298 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
26299
26300 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
26301 GRUB_ERRNO.
26302 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
26303 on grub_strtoul completely.
26304 (write_char): Declare local variables in the beginning of the
26305 function.
26306 (grub_vesafb_getcharwidth): New function.
26307 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
26308 getcharwidth.
26309
1f0a95e4 263102005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
26311
26312 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
26313 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
26314 commands/i386/pc/vbetest.c.
26315
26316 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
26317 call grub_vbe_get_controller_info again, because the returned
26318 information is volatile.
26319 (grub_vbe_set_video_mode): Mostly rewritten.
26320 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
26321 grub_vbe_status_t correctly.
26322 (grub_vbe_get_video_mode_info): Likewise.
26323 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
26324 several if statements.
26325
26326 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
26327 * commands/i386/pc/vbeinfo.c: ... this.
26328
26329 * commands/i386/pc/vbe_test.c: Renamed to ...
26330 * commands/i386/pc/vbetest.c: ... this.
26331
26332 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
26333 ...
26334 (grub_cmd_vbeinfo): ... this. Save video modes before
26335 iterating. Skip a video mode, if it is not available, not enough
26336 information is given or it is monochrome. Show the memory
26337 model. Leave the interpretation of MODEVAR to grub_strtoul
26338 completely.
26339 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
26340 (GRUB_MOD_FINI): Likewise.
26341
26342 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
26343 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
26344 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
26345 duplicated grub_env_get. Leave the interpretation of MODEVAR to
26346 grub_strtoul completely.
26347 (real2pm): Removed.
26348 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
26349 (GRUB_MOD_FINI): Likewise.
26350
26351 * normal/misc.c: Include grub/mm.h.
26352
26353 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
26354 vbe_list_modes with vbetest.mod and vbeinfo.mod.
26355 (vbe_list_modes_mod_SOURCES): Removed.
26356 (vbe_list_modes_mod_CFLAGS): Likewise.
26357 (vbe_test_mod_SOURCES): Likewise.
26358 (vbe_test_mod_CFLAGS): Likewise.
26359 (vbeinfo_mod_SOURCES): New variable.
26360 (vbeinfo_mod_CFLAGS): Likewise.
26361 (vbetest_mod_SOURCES): Likewise.
26362 (vbetest_mod_CFLAGS): Likewise.
26363
992ffbbe 263642005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
26365
26366 * normal/misc.c: New file.
26367
26368 * DISTLIST: Added normal/misc.c.
f19dbdb7 26369
992ffbbe 26370 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
26371 DISK to HOOK. Call HOOK with DISK.
26372 * partmap/apple.c (apple_partition_map_iterate): Likewise.
26373 * partmap/pc.c (pc_partition_map_iterate): Likewise.
26374 * partmap/sun.c (sun_partition_map_iterate): Likewise.
26375
26376 * normal/menu_entry.c (struct screen): Added a new member
26377 "completion_shown".
26378 (completion_buffer): New global variable.
26379 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
26380 (store_completion): New function.
26381 (complete): Likewise.
26382 (clear_completions): Likewise.
26383 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
26384 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
26385 a tab, call complete.
26386
26387 * normal/completion.c (disk_dev): Removed.
26388 (print_simple_completion): Likewise.
26389 (print_partition_completion): Likewise.
26390 (print_func): New global variable.
26391 (add_completion): Do not take the arguments WHAT or PRINT any
26392 longer. Added a new argument TYPE. Instead of printing directly,
26393 call PRINT_FUNC if not NULL.
26394 All callers changed.
26395 (complete_device): Use a local variable DEV instead of
26396 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
26397 (grub_normal_do_completion): Take a new argument HOOK. Do not
26398 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
26399 empty string, return NULL instead.
26400 All callers changed.
26401
26402 * normal/cmdline.c (print_completion): New function.
26403
26404 * kern/partition.c (grub_partition_iterate): Add an argument DISK
26405 to HOOK.
26406 All callers changed.
26407
26408 * kern/disk.c (grub_print_partinfo): Removed.
26409
26410 * include/grub/partition.h (struct grub_partition_map): Add a new
26411 argument DISK into HOOK of ITERATE.
26412 (grub_partition_iterate): Add a new argument DISK to HOOK.
26413
26414 * include/grub/normal.h (enum grub_completion_type): New enum.
26415 (grub_completion_type_t): New type.
26416 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
26417 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
26418 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
26419 (GRUB_COMPLETION_TYPE_FILE): Likewise.
26420 (grub_normal_do_completion): Added a new argument HOOK.
26421 (grub_normal_print_device_info): New prototype.
26422
26423 * include/grub/disk.h (grub_print_partinfo): Removed.
26424
26425 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
26426 (normal_mod_SOURCES): Likewise.
26427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26428 (normal_mod_SOURCES): Likewise.
26429
26430 * commands/ls.c (grub_ls_list_disks): Use
26431 grub_normal_print_device_info instead of grub_print_partinfo. Free
26432 PNAME.
26433 (grub_ls_list_files): Use grub_normal_print_device_info instead of
26434 duplicating the code.
26435
0bd41162 264362005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
26437
26438 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 26439 follow GCS more precisely.
26440 * commands/i386/pc/vbe_test.c: Likewise.
26441 * include/grub/i386/pc/vbe.h: Likewise.
26442 * term/i386/pc/vesafb.c: Likewise.
26443 * video/i386/pc/vbe.c: Likewise.
0bd41162 26444
6323696a 264452005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
26446
26447 * DISTLIST: Added term/i386/pc/vesafb.c
26448 DISTLIST: Added video/i386/pc/vbe.c
26449 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
26450 DISTLIST: Added commands/i386/pc/vbe_test.c.
26451 * commands/i386/pc/vbe_list_modes.c: New file.
26452 * commands/i386/pc/vbe_test.c: Likewise.
26453 * term/i386/pc/vesafb.c: Likewise.
26454 * video/i386/pc/vbe.c: Likewise.
26455 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
26456 (grub_vbe_probe) Added prototype.
26457 (grub_vbe_set_video_mode) Likewise.
26458 (grub_vbe_get_video_mode) Likewise.
26459 (grub_vbe_get_video_mode_info) Likewise.
26460 (grub_vbe_set_pixel_rgb) Likewise.
26461 (grub_vbe_set_pixel_index) Likewise.
26462 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
26463 (pkgdata_MODULES): Added vesafb.mod.
26464 (pkgdata_MODULES): Added vbe_list_modes.mod.
26465 (pkgdata_MODULES): Added vbe_test.mod.
26466 (vbe_mod_SOURCES): Added.
26467 (vbe_mod_CFLAGS): Likewise.
26468 (vesafb_mod_SOURCES): Likewise.
26469 (vesafb_mod_CFLAGS): Likewise.
26470 (vbe_list_modes_mod_SOURCES): Likewise.
26471 (vbe_list_modes_mod_CFLAGS): Likewise.
26472 (vbe_test_mod_SOURCES): Likewise.
26473 (vbe_test_mod_CFLAGS): Likewise.
26474
0a74e62f 264752005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
26476
0a74e62f 26477 * normal/command.c (grub_command_execute): If INTERACTIVE is
26478 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
26479 CMDLINE. Disable the pager if INTERACTIVE is true.
26480 All callers are changed.
26481
26482 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
26483 before reading a config file.
26484 * normal/main.c (read_config_file): Even if a command is not
26485 found, register it if it is within an entry.
26486
26487 * util/grub-emu.c: Include sys/types.h and unistd.h.
26488 (options): Added --hold.
26489 (struct arguments): Added a new member "hold".
26490 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
26491 missing.
26492 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
26493 cleared by a debugger, if it is not zero.
26494
26495 * include/grub/normal.h (grub_command_execute): Add an argument
26496 INTERACTIVE.
26497
e51f85ae 264982005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
26499
26500 * DISTLIST: Added include/grub/i386/pc/vbe.h.
26501
e9c6f39b 265022005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
26503
26504 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
26505 program with another one, because the old one didn't detect a bug
26506 in gcc-3.4. Always use regparm 2, because the new test is still
26507 not enough for gcc-4.0. Someone must investigate a simple test
26508 case which detects a bug in gcc-4.0.
26509
8de3495c 265102005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
26511
26512 * DISTLIST: Added normal/completion.c.
26513
26514 * normal/completion.c: New file.
f19dbdb7 26515
8de3495c 26516 * term/i386/pc/console.c (grub_console_getwh): New function.
26517 (grub_console_term): Assign grub_console_getwh to getwh.
26518
26519 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
26520 function is defined in normal/completion.c as
26521 grub_normal_do_completion.
26522 (grub_cmdline_get): Use grub_normal_do_completion instead of
26523 grub_tab_complete.
26524
26525 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
26526 returns non-zero, otherwise return 0.
26527 (grub_partition_iterate): First, probe the partition map. Then,
26528 call ITERATE only for this partition map.
26529
26530 * kern/misc.c (grub_strncmp): Rewritten.
26531
26532 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
26533 returns non-zero. Otherwise return 0.
26534
26535 * include/grub/partition.h (grub_partition_map_iterate): Return
26536 int instead of void.
26537
26538 * include/grub/normal.h (grub_normal_do_completion): New prototype.
26539
26540 * include/grub/misc.h (grub_strncmp): Change the type of N to
26541 grub_size_t.
26542
26543 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
26544 of void.
26545
26546 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 26547 unsigned explicitly before comparing it with I.
8de3495c 26548
26549 * kern/main.c (grub_env_write_root): Add the attribute unused into
26550 VAR.
26551
26552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26553 normal/completion.c.
26554 (normal_mod_SOURCES): Likewise.
26555 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26556 (normal_mod_SOURCES): Likewise.
26557
26558 * normal/command.c (grub_iterate_commands): If ITERATE returns
26559 non-zero, return one immediately.
26560
e85e144b 265612005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
26562
26563 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
26564 * kern/i386/pc/startup.S: Updated Global Descriptor table's
26565 descriptions.
26566 (grub_vbe_get_controller_info): New function.
26567 (grub_vbe_get_mode_info): Likewise.
26568 (grub_vbe_set_mode): Likewise.
26569 (grub_vbe_get_mode): Likewise.
26570 (grub_vbe_set_memory_window): Likewise.
26571 (grub_vbe_get_memory_window): Likewise.
26572 (grub_vbe_set_scanline_length): Likewise.
26573 (grub_vbe_get_scanline_length): Likewise.
26574 (grub_vbe_set_display_start): Likewise.
26575 (grub_vbe_get_display_start): Likewise.
26576 (grub_vbe_set_palette_data): Likewise.
26577 * include/grub/i386/pc/vbe.h: New file.
26578
c46153d2 265792005-08-08 Hollis Blanchard <hollis@penguinppc.org>
26580
26581 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
26582 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
26583 * DISTLIST: Likewise.
26584 * kern/ieee1275/of.c: Moved to ...
26585 * kern/ieee1275/ieee1275.c: ... here.
26586
0cb90c45 265872005-08-08 Hollis Blanchard <hollis@penguinppc.org>
26588
26589 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
26590 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
26591 Pass 0 as `end' parameter to grub_strtoul().
26592
a19fb360 265932005-08-08 Hollis Blanchard <hollis@penguinppc.org>
26594
26595 * include/grub/powerpc/ieee1275/console.h: Do not include
26596 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
26597 ifdef.
26598 (grub_console_cur_color): Remove i386-specific prototype.
26599 (grub_console_real_putchar): Likewise.
26600 (grub_console_checkkey): Likewise.
26601 (grub_console_getkey): Likewise.
26602 (grub_console_getxy): Likewise.
26603 (grub_console_gotoxy): Likewise.
26604 (grub_console_cls): Likewise.
26605 (grub_console_setcursor): Likewise.
26606 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
26607 Include <grub/machine/console.h>.
26608 * term/ieee1275/ofconsole.c: Likewise.
26609
4ac9bd04 266102005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
26611
26612 * Makefile.in (LIBLZO): New variable.
26613
26614 * configure.ac: Check for LZO version 2.
26615
26616 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
26617 lzo/lzo1x.h instead of lzo1x.h.
26618
26619 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
26620 of -llzo.
26621
26622 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
26623 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
26624
26625 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
26626 copying the data from PARTITION to P.
26627
f4917dfd 266282005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
26629
26630 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
26631 negative, unload the module.
26632
26633 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
26634 map is "pc_partition_map" but not "pc".
26635 (usage): Fix the description. The options are --boot-image and
26636 --core-image but not --boot-file or --core-file.
26637 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
26638 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
26639 DEFAULT_DIRECTORY.
26640
26641 * util/i386/pc/grub-install.in: Do not specify --boot-file or
26642 --core-file. Specify INSTALL_DEVICE as an argument.
26643
26644 * util/console.c: Include config.h.
26645 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
26646 [HAVE_NCURSES_H]: Include ncurses.h.
26647 [HAVE_CURSES_H]: Include curses.h.
26648 [!A_NORMAL] (A_NORMAL): Defined as zero.
26649 [!A_STANDOUT] (A_STANDOUT): Likewise.
26650
26651 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
26652 -lncurses.
26653 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
26654
26655 * configure.ac: Check for curses libraries and headers.
26656
26657 * Makefile.in (LIBCURSES): New variable.
26658
26659 * genmk.rb (Script::rule): Set the executable bits.
26660
26661 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
26662 name of the PC partition map is "pc_partition_map" but not "pc".
26663
0e143073 266642005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
26665
26666 * util/i386/pc/grub-install.in (grub_probefs): New variable.
26667 (modules): Likewise.
26668 (usage): Added descriptions for --modules and --grub-probefs.
26669 Handle --modules and --grub-probefs. Save the arguments in MODULES
26670 and GRUB_PROBEFS, respectively.
26671 Auto-detect a filesystem module against GRUBDIR. If the result is
26672 empty and modules are not specified explicitly, abort the
26673 installation. Add the result to MODULES.
26674
26675 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
26676 disk/powerpc/ieee1275/ofdisk.c,
26677 include/grub/powerpc/ieee1275/init.h and
26678 term/powerpc/ieee1275/ofconsole.c.
26679 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
26680 term/ieee1275/ofconsole.c.
26681
26682 * include/grub/powerpc/ieee1275/console.h: Resurrected.
26683
26684 * COPYING: Upgraded to the latest version. Only the address of the
26685 FSF office has changed.
f19dbdb7 26686
efd6e6d5 266872005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
26688
26689 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
26690 kern/ieee1275.c with kern/ieee1275/of.c.
26691
26692 * kern/ieee1275.c: Moved to ...
26693 * kern/ieee1275/of.c: ... here.
26694
8ceafda2 266952005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
26696
26697 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 26698 readability.
8ceafda2 26699
26700 * config.guess: Updated to the latest version from gnulib.
26701 * config.sub: Likewise.
26702 * install.sh: Likewise.
26703 * mkinstalldirs: Likewise.
26704
26705 * include/grub/console.h: Removed. This file is arch-specific. Do
26706 not put this in include/grub.
26707
26708 * include/grub/i386/pc/console.h: Resurrected.
26709
26710 * util/console.c: Include grub/machine/console.h instead of
26711 grub/console.h.
26712 * util/grub-emu.c: Likewise.
26713
267f6cd9 267142005-08-04 Marco Gerards <metgerards@student.han.nl>
26715
26716 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
26717 hardcoded value.
f19dbdb7 26718
267f6cd9 26719 From Vincent Pelletier <subdino2004@yahoo.fr>
26720 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
26721 Redefined to use grub_getwh.
26722 (grub_term): New member named getwh.
26723 (grub_getwh): New prototype.
26724 * kern/term.c (grub_getwh): New function.
26725 * term/i386/pc/console.c (grub_console_getwh): New function.
26726 (grub_console_term): New member `getwh'.
26727 * term/i386/pc/vga.c (grub_vga_getwh): New function.
26728 (grub_vga_term): New member `getwh'.
0b5abe02 26729 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 26730 grub_ssize_t.
26731 (grub_ofconsole_getw): New function.
26732 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
26733 (grub_ofconsole_term): New field named getwh and new initial
26734 value.
26735
3be7266d 267362005-08-03 Hollis Blanchard <hollis@penguinppc.org>
26737
26738 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
26739 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
26740 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
26741 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
26742 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
26743 of <grub/machine/ieee1275.h>.
26744 * commands/ieee1275/reboot.c: Likewise.
26745 * boot/powerpc/ieee1275/ieee1275.c: Move ...
26746 * kern/ieee1275.c: ... to here. All users updated. Change all
26747 parameter structs to use new type `grub_ieee1275_cell_t'.
26748 * term/powerpc/ieee1275/ofconsole.c: Move ...
26749 * term/ieee1275/ofconsole.c: ... to here. All users updated.
26750 * disk/powerpc/ieee1275/ofdisk.c: Move ...
26751 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
26752 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
26753 to return int.
26754 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
26755 Remove unused prototypes. All users updated.
26756 * include/grub/powerpc/ieee1275/console.h: Removed.
26757 * include/grub/powerpc/ieee1275/ieee1275.h: Define
26758 `grub_ieee1275_cell_t'.
26759 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
26760 Cast comparisons with -1 to the correct type.
26761 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
26762 type to match `grub_ieee1275_entry_fn'.
26763
8b5f3938 267642005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
26765
26766 * DISTLIST: Added util/i386/pc/grub-probefs.c.
26767
26768 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
26769 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
26770 partmap/sun.c.
26771 (grub_probefs_SOURCES): New variable.
26772
26773 * util/i386/pc/grub-probefs.c: New file.
26774
26775 * util/i386/pc/grub-setup.c (main): Call
26776 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
26777 grub_hfs_init and grub_jfs_init to initialize the system. Call
26778 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
26779 grub_pc_partition_map_fini to finish the system.
26780
ea409713 267812005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
26782
26783 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
26784 function.
26785 (grub_multiboot_load_elf32): Likewise.
26786 (grub_multiboot_is_elf64): Likewise.
26787 (grub_multiboot_load_elf64): Likewise.
26788 (grub_multiboot_load_elf): Likewise.
26789 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
26790 an ELF32 or ELF64 file.
26791 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
26792
26793 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
26794 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
26795 NULL before calling FS->LABEL.
26796 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
26797 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
26798 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
26799 before calling FS->LABEL.
26800
141a288b 268012005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
26802
26803 * util/i386/pc/grub-install.in (datadir): New variable.
26804 (libdir): Removed.
26805 (pkgdatadir): New variable.
26806 (pkglibdir): Removed.
26807
0d5f8a54 268082005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
26809
26810 * DISTLIST: Added util/i386/pc/grub-install.in.
26811
26812 * util/i386/pc/grub-install.in: New file.
26813
26814 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
26815 (grub_install_SOURCES): Likewise.
26816
26817 * genmk.rb: Added support for scripts.
26818 (Script): New class.
26819 (scripts): New variable.
26820
26821 * Makefile.in (install-local): Install sbin_SCRIPTS by
26822 INSTALL_SCRIPT.
26823 (uninstall): Remove sbin_SCRIPTS.
26824
26825 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
26826 device, try to get a GRUB device by
26827 grub_util_biosdisk_get_grub_dev.
26828 Free DEST_DEV.
26829
26830 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
26831 description for --device-map.
26832
5f968e1e 268332005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26834
26835 Change the semantics of variable hooks. They now return strings
26836 instead of error values.
f19dbdb7 26837
5f968e1e 26838 * util/i386/pc/grub-setup.c: Include grub/env.h.
26839 (setup): Use grub_device_set_root instead of grub_env_set.
26840
26841 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
26842 grub_env_get instead of grub_device_set_root and
26843 grub_device_get_root, respectively.
26844
26845 * kern/main.c (grub_env_write_root): New function.
26846 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
26847 grub_env_set instead of grub_device_set_root.
26848
26849 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
26850 many variables.
26851 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
26852 rather than calling ENV->WRITE_HOOK afterwards.
26853 (grub_env_get): Return the result of ENV->READ_HOOK rather than
26854 passing a pointer of a pointer.
26855 (grub_register_variable_hook): Change the types of "read_hook" and
26856 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
26857 respectively.
26858 Allocate the default empty string on the heap, because this string
26859 may be freed later.
26860
26861 * kern/device.c: Include grub/env.h.
26862 (grub_device_set_root): Removed.
26863 (grub_device_get_root): Likewise.
26864 (grub_device_open): Use grub_env_get instead of
26865 grub_device_get_root.
26866
26867 * include/grub/env.h (grub_env_read_hook_t): New type.
26868 (grub_env_write_hook_t): Likewise.
26869 (grub_env_var): Change the types of "read_hook" and "write_hook"
26870 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
26871 (grub_register_variable_hook): Likewise.
26872
26873 * include/grub/device.h (grub_device_set_root): Removed.
26874 (grub_device_set_root): Likewise.
26875
26876 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
26877 make sure that DIRNAME terminates with '/', so that
26878 grub_fat_find_dir will fail if PATH is not a directory.
26879
26880 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
26881 from DIRNAME.
26882 Use the qualifier auto for print_files and print_files_long.
26883 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
26884 as a regular file.
26885 Put a newline only if there is no error.
26886 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
26887 used.
26888
896f0afd 268892005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26890
26891 * kern/partition.c (grub_partition_probe): Initialize PART to
26892 NULL. Otherwise, when no partition map is registered, this returns
26893 a garbage.
26894
b28b81b2 268952005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
26896
26897 * partmap/apple.c (apple_partition_map_iterate): Check if POS
26898 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
26899 valid.
26900
5f3607e0 269012005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
26902
26903 * commands/ls.c (grub_ls_list_disks): Print the filesystem
26904 information on each device, if it does not have partitions. Print
26905 "Device" instead of "Disk", because this function is not specific
26906 to disk devices.
26907
26908 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
26909 static to ensure that it is put on the memory rather than a
26910 register.
26911
502c87e8 269122005-07-17 Yoshinori Okuji <okuji@enbug.org>
26913
26914 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
26915 (grub_cat_init): Likewise.
26916 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
26917 (options): Likewise.
26918 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26919 (grub_configfile_init): Likewise.
26920 * font/manager.c (GRUB_MOD_INIT): Likewise.
26921 * commands/help.c (GRUB_MOD_INIT): Likewise.
26922 (grub_help_init): Likewise.
26923 * normal/command.c (grub_command_init): Likewise.
26924 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
26925 * disk/loopback.c (grub_loop_init): Likewise.
26926 (GRUB_MOD_INIT): Likewise.
26927 * commands/ls.c (grub_ls_init): Likewise.
26928 (GRUB_MOD_INIT): Likewise.
26929 (options): Likewise.
26930 * commands/boot.c (grub_boot_init): Likewise.
26931 (GRUB_MOD_INIT): Likewise.
26932 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
26933 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
26934 (GRUB_MOD_INIT): Likewise.
26935 * commands/cmp.c (grub_cmp_init): Likewise.
26936 (GRUB_MOD_INIT): Likewise.
26937
26938 * normal/arg.c: Use <> instead of "" to include header files.
26939 (SHORT_ARG_HELP): New macro.
26940 (SHORT_ARG_USAGE): Likewise.
26941 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
26942 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
26943 descriptions.
26944 (find_short): Check if C is 'h' or 'u' explicitly.
26945 (grub_arg_show_help): Use space characters instead of tabs. Treat
26946 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
26947 are shown with --help and --usage only if they are not used for
26948 the command itself.
26949 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
26950 'h' and 'u'.
26951
26952 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
26953 const into "longarg". Change the type of "shortarg" to int.
26954
f806d18e 269552005-07-17 Yoshinori Okuji <okuji@enbug.org>
26956
26957 * boot/i386/pc/boot.S (boot_drive_check): New label.
26958
26959 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
26960 macro.
26961
26962 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
26963 which do not pass a boot drive correctly. Copied from GRUB Legacy.
26964
e293232b 269652005-07-17 Yoshinori Okuji <okuji@enbug.org>
26966
26967 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
26968 When turning off Gate A20, skip the check and return immediately,
26969 because this is not fatal usually.
26970
ebedfd00 269712005-07-17 Yoshinori Okuji <okuji@enbug.org>
26972
26973 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
26974 be 0x7C00 instead of 0x8000.
26975
26976 * boot/i386/pc/pxeboot.S: Rewritten.
26977
26978 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
26979 EXT_C.
26980 (gate_a20_check_state): Read a byte from 0x108000. Invert the
26981 result.
26982
654fc59f 269832005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
26984
26985 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
26986 robustness. This routine now supports a BIOS call and System
26987 Control Port A to modify the gate A20.
26988
26989 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26990 Increased to 0x440.
26991
09f9923f 269922005-07-12 Hollis Blanchard <hollis@penguinppc.org>
26993
26994 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
26995 device path and resulting ihandle.
26996 (grub_ofdisk_close): dprintf the ihandle being closed.
26997 (grub_ofdisk_read): dprintf function parameters.
26998 * kern/mm.c (grub_mm_init_region): Likewise.
26999 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
27000 (grub_linux_boot): dprintf the Linux entry point, initrd address and
27001 size, and boot arguments.
27002 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
27003 before loading into memory.
27004 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
27005 before loading into memory.
27006
7ef504d8 270072005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
27008
27009 * kern/mm.c: Added much documentation.
27010 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
27011 8, set to 5 instead of 8.
27012
e0f050c2 270132005-07-10 Yoshinori Okuji <okuji@enbug.org>
27014
27015 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
27016
27017 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
27018 (grub_mkdevicemap_SOURCES): New variable.
27019
27020 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
27021 lib/device.c of GRUB Legacy.
27022
7224189a 270232005-07-10 Yoshinori Okuji <okuji@enbug.org>
27024
27025 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
27026 instead of PATH is NULL.
27027
68c864eb 270282005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
27029
27030 * commands/cmp.c (BUFFER_SIZE): New macro.
27031 (grub_cmd_cmp): Close the right file at the right time. Compare
27032 only data just read. Don't report files of different size as
27033 identical. Dynamically allocate buffers. Move variable
27034 declarations at the beginning of function.
27035
e6f3e614 270362005-07-09 Yoshinori Okuji <okuji@enbug.org>
27037
27038 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
27039 reverse.
27040
f8f1559a 270412004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
27042
27043 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
27044 when backspace is pressed at beginning of line.
27045
39c9d41d 270462005-07-03 Yoshinori Okuji <okuji@enbug.org>
27047
27048 * DISTLIST: Added genfslist.sh.
27049
27050 * normal/main.c (fs_module_list): New variable.
27051 (autoload_fs_module): New function.
27052 (read_fs_list): Likewise.
27053 (grub_normal_execute): Call read_fs_list.
27054
27055 * kern/fs.c (grub_fs_autoload_hook): New variable.
27056 (grub_fs_probe): Added support for auto-loading.
27057
27058 * include/grub/normal.h (struct grub_fs_module_list): New struct.
27059 (grub_fs_module_list_t): New type.
27060
27061 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
27062 (grub_fs_autoload_hook): New prototype.
27063
27064 * genfslist.sh: New file.
f19dbdb7 27065
39c9d41d 27066 * genmk.rb: Added a rule to generate a filesystem list.
27067
121c1d83 270682005-06-30 Marco Gerards <metgerards@student.han.nl>
27069
27070 * configure.ac: Fix the test for cross-compiling.
27071
27072 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
27073 define GRUB_UTIL anymore.
27074
27075 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
27076 so this function works on other systems than just big endian.
27077 (load_modules): Likewise.
27078 (add_segments): Likewise.
27079
e75d76e1 270802005-06-23 Hollis Blanchard <hollis@penguinppc.org>
27081
27082 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
27083 contains `l' modifier, get a long from va_arg().
27084
50b5a0a7 270852005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
27086
27087 * kern/mm.c (grub_free): If the next free block which is being
27088 merged is the first free block, set the first block to the block
27089 being freed.
27090 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
27091
89371b20 270922005-05-08 Hollis Blanchard <hollis@penguinppc.org>
27093
27094 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
27095 `grub_ieee1275_chosen'.
27096
168d6e58 270972005-05-08 Hollis Blanchard <hollis@penguinppc.org>
27098
27099 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
27100 (grub_ieee1275_chosen): New variable.
27101 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
27102 `chosen'.
27103 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
27104 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27105 Rename first argument to `phandle' for consistency.
27106 (grub_ieee1275_get_property_length): Likewise.
27107 (grub_ieee1275_next_property): Likewise. Change type of first argument
27108 to grub_ieee1275_phandle_t.
27109 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
27110 Move export next to declaration.
27111 (grub_ieee1275_chosen): New variable.
27112 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
27113 Correct cosmetic typo.
27114 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
27115 `grub_ieee1275_chosen'.
27116 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
27117 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
27118 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
27119 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
27120 `grub_ieee1275_chosen'.
27121
ca5baa3f 271222005-05-10 Hollis Blanchard <hollis@penguinppc.org>
27123
27124 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
27125 /chosen/bootargs.
27126 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
27127 /chosen/bootargs as "variable=value" pairs.
27128
708b345f 271292005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
27130
27131 * include/grub/misc.h (grub_dprintf): New macro.
27132 (grub_real_dprintf): New prototype.
27133 (grub_strword): Likewise.
27134 (grub_iswordseparator): Likewise.
27135 * kern/misc.c (grub_real_dprintf): New function.
27136 (grub_strword): Likewise.
27137 (grub_iswordseparator): Likewise.
27138
f4c5e67c 271392005-04-30 Hollis Blanchard <hollis@penguinppc.org>
27140
27141 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
27142 (roundup): Remove macro.
27143 (grub_ieee1275_flags): Make static.
27144 (grub_ieee1275_realmode): Remove.
27145 (grub_ieee1275_test_flag): New function.
27146 (grub_ieee1275_set_flag): Likewise.
27147 (find_options): Rename to `grub_ieee1275_find_options'; update
27148 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
27149 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
27150 (cmain): New prototype.
27151 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
27152 `grub_ieee1275_flags' directly.
27153 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
27154 machine/biosdisk.h.
27155 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
27156 Don't include grub/machine/init.h.
27157 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
27158 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
27159 Remove prototype.
27160 (grub_ieee1275_realmode): Likewise.
27161 (grub_ieee1275_flag): New enum.
27162 (grub_ieee1275_test_flag): New prototype.
27163 (grub_ieee1275_set_flag): New prototype.
27164 * include/grub/powerpc/ieee1275/init.h: Remove file.
27165 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
27166 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
27167 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
27168 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
27169 comment.
27170 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
27171 `grub_ieee1275_test_flag'.
27172 (grub_ieee1275_encode_devname): Likewise.
27173
ed16607e 271742005-04-21 Hollis Blanchard <hollis@penguinppc.org>
27175
27176 * include/grub/powerpc/ieee1275/ieee1275.h
27177 (grub_ieee1275_encode_devname): New prototype.
27178 (grub_ieee1275_get_filename): Likewise.
27179 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
27180 function.
27181 (grub_set_prefix): Likewise.
27182 (grub_machine_init): Call grub_set_prefix.
27183 * kern/powerpc/ieee1275/openfw.c: Fix typos.
27184 (grub_parse_type): New enum.
27185 (grub_ieee1275_get_devargs): New function.
27186 (grub_ieee1275_get_devname): Likewise.
27187 (grub_ieee1275_parse_args): Likewise.
27188 (grub_ieee1275_get_filename): Likewise.
27189 (grub_ieee1275_encode_devname): Likewise.
27190
be369920 271912005-03-30 Marco Gerards <metgerards@student.han.nl>
27192
27193 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
27194 `grub_loader_unset'.
27195
a5ce3a4a 271962005-03-26 Hollis Blanchard <hollis@penguinppc.org>
27197
27198 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
27199 instead of grub_ieee1275_interpret.
27200 (grub_halt_init): New function.
27201 (grub_halt_fini): Likewise.
27202 (GRUB_MOD_INIT): Correct message grammar.
27203 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
27204 instead of grub_ieee1275_interpret.
27205 (grub_reboot_init): New function.
27206 (grub_reboot_fini): Likewise.
27207 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
27208 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
27209 util/i386/pc/misc.c with commands/ieee1275/halt.c,
27210 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
27211 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
27212 function.
27213 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
27214 Add prototype.
27215 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
27216 prototype.
27217 (grub_halt): Likewise.
27218 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
27219 (cmain): Remove __attribute__((unused)).
27220 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
27221 (grub_heap_len): Likewise.
27222 (grub_machine_fini): New function.
27223 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
27224 (grub_halt): Likewise.
27225 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
27226 function.
27227 * util/powerpc/ieee1275/misc.c: New file.
27228
0058f771 272292005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
27230
27231 * DISTLIST: New file.
27232 * gendistlist.sh: Likewise.
f19dbdb7 27233
0058f771 27234 * Makefile.in (COMMON_DISTFILES): Removed.
27235 (BOOT_DISTFILES): Likewise.
27236 (CONF_DISTFILES): Likewise.
27237 (DISK_DISTFILES): Likewise.
27238 (FS_DISTFILES): Likewise.
27239 (INCLUDE_DISTFILES): Likewise.
27240 (KERN_DISTFILES): Likewise.
27241 (LOADER_DISTFILES): Likewise.
27242 (TERM_DISTFILES): Likewise.
27243 (UTIL_DISTFILES): Likewise.
27244 (DISTFILES): Likewise.
27245 (uninstall): Uninstall files in $(pkgdata_DATA).
27246 (DISTLIST): New target.
27247 (distdir): Use the contents of the file DISTLIST to get a list of
27248 distributed files.
27249
46b3b8a5 272502005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
27251
27252 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
27253 descriptor. This is ported from GRUB Legacy.
27254
27255 * gencmdlist.sh: Added an extra semicolon to make it work with
27256 old sed versions. Reported by Robert Bihlmeyer
27257 <robbe@orcus.priv.at>.
27258
5822ff87 272592005-03-08 Yoshinori Okuji <okuji@enbug.org>
27260
27261 Automatic loading of commands is supported.
f19dbdb7 27262
5822ff87 27263 * normal/main.c (read_command_list): New function.
27264 (grub_normal_execute): Call read_command_list.
27265
27266 * normal/command.c (grub_register_command): Return zero or CMD.
27267 Allocate CMD->NAME from the heap.
27268 Initialize CMD->MODULE_NAME to zero.
27269 Find the same name as well. If the same command is found and it is
27270 a dummy command, overwrite members. If it is not a dummy command,
27271 return zero.
27272 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
27273 (grub_command_find): If a dummy command is found, load a module
27274 and retry to find a command only once.
27275
27276 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
27277 make sure that each command is loaded.
27278
27279 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
27280 macro.
27281 (struct grub_command): Remove const from the member `name'.
27282 Add a new member `module_name'.
27283 (grub_register_command): Return grub_command_t.
27284
27285 * commands/help.c (grub_cmd_help): Call grub_command_find to make
27286 sure that each command is loaded.
27287
27288 * genmk.rb (PModule::rule): Specify a module name without the
27289 suffix ".mod" to gencmdlist.sh.
27290
7b1f4b57 272912005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
27292
27293 * gencmdlist.sh: New file.
f19dbdb7 27294
7b1f4b57 27295 * genmk.rb (PModule::rule): Generate a rule for a command list.
27296 Clean command.lst.
27297 Generate command.lst from $(COMMANDFILES).
27298
27299 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
27300 (DATA): Added $(pkgdata_DATA).
27301 (install-local): Install files in $(pkgdata_DATA).
27302
062aaf39 273032005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
27304
27305 * term/i386/pc/vga.c (debug_command): Removed.
27306 (GRUB_MOD_INIT): Do not register the command "debug".
27307
27308 From Hollis Blanchard:
27309 * commands/configfile.c: New file.
27310 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
27311 commands/configfile.c.
27312 (pkgdata_MODULES): Added configfile.mod.
27313 (configfile_mod_SOURCES): New variable.
27314 (configfile_mod_CFLAGS): Likewise.
27315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
27316 commands/configfile.c.
27317 (pkgdata_MODULES): Added configfile.mod.
27318 (configfile_mod_SOURCES): New variable.
27319 (configfile_mod_CFLAGS): Likewise.
27320 * util/grub-emu.c (main): Call grub_configfile_init and
27321 grub_configfile_fini.
27322 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
27323 prototype.
27324 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 27325
cee01aa6 273262005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
27327
27328 * normal/arg.c (grub_arg_show_help): Do not show the bug report
27329 address.
27330
27331 * commands/help.c (grub_cmd_help): Do not print newlines after
27332 the last command in print_command_help.
27333
93f3a1d8 273342005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
27335
27336 * commands/default.h: New file.
27337 * commands/timeout.h: Likewise.
27338 * normal/context.c: Likewise.
f19dbdb7 27339
93f3a1d8 27340 * util/misc.c: Do not include sys/times.h.
27341 Include sys/time.h and grub/machine/time.h.
27342 (grub_get_rtc): Rewritten with gettimeofday.
27343
27344 * util/grub-emu.c (main): Call grub_default_init and
27345 grub_timeout_init before grub_normal_init, and call
27346 grub_timeout_fini and grub_default_fini after grub_main.
27347
27348 * util/console.c (grub_ncurses_checkkey): Return the read
27349 character or -1.
27350
27351 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
27352 timeouts.
27353
27354 * normal/main.c (read_config_file): Push MENU. If this fails,
27355 print an error and wait for a user input.
27356 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
27357 If a menu is empty or an error occurs, pop MENU.
27358 (grub_normal_execute): Pop and free MENU after grub_menu_run
27359 returns.
27360
27361 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
27362
27363 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
27364 include time.h.
27365 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
27366 without GRUB_UTIL.
27367 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
27368 time.h.
27369 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
27370 without GRUB_UTIL.
27371
27372 * include/grub/normal.h (struct grub_menu_list): New struct.
27373 (grub_menu_list_t): New type.
27374 (struct grub_context): New struct.
27375 (grub_context_t): New type.
27376 (grub_register_command): Got rid of EXPORT_FUNC.
27377 (grub_unregister_command): Likewise.
27378 (grub_context_get): New prototype.
27379 (grub_context_get_current_menu): Likewise.
27380 (grub_context_push_menu): Likewise.
27381 (grub_context_pop_menu): Likewise.
27382 [GRUB_UTIL] (grub_default_init): Likewise.
27383 [GRUB_UTIL] (grub_default_fini): Likewise.
27384 [GRUB_UTIL] (grub_timeout_init): Likewise.
27385 [GRUB_UTIL] (grub_timeout_fini): Likewise.
27386
27387 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
27388 commands/timeout.c and normal/context.c.
27389 (pkgdata_MODULES): Added default.mod and timeout.mod.
27390 (normal_mod_SOURCES): Added normal/context.c.
27391 (default_mod_SOURCES): New variable.
27392 (default_mod_CFLAGS): Likewise.
27393 (timeout_mod_SOURCES): Likewise.
27394 (timeout_mod_CFLAGS): Likewise.
27395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
27396 conf/i386-pc.rmk.
27397 (pkgdata_MODULES): Added default.mod and timeout.mod.
27398 (normal_mod_SOURCES): Added normal/context.c.
27399 (default_mod_SOURCES): New variable.
27400 (default_mod_CFLAGS): Likewise.
27401 (timeout_mod_SOURCES): Likewise.
27402 (timeout_mod_CFLAGS): Likewise.
27403
27404 * Makefile.in (all-local): Added $(MKFILES).
27405
4ed2e1dd 274062005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
27407
27408 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
27409 (grub_emu_SOURCES): Likewise.
27410 (pkgdata_MODULES): Add `sun.mod'.
27411 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
27412 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27413 `partmap/sun.c'.
27414 (pkgdata_MODULES): Add `sun.mod'.
27415 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
27416 * include/grub/partition.h (grub_sun_partition_map_init): New
27417 prototype.
27418 (grub_sun_partition_map_fini): Likewise.
27419 * partmap/sun.c: New file.
27420 * util/grub-emu.c (main): Initialize and de-initialize the sun
27421 partitionmap support.
27422
4d4e372e 274232005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
27424
27425 This implements an Emacs-like menu entry editor.
f19dbdb7 27426
4d4e372e 27427 * normal/menu_entry.c: New file.
f19dbdb7 27428
4d4e372e 27429 * util/console.c (grub_ncurses_putchar): Translate some Unicode
27430 characters to ASCII.
27431 (saved_char): New variable.
27432 (grub_ncurses_checkkey): Rewritten completely.
27433 (grub_ncurses_getkey): Likewise.
27434 (grub_ncurses_init): Call raw instead of cbreak.
27435
27436 * normal/menu.c (print_entry): Do not put a space.
27437 (init_page): Renamed to ...
27438 (grub_menu_init_page): ... this. All callers changed.
27439 (edit_menu_entry): Removed.
27440 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
27441
27442 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
27443
27444 * kern/misc.c (grub_vprintf): Call grub_refresh.
27445
27446 * normal/menu.c (DISP_LEFT): Renamed to ...
27447 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
27448 * normal/menu.c (DISP_UP): Renamed to ...
27449 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
27450 * normal/menu.c (DISP_RIGHT): Renamed to ...
27451 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
27452 * normal/menu.c (DISP_DOWN): Renamed to ...
27453 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
27454 * normal/menu.c (DISP_HLINE): Renamed to ...
27455 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
27456 * normal/menu.c (DISP_VLINE): Renamed to ...
27457 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
27458 * normal/menu.c (DISP_UL): Renamed to ...
27459 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
27460 * normal/menu.c (DISP_UR): Renamed to ...
27461 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
27462 * normal/menu.c (DISP_LL): Renamed to ...
27463 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
27464 * normal/menu.c (DISP_LR): Renamed to ...
27465 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
27466 * normal/menu.c (TERM_WIDTH): Renamed to ...
27467 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
27468 * normal/menu.c (TERM_HEIGHT): Renamed to ...
27469 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
27470 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
27471 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
27472 * normal/menu.c (TERM_MARGIN): Renamed to ...
27473 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
27474 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
27475 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
27476 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
27477 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
27478 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
27479 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
27480 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
27481 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
27482 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
27483 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
27484 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
27485 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
27486 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
27487 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
27488 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
27489 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
27490 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
27491 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
27492 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
27493 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
27494 All callers changed.
27495
27496 * include/grub/normal.h: New prototype.
27497
27498 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
27499 normal/menu_entry.c.
27500 (normal_mod_SOURCES): Likewise.
27501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27502 (normal_mod_SOURCES): Likewise.
27503
e6b92c8a 275042005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
27505
27506 * include/grub/normal.h (grub_halt_init): New prototype.
27507 (grub_halt_fini): Likewise.
27508 (grub_reboot_init): Likewise.
27509 (grub_reboot_fini): Likewise.
27510
27511 * util/grub-emu.c: Include signal.h.
27512 (main_env): New global variable.
27513 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
27514 catch C-c.
27515 (grub_machine_fini): New function.
27516 (main): Call grub_halt_init and grub_reboot_init before
27517 grub_main, and grub_reboot_fini and grub_halt_fini after it.
27518 Call setjmp with MAIN_ENV to go back afterwards.
27519 Call grub_machine_fini right before return.
27520
27521 * include/grub/util/misc.h: Include setjmp.h.
27522 (main_env): New prototype.
27523
27524 * include/grub/kernel.h (grub_machine_fini): New prototype.
27525 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
27526 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
27527
27528 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
27529 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
27530 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 27531
e6b92c8a 27532 * util/i386/pc/misc.c: New file.
f19dbdb7 27533
e6b92c8a 27534 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
27535 util/i386/pc/misc.c, commands/i386/pc/halt.c and
27536 commands/i386/pc/reboot.c.
27537
c642636f 275382005-02-14 Guillem Jover <guillem@hadrons.org>
27539
27540 * include/grub/dl.h (grub_dl_check_header): New prototype.
27541 (grub_arch_dl_check_header): Change return type to grub_err_t,
27542 remove size parameter and export function. Update all callers.
27543 * kern/dl.c (grub_dl_check_header): New function.
27544 (grub_dl_load_core): Use `grub_dl_check_header' instead of
27545 `grub_arch_dl_check_header'. Check ELF type. Check if sections
27546 are inside the core.
27547 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
27548 independent ELF header checks.
27549 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
27550 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
27551 `grub_dl_check_header' instead of explicit checks. Check for the
27552 ELF type.
27553 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
27554 `grub_dl_check_header' instead of explicit checks. Remove arch
27555 specific ELF header checks.
27556
e6b92c8a 27557 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
27558 argument SIZE.
27559
5eabe94b 275602005-02-13 Hollis Blanchard <hollis@penguinppc.org>
27561
27562 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
27563 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
27564
1b14a681 275652005-02-12 Hollis Blanchard <hollis@penguinppc.org>
27566
27567 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 27568 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 27569 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 27570 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 27571 * partmap/amiga.c (amiga_partition_map_iterate): Return
27572 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
27573 * partmap/apple.c (apple_partition_map_iterate): Likewise.
27574
aca108aa 275752005-02-01 Guillem Jover <guillem@hadrons.org>
27576
27577 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
27578 help info.
27579
c9f9c556 275802005-01-31 Marco Gerards <metgerards@student.han.nl>
27581
27582 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
27583 Removed prototype.
27584 (grub_rescue_cmd_linux): New prototype.
27585 (grub_rescue_cmd_initrd): Likewise.
27586 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
27587 `bi_rec'.
27588 (grub_linux_release_mem): Release the memory for the initrd.
27589 (grub_load_linux): Renamed from this...
27590 (grub_rescue_cmd_linux): ...To this. Changed all callers.
27591 Changed `entry' not to be static. Loop over memory regions to
27592 find another one when the default fails.
27593 (grub_rescue_cmd_initrd): New function.
27594 (grub_linux_init): Remove function.
27595 (grub_linux_fini): Likewise.
27596 (GRUB_MOD_INIT): Register `initrd'.
27597 (GRUB_MOD_FINI): Unregister `initrd'.
27598 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
27599 Function removed.
27600 (grub_linux_normal_fini): Likewise.
27601 (GRUB_MOD_INIT): Register `initrd'.
27602 (GRUB_MOD_FINI): Unregister `initrd'.
27603
990cf3aa 276042005-01-31 Marco Gerards <metgerards@student.han.nl>
27605
27606 * commands/help.c: New file.
27607 * normal/arg.c (show_help): Renamed to...
27608 (grub_arg_show_help): ... this.
27609 * commands/i386/pc/halt.c: New file.
27610 * commands/i386/pc/reboot.c: Likewise.
27611 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
27612 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
27613 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
27614 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
27615 variables.
27616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27617 `commands/help.c'.
27618 (pkgdata_MODULES): Add `help.mod'.
27619 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
27620 * grub/i386/pc/init.h (grub_reboot): New prototype.
27621 (grub_halt): Likewise.
27622 * include/grub/normal.h (grub_arg_show_help): New prototype.
27623 (grub_help_init): Likewise.
27624 (grub_help_fini): Likewise.
27625 * util/grub-emu.c (main): Initialize and deinitialize the help
27626 command.
27627
27628 * normal/cmdline.c (grub_cmdline_get): Doc fix.
27629
27630 * normal/command.c (grub_command_init): Fixed the description of
27631 the `set' and `unset' commands.
27632
276332005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 27634
27635 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
27636 function.
27637 * commands/ieee1275/halt.c: New file.
27638 * commands/ieee1275/reboot.c: Likewise.
27639 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
27640 `__attribute__ ((unused))'. Some GCS related fixed.
27641 (grub_suspend_init) [GRUB_UTIL]: Function removed.
27642 (grub_suspend_fini): Likewise.
27643 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
27644 and `halt.mod'.
27645 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
27646 (halt_mod_CFLAGS): New variables.
27647 * include/grub/powerpc/ieee1275/ieee1275.h
27648 (grub_ieee1275_interpret): New prototype.
27649
1ab09cc7 276502005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
27651
27652 * include/grub/misc.h (memmove): New prototype.
27653 (memcpy): Likewise.
27654
8b8cbdb2 276552005-01-22 Hollis Blanchard <hollis@penguinppc.org>
27656
27657 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
27658 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
27659
e3741a27 276602005-01-22 Marco Gerards <metgerards@student.han.nl>
27661
27662 * kern/misc.c (grub_strndup): Function rewritten.
27663
776bd780 276642005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
27665
27666 * normal/menu.c (TERM_WIDTH): Macro redefined.
27667 (TERM_TOP_BORDER_Y): Likewise.
27668 (draw_border): Replaced while-loop by a for-loop. Make the number
27669 of lines consistent with the number of lines displayed in
27670 print_entries. Added a margin below the rectangle.
27671 (print_entry): Make the entry fit in the rectangle.
27672 (print_entries): Display the scroll arrows next to the right
27673 border.
27674
78026bce 276752005-01-21 Marco Gerards <metgerards@student.han.nl>
27676
27677 * fs/minix.c (grub_minix_find_file): Reserve more space for
27678 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
27679 `grub_strncpy' to copy `path' into it.
27680
67bbaf0f 276812005-01-21 Marco Gerards <metgerards@student.han.nl>
27682
27683 Add the loopback device, a device via which files can be accessed
27684 as devices.
f19dbdb7 27685
67bbaf0f 27686 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
27687 (pkgdata_MODULES): Add loopback.mod.
27688 (loopback_mod_SOURCES): New variable.
27689 (loopback_mod_CFLAGS): Likewise.
27690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27691 `disk/loopback.c'.
27692 (pkgdata_MODULES): Add loopback.mod.
27693 (loopback_mod_SOURCES): New variable.
27694 (loopback_mod_CFLAGS): Likewise.
27695 * disk/loopback.c: new file.
27696 * include/grub/normal.h (grub_loop_init): New prototype.
27697 (grub_loop_fini): New prototype.
27698 * util/grub-emu.c (main): Initialize and de-initialize loopback
27699 support.
27700 * include/grub/disk.h (grub_disk_dev_id): Add
27701 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
27702
6f1c18bd 277032005-01-20 Hollis Blanchard <hollis@penguinppc.org>
27704
27705 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
27706 function.
27707 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
27708 (suspend_mod_SOURCES): New variable.
27709 (suspend_mod_CFLAGS): Likewise.
27710 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
27711 New prototype.
27712 * commands/ieee1275/suspend.c: New file.
27713
b38551da 277142005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27715
27716 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 27717 ((unused))' to `__attribute__ ((used))'.
b38551da 27718 (GRUB_MOD_FINI): Likewise.
27719 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
27720 * genmk.rb (PModule): Assign space to common symbols when linking
27721 modules.
27722
777aff39 277232005-01-20 Marco Gerards <metgerards@student.han.nl>
27724
27725 * include/grub/mm.h (grub_mm_init_region): Change the type of the
27726 `unsigned' arguments to `grub_size_t'.
27727 (grub_malloc): Likewise.
27728 (grub_realloc): Likewise.
27729 (grub_memalign): Likewise.
27730 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
27731 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
27732 * util/misc.c (grub_malloc): Likewise.
27733 (grub_realloc): Likewise.
27734 * kern/mm.c (get_header_from_pointer): Change the casts to
27735 `unsigned' into a cast to `grub_size_t'.
27736
27737 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
27738 point to `currnode' when `currnode' is changed.
27739
27740 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
27741 Schottelius <nico-linux@schottelius.org>.
27742
d0ff18e1 277432005-01-09 Hollis Blanchard <hollis@penguinppc.org>
27744
27745 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
27746 (note_path): Remove variable.
27747 (GRUB_IEEE1275_NOTE_NAME): New macro.
27748 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
27749 (grub_ieee1275_note_hdr): New structure.
27750 (grub_ieee1275_note_desc): Likewise.
27751 (grub_ieee1275_note): Likewise.
27752 (load_note): Remove `dir' argument. All callers updated. Remove
27753 `note_img' and `path'. Do not load a file from `note_path'.
27754 Initialize a struct grub_ieee1275_note and write that to `out'.
27755 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
27756
4ca7004c 277572005-01-05 Marco Gerards <metgerards@student.han.nl>
27758
27759 * util/misc.c (grub_util_read_image): Revert last change. It
27760 called `grub_util_read_at', which seeks from the beginning of the
27761 file.
27762
0b412211 277632005-01-04 Hollis Blanchard <hollis@penguinppc.org>
27764
27765 * TODO: Add note about endianness in grub-mkimage.
27766 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
27767 section.
27768 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
27769 (grub_mkimage_SOURCES): New target.
27770 * include/grub/kernel.h (grub_start_addr): Remove variable.
27771 (grub_end_addr): Likewise.
27772 (grub_total_module_size): Likewise.
27773 (grub_kernel_image_size): Likewise.
27774 (GRUB_MODULE_MAGIC): New constant.
27775 (grub_module_info): New structure.
27776 (grub_arch_modules_addr): New prototype.
27777 (grub_get_end_addr): Remove prototype.
27778 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
27779 * include/grub/powerpc/ieee1275/kernel.h: New file.
27780 * include/grub/util/misc.h (grub_util_get_fp_size): New
27781 prototype.
27782 (grub_util_read_at): Likewise.
27783 (grub_util_write_image_at): Likewise.
27784 * kern/main.c (grub_get_end_addr): Remove function.
27785 (grub_load_modules): Call grub_arch_modules_addr instead of using
27786 grub_end_addr. Look for a grub_module_info struct in memory. Use
27787 the grub_module_info fields instead of calling grub_get_end_addr
27788 as loop conditions. Move grub_add_unused_region code here.
27789 (grub_add_unused_region): Remove function.
27790 * kern/i386/pc/init.c: Include grub/cache.h.
27791 (grub_machine_init): Remove call to grub_get_end_addr. Remove
27792 one call to add_mem_region.
27793 (grub_arch_modules_addr): New function.
27794 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
27795 (grub_total_module_size): Likewise.
27796 Include grub/machine/kernel.h.
27797 (grub_arch_modules_addr): New function.
27798 * util/grub-emu.c (grub_end_addr): Remove variable.
27799 (grub_total_module_size): Likewise.
27800 (grub_arch_modules_addr): New function.
27801 * util/misc.c: Include unistd.h.
27802 (grub_util_get_fp_size): New function.
27803 (grub_util_read_at): Likewise.
27804 (grub_util_write_image_at): Likewise.
27805 (grub_util_read_image): Call grub_util_read_at.
27806 (grub_util_write_image): Call grub_util_write_image_at.
27807 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
27808 additional memory in kernel_img for a struct grub_module_info.
27809 Fill in that grub_module_info.
27810 * util/powerpc/ieee1275/grub-mkimage.c: New file.
27811
458786f8 278122005-01-03 Hollis Blanchard <hollis@penguinppc.org>
27813
27814 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
27815 New function.
27816 * include/grub/powerpc/ieee1275/ieee1275.h
27817 (grub_ieee1275_milliseconds): New prototype.
27818 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
27819 Change to 1000.
27820 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
27821 grub_ieee1275_milliseconds.
27822
ac507d1b 278232005-01-03 Hollis Blanchard <hollis@penguinppc.org>
27824
27825 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
27826 variable.
27827 (find_options): New function.
27828 (cmain): Call find_options.
27829 * include/grub/powerpc/ieee1275/ieee1275.h
27830 (grub_ieee1275_realmode): New extern variable.
27831 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
27832 grub_map if grub_ieee1275_realmode is false.
27833
6b8fd1c4 278342004-12-29 Marco Gerards <metgerards@student.han.nl>
27835
27836 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
27837 lines are inserted and make it work like readline. Reported by
27838 Vincent Pelletier <subdino2004@yahoo.fr>.
27839
8514a1e0 278402004-12-28 Marco Gerards <metgerards@student.han.nl>
27841
27842 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
27843
27844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
27845 `kern/powerpc/cache.S'.
27846
924b6140 278472004-12-27 Marco Gerards <metgerards@student.han.nl>
27848
27849 * genmk.rb: Handle the `Program' class in the main loop. Written
27850 by Johan Rydberg <jrydberg@gnu.org>.
27851 (Program): New class.
27852 (programs): New variable.
27853 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
27854 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
27855 instead of "grub/kernel.h". Include <grub/machine/init.h>.
27856 (help_arch): Function removed.
27857 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
27858 `powerpc/libgcc.h' and `loader.h'.
27859 (pkgdata_PROGRAMS): New variable.
27860 (sbin_UTILITIES): Variable removed.
27861 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
27862 (grubof_SOURCES): Variable re-defined so it only includes the
27863 core functionality.
27864 (grubof_CFLAGS): Remove `-DGRUBOF'.
27865 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
27866 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
27867 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
27868 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
27869 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
27870 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
27871 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
27872 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
27873 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
27874 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
27875 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27876 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
27877 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
27878 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
27879 (pc_mod_CFLAGS): New variables.
27880 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
27881 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
27882 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
27883 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
27884 Moved from here...
27885 * include/grub/i386/pc/init.h (grub_os_area_addr)
27886 (rub_os_area_size): ... to here.
27887 * include/grub/powerpc/ieee1275/ieee1275.h
27888 (grub_ieee1275_entry_fn): Export symbol.
27889 * include/grub/powerpc/ieee1275/init.h: New file.
27890 * include/grub/powerpc/libgcc.h: Likewise.
27891 * include/grub/cache.h: Likewise.
27892 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
27893 <hollis@penguinppc.org>.
27894 * kern/dl.c: Include <grub/cache.h>.
27895 (grub_dl_flush_cache): New function.
27896 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
27897 for this module.
27898 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
27899 (grub_console_init): Removed prototypes.
27900 (grub_machine_init): Don't initialize the modules anymore.
27901 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
27902 static.
27903 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
27904 Macro undef removed.
27905 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
27906 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
27907 relocation `R_PPC_REL32'. Return an error when the relocation is
27908 unknown.
27909 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
27910 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
27911 * util/misc.c (grub_arch_sync_caches): Likewise.
27912
e4b47e0c 279132004-12-19 Marco Gerards <metgerards@student.han.nl>
27914
27915 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
27916 `symlist.c', add `grubof_symlist.c'.
27917 (symlist.c): Variable removed.
27918 (grubof_HEADERS): Variable added.
27919 (grubof_symlist.c): New target.
27920 (kernel_syms.lst): Use `grubof_HEADERS' instead of
27921 `kernel_img_HEADERS'.
27922 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
27923 * kern/powerpc/dl.c: New file.
27924 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
27925 Function removed.
27926 (grub_arch_dl_relocate_symbols): Likewise.
27927 (grub_register_exported_symbols): Likewise.
27928
4ceb3636 279292004-12-13 Marco Gerards <metgerards@student.han.nl>
27930
27931 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
27932 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
27933 to fail instead. Reported by Vincent Pelletier
27934 <subdino2004@yahoo.fr>.
27935
27936 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
27937 it is not allocated. Reported by Vincent Pelletier
27938 <subdino2004@yahoo.fr>.
27939
27940 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
27941 output so the output looks better.
f19dbdb7 27942
3f1578fe 279432004-12-04 Marco Gerards <metgerards@student.han.nl>
27944
27945 Modulize the partition map support and add support for the amiga
27946 partition map.
f19dbdb7 27947
3f1578fe 27948 * commands/ls.c: Include <grub/partition.h> instead of
27949 <grub/machine/partition.h>.
27950 * kern/disk.c: Likewise.
27951 * kern/rescue.c: Likewise.
27952 * loader/i386/pc/chainloader.c: Likewise.
27953 * normal/cmdline.c: Likewise.
27954 * kern/powerpc/ieee1275/init.c: Likewise.
27955 (grub_machine_init): Call `grub_pc_partition_map_init',
27956 `grub_amiga_partition_map_init' and
27957 `grub_apple_partition_map_init'.
27958 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
27959 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
27960 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
27961 `partition.h' and `pc_partition.h'.
27962 (grub_setup_SOURCES): Remove
27963 `disk/i386/pc/partition.c'. Add `kern/partition.c',
27964 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27965 (grub_emu_SOURCES): Likewise.
27966 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
27967 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
27968 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
27969 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27970 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
27971 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27972 (grubof_SOURCES): Likewise.
27973 * disk/i386/pc/partition.c: File removed.
27974 * disk/powerpc/ieee1275/partition.c: Likewise.
27975 * include/grub/powerpc/ieee1275/partition.h: Likewise.
27976 * include/grub/i386/pc/partition.h: Likewise.
27977 * kern/partition.c: New file.
27978 * partmap/amiga.c: Likewise.
27979 * partmap/apple.c: Likewise.
27980 * partmap/pc.c: Likewise.
27981 * include/grub/partition.h: Likewise..
27982 * include/grub/pc_partition.h: Likewise.
27983 * util/grub-emu.c: Include <grub/partition.h> instead of
27984 <grub/machine/partition.h>.
27985 (main): Call `grub_pc_partition_map_init',
27986 `grub_amiga_partition_map_init' and
27987 `grub_apple_partition_map_init' and deinitialize afterwards.
27988 * util/i386/pc/biosdisk.c: Include `#include
27989 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27990 `<grub/machine/partition.h>'.
27991 * util/i386/pc/grub-setup.c: Likewise.
27992 * util/i386/pc/biosdisk.c: Likewise.
27993 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
27994 partition information in case of a PC partition.
27995 * util/i386/pc/grub-setup.c: Include `#include
27996 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27997 `<grub/machine/partition.h>'.
27998 (setup): Only access the PC specific partition information in case
27999 of a PC partition.
28000
0ef4ced9 280012004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 28002
0ef4ced9 28003 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
28004 (grub_longjmp): Likewise.
28005 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
28006 20.
28007 * normal/powerpc/setjmp.S: New file.
28008 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
28009 `normal/powerpc/setjmp.S'.
28010 (grubof_CFLAGS): Add `-DGRUBOF'.
28011 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
28012 [GRUB_UTIL && !GRUBOF].
f19dbdb7 28013
19950e29 280142004-11-16 Marco Gerards <metgerards@student.han.nl>
28015
28016 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
28017 property named `name'. Correctly handle the error returned by
28018 `grub_ieee1275_finddevice' if a device can not be opened.
28019
a2fea427 280202004-11-02 Hollis Blanchard <hollis@penguinppc.org>
28021
28022 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
28023 `actual' for negativity.
28024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
28025 kern/fshelp.c.
28026
41ea0ea3 280272004-11-01 Marco Gerards <metgerards@student.han.nl>
28028
28029 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
28030 (PAGE_OFFSET): New macro.
28031 (CRTC_ADDR_PORT): Likewise.
28032 (CRTC_DATA_PORT): Likewise.
28033 (START_ADDR_HIGH_REGISTER): Likewise.
28034 (START_ADDR_LOW_REGISTER): Likewise.
28035 (GRAPHICS_ADDR_PORT): Likewise.
28036 (GRAPHICS_DATA_PORT): Likewise.
28037 (READ_MAP_REGISTER): Likewise.
28038 (INPUT_STATUS1_REGISTER): Likewise.
28039 (INPUT_STATUS1_VERTR_BIT): Likewise.
28040 (page): New variable.
28041 (wait_vretrace): New function.
28042 (set_read_map): Likewise.
28043 (set_start_address): Likewise.
28044 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
28045 the right page.
28046 (check_vga_mem): Take the page into account.
28047 (write_char): Likewise.
28048 (write_cursor): Likewise.
28049 (scroll_up): Likewise. Copy the page to the page that is not
28050 shown and switch between both pages.
28051 (grub_vga_putchar): Fix off by one error.
28052 (grub_vga_cls): Wait for the vertical retrace. Take the page into
28053 account.
28054
ad0bd20b 280552004-11-01 Marco Gerards <metgerards@student.han.nl>
28056
28057 Add support for iso9660 (including rockridge).
f19dbdb7 28058
ad0bd20b 28059 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
28060 (iso9660_mod_SOURCES): New variable.
28061 (iso9660_mod_CFLAGS): Likewise.
28062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
28063 * include/grub/fs.h (grub_iso9660_init): New prototype.
28064 * util/grub-emu.c (main): Call `grub_iso9660_init'.
28065 * fs/iso9660.c: New file.
28066
28067 * include/grub/misc.h (grub_strncat): New prototype.
28068 * kern/misc.c (grub_strncat): New function.
f19dbdb7 28069
ad0bd20b 28070 * fs/hfs.c (grub_hfs_mount): Translate the error
28071 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
28072 * fs/jfs.c (grub_jfs_mount): Likewise.
28073 * fs/ufs.c (grub_ufs_mount): Likewise.
28074
a5477a59 280752004-10-28 Hollis Blanchard <hollis@penguinppc.org>
28076
28077 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
28078 which initialized BAT registers.
28079 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
28080 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
28081 Move from here...
28082 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
28083 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
28084 ... to here.
28085 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
28086 (grub_mapclaim): Likewise.
28087 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
28088 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
28089 hand.
28090
9304c1f8 280912004-10-19 Hollis Blanchard <hollis@penguinppc.org>
28092
28093 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
28094 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
28095 -ffreestanding and -msoft-float.
28096
86f4ae25 280972004-10-15 Hollis Blanchard <hollis@penguinppc.org>
28098
28099 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
28100 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
28101 set in grub_ieee1275_flags.
28102
38912228 281032004-10-14 Hollis Blanchard <hollis@penguinppc.org>
28104
28105 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
28106 prototype.
28107 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
28108 grub_console_init first.
28109 Change the memory range used for grub_ieee1275_claim and
28110 grub_mm_init_region.
28111 Print an error message if the claim fails.
28112 Include <grub/misc.h>.
28113
d1923dc8 281142004-10-13 Hollis Blanchard <hollis@penguinppc.org>
28115
28116 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
28117 Call grub_children_iterate for device nodes of type `scsi',
28118 `ide', or `ata'.
28119 (grub_ofdisk_open): Remove manual device alias resolution.
28120 Fix memory leak when device cannot be opened.
f19dbdb7 28121 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 28122 (grub_children_iterate): New prototype.
28123 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
28124 New function.
28125 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
28126 Return -1 if args.size was -1.
28127
4512e4f3 281282004-10-11 Hollis Blanchard <hollis@penguinppc.org>
28129
28130 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
28131 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
28132 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
28133 Open Firmware's memory for it; claim memory from _start to _end.
28134 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
28135 (_end): New extern.
28136 (_start): Zero BSS from __bss_start to _end.
28137 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
28138 New extern.
28139 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
28140
4d61feb0 281412004-10-11 Hollis Blanchard <hollis@penguinppc.org>
28142
ad0bd20b 28143 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
28144 -1 if args.base was -1.
4d61feb0 28145
026fa2f9 281462004-10-08 Hollis Blanchard <hollis@penguinppc.org>
28147
28148 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
28149 escape sequence instead of a literal ^L. Also call
28150 grub_ofconsole_gotoxy.
28151
9f2220ef 281522004-10-03 Hollis Blanchard <hollis@penguinppc.org>
28153
28154 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
28155 void * arguments to grub_addr_t. All callers updated. Also make
28156 the `result' argument optional.
28157 (grub_ieee1275_release): change void * arguments to grub_addr_t.
28158 All callers updated.
28159
8a572cd7 281602004-09-22 Hollis Blanchard <hollis@penguinppc.org>
28161
28162 * commands/ls.c (grub_ls_list_files): Use the string following the
28163 initial ')', if present, as the filesystem path.
28164 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
28165
28166 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
28167
18aa81f2 281682004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
28169
28170 Make the source code of the menu interface more readable.
f19dbdb7 28171
18aa81f2 28172 * normal/menu.c: Include grub/mm.h.
28173 (TERM_WIDTH): New macro.
28174 (TERM_HEIGHT): Likewise.
28175 (TERM_INFO_HEIGHT): Likewise.
28176 (TERM_MARGIN): Likewise.
28177 (TERM_SCROLL_WIDTH): Likewise.
28178 (TERM_TOP_BORDER_Y): Likewise.
28179 (TERM_LEFT_BORDER_X): Likewise.
28180 (TERM_BORDER_WIDTH): Likewise.
28181 (TERM_MESSAGE_HEIGHT): Likewise.
28182 (TERM_BORDER_HEIGHT): Likewise.
28183 (TERM_NUM_ENTRIES): Likewise.
28184 (TERM_FIRST_ENTRY_Y): Likewise.
28185 (TERM_ENTRY_WIDTH): Likewise.
28186 (TERM_CURSOR_X): Likewise.
28187 (draw_border): Use macros instead of magic numbers.
28188 (print_entry): Likewise.
28189 (print_entries): Likewise.
28190 (run_menu): Likewise. Also, handle the key 'e'.
28191 (run_menu_entry): Ignore empty command lines.
28192 (print_message): Added a new argument EDIT. If EDIT is true,
28193 print a different message.
28194 (init_page): Likewise.
28195 (edit_menu_entry): New function. Not implemented yet.
28196
b47efe30 281972004-09-17 Marco Gerards <metgerards@student.han.nl>
28198
28199 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
28200 can be loaded from normal mode.
f19dbdb7 28201
b47efe30 28202 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
28203 `multiboot.mod'.
28204 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
28205 (multiboot_mod_CFLAGS): New variables.
28206 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 28207 * loader/i386/pc/multiboot_normal.c: Likewise.
28208
b47efe30 28209 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
28210 attribute `unused'.
f19dbdb7 28211
b47efe30 28212 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
28213 `fdiro' to read the mode information from instead of `diro'.
28214
28215 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
28216 looking up a symlink.
28217
28218 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
28219 macro.
28220 * normal/command.c (grub_command_execute): Don't parse the
28221 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
28222 flags of the command.
28223
28224 * normal/menu.c (grub_menu_run): Fix typo.
28225
da75ac71 282262004-09-14 Hollis Blanchard <hollis@penguinppc.org>
28227
28228 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
28229
28230 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
28231 `y + 1' instead of `y - 1'.
28232
28233 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 28234
062b24c2 282352004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
28236
28237 From Hollis Blanchard <hollis@penguinppc.org>:
28238 * kern/misc.c (memmove): New alias for grub_memmove.
28239 (memcmp): New alias for grub_memcmp.
28240 (memset): New alias for grub_memset.
f19dbdb7 28241 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 28242 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 28243 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 28244 (grub_ieee1275_get_property): Likewise.
f19dbdb7 28245
8ddad845 282462004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
28247
28248 Added normal mode command `chainloader' as module chain.mod, which
28249 depends on normal.mod and _chain.mod.
f19dbdb7 28250
8ddad845 28251 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
28252 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
28253 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
28254 Deleted prototype.
28255 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
28256 but arguments parsing moved to ...
28257 (grub_chainloader_cmd): ... here. New function.
28258 * include/grub/i386/pc/chainloader.h: New file.
28259 * loader/i386/pc/chainloader_normal.c: Likewise.
28260
2c1f4ce3 282612004-09-11 Marco Gerards <metgerards@student.han.nl>
28262
28263 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
28264 (grub_mkimage_LDFLAGS): Likewise.
28265 (grub_emu_SOURCES): Likewise.
28266 (kernel_img_HEADERS): Added fshelp.h.
28267 * fs/ext2.c: Include <grub/fshelp.h>.
28268 (FILETYPE_REG): New macro.
28269 (FILETYPE_INO_REG): Likewise.
28270 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
28271 Changed all users.
28272 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
28273 all users.
28274 (grub_fshelp_node): New struct.
28275 (grub_ext2_data): Added member `diropen'. Changed member `inode'
28276 to a pointer.
28277 (grub_ext2_get_file_block): Removed function.
28278 (grub_ext2_read_block): New function.
28279 (grub_ext2_read_file): Replaced parameter `data' by `node'.
28280 This function was written.
28281 (grub_ext2_mount): Read the root inode. Create a diropen struct.
28282 (grub_ext2_find_file): Removed function.
28283 (grub_ext2_read_symlink): New function.
28284 (grub_ext2_iterate_dir): Likewise.
28285 (grub_ext2_open): Rewritten.
28286 (grub_ext2_dir): Rewritten.
28287 * include/grub/fshelp.h: New file.
28288 * fs/fshelp.c: Likewise.
28289
3c52136a 282902004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
28291
28292 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
28293 (print_message): Add a missing newline.
28294 (run_menu): Added timeout support.
28295 (run_menu_entry): New local function.
28296 (grub_menu_run): Added support for booting.
28297
28298 * kern/loader.c (grub_loader_is_loaded): New function.
28299
28300 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
28301 (grub_get_rtc): Exported.
28302
28303 * include/grub/i386/pc/time.h: Include grub/symbol.h.
28304 (grub_get_rtc): Exported.
28305
28306 * include/grub/normal.h (struct grub_command_list): Remove
28307 constant from the member `command'.
28308
28309 * include/grub/loader.h (grub_loader_is_loaded): Declared.
28310
28311 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
28312
28313 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
28314
aa033560 283152004-08-28 Marco Gerards <metgerards@student.han.nl>
28316
28317 Add support for the JFS filesystem.
28318
28319 * fs/jfs.c: New file.
28320 * include/grub/fs.h (grub_jfs_init): New prototype.
28321 (grub_jfs_fini): New prototype.
28322 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
28323 (grub_emu_SOURCES): Likewise.
28324 (pkgdata_MODULES): Add jfs.mod.
28325 (jfs_mod_SOURCES): New variable.
28326 (jfs_mod_CFLAGS): Likewise.
28327 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
28328 (grubof_SOURCES): Likewise.
28329 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
28330
28331 * fs/fat.c (grub_fat_find_dir): Convert the filename little
28332 endian to the host endian.
28333 (grub_fat_utf16_to_utf8): Move function from there...
28334 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 28335 the endianness of the source string anymore.
aa033560 28336 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
28337
94bc45af 283382004-08-24 Marco Gerards <metgerards@student.han.nl>
28339
28340 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
28341 (grub_boot_fini) [GRUB_UTIL]: Likewise.
28342 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
28343 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 28344
94bc45af 28345 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
28346 (grub_hfs_iterate_dir): Make the function static. Add prototypes
28347 for `node_found' and `it_dir'.
28348 (grub_hfs_dir): Add prototype for `dir_hook'.
28349
28350 * fs/minix.c (grub_minix_get_file_block): Add prototype for
28351 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
28352 and `indir32' to silence a gcc warning.
28353
28354 * include/grub/fs.h (grub_hfs_init): New prototype.
28355 (grub_hfs_fini): Likewise.
f19dbdb7 28356
28357
97543f08 283582004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
28359
28360 Each disk device has its own id now. This is useful to make use
28361 of multiple disk devices.
f19dbdb7 28362
97543f08 28363 * include/grub/disk.h (grub_disk_dev_id): New enum.
28364 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
28365 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
28366
28367 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
28368 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
28369
28370 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
28371 GRUB_DISK_DEVICE_OFDISK_ID as an id.
28372
28373 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
28374 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
28375
28376 * include/grub/disk.h (struct grub_disk_dev): Added a new member
28377 "id" which is used by the cache manager.
28378
28379 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
28380 of just "GRUB".
28381
64372eb4 283822004-08-18 Marco Gerards <metgerards@student.han.nl>
28383
28384 * fs/hfs.c: New file.
28385 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
28386 (grub_emu_SOURCES): Likewise.
28387 (pkgdata_MODULES): Add hfs.mod.
28388 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
28389 (grubof_SOURCES): Likewise.
28390 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
28391
28392 * include/grub/misc.h (grub_strncasecmp): Add prototype.
28393 * kern/misc.c (grub_strncasecmp): Add function.
28394
cc61b58f 283952004-08-14 Marco Gerards <metgerards@student.han.nl>
28396
28397 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
28398 with parentheses.
28399
28400 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
28401 (grub_ext2_dir): In case the directory entry type is unknown, read
28402 it from the inode.
28403
0ef123f6 284042004-08-02 Peter Bruin <pjbruin@dds.nl>
28405
28406 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
28407 grub_load_linux instead of grub_rescue_cmd_linux as second
28408 argument of grub_rescue_register_command.
28409
28410 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
28411
a447c5df 284122004-07-27 Marco Gerards <metgerards@student.han.nl>
28413
28414 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
28415 function.
28416 * commands/boot.c: Remove the check for `GRUB_UTIL'.
28417 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
28418 `loader/powerpc/ieee1275/linux.c',
28419 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
28420 * include/grub/powerpc/ieee1275/ieee1275.h
28421 (grub_ieee1275_release): New prototype.
28422 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
28423 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
28424 normal, boot, linux and linux_normal.
28425 * loader/powerpc/ieee1275/linux.c: New file.
28426 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
28427
5a9e3546 284282004-07-12 Marco Gerards <metgerards@student.han.nl>
28429
28430 * normal/arg.c (grub_arg_parse): Correct error handling after
28431 reallocating the argumentlist (check if `argl' is not null instead
28432 of checking if `args' is not null).
28433 * kern/mm.c (grub_realloc): Return the same pointer when using the
28434 same region, instead of returning the header address.
28435
e15199cb 284362004-07-11 Marco Gerards <metgerards@student.han.nl>
28437
28438 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
28439 one block instead of two when looking for the initial partition.
28440 (grub_partition_probe): Initialize the local variable `p' with 0.
28441 Use base 10 for the grub_strtoul call.
28442 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
28443 need for one local variable.
28444 (grub_strtoul): Don't add the new value to `num', instead of that
28445 just assign it.
28446
020616c2 284472004-07-11 Marco Gerards <metgerards@student.han.nl>
28448
28449 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
28450 (pxeboot_img_SOURCES): New variable.
28451 (pxeboot_img_ASFLAGS): Likewise.
28452 (pxeboot_img_LDFLAGS): Likewise.
28453 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
28454 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
28455 <lode_leroy@hotmail.com>.
28456
6c51eb64 284572004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
28458
28459 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
28460 there was no input.
28461
cfb12aff 284622004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
28463
28464 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
28465 the history buffer logic.
28466
6eabba74 284672004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
28468
28469 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
28470 (FILETYPE_INO_SYMLINK): New macros.
28471 (grub_ext2_find_file): Check if the node is a directory using the
28472 inode stat information instead of using the filetype in the
28473 dirent. Exclude the first character of an absolute symlink.
28474 (grub_ext2_dir): Mask out the filetype part of the mode member of
28475 the inode.
28476
66e19ef8 284772004-05-24 Marco Gerards <metgerards@student.han.nl>
28478
28479 Add support for UFS version 1 and 2. Add support for the minix
28480 filesystem version 1 and 2, both the variants with 14 and 30 long
28481 filenames.
f19dbdb7 28482
66e19ef8 28483 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
28484 fs/minix.c.
28485 (grub_emu_SOURCES): Likewise.
28486 (pkgdata_MODULES): Add ufs.mod and minix.mod.
28487 (ufs_mod_SOURCES): New variable.
28488 (ufs_mod_CFLAGS): Likewise.
28489 (minix_mod_SOURCES): Likewise.
28490 (minix_mod_CFLAGS): Likewise.
28491 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
28492 fs/minix.c.
28493 (grubof_SOURCES): Likewise.
28494 * fs/ufs.c: New file.
28495 * fs/minix.c: New file.
28496 * include/grub/fs.h (grub_ufs_init): New prototype.
28497 (grub_ufs_fini): Likewise.
28498 (grub_minix_init): Likewise.
28499 (grub_minix_fini): Likewise.
28500 * util/grub-emu.c (main): Initialize and deinitialize UFS and
28501 minix fs.
28502
cc2e748a 285032004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
28504
28505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
28506 commands/ls.c, commands/terminal.c, commands/boot.c,
28507 commands/cmp.c and commands/cat.c.
28508 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
28509
28510 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
28511 "env.h"
28512
4b13b216 285132004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
28514
28515 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
28516 and grub_, respectively. Because the conversion is trivial and
28517 mechanical, I omit the details here. Please refer to the CVS
28518 if you need more information.
28519
6a142551 285202004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
28521
28522 * include/pupa: Renamed to ...
28523 * include/grub: ... this.
28524 * util/i386/pc/pupa-mkimage.c: Renamed to ...
28525 * util/i386/pc/grub-mkimage.c: ... this.
28526 * util/i386/pc/pupa-setup.c: Renamed to ...
28527 * util/i386/pc/grub-setup.c: ... this.
28528 * util/pupa-emu.c: Renamed to ...
28529 * util/grub-emu.c: ... this.
28530
e56cdf21 285312004-03-29 Marco Gerards <metgerards@student.han.nl>
28532
28533 Add support for the newworld apple macintosh (PPC). This has been
28534 tested on the powerbook 2000 only. It only adds support for
28535 generic ieee1275 functions, console and disk support. This should
28536 be easy to port to other architectures with support for Open
28537 Firmware.
f19dbdb7 28538
e56cdf21 28539 * configure.ac: Accept the powerpc as host_cpu. In the case of
28540 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
28541 specific tests are only executed while building for the i386.
28542 Inverse test for crosscompile.
28543 * genmk.rb (Utility): Allow assembler files.
28544 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
28545 * conf/powerpc-ieee1275.rmk: New file.
28546 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
28547 * disk/powerpc/ieee1275/partition.c: Likewise.
28548 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
28549 * include/pupa/powerpc/ieee1275/console.h: Likewise.
28550 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
28551 * include/pupa/powerpc/ieee1275/time.h: Likewise.
28552 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
28553 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
28554 * include/pupa/powerpc/ieee1275/loader.h
28555 * include/pupa/powerpc/setjmp.h: Likewise.
28556 * include/pupa/powerpc/types.h: Likewise.
28557 * kern/powerpc/ieee1275/init.c: Likewise.
28558 * kern/powerpc/ieee1275/openfw.c: Likewise.
28559 * term/powerpc/ieee1275/ofconsole.c: Likewise.
28560
28561 These files were written by Johan Rydberg
28562 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 28563
e56cdf21 28564 * boot/powerpc/ieee1275/cmain.c: New file.
28565 * boot/powerpc/ieee1275/crt0.S: Likewise.
28566 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
28567 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
28568
8c8cc205 285692004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
28570
28571 * Makefile.in: Update copyright.
28572 * genmodsrc.sh: Likewise.
28573 * gensymlist.sh: Likewise.
28574 * term/i386/pc/vga.c: Indent correctly.
28575
28576 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
28577 bugreporting address.
28578 * util/i386/pc/pupa-setup.c (usage): Likewise,
28579 (main): Call pupa_ext2_init and pupa_ext2_fini.
28580
f19dbdb7 28581 * fs/fat.c (log2): Renamed to ...
8c8cc205 28582 (fat_log2): ... this.
28583 All callers changed.
28584 * kern/misc.c (memcpy): Alias to pupa_memmove.
28585 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
28586 lvalue cast.
28587 * util/console.c (pupa_ncurses_fini): Return 0.
28588
28589 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
28590 Move fail label here.
28591 [__GNU__]: Don't warn when using stat.
28592 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
28593 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
28594 long int. Use strtol instead of strtoul.
f19dbdb7 28595
db1771cf 285962004-03-14 Marco Gerards <metgerards@student.han.nl>
28597
28598 * commands/boot.c: New file.
28599 * commands/cat.c: Likewise.
28600 * commands/cmp.c: Likewise.
28601 * commands/ls.c: Likewise.
28602 * commands/terminal.c: Likewise.
28603 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
28604 (pupa_register_command): Changed interface to match the new
28605 argument parser.
28606 (pupa_command_execute): Changed (almost rewritten) so it uses
28607 pupa_split_command. Added support for setting variables using the
28608 syntax `foo=bar'.
28609 (rescue_command): Changed to work with the new argument parser.
28610 (terminal_command): Moved from here to commands/terminal.c.
28611 (set_command): New function.
28612 (unset_command): New function.
28613 (insmod_command): New function.
28614 (rmmod_command): New function.
28615 (lsmod_command): New function.
28616 (pupa_command_init): Don't initialize the command terminal
28617 anymore. Initialize the commands set, unset, insmod, rmmod and
28618 lsmod.
28619 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
28620 (kernel_img_HEADERS): Add arg.h and env.h.
28621 (pupa_mkimage_LDFLAGS): Add kern/env.c.
28622 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
28623 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
28624 normal/arg.c.
28625 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
28626 terminal.mod.
28627 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
28628 (boot_mod_SOURCES): New variable.
28629 (terminal_mod_SOURCES): Likewise.
28630 (ls_mod_SOURCES): Likewise.
28631 (cmp_mod_SOURCES): Likewise.
28632 (cat_mod_SOURCES): Likewise.
28633
28634 * normal/arg.c: New file.
28635 * kern/env.c: Likewise.
28636 * include/pupa/arg.h: Likewise.
28637 * include/pupa/env.h: Likewise.
28638 * font/manager.c (font_command): Changed to match argument parsing
28639 interface changes.
28640 (PUPA_MOD_INIT): Likewise.
28641 * hello/hello.c (pupa_cmd_hello): Likewise.
28642 (PUPA_MOD_INIT): Likewise.
28643 * include/pupa/disk.h: Include <pupa/device.h>.
28644 (pupa_print_partinfo): New prototype.
28645 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
28646 (pupa_dl_get_prefix): Likewise.
28647 * include/pupa/misc.h: Include <pupa/err.h>.
28648 (pupa_isgraph): New prototype.
28649 (pupa_isdigit): Likewise.
28650 (pupa_split_cmdline): Likewise.
28651 * include/pupa/normal.h: Include <pupa/arg.h>.
28652 (pupa_command): Changed the prototype of the member `func' to
28653 match the argument parsing interface. Added member `options'.
28654 (pupa_register_command): Updated to match function.
28655 (pupa_arg_parse): New prototype.
28656 (pupa_hello_init) [PUPA_UTIL]: New prototype.
28657 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
28658 (pupa_ls_init) [PUPA_UTIL]: Likewise.
28659 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
28660 (pupa_cat_init) [PUPA_UTIL]: Likewise.
28661 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
28662 (pupa_boot_init) [PUPA_UTIL]: Likewise.
28663 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
28664 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
28665 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
28666 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
28667 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
28668 * kern/disk.c: Include <pupa/file.h>.
28669 (pupa_print_partinfo): New function.
28670 * kern/dl.c: Include <pupa/env.h>.
28671 (pupa_dl_dir): Variable removed.
28672 (pupa_dl_load): Use the environment variable `prefix' instead of
28673 the variable pupa_dl_dir.
28674 (pupa_dl_set_prefix): Function removed.
28675 (pupa_dl_get_prefix): Likewise.
28676 * kern/i386/pc/init.c: Include <pupa/env.h>.
28677 (pupa_machine_init): Use the environment variable `prefix' instead of
28678 using pupa_dl_set_prefix to set the prefix.
28679 * kern/main.c: Include <pupa/env.h>.
28680 (pupa_set_root_dev): Use the environment variable `prefix' instead of
28681 using pupa_dl_get_prefix to get the prefix.
28682 * kern/misc.c: Include <pupa/env.h>.
28683 (pupa_isdigit): New function.
28684 (pupa_isgraph): Likewise.
28685 (pupa_ftoa): Likewise.
28686 (pupa_vsprintf): Added support for printing values of the type
28687 `double'. Make it possible to format variable output when using
28688 formatting like `%1.2%f'.
28689 (pupa_split_cmdline): New function.
28690 * kern/rescue.c: Include <pupa/env.h>.
28691 (next_word): Removed function.
28692 (pupa_rescue_cmd_prefix): Likewise.
28693 (pupa_rescue_cmd_set): New function.
28694 (pupa_rescue_cmd_unset): New function.
28695 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
28696 split the command line instead of splitting it here. Added
28697 support for setting variables using the syntax `foo=bar'. Don't
28698 initialize the prefix command anymore. Initialized the set and
28699 unset commands.
28700 * normal/cmdline.c: Include <pupa/env.h>.
28701 (pupa_tab_complete): Added prototypes for print_simple_completion,
28702 print_partition_completion, add_completion, iterate_commands,
28703 iterate_dev, iterate_part and iterate_dir. Moved code to print
28704 partition information from here to kern/disk.c.
fe6b695a 28705 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 28706 * normal/main.c: Include <pupa/env.h>.
28707 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
28708 instead of using pupa_dl_get_prefix to get the prefix.
28709 * term/i386/pc/vga.c: Include <pupa/arg.h>.
28710 (check_vga_mem): Cast pointers to `void *' to silence a gcc
28711 warning.
28712 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
28713 (pupa_vga_setcolor): Declare unused variables with `__attribute__
28714 ((unused))' to silence a gcc warning.
28715 (pupa_vga_setcolor): Likewise.
28716 (debug_command): Changed to match argument parsing
28717 interface changes.
28718 * util/pupa-emu.c: Include <pupa/env.h>.
28719 (options): Added 0's for unused fields to silence a gcc warning.
28720 (argp): Likewise.
28721 (main): Use the environment variable `prefix' instead of using
28722 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
28723 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
28724 and terminal.
28725
28726 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
28727 * util/misc.c: Include <malloc.h>.
28728 (pupa_malloc): Rewritten so errors are correctly reported.
28729 (pupa_realloc): Likewise.
28730 (pupa_memalign): Likewise.
28731 (pupa_mm_init_region): Declare unused variables with
28732 `__attribute__ ((unused))' to silence a gcc warning.
28733 * normal/i386/setjmp.S: Remove tab at the end of the file to
28734 silence a gcc warning.
28735 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
28736 variables with `__attribute__ ((unused))' to silence a gcc
28737 warning.
28738 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
28739 local variable i unsigned to silence a gcc warning.
28740
28741 * kern/term.c: Include <pupa/misc.h>.
28742 (pupa_more_lines): New variable.
28743 (pupa_more): Likewise.
28744 (pupa_putcode): When the pager is active pause at the end of every
28745 screen.
28746 (pupa_set_more): New function.
28747 * include/pupa/term.h (pupa_set_more): New prototype.
28748
28749
3b1139cb 287502004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
28751
28752 Now this project is GRUB 2 rather than PUPA. The location of
28753 the CVS repository was moved to GRUB's.
f19dbdb7 28754
3b1139cb 28755 * configure.ac: Use bug-grub as the reporting address.
28756 Use GRUB instead of PUPA.
28757 Change the version number to 1.90.
28758
8367695c 287592004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
28760
28761 * genkernsyms.sh: Updated copyright information.
28762 * genmk.rb: Likewise.
28763 * genmodsrc.sh: Likewise.
28764 * gensymlist.sh: Likewise.
28765 * boot/i386/pc/boot.S: Likewise.
28766 * boot/i386/pc/diskboot.S: Likewise.
28767 * disk/i386/pc/biosdisk.c: Likewise.
28768 * disk/i386/pc/partition.c: Likewise.
28769 * font/manager.c: Likewise.
28770 * fs/ext2.c: Likewise.
28771 * fs/fat.c: Likewise.
28772 * include/pupa/boot.h: Likewise.
28773 * include/pupa/device.h: Likewise.
28774 * include/pupa/disk.h: Likewise.
28775 * include/pupa/dl.h: Likewise.
28776 * include/pupa/elf.h: Likewise.
28777 * include/pupa/err.h: Likewise.
28778 * include/pupa/file.h: Likewise.
28779 * include/pupa/font.h: Likewise.
28780 * include/pupa/fs.h: Likewise.
28781 * include/pupa/kernel.h: Likewise.
28782 * include/pupa/loader.h: Likewise.
28783 * include/pupa/misc.h: Likewise.
28784 * include/pupa/mm.h: Likewise.
28785 * include/pupa/net.h: Likewise.
28786 * include/pupa/normal.h: Likewise.
28787 * include/pupa/rescue.h: Likewise.
28788 * include/pupa/setjmp.h: Likewise.
28789 * include/pupa/symbol.h: Likewise.
28790 * include/pupa/term.h: Likewise.
28791 * include/pupa/types.h: Likewise.
28792 * include/pupa/i386/setjmp.h: Likewise.
28793 * include/pupa/i386/types.h: Likewise.
28794 * include/pupa/i386/pc/biosdisk.h: Likewise.
28795 * include/pupa/i386/pc/boot.h: Likewise.
28796 * include/pupa/i386/pc/console.h: Likewise.
28797 * include/pupa/i386/pc/init.h: Likewise.
28798 * include/pupa/i386/pc/kernel.h: Likewise.
28799 * include/pupa/i386/pc/linux.h: Likewise.
28800 * include/pupa/i386/pc/loader.h: Likewise.
28801 * include/pupa/i386/pc/memory.h: Likewise.
28802 * include/pupa/i386/pc/multiboot.h: Likewise.
28803 * include/pupa/i386/pc/partition.h: Likewise.
28804 * include/pupa/i386/pc/time.h: Likewise.
28805 * include/pupa/i386/pc/vga.h: Likewise.
28806 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
28807 * include/pupa/util/getroot.h: Likewise.
28808 * include/pupa/util/misc.h: Likewise.
28809 * include/pupa/util/resolve.h: Likewise.
28810 * kern/device.c: Likewise.
28811 * kern/disk.c: Likewise.
28812 * kern/dl.c: Likewise.
28813 * kern/err.c: Likewise.
28814 * kern/file.c: Likewise.
28815 * kern/fs.c: Likewise.
28816 * kern/loader.c: Likewise.
28817 * kern/main.c: Likewise.
28818 * kern/misc.c: Likewise.
28819 * kern/mm.c: Likewise.
28820 * kern/rescue.c: Likewise.
28821 * kern/term.c: Likewise.
28822 * kern/i386/dl.c: Likewise.
28823 * kern/i386/pc/init.c: Likewise.
28824 * kern/i386/pc/lzo1x.S: Likewise.
28825 * kern/i386/pc/startup.S: Likewise.
28826 * loader/i386/pc/chainloader.c: Likewise.
28827 * loader/i386/pc/linux.c: Likewise.
28828 * loader/i386/pc/multiboot.c: Likewise.
28829 * normal/cmdline.c: Likewise.
28830 * normal/command.c: Likewise.
28831 * normal/main.c: Likewise.
28832 * normal/menu.c: Likewise.
28833 * normal/i386/setjmp.S: Likewise.
28834 * term/i386/pc/console.c: Likewise.
28835 * term/i386/pc/vga.c: Likewise.
28836 * util/console.c: Likewise.
28837 * util/genmoddep.c: Likewise.
28838 * util/misc.c: Likewise.
28839 * util/pupa-emu.c: Likewise.
28840 * util/resolve.c: Likewise.
28841 * util/unifont2pff.rb: Likewise.
28842 * util/i386/pc/biosdisk.c: Likewise.
28843 * util/i386/pc/getroot.c: Likewise.
28844 * util/i386/pc/pupa-mkimage.c: Likewise.
28845 * util/i386/pc/pupa-setup.c: Likewise.
28846
e6eced71 288472004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
28848
28849 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
28850 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
28851 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
28852 reading and reset it after reading.
28853 (pupa_ext2_close): Return PUPA_ERR_NONE.
28854
28855 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
28856 Correct value.
28857 (struct linux_kernel_header): Add kernel_version and
28858 initrd_addr_max.
28859 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
28860 pupa_file_read succeeds.
28861 (pupa_rescue_cmd_initrd): Implement.
28862
5aded270 288632003-12-03 Marco Gerards <metgerards@student.han.nl>
28864
28865 * fs/ext2.c (pupa_ext2_label): New function.
28866 (pupa_ext2_fs): Added label.
28867 * fs/fat.c (pupa_fat_label): New function.
28868 (pupa_fat_fs): Added label.
28869 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
28870
28871 * kern/misc.c (pupa_strndup): New function.
28872 * include/pupa/misc.h (pupa_strndup): New prototype.
28873
28874 * include/pupa/normal.h: Include <pupa/err.h>.
28875 (pupa_set_history): New prototype.
28876 (pupa_iterate_commands): New prototype.
28877 * normal/cmdline.c: Include <pupa/machine/partition.h>,
28878 <pupa/disk.h>, <pupa/file.h>.
28879 (hist_size): New variable.
28880 (hist_lines): Likewise.
28881 (hist_end): Likewise.
28882 (hist_used): Likewise.
28883 (pupa_set_history): New function.
28884 (pupa_history_get): Likewise.
28885 (pupa_history_add): Likewise.
28886 (pupa_history_replace): Likewise.
28887 (pupa_tab_complete): Likewise.
28888 (pupa_cmdline_run): Added tab completion and history buffer. Tab
28889 completion shows partitionnames while completing partitions, this
28890 feature was suggested by Jeff Bailey.
28891 * normal/command.c (pupa_iterate_commands): New function.
28892 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
28893 (pupa_normal_init): Initialize history buffer.
28894 (PUPA_MOD_INIT): Likewise.
28895 (pupa_normal_fini): Free the history buffer.
28896 (PUPA_MOD_FINI): Likewise.
28897
28898 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
28899 key.
28900
28901 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
28902 * configure.ac [i386]: Check for regparam bug.
28903 (NESTED_FUNC_ATTR) [! i386]: Defined.
28904
1f7315a3 289052003-11-17 Marco Gerards <metgerards@student.han.nl>
28906
28907 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
28908 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
28909 (pupa_emu_SOURCES): New variable.
28910 (pupa_emu_LDFLAGS): Likewise.
28911 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
28912 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
28913 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
28914 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28915 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
28916 (pupa_jmp_buf): New typedef.
28917 (pupa_setjmp) [PUPA_UTIL]: New macro.
28918 (pupa_longjmp) [PUPA_UTIL]: Likewise.
28919 * include/pupa/term.h (struct pupa_term): New member `refresh'.
28920 (pupa_refresh): New prototype.
28921 * include/pupa/util/getroot.h: New file.
28922 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
28923 it.
28924 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
28925 (pupa_rescue_cmd_cat): Likewise.
28926 (pupa_rescue_cmd_ls): Likewise.
28927 (pupa_rescue_cmd_testload): Likewise.
28928 (pupa_rescue_cmd_lsmod): Likewise.
28929 * normal/cmdline.c (pupa_cmdline_get): Likewise.
28930 * normal/menu.c (run_menu): Likewise.
28931 * kern/term.c (pupa_cls): Likewise.
28932 (pupa_refresh): New function.
28933 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
28934 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28935 * util/console.c: New file.
f19dbdb7 28936
1f7315a3 28937 * util/i386/pc/getroot.c: New file.
28938 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
28939 (pupa_putchar): New function.
28940 (pupa_refresh): Likewise.
28941 (xgetcwd): Function moved to ...
28942 (strip_extra_slashes): Likewise.
28943 (get_prefix): Likewise.
f19dbdb7 28944 * util/i386/pc/getroot.c: ... here.
1f7315a3 28945 (find_root_device): Function moved and renamed to...
28946 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
28947 Changed all callers.
28948 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
28949 and renamed to...
28950 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
28951 Changed all callers.
28952 * util/misc.c (pupa_memalign): New function.
28953 (pupa_mm_init_region): Likewise.
28954 (pupa_register_exported_symbols): Likewise.
28955 (pupa_putchar): Function removed.
28956 * util/pupa-emu.c: New file.
28957
9a5c1ade 289582003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
28959
28960 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
28961 (_multiboot_mod_SOURCES): New variable.
28962 (_multiboot_mod_CFLAGS): Likewise.
28963 * loader/i386/pc/multiboot.c: New file.
28964 * include/pupa/i386/pc/multiboot.h: Likewise.
28965 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
28966 (pupa_multiboot_real_boot): New function.
28967 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
28968 (pupa_multiboot_real_boot): New prototype.
28969 (pupa_rescue_cmd_multiboot): Likewise
28970 (pupa_rescue_cmd_module): Likewise.
28971
28972 * kern/loader.c (pupa_loader_set): Continue when
28973 pupa_loader_unload_func() fails.
28974 (pupa_loader_unset): New function.
28975 * include/pupa/loader.h (pupa_loader_unset): New prototype.
28976
28977 * kern/misc.c (pupa_stpcpy): New function.
28978 * include/pupa/misc.h (pupa_stpcpy): New prototype.
28979
8e72a9c0 289802003-11-12 Marco Gerards <metgerards@student.han.nl>
28981
28982 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
28983 for available extensions.
28984
28985 * include/pupa/i386/pc/time.h: New file.
28986 * kern/disk.c: Include <pupa/machine/time.h>.
28987 (PUPA_CACHE_TIMEOUT): New macro.
28988 (pupa_last_time): New variable.
28989 (pupa_disk_open): Flush the cache when there was a timeout.
28990 (pupa_disk_close): Reset the timer.
28991 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
28992 pupa_currticks.
28993 * util/misc.c: Include <sys/times.h>
28994 (pupa_get_rtc): New function.
28995
c4adbd32 289962003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28997
28998 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
28999 as blocks.
29000 (pupa_ext2_get_file_block): Use blocks member.
29001
29002 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
29003 first block. Return -1 instead of pupa_errno on error.
29004
bfd30f06 290052003-10-27 Marco Gerards <metgerards@student.han.nl>
29006
29007 * README: In the pupa-mkimage example use _chain instead of chain
29008 and ext2 instead of fat.
29009 * TODO: Replace ext2fs with jfs as an example. Add an item for
29010 adding journal playback for ext2fs.
29011 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
29012 (pkgdata_MODULES): Added ext2.mod.
29013 (ext2_mod_SOURCES): New variable.
29014 (ext2_mod_CFLAGS): Likewise.
29015 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
29016 * include/pupa/misc.h (pupa_strncpy): New prototype.
29017 (pupa_strcat): Likewise.
29018 (pupa_strncmp): Likewise.
29019 * kern/misc.c (pupa_strcat): Enable function.
29020 (pupa_strncpy): New function.
29021 (pupa_strncmp): Likewise.
29022 * fs/ext2.c: New file.
f19dbdb7 29023
bfd30f06 29024 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
29025 when the read failed before retrying.
29026 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
29027 (_FILE_OFFSET_BITS): Likewise.
29028 * configure.ac: Added AC_SYS_LARGEFILE.
29029
98d15063 290302003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
29031
29032 * genmk.rb (PModule#rule): Make sure to get only symbol names
29033 from the output of nm.
59cad637 29034 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 29035
18d9c7cd 290362003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
29037
29038 I forgot to check in these changes for a long time. This adds
29039 incomplete support for VGA console, and this is still very
29040 buggy. Also, a lot of consideration is required for I18N,
29041 UNICODE, and VGA font issues. Therefore, assume that this is
29042 such that "better than nothing".
f19dbdb7 29043
18d9c7cd 29044 * font/manager.c: New file.
29045 * include/pupa/font.h: Likewise.
29046 * include/pupa/i386/pc/vga.h: Likewise.
29047 * term/i386/pc/vga.c: Likewise.
29048 * util/unifont2pff.rb: Likewise.
29049
29050 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
29051 (pkgdata_MODULES): Added vga.mod and font.mod.
29052 (vga_mod_SOURCES): New variables.
29053 (vga_mod_CFLAGS): Likewise.
29054 (font_mod_SOURCES): Likewise.
29055 (font_mod_CFLAGS): Likewise.
29056
29057 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
29058
29059 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 29060 (struct pupa_term): Added init and fini.
18d9c7cd 29061 Changed the argument of putchar to pupa_uint32_t.
29062
29063 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
29064 (pupa_console_real_putchar): New prototype.
29065 (pupa_console_putchar): Removed.
29066 (pupa_console_checkkey): Exported.
29067 (pupa_console_getkey): Likewise.
29068
29069 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
29070 characters.
29071
29072 * kern/term.c (pupa_term_set_current): Rewritten.
29073 (pupa_putchar): Likewise.
29074 (pupa_putcode): New function.
29075
29076 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
29077 (pupa_console_real_putchar): ... this.
29078 (pupa_vga_set_mode): New function.
29079 (pupa_vga_get_font): Likewise.
29080
29081 * normal/command.c: Include pupa/term.h.
29082 (terminal_command): New function.
29083 (pupa_command_init): Register the command "terminal".
29084
29085 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
29086 (DISP_UP): Likewise.
29087 (DISP_RIGHT): Likewise.
29088 (DISP_DOWN): Likewise.
29089 (DISP_HLINE): Likewise.
29090 (DISP_VLINE): Likewise.
29091 (DISP_UL): Likewise.
29092 (DISP_UR): Likewise.
29093 (DISP_LL): Likewise.
29094 (DISP_LR): Likewise.
29095
29096 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 29097
977329f5 290982003-02-08 NIIBE Yutaka <gniibe@m17n.org>
29099
29100 * util/resolve.c (pupa_util_resolve_dependencies): BUG
29101 FIX. Reverse the path_list.
29102
29103 * include/pupa/normal.h: Export pupa_register_command and
29104 pupa_unregister_command.
29105
29106 * hello/hello.c (pupa_cmd_hello): New module.
29107 * conf/i386-pc.rmk: Added hello.mod.
29108
1f5ab428 291092003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
29110
29111 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 29112
1f5ab428 29113 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
29114 (compress_kernel): New variable.
29115 (generate_image): Heavily modified to support compressing a
29116 large part of the core image.
29117
29118 * util/misc.c (pupa_util_read_image): Fix a file descriptor
29119 leak.
29120 (pupa_util_load_image): New function.
29121
29122 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
29123 (pupa_compressed_size): New variable.
29124 (codestart): Enable Gate A20 here.
29125 Decompress the compressed part of the core image.
29126 Rearrange the code to put functions and variables which are
29127 required for initialization in the non-compressed part.
29128 Include lzo1x.S.
29129
29130 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
29131 here.
29132
29133 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
29134
f19dbdb7 29135 * include/pupa/i386/pc/kernel.h
1f5ab428 29136 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
29137 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
29138 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
29139 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
29140 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
29141
29142 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
29143
29144 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
29145 (Utility#rule): Likewise.
29146
29147 * configure.ac: Check if LZO is available.
29148
ce5bf700 291492003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
29150
29151 * include/pupa/normal.h: New file.
29152 * include/pupa/setjmp.h: Likewise.
29153 * include/pupa/i386/setjmp.h: Likewise.
29154 * normal/cmdline.c: Likewise.
29155 * normal/command.c: Likewise.
29156 * normal/main.c: Likewise.
29157 * normal/menu.c: Likewise.
29158 * normal/i386/setjmp.S: Likewise.
f19dbdb7 29159
ce5bf700 29160 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
29161 (pupa_rescue_cmd_initrd): Likewise.
29162
29163 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
29164 Likewise.
29165
29166 * kern/i386/pc/startup.S (translation_table): New variable.
29167 (translate_keycode): New function.
29168 (pupa_console_getkey): Call translate_keycode.
29169
29170 * kern/rescue.c (attempt_normal_mode): New function.
29171 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
29172 it failed, print a message.
29173
29174 * kern/mm.c (pupa_real_malloc): Print more information when a
29175 free magic is broken.
29176 (pupa_free): If the first free header is not free actually, set
29177 it to P.
29178
29179 * kern/main.c (pupa_load_normal_mode): Just load the module
29180 "normal".
29181 (pupa_main): Don't print the message
29182 "Entering into rescue mode..." here.
29183
29184 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
29185 Declared.
29186 (pupa_rescue_cmd_initrd): Likewise.
29187 (pupa_rescue_cmd_initrd): Likewise.
29188
29189 * include/pupa/symbol.h (FUNCTION): Specify the type.
29190 (VARIABLE): Likewise.
29191
29192 * include/pupa/err.h (pupa_err_t): Added
29193 PUPA_ERR_UNKNOWN_COMMAND.
29194
29195 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
29196 (pupa_dl_get_prefix): Likewise.
29197
29198 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
29199 Added _chain.mod and _linux.mod instead of chain.mod and
29200 linux.mod.
29201 (chain_mod_SOURCES): Renamed to ...
29202 (_chain_mod_SOURCES): ... this.
29203 (chain_mod_CFLAGS): Renamed to ...
29204 (_chain_mod_CFLAGS): ... this.
29205 (linux_mod_SOURCES): Renamed to ...
29206 (_linux_mod_SOURCES): ... this.
29207 (linux_mod_CFLAGS): Renamed to ...
29208 (_linux_mod_CFLAGS): ... this.
29209 (normal_mod_SOURCES): New variable.
29210 (normal_mod_CFLAGS): Likewise.
29211 (normal_mod_ASFLAGS): Likewise.
29212
292132003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
29214
29215 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
29216 possible.
29217
fe6b695a 29218 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 29219 recursively.
29220 (pupa_dl_unref): Unrefer depending modules recursively.
29221 Don't call pupa_dl_unload implicitly, because PUPA can crash if
29222 a module is unloaded before one depending on that module is
29223 unloaded.
29224 (pupa_dl_unload): Unload depending modules explicitly,
29225 if possible.
29226
c04da074 292272003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
29228
29229 * include/pupa/i386/pc/linux.h: New file.
29230 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 29231
c04da074 29232 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
29233 Removed.
29234 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
29235 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
29236 of PUPA_CHAINLOADER_BOOT_SECTOR.
29237
29238 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
29239 (pupa_linux_prot_size): New variable.
29240 (pupa_linux_tmp_addr): Likewise.
29241 (pupa_linux_real_addr): Likewise.
29242 (pupa_linux_boot_zimage): New function.
29243 (pupa_linux_boot_bzimage): Likewise.
29244
29245 * kern/i386/pc/init.c (struct mem_region): New structure.
29246 (MAX_REGIONS): New macro.
29247 (mem_regions): New variable.
29248 (num_regions): Likewise.
29249 (pupa_os_area_addr): Likewise.
29250 (pupa_os_area_size): Likewise.
29251 (pupa_lower_mem): Likewise.
29252 (pupa_upper_mem): Likewise.
29253 (add_mem_region): New function.
29254 (compact_mem_regions): Likewise.
29255 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
29256 the size of the conventional memory and that of so-called upper
29257 memory (before the first memory hole).
29258 Instead of adding each found region to free memory, use
29259 add_mem_region and add them after removing overlaps.
29260 Also, add only 1/4 of the upper memory to free memory. The rest
29261 is used for loading OS images. Maybe this is ad hoc, but this
29262 makes it much easier to relocate OS images when booting.
29263
29264 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
29265 (pupa_enter_rescue_mode): Don't register initrd and module.
29266
29267 * kern/mm.c: Include pupa/dl.h.
29268
29269 * kern/main.c: Include pupa/file.h and pupa/device.h.
29270
29271 * kern/loader.c (pupa_loader_load_module_func): Removed.
29272 (pupa_loader_load_module): Likewise.
29273
29274 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
29275 ``.o''.
29276
29277 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
29278 (pupa_linux_tmp_addr): Likewise.
29279 (pupa_linux_real_addr): Likewise.
29280 (pupa_linux_boot_zimage): Likewise.
29281 (pupa_linux_boot_bzimage): Likewise.
29282
29283 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
29284 (pupa_upper_mem): Likewise.
29285 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
29286 module is too dangerous.
29287
29288 * include/pupa/loader.h (pupa_os_area_addr): Declared.
29289 (pupa_os_area_size): Likewise.
29290 (pupa_loader_set): Remove the first argument. Loader doesn't
29291 manage modules or initrd any longer.
29292 (pupa_loader_load_module): Removed.
29293
29294 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
29295 (linux_mod_SOURCES): New variable.
29296 (linux_mod_CFLAGS): Likewise.
29297
a13f9237 292982003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
29299
29300 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
29301 the length of a blocklist correctly.
29302
29303 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
29304 Use ioctl only if the OS file is a block device.
29305 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
29306 not very useful for normal files.
29307
29308 * kern/main.c (pupa_set_root_dev): New function.
29309 (pupa_load_normal_mode): Likewise.
29310 (pupa_main): Call those above.
29311
29312 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
29313 pupa_uint16_t.
29314
29315 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
29316
a5ffe966 293172003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
29318
29319 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
29320 (setup): Configure the installed partition information and the
29321 dl prefix.
29322
29323 * loader/i386/pc/chainloader.c (my_mod): New variable.
29324 (pupa_chainloader_unload): New function.
29325 (pupa_rescue_cmd_chainloader): Refer itself.
29326 (PUPA_MOD_INIT): Save its own module in MY_MOD.
29327
29328 * kern/i386/pc/startup.S (install_partition): Removed.
29329 (version_string): Likewise.
29330 (config_file): Likewise.
29331 (pupa_install_dos_part): New variable.
29332 (pupa_install_bsd_part): Likewise.
29333 (pupa_prefix): Likewise.
29334 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
29335
29336 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
29337 and pupa/misc.h.
29338 (make_install_device): New function.
29339 (pupa_machine_init): Set the dl prefix.
29340
29341 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
29342 (buf): Renamed to ...
29343 (linebuf): ... this.
29344 (pupa_rescue_cmd_prefix): New function.
29345 (pupa_rescue_cmd_insmod): Likewise.
29346 (pupa_rescue_cmd_rmmod): Likewise.
29347 (pupa_rescue_cmd_lsmod): Likewise.
29348 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
29349 rmmod and lsmod.
29350
29351 * kern/mm.c (pupa_memalign): If failed even after invalidating
29352 disk caches, unload unneeded modules and retry.
29353
29354 * kern/misc.c (pupa_memmove): New function.
29355 (pupa_memcpy): Removed.
29356 (pupa_strcpy): New function.
29357 (pupa_itoa): Made static.
29358
29359 * kern/dl.c (pupa_dl_iterate): New function.
29360 (pupa_dl_ref): Likewise.
29361 (pupa_dl_unref): Likewise.
29362 (pupa_dl_unload): Return if succeeded or not.
29363 (pupa_dl_unload_unneeded): New function.
29364 (pupa_dl_unload_all): Likewise.
29365 (pupa_dl_init): Renamed to ...
29366 (pupa_dl_set_prefix): ... this.
29367 (pupa_dl_get_prefix): New function.
29368
29369 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
29370 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
29371 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
29372 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
29373 (pupa_install_dos_part): Declared.
29374 (pupa_install_bsd_part): Likewise.
29375 (pupa_prefix): Likewise.
29376 (pupa_boot_drive): Likewise.
29377
29378 * include/pupa/types.h: Fix a typo.
29379
29380 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
29381 pupa_memmove.
29382 (pupa_memmove): Declared.
29383 (pupa_strcpy): Likewise.
29384
29385 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
29386 pupa_mod_init takes one argument, its own module.
29387 (pupa_dl_unload_unneeded): Declared.
29388 (pupa_dl_unload_all): Likewise.
29389 (pupa_dl_ref): Likewise.
29390 (pupa_dl_unref): Likewise.
29391 (pupa_dl_iterate): Likewise.
29392 (pupa_dl_init): Renamed to ...
29393 (pupa_dl_set_prefix): ... this.
29394 (pupa_dl_get_prefix): Declared.
29395
29396 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 29397 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 29398 unloaded.
29399 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
29400 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
29401
29402 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
29403 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
29404
012d7999 294052003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
29406
29407 * util/i386/pc/pupa-setup.c (setup): Define the internal
29408 function find_first_partition_start at the top level, because GCC
29409 3.0.x cannot compile internal functions in deeper scopes
29410 correctly.
29411 (find_root_device): Use lstat instead of stat.
29412 Don't follow symbolic links.
29413 Fix the path-constructing code.
29414
29415 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
29416 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
29417 by a BLKGETSIZE ioctl first, because block devices don't fill
29418 the member st_mode of the structure stat on Linux.
29419 [__linux__] (linux_find_partition): Use a temporary buffer
29420 REAL_DEV for the working space. Copy it to DEV before returning.
29421 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
29422 buffer cache consistent.
29423 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
29424 strncmp. The previous value was merely wrong.
29425 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
29426
29427 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
29428 FAT size is 12. The previous value was merely wrong.
29429
29430 * kern/main.c (pupa_main): Don't split the starting message from
29431 newlines.
29432
29433 * kern/term.c (pupa_putchar): Put CR after LF instead of before
29434 LF, because BIOS goes crazy about character attributes in this
29435 case.
29436
1cc73a62 294372003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
29438
29439 * include/i386/pc/util/biosdisk.h: New file.
29440 * util/i386/pc/biosdisk.c: Likewise.
29441 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 29442
1cc73a62 29443 * Makefile.in (INCLUDE_DISTFILES): Added
29444 include/pupa/i386/pc/util/biosdisk.h.
29445 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
29446 directory util/i386/pc.
29447 (install-local): Added a rule for sbin_UTILITIES.
29448 (uninstall): Likewise.
29449
29450 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
29451
29452 * util/misc.c (xrealloc): New function.
29453 (pupa_malloc): Likewise.
29454 (pupa_free): Likewise.
29455 (pupa_realloc): Likewise.
29456 (pupa_stop): Likewise.
29457 (pupa_putchar): Likewise.
29458
29459 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
29460
29461 * include/pupa/util/misc.h (xrealloc): Declared.
29462
29463 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
29464 macro.
29465 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
29466 (PUPA_BOOT_MACHINE_BPB_END): ... this.
29467
29468 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
29469 [PUPA_UTIL] (pupa_fat_fini): Likewise.
29470
29471 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
29472 way should be implemented.
29473 [PUPA_UTIL] (pupa_fat_fini): Likewise.
29474
29475 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
29476 the size of NAME for safety.
29477 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
29478 0x88.
29479
29480 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
29481 (pupa_setup_SOURCES): Likewise.
29482
29483 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
29484
08b70fe8 294852002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
29486
29487 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
29488 bunch of pushl's from pusha, because this destroys the return
29489 value.
29490
62ddcc8f 294912002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
29492
29493 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
29494 This means that any missing prototypes could be fatal. Also, you
29495 must take care when writing assembly code. See the comments at
29496 the beginning of startup.S, for more details.
f19dbdb7 29497
62ddcc8f 29498 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
29499 compilation mechanism.
29500 (pupa_chainloader_real_boot): Likewise.
29501 (pupa_biosdisk_rw_int13_extensions): Likewise.
29502 (pupa_biosdisk_rw_standard): Likewise.
29503 (pupa_biosdisk_check_int13_extensions): Likewise.
29504 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
29505 (pupa_biosdisk_get_diskinfo_standard): Likewise.
29506 (pupa_get_memsize): Likewise.
29507 (pupa_get_mmap_entry): Likewise.
29508 (pupa_console_putchar): Likewise.
29509 (pupa_console_setcursor): Likewise.
29510 (pupa_getrtsecs): Use pushl instead of push.
29511
29512 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
29513 memory instead of the stack for a mmap entry, because some
29514 BIOSes may ignore the maximum size and overflow.
29515
29516 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
29517
29518 * genmk.rb (PModule#rule): Compile automatically generated
29519 sources with module-specific CFLAGS as well as other sources.
29520
9962ed99 295212002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
29522
29523 * configure.ac: Check ld.
29524 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
29525 respectively, before checking endianness and sizes.
29526
29527 * Makefile.in (LD): New variable.
f19dbdb7 29528
abdfc3c5 295292002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
29530
29531 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
29532
6a161fa9 295332002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
29534
29535 * Changelog: New file.
29536