]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Fix generation of kernel_syms.lst
[grub2.git] / ChangeLog
CommitLineData
f772623b
YB
12010-09-27 Yves Blusseau <blusseau@zetam.org>
2
3 Fix generation of kernel_syms.lst
4
5 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
6 ASM_PREFIX
7
8e57a6ca
RM
82010-09-26 Robert Millan <rmh@gnu.org>
9
10 Support degraded ZFS arrays in "grub-probe -t device" resolution.
11
12 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
13 the pool is an array of devices, iterate through it and return the
14 first device that passes a stat() test (instead of blindly returning
15 the first one).
16
f9130836
RM
172010-09-26 Robert Millan <rmh@gnu.org>
18
19 Build fixes for GNU/kFreeBSD.
20
21 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22 to programs that require ZFS conversion.
23 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
24 kernels that don't have FLOPPY_MAJOR.
25
96510faf
BC
262010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
27
28 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
29
449333eb
BC
302010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
31
32 Fix grub-emu build.
33
34 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
35 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
36 mdraid09 and mdraid1x.
37
e1fd1939
CW
382010-09-24 Colin Watson <cjwatson@ubuntu.com>
39
40 Re-enable grub-extras.
41
42 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
43 avoid confusing Automake. Run autogen only twice, once for the top
44 level and once for grub-core. Add Makefile.util.def and
45 Makefile.core.def from extra modules to the appropriate autogen
46 invocations. If Makefile.common exists in an extra module, include
47 it in both Makefile.util.am and grub-core/Makefile.core.am;
48 similarly, include any Makefile.util.common file in Makefile.util.am
49 and any Makefile.core.common file in grub-core/Makefile.core.am.
50 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
51 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
52 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
53 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
54
55 * gentpl.py (gvar_add): Turn GVARS into a set.
56 (global_variable_initializers): Sort global variables on output.
57 (vars_init): New function.
58 (first_time): Likewise.
59 (library): Ensure that non-global variable initialisations are
60 emitted before the first time we emit code for a library block.
61 Append to variables rather than setting them. Only emit
62 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
63 each conditional path.
64 (program): installdir() emits an Autogen macro, so must be passed to
65 var_add rather than gvar_add.
66 (data): Likewise.
67 (script): Likewise.
68 (rules): New function, centralising handling for different target
69 types. Set up Guile association lists for first_time and vars_init,
70 and send most output to a diversion so that variable initialisations
71 can be emitted first.
72 (module_rules): Use new rules function.
73 (kernel_rules): Likewise.
74 (image_rules): Likewise.
75 (library_rules): Likewise.
76 (program_rules): Likewise.
77 (script_rules): Likewise.
78 (data_rules): Likewise.
79
80 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
81
82 * .bzrignore: Add contrib and grub-core/contrib. Remove
83 grub-core/Makefile.gcry.am.
84
1d12cf29
YB
852010-09-24 Yves Blusseau <blusseau@zetam.org>
86
87 * grub-core/lib/LzFind.c: Add missing include.
88 * grub-core/lib/LzmaEnc.c: Likewise.
89 * grub-core/script/lexer.c: Likewise.
90 * grub-core/script/yylex.l: Likewise.
91 * util/grub-macho2img.c: Likewise.
92 * util/grub-menulst2cfg.c: Likewise.
93 * util/grub-mklayout.c: Likewise.
94 * util/grub-mkpasswd-pbkdf2.c
95 * util/grub-mkrelpath.c: Likewise.
96 * util/resolve.c: Likewise.
97
dd363028
BC
982010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
99
100 * Makefile.util.def (example_unit_test): Add
101 grub-core/gnulib/libgnu.a.
102
f5a109e2
GS
1032010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
104
105 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
106
6d0fa83c
VS
1072010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
108
109 Support xz compression on yeeloong.
110
111 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
112 * configure.ac: Check for LZMA.
113 * grub-core/Makefile.core.def (xz_decompress): New target.
114 (none_decompress): Likewise.
115 * grub-core/boot/decompressor/minilib.c: New file.
116 * grub-core/boot/decompressor/none.c: Likewise.
117 * grub-core/boot/decompressor/xz.c: Likewise.
118 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
119 * grub-core/kern/mips/cache_flush.S: Likewise.
120 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
121 * grub-core/kern/mips/startup.S: Move first stage to ...
122 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
123 nomacro.
124 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
125 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
126 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
127 Allocate statically.
128 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
129 Allocate statically or use scratch. Don't check CRC32.
130 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
131 Allocate statically. Don't check CRC32.
132 * include/grub/decompressor.h: New file.
133 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
134 Removed.
135 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
136 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
137 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
138 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
139 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
140 * util/grub-mkimage.c (grub_compression_t): New type.
141 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
142 (image_target_desc): New field default_compression.
143 (image_targets): Adjust yeeloong targets.
144 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
145 (compress_kernel): New parameter comp.
146 (generate_image): Likewise. Handle new compression case.
147 (options): New option --compression
148 (help): Likewise.
149 (main): Handle new option.
150
1b655af6
GS
1512010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
152
153 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
154
8f03f0b5
CW
1552010-09-22 Colin Watson <cjwatson@ubuntu.com>
156
157 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
158 typo in __i386__ conditional.
159
7835dfd3
VS
1602010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
161
162 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
163 include.
164
e255597e
VS
1652010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
166
6d0fa83c 167 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
168
169 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
170 new tags as supported.
171 (acpiv2_size): New function.
172 (grub_multiboot_get_mbi_size): Take new tags into account.
173 (grub_multiboot_make_mbi): Add new tags.
174 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 175
6cc14051 1762010-09-21 Aleš Nesrsta <starous@volny.cz>
177
178 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
179 Added missing configuration of USB device.
180
df7769d8
CW
1812010-09-21 Colin Watson <cjwatson@ubuntu.com>
182
183 * grub-core/normal/menu_entry.c (run): Make sure we always return
184 a value.
185
b031012d
CW
1862010-09-21 Colin Watson <cjwatson@ubuntu.com>
187
188 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
189 NumberOfPages is UINT64 according to the UEFI specification, not
190 UINTN. Fix printf format.
191
174de8f3
CW
1922010-09-21 Colin Watson <cjwatson@ubuntu.com>
193
194 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
195 `err' to grub_usb_err_t.
196 Reported and tested by: KESHAV P.R.
197
d7dbe923
CW
1982010-09-21 Colin Watson <cjwatson@ubuntu.com>
199
200 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
201 tpart non-const, so that we can assign to it. (Since this is a
202 typedef, the constness refers to the pointer rather than what it
203 points to.)
204
8d5e2af3
CW
2052010-09-21 Colin Watson <cjwatson@ubuntu.com>
206
207 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
208 $(top_srcdir)/grub-core/gnulib as well as
209 $(top_builddir)/grub-core/gnulib.
210 Reported by: KESHAV P.R.
211
5c527783
CW
2122010-09-21 Colin Watson <cjwatson@ubuntu.com>
213
214 * util/grub-install.in: Fix the bootloader ID option to be
215 consistently --bootloader-id, not --bootloader_id.
216 Reported by: KESHAV P.R.
217
d309a16e
CW
2182010-09-21 Colin Watson <cjwatson@ubuntu.com>
219
220 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
221 check hash checksum." consistently translatable.
222
b830cd16
YB
2232010-09-21 Yves Blusseau <blusseau@zetam.org>
224
225 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
226 $(top_builddir).
227
c4fe27a8
CW
2282010-09-21 Colin Watson <cjwatson@ubuntu.com>
229
230 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
231 (GRUB_MOD_INIT): Register sha1sum command.
232 (GRUB_MOD_FINI): Unregister sha1sum command.
233
a4c1d277
YB
2342010-09-21 Yves Blusseau <blusseau@zetam.org>
235
236 Keep boot and grub directory names in sync with utils scripts
237
238 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
239 * config.h.in: Add previous macros.
240 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
241 * util/grub-install.in: Use $bootdir and $grubdir variables.
242
4eff79d2
CW
2432010-09-21 Colin Watson <cjwatson@ubuntu.com>
244
245 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
246 convert partition names to disk names if the new `convert' parameter
247 is set.
248 (grub_util_biosdisk_get_grub_dev): If opening the disk device
249 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
250 disk in its own right. This can happen with Xen disk images.
251
934d7e44
YB
2522010-09-21 Yves Blusseau <blusseau@zetam.org>
253
254 * util/grub-editenv.c: Update strings to avoid warnings when generating
255 grub.pot file.
256 * util/grub-setup.c: Likewise.
934d7e44 257
df3367cc
VS
2582010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
259
260 * configure.ac: Change version to 1.99~beta0.
261
77a94e98
VS
2622010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
263
264 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
265 Add BADRAM.
266 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
267 Likewise.
268 * include/multiboot.h: Resynced with specification.
269 * include/multiboot2.h: Likewise.
270
269004c1
CW
2712010-09-21 Colin Watson <cjwatson@ubuntu.com>
272
273 Fix po directory handling.
274
275 * configure.ac: Create po/Makefile.in rather than po/Makefile.
276 * grub-core/gnulib/Makefile.am: Import gettext module.
277 * m4/gnulib-cache.m4: Likewise.
278 * m4/gnulib-comp.m4: Likewise.
279 * m4/gettext.m4: New file, from gnulib.
280 * m4/glibc2.m4: Likewise.
281 * m4/iconv.m4: Likewise.
282 * m4/intdiv0.m4: Likewise.
283 * m4/intl.m4: Likewise.
284 * m4/intldir.m4: Likewise.
285 * m4/intlmacosx.m4: Likewise.
286 * m4/intmax.m4: Likewise.
287 * m4/inttypes-pri.m4: Likewise.
288 * m4/lcmessage.m4: Likewise.
289 * m4/lib-ld.m4: Likewise.
290 * m4/lib-link.m4: Likewise.
291 * m4/lib-prefix.m4: Likewise.
292 * m4/lock.m4: Likewise.
293 * m4/nls.m4: Likewise.
294 * m4/po.m4: Likewise.
295 * m4/printf-posix.m4: Likewise.
296 * m4/progtest.m4: Likewise.
297 * m4/threadlib.m4: Likewise.
298 * m4/uintmax_t.m4: Likewise.
299 * m4/visibility.m4: Likewise.
300 * po/Makefile.am: Remove.
301 * po/Makefile.in.in: New file, from gettext.
302 ($(DOMAIN).pot-update): Support POTFILES-shell.
303 * po/Makevars: New file.
304 * po/POTFILES-shell: Rename to ...
305 * po/POTFILES-shell.in: ... this. Update.
306 * po/POTFILES: Rename to ...
307 * po/POTFILES.in: ... this. Update.
308 * po/Rules-quot: New file, from gettext.
309 * po/boldquot.sed: Likewise.
310 * po/en@boldquot.header: Likewise.
311 * po/en@quot.header: Likewise.
312 * po/insert-header.sin: Likewise.
313 * po/quot.sed: Likewise.
314 * po/remove-potcdate.sin: Likewise.
315
3e0fa5d0
VS
3162010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
317
318 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
319
ade9bd66
VS
3202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * util/grub.d/20_linux_xen.in: Use submenus.
323
fc55cc4c
VS
3242010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
325
326 Support submenus.
327
328 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
329 parameter submenu. All users updated.
330 * grub-core/normal/main.c (free_menu): Rename to ...
331 (grub_normal_free_menu): ... this. Made global.
332 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
333 if requested.
334 * grub-core/normal/menu_entry.c (screen): New field submenu.
335 (make_screen): Set submenu.
336 (run): Open new context if requested.
337 * include/grub/menu.h (grub_menu_entry): New field submenu.
338 * include/grub/normal.h (grub_normal_free_menu): New proto.
339
600cedf7
VS
3402010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
341
342 Menu entries extractor.
343
344 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
345 variants.
346 (GRUB_MOD_INIT): Register new variants.
347 (GRUB_MOD_FINI): Unregister new variants.
348 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
349 into grub_cmd_legacy_source.
350 (grub_cmd_legacy_source): Implement extractor variants.
351 (GRUB_MOD_INIT): Register new variants.
352 (GRUB_MOD_FINI): Unregister new variants.
353 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
354 as an extractor.
355 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
356 search as an extractor.
357 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
358 test as an extractor.
359 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
360 as an extractor.
361 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
362 (grub_env_new_context): New function.
363 (grub_env_context_open): Likewise.
364 (grub_env_extractor_open): Likewise.
365 (grub_env_extractor_close): Likewise.
366 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
367 grub_extractor_level.
368 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
369 * include/grub/env.h (grub_env_extractor_open): New proto.
370 (grub_env_extractor_close): Likewise.
371 * include/grub/normal.h (grub_extractor_level): New external variable.
372
7bda3a87
VS
3732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
374
375 Make cutmem accept a region specification.
376 Suggested by: Samuel Thibault
377
378 * grub-core/mmap/mmap.c (parsemem): New function.
379 (grub_cmd_cutmem): Handle new arguments.
380
2ea57f88
VS
3812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
382
383 New command cutmem.
384
385 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
386 (GRUB_MOD_INIT): Register new command.
387 (GRUB_MOD_FINI): Unregister new command.
388
74342e31
VS
3892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
390
391 Support some annoying BSD and Minix subpartitions.
392
393 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
394 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
395 Properly handle concatenation.
396 * grub-core/kern/device.c (grub_device_iterate): Likewise.
397 * grub-core/normal/completion.c (iterate_partition): Likewise.
398 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
399 contain partition. All users updated.
400 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
401 struct.
402 (grub_openbsdlabel_partition_map): Likewise.
403 (bsdlabel_partition_map_iterate): Rename to ..
404 (iterate_real): ... this. New arguments sector, freebsd and pmap.
405 (bsdlabel_partition_map_iterate): New function.
406 (netopenbsdlabel_partition_map_iterate): Likewise.
407 (netbsdlabel_partition_map_iterate): Likewise.
408 (openbsdlabel_partition_map_iterate): Likewise.
409 (GRUB_MOD_INIT): Register new partmaps.
410 (GRUB_MOD_FINI): Unregister new partmaps.
411 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
412 (grub_partition_msdos_iterate): ... this. All users updated.
413 Don't support embedding other than in a minix partition.
414 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
415 proto.
416 * include/grub/partition.h (grub_partition): New field msdostype.
417 * util/grub-install.in: Handle openbsd and netbsd types being in
418 part_bsd module.
419
1e8d555b
VS
4202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
421
422 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
423
424 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
425 * grub-core/Makefile.core.def (mdraid): Renamed to ...
426 (mdraid09): ... this.
427 (mdraid1x): New module.
428 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
429 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
430
899d8af4
VS
4312010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
434 vsprintf.
435
40901acd
CW
4362010-09-20 Colin Watson <cjwatson@ubuntu.com>
437
438 * grub-core/commands/efi/lsefimmap.c: Correct header.
439 * NEWS: Update.
440
dfe3b247
CW
4412010-09-20 Colin Watson <cjwatson@ubuntu.com>
442
443 * util/grub-editenv.c (argp_parser): Don't pass translated strings
444 as printf format strings; the translations might contain '%' which
445 could cause a crash.
446 (main): Likewise.
447 * util/grub-fstest.c (argp_parser): Likewise.
448 * util/grub-setup.c (argp_parser): Likewise.
449 (main): Likewise.
450
3286a4b4
VS
4512010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
452
453 Use argp in grub-fstest.
454
455 * util/grub-fstest.c: Don't include getopt.h.
456 Include argp.h.
457 (root): New variable.
458 (args_count): Likewise.
459 (nparm): Likewise.
460 (num_disks): Likewise.
461 (images): Likewise.
462 (cmd): Likewise.
463 (debug_str): Likewise.
464 (args): Likewise.
465 (options): Transformed to argp.
466 (usage): Removed.
467 (main): Split argument parsing into ...
468 (argp_parser): ... this. Changed to argp format.
469 (argp): New variable.
470 (main): Use argp_parse.
471
3dccbe4b
TG
4722010-09-20 Tristan Gingold <gingold@free.fr>
4732010-09-20 Robert Millan <rmh.grub@aybabtu.com>
4742010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
475
476 * grub-core/commands/efi/lsefimmap.c: New file.
477 * grub-core/Makefile.core.def (lsefimmap): New module.
478 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
479
38c259a7
VS
4802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
481
482 Pause the execution (10s max) if any errors are displayed so the user
483 has a chance to see them.
484
485 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
486 (grub_print_error): Increment grub_err_printed_errors.
487 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
488 execution if any errors were displayed.
489 (show_menu): Remove old code for pause.
490 * grub-core/normal/menu_entry.c (run): Likewise.
491 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
492 users updated.
493 (grub_normal_get_char_counter): Likewise.
494 * include/grub/err.h (grub_err_printed_errors): New external variable.
495 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
496
f218b09c
VS
4972010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
498
499 Support multiboot VBE info.
500
501 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
502 Take VBE info into account.
503 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
504 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
505 Call fill_vbe_info when appropriate.
506 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
507 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
508 as supported.
509 (grub_multiboot_get_mbi_size): Take new tags into account.
510 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
511 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
512 Call fill_vbe_tag when appropriate.
513 (grub_multiboot_make_mbi): Properly align tags.
514 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
515 function.
516 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
517 proto.
518 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
519
a9cc5438
VS
5202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
521
522 Suport manual terminal geometry specification.
523
524 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
525 Save state in grub_ofconsole_terminfo_output.
526 (grub_ofconsole_term): Use grub_terminfo_getwh.
527 (grub_ofconsole_getwh): Removed.
528 * grub-core/term/serial.c (grub_serial_getwh): Removed.
529 (grub_serial_term): Use grub_terminfo_getwh.
530 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
531 (options): New struct.
532 (OPTION_*): New enum.
533 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
534 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
535 width and height.
536 (grub_terminfo_getwh): New proto.
537 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
538
1a8fed20
VS
5392010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
540
541 Handle legacy "terminal" command.
542
543 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
544 and FLAG_TERMINAL.
545 (legacy_commands): Add terminal and title.
546 (grub_legacy_parse): Handle terminal. Simplify title handling.
547
41e9c57d
VS
5482010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
549
550 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
551 parameters overflow.
552
61c874c5
CW
5532010-09-20 Colin Watson <cjwatson@ubuntu.com>
554
555 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
556 widthspec.h.
557
558 * docs/grub.texi (Shell-like scripting): Document `!'.
559 (Network): Simplify using new i386-pc-pxe format. Mention
560 grub-mknetdir.
561
562 * NEWS: Update.
563
943682b4
CW
5642010-09-20 Colin Watson <cjwatson@ubuntu.com>
565
566 * Makefile.am (SUBDIRS): Restore "."; it's important to force
567 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
568 when needed.
569
6d3d698d
CW
5702010-09-20 Colin Watson <cjwatson@ubuntu.com>
571
572 * grub-core/commands/efi/lsefisystab.c: Correct header.
573 * grub-core/commands/efi/lssal.c: Likewise.
574 * grub-core/commands/testload.c: Likewise.
575
c982589f
CW
5762010-09-20 Colin Watson <cjwatson@ubuntu.com>
577
578 * util/grub-mkrescue.in: Add explicit root argument to --set to
579 prevent the UUID being interpreted as an argument to --set (matches
580 previous change to prepare_grub_to_access_device).
581
a63c31b6
CW
5822010-09-20 Colin Watson <cjwatson@ubuntu.com>
583
584 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
585 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
586 the verbosity of later #ifs.
587 (find_partition_start): Define this function on FreeBSD too.
588 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
589 function.
590 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
591 on FreeBSD.
592
6439b8ee
YB
5932010-09-20 Yves Blusseau <blusseau@zetam.org>
594
595 * util/grub-editenv.c: Use argp instead of getopt.
596
c5930ec8
YB
5972010-09-20 Yves Blusseau <blusseau@zetam.org>
598
599 * util/grub-setup.c: Use argp instead of getopt.
600
15c69261
YB
6012010-09-20 Yves Blusseau <blusseau@zetam.org>
602
603 Use gnulib-tool to create gnulib source files.
604
605 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
606 grub-core/gnulib directories
607 * .bzignore: Add **/.deps and autogenerated gnulib files
608 * configure.ac: Assign auxiliary directory to build-aux, add invocation
609 of gnulib macros, add grub-core/gnulib/Makefile
610 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
611 include m4 directory to aclocal.
612 * Makefile.util.def: Remove direct compilation of gnulib source files
613 and use the new grub-core/gnulib/libgnu.a.
614 * build-aux/config.rpath: move config.rpath from top directory to
615 build-aux
616 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
617 in gnulib headers
618 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
619 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
620 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
621 header.
622 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
623 string.
624
e511c9f5
YB
6252010-09-20 Yves Blusseau <blusseau@zetam.org>
626
627 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
628 grub-core/genmod.sh and grub-core/gensyminfo.sh
629
c2dede05
BC
6302010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
631
632 Add a test for echo command options.
633
634 * tests/grub_cmd_echo.in: New test.
635 * Makefile.util.def: Rules for new test.
636
c55f5018
SJ
6372010-09-20 Szymon Janc <szymon@janc.net.pl>
638
639 Remove crc.mod and move crc command to hashsum.mod.
640 Remove lib/crc.c - users updated to use gcrypt implementation.
641
642 * grub-core/commands/crc.c: Removed.
643 * grub-core/Makefile.core.def (crc): Module removed.
644 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
645 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
646 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
647 * grub-core/lib/crc.c: Removed.
648 * include/grub/lib/crc.h: Removed.
649 * Makefile.util.def (crc): Remove lib/crc.c
650 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
651 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
652 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
653 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
654 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
655 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
656
e0337366
VS
6572010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
658
659 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
660
742f9232
VS
6612010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
662
663 Split config.h for util and core.
664
665 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
666 (ADDR32): Likewise.
667 (DATA32): Likewise.
668 (BSS_START_SYMBOL): Likewise.
669 (END_SYMBOL): Likewise.
670 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
671 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
672 * config.h.in: New file.
673 * configure.ac: Use config-util.h as config define file.
674 Rename MACHINE into GRUB_MACHINE. All users updated.
675 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
676 updated.
677 (NESTED_FUNC_ATTR): Likewise.
678 Substitue new variables.
679 (COND_HAVE_ASM_USCORE): New conditional.
680 * grub-core/Makefile.am (ASM_PREFIX): New variable.
681 (kernel_syms.lst): Use ASM_PREFIX.
682 * grub-core/kern/emu/console.c: Include config-util.h.
683 * grub-core/kern/emu/misc.c: Likewise.
684 * grub-core/kern/emu/mm.c: Likewise.
685 * include/grub/emu/misc.h: Likewise.
686 * include/grub/libgcc.h: Likewise.
687
39feb0e8
VS
6882010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
689
690 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
691 constants usage.
692 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
693 Fix GRUB_TERM_KEY_* constants usage.
694 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
695
9af6dac3
VS
6962010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
699 print pointer.
700 * grub-core/bus/usb/uhci.c: Remove empty define.
701 (grub_uhci_check_transfer): Add missing cast.
702 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
703 print pointer.
704 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
705 PRIuGRUB_SIZE.
706 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
707
d6d94820
VS
7082010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/Makefile.core.def (legacycfg): Add
711 lib/i386/pc/vesa_modes_table.c on emu.
712
3572f2b6
BC
7132010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
714
715 Reduce number of temporary files generated by build system.
716
717 * grub-core/gencmdlist.sh: Removed.
718 * grub-core/genfslist.sh: Removed.
719 * grub-core/genhandlerlist.sh: Removed.
720 * grub-core/genmodsrc.sh: Removed.
721 * grub-core/genpartmaplist.sh: Removed.
722 * grub-core/genparttoollist.sh: Removed.
723 * grub-core/gentermiinallist.sh: Removed.
724 * grub-core/genvideolist.sh: Removed.
725
726 * grub-core/genmod.sh.in: New file.
727 * grub-core/gensyminfo.sh.in: New file.
728
729 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
730 * conf/Makefile.extra-dist: Update with new files.
731 * gentpl.py: Remove rules related to unnecessary temporary files.
732 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
733 and und-* files.
734 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
735 genmod.sh scripts.
736 * grub-core/bus/usb/uhci.c: Remove empty #define.
737 * grub-core/genmoddep.awk: Updated with new syminfo format.
738 * util/bash-completion.d/Makefile.am: Add config.log to
739 CLEANFILES.
740
c836b030
YB
7412010-09-19 Yves Blusseau <blusseau@zetam.org>
742
743 * Makefile.util.def: Add forgotten $(LIBINTL) library.
744
2f4e8053
BC
7452010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
746
747 * util/grub-mkconfig.in: Check the config script for syntax errors
748 before saving.
749
75831c34
CW
7502010-09-19 Colin Watson <cjwatson@ubuntu.com>
7512010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
752
753 * Makefile.util.def (grub-install): Use util/grub-install.in on all
754 platforms.
755 * util/grub-install.in: Add EFI and IEEE1275 support.
756 * util/i386/efi/grub-install.in: Removed.
757 * util/ieee1275/grub-install.in: Likewise.
758
eaf41b25
VS
7592010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
760
761 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
762 (grub_cmd_cmosclean): Likewise.
763 (GRUB_MOD_INIT): Register command cmosclean.
764 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
765 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
766
1a9130dd
CPE
7672010-09-18 Carles Pina i Estany <carles@pina.cat>
7682010-09-18 Aleš Nesrsta <starous@volny.cz>
7692010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
770
771 Add keyboard layouts support.
772
773 * Makefile.util.def (grub-mklayout): New file.
774 (grub-kbdcomp): New script.
775 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
776 Add keyboard_layouts.h.
777 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
778 commands/boot.c on yeeloong.
779 (keylayouts): New module.
780 * grub-core/bus/usb/ohci.c
781 * grub-core/bus/usb/uhci.c
782 * grub-core/bus/usb/usbhub.c (rescan): New variable.
783 (grub_usb_add_hub): Poll interrupt pipe for device handling.
784 (attach_root_port): Likewise.
785 (poll_nonroot_hub): Likewise.
786 (grub_usb_poll_devices): Likewise.
787 (detach_device): Close transfer.
788 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
789 function.
790 (grub_usb_bulk_setup_readwrite): Likewise.
791 (grub_usb_bulk_finish_readwrite): Likewise.
792 * grub-core/commands/keylayouts.c: New file.
793 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
794 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
795 aliases.
796 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
797 support scancode 2.
798 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
799 * include/grub/keyboard_layouts.h: New file.
800 * util/grub-mklayout.c: New file.
801 * util/grub-kbdcomp.in: Likewise.
802
a1d84a5e
VS
8032010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
804
805 Unify memory types.
806
807 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
808 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
809 types.
810 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
811 (grub_upper_mem): Likewise.
812 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
813 * include/grub/memory.h (grub_memory_type_t): New enum.
814 All users updated.
815
9696382e
VS
8162010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
817
818 * grub-core/Makefile.core.def (lsapm): New module.
819 * grub-core/commands/i386/pc/lsapm.c: New file.
820 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
821 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
822 Likewise.
823 * include/grub/i386/pc/apm.h: New file.
824 * include/multiboot.h (multiboot_apm_info): New struct.
825
8262010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
827
828 GRUB-legacy configuration file support.
829
830 * Makefile.util.def (grub-menulst2cfg): New util.
831 * docs/man/grub-menulst2cfg.h2m: New file.
832 * grub-core/Makefile.core.def (legacycfg): New module.
833 * grub-core/commands/legacycfg.c: New file.
834 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
835 (grub_normal_add_menu_entry): ... this.
836 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
837 (grub_normal_set_password): ...this.
838 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
839 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
840 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
841 * grub-core/lib/legacy_parse.c: New file.
842 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
843 * include/grub/i386/pc/vesa_modes_table.h: New file.
844 * include/grub/legacy_parse.h: Likewise.
845 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
846 * util/grub-menulst2cfg.c: New file.
847
bf8d1338
CW
8482010-09-17 Colin Watson <cjwatson@ubuntu.com>
849
850 * grub-core/kern/emu/hostdisk.c
851 (convert_system_partition_to_system_disk): Initialise node.
852
9c0bad2e
CW
8532010-09-17 Colin Watson <cjwatson@ubuntu.com>
854
855 * grub-core/kern/emu/hostdisk.c
856 (convert_system_partition_to_system_disk): Fix devmapper memory pool
857 leak.
858 Reported and based on patch by: Modestas Vainius.
859
a939d135
CW
8602010-09-17 Colin Watson <cjwatson@ubuntu.com>
861
862 Fix DM-RAID probing with recent versions of device-mapper udev
863 rules.
864
865 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
866 canonicalise device paths under /dev/mapper/.
867 (convert_system_partition_to_system_disk): Compare the
868 uncanonicalised path to /dev/mapper/ rather than the canonicalised
869 path, since device nodes under /dev/mapper/ are often symlinks.
870
0f7ee3c9
YB
8712010-09-17 Yves Blusseau <blusseau@zetam.org>
872
873 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
874
10854d0d
YB
8752010-09-16 Yves Blusseau <blusseau@zetam.org>
876
877 * configure.ac: Avoid some annoying error messages if freetype-config
878 program is not found.
879
108538d8
CW
8802010-09-16 Colin Watson <cjwatson@ubuntu.com>
881
882 Support RAID on virtio devices, and others.
883
884 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
885 Rename to ...
886 [__MINGW32__] (grub_find_device): ... this.
887 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
888 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
889 reasonable default if dir is NULL.
890 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
891 ...
892 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
893 (grub_guess_root_device): Update callers.
894 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
895
896 * util/raid.c (grub_util_getdiskname): Remove.
897 (grub_util_raid_getmembers): Use grub_find_device rather than
898 grub_util_getdiskname.
899
e5bfc130
CW
9002010-09-16 Colin Watson <cjwatson@ubuntu.com>
901
902 * docs/grub.texi (serial): Remove obsolete comment about GRUB
903 needing to be compiled with serial support.
904 (ls): Indicate that multiple files are accepted.
905 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
906 indicate that multiple files are accepted.
907
be458ae2
CW
9082010-09-16 Colin Watson <cjwatson@ubuntu.com>
909
910 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
911 libgrub_a_init.c, and util/bash-completion.d/grub.
912
cb731b5e
VS
9132010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * util/grub-setup.c (setup): Fix incorrect container semantics.
916
35139e8a
VS
9172010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
920 misusage.
921 Reported by: J. Nick Terry
922
e50fca4a
VS
9232010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
924
925 Move embedding routines to partmap sources files.
926
927 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
928 [GRUB_UTIL]: New variable.
929 (gpt_partition_map_iterate): Set part.parent.
930 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
931 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
932 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
933 New function.
934 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
935 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
936 (grub_partition_map) [GRUB_UTIL]: New field embed.
937 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
938 (setup): Use ->embed.
939
f00478b7
VS
9402010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
943 function.
944 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
945 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
946
2b94e3ff
YB
9472010-09-15 Yves Blusseau <blusseau@zetam.org>
948
949 Add function to get completions from usage.
950
951 * util/bash-completion.d/grub-completion.bash.in: Add function to get
952 completions from usage. Use LC_ALL=C to get options properly.
953
2e04a006
VS
9542010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/gnulib/basename-lgpl.c: Imported.
957 * grub-core/gnulib/basename.c: Likewise.
958 * grub-core/gnulib/dirname-lgpl.c: Likewise.
959 * grub-core/gnulib/dirname.c: Likewise.
960 * grub-core/gnulib/dirname.h: Likewise.
961 * grub-core/gnulib/stripslash.c: Likewise.
962
5dcdf93a
VS
9632010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * grub-core/gnulib/error.c: Resynced.
966 * grub-core/gnulib/getopt.c: Likewise.
967 * grub-core/gnulib/getopt_int.h: Likewise.
968 * grub-core/gnulib/regex.h: Likewise.
969 * grub-core/gnulib/regex_internal.c: Likewise.
970 * grub-core/gnulib/regex_internal.h: Likewise.
971
014f47b7
SJ
9722010-09-15 Szymon Janc <szymon@janc.net.pl>
973
974 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
975 CRC calculations and validity checks.
976 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
977 calculations.
978
dd521a4a
SJ
9792010-09-15 Szymon Janc <szymon@janc.net.pl>
980
981 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
982
79c4eeb9
VS
9832010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
984
985 Fix incorrect echo options handling.
986 Reported by: Yves Blusseau.
987
988 * include/grub/command.h (grub_command_flags_t): New flags
989 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
990 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
991 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
992
ed80f7d5
VS
9932010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
996 users updated.
997 (GRUB_COMMAND_FLAG_MENU): Likewise.
998 (GRUB_COMMAND_FLAG_BOTH): Likewise.
999 (GRUB_COMMAND_FLAG_TITLE): Removed.
1000 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
1001 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
1002 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
1003 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
1004 (grub_command_flags_t): New enum. All users updated.
1005
5fe7620a
SG
10062010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
1007
1008 Fix solaris compilation.
1009
1010 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
1011 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
1012 (grub-emu-list): Likewise.
1013
545b752f
VS
10142010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1015
1016 Remove deprecated root command.
1017
1018 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
1019 updated.
1020
6c1a338c
VS
10212010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * util/i386/pc/grub-setup.c: Merge this ...
1024 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
1025 * util/grub-setup.c: ... into this.
1026 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
1027 New struct.
1028
10292010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
1032 possible.
1033
d2ea4551
VS
10342010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1035
1036 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
1037 allocate p.
1038
3c3b5040
VS
10392010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
1042 explicit root argument to set to prevent UUID to be interpreted as
1043 argument to set.
1044
b71c3fae
VS
10452010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
1048
275433e6
VS
10492010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 Don't export grub_gate_a20.
1052
1053 * grub-core/kern/i386/pc/init.c: Remove leftovers.
1054 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
1055 to ...
1056 (grub_gate_a20): ... this. All users updated.
1057 * include/grub/i386/pc/init.h: Removed. All users updated.
1058
a5dbb1f1
VS
10592010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 Create euro.pf2 which supports most European languages.
1062
1063 * Makefile.am (grubdata_DATA): Add euro.pf2.
1064 (euro.pf2): New target.
1065 (CLEANFILES): Add euro.pf2.
1066
62a747cb
VS
10672010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * configure.ac: Disable emu-usb by default to prevent inadvertent
1070 device takeover.
1071
608e43b1
VS
10722010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 Disable usbserial on grub-emu since our libusb code isn't good enough
1075 yet.
1076
1077 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
1078 (usbserial_pl2303): Likewise.
1079 (usbserial_ftdi): Likewise.
1080
94564f81
VS
10812010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 * include/grub/disk.h (grub_disk): Remove has_partitions.
1084 All users updated.
1085 * disk/loopback.c (grub_loopback): Remove has_partitions.
1086 All users updated.
1087 (options): Remove partitions. All users updated.
1088 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
1089 * util/i386/pc/grub-setup.c (setup): copy partition table only when
1090 actual partition table is found.
1091
3352800b
VS
10922010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 Remove readability checks (too many false negatives).
1095
1096 * util/grub-install.in: Remove readability checks.
1097 * util/grub-mkconfig.in: Likewise.
1098 * util/grub.d/10_hurd.in: Likewise.
1099 * util/grub.d/10_kfreebsd.in: Likewise.
1100 * util/grub.d/10_linux.in: Likewise.
1101 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
1102 way.
1103
2419f17a
VS
11042010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 Enable acpi shutdown on all ACPI platforms.
1107
1108 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
1109 on coreboo, multiboot and EFI.
1110 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
1111 (grub_acpi_halt): Likewise.
1112 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
1113 (grub_cmd_halt): Don't call grub_acpi_halt directly.
1114 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
1115 * grub-core/lib/i386/halt.c (grub_halt)
1116 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
1117
0575c7c3
VS
11182010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
1121 context.
1122
54ac3cd1
VS
11232010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/video/efi_gop.c: Fix over-80-chars line.
1126 * grub-core/video/efi_uga.c: Likewise.
1127
b2a30ac5
VS
11282010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 Filter devaliases and never open same device twice.
1131
1132 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
1133 (last_ihandle): Likewise.
1134 (ofdisk_hash_ent): New member shortest.
1135 (ofdisk_hash_add): Add canonical path too.
1136 (scan): New function.
1137 (grub_ofdisk_iterate): Iterate over hashed entries.
1138 (compute_dev_path): Don't add :0.
1139 (grub_ofdisk_open): Don't really open the disk.
1140 (grub_ofdisk_close): Avoid closing unrelated disk.
1141 (grub_ofdisk_read): Implement reopen logic.
1142 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
1143 New function.
1144 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
1145 New proto.
1146
fb53b340
VS
11472010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 Fix sparc64.
1150
1151 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
1152 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
1153 right address. Add sparc64_ieee1275_ldflags.
1154 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
1155 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
1156 to grub_host_to_target_addr
1157 (load_image): Likewise.
1158
f452b040
VS
11592010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * grub-core/normal/completion.c (complete_file): Handle device
1162 containing slash.
1163 Fix based on patch by Doug Nazar.
1164
9b5b2541
VS
11652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 grub-mknetdir script.
1168
1169 * Makefile.util.def (grub-mknetdir): New module.
1170 * tests/util/grub-shell.in: Support boot=net
1171 * util/grub-mknetdir.in: New file.
1172
9d2be652
VS
11732010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 videoinfo on non-vbe.
1176
1177 * grub-core/Makefile.core.def (vbeinfo): Removed.
1178 (vbetest): Removed.
1179 (videoinfo): New module.
1180 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
1181 * grub-core/commands/i386/pc/vbetest.c: Removed.
1182 * grub-core/commands/videoinfo.c: New file.
1183 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
1184 specification.
1185 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
1186 as vbetest.
1187 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
1188 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
1189 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
1190 mode_number. New parameter mode. All users updated.
1191 (grub_video_gop_iterate): New function.
1192 (grub_video_efi_gop): New member iterate.
1193 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
1194 (grub_vbe_set_video_mode): Remove setting useless fields.
1195 (vbe2videoinfo): New function.
1196 (grub_video_vbe_iterate): Likewise.
1197 (grub_video_vbe_setup): Use vbe2videoinfo.
1198 (grub_video_vbe_print_adapter_specific_info): New function.
1199 (grub_video_vbe_adapter): New fields iterate and
1200 print_adapter_specific_info.
1201 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
1202 All users updated.
1203 (grub_video_mode_info): New field mode_number.
1204 (grub_video_adapter): New fields iterate and
1205 print_adapter_specific_info.
1206
179503f5
TG
12072010-09-13 Tristan Gingold <gingold@free.fr>
12082010-09-13 Robert Millan <rmh.grub@aybabtu.com>
12092010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 * grub-core/commands/efi/lsefisystab.c: New file.
1212 * grub-core/commands/efi/lssal.c: Likewise.
1213 * grub-core/Makefile.core.def (lsacpi): New module.
1214 (lsefisystab): Likewise.
1215 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
1216 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
1217 (grub_efi_sal_system_table): New struct.
1218 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
1219 (grub_efi_sal_system_table_memory_descriptor): Likewise.
1220 (grub_efi_sal_system_table_platform_features): Likewise.
1221 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
1222 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
1223 (grub_efi_sal_system_table_ap_wakeup): Likewise.
1224 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
1225
cf9827de
VS
12262010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 Support explicit user claim that a device is BIOS-visible.
1229
1230 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
1231 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
1232 * grub-core/kern/emu/hostdisk.c
1233 (convert_system_partition_to_system_disk): Support mdX.
1234 (find_system_device): New parameter add. All users updated.
1235 (grub_util_biosdisk_is_present): New function.
1236 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
1237 proto.
1238
53f0eb1f
VS
12392010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1240
1241 Search hints support.
1242
1243 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
1244 All users updated.
1245
b23ffd70
YB
12462010-09-13 Yves Blusseau <blusseau@zetam.org>
1247
1248 Bash completion script for util commands
1249
1250 * Makefile.am: Add util/bash-completion.d directory
1251 * configure.ac: Likewise.
1252 * util/bash-completion.d/Makefile.am: New file.
1253 * util/bash-completion.d/grub-completion.bash.in: Likewise.
1254
d547dc28
VS
12552010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
1258 (print_backlog): set backlog_ucs4 and backlog_glyphs.
1259 Reported by: Yves Blusseau.
1260
2fc8ccb9
VS
12612010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
1264 partition size and offset.
1265
d8a84076
VS
12662010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1267
1268 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
1269
84fb3b3d
VS
12702010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1271
1272 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
1273
768ec2e2
VS
12742010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1275
1276 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
1277 (grub_xvasprintf): Likewise.
1278
4870900f
VS
12792010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
1282
faca6bec
VS
12832010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
1286 args ending with NULL.
1287
12882010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
1289
1290 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
1291 pointer.
1292
3c70f225
SJ
12932010-09-11 Szymon Janc <szymon@janc.net.pl>
1294
1295 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
1296
4df7996d
VS
12972010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 Shutdown using ACPI.
1300
1301 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
1302 * grub-core/commands/acpihalt.c: New file.
1303 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
1304 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
1305 (grub_acpi_halt): New proto.
1306 (GRUB_ACPI_SLP_EN): New const.
1307 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
1308 (GRUB_ACPI_OPCODE_*): New enum.
1309 (GRUB_ACPI_EXTOPCODE_*): Likewise.
1310
126b4c32
TG
13112010-09-11 Tristan Gingold <gingold@free.fr>
13122010-09-11 Robert Millan <rmh.grub@aybabtu.com>
13132010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * commands/lsacpi.c: New file.
1316 * grub-core/Makefile.core.def (lsacpi): New module.
1317 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
1318 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
1319 (grub_acpi_madt_entry_header): New struct.
1320 (grub_acpi_madt): Likewise.
1321 (grub_acpi_madt_entry_interrupt_override): Likewise.
1322 (grub_acpi_madt_entry_sapic): Likewise.
1323 (grub_acpi_madt_entry_lsapic): Likewise.
1324 (grub_acpi_madt_entry_platform_int_source): Likewise.
1325 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
1326 (PRIuGRUB_UINT32_T): Likewise.
1327 (PRIxGRUB_UINT64_T): Likewise.
1328
1aa4fe88
VS
13292010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 Implement loading palette on ieee1275_fb.
1332
1333 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
1334 (have_setcolors): Likewise.
1335 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
1336 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
1337 (grub_video_ieee1275_set_palette): Implement.
1338
25761e13
VS
13392010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
13402010-09-11 Colin Watson <cjwatson@ubuntu.com>
1341
1342 * util/grub-install.in (grub_partition): New variable.
1343 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
1344 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
1345 Fixes a bug reported by Yves Blusseau.
1346
050abaea
VS
13472010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 Fix emu on mipsel.
1350
1351 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
1352 =grub_cpu_flush_cache on all mips and not only yeeloong.
1353 * configure.ac (COND_mips): New conditional.
1354 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
1355 platforms.
1356 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
1357 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
1358 [GRUB_LINKER_HAVE_INIT]: New function.
1359 (grub_emu_post_init): Likewise.
1360 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
1361 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
1362 * include/grub/cache.h (_mips): Include mips/cache.h.
1363 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
1364 LVM and RAID prototypes.
1365 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
1366 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
1367 function.
1368
5ed7d816
CW
13692010-09-10 Colin Watson <cjwatson@ubuntu.com>
1370
1371 * util/grub-install.in: Don't try to verify core.img until after
1372 running grub-mkimage to create it.
1373
90367e04
RM
13742010-09-10 Robert Millan <rmh@gnu.org>
1375
1376 * util/grub.d/10_hurd.in: Add misc readability checks.
1377 * util/grub.d/10_kfreebsd.in: Likewise.
1378 * util/grub.d/10_linux.in: Likewise.
1379
c452fa66
CW
13802010-09-10 Colin Watson <cjwatson@ubuntu.com>
1381
1382 * util/grub-install.in: ${imgext} won't be defined here until the
1383 install branch is merged. For the meantime, only verify core.img on
1384 i386-pc and sparc64-ieee1275 platforms.
1385
c38fe9f4
RM
13862010-09-10 Robert Millan <rmh@gnu.org>
1387
1388 Solaris support in grub_find_zpool_from_dir(). Thanks
1389 Seth Goldberg for referring to getextmntent() facility.
1390
1391 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
1392 `sys/mkdev.h'.
1393 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
1394 `<sys/mnttab.h>'.
1395 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
1396 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
1397 method for finding zpool name.
1398
905f7773
CW
13992010-09-10 Colin Watson <cjwatson@ubuntu.com>
1400
1401 grub-fstest needs the host and hostfs modules while other utilities
1402 actively require those modules to be absent, so grub-fstest needs
1403 its own initialisation and finalisation code.
1404
1405 * Makefile.am (grub_fstest.pp): New target.
1406 (grub_fstest_init.lst): Likewise.
1407 (grub_fstest_init.c): Likewise.
1408 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
1409
fb90b546
RM
14102010-09-10 Robert Millan <rmh@gnu.org>
1411
1412 * configure.ac: Check for `struct statfs.f_fstypename' and
1413 `struct statfs.f_mntfromname'.
1414
1415 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
1416 kFreeBSD-specific code.
1417
66d4bea5
RM
14182010-09-10 Robert Millan <rmh@gnu.org>
1419
1420 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
1421 on ZFS. Now non-main filesystems are supported as / too.
1422
b6a690ee
CW
14232010-09-09 Colin Watson <cjwatson@ubuntu.com>
1424
1425 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
1426 and grub-core/disk/host.c to ...
1427 (grub-fstest): ... here. Having the host disk implementation
1428 present confuses grub-probe and other utility programs.
1429
1430 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
1431 when writing to a file, not when writing to stdout.
1432
8901b00c 14332010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
1434
1435 * tests/partmap_test.in: New test for partitions.
1436 * Makefile.util.def: Rules for new test.
1437
7bf45fdd
RM
14382010-09-09 Robert Millan <rmh@gnu.org>
1439
1440 * util/grub-probe.c (probe): Fix a pair of unhandled error
1441 conditions.
1442
4dfbc574
RM
14432010-09-09 Robert Millan <rmh@gnu.org>
1444
1445 Basic Btrfs support (detection and UUID).
1446
1447 * grub-core/fs/btrfs.c: New file.
1448 * Makefile.util.def (library): Register btrfs.c.
1449 * grub-core/Makefile.core.def: Likewise.
1450
6b8e78ae
RM
14512010-09-08 Robert Millan <rmh@gnu.org>
1452
1453 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
1454 with (optional) parameters to specify device and relative path.
1455 * util/grub-install.in: Use is_path_readable_by_grub() to
1456 verify readability of a few critical files.
1457 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
1458 verify readability of grub.cfg.new.
1459
27f21a8b
VS
14602010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 Split minix.mod into minix.mod and minix2.mod.
1463
1464 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
1465 * grub-core/Makefile.core.def (minix2): New module.
1466 * grub-core/fs/minix.c: Use definitions instead of runtime version
1467 checking.
1468 * grub-core/fs/minix2.c: New file.
1469
c0e53ea5
YB
14702010-09-08 Yves Blusseau <blusseau@zetam.org>
1471
1472 Add new --boot-directory option to replace --root-directory
1473
1474 * util/grub-install.in: Add new --boot-directory option
1475 * util/grub-reboot.in: Likewise.
1476 * util/grub-set-default.in: Likewise.
1477
b9fe6ea2
YB
14782010-09-08 Yves Blusseau <blusseau@zetam.org>
1479
1480 * util/grub-mkconfig.in: Use new variable.
1481
d87aedff
YB
14822010-09-08 Yves Blusseau <blusseau@zetam.org>
1483
1484 * configure.ac: Define some useful variables.
1485
e55e8495
VS
14862010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1489 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
1490 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
1491 Use terminfo and don't use cursor-on/cursor-off unless it's known
1492 to work.
1493 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
1494 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
1495
6fa6d675
CW
14962010-09-08 Colin Watson <cjwatson@ubuntu.com>
1497
1498 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
1499 starts with "(,", fill the drive containing the loaded image in
1500 between those two characters, but expect that a full partition
1501 specification including partition map names will follow.
1502
92f2aef0
RM
15032010-09-08 Robert Millan <rmh@gnu.org>
1504
1505 * configure.ac: Remove `--enable-grub-fstest' option.
1506 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
1507
1508 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
1509 `grub-fstest' instead of `grub-probe' for readability verification.
1510 * util/grub-probe.c (probe): Remove readability verification kludge.
1511
99fd620d
RM
15122010-09-08 Robert Millan <rmh@gnu.org>
1513
1514 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
1515 initializing `GRUB_FS'.
1516
058e30ac 15172010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
1518
1519 Not command (!) support to GRUB script.
1520
1521 * tests/grub_script_not.in: New test.
1522 * Makefile.util.def: Rules for new test.
1523
1524 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
1525 ! command as a special case.
1526 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
1527
b61d05ed 15282010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
1529
058e30ac 1530 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
1531 grub_free.
b61d05ed 1532
4d69c786 15332010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
1534
1535 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
1536
aa3119c4 15372010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
1538
1539 * docs/grub.texi (Shell-like scripting): Documentation for break,
1540 continue, shift and return commands.
1541
db0f7e3d
VS
15422010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 Rename CD-ROM to cd on BIOS.
1545
1546 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
1547 "cd".
1548 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
1549
88b87c93
VS
15502010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
1553 * util/grub-probe.c (main): Likewise.
1554 * util/i386/pc/grub-setup.c (main): Likewise.
1555 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1556 Reported and debugged by: alexxy
1557
294f324d
VS
15582010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
1561 diagnostic info.
1562
d7ee3441
JS
15632010-09-05 Jo Shields <directhex@apebox.org>
1564
1565 * util/grub.d/30_os-prober.in: Add missing classes.
1566
d7e06c1f
VS
15672010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1568
1569 * docs/grub.texi (Theme file format): Document new position format.
1570
fc157e53
VS
15712010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
1574 a table. Use @code instead of @verbatim.
1575
506e9a1c
CB
15762010-09-05 Colin D Bennett <colin@gibibit.com>
1577
1578 Gfxmenu documentation.
1579
1580 * docs/grub.texi (Theme file format): New chapter.
1581
f0aff67c
SJ
15822010-09-05 Szymon Janc <szymon@janc.net.pl>
1583
1584 * grub-core/Makefile.core.def (xzio): New module.
1585 * grub-core/io/xzio.c: New file.
1586 * grub-core/lib/xzembed/xz.h: New file (from xembed).
1587 * grub-core/lib/xzembed/xz_config.h: Likewise.
1588 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
1589 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
1590 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
1591 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
1592 * grub-core/lib/xzembed/xz_private.h: Likewise.
1593 * grub-core/lib/xzembed/xz_stream.h: Likewise.
1594 * include/grub/file.h (grub_file_filter_id): New compression filter
1595 GRUB_FILE_FILTER_XZIO.
1596
82a85062
VS
15972010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
1600 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
1601 size.
1602
3579415d
VS
16032010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1604
1605 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
1606 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
1607
5124ae6d
VS
16082010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 Uncompressed checksum support.
1611
1612 * grub-core/commands/hashsum.c (options): Add option --uncompress.
1613 (check_list): New parameter uncompress.
1614 (grub_cmd_hashsum): Handle --uncompress.
1615
9aadb3d1
VS
16162010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 Reintroduce testload.
1619
1620 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
1621 from here ...
1622 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
1623 (GRUB_MOD_INIT): New function.
1624 (GRUB_MOD_FINI): Likewise.
1625 * grub-core/Makefile.core.def (testload): New module.
1626
a17792c3
SJ
16272010-09-05 Szymon Janc <szymon@janc.net.pl>
1628
1629 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
1630 (uint8_t): New type.
1631 (uint16_t): Likewise.
1632 (uint32_t): Likewise.
1633 (uint64_t): Likewise.
1634
b81e40a3
SJ
16352010-09-05 Szymon Janc <szymon@janc.net.pl>
1636
1637 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
1638
fc2ef117
VS
16392010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
1642 Made static.
1643 (grub_gzfile_open): Removed. All users updated.
1644 (GRUB_MOD_INIT): New function.
1645 (GRUB_MOD_FINI): Likewise.
1646 * grub-core/kern/file.c (grub_file_filters_all): New variable.
1647 (grub_file_filters_enabled): Likewise.
1648 (grub_file_open): Handle filters.
1649 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
1650 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
1651 * include/grub/file.h (grub_file_filter_id_t): New type.
1652 (grub_file_filter_t): Likewise.
1653 (grub_file_filters_all): New extern variable.
1654 (grub_file_filters_enabled): Likewise.
1655 (grub_file_filter_register): New inline function.
1656 (grub_file_filter_unregister): Likewise.
1657 (grub_file_filter_disable): Likewise.
1658 (grub_file_filter_disable_compression): Likewise.
1659 * include/grub/gzio.h: Removed.
1660
35ee15e0
BC
16612010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1662
1663 Filename expansion support for wildcards in GRUB script.
1664
1665 * tests/grub_script_expansion.in: New test.
1666 * Makefile.util.def: Rule for new test.
1667
1668 * grub-core/commands/wildcard.c: New file, implements filename
1669 expansion support for GRUB script.
1670 * grub-core/Makefile.core.def: Rule update for regexp.mod.
1671 * grub-core/script/argv.c: Cosmetic changes.
1672 * grub-core/script/execute.c (grub_script_arglist_to_argv):
1673 Refactored to perform wildcard expansion on arguments.
1674 * include/grub/script_sh.h (grub_script_wildcard_translator): New
1675 struct.
1676
1677 * tests/util/grub-shell.in: Fix quoting for read input.
1678
5f0c4aca
BC
16792010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1680
1681 Support for updating environment variables with matched substrings
1682 of regexp.
1683
1684 * tests/grub_cmd_regexp.in: New test.
1685 * Makefile.util.def: Rule for new test.
1686
1687 * grub-core/commands/regexp.c: New option -s to update environment
1688 variables with regexp matches.
1689
3759a35f
SJ
16902010-09-04 Szymon Janc <szymon@janc.net.pl>
1691
1692 * include/grub/file.h (grub_file): New member not_easly_seekable.
1693 (grub_file_seekable): New inline function.
1694 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
1695 easily seekable.
1696 (grub_gzio_open): Set not_easly_seekable.
1697 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
1698 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
1699
ed8c6dec
BC
17002010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1701
1702 Support for options to appear multiple times on cmdline.
1703
1704 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
1705 * grub-core/commands/extcmd.c: Support for repeatable option.
1706 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
1707 repeatable option support.
1708
1709 Refactor menuentry into a regular command.
1710
1711 * grub-core/commands/menuentry.c: New file, menuentry command
1712 implementation.
1713 * grub-core/Makefile.core.def: Rule update for normal.mod.
1714 * grub-core/normal/main.c: Moved menuentry creation to
1715 grub-core/commands/menuentry.c.
1716 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
1717 (grub_menu_execute_entry_real): Removed.
1718 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
1719 function.
1720 (grub_script_execute_menuentry): Removed.
1721 * grub-core/script/parser.y (menuentry): Removed.
1722 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
1723 * grub-core/script/yylex.l (menuentry): Removed.
1724 * include/grub/menu.h (grub_menu_init): New prototype.
1725 (grub_menu_fini): New prototype.
1726 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
1727 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
1728 (grub_script_execute_sourcecode): New prototype.
1729
dacd0cf0
BC
17302010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1731
1732 "return" command for GRUB script functions.
1733
1734 * tests/grub_script_return.in: New test.
1735 * Makefile.util.def: Rules for new test.
1736
1737 * grub-core/script/execute.c (grub_script_return): New function.
1738 * grub-core/script/main.c: Register/unregister return commaond.
1739 * include/grub/script_sh.h (grub_script_return): New prototype.
1740
52e72f9d
BC
17412010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1742
1743 "setparams" command to update positional parameters.
1744
1745 * tests/grub_script_setparams.in: New test.
1746 * Makefile.util.def: Rules for new test.
1747
1748 * grub-core/script/argv.c (grub_script_argv_make): New function.
1749 * grub-core/script/execute.c (replace_scope): New function.
1750 (grub_script_setparams): New function.
1751 * grub-core/script/lexer.c: Remove unused variables.
1752 * grub-core/script/main.c: Register/unregister setparams command.
1753 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
1754 (grub_script_setparams): New prototype.
1755
25b60c91
BC
17562010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1757
1758 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
1759 grub_free order.
1760
37e7bf68
BC
17612010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1762
1763 Support for passing block of commands as an argument to extcmds.
1764
1765 * Makefile.util.def: Rules for new test.
1766 * tests/grub_script_blockarg.in: New test.
1767 * grub-core/tests/test_blockarg.c: New file, block argument
1768 command used in the test.
1769
1770 * include/grub/extcmd.h (grub_extcmd_context): New struct.
1771 (grub_register_extcmd_prio): New function prototype.
1772 (grub_extcmd_dispatcher): New function prototype.
1773 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
1774 type.
1775 * include/grub/script_sh.h (struct grub_script): New members
1776 `children', `next_siblings' and `refcnt' for block arguments and
1777 reference counting.
1778 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
1779 (grub_script_arg): New member `script' for block argument.
1780 (grub_script_argv): New member `script' for block argument.
1781 (grub_parser_param): New member `scripts' for block argument.
1782 (grub_script_mem_free): New extern function prototype.
1783 (grub_script_ref): New function prototype.
1784 (grub_script_unref): New function prototype.
1785
1786 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
1787 extcmd form to support block arguments.
1788 * grub-core/script/argv.c: Block arguments support.
1789 * grub-core/script/execute.c: Likewise.
1790 * grub-core/script/lexer.c: Likewise.
1791 * grub-core/script/main.c: Likewise.
1792 * grub-core/script/script.c: Likewise.
1793 * grub-core/script/parser.y: Likewise. New `block' and `block0'
1794 non-terminals.
1795
1796 * grub-core/commands/acpi.c: Update extcmd implementations with
1797 grub_extcmd_context_t.
1798 * grub-core/commands/cat.c: Likewise.
1799 * grub-core/commands/echo.c: Likewise.
1800 * grub-core/commands/extcmd.c: Likewise.
1801 * grub-core/commands/hashsum.c: Likewise.
1802 * grub-core/commands/hdparm.c: Likewise.
1803 * grub-core/commands/help.c: Likewise.
1804 * grub-core/commands/hexdump.c: Likewise.
1805 * grub-core/commands/i386/cpuid.c: Likewise.
1806 * grub-core/commands/i386/pc/drivemap.c: Likewise.
1807 * grub-core/commands/i386/pc/halt.c: Likewise.
1808 * grub-core/commands/i386/pc/sendkey.c: Likewise.
1809 * grub-core/commands/iorw.c: Likewise.
1810 * grub-core/commands/keystatus.c: Likewise.
1811 * grub-core/commands/loadenv.c: Likewise.
1812 * grub-core/commands/ls.c: Likewise.
1813 * grub-core/commands/lspci.c: Likewise.
1814 * grub-core/commands/memrw.c: Likewise.
1815 * grub-core/commands/probe.c: Likewise.
1816 * grub-core/commands/search_wrap.c: Likewise.
1817 * grub-core/commands/setpci.c: Likewise.
1818 * grub-core/commands/sleep.c: Likewise.
1819 * grub-core/disk/loopback.c: Likewise.
1820 * grub-core/hello/hello.c: Likewise.
1821 * grub-core/loader/i386/bsd.c: Likewise.
1822 * grub-core/loader/xnu.c: Likewise.
1823 * grub-core/term/gfxterm.c: Likewise.
1824 * grub-core/term/serial.c: Likewise.
1825 * grub-core/tests/lib/functional_test.c: Likewise.
1826
888d1500
BC
18272010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
1828
1829 Multi-line quoted strings support.
1830
1831 * grub-core/script/lexer.c (append_newline): Removed.
1832 (grub_script_lexer_yywrap): Refactored.
1833 (grub_script_lexer_init): Refactored.
1834 * grub-core/script/yylex.l (yywrap): New function.
1835 (grub_lexer_resplit): New function.
1836 (grub_lexer_unput): New function.
1837 * include/grub/script_sh.h (grub_lexer_param): New members, unput
1838 and resplit.
1839 * tests/grub_script_echo1.in: Added few more testcases.
1840
dda060dd
VS
18412010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
1842
1843 * grub-core/kern/misc.c: Don't add abort alias in utils.
1844 Reported by: echoline.
1845
6556eba9
BC
18462010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
1847
1848 Add missing files into "make dist" tarball for other platforms.
1849
1850 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
1851 * conf/Makefile.common (dist_noinst_DATA): New variable.
1852 * conf/Makefile.extra-dist: Added missing make dist files.
1853 * grub-core/Makefile.core.def: Likewise.
1854
c8e7bf5f
VS
18552010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 Compress grub_prefix.
1858
1859 * grub-core/boot/i386/pc/lnxboot.S: Use
1860 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
1861 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
1862 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
1863 GRUB_MACHINE_PREFIX_END. All users updated.
1864 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
1865 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
1866 + 0x40.
1867 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
1868 * util/grub-mkimage.c (image_target_desc): Change data_end to
1869 prefix_end. All users updated.
1870
a7c00cdb
VS
18712010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
1874 value.
1875 (grub_openbsd_boot): Likewise.
1876 (grub_netbsd_boot): Likewise.
1877 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
1878 (grub_xnu_boot): Likewise.
1879
9f915872
VS
18802010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 * configure.ac: Clean LIBS variable after tests.
1883
efa1bee7
CW
18842010-09-02 Colin Watson <cjwatson@ubuntu.com>
1885
1886 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
1887
61d720e5
VS
18882010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
1891 echo if libdevmapper will be used.
1892
ef8e0ec8
IT
18932010-09-02 Ian Turner <Ian.Turner@deshaw.com>
1894
1895 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
1896 constant for the same file.
1897
03e261d8
VS
18982010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
1901
c2a4eba6
CW
19022010-09-02 Colin Watson <cjwatson@ubuntu.com>
1903
1904 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
1905 grub-core/*.pp.
1906
9056cbf3
CW
19072010-09-02 Colin Watson <cjwatson@ubuntu.com>
1908
1909 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
1910 required by the boot protocol.
1911
1912 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
1913 ebp and edi members.
1914 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
1915 state.ebp and state.edi.
1916 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
1917 %ebp and %edi according to grub_relocator32_ebp and
1918 grub_relocator32_edi respectively.
1919 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
1920 and state.edi.
1921
529cc99a
VS
19222010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 Add i386-pc-pxe image target.
1925
1926 * util/grub-mkimage.c (image_target_desc): New enum value
1927 IMAGE_I386_PC_PXE.
1928 (image_targets): New target i386-pc-pxe.
1929 (generate_image): Handle i386-pc-pxe image.
1930
9a093920
VS
19312010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 Fix grub_pxe_scan.
1934
1935 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
1936 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
1937 All users updated.
1938 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
1939 (grub_pxe_pxenv): Correct type.
1940
f9cefc4e
CW
19412010-09-01 Colin Watson <cjwatson@ubuntu.com>
1942
1943 * NEWS: Document most of the important changes since 1.98.
1944
4066f57f
CW
19452010-09-01 Colin Watson <cjwatson@ubuntu.com>
1946
1947 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
1948 generated manual page) a little.
1949
da2891f9
CW
19502010-09-01 Colin Watson <cjwatson@ubuntu.com>
1951
1952 * docs/grub.texi: Add myself as an author.
1953
ad717fae
VS
19542010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * Makefile.util.def (libgrub.a): Add missing sunpc.
1957 Reported by: Seth Goldberg.
1958
eefe8abd
VS
19592010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 Interrupt wrapping and code simplifications.
1962
9494ef9a
VS
1963 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
1964 x86_noieee1275 which are functionaly equivalent in this case.
1965 (grub-install): Make source on each platform explicit. Enable on
1966 all noemu.
1967 * gentpl.py (x86_efi_pc): Removed group.
1968 (x86_noefi): Likewise.
1969 (i386_noefi): Likewise.
1970 (x86_noieee1275): Likewise.
1971 (i386_noieee1275): Likewise.
1972 (i386_noefi_noieee1275): Likewise.
1973 (i386_pc_qemu_coreboot): Likewise.
1974 (i386_coreboot_multiboot): Likewise.
1975 (i386_pc_coreboot_multiboot_qemu): Likewise.
1976 (x86_noefi_mips): Likewise.
1977 (noieee1275): Likewise.
1978 (ieee1275_mips): Likewise.
1979 (noemu_noieee1275): Likewise.
1980 (cmos): New group.
1981 (usb): Likewise.
1982 (videoinkernel): Likewise.
1983 (videomodules): Likewise.
eefe8abd 1984 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
1985 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
1986 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
1987 include/grub/loader.h, include/grub/msdos_partition.h,
1988 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
1989 include/grub/machine/console.h, include/grub/machine/vga.h,
1990 include/grub/machine/vbe.h, include/grub/machine/init.h,
1991 include/grub/machine/kernel.h, include/grub/cpu/time.h,
1992 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 1993 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
1994 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
1995 * grub-core/Makefile.core.def (kernel): Explicit the source for
1996 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
1997 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
1998 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
1999 Use videoinkernel tag.
2000 (usb): Enable on all usb.
2001 (usbserial_common): Likewise.
2002 (usbserial_pl2303): Likewise.
2003 (usbserial_ftdi): Likewise.
2004 (uhci): Enable on all x86.
2005 (ohci): Enable on all pci.
2006 (cmostest): Enable on all CMOS.
2007 (acpi): Include commands/acpi.c on all platforms.
2008 (halt): Add relevant lib/*/halt.c.
2009 (hdparm): Enable on all pci.
2010 (lspci): Likewise.
2011 (usbtest): Enable on all usb.
2012 (ata): Enable on all pci.
2013 (ata_pthru): Likewise.
2014 (usbms): Enable on all usb.
2015 (usb_keyboard): Likewise.
2016 (font): Use tag videomodules.
2017 (bufio): Likewise.
2018 (datetime): Use tag cmos. Enable on all noemu.
2019 (mmap): Use tags common and x86.
2020 (gfxterm): Use tag videomodules.
2021 (bitmap): Likewise.
2022 (bitmap_scale): Likewise.
2023 (video_fb): Likewise.
2024 (video): Likewise.
2025 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
2026 adjust padding accordingly. All users updated.
2027 (grub_ohci_transaction): Fix bad format specification.
2028 (GRUB_MOD_INIT): Add asserts for struct size.
2029 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
2030 (grub_alloc_td): Likewise.
2031 (grub_free_queue): Likewise.
2032 (grub_uhci_transfer): Likewise.
2033 (grub_uhci_transaction): Fix bad format specification.
2034 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
2035 (grub_usb_bulk_readwrite): Likewise.
2036 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
2037 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
2038 Made static.
2039 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
2040 Made static.
2041 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
2042 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
2043 Transformed into C.
2044 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
2045 Moved from here ...
2046 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
2047 ... here. Transformed into C. Made static.
2048 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
2049 Moved from here ...
2050 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
2051 ... here. Transformed into C. Made static.
2052 * grub-core/kern/i386/pc/startup.S
2053 (grub_biosdisk_check_int13_extensions): Moved from here ...
2054 * grub-core/disk/i386/pc/biosdisk.c
2055 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
2056 Made static.
2057 * grub-core/kern/i386/pc/startup.S
2058 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
2059 * grub-core/disk/i386/pc/biosdisk.c
2060 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
2061 Transformed into C. Made static.
2062 * grub-core/kern/i386/pc/startup.S
2063 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
2064 * grub-core/disk/i386/pc/biosdisk.c
2065 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
2066 Transformed into C. Made static.
2067 * grub-core/kern/i386/pc/startup.S
2068 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
2069 * grub-core/disk/i386/pc/biosdisk.c
2070 (grub_biosdisk_get_diskinfo_standard): ... here.
2071 Transformed into C. Made static.
2072 * grub-core/kern/i386/pc/startup.S
2073 (grub_biosdisk_get_num_floppies): Moved from here ...
2074 * grub-core/disk/i386/pc/biosdisk.c
2075 (grub_biosdisk_get_num_floppies): ... here.
2076 Transformed into C. Made static.
2077 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
2078 New function.
2079 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
2080 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
2081 Transformed into C. Made static.
2082 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
2083 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
2084 Transformed into C. Made static.
2085 * grub-core/kern/i386/ieee1275/init.c: Removed.
2086 * grub-core/kern/i386/misc.S: Likewise.
2087 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
2088 Splitted from here ...
2089 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
2090 Transformed into C. Made static. All users updated.
2091 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
2092 Transformed into C. Made static. All users updated.
2093 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
2094 Moved from here...
2095 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
2096 Transformed into C. Made static. All users updated.
2097 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
2098 Moved from here...
2099 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
2100 Transformed into C. Made static. All users updated.
2101 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
2102 Removed (replaced by C version).
2103 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
2104 Moved from here...
2105 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
2106 Transformed into C. Made static.
2107 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
2108 Moved from here...
2109 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
2110 ... here. Transformed into C.
2111 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
2112 Moved from here...
2113 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
2114 ... here. Transformed into C.
2115 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
2116 Moved from here...
2117 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
2118 ... here. Transformed into C. Made static.
2119 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
2120 Moved from here...
2121 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
2122 ... here. Transformed into C.
21ed554b
VS
2123 * grub-core/kern/i386/pc/startup.S
2124 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
2125 * grub-core/video/i386/pc/vbe.c
2126 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
2127 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
2128 Moved from here...
2129 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
2130 ... here. Transformed into C.
2131 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
2132 Moved from here...
2133 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
2134 ... here. Transformed into C.
2135 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
2136 Moved from here...
2137 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
2138 ... here. Transformed into C.
2139 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
2140 Moved from here...
2141 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
2142 ... here. Transformed into C.
2143 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
2144 Moved from here...
2145 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
2146 ... here. Transformed into C. Made static.
2147 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
2148 Moved from here...
2149 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
2150 ... here. Transformed into C. Made static.
2151 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
2152 Moved from here...
2153 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
2154 ... here. Transformed into C. Made static.
2155 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
2156 pxe_rm_entry as third argument.
2157 (grub_bios_interrupt): New function.
2158 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
2159 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
2160 of calling grub_stop.
2161 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
2162 * grub-core/lib/efi/halt.c (grub_halt): ...here.
2163 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
2164 * grub-core/lib/emu/halt.c (grub_halt): ... here.
2165 * grub-core/lib/i386/halt.c: Moved from here ...
2166 * grub-core/lib/i386/halt.c: ... here.
2167 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
2168 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
2169 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
2170 grub_stop_floppy.
2171 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
2172 * include/grub/i386/coreboot/init.h: Removed.
2173 * include/grub/i386/multiboot/init.h: Likewise.
2174 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
2175 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
2176 * include/grub/i386/pc/int.h: New file.
2177 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
2178 (grub_pxe_scan): Removed.
2179 (grub_pxe_call): Update prototype.
2180 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
2181 prototypes.
2182 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
2183 * include/grub/i386/qemu/init.h: Removed.
2184 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
2185 noreturn.
2186 (grub_halt): Likewise.
2187 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
2188 (grub_reboot): Likewise.
2189 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
2190 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
2191 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
2192
215dd471
RM
21932010-08-30 Robert Millan <rmh@gnu.org>
2194
2195 * NEWS: Document addition of ZFS support in `grub-install' and
2196 `grub-mkconfig'.
2197
ebd65b82
BC
21982010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
2199
2200 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
2201 dprintf output.
2202
11721d19
VS
22032010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 Remove leftover embedding of font objects.
2206
2207 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
2208 * util/grub-install.in (font): Removed.
2209 * util/grub-mkimage.c (generate_image): Remove font support. All users
2210 updated.
2211
37837d4e
VS
22122010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 Remove leftover embedding of font objects.
2215
2216 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
2217 * util/grub-install.in (font): Removed.
2218 * util/grub-mkimage.c (generate_image): Remove font support. All users
2219 updated.
2220
b4c1aae0
VS
22212010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 2224 Reported by: Ian Turner
b4c1aae0 2225
8920a08d
VS
22262010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
2229 timeout to avoid indefinite boot stalling.
2230
f21db033
VS
22312010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
2234 (grub_env_write_color_highlight): Likewise.
2235
9a9de209
VS
22362010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 * grub-core/normal/term.c (print_more): Return to normal and not
2239 to standard state after printing "---MORE---".
2240
3dca01d7
VS
22412010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
2244 Mask out the bit 0x80 since it has other meaning that specifiing color.
2245
0b986c40
VS
22462010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 New relocator. Allows for more kernel support and more straightforward
2249 loader writing.
2250
2251 * Makefile.am (BOOTTARGET): New variable.
2252 (QEMU32): Likewise.
2253 (linux.init.x86_64): New target.
2254 (linux.init.i386): Likewise.
2255 (multiboot.elf): Likewise.
2256 (kfreebsd.elf): Likewise.
2257 (kfreebsd.aout): Likewise.
2258 (pc-chainloader.elf): Likewise.
2259 (pc-chainloader.bin): Likewise.
2260 (ntldr.elf): Likewise.
2261 (ntldr.bin): Likewise.
2262 (multiboot2.elf): Likewise.
2263 (kfreebsd.init.x86_64): Likewise.
2264 (kfreebsd.init.i386): Likewise.
2265 (knetbsd.init.i386): Likewise.
2266 (kopenbsd.init.i386): Likewise.
2267 (knetbsd.init.x86_64): Likewise.
2268 (kopenbsd.init.x86_64): Likewise.
2269 (linux-initramfs.i386): Likewise.
2270 (linux-initramfs.x86_64): Likewise.
2271 (kfreebsd-mfsroot.i386.img): Likewise.
2272 (knetbsd.image.i386): Likewise.
2273 (kopenbsd.image.i386): Likewise.
2274 (kopenbsd.image.x86_64): Likewise.
2275 (knetbsd.miniroot-image.i386.img): Likewise.
2276 (kfreebsd-mfsroot.x86_64.img): Likewise.
2277 (knetbsd.image.x86_64): Likewise.
2278 (knetbsd.miniroot-image.x86_64.img): Likewise.
2279 (kfreebsd-mfsroot.i386.gz): Likewise.
2280 (bootcheck-kfreebsd-i386): Likewise.
2281 (kfreebsd-mfsroot.x86_64.gz): Likewise.
2282 (bootcheck-kfreebsd-x86_64): Likewise.
2283 (knetbsd.miniroot-image.i386.gz): Likewise.
2284 (bootcheck-knetbsd-i386): Likewise.
2285 (bootcheck-kopenbsd-i386): Likewise.
2286 (bootcheck-kopenbsd-x86_64): Likewise.
2287 (knetbsd.miniroot-image.x86_64.gz): Likewise.
2288 (bootcheck-knetbsd-x86_64): Likewise.
2289 (bootcheck-linux-i386): Likewise.
2290 (bootcheck-linux-x86_64): Likewise.
2291 (bootcheck-linux16-i386): Likewise.
2292 (bootcheck-linux16-x86_64): Likewise.
2293 (bootcheck-multiboot): Likewise.
2294 (bootcheck-multiboot2): Likewise.
2295 (bootcheck-kfreebsd-aout): Likewise.
2296 (bootcheck-pc-chainloader): Likewise.
2297 (bootcheck-ntldr): Likewise.
2298 (CLEANFILES): Add new targets.
2299 (BOOTCHECKS): New variable.
2300 (.PHONY): Add bootchecks.
2301 (SUCCESSFUL_BOOT_STRING): New variable.
2302 (BOOTCHECK_TIMEOUT): Likewise.
2303 (bootcheck): New target
2304 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
2305 * configure.ac: Correct efiemu excuse.
2306 * docs/grub.texi (Supported kernels): New chapter.
2307 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
2308 include/grub/mm_private.h. Simplify inclusion of
2309 include/grub/boot.h, include/grub/loader.h
2310 and include/grub/msdos_partition.h
2311 (KERNEL_HEADER_FILES) [i386_coreboot]:
2312 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
2313 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
2314 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
2315 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
2316 include/grub/machine/loader.h.
2317 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
2318 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
2319 extra_dist.
2320 (pci.mod): Enable on i386-multiboot.
2321 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
2322 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
2323 i386-qemu.
2324 (relocator.mod): Rewritten.
2325 (aout.mod): Enable on all x86.
2326 (bsd.mod): Likewise.
2327 (ntldr.mod): New module.
2328 (linux.mod): Use loader/i386/linux.c on all x86.
2329 (xnu.mod): Enable on all x86.
2330 (vga_text.mod): disable on EFI and QEMU.
2331 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
2332 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
2333 * grub-core/efiemu/loadcore.c: Likewise.
2334 * grub-core/efiemu/main.c: Likewise.
2335 (grub_efiemu_exit_boot_services): Removed.
2336 (grub_efiemu_finish_boot_services): Likewise.
2337 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
2338 function.
2339 * grub-core/efiemu/i386/nocfgtables.c: New file.
2340 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
2341 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
2342 (grub_efi_finish_boot_services): Moved from here ...
2343 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
2344 Fille finish memory map and related data.
2345 (finish_mmap_buf): New variable.
2346 (grub_efi_uintn_t finish_mmap_size): Likewise.
2347 (grub_efi_uintn_t finish_key): Likewise.
2348 (grub_efi_uintn_t finish_desc_size): Likewise.
2349 (grub_efi_uint32_t finish_desc_version): Likewise.
2350 (grub_efi_is_finished): Likewise.
2351 (grub_efi_get_memory_map): Use saved memory map if EFI is already
2352 finished.
2353 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
2354 (grub_elf64_phdr_iterate): Likewise.
2355 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
2356 (grub_os_area_size): Likewise.
2357 (grub_machine_init): Don't reserve os area.
2358 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
2359 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
2360 * grub-core/kern/i386/loader.S: Removed.
2361 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
2362 (grub_os_area_size): Likewise.
2363 (grub_machine_init): Don't reserve os area.
2364 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
2365 Don't call grub_dl_unload_all.
2366 Don't include loader.S.
2367 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
2368 Declare the memory after _end as available.
2369 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 2370 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 2371 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
2372 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
2373 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
2374 * include/grub/mm_private.h (grub_mm_header): ... here.
2375 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
2376 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
2377 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
2378 (grub_mm_region): ..here. Removed addr. Added pre_size.
2379 All users updated.
2380 * grub-core/kern/mm.c (base): Renamed to ...
2381 (grub_mm_base): ... this. Made global.
2382 (grub_real_malloc): Alloc from end of region.
2383 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
2384 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
2385 * grub-core/kern/powerpc/cache_flush.S: ... here.
2386 * grub-core/lib/efi/relocator.c: New file.
2387 * grub-core/lib/i386/relocator.c: Rewritten.
2388 * grub-core/lib/i386/relocator16.S: New file.
2389 * grub-core/lib/i386/relocator32.S: Likewise.
2390 * grub-core/lib/i386/relocator64.S: Likewise.
2391 * grub-core/lib/i386/relocator_asm.S: Rewritten.
2392 * grub-core/lib/i386/relocator_common.S: New file.
2393 * grub-core/lib/ieee1275/relocator.c: Likewise.
2394 * grub-core/lib/mips/relocator.c: Rewritten.
2395 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
2396 stylistic adjustments.
2397 * grub-core/lib/powerpc/relocator.c: New file.
2398 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
2399 * grub-core/lib/relocator.c: Rewritten.
2400 * grub-core/lib/x86_64/relocator_asm.S: New file.
2401 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
2402 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
2403 (bsd_tag): New struct.
2404 (tags): New variable.
2405 (tags_last): Likewise.
2406 (netbsd_module): New struct.
2407 (netbsd_mods): New variable.
2408 (netbsd_mods_last): Likewise.
2409 (openbsd_opts): New parameter "serial".
2410 (OPENBSD_SERIAL_ARG): New definition.
2411 (netbsd_opts): New parameter "serial".
2412 (NETBSD_SERIAL_ARG): New definition.
2413 (grub_freebsd_add_meta): Reorganised into ...
2414 (grub_bsd_add_meta): ...this. All users updated.
2415 (grub_freebsd_add_mmap): Reorganised into ...
2416 (generate_e820_mmap): ...this...
2417 (grub_bsd_add_mmap): ...and this. All users updated.
2418 (grub_freebsd_list_modules): Use tags.
2419 (grub_netbsd_add_meta_module): New function.
2420 (grub_netbsd_list_modules): Likewise.
2421 (grub_freebsd_boot): Use relocator and finish EFI.
2422 (grub_openbsd_boot): Likewise.
2423 (grub_netbsd_setup_video): New function.
2424 (grub_netbsd_add_modules): Likewise.
2425 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
2426 and finish EFI.
2427 (grub_bsd_unload): Unload tags.
2428 (grub_bsd_load_aout): Use relocator.
2429 (grub_bsd_elf32_size_hook): New function.
2430 (grub_bsd_elf32_hook): Use relocator.
2431 (grub_bsd_elf64_size_hook): New function.
2432 (grub_bsd_elf64_hook): Use relocator.
2433 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
2434 (grub_bsd_load): Zero-out openbsd_ramdisk.
2435 (grub_bsd_load): Use relocator.
2436 (grub_cmd_openbsd): Support serial.
2437 (grub_cmd_netbsd): Support modules.
2438 (grub_cmd_freebsd_module): Use relocator.
2439 (grub_netbsd_module_load): New function.
2440 (grub_cmd_netbsd_module): Likewise.
2441 (grub_cmd_openbsd_ramdisk): Likewise.
2442 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
2443 kopenbsd_ramdisk.
2444 (GRUB_MOD_FINI): Unregister new commands.
2445 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
2446 (grub_freebsd_load_elfmodule_obj): Use relocator.
2447 (grub_freebsd_load_elfmodule): Likewise.
2448 (grub_freebsd_load_elf_meta): Likewise.
2449 (grub_netbsd_load_elf_meta): New function.
2450 (grub_openbsd_find_ramdisk): Likewise.
2451 * grub-core/loader/i386/bsd_helper.S: Removed.
2452 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
2453 * grub-core/loader/i386/bsd_trampoline.S: Removed.
2454 * grub-core/loader/i386/efi/linux.c: Likewise.
2455 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
2456 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
2457 (DEFAULT_VIDEO_MODE): Likewise.
2458 (real_mode_target): New variable.
2459 (prot_mode_target): Likewise.
2460 (initrd_mem_target): Likewise.
2461 (relocator): Likewise.
2462 (efi_mmap_buf): Likewise.
2463 (efi_mmap_size): Likewise.
2464 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
2465 (free_pages): Use relocator.
2466 (allocate_pages): Account for efi_mmap and use relocator. Return error.
2467 (grub_linux_setup_video): Return error.
2468 (grub_linux_trampoline_start): Removed.
2469 (grub_linux_trampoline_end): Likewise.
2470 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
2471 andd video parameters depending on firmware.
2472 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
2473 [GRUB_MACHINE_EFI]: Pass EFI parameters.
2474 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
2475 (grub_cmd_initrd): Use relocator.
2476 * grub-core/loader/i386/linux_trampoline.S: Removed.
2477 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
2478 (elf_sec_entsize): Likewise.
2479 (elf_sec_shstrndx): Likewise.
2480 (elf_sections): Likewise.
2481 (grub_multiboot_load): Use relocator.
2482 (grub_multiboot_get_mbi_size): Account for sections.
2483 (grub_multiboot_make_mbi): Use relocator and support sections.
2484 (grub_multiboot_add_elfsyms): New function.
2485 (grub_multiboot_free_mbi): Free sections.
2486 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
2487 (grub_linux_real_target): Likewise.
2488 (grub_linux_real_chunk): Likewise.
2489 (grub_linux16_prot_size): Likewise.
2490 (grub_linux16_boot): Use relocator.
2491 (grub_linux_unload): Unload relocator.
2492 (grub_cmd_linux): Use relocator.
2493 (grub_cmd_initrd): Likewise.
2494 * grub-core/loader/i386/pc/ntldr.c: New file.
2495 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
2496 Don't try to guess CPU frequency.
2497 (grub_xnu_set_video): Stretch bitmap.
2498 (grub_xnu_boot): Use relocator.
2499 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
2500 (grub_linux_unload): Free relocator.
2501 (grub_linux_load32): Use relocator.
2502 (grub_linux_load64): Likewise.
2503 (grub_cmd_initrd): Likewise.
2504 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
2505 (grub_multiboot_unload): Unload relocator.
2506 (grub_cmd_multiboot): Use relocator.
2507 (grub_cmd_module): Likewise.
2508 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
2509 Use relocator and support sections.
2510 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
2511 (elf_sec_entsize): Likewise.
2512 (elf_sec_shstrndx): Likewise.
2513 (elf_sections): Likewise.
2514 (grub_multiboot_load): Use relocator.
2515 (grub_multiboot_get_mbi_size): Account for sections.
2516 (grub_multiboot_make_mbi): Use relocator and support sections.
2517 (grub_multiboot_add_elfsyms): New function.
2518 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
2519 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
2520 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
2521 Prototype changed. All users updated.
2522 (grub_xnu_align_heap): Simplified.
2523 (grub_xnu_writetree_toheap): Likewise.
2524 (grub_xnu_unload): Unload relocator.
2525 (grub_cmd_xnu_kernel): Use relocator.
2526 (grub_cmd_xnu_kernel64): Likewise.
2527 (grub_xnu_register_memory): Simplified.
2528 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
2529 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
2530 EFI is finished.
2531 (grub_console_checkkey): Likewise.
2532 (grub_console_getkey): Likewise.
2533 (grub_console_getwh): Likewise.
2534 (grub_console_getxy): Likewise.
2535 (grub_console_gotoxy): Likewise.
2536 (grub_console_cls): Likewise.
2537 (grub_console_setcolorstate): Likewise.
2538 (grub_console_setcursor): Likewise.
2539 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
2540 * grub-core/tests/boot/kbsd.init-i386.S: New file.
2541 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
2542 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
2543 * grub-core/tests/boot/kernel-8086.S: Likewise.
2544 * grub-core/tests/boot/kernel-i386.S: Likewise.
2545 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
2546 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
2547 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
2548 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
2549 * grub-core/tests/boot/knetbsd.cfg: Likewise.
2550 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
2551 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
2552 * grub-core/tests/boot/linux.cfg: Likewise.
2553 * grub-core/tests/boot/linux.init-i386.S: Likewise.
2554 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
2555 * grub-core/tests/boot/linux16.cfg: Likewise.
2556 * grub-core/tests/boot/multiboot.cfg: Likewise.
2557 * grub-core/tests/boot/multiboot2.cfg: Likewise.
2558 * grub-core/tests/boot/ntldr.cfg: Likewise.
2559 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
2560 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
2561 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
2562 New definition.
2563 * include/grub/dl.h (grub_dl_unload_all): Removed.
2564 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
2565 (grub_efi_finish_boot_services): Change prototype.
2566 (grub_efi_is_finished): New variable.
2567 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
2568 Changed prototype.
2569 (grub_efiemu_finish_boot_services): Removed.
2570 (grub_machine_efiemu_init_tables): New prototype.
2571 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
2572 (grub_elf64_phdr_iterate): Likewise.
2573 * include/grub/i386/bsd.h: Include relocator.h.
2574 (freebsd_tag_header): New struct.
2575 (grub_openbsd_bios_mmap): Removed.
2576 (grub_unix_real_boot): Removed.
2577 (grub_freebsd_load_elfmodule32): Changed prototype.
2578 (grub_freebsd_load_elfmodule_obj64): Likewise.
2579 (grub_freebsd_load_elf_meta32): Likewise.
2580 (grub_freebsd_load_elf_meta64): Likewise.
2581 (grub_freebsd_add_meta): Removed.
2582 (grub_netbsd_load_elf_meta32): New prototype.
2583 (grub_netbsd_load_elf_meta64): Likewise.
2584 (grub_bsd_add_meta): Likewise.
2585 (grub_openbsd_ramdisk_descriptor): New struct.
2586 (grub_openbsd_find_ramdisk32): New prototype.
2587 (grub_openbsd_find_ramdisk64): Likewise.
2588 * include/grub/i386/coreboot/loader.h: Removed.
2589 * include/grub/i386/efi/loader.h: Likewise.
2590 * include/grub/i386/ieee1275/loader.h: Likewise.
2591 * include/grub/i386/linux.h (linux_kernel_header): Change void *
2592 to grub_uint32_t.
2593 * include/grub/i386/loader.h: Removed.
2594 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
2595 value.
2596 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
2597 (grub_phys_addr_t): New type.
2598 (grub_vtop): New inline function.
2599 (grub_map_memory): Likewise.
2600 (grub_unmap_memory): Likewise.
2601 * include/grub/i386/multiboot/loader.h: Removed.
2602 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
2603 (NETBSD_BTINFO_CONSOLE): New definition.
2604 (NETBSD_BTINFO_SYMTAB): Likewise.
2605 (NETBSD_BTINFO_MODULES): Likewise.
2606 (NETBSD_BTINFO_FRAMEBUF): Likewise.
2607 (grub_netbsd_bootinfo): New struct.
2608 (grub_netbsd_btinfo_common): Use explicit bitsize.
2609 (grub_netbsd_btinfo_mmap_entry): Removed.
2610 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
2611 (grub_netbsd_btinfo_bootdisk): New struct.
2612 (grub_netbsd_btinfo_symtab): Likewise.
2613 (grub_netbsd_btinfo_serial): Likewise.
2614 (grub_netbsd_btinfo_modules): Likewise.
2615 (grub_netbsd_btinfo_framebuf): Likewise.
2616 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
2617 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
2618 Likewise.
2619 (grub_openbsd_bootargs): Use explicit bitsize.
2620 (grub_openbsd_bootarg_console): New struct.
2621 (GRUB_OPENBSD_COM_MAJOR): New definition.
2622 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
2623 * include/grub/i386/pc/efiemu.h: Removed.
2624 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
2625 * include/grub/i386/qemu/loader.h: Removed.
2626 * include/grub/i386/relocator.h: Rewritten.
2627 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
2628 * include/grub/mips/memory.h: New file.
2629 * include/grub/mips/multiboot.h: Rewritten.
2630 * include/grub/mips/relocator.h: Rewritten.
2631 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
2632 (grub_vtop): New function.
2633 (grub_map_memory): Likewise.
2634 (grub_unmap_memory): Likewise.
2635 * include/grub/misc.h (ALIGN_DOWN): New definition.
2636 * include/grub/mm.h (grub_mm_check_real): New proto.
2637 (GRUB_MM_CHECK): New definition.
2638 * include/grub/mm_private.h: New file.
2639 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
2640 (grub_multiboot_get_mbi_size): Removed.
2641 (grub_multiboot_make_mbi): Change prottype.
2642 (grub_multiboot_set_accepts_video): New proto.
2643 (grub_multiboot_add_elfsyms): Likewise.
2644 (grub_multiboot_payload_eip): New variable.
2645 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
2646 New prototype.
2647 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
2648 New definition.
2649 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
2650 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
2651 * include/grub/powerpc/ieee1275/loader.h: Removed.
2652 * include/grub/powerpc/memory.h: New file.
2653 * include/grub/powerpc/relocator.h: Likewise.
2654 * include/grub/relocator.h: Likewise.
2655 * include/grub/relocator_private.h: Likewise.
2656 * include/grub/sparc64/ieee1275/loader.h: Removed.
2657 * include/grub/x86_64/memory.h: New file.
2658 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
2659 (grub_xnu_heap_malloc): Likewise.
2660 (grub_xnu_heap_real_start): Removed.
2661 (grub_xnu_heap_start): Likewise.
2662 (grub_xnu_relocator): New variable.
2663 (grub_xnu_heap_target_start): Likewise.
2664 * tests/util/grub-shell.in: Support non-pc.
2665 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 2666
5303b85d
VS
26672010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
2670 on malloc error.
2671 (grub_bidi_logical_to_visual): Check that malloc succeded.
2672 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
2673 puts.
2674 (grub_xputs_normal): Likewise.
2675
d768d159
VS
26762010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
2679 extra_dist.
2680
26812010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * grub-core/efiemu/runtime/efiemu.sh: Removed.
2684
5bf84df4
VS
26852010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2686
2687 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
2688
3626810e
VS
26892010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
2692 dprintf.
2693
a7363f53
BC
26942010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
2695
2696 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
2697
902f75f6
VS
26982010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * grub-core/normal/term.c (print_more): Fix a memory leak.
2701 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
2702 (grub_xputs_normal): Likewise.
2703
3c707967
VS
27042010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
2707 the begining of the string
2708
2053cc07
VS
27092010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 * grub-core/script/script.c (grub_script_parse): Free parsed on
2712 failure.
2713
46422ebf
VS
27142010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2715
2716 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
2717 on failure.
2718
9e0fa3f6
VS
27192010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2720
2721 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
2722 return.
2723
3393cf16
VS
27242010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2725
2726 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
2727 (scroll_up): Fix a memory leak.
2728
b17540cb
VS
27292010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
2732 errors.
2733
67140446
VS
27342010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 Handle USB pendrives exposed as floppies.
2737
2738 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
2739 floppy.
2740 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
2741 Check for partitions on all devices.
2742
e35e46fc
VS
27432010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
2746 (readkey): Likewise.
2747
d24c6190
BC
27482010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
2749
2750 Multiple variable names support to "export" command.
2751
2752 * normal/context.c (grub_cmd_export): "export" command supports
2753 multiple variable names.
2754
04ddcc6a
ST
27552010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
2756
2757 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
2758 --target=drive output to Mach device name.
2759
0c8b61d8
BC
27602010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
2761
2762 New Automake based build system for GRUB.
2763
2764 * ABOUT-NLS: New file.
2765 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
2766 in Makefile.util.def file.
2767 * Makefile.util.def: New file. Autogen build definitions file for
2768 GRUB host utils.
2769 * conf/Makefile.common: New file. Common variables for GRUB host
2770 utils and target modules.
2771 * conf/Makefile.extra-dist: New file. Extra files for make dist.
2772 * docs/Makefile.am: New file. Automake file for docs.
2773 * gentpl.py: New file. Python script to generate Autogen
2774 template.
2775 * grub-core/Makefile.am: New file. GRUB target modules' rules
2776 that doesn't fit in Makefile.core.def file.
2777 * grub-core/Makefile.core.def: New file. Autogen build
2778 definitions file for GRUB target modules.
2779 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
2780 specific setjmp.S file.
2781 * po/Makefile.am: New file.
2782
2783 * .bzrignore: New ignores.
2784 * INSTALL: New requirements, without Ruby.
2785 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
2786 * autogen.sh: Updated to invoke autogen as necessary.
2787 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
2788 and defines for Automake conditionals.
2789 * geninit.sh: Refactoring.
2790
2791 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
2792 necessary.
2793 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
2794 New prototype.
2795
2796 * include/grub/test.h: Fix functional test modules' naming.
2797 * grub-core/tests/example_functional_test.c: Fix test module name.
2798
2799 * util/misc.c: Hosted versions' of grub functions for libgrub.a
2800 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
2801 * util/grub-editenv.c: Likewise.
2802 * util/grub-fstest.c: Likewise.
2803 * util/grub-mkdevicemap.c: Likewise.
2804 * util/grub-mkfont.c: Likewise.
2805 * util/grub-mkimage.c: Likewise.
2806 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2807 * util/grub-probe.c: Likewise.
2808 * util/grub-script-check.c: Likewise.
2809 * util/i386/pc/grub-setup.c: Likewise.
2810 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2811
2812 * tests/util/grub-shell.in: Fix override directory path.
2813 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
2814 * util/import_gcry.py: Create Makefile.gcry.def file instead.
2815
2816 * util/lvm.c: Update #includes.
2817 * util/raid.c: Likewise.
2818 * util/resolve.c: Likewise.
2819 * grub-core/bus/emu/pci.c: Likewise.
2820 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
2821 * grub-core/lib/posix_wrap/string.h: Likewise.
2822 * grub-core/kern/emu/main.c: Likewise.
2823
2824 * grub-core/gensymlist.sh: New file. Script for generating kernel
2825 symbols file.
2826 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
2827
2828 * grub-core/gentrigtables.c: Fix unused variable warnings.
2829
2830 * Makefile.in: Removed.
2831 * conf/any-emu.rmk: Removed.
2832 * conf/common.rmk: Removed.
2833 * conf/i386-coreboot.rmk: Removed.
2834 * conf/i386-efi.rmk: Removed.
2835 * conf/i386-ieee1275.rmk: Removed.
2836 * conf/i386-multiboot.rmk: Removed.
2837 * conf/i386-pc.rmk: Removed.
2838 * conf/i386-qemu.rmk: Removed.
2839 * conf/i386.rmk: Removed.
2840 * conf/mips-yeeloong.rmk: Removed.
2841 * conf/mips.rmk: Removed.
2842 * conf/powerpc-ieee1275.rmk: Removed.
2843 * conf/sparc64-ieee1275.rmk: Removed.
2844 * conf/tests.rmk: Removed.
2845 * conf/x86-efi.rmk: Removed.
2846 * conf/x86_64-efi.rmk: Removed.
2847 * gendistlist.sh: Removed.
2848 * geninitheader.sh: Removed.
2849 * genkernsyms.sh.in: Removed.
2850 * genmk.rb: Removed.
2851 * gensymlist.sh.in: Removed.
2852 * mkinstalldirs: Removed.
2853 * boot: Moved ...
2854 * grub-core/boot: ... to here.
2855 * bus: Moved ...
2856 * grub-core/bus: ... to here.
2857 * commands: Moved ...
2858 * grub-core/commands: ... to here.
2859 * disk: Moved ...
2860 * grub-core/disk: ... to here.
2861 * efiemu: Moved ...
2862 * grub-core/efiemu: ... to here.
2863 * font: Moved ...
2864 * grub-core/font: ... to here.
2865 * fs: Moved ...
2866 * grub-core/fs: ... to here.
2867 * gencmdlist.sh: Moved ...
2868 * grub-core/gencmdlist.sh: ... to here.
2869 * genemuinit.sh: Moved ...
2870 * grub-core/genemuinit.sh: ... to here.
2871 * genemuinitheader.sh: Moved ...
2872 * grub-core/genemuinitheader.sh: ... to here.
2873 * genfslist.sh: Moved ...
2874 * grub-core/genfslist.sh: ... to here.
2875 * genhandlerlist.sh: Moved ...
2876 * grub-core/genhandlerlist.sh: ... to here.
2877 * genmoddep.awk: Moved ...
2878 * grub-core/genmoddep.awk: ... to here.
2879 * genmodsrc.sh: Moved ...
2880 * grub-core/genmodsrc.sh: ... to here.
2881 * genpartmaplist.sh: Moved ...
2882 * grub-core/genpartmaplist.sh: ... to here.
2883 * genparttoollist.sh: Moved ...
2884 * grub-core/genparttoollist.sh: ... to here.
2885 * genterminallist.sh: Moved ...
2886 * grub-core/genterminallist.sh: ... to here.
2887 * gentrigtables.c: Moved ...
2888 * grub-core/gentrigtables.c: ... to here.
2889 * genvideolist.sh: Moved ...
2890 * grub-core/genvideolist.sh: ... to here.
2891 * gettext: Moved ...
2892 * grub-core/gettext: ... to here.
2893 * gfxmenu: Moved ...
2894 * grub-core/gfxmenu: ... to here.
2895 * gnulib: Moved ...
2896 * grub-core/gnulib: ... to here.
2897 * hello: Moved ...
2898 * grub-core/hello: ... to here.
2899 * hook: Moved ...
2900 * grub-core/hook: ... to here.
2901 * io: Moved ...
2902 * grub-core/io: ... to here.
2903 * kern: Moved ...
2904 * grub-core/kern: ... to here.
2905 * lib: Moved ...
2906 * grub-core/lib: ... to here.
2907 * loader: Moved ...
2908 * grub-core/loader: ... to here.
2909 * mmap: Moved ...
2910 * grub-core/mmap: ... to here.
2911 * normal: Moved ...
2912 * grub-core/normal: ... to here.
2913 * partmap: Moved ...
2914 * grub-core/partmap: ... to here.
2915 * parttool: Moved ...
2916 * grub-core/parttool: ... to here.
2917 * script: Moved ...
2918 * grub-core/script: ... to here.
2919 * term: Moved ...
2920 * grub-core/term: ... to here
2921 * tests/example_functional_test.c: Moved ...
2922 * grub-core/tests/example_functional_test.c: ... to here.
2923 * tests/lib/functional_test.c: Moved ...
2924 * grub-core/tests/lib/functional_test.c: ... to here.
2925 * tests/lib/test.c: Moved ...
2926 * grub-core/tests/lib/test.c: ... to here.
2927 * video: Moved ...
2928 * grub-core/video: ... to here.
2929
645586e6
BC
29302010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
2931
2932 Replace --enable-grub-emu-modules with grub-emu-lite.
2933
2934 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
2935 cache.S.
2936
2937 * include/grub/emu/misc.h (grub_emu_init): New prototype.
2938 * kern/emu/full.c: New file. For grub-emu specific initialization.
2939 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
2940 * kern/emu/main.c: Call initialization function grub_emu_init.
2941
2942 * Makefile.in: Include grub-emu-lite in install.
2943 * commands/parttool.c: Use grub_no_autoload to differentiate
2944 between grub-emu and grub-emu-lite.
2945 * include/grub/misc.h: New variable grub_no_autoload.
2946
2947 * conf/any-emu.rmk: New rules for grub-emu-lite.
2948 * configure.ac: Remove --enable-grub-emu-modules.
2949 * genmk.rb: Cleanup unnecessary rules.
2950 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
2951
2952 * normal/main.c: Don't load list files on grub-emu-lite.
2953 * util/misc.c (grub_arch_sync_caches): Removed.
2954
f86a4030
CW
29552010-08-23 Colin Watson <cjwatson@ubuntu.com>
2956
2957 * kern/mips/startup.S (grub_prefix): Update comment to refer to
2958 grub-mkimage rather than grub-mkelfimage.
2959 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
2960
06776944
VS
29612010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
2964 a key after CapsLock or NumLock. It's just a qemu bug.
2965
df262419
VS
29662010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
2969 needed by libusb wrapper.
2970
b40ea81b
ST
29712010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
2972
2973 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
2974
dee50575
VS
29752010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
2978 --nounzip is passed.
2979
fb1d7b79
VS
29802010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 USB hotunplugging and USB serial support.
2983
2984 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
2985 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
2986 (grub_uhci_transfer): Respect timeout and set *actual.
2987 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
2988 non-standard length.
2989 (grub_usb_device_attach): Autoload modules.
2990 (GRUB_MOD_INIT): Set grub_term_poll_usb.
2991 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
2992 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
2993 users updated.
2994 (grub_usb_add_hub): Fill nports and children.
2995 (attach_root_port): Receive hub instead of controller.
2996 All users updated. Fill hub->devices.
2997 (grub_usb_root_hub): Allocate hub->devices.
2998 (detach_device): New function.
2999 (poll_nonroot_hub): Fill children and detach devices.
3000 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
3001 actual arguments. All users updated.
3002 (grub_usb_bulk_read_extended): New function.
3003 * bus/usb/serial/common.c: New file.
3004 * bus/usb/serial/ftdi.c: Likewise.
3005 * bus/usb/serial/pl2303.c: Likewise.
3006 * commands/terminal.c (handle_command): Support wildcard.
3007 * commands/usbtest.c: Output "Unknown" instead of empty string.
3008 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
3009 (usbserial_common_mod_SOURCES): New variable.
3010 (usbserial_common_mod_CFLAGS): Likewise.
3011 (usbserial_common_mod_LDFLAGS): Likewise.
3012 (pkglib_MODULES): Add usbserial_pl2303.mod.
3013 (usbserial_pl2303_mod_SOURCES): New variable.
3014 (usbserial_pl2303_mod_CFLAGS): Likewise.
3015 (usbserial_pl2303_mod_LDFLAGS): Likewise.
3016 (pkglib_MODULES): Add usbserial_ftdi.mod.
3017 (usbserial_ftdi_mod_SOURCES): New variable.
3018 (usbserial_ftdi_mod_CFLAGS): Likewise.
3019 (usbserial_ftdi_mod_LDFLAGS): Likewise.
3020 (pkglib_MODULES): Add serial.mod.
3021 (serial_mod_SOURCES): New variable.
3022 (serial_mod_CFLAGS): Likewise.
3023 (serial_mod_LDFLAGS): Likewise.
3024 * conf/i386-pc.rmk: Likewise.
3025 * conf/mips-yeeloong.rmk: Likewise.
3026 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
3027 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
3028 * disk/usbms.c (first_available_slot): New variable.
3029 (grub_usbms_attach): Don't reuse free slots due to potential cache
3030 problems.
3031 * include/grub/serial.h: Moved to ..
3032 * include/grub/ns8250.h: ...this.
3033 * include/grub/serial.h: New file.
3034 * include/grub/term.h (grub_term_poll_usb): New variable.
3035 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
3036 readkey. All users updated.
3037 (grub_terminfo_output_state): Pass term to put.
3038 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
3039 (grub_usb_controller_dev): Add timeout and actual arguments to
3040 transfer. All users updated.
3041 (grub_usb_interface): New field detach_data.
3042 (grub_usb_device): New fields children and nports.
3043 (grub_usb_ep_type_t): New type.
3044 (grub_usb_get_ep_type): New function.
3045 (grub_usb_bulk_read_extended): Likewise.
3046 * include/grub/usbdesc.h (grub_usb_desc): New type.
3047 * include/grub/usbserial.h: New file.
3048 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
3049 * kern/term.c (grub_term_poll_usb): New variable.
3050 (grub_getkey): Call grub_term_poll_usb if set.
3051 (grub_checkkey): Likewise.
3052 (grub_getkeystatus): Likewise.
3053 * term/serial.c: Moved controller-specific parts to ...
3054 * term/ns8250.c: ... here.
3055 * term/serial.c: Mostly rewritten.
3056 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
3057 according to spec.
3058
21a313de
RM
30592010-08-20 Robert Millan <rmh@gnu.org>
3060
3061 Make kFreeBSD code more generic to support ext2fs as root, ufs as
3062 a separate module and maybe other interesting combinations.
3063
3064 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
3065 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
3066 (kfreebsd_entry): Add generic filesystem module load routine.
3067 Map GRUB `ext2' to kFreeBSD `ext2fs'.
3068
63c734a6
CW
30692010-08-20 Colin Watson <cjwatson@ubuntu.com>
3070
3071 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
3072 "numcenter" (I misunderstood the purpose of this entry).
3073 * docs/grub.texi (sendkey): Likewise.
3074
c4d16542
CW
30752010-08-20 Colin Watson <cjwatson@ubuntu.com>
3076
3077 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
3078 status flag options; simply omitting the option is equivalent and
3079 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
3080 (keysym_table): Rename "num5numlock" to "numlock".
3081 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
3082 can uniformly say that only the last of multiple `sendkey'
3083 invocations has any effect.
3084 * docs/grub.texi (sendkey): New section.
3085
93541d66
CW
30862010-08-19 Colin Watson <cjwatson@ubuntu.com>
3087
3088 * commands/i386/pc/sendkey.c (options): Fix three typos.
3089
b4ece5e1
VS
30902010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 Implement sendkey support.
3093
3094 * commands/i386/pc/sendkey.c: New file.
3095 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
3096 (sendkey_mod_SOURCES): New variable.
3097 (sendkey_mod_CFLAGS): Likewise.
3098 (sendkey_mod_LDFLAGS): Likewise.
3099
51f1f5af
CW
31002010-08-18 Colin Watson <cjwatson@ubuntu.com>
3101
3102 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
3103 fix warnings from Autoconf.
3104
9da94e05
CW
31052010-08-18 Colin Watson <cjwatson@ubuntu.com>
3106
3107 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
3108 to avoid false positives with some assemblers that output things
3109 like "someprefix_func" as part of their output.
3110
729a0f2e
RM
31112010-08-15 Robert Millan <rmh@gnu.org>
3112
3113 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
3114 errors.
3115 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
3116 grub_get_libzfs_handle() errors.
3117
f3710e08
RM
31182010-08-14 Robert Millan <rmh@gnu.org>
3119
3120 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
3121 filesystem is not ZFS.
3122
7a3c13de
BC
31232010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3124
3125 Fix for misspelled color names defaulting to black/black (bug
3126 reported by Doug Nazar)
3127
3128 * include/grub/normal.h (grub_parse_color_name_pair): Add return
3129 status to prototype.
3130 * normal/color.c (grub_parse_color_name_pair): Return failure
3131 status.
3132 (grub_env_write_color_normal): Ignore bad color names.
3133 (grub_env_write_color_highlight): Likewise.
3134 * normal/main.c (GRUB_MOD_INIT): Set default color names.
3135
ab8ba50d
BC
31362010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3137
3138 "shift" command support to GRUB script.
3139
3140 * include/grub/script_sh.h (grub_script_shift): New prototype.
3141 * script/execute.c (grub_script_shift): New function.
3142 * script/main.c (grub_script_init): Register shift command.
3143 (grub_script_fini): Unregister shift command.
3144 * util/grub-script-check.c (grub_script_cmd_shift): New function.
3145
3146 * tests/grub_script_shift.in: New testcase.
3147 * conf/tests.rmk: Rules for new testcase.
3148
4d61999e
BC
31492010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3150
3151 "continue" command support to GRUB script.
3152
3153 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
3154 (grub_script_break): Continue support.
3155 * script/main.c (grub_script_init): Register continue command.
3156 (grub_script_fini): Unregister continue command.
3157
3158 * tests/grub_script_continue.in: New testcase.
3159 * conf/tests.rmk: Rules for new testcase.
3160
4df51e00
BC
31612010-08-12 BVK Chaitanya <bvk@dbook>
3162
3163 "break" command support to GRUB script.
3164
3165 * conf/common.rmk: Rule updates to grub-script-check.
3166 * include/grub/misc.h (grub_min): New function.
3167 * include/grub/script_sh.h (grub_script_init): New prototype.
3168 (grub_script_fini): New prototype.
3169 (grub_script_break): New prototype.
3170 * script/main.c (grub_script_init): New function.
3171 (grub_script_fini): New function.
3172 * script/execute.c (grub_script_break): New function.
3173 * normal/main.c: Calls to grub_script_{init,fini}.
3174 * util/grub-script-check.c (grub_script_break): New function.
3175
3176 * tests/grub_script_break.in: New testcase.
3177 * conf/tests.rmk: Rules for new test case.
3178
f12c8420
BC
31792010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3180
3181 Function parameters support to GRUB script.
3182
3183 * script/yylex.l (VARIABLE): Regular expression update.
3184 * script/function.c (grub_script_function_call): Moved ...
3185 * script/execute.c (grub_script_function_call): ... to here.
3186 (grub_script_execute_arglist_to_argv): Removed.
3187 (grub_script_arglist_to_argv): New function.
3188 * script/argv.c: New file.
3189 (grub_script_argv_free): New function.
3190 (grub_script_argv_next): Likewise.
3191 (grub_script_argv_append): Likewise.
3192 (grub_script_argv_split_append): Likewise.
3193 * include/grub/script_sh.h (grub_script_argv): New struct.
3194 (grub_script_argv_free): New function.
3195 (grub_script_argv_next): Likewise.
3196 (grub_script_argv_append): Likewise.
3197 (grub_script_argv_split_append): Likewise.
3198
3199 * conf/common.rmk (normal.mod): New source script/argv.c.
3200
3201 * tests/grub_script_echo1.in: More tests.
3202 * tests/grub_script_vars1.in: Likewise.
3203 * tests/grub_script_functions.in: New test case.
3204 * conf/tests.rmk: Rules for new testcase.
3205
8022b748
BC
32062010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3207
3208 Remove grub_script_cmdblock struct.
3209
3210 * include/grub/script_sh.h: Remove grub_script_cmdblock.
3211 * script/parser.y: Likewise.
3212 * script/execute.c: Rename cmdblock suffix to cmdlist.
3213 * script/script.c: Likewise.
3214 * util/grub-script-check.c: Likewise.
3215
79a6ba61
YB
32162010-08-11 Yves Blusseau <blusseau@zetam.org>
3217
3218 * .bzrignore: add grub-macho2img
3219
d04b9414
VS
32202010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
3223
f947ab49
VS
32242010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 Remove the dump of sm712 initialisation sequence.
3227
3228 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
3229 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
3230 (GRUB_VGA_IO_MISC_WRITE): Likewise.
3231 (GRUB_VGA_CR_*): Added many registers.
3232 (GRUB_VGA_SR_*): Likewise.
3233 (GRUB_VGA_GR_*): Likewise.
3234 (grub_vga_write_arx): New function.
3235 (grub_video_hw_config): New struct.
3236 (grub_vga_set_geometry): New function.
3237 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
3238 GRUB_PCI_CLASS_SUBCLASS_VGA.
3239 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
3240 * video/sm712.c (grub_sm712_write_reg): New function
3241 (grub_sm712_read_reg): Likewise.
3242 (grub_sm712_sr_write): Likewise.
3243 (grub_sm712_gr_write): Likewise.
3244 (grub_sm712_cr_write): Likewise.
3245 (grub_sm712_write_arx): Likewise.
3246 (grub_sm712_cr_shadow_write): Likewise.
3247 (grub_sm712_write_dda_lookup): Likewise.
3248 (grub_video_sm712_setup): Initialise the video rather then
3249 blindly replay the dump.
3250 (main) [TEST]: Add a routine to be able to compile as standalone for
3251 tests.
3252 * video/sm712_init.c (sm712_init): Removed.
3253 (sm712_sr_seq1): New array.
3254 (sm712_sr_seq2): Likewise.
3255
f0206638
VS
32562010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * include/grub/vga.h: Add missing grub/pci.h include.
3259
2764da3b
YB
32602010-08-10 Yves Blusseau <blusseau@zetam.org>
3261
3262 * util/grub-macho2img.c (main): fix typo
3263
cf0c775e
VS
32642010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
3267 (grub_vga_gr_read): Likewise.
3268 (grub_vga_cr_write): Likewise.
3269 (grub_vga_cr_read): Likewise.
3270 (grub_vga_sr_write): Likewise.
3271 (grub_vga_sr_read): Likewise.
3272 (grub_vga_palette_read): Likewise.
3273 (grub_vga_palette_write): Likewise.
3274 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
3275 (grub_sm712_sr_read): New function.
3276 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
3277 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
3278
07f360e9
RM
32792010-08-09 Robert Millan <rmh@gnu.org>
3280
3281 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
3282 out unused variables on non-ZFS build.
3283
346c2072
RM
32842010-08-08 Robert Millan <rmh@gnu.org>
3285
3286 Fix path generation for sub-filesystems in ZFS.
3287
3288 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
3289 missing slash.
3290
71175420
RM
32912010-08-08 Robert Millan <rmh@gnu.org>
3292
3293 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
3294
0d8286f3
RM
32952010-08-08 Robert Millan <rmh@gnu.org>
3296
3297 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
3298 exist, issue a proper error message (rely on `ls' for translated
3299 strings).
3300
55dd2924
RM
33012010-08-08 Robert Millan <rmh@gnu.org>
3302
3303 Fix grub-probe invocation.
3304
3305 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
3306
d3dd9e80
RM
33072010-08-04 Robert Millan <rmh@gnu.org>
3308
3309 * configure.ac: Remove checks for getfsstat() and getmntany().
3310 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
3311 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
3312 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
3313 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
3314 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
3315 function.
3316 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
3317 via find_mount_point_from_dir() and getfsstat() / getmntany().
3318
0de22aa9
RM
33192010-08-04 Robert Millan <rmh@gnu.org>
3320
3321 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
3322 (grub_find_zpool_from_mount_point): Merge into ...
3323 (grub_find_zpool_from_dir): ... this.
3324 * kern/emu/misc.c: Likewise.
3325
3326 * kern/emu/misc.c
3327 (grub_make_system_path_relative_to_its_root): Replace
3328 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
3329 with grub_find_zpool_from_dir().
3330 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
3331
62858144
RM
33322010-08-04 Robert Millan <rmh@gnu.org>
3333
3334 Support OpenSolaris in ZFS device resolution.
3335
3336 * configure.ac: Check for getmntany().
3337 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
3338 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
3339 support.
3340
9dd6fd50
RM
33412010-08-03 Robert Millan <rmh@gnu.org>
3342
3343 Fix grub-emu build.
3344
3345 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
3346 * include/grub/emu/misc.h: ... here.
3347
3348 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
3349 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
3350
3351 * util/misc.c: Remove `<grub/util/libzfs.h>'.
3352 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
3353 (grub_get_libzfs_handle): Move to ...
3354 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
3355 (grub_get_libzfs_handle): ... here.
3356
c9f7ff97
BC
33572010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
3358
3359 * script/execute.c (grub_script_execute_cmdline): Check for NULL
3360 as command name case.
3361
a870a783
CW
33622010-08-02 Colin Watson <cjwatson@ubuntu.com>
3363
3364 * disk/raid.c (insert_array): Select unique numbers for named arrays
3365 as well, for use as keys in the disk cache.
3366
c7db243b
RM
33672010-08-01 Robert Millan <rmh@gnu.org>
3368
3369 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
3370 kFreeBSD device name, except on ZFS where the filesystem label is
3371 used.
3372 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
3373 `/boot/zfs/zpool.cache'.
3374 Set mountfrom kernel variable using ${kfreebsd_device}.
3375
f7abdefb
RM
33762010-08-01 Robert Millan <rmh@gnu.org>
3377
3378 Make it even harder to use uninitialized `libzfs_handle' (and
3379 make the interface a bit simpler).
3380
3381 * include/grub/util/misc.h (grub_util_init_libzfs)
3382 (libzfs_handle): Remove.
3383 (grub_get_libzfs_handle): New prototype.
3384
3385 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
3386 attribute.
3387 (grub_util_init_libzfs): Remove.
3388 (grub_get_libzfs_handle): New function.
3389
3390 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
3391 grub_get_libzfs_handle() to obtain a libzfs handle instead of
3392 accessing `libzfs_handle' directly.
3393
c882acc0
RM
33942010-08-01 Robert Millan <rmh@gnu.org>
3395
3396 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
3397 (grub_find_zpool_from_mount_point): New function prototypes.
3398
3399 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
3400 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
3401
3402 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
3403 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
3404 `static' attribute.
3405
3406 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
3407 finding zpool from mount point into ...
3408 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
3409
3410 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
3411 requested path is part of a ZFS pool, use
3412 grub_find_zpool_from_mount_point() to detect its filesystem name,
3413 and generate a path with `/fsname@path' syntax.
3414
8bfe31d8
CW
34152010-08-01 Colin Watson <cjwatson@ubuntu.com>
3416
3417 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
3418 (void) rather than () so that this is a proper prototype.
3419
553df63d
VS
34202010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
3423
8687cf07
VS
34242010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
3427 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
3428
ea9be8ea
CW
34292010-08-01 Colin Watson <cjwatson@ubuntu.com>
3430
3431 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
3432
6eea041a
CW
34332010-08-01 Colin Watson <cjwatson@ubuntu.com>
3434
3435 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
3436
2cfb45df
CW
34372010-08-01 Colin Watson <cjwatson@ubuntu.com>
3438
3439 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
3440 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
3441 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
3442 disable gfxpayload.
3443 (Shell-like scripting): Add real content.
3444 (Serial terminal): Suggest `terminal_input serial; terminal_output
3445 serial' rather than putting the two commands on separate lines,
3446 since console input will be inoperative after the first command.
3447 (menuentry): Document --class, --users, and --hotkey options.
3448 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
3449 Vladimir Serbinenko).
3450
7decd202
VS
34512010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
34522010-08-01 Colin Watson <cjwatson@ubuntu.com>
3453
3454 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
3455
c882acc0
RM
34562010-08-01 Robert Millan <rmh@gnu.org>
3457
3458 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
3459 (grub_find_zpool_from_mount_point): New function prototypes.
3460
3461 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
3462 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
3463
3464 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
3465 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
3466 `static' attribute.
3467
3468 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
3469 finding zpool from mount point into ...
3470 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
3471
3472 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
3473 requested path is part of a ZFS pool, use
3474 grub_find_zpool_from_mount_point() to detect its filesystem name,
3475 and generate a path with `/fsname@path' syntax.
3476
deb0caa3
RM
34772010-08-01 Robert Millan <rmh@gnu.org>
3478
3479 Prevent accidental use of uninitialized libzfs_handle.
3480
3481 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
3482 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
3483 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
3484
ce04ef47
CW
34852010-08-01 Colin Watson <cjwatson@ubuntu.com>
3486
3487 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
3488 util/grub.d/10_linux.in). Fixes Debian bug #591093.
3489
ebf53056
RM
34902010-08-01 Robert Millan <rmh@gnu.org>
3491
3492 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 3493
3710bb6b
RM
34942010-07-31 Robert Millan <rmh@gnu.org>
3495
3496 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
3497
8072efeb
RM
34982010-07-31 Robert Millan <rmh@gnu.org>
3499
3500 * kern/emu/misc.c: Add missing license header.
3501
3169f4c7
RM
35022010-07-31 Robert Millan <rmh@gnu.org>
3503
3504 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
3505
3506 * include/grub/util/libnvpair.h: Include `<config.h>'.
3507 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
3508 declaring libnvpair prototypes ourselves.
3509 * include/grub/util/libzfs.h: Include `<config.h>'.
3510 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
3511 declaring libzfs prototypes ourselves.
3512
3513 (libzfs_handle): Moved to ...
3514 * include/grub/util/misc.h (libzfs_handle): ... here.
3515 Include `<grub/util/libzfs.h>'.
3516
c9a00aee
RM
35172010-07-30 Robert Millan <rmh@gnu.org>
3518
3519 * include/grub/emu/misc.h: Add missing license header.
3520
a184f9c8
RM
35212010-07-30 Robert Millan <rmh@gnu.org>
3522
3523 Enable `grub-probe -t device' resolution on ZFS.
3524
3525 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
3526 * include/grub/util/libnvpair.h: New file.
3527 * include/grub/util/libzfs.h: New file.
3528
3529 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
3530 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
3531 `<grub/util/libnvpair.h>'.
3532 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
3533
3534 (find_mount_point_from_dir): New static function.
3535 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
3536 function.
3537 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
3538 find_root_device_from_libzfs() before ressorting to find_root_device().
3539
3540 * include/grub/util/misc.h (grub_util_init_libzfs): New function
3541 prototype.
3542 * util/misc.c: Include `<grub/util/libzfs.h>'.
3543 (grub_util_init_libzfs): New function.
3544 [HAVE_LIBZFS] (libzfs_handle): New global variable.
3545 [HAVE_LIBZFS] (fini_libzfs): New static function.
3546 (grub_util_init_libzfs): New function.
3547 * util/grub-probe.c (main): Call grub_util_init_libzfs().
3548
f7790cdd
RM
35492010-07-30 Robert Millan <rmh@gnu.org>
3550
3551 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
3552 (xmalloc, xrealloc, xstrdup, xasprintf): Add
3553 `warn_unused_result' attribute.
3554 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
3555 (grub_xasprintf, grub_xvasprintf): Likewise.
3556 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
3557
0806b63c
RM
35582010-07-29 Robert Millan <rmh@gnu.org>
3559
3560 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
3561 (probe): Handle `PRINT_FS_LABEL'.
3562 (main): Handle `-t fs_label'.
3563
9f841f5c
RM
35642010-07-29 Robert Millan <rmh@gnu.org>
3565
3566 * configure.ac: Remove grub-mkisofs checks.
3567
46371121
VS
35682010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
3569
3570 * util/ieee1275/grub-install.in: Don't use empty grub_device.
3571 Reported by: Lennart Sorensen.
3572
35732010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
3576 prior to terminal_input/terminal_output separation. It's been over 1.5
3577 years and those versions weren't widely deployed.
3578
a9600892
CW
35792010-07-22 Colin Watson <cjwatson@ubuntu.com>
3580
3581 * disk/raid.c (insert_array): Don't count named arrays when looking
3582 for unused array numbers.
697e053c 3583 Reported and tested by: Michael Guntsche.
a9600892 3584
c03507df
CW
35852010-07-20 Colin Watson <cjwatson@ubuntu.com>
3586
3587 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
3588 implementation of this so that grub-emu links again, with a note
3589 that this should support hotplugging in the future.
3590
b26f1c11
CW
35912010-07-20 Colin Watson <cjwatson@ubuntu.com>
3592
3593 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
3594
efc9d7f1
CW
35952010-07-20 Colin Watson <cjwatson@ubuntu.com>
3596
3597 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
3598 handle on failure.
3599 (grub_loopback_close): Remove empty function.
3600 (grub_loopback_dev): Remove close method.
3601
dd8ff5c9
CW
36022010-07-20 Colin Watson <cjwatson@ubuntu.com>
3603
3604 Disable EFI cursor when the EFI console becomes inactive.
3605
3606 * term/efi/console.c (grub_efi_console_init): New function.
3607 (grub_efi_console_fini): New function.
3608 (grub_console_term_output): Register init and fini methods.
3609
5e3bec67
VS
36102010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 * tests/util/grub-shell-tester.in: Remove bashism and declare as
3613 sh script.
3614
afaec079
VS
36152010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * disk/loopback.c (grub_loopback): Replace filename with file.
3618 (delete_loopback): Handle new semantics.
3619 (grub_cmd_loopback): Likewise.
3620 (grub_loopback_iterate): Likewise.
3621 (grub_loopback_close): Likewise.
3622
a6a11f3c
VS
36232010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
3626 with -p "".
3627 Reported by: Tito Keitel.
3628
64a638b0
VS
36292010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * docs/grub.texi (Naming convention): Document new naming convention.
3632
ab8ba957
VS
36332010-07-20 Vadim Solomin <vadic052@gmail.com>
36342010-07-20 Colin Watson <cjwatson@ubuntu.com>
3635
3636 Generate device.map in something closer to the old ordering.
3637
3638 * util/deviceiter.c (struct device): New declaration.
3639 (compare_file_names): Rename to ...
3640 (compare_devices): ... this. Sort by kernel name in preference to
3641 the stable by-id name, but keep the latter as a fallback comparison.
3642 Update header comment.
3643 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
3644 of `struct device' rather than of plain file names.
3645
a29d6a4b
TF
36462010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
3647
3648 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
3649 on i386.
3650
39d824e8
VS
36512010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * commands/acpi.c (setup_common_tables): Use sizeof instead of
3654 hardcoding size.
3655 (setv1table): Likewise.
3656
f058276b
FZ
36572010-07-20 Colin Watson <cjwatson@ubuntu.com>
3658
3659 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
3660 removing the homehost if present.
3661 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
3662 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
3663 removing the homehost if present.
3664 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
3665 if possible.
3666 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
3667
3668 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
3669 parameter. Set its pointer target to 0.
3670 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
3671 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
3672 `data_offset' value from the superblock for 1.x metadata.
3673 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
3674 data on the device.
3675 (insert_array): Record the start sector of data on the device.
3676 (grub_raid_register): Pass start_sector parameters to
3677 grub_raid_list->detect and insert_array.
3678 * include/grub/raid.h (struct grub_raid_array): Add start_sector
3679 member.
3680 (struct grub_raid): Add start_sector parameter to `detect'.
3681
3682 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
3683 __attribute__ ((packed)), leaving a comment.
3684 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
3685 (grub_mdraid_detect_09): ... here and ...
3686 (grub_mdraid_detect_1x): ... here.
3687
36882010-07-20 Peter Henn <peter.henn@web.de>
3689
3690 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
3691 chunk size and disk size, which are already given as sector counts
3692 as distinct from the 0.90 units. Fetch the correct device number
3693 from the role table instead of using the table index.
3694
36952010-07-20 Felix Zielcke <fzielcke@z-51.de>
3696
3697 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
3698 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
3699 (WriteMostly1): New macro.
3700 Set array->name to NULL for metadata format 0.90. Add support for
3701 metadata 1.x. Fix some comments.
3702 * disk/raid.c (): Add support for name based RAID arrays. Fix a
3703 few comments.
3704 * util/getroot.c (grub_util_get_grub_dev): Add support for
3705 /dev/md/name style devices.
3706
4b761da9
CW
37072010-07-20 Colin Watson <cjwatson@ubuntu.com>
3708
3709 * .bzrignore: Ignore 20_linux_xen.
3710
5771289a
CW
37112010-07-17 Colin Watson <cjwatson@ubuntu.com>
3712
3713 * util/import_unicode.py: Remove unnecessary imports.
3714
5dab68df
AN
37152010-07-17 Aleš Nesrsta <starous@volny.cz>
3716
3717 Hotplugging and USB hub support.
3718
3719 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
3720 (grub_ohci): Likewise.
3721 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
3722 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
3723 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
3724 (GRUB_OHCI_CTRL_EDS): Likewise.
3725 (GRUB_OHCI_BULK_EDS): Likewise.
3726 (GRUB_OHCI_TDS): Likewise.
3727 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
3728 (grub_ohci_ed_phys2virt): New function.
3729 (grub_ohci_virt_to_phys): Likewise.
3730 (grub_ohci_td_phys2virt): Likewise.
3731 (grub_ohci_td_virt2phys): Likewise.
3732 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
3733 attachment.
3734 (grub_ohci_find_ed): New function.
3735 (grub_ohci_alloc_td): Likewise.
3736 (grub_ohci_free_td): Likewise.
3737 (grub_ohci_free_tds): Likewise.
3738 (grub_ohci_transfer): Use previously allocated memory.
3739 (grub_ohci_portstatus): Reset status changed bit.
3740 (grub_ohci_detect_dev): Supply status changed.
3741 (grub_ohci_fini_hw): Free memory.
3742 (grub_ohci_restore_hw): Reallocate memory.
3743 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
3744 Reset status change.
3745 (grub_uhci_detect_dev): Supply status_change.
3746 * bus/usb/usb.c (attach_hooks): New var.
3747 (grub_usb_device_attach): New function.
3748 (grub_usb_register_attach_hook_class): Likewise.
3749 (grub_usb_unregister_attach_hook_class): Likewise.
3750 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
3751 (grub_usb_add_hub): Reset connection changed bit.
3752 (attach_root_port): New function.
3753 (grub_usb_root_hub): Likewise.
3754 (poll_nonroot_hub): Likewise.
3755 (grub_usb_poll_devices): Likewise.
3756 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
3757 * disk/usbms.c (grub_usbms_open): Use device hooks.
3758 (grub_usbms_iterate) :Poll devices.
3759 (grub_usbms_finddevs): Split into ...
3760 (grub_usbms_attach): ... this ...
3761 (grub_usbms_attach): ... and this.
3762 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
3763 in detect_dev.
3764 (grub_usb_interface): New fields attached and detach_hook.
3765 (grub_usb_attach_hook_class): New type.
3766 (grub_usb_attach_desc): New struct.
3767 (grub_usb_register_attach_hook_class): New function.
3768 (grub_usb_unregister_attach_hook_class): Likewise.
3769 (grub_usb_poll_devices): Likewise.
3770 (grub_usb_device_attach): Likewise.
3771 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
3772 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
3773
3222efaf
VS
37742010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
3777 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
3778 delta determination style. Works with most NetBSD partitions too.
3779
139b714a
VS
37802010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3781
3782 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
3783 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
3784
986aad56
VS
37852010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
3788
99be513c
AB
37892010-07-14 Anton Blanchard <anton@samba.org>
3790
3791 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
3792 ET_DYN files.
3793
18075f62
GS
37942010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3795
3796 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
3797
8d9a5b15
GS
37982010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
3799
3800 * kern/partition.c (grub_partition_check_containment): New function to
3801 check that a partition is physically contained in a parent. Since
3802 offsets are relative (and non-negative), this reduces to checking that
3803 the partition ends before its parent.
3804 (grub_partition_map_probe): Discard out-of-range sub-partitions.
3805 (grub_partition_iterate): Likewise.
3806 * include/grub/partition.h (grub_partition_map): Slightly more detailed
3807 comments.
3808 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
3809 partitions that start before their parent, and add debug printfs.
3810
19563c25
CW
38112010-07-13 Colin Watson <cjwatson@ubuntu.com>
3812
3813 * Makefile.in (.SUFFIX): Spell correctly, as ...
3814 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
3815 bare module name without `.mod', e.g. `test') tried to invoke a
3816 Modula-2 compiler.
3817
1a1f1e67
CW
38182010-07-13 Colin Watson <cjwatson@ubuntu.com>
3819
3820 * README: Point to the Info manual.
3821
811b0dca
JS
38222010-07-13 Jiro SEKIBA <jir@unicus.jp>
3823
3824 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
3825 2nd superblock position from partition size.
3826
e4f4eafc
CW
38272010-07-10 Colin Watson <cjwatson@ubuntu.com>
3828
3829 * Makefile.in (MAINTAINER_CLEANFILES): Remove
3830 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
3831 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
3832 outputs.
3833
4274c30f
VS
38342010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 Restructure SCSI .id handling.
3837 Reported and tested by: Aleš Nesrsta.
3838
3839 * disk/ata.c (grub_atapi_close): Removed. All users updated.
3840 (grub_atapi_dev): Changed .name to "ata". New field .id.
3841 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
3842 (grub_usbms_dev): New field .id.
3843 * disk/scsi.c (grub_scsi_iterate): Generate name.
3844 (grub_scsi_open): Parse name.
3845 * include/grub/scsi.h (grub_make_scsi_id): New function.
3846 (grub_scsi_dev): Change iterate and open to number instead of naming
3847 busses. All users updated.
3848 (grub_scsi): Remove name. Add .bus.
3849
5bc24388
VS
38502010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * commands/help.c (grub_cmd_help): Fix a typo.
3853
249975ba
VS
38542010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
3857 Reported and tested by: Colin Watson.
3858
3eaac1a1
VS
38592010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
3862 in this context.
3863
becce1b1
VS
38642010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
3867
f7bf0918
CW
38682010-07-07 Colin Watson <cjwatson@ubuntu.com>
3869
3870 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
3871 indentation.
3872
0b0f9620
CW
38732010-07-06 Colin Watson <cjwatson@ubuntu.com>
3874
3875 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
3876 and disk/raid6_recover.c.
3877 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3878 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3879
1e545469
CW
38802010-07-06 Colin Watson <cjwatson@ubuntu.com>
3881
3882 * term/gfxterm.c (repaint_schedulded): Rename to ...
3883 (repaint_scheduled): ... this. Update all callers.
3884 (repaint_was_schedulded): Rename to ...
3885 (repaint_was_scheduled): ... this. Update all callers.
3886
5357687a
CW
38872010-07-06 Colin Watson <cjwatson@ubuntu.com>
3888
3889 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
3890 which we expect to be handled by upper layers.
3891
29d7e783
BC
38922010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
3893
3894 * bus/usb/usbhub.c: #include time.h header.
3895
37582066
CW
38962010-07-06 Colin Watson <cjwatson@ubuntu.com>
3897
3898 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
3899 entry_name also for entries without stat blocks (e.g. ".."); fixes
3900 corruption of the first entry in a directory.
3901
c8c06953
CW
39022010-07-06 Colin Watson <cjwatson@ubuntu.com>
3903
3904 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
3905 after setting gfxterm as the active terminal. GRUB_BACKGROUND
3906 doesn't work otherwise.
3907
e75056f1
CW
39082010-07-05 Colin Watson <cjwatson@ubuntu.com>
3909
3910 * docs/grub.texi (Features): Update list of supported file systems.
3911 (GNU/Linux): Update for GRUB 2.
3912 (Serial terminal): Remove mention of --disable-serial, which was a
3913 GRUB Legacy configure option. Update instructions to use
3914 `terminal_input' and `terminal_output' rather than `terminal'.
3915 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
3916 configuration' and `Installing GRUB using grub-install'.
3917 (Menu entry editor): Update for GRUB 2.
3918 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
3919 Document new -a, -u, and -v options.
3920 (initrd): New section.
3921 (initrd16): New section.
3922 (linux): New section.
3923 (linux16): New section.
3924 (search): The `var' argument to `--set' is optional.
3925 (GRUB only offers a rescue shell): Go into a little more detail on
3926 drive ordering.
3927
5cf69151
CW
39282010-07-05 Colin Watson <cjwatson@ubuntu.com>
3929
3930 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
3931
e3f90044
CW
39322010-07-05 Colin Watson <cjwatson@ubuntu.com>
3933
3934 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
3935 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
3936
38d8f4f3
CW
39372010-07-05 Colin Watson <cjwatson@ubuntu.com>
3938
3939 * util/i386/pc/grub-setup.c (setup): Rename prefix to
3940 install_prefix, in line with install_dos_part and install_bsd_part.
3941 Add new prefix variable, which is copied to install_prefix after
3942 comparing core.img in memory with the one read from disk in the
3943 no-embedding case, and use that rather than overwriting
3944 install_prefix immediately when installing to a partition.
3945 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
3946 Bicakci.
3947
57ebd41e
GS
39482010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
3949
3950 * configure.ac: Avoid == in test command, it's not portable.
3951 * util/grub.d/30_os-prober.in: Likewise.
3952
cb7f64b2
CW
39532010-07-04 Colin Watson <cjwatson@ubuntu.com>
3954
3955 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
3956
6b654bb0
GS
39572010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
3958
3959 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
3960 multiple (top-level) partmaps.
3961
72a2026d
VS
39622010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 3965 Reported by: Tino Keitel.
72a2026d 3966
df3eb88f
VS
39672010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 Bidi and diacritics support.
3970
3971 * Makefile.in (widthspec.bin): New target.
3972 (widthspec.h): Likewise.
3973 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
3974 * autogen.sh: Generate unidata.c.
3975 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
3976 * commands/ls.c (grub_ls_list_devices): Likewise.
3977 (grub_ls_list_files): Likewise.
3978 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
3979 (grub_mini_cmd_lsmod): Likewise.
3980 * commands/read.c: Likewise.
3981 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
3982 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
3983 * lib/arg.c (grub_arg_show_help): Likewise.
3984 * lib/crypto.c (grub_password_get): Likewise.
3985 * normal/auth.c (grub_username_get): Likewise.
3986 * normal/misc.c (grub_normal_print_device_info): Likewise.
3987 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
3988 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
3989 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
3990 (normal/charset.c_DEPENDENCIES): New variable.
3991 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
3992 (pkglib_MODULES): Remove charset.mod.
3993 (charset_mod_SOURCES): Removed.
3994 (charset_mod_CFLAGS): Likewise.
3995 (charset_mod_LDFLAGS): Likewise.
3996 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
3997 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
3998 and term/tparm.c.
3999 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4000 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4001 (kernel_img_HEADERS): Add terminfo.h.
4002 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
4003 Fill ->font. Reverse ascii bitmaps.
4004 (grub_font_get_xheight): New function.
4005 * font/font.c (grub_font_get_string_width): Moved from here ...
4006 * gfxmenu/font.c (grub_font_get_string_width): ... here.
4007 * font/font.c (grub_font_draw_string): Moved from here ...
4008 * gfxmenu/font.c (grub_font_draw_string): ... here.
4009 * font/font.c (grub_font_dup_glyph): New function.
4010 (grub_font_blit_glyph): Likewise.
4011 (grub_font_blit_glyph_mirror): Likewise.
4012 (blit_comb): Likewise.
4013 (grub_font_construct_dry_run): Likewise.
4014 (grub_font_get_constructed_device_width): Likewise.
4015 (grub_font_construct_glyph): Likewise.
4016 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
4017 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
4018 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
4019 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
4020 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
4021 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
4022 (grub_font_get_xheight): New proto.
4023 (grub_font_get_constructed_device_width): Likewise.
4024 (grub_font_construct_glyph): Likewise.
4025 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
4026 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
4027 * include/grub/font.h (grub_font_draw_string): Moved from here ...
4028 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
4029 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
4030 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
4031 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
4032 (grub_console_getcharwidth): Likewise.
4033 * include/grub/misc.h (grub_xputs): New proto.
4034 (grub_puts): Inlined.
4035 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
4036 (grub_normal_get_line_counter): Removed.
4037 (grub_install_newline_hook): Likewise.
4038 (grub_normal_get_char_counter): New proto.
4039 (grub_normal_reset_more): Likewise.
4040 (grub_xputs_normal): Likewise.
4041 * include/grub/powerpc/ieee1275/console.h: Removed.
4042 * include/grub/sparc64/ieee1275/console.h: Likewise.
4043 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
4044 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
4045 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
4046 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
4047 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
4048 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
4049 (grub_term_input): Pass reference to self. All users updated.
4050 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
4051 Pass reference to self. New fields normal_color, highlight_color and
4052 data. All users updated.
4053 (grub_putchar): Removed.
4054 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
4055 (grub_unicode_estimate_width): New function.
4056 (grub_term_getcharwidth): Add defaults.
4057 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
4058 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
4059 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
4060 (grub_cls): Remove EXPORT_FUNC.
4061 (grub_setcolorstate): Inline.
4062 (grub_newline_hook): Removed.
4063 * include/grub/terminfo.h: Rewritten. All users updated.
4064 * include/grub/unicode.h: New file.
4065 * include/grub/video.h (grub_video_signed_rect): New type.
4066 * kern/emu/console.c (grub_console_highlight_color): Removed.
4067 (grub_console_normal_color): Likewise.
4068 (grub_console_standard_color): Made static.
4069 (grub_ncurses_putchar): Remove mapping.
4070 (grub_ncurses_getcharwidth): Removed.
4071 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
4072 (grub_ncurses_setcolor): Removed.
4073 (grub_ncurses_getcolor): Likewise.
4074 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
4075 (grub_console_putchar): ... this.
4076 (grub_console_putchar): Handle argument difference.
4077 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
4078 console_init_early and console_init_lately.
4079 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
4080 * kern/misc.c (grub_puts): Removed.
4081 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
4082 (grub_vsnprintf_real): Remove str = NULL support.
4083 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
4084 * normal/charset.c (grub_utf8_to_ucs4): ... here.
4085 * kern/term.c (grub_putcode): Renamed to ...
4086 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
4087 (grub_putchar): Removed.
4088 (grub_xputs_dumb): New function.
4089 (grub_xputs): New variable.
4090 * lib/charset.c: Move from here ...
4091 * normal/charset.c: ... to here.
4092 (grub_ucs4_to_utf8): New function.
4093 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
4094 (join_types): New variable.
4095 (unpack_join): New function.
4096 (bidi_types): New variable.
4097 (unpack_bidi): New function.
4098 (get_bidi_type): Likewise.
4099 (get_join_type): Likewise.
4100 (is_mirrored): Likewise.
4101 (grub_unicode_get_comb_type): Likewise.
4102 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
4103 (is_type_after): Likewise.
4104 (grub_unicode_aglomerate_comb): Likewise.
4105 (bidi_line_wrap): Likewise.
4106 (grub_bidi_line_logical_to_visual): Likewise.
4107 (grub_bidi_logical_to_visual): Likewise.
4108 (grub_unicode_mirror_code): Likewise.
4109 (grub_unicode_shape_code): Likewise.
4110 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
4111 Don't use grub_putchar.
4112 * normal/main.c (grub_normal_init_page): Use grub_putcode.
4113 (grub_normal_reader_init): Likewise.
4114 (grub_xputs_saved): New variable.
4115 (GRUB_MOD_INIT): Set grub_xputs.
4116 (GRUB_MOD_FINI): Restore grub_xputs.
4117 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
4118 (menu_init): Avoid printing gfxmenu error.
4119 (show_menu): Use grub_normal_get_char_counter.
4120 * normal/menu_entry.c (update_screen): Fix out-of-array.
4121 (complete): Avoid NULL dereferencing.
4122 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
4123 * normal/menu_text.c (print_spaces): Removed.
4124 (grub_print_ucs4): Likewise.
4125 (grub_print_message_indented): Use grub_print_ucs4.
4126 (print_message): Use grub_putcode.
4127 (print_entry): Hanlde diacritics.
4128 * normal/term.c (term_state): New type.
4129 (grub_more_lines): Removed.
4130 (term_states): New variable.
4131 (grub_normal_line_counter): Renamed to ..
4132 (grub_normal_char_counter): ...this. All users updated.
4133 (grub_normal_get_line_counter): Renamed to ...
4134 (grub_normal_get_char_counter): ... this.
4135 (grub_normal_reset_more): New function.
4136 (process_newline): Removed.
4137 (print_more): New function.
4138 (grub_install_newline_hook): Removed.
4139 (map_code): New function.
4140 (grub_puts_terminal): Use grub_print_ucs4.
4141 (putglyph): New function.
4142 (putcode_real): Likewise.
4143 (grub_putcode): Use putcode_real.
4144 (get_maxwidth): New function.
4145 (get_startwidth): Likewise.
4146 (print_ucs4_terminal): Likewise.
4147 (find_term_state): Likewise.
4148 (put_glyphs_terminal): Likewise.
4149 (print_backlog): Likewise.
4150 (print_ucs4_real): Likewise.
4151 (grub_print_ucs4): Likewise.
4152 (grub_xputs_normal): Likewise.
4153 * term/efi/console.c (grub_console_putchar): Output diacritics.
4154 (grub_console_getcharwidth): Removed.
4155 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
4156 * term/gfxterm.c (clear_char): Free chars.
4157 (scroll_up): Avoid leaking memory.
4158 (grub_gfxterm_putchar): Support diacritics.
4159 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
4160 * term/i386/pc/console.c (grub_console_term_output): Declare as
4161 GRUB_TERM_CODE_TYPE_VGA.
4162 * term/i386/pc/vga.c (grub_vga_term): Declare as
4163 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
4164 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
4165 GRUB_TERM_CODE_TYPE_VGA.
4166 * term/i386/vga_common.c (map_char): Removed.
4167 (grub_console_putchar): Likewise.
4168 (grub_console_getcharwidth): Likewise.
4169 * term/ieee1275/ofconsole.c: Simplify using terminfo.
4170 (colors): Reordered to match terminfo.
4171 (grub_ofconsole_normal_color): Removed.
4172 (grub_ofconsole_writeesc): Likewise.
4173 (grub_ofconsole_highlight_color): Likewise.
4174 (grub_ofconsole_getcharwidth): Likewise.
4175 (grub_ofconsole_setcolorstate): Likewise.
4176 (grub_ofconsole_setcolor): Likewise.
4177 (grub_ofconsole_getcolor): Likewise.
4178 (grub_ofconsole_readkey): Renamed to ...
4179 (readkey): ... this. Remove escape sequence handling. Return -1 on no
4180 key.
4181 (grub_ofconsole_checkkey): Removed.
4182 (grub_ofconsole_getkey): Likewise.
4183 (grub_ofconsole_getxy): Likewise.
4184 (grub_ofconsole_gotoxy): Likewise.
4185 (grub_ofconsole_cls): Likewise.
4186 (grub_ofconsole_refresh): Likewise.
4187 (grub_ofconsole_terminfo_input): New struct.
4188 (grub_ofconsole_terminfo_output): Likewise.
4189 (grub_ofconsole_term_input): Use terminfo.
4190 (grub_ofconsole_term_output): Likewise.
4191 (grub_console_init): Split into ...
4192 (grub_console_init_early): ...this and ...
4193 (grub_console_init_lately): ...this. Use terminfo.
4194 (grub_ofconsole_putchar): Renamed to ...
4195 (put): ... this. Remove mapping.
4196 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
4197 * term/serial.c: Simplify using terminfo.
4198 (xpos): Removed.
4199 (ypos): Likewise.
4200 (keep_track): Likewise.
4201 (registered): Likewise.
4202 (input_buf): Likewise.
4203 (npending): Likewise.
4204 (serial_translate_key_sequence): Likewise.
4205 (fill_input_buf): Likewise.
4206 (grub_serial_checkkey): Likewise.
4207 (grub_serial_getkey): Likewise.
4208 (grub_serial_getxy): Likewise.
4209 (grub_serial_gotoxy): Likewise.
4210 (grub_serial_putchar): Likewise.
4211 (grub_serial_cls): Likewise.
4212 (grub_serial_setcolorstate): Likewise.
4213 (grub_serial_setcursor): Likewise.
4214 (serial_hw_init): Use serial_hw_fetch.
4215 (grub_serial_terminfo_input): New variable.
4216 (grub_serial_terminfo_output): Likewise.
4217 (grub_serial_term_input): Use terminfo.
4218 (grub_serial_term_output): Likewise.
4219 * term/terminfo.c (putstr): Use put.
4220 (grub_terminfo_all_free): New function
4221 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
4222 (grub_terminfo_output_register): New function.
4223 (grub_terminfo_output_unregister): Likewise.
4224 (grub_terminfo_getxy): Likewise.
4225 (grub_terminfo_readkey): Likewise.
4226 (grub_terminfo_checkkey): Likewise.
4227 (grub_terminfo_getkey): Likewise.
4228 (grub_terminfo_input_init): Likewise.
4229 (print_terminfo): Likewise.
4230 (grub_cmd_terminfo): Handle encoding.
4231 (grub_terminfo_gotoxy): Track position.
4232 (grub_terminfo_cls): Likewise.
4233 (grub_terminfo_putchar): Likewise.
4234 (grub_terminfo_setcolorstate): Handle colors
4235 (grub_terminfo_cursor_on): This ...
4236 (grub_terminfo_cursor_off): ... and this merged into ...
4237 (grub_terminfo_setcursor): ... this.
4238 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
4239 * unicode/ArabicShaping.txt: New file (imported from Unicode).
4240 * unicode/BidiMirroring.txt: Likewise.
4241 * unicode/UnicodeData.txt: Likewise.
4242 * unicode/COPYING: Likewise.
4243 * util/grub-editenv.c (grub_putchar): Removed.
4244 (grub_xputs_real): New function.
4245 (grub_xputs): New variable.
4246 * util/grub-fstest.c (grub_putchar): Removed.
4247 (grub_xputs_real): New function.
4248 (grub_xputs): New variable.
4249 * util/grub-mkdevicemap.c (grub_putchar): Removed.
4250 (grub_xputs_real): New function.
4251 (grub_xputs): New variable.
4252 * util/grub-probe.c (grub_putchar): Removed.
4253 (grub_xputs_real): New function.
4254 (grub_xputs): New variable.
4255 * util/grub-script-check.c (grub_putchar): Removed.
4256 (grub_xputs_real): New function.
4257 (grub_xputs): New variable.
4258 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
4259 (grub_xputs_real): New function.
4260 (grub_xputs): New variable.
4261 * util/import_unicode.py: New file.
4262 * util/grub-mkfont.c (ft_errmsgs): New array.
4263 (grub_glyph_info): Make bitmap a pointer.
4264 (file_formats): New type WIDTH_SPEC.
4265 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
4266 (options): Add width-spec.
4267 (help): Likewise.
4268 (add_char): Renamed to ...
4269 (add_glyph): ... this.
4270 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
4271 (glyph_replace): New type.
4272 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
4273 (add_char): New function.
4274 (add_subst): Likewise.
4275 (process_cursive): Likewise.
4276 (add_font): Handle GSUB.
4277 (write_font_width_spec): New function.
4278 (main): Sort glyphs.
4279 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
4280 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
4281 * kern/term.c (grub_cls): Moved from here...
4282 * normal/term.c (grub_cls): ... here.
4283
50f0bcda
CW
42842010-07-02 Colin Watson <cjwatson@ubuntu.com>
4285
4286 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
4287 suitable for using within the format argument of printf when
4288 converting grub_size_t.
4289 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
4290 "x" to convert grub_size_t arguments.
4291
40372103
VS
42922010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
4295 too long captions.
4296 (list_get_minimal_size): Take selection box into account.
4297
942a10c7
VS
42982010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
4301 NULL font.
4302
2bdb2892
CW
43032010-07-02 Colin Watson <cjwatson@ubuntu.com>
4304
4305 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
4306 devices when iterating over /dev/disk/by-id; they will be handled
4307 later if appropriate, which they aren't always (e.g. LVM).
4308
e03ed6c1
CW
43092010-07-02 Colin Watson <cjwatson@ubuntu.com>
4310
4311 * include/grub/misc.h (grub_reboot): Declare as noreturn.
4312 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
4313 fails.
4314 (grub_halt): Likewise.
4315 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
4316 reset-all fails.
4317 (grub_halt): Don't return, even if all of shut-down, power-off, and
4318 poweroff fail.
4319
47695765
CW
43202010-07-02 Colin Watson <cjwatson@ubuntu.com>
4321
4322 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
4323 arguments, not three.
4324
507736c8
CW
43252010-07-02 Colin Watson <cjwatson@ubuntu.com>
4326
4327 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
4328 * util/grub.d/10_linux.in: Use it to check for LVM, so that
4329 LVM-on-RAID is handled correctly.
4330
e3c8cd37
CW
43312010-07-02 Colin Watson <cjwatson@ubuntu.com>
4332
4333 * docs/grub.texi (Changes from GRUB Legacy): New section.
4334 (Future): Fix typo.
4335
8d4a2fec
CW
43362010-07-02 Colin Watson <cjwatson@ubuntu.com>
4337
4338 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
4339 grub.d/README accidentally ends up executable for one reason or
4340 another. Ignore it.
4341
1c4827be
VS
43422010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
4345 (gpt_partition_map_iterate): Support non-512B sectors.
4346
d9a0c941
VS
43472010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * kern/efi/init.c (grub_efi_init): Disable watchdog.
4350 Tested by: Seth Goldberg.
4351
48f27e87
VS
43522010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4353
4354 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
4355 Properly align mbi.
4356 Reported by: Seth Goldberg.
4357
b0c4f956
VS
43582010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * util/grub-mkrescue.in: Avoid module duplication.
4361
105a2e8c
SF
43622010-07-01 Sean Finney <seanius@seanius.net>
4363
4364 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
4365
5944958c
SF
43662010-07-01 Sean Finney <seanius@seanius.net>
4367
4368 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
4369
43702010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
4371
4372 * disk/lvm.c (grub_lvm_checkvalue): New function.
4373 (grub_lvm_check_flag): Likewise.
4374
b79889ba
RM
43752010-07-01 Robert Millan <rmh@gnu.org>
4376
4377 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
4378 Support 'p' as partition separator on kernel of FreeBSD (used
4379 with GPT labels).
4380 (grub_util_biosdisk_get_grub_dev): Likewise.
4381
ec1d04f1
VS
43822010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 Yeeloong firmware port.
4385
4386 * boot/mips/yeeloong/fwstart.S: New file.
4387 * bus/cs5536.c (gpiodump): New const.
4388 (set_io_space): New function.
4389 (set_iod): Likewise.
4390 (set_p2d): Likewise.
4391 (grub_cs5536_init_geode): Likewise.
4392 * commands/mips/yeeloong/lsspd.c: New file.
4393 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
4394 (serial_mod_SOURCES): New variable.
4395 (serial_mod_CFLAGS): Likewise.
4396 (serial_mod_LDFLAGS): Likewise.
4397 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
4398 term/terminfo.c and term/tparm.c.
4399 (pkglib_IMAGES): Add fwstart.img.
4400 (fwstart_img_SOURCES): New variable.
4401 (fwstart_img_CFLAGS): Likewise.
4402 (fwstart_img_ASFLAGS): Likewise.
4403 (fwstart_img_LDFLAGS): Likewise.
4404 (fwstart_img_FORMAT): Likewise.
4405 (pkglib_MODULES): Add lsspd.mod.
4406 (lsspd_mod_SOURCES): New variable.
4407 (lsspd_mod_CFLAGS): Likewise.
4408 (lsspd_mod_LDFLAGS): Likewise.
4409 (pkglib_MODULES): Add halt.mod.
4410 (halt_mod_SOURCES): New variable.
4411 (halt_mod_CFLAGS): Likewise.
4412 (halt_mod_LDFLAGS): Likewise.
4413 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
4414 (serial_mod_SOURCES): Removed.
4415 (serial_mod_CFLAGS): Likewise.
4416 (serial_mod_LDFLAGS): Likewise.
4417 * disk/ata.c (check_device): New function.
4418 (grub_ata_device_initialize): Use check_device.
4419 (grub_ata_iterate): Recheck devices.
4420 (grub_ata_open): Likewise.
4421 (grub_atapi_iterate): Likewise.
4422 (grub_atapi_open): Likewise.
4423 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
4424 (GRUB_ATA_CH1_PORT1): Likewise.
4425 (GRUB_ATA_CH0_PORT2): Likewise.
4426 (GRUB_ATA_CH1_PORT2): Likewise.
4427 * include/grub/mips/loongson.h: New file.
4428 * include/grub/mips/yeeloong/ec.h: Likewise.
4429 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
4430 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
4431 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
4432 * include/grub/misc.h (grub_halt): Declare as noreturn.
4433 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
4434 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
4435 (UART_ENABLE_FIFO_TRIGGER1): New definition.
4436 (UART_ENABLE_DTRRTS): Likewise.
4437 (UART_ENABLE_MODEM): Removed.
4438 (UART_ENABLE_OUT2): New const.
4439 * include/grub/term.h (grub_term_register_input_active): New function.
4440 (grub_term_register_output_active): Likewise.
4441 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
4442 argument.
4443 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
4444 (init_pci): New function.
4445 (grub_machine_init): Execute platform init when firmware. Init serial.
4446 (grub_halt): Implement.
4447 (grub_exit): Likewise.
4448 (grub_reboot): Likewise.
4449 * term/serial.c (serial_hw_init): Update macros.
4450 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
4451 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
4452 (image_targets): New target mipsel-yeeloong-flash.
4453 (generate_image): Support IMAGE_YEELOONG_FLASH.
4454 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
4455 (grub_video_sm712_setup): Init card.
4456 (grub_video_sm712_set_palette): Removed.
4457 * video/sm712_init.c: New file.
4458
ff4a70d2
CW
44592010-06-30 Colin Watson <cjwatson@ubuntu.com>
4460
4461 * Makefile.in (install-local): Temporarily prepend $(builddir) to
4462 PATH when running help2man and then run it on the unadorned
4463 executable names, rather than passing $(builddir)/* paths to
4464 help2man. This avoids the build directory ending up in generated
4465 manual pages.
4466
1246efeb
CW
44672010-06-29 Colin Watson <cjwatson@ubuntu.com>
4468
4469 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
4470 to avoid accidents when debugging with 'sh -x'.
4471 * util/grub-mkrescue.in: Likewise.
4472 * util/grub.d/00_header.in: Likewise.
4473 * util/grub.d/10_hurd.in: Likewise.
4474 * util/grub.d/10_kfreebsd.in: Likewise.
4475 * util/grub.d/10_linux.in: Likewise.
4476 * util/grub.d/10_netbsd.in: Likewise.
4477 * util/grub.d/10_windows.in: Likewise.
4478 * util/grub.d/20_linux_xen.in: Likewise.
4479 * util/grub.d/30_os-prober.in: Likewise.
4480 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4481
1ba9b889
CW
44822010-06-29 Colin Watson <cjwatson@ubuntu.com>
4483
4484 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
4485 last character in the buffer.
4486 Reported by: Vladimir Serbinenko.
4487
dccaf99d
RM
44882010-06-29 Robert Millan <rmh@gnu.org>
4489
4490 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
4491 (Command-line and menu entry commands): Document `badram' command.
4492
d500ed12
RM
44932010-06-28 Robert Millan <rmh@gnu.org>
4494
4495 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
4496 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
4497 command using ${GRUB_BADRAM} as parameter.
4498
20bc84a6
CW
44992010-06-28 Colin Watson <cjwatson@ubuntu.com>
4500
4501 * docs/grub.texi (Device map): New section.
4502 (Themes): New section (stub).
4503 * Makefile.in (docs/grub.info): The info documentation now builds
4504 without errors. Make sure it stays that way.
4505
4045dee1
VS
45062010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 Use normal parser for menu entries.
4509 Reported by: Thomas Frauendorfer
4510
4511 * include/grub/parser.h (grub_parser_execute): Don't export.
4512 * normal/menu.c (grub_menu_execute_entry_real): New function.
4513 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
4514
bca58c7b
CW
45152010-06-28 Colin Watson <cjwatson@ubuntu.com>
4516
4517 * docs/grub.texi (Embedded configuration): New section (replacing
4518 old "Preset Menu" stub).
4519 (Images): New section.
4520 (configfile): Note that any menu entries defined in `file' are shown
4521 immediately.
4522
dec53e63
JT
45232010-06-28 Josh Triplett <josh@joshtriplett.org>
4524
4525 * mmap/i386/pc/mmap_helper.S: Set CF on return.
4526
c06e40f7
CW
45272010-06-28 Colin Watson <cjwatson@ubuntu.com>
4528
4529 * util/grub-install.in: Add --debug-image= option.
4530
cb88052b
CW
45312010-06-28 Colin Watson <cjwatson@ubuntu.com>
4532
4533 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
4534 possible on Linux.
4535
4536 * util/deviceiter.c (check_device): Rename to ...
4537 (check_device_readable_unique): ... this. Update all callers.
4538 Maintain and check a list of which devices (by canonicalized name)
4539 have already been seen.
4540 (clear_seen_devices): New function.
4541 (compare_file_names) [__linux__]: New function.
4542 (grub_util_iterate_devices): Clear the list of seen devices on exit
4543 and (just in case) on entry.
4544 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
4545 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
4546 seen-devices list, superseded by general code in check_device.
4547
bbe34652
CW
45482010-06-28 Colin Watson <cjwatson@ubuntu.com>
4549
4550 * commands/cat.c (options): New variable.
4551 (grub_cmd_cat): Parse options. If the --dos option is given, print
4552 DOS-style "\r\n" line endings as simple newlines (Debian bug
4553 #586358).
4554 (GRUB_MOD_INIT): Use extcmd.
4555 (GRUB_MOD_FINI): Likewise.
4556 * docs/grub.texi (cat): Document --dos.
4557
412e09f3
VS
45582010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 XEN with Linux grub-mkconfig support.
4561
4562 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
4563 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
4564 GRUB_CMDLINE_XEN_DEFAULT.
4565 * util/grub.d/20_linux_xen.in: New file.
4566
53f3ef38 45672010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
4568
4569 Initialise VGA video on qemu ourselves.
4570
4571 * boot/i386/qemu/boot.S: Don't call 0xc000.
4572 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
4573 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
4574 (kernel_img_HEADERS): Add pci.h.
4575 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
4576 * configure.ac: Force unifont on qemu and yeeloong.
4577 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
4578 (grub_vga_palette_write): Use correct register.
4579 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
4580 Call grub_qemu_init_cirrus.
4581 * kern/i386/qemu/init.c: New file.
4582 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
4583
4584 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
4585
c75be4fb
PR
45862010-06-26 Pavel Roskin <proski@gnu.org>
4587
4588 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
4589 13.
4590
d8034603
CW
45912010-06-26 Colin Watson <cjwatson@ubuntu.com>
4592
4593 * docs/grub.texi (Simple configuration): Explain that
4594 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
4595 set to `true' to disable their respective recovery entries, not
4596 merely set.
4597
3fa06487
CW
45982010-06-26 Colin Watson <cjwatson@ubuntu.com>
4599
4600 Make the `source' command slightly faster.
4601
4602 * normal/main.c (grub_normal_execute): Don't re-read list files when
4603 nested.
4604
e9b29642
CW
46052010-06-23 Colin Watson <cjwatson@ubuntu.com>
4606
4607 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
4608 field position and mask size to red fields from mode_info, not
4609 green.
4610 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
4611 Remove redundant tag->common.framebuffer_type assignment.
4612 Reported by: Seth Goldberg.
4613
e726542f
CW
46142010-06-23 Colin Watson <cjwatson@ubuntu.com>
4615
4616 Sync up other versions of the Linux loader with Robert Millan's
4617 change of 2010-01-09, "Make loader output a bit more user-friendly".
4618
4619 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
4620 grub_dprintf().
4621 (grub_cmd_linux): Likewise.
4622 (grub_cmd_initrd): Likewise.
4623 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
4624 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
4625
d6e98a17
CW
46262010-06-21 Colin Watson <cjwatson@ubuntu.com>
4627
4628 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
4629 larger than MEMORY_MAP_SIZE.
4630
14d3f08e
BC
46312010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
4632
4633 Fix parallel build.
4634
4635 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
4636 dependency.
4637 * script/parser.y: #include grub_script.tab.h header.
4638
4f9613a3
VS
46392010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 Support >3GiB and <16MiB RAM in i386-qemu.
4642
4643 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
4644 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
4645 (grub_lower_mem): Removed.
4646 (grub_upper_mem): Likewise.
4647 (mem_size): Made static.
4648 (above_4g): New variable.
4649 (grub_machine_mmap_init): Detect small mem_size and above_4g.
4650 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
4651 support.
4652
05e51879
VS
46532010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4654
4655 Cirrus 5446 and Bochs video cards support.
4656
4657 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
4658 video_bochs.mod
4659 (video_cirrus_mod_SOURCES): New variable.
4660 (video_cirrus_mod_CFLAGS): Likewise.
4661 (video_cirrus_mod_LDFLAGS): Likewise.
4662 (video_bochs_mod_SOURCES): Likewise.
4663 (video_bochs_mod_CFLAGS): Likewise.
4664 (video_bochs_mod_LDFLAGS): Likewise.
4665 * include/grub/vga.h: New file.
4666 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
4667 (grub_video_fb_set_page_t): New type.
4668 (grub_video_fb_setup): New prototype.
4669 (grub_video_fb_swap_buffers): Likewise.
4670 (grub_video_fb_get_info_and_fini): Likewise.
4671 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
4672 (CRTC_DATA_PORT): Likewise.
4673 (CRTC_CURSOR): Likewise.
4674 (CRTC_CURSOR_ADDR_HIGH): Likewise.
4675 (CRTC_CURSOR_ADDR_LOW): Likewise.
4676 (CRTC_CURSOR_DISABLE): Likewise.
4677 (update_cursor): Use grub_vga_cr_write.
4678 (grub_vga_text_setcursor): Likewise.
4679 * video/bochs.c: New file.
4680 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
4681 (palette): Likewise.
4682 (palette_size): Likewise.
4683 (framebuffer): New variable.
4684 (grub_video_fb_init): Use 'framebuffer'.
4685 (grub_video_fb_fini): Likewise.
4686 (grub_video_fb_get_info): Likewise.
4687 (grub_video_fb_get_palette): Likewise.
4688 (grub_video_fb_set_palette): Likewise.
4689 (grub_video_fb_set_viewport): Likewise.
4690 (grub_video_fb_get_viewport): Likewise.
4691 (grub_video_fb_map_color): Likewise.
4692 (grub_video_fb_map_rgb): Likewise.
4693 (grub_video_fb_map_rgba): Likewise.
4694 (grub_video_fb_unmap_color): Likewise.
4695 (grub_video_fb_unmap_color_int): Likewise.
4696 (grub_video_fb_fill_rect): Likewise.
4697 (grub_video_fb_blit_bitmap): Likewise.
4698 (grub_video_fb_blit_render_target): Likewise.
4699 (grub_video_fb_scroll): Likewise.
4700 (grub_video_fb_create_render_target): Likewise.
4701 (grub_video_fb_doublebuf_blit_init): Likewise.
4702 (grub_video_fb_set_active_render_target): Handle doublebuffering.
4703 (doublebuf_pageflipping_update_screen): New function.
4704 (doublebuf_pageflipping_init): Likewise.
4705 (grub_video_fb_setup): Likewise.
4706 (grub_video_fb_swap_buffers): Likewise.
4707 (grub_video_fb_get_info_and_fini): Likewise.
4708 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
4709 All users updated.
4710 (doublebuf_pageflipping_commit): Restructured into ...
4711 (doublebuf_pageflipping_set_page): ... this.
4712 (doublebuf_pageflipping_update_screen): Removed.
4713 (doublebuf_pageflipping_init): Likewise.
4714 (double_buffering_init): Likewise.
4715 (grub_video_vbe_setup): Use grub_video_fb_setup.
4716 (grub_video_vbe_swap_buffers): Removed.
4717 (grub_video_vbe_set_active_render_target): Likewise.
4718 (grub_video_vbe_get_active_render_target): Likewise.
4719 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
4720 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
4721 grub_video_fb_set_active_render_target and
4722 grub_video_fb_get_active_render_target.
4723 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
4724 (SEQUENCER_DATA_PORT): Likewise.
4725 (MAP_MASK_REGISTER): Likewise.
4726 (CRTC_ADDR_PORT): Likewise.
4727 (CRTC_DATA_PORT): Likewise.
4728 (START_ADDR_HIGH_REGISTER): Likewise.
4729 (START_ADDR_LOW_REGISTER): Likewise.
4730 (GRAPHICS_ADDR_PORT): Likewise.
4731 (GRAPHICS_DATA_PORT): Likewise.
4732 (READ_MAP_REGISTER): Likewise.
4733 (INPUT_STATUS1_REGISTER): Likewise.
4734 (INPUT_STATUS1_VERTR_BIT): Likewise.
4735 (get_map_mask): Use grub_vga_sr_read.
4736 (set_map_mask): Use grub_vga_sr_write.
4737 (set_read_map): Use grub_vga_gr_write.
4738 (set_start_address): Use grub_vga_cr_write.
4739 * video/sm712.c (framebuffer): Remove leftover fields.
4740
4321c64a
CW
47412010-06-20 Colin Watson <cjwatson@ubuntu.com>
4742
4743 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
4744 setting GRUB_VIDEO_BACKEND. Make it available as a user override
4745 instead. Replace the gfxterm backend check with a check that
4746 ${GRUB_PREFIX}/video.lst is non-empty.
4747 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
4748 again.
4749 (load_video): New generated function. Call it before loading
4750 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
4751 * util/grub.d/10_linux.in (linux_entry): Call load_video.
4752 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
4753 * docs/grub.texi (Simple configuration): Document
4754 GRUB_VIDEO_BACKEND.
4755
47562010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 Use video functions in linux and xnu loaders.
4759
4760 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
4761 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
4762 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
4763 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
4764 loader/i386/pc/linux.c.
4765 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
4766 (find_line_len): Removed.
4767 (find_framebuf): Likewise.
4768 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
4769 * loader/i386/efi/xnu.c: Removed.
4770 * loader/i386/pc/xnu.c: Moved from here...
4771 * loader/i386/xnu.c: ...here.
4772
4773 Enable priorities in video drivers.
4774
4775 * include/grub/video.h (grub_video_adapter_prio_t): New type.
4776 (grub_video_adapter): New field prio.
4777 (grub_video_register): Respect prio when inserting.
4778 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
4779 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
4780 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
4781 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
4782 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
4783 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
4784 * video/sm712.c (grub_video_sm712_adapter): Likewise.
4785
4786 Fix SDL driver ID.
4787
4788 * include/grub/video.h (grub_video_driver_id_t): New value
4789 GRUB_VIDEO_DRIVER_SDL.
4790 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
4791
7d24e434
CW
47922010-06-17 Colin Watson <cjwatson@ubuntu.com>
4793
4794 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
4795 argument to printf.
4796 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4797
c88a83f6
CW
47982010-06-17 Colin Watson <cjwatson@ubuntu.com>
4799
4800 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
4801 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4802
094dfb69
CW
48032010-06-17 Colin Watson <cjwatson@ubuntu.com>
4804
4805 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
4806 directly, and recommend grub-install instead.
4807 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
4808
2164da6b
CW
48092010-06-17 Colin Watson <cjwatson@ubuntu.com>
4810
4811 Fix i386-pc prefix handling with nested partitions (Debian bug
4812 #585068). Note that the case where the core image is booted using
4813 multiboot and relocated from its original location still requires
4814 more work.
4815
4816 * kern/i386/pc/init.c (make_install_device): If the prefix starts
4817 with "(,", fill the boot drive in between those two characters, but
4818 expect that a full partition specification including partition map
4819 names will follow.
4820 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
4821 specified, write a prefix without the drive name but including a
4822 full partition specification.
4823
044e2e60
CW
48242010-06-16 Colin Watson <cjwatson@ubuntu.com>
4825
4826 * util/grub-mkconfig.in: Ignore non-option arguments, for
4827 compatibility with older versions (before 2010-06-12) which did the
4828 same. In particular, this makes it easier to ship an update-grub
4829 wrapper which is compatible with that used with GRUB Legacy (Debian
4830 bug #586056).
4831
5591324f
GS
48322010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4833
4834 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
4835 for manual page generation.
4836
662e24d5
GS
48372010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4838
4839 * po/POTFILES: Remove leftover commands/handler.c.
4840
8d70754e
CW
48412010-06-14 Colin Watson <cjwatson@ubuntu.com>
4842
4843 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
4844 left this script non-functional.
4845
41160e2e
CW
48462010-06-14 Colin Watson <cjwatson@ubuntu.com>
4847
4848 * docs/man/grub-emu.h2m: New file.
4849
b5309cc1
CW
48502010-06-13 Colin Watson <cjwatson@ubuntu.com>
4851
4852 * docs/grub.texi (Commands): Document reduced command set in rescue
4853 mode.
4854 (cpuid): New section.
4855
fcb2d090
GS
48562010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
4857
4858 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
4859 new partition naming style.
4860 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
4861
96e5c556
BC
48622010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
4863
4864 Add "-o grub.iso" like cmdline options support.
4865
4866 * util/grub-install.in: Improve cmdline option parsing.
4867 * util/grub-mkconfig.in: Likewise.
4868 * util/grub-mkrescue.in: Likewise.
4869 * util/grub-reboot.in: Likewise.
4870 * util/grub-set-default.in: Likewise.
4871 * util/i386/efi/grub-install.in: Likewise.
4872 * util/ieee1275/grub-install.in: Likewise.
4873 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4874
c16be99b
CW
48752010-06-12 Colin Watson <cjwatson@ubuntu.com>
4876
4877 * .bzrignore: Ignore 41_custom.
4878
ce08a9fb
TS
48792010-06-12 Thomas Schmitt <scdbackup@gmx.net>
4880
4881 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
4882
7beac90c
CW
48832010-06-12 Colin Watson <cjwatson@ubuntu.com>
4884
4885 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
4886 prototype declarations.
4887
4888 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
4889 generating fs, partmap, and video lists.
4890 * include/grub/fs.h (grub_fs_register): Omit prototype if
4891 GRUB_LST_GENERATOR is defined.
4892 * include/grub/partition.h (grub_partition_map_register): Likewise.
4893 * include/grub/video.h (grub_video_register): Likewise.
4894
1c8f0f8d
JM
48952010-06-12 Javier Martín <lordhabbit@gmail.com>
4896
4897 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
4898
a6085973
TS
48992010-06-12 Thomas Schmitt <scdbackup@gmx.net>
4900
4901 * util/grub-mkrescue.in: Support --xorriso argument.
4902
25c56d29
VS
49032010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
4906 Suggested by: Thomas Schmitt.
4907
e03e4b24
VS
49082010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
4911 Suggested by: Thomas Schmitt.
4912
57711df6
VS
49132010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 custom.cfg support.
4916
4917 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
4918 * util/grub.d/41_custom.in: New file.
4919
ee62c427
CW
49202010-06-12 Colin Watson <cjwatson@ubuntu.com>
4921
4922 * util/grub-mkrescue.in (make_image): Remove sh module, which has
4923 been merged back into normal.
4924
283af07a
CW
49252010-06-11 Colin Watson <cjwatson@ubuntu.com>
4926
4927 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
4928 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
4929
56a0d956
CW
49302010-06-11 Colin Watson <cjwatson@ubuntu.com>
4931
4932 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
4933 when generating manual pages.
4934 * docs/man/grub-bin2h.h2m: New file.
4935 * docs/man/grub-editenv.h2m: New file.
4936 * docs/man/grub-fstest.h2m: New file.
4937 * docs/man/grub-install.h2m: New file.
4938 * docs/man/grub-macho2img.h2m: New file.
4939 * docs/man/grub-mkconfig.h2m: New file.
4940 * docs/man/grub-mkdevicemap.h2m: New file.
4941 * docs/man/grub-mkfont.h2m: New file.
4942 * docs/man/grub-mkimage.h2m: New file.
4943 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
4944 * docs/man/grub-mkrelpath.h2m: New file.
4945 * docs/man/grub-mkrescue.h2m: New file.
4946 * docs/man/grub-ofpathname.h2m: New file.
4947 * docs/man/grub-pe2elf.h2m: New file.
4948 * docs/man/grub-probe.h2m: New file.
4949 * docs/man/grub-reboot.h2m: New file.
4950 * docs/man/grub-script-check.h2m: New file.
4951 * docs/man/grub-set-default.h2m: New file.
4952 * docs/man/grub-setup.h2m: New file.
4953
3a37e322
VS
49542010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 Use FOR_* macros instead of *_iterate whenever possible.
4957
4958 * commands/handler.c: Removed.
4959 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
4960 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
4961 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4962 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
4963 (grub_probe_SOURCES): Remove kern/parser.c.
4964 (util/grub-script-check.c_DEPENDENCIES): Removed.
4965 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
4966 and grub_script_check_init.c.
4967 (grub_script_check_init.lst): Removed.
4968 (grub_script_check_init.h): Likewise.
4969 (grub_script_check_init.c): Likewise.
4970 (pkglib_MODULES): Remove handler.mod and sh.mod.
4971 (handler_mod_SOURCES): Removed.
4972 (handler_mod_CFLAGS): Likewise.
4973 (handler_mod_LDFLAGS): Likewise.
4974 (normal_mod_SOURCES): Remove normal/handler.c.
4975 Add script/main.c, script/script.c, script/execute.c,
4976 script/function.c, script/lexer.c, grub_script.tab.c
4977 and grub_script.yy.c.
4978 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4979 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4980 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
4981 (grub_setup_SOURCES): Remove kern/parser.c.
4982 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4983 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
4984 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
4985 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4986 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4987 (grub_setup_SOURCES): Remove kern/parser.c.
4988 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
4989 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
4990 * include/grub/command.h (grub_command_iterate): Removed.
4991 (FOR_COMMANDS): New macro.
4992 * include/grub/dl.h (grub_dl): New member next.
4993 (grub_dl_iterate): Removed.
4994 (grub_dl_head): New variable declaration.
4995 (FOR_DL_MODULES): New macro.
4996 * include/grub/fs.h: Include list.h.
4997 (grub_fs): Make next first element.
4998 (grub_fs_list): New variable declaration.
4999 (grub_fs_register): Make inline.
5000 (grub_fs_unregister): Likewise.
5001 (grub_fs_iterate): Removed.
5002 (FOR_FILESYSTEMS): New macro.
5003 * include/grub/handler.h: Removed.
5004 * include/grub/list.h (grub_list_hook_t): Removed.
5005 (grub_list_test_t): Likewise.
5006 (grub_list_pop): Likewise.
5007 (grub_list_iterate): Likewise.
5008 (grub_list_insert): Likewise.
5009 (FOR_LIST_ELEMENTS): New macro.
5010 * include/grub/parser.h (grub_parser_class): Removed.
5011 (grub_parser_register): Likewise.
5012 (grub_parser_unregister): Likewise.
5013 (grub_parser_get_current): Likewise.
5014 (grub_parser_set_current): Likewise.
5015 (grub_register_rescue_parser): Likewise.
5016 (grub_rescue_parse_line): New function.
5017 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
5018 * include/grub/script_sh.h (grub_script_function_list): New variable
5019 declaration.
5020 (FOR_SCRIPT_FUNCTIONS): New macro.
5021 (grub_script_function_iterate): Removed.
5022 (grub_normal_parse_line): New prototype.
5023 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
5024 (FOR_DISABLED_TERM_INPUTS): Likewise.
5025 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5026 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5027 * include/grub/video.h (grub_video_adapter): Move 'next' to first
5028 element.
5029 (grub_video_register): Inline.
5030 (grub_video_unregister): Likewise.
5031 (grub_video_adapter_list): New variable declaration.
5032 (grub_video_iterate): Removed.
5033 (FOR_VIDEO_ADAPTERS): New macro.
5034 * kern/dl.c (grub_dl_list): Removed. All users updated.
5035 (grub_dl_iterate): Removed.
5036 * kern/fs.c (grub_fs_list): Make global.
5037 (grub_fs_register): Removed.
5038 (grub_fs_unregister): Likewise.
5039 (grub_fs_iterate): Likewise.
5040 * kern/handler.c: Removed.
5041 * kern/list.c (grub_list_pop): Removed.
5042 (grub_list_iterate): Likewise.
5043 (grub_list_insert): Likewise.
5044 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
5045 (grub_prio_list_insert): Don't use grub_list_insert.
5046 * kern/main.c (grub_register_rescue_parser): Don't call
5047 grub_register_rescue_parser.
5048 * kern/parser.c (grub_parser_class): Removed.
5049 (grub_parser_execute): Use grub_rescue_parse_line.
5050 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
5051 (grub_rescue_parser): Removed.
5052 (grub_register_rescue_parser): Likewise.
5053 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
5054 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
5055 (grub_auth_check_authentication): Likewise.
5056 * normal/completion.c (iterate_command): Removed.
5057 (grub_normal_do_completion): Use FOR_COMMANDS.
5058 * normal/handler.c: Removed.
5059 * normal/main.c (read_config_file): Remove parser changing.
5060 (grub_normal_execute): Don't call read_handler_list.
5061 (grub_normal_read_line_real): Statically allocate prompt.
5062 (grub_cmdline_run): Use grub_normal_parse_line.
5063 (GRUB_MOD_FINI): Don't call free_handler_list.
5064 * normal/menu_entry.c (run): Likewise.
5065 * script/function.c (grub_script_function_list): Make global.
5066 (grub_script_function_iterate): Removed.
5067 * script/main.c (grub_normal_parse_line): Make global.
5068 (grub_sh_parser): Removed.
5069 (GRUB_MOD_INIT): Likewise.
5070 (GRUB_MOD_FINI): Likewise.
5071 * tests/lib/functional_test.c (grub_functional_test): Use
5072 FOR_LIST_ELEMENTS.
5073 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
5074 (grub_test_run): Use FOR_LIST_ELEMENTS.
5075 * tests/lib/unit_test.c (main): Likewise.
5076 * util/deviceiter.c (grub_util_iterate_devices): Don't use
5077 grub_list_pop.
5078 * util/grub-fstest.c (grub_term_input_class): Removed.
5079 (grub_term_output_class): Likewise.
5080 * util/grub-probe.c: Likewise.
5081 * util/i386/pc/grub-setup.c: Likewise.
5082 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5083 * util/grub-script-check.c (main): Don't call grub_init_all and
5084 grub_fini_all.
5085 * video/video.c (grub_video_adapter_list): Make global.
5086 (grub_video_register): Removed.
5087 (grub_video_unregister): Likewise.
5088 (grub_video_iterate): Likewise.
5089
6289c3a7
VS
50902010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
5093 reported by Henrique Ferreiro.
5094
91460247
RM
50952010-06-09 Robert Millan <rmh@gnu.org>
5096
5097 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
5098 ones, when both are available.
5099
0ea7c4f9
GS
51002010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5101
5102 Make --version uniform and avoid hard-coded program name.
5103
5104 * util/grub-mkimage.c (main): Use `program_name' instead of
5105 hard-coded string.
5106 * util/i386/pc/grub-setup.c (main): Likewise.
5107 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
5108 * util/grub-install.in: Save the basename of $0 in $self, and use the
5109 latter in informational messages. Use the same format for --version
5110 as the binary programs.
5111 * util/grub-mkconfig.in: Likewise.
5112 * util/grub-mkrescue.in: Likewise.
5113 * util/grub-reboot.in: Likewise.
5114 * util/grub-set-default.in: Likewise.
5115 * util/i386/efi/grub-install.in: Likewise.
5116 * util/ieee1275/grub-install.in: Likewise.
5117 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5118
e8a6f3b6
GS
51192010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5120
5121 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
5122 embedding area. Use <= instead of == when checking for non-emptiness.
5123
f4d095d7
GS
51242010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5125
5126 * configure.ac: Add `.' to the directories searched for unifont.
5127
50e532ca
CW
51282010-06-08 Colin Watson <cjwatson@ubuntu.com>
5129
5130 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
5131 grub_script.yy.h.
5132
d39f3dec
CW
51332010-06-08 Colin Watson <cjwatson@ubuntu.com>
5134
5135 * docs/grub.texi (History): Expand to cover GRUB 2.
5136 (Serial terminal): Refer to `terminal_input' and `terminal_output'
5137 commands, not `terminal'.
5138 (serial): Likewise.
5139 (terminal_input): New section.
5140 (terminal_output): New section.
5141 (uppermem): New section (stub).
5142 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
5143
6ef0ddb4
CW
51442010-06-08 Colin Watson <cjwatson@ubuntu.com>
5145
5146 * docs/grub.texi (Security): Menu entries are unrestricted by
5147 default, not restricted to superusers as I had previously thought.
5148 Reword to account for this.
5149
e0f4c438
CW
51502010-06-07 Colin Watson <cjwatson@ubuntu.com>
5151
5152 * kern/emu/misc.c (device_mapper_null_log): New function.
5153 (grub_device_mapper_supported): New function.
5154 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
5155 prototype.
5156 * kern/emu/hostdisk.c (find_partition_start): Check whether
5157 device-mapper is supported before trying to use it.
5158 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
5159
da908200
CW
51602010-06-07 Colin Watson <cjwatson@ubuntu.com>
5161
5162 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
5163 (File name syntax): Likewise.
5164 (help): --all is no longer supported in GRUB 2. Be more precise
5165 about pattern matching.
5166
fb55c3ac
CW
51672010-06-07 Colin Watson <cjwatson@ubuntu.com>
5168
5169 * normal/completion.c (grub_normal_do_completion): When completing
5170 arguments to "set" and the current word contains an equals sign,
5171 skip to after the equals sign before starting completion.
5172
258c2573
CW
51732010-06-07 Colin Watson <cjwatson@ubuntu.com>
5174
5175 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
5176
ee75515e
CW
51772010-06-07 Colin Watson <cjwatson@ubuntu.com>
5178
5179 * docs/grub.texi (Network): New section.
5180 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
5181 `(nd)' as in GRUB Legacy.
5182 (pxe_unload): New section.
5183
a6a700aa
CW
51842010-06-07 Colin Watson <cjwatson@ubuntu.com>
5185
5186 * docs/grub.texi (Troubleshooting): `echo' is not usually available
5187 in the rescue shell, so recommend using `set' instead. Thanks,
5188 Jordan Uggla.
5189
4003dd38
CW
51902010-06-07 Colin Watson <cjwatson@ubuntu.com>
5191
5192 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
5193 (password): New section.
5194 (password_pbkdf2): New section.
5195 (search): New section.
5196 (Security): New section.
5197 (Troubleshooting): New section, currently very incomplete.
5198 (Invoking grub-mkpasswd-pbkdf2): New section.
5199 (Internals): New section, currently very incomplete.
5200
e1cbcc40
CW
52012010-06-07 Colin Watson <cjwatson@ubuntu.com>
5202
5203 * util/grub.d/00_header.in: Add some more quoting (of
5204 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
5205 work again.
5206 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
5207
db8fa1ad
CW
52082010-06-07 Colin Watson <cjwatson@ubuntu.com>
5209
5210 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
5211 to `count', fixing variable shadowing that broke the -c option.
5212
52132010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
5214
5215 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
5216 in case they contain spaces.
5217
f28a9212
CW
52182010-06-04 Colin Watson <cjwatson@ubuntu.com>
5219
5220 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
5221 "part_" to partmap module names, in line with grub-install.
5222 Reported by: Jindřich Makovička (Debian bug #584426).
5223
9cdfe32f
CW
52242010-06-04 Colin Watson <cjwatson@ubuntu.com>
5225
5226 * util/grub-mkimage.c: Make target-related error messages slightly
5227 more helpful; -O talks about "format". Explicitly point to the use
5228 of -O if no target is specified.
5229 Reported by: Didier Raboud (Debian bug #584415).
5230
795b593a
CW
52312010-06-03 Colin Watson <cjwatson@ubuntu.com>
5232
5233 * INSTALL: Document several build requirements for optional features
5234 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
5235
9d9b5833
GS
52362010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
5237
5238 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
5239 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
5240 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
5241
0819fec8
CW
52422010-06-02 Colin Watson <cjwatson@ubuntu.com>
5243
5244 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
5245 Thanks to Jordan Uggla for spotting this.
5246
49396b4f
VS
52472010-06-02 Aleš Nesrsta <starous@volny.cz>
5248
5249 Finally make USB usable.
5250
5251 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
5252 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
5253 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
5254 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
5255 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
5256 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
5257 (GRUB_OHCI_FSMPS): Likewise.
5258 (GRUB_OHCI_PERIODIC_START): Likewise.
5259 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
5260 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
5261 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
5262 (GRUB_OHCI_SET_PORT_RESET): Likewise.
5263 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
5264 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
5265 (grub_ohci_transaction): Likewise.
5266 (grub_ohci_transfer): Improve condition detection algorithms.
5267 Handle toggle property. Program the transactions correctly.
5268 Improve error handling. Various important fixups.
5269 (grub_ohci_portstatus): Put register writes in right order.
5270 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
5271 (grub_uhci_transfer): Don't show "failed" message on success.
5272 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
5273 array.
5274 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
5275 determine its size.
5276 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
5277 before initialization is completed. Use IN direction for empty
5278 transfers. Use last_trans and compute toggle.
5279 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
5280 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
5281 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
5282 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
5283 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
5284 (grub_usb_device): Increase toggle to 256.
5285 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
5286 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
5287 GRUB_USBMS_SUBCLASS_SFF8070.
5288 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
5289 (grub_scsi_inquiry): New member page and alloc_length.
5290 (grub_scsi_request_sense): New structure.
5291 (grub_scsi_request_sense_data): Likewise.
5292 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
5293 control.
5294 * disk/scsi.c (grub_scsi_request_sense): New function.
5295 (grub_scsi_test_unit_ready): Likewise.
5296 (grub_scsi_inquiry): Fill new fields.
5297 (grub_scsi_read_capacity): Likewise.
5298 (grub_scsi_read10): Add request sense at the end.
5299 (grub_scsi_read12): Likewise.
5300 (grub_scsi_write10): Likewise.
5301 (grub_scsi_write12): Likewise.
5302 (grub_scsi_open): Add Test Unit Ready.
5303 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
5304 Support additional subclasses. Con't clear halt yet. Activate the
5305 proper config. Calculate LUNs correctly.
5306 (grub_usbms_transfer): Various important fixups.
5307
53082010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
5311 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
5312 (grub_ohci_fini_hw): New function.
5313 (grub_ohci_restore_hw): Likewise.
5314 (GRUB_MOD_INIT(ohci)): Register preboot hook.
5315 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
5316 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
5317
53182010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 Dedicated DMA allocations.
5321
5322 * bus/pci.c (grub_memalign_dma32): New function
5323 (grub_dma_free): Likewise.
5324 (grub_dma_get_virt): Likewise.
5325 (grub_dma_get_phys): Likewise.
5326 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
5327 (grub_ohci_pci_iter): Use dma32_alloc.
5328 (grub_ohci_transfer): Likewise.
5329 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
5330 (grub_usb_bulk_readwrite): Likewise.
5331 * include/grub/pci.h: Add declarations.
5332
53332010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5334
5335 CS5536 support.
5336
5337 * bus/cs5536.c: New file.
5338 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
5339 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
5340 (cs5536_mod_SOURCES): New variable.
5341 (cs5536_mod_CFLAGS): Likewise.
5342 (cs5536_mod_LDFLAGS): Likewise.
5343 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
5344 machine/pci.h.
5345 (kernel_img_SOURCES): Add bus/cs5536.c.
5346 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
5347 usb_keyboard.mod.
5348 (usb_mod_SOURCES): New variable.
5349 (usb_mod_CFLAGS): New variable.
5350 (usb_mod_LDFLAGS): New variable.
5351 (usbtest_mod_SOURCES): New variable.
5352 (usbtest_mod_CFLAGS): New variable.
5353 (usbtest_mod_LDFLAGS): New variable.
5354 (ohci_mod_SOURCES): New variable.
5355 (ohci_mod_CFLAGS): New variable.
5356 (ohci_mod_LDFLAGS): New variable.
5357 (usbms_mod_SOURCES): New variable.
5358 (usbms_mod_CFLAGS): New variable.
5359 (usbms_mod_LDFLAGS): New variable.
5360 (usb_keyboard_mod_SOURCES): New variable.
5361 (usb_keyboard_mod_CFLAGS): New variable.
5362 (usb_keyboard_mod_LDFLAGS): New variable.
5363 * include/grub/smbus.h: New file.
5364 * include/grub/cs5536.h: New file.
5365
0b35b2a9
CW
53662010-06-02 Colin Watson <cjwatson@ubuntu.com>
5367
5368 * util/grub.d/00_header.in: Add safety check to make sure that
5369 ${locale_dir} exists before trying to probe it.
5370
ca0afd5b
CW
53712010-06-02 Colin Watson <cjwatson@ubuntu.com>
5372
5373 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
5374 per the GNU Coding Standards; this is now too obscure to be worth
5375 documenting.
5376 (QNX): Likewise.
5377 (chainloader): Remove cross-reference to `SCO UnixWare'.
5378
1c41aa78
CW
53792010-06-02 Colin Watson <cjwatson@ubuntu.com>
5380
5381 * docs/grub.texi (Chain-loading): New section.
5382 (DOS/Windows): New section, borrowed from GRUB Legacy with details
5383 adjusted for GRUB 2.
5384 (SCO UnixWare): Likewise.
5385 (QNX): Likewise.
5386 (chainloader): Add reference to `Block list syntax'.
5387 (drivemap): New section.
5388 (parttool): New section.
5389
bb8ea0f5
CW
53902010-06-02 Colin Watson <cjwatson@ubuntu.com>
5391
5392 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
5393 the grub shell'.
5394 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
5395 (Installing GRUB using grub-install): Remove reference to the grub
5396 shell; mention `grub-mkimage' and `grub-setup' instead.
5397 (Invoking grub-install): Likewise.
5398 (Interface): Add reference to `Menu entry editor'.
5399 (serial): Remove `--device' option.
5400
288dd6ed
CW
54012010-06-02 Colin Watson <cjwatson@ubuntu.com>
5402
5403 * docs/grub.texi (Configuration): New section, documenting
5404 configuration file generation using grub-mkconfig. I've left a slot
5405 for documenting the full shell scripting format but have not yet
5406 started on writing that up.
5407 (Invoking grub-mkconfig): New section.
5408
34c9f0e9
CW
54092010-06-02 Colin Watson <cjwatson@ubuntu.com>
5410
5411 * docs/grub.texi (direntry): Remove grub-terminfo reference.
5412 (GNU GRUB manual): Likewise.
5413 (General commands): Update description of `terminfo' for GRUB 2.
5414
9121567e
CW
54152010-06-02 Colin Watson <cjwatson@ubuntu.com>
5416
5417 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
5418 (GRUB_MOD_INIT): Fix capitalisation.
5419 * docs/grub.texi (Command-line and menu entry commands): Document
5420 gettext and gptsync commands.
5421
ab631611
CW
54222010-06-02 Colin Watson <cjwatson@ubuntu.com>
5423
5424 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
5425 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
5426
bde4a9ac
CW
54272010-06-01 Colin Watson <cjwatson@ubuntu.com>
5428
5429 Add btrfs probing support, currently only in the single-device case.
5430
5431 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
5432 function.
5433 (grub_guess_root_device): Call find_root_device_from_mountinfo
5434 before looking in /dev.
5435
b1d17e10
VS
54362010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
5439 GRUB_DISK_SIZE_UNKNOWN.
5440 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
5441
dfbfe004
JS
54422010-05-31 Jiro SEKIBA <jir@unicus.jp>
5443
5444 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
5445 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
5446 corrupted or not synced properly.
5447
c2ffc8e9
VS
54482010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
5451 Reported by: Seth Goldberg.
5452
56293166
VS
54532010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5454
5455 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
5456 addition of dest.
5457 Reported by: Seth Goldberg.
5458
7620e7de
VS
54592010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
5462 Reported by: Seth Goldberg.
5463
c837af3f
VS
54642010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
5467 64-bit address as signed on MIPS.
5468
c7c75cf4
CW
54692010-05-28 Colin Watson <cjwatson@ubuntu.com>
5470
5471 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
5472 to the empty string.
5473
fa4b8490
BC
54742010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
5475
5476 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
5477
5478 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
5479 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
5480 * kern/misc.c (__enable_execute_stack): Disable on
5481 GRUB_MACHINE_EMU.
5482
a33075b9
CW
54832010-05-28 Colin Watson <cjwatson@ubuntu.com>
5484
5485 Make grub-probe work with symbolic links under /dev/mapper as well
5486 as with real block devices. The Linux world seems to be (at best)
5487 in transition here, and GRUB shouldn't get caught in the middle.
5488
5489 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
5490 /dev/mapper.
5491
d8708134
CW
54922010-05-27 Colin Watson <cjwatson@ubuntu.com>
5493
5494 * util/grub-script-check.c (main): Ensure defined behaviour on empty
5495 input files (in which case exit zero).
5496
db2102a0
CW
54972010-05-27 Colin Watson <cjwatson@ubuntu.com>
5498
5499 * kern/emu/misc.c (canonicalize_file_name): realpath can still
5500 return NULL for various reasons even if it has a maximum-length
5501 buffer: for example, there might be a symlink loop, or the path
5502 might exceed PATH_MAX. If this happens, return NULL.
5503
5fdba519
RM
55042010-05-27 Robert Millan <rmh@gnu.org>
5505
5506 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
5507 partmap module to handle cross-partmap setups.
5508 Reported by Orestes Mas. Gràcies!
5509
d1d368e4
CW
55102010-05-27 Colin Watson <cjwatson@ubuntu.com>
5511
5512 * util/grub-mkrescue.in: Initialise override_dir rather than
5513 assuming that it's unset or empty in the environment.
5514
95ac3c73
GS
55152010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
5516
5517 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
5518 variable index into p_index to suppress a warning with -Wshadow.
5519
7d8c0213
BC
55202010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
5521
5522 * INSTALL: Added flex >= 2.5.35 requirement.
5523
db4d5813
VS
55242010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
5527
f24f4300
VS
55282010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 cmostest support.
5531
5532 * commands/i386/cmostest.c: New file.
5533 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
5534 (cmostest_mod_SOURCES): New variable.
5535 (cmostest_mod_CFLAGS): Likewise.
5536 (cmostest_mod_LDFLAGS): Likewise.
5537 * conf/i386-pc.rmk: Likewise.
5538 * docs/grub.texi (Vendor power-on keys): New section.
5539 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
5540 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
5541 and GRUB_BUTTON_CMOS_ADDRESS.
5542 * util/grub.d/00_header.in: Handle powering-on by separate button.
5543
ad603f61
VS
55442010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
5547 Removed drawing_scrollbar argument. All users updated
5548 Fixes #29792.
5549 Reported by Jo Shields
5550
3ecb080a
VS
55512010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
5554 buffer since gfxterm handles double repaint.
5555
5f2316c1
VS
55562010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5557
5558 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
5559 * term/gfxterm.c (real_scroll): Likewise.
5560
9a25f885
VS
55612010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
5564 before calling BIOS.
5565
39fbb79a
VS
55662010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * include/grub/i18n.h: Always enable grub_gettext.
5569
228cfa97
VS
55702010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5571
5572 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
5573 partition naming style.
5574
21717c8f
CW
55752010-05-21 Colin Watson <cjwatson@ubuntu.com>
5576
5577 * util/grub-mkconfig.in: Fix handling of -o so that it works when
5578 not the first option.
5579
c0f48e65
CW
55802010-05-20 Colin Watson <cjwatson@ubuntu.com>
5581
5582 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
5583
96779aec
CW
55842010-05-20 Colin Watson <cjwatson@ubuntu.com>
5585
5586 * util/misc.c: Move inclusion of <limits.h> to ...
5587 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
5588
fa9d256e
GS
55892010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5590
5591 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
5592 Fix merge error in NetBSD code.
5593 (find_partition_start) [__NetBSD__]: Likewise.
5594
123b7a85
BC
55952010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
5596
5597 Fix grub-mkrescue usage unit testing.
5598
5599 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
5600
74276c0d
CF
56012010-05-18 Christian Franke <franke@computer.org>
5602
5603 * util/grub.d/10_windows.in: Use path names instead of
5604 drive letters to prevent warning from Cygwin 1.7.
5605 Add drivemap command to menuentry if needed.
5606
c4f7b523
ST
56072010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
5608
5609 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
5610 gnumach and gnumach.gz.
5611
95b97950
VS
56122010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5613
5614 * include/grub/i18n.h (gettext): Inline instead of using #define.
5615 (grub_gettext): Likewise.
5616 (_): Likewise.
5617
01b8d2d7
VS
56182010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
5621 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
5622 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
5623 (main): Add a slash after pkglibdirroot.
5624
654e1d1e
VS
56252010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5626
5627 * util/grub-install.in: Add missing "in" keyword.
5628
26966aeb
VS
56292010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
5632 Reported by: Seth Goldberg.
5633
75006747
VS
56342010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
5637
74cbf5bd
CW
56382010-05-18 Colin Watson <cjwatson@ubuntu.com>
5639
5640 * configure.ac: Check for Linux device-mapper support.
5641
5642 * util/hostdisk.c (device_is_mapped): New function.
5643 (find_partition_start): New function, partly broken out from
5644 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
5645 device-mapper support added.
5646 (linux_find_partition): Use find_partition_start.
5647 (convert_system_partition_to_system_disk): Add `st' argument.
5648 Support Linux /dev/mapper/* devices if device-mapper support is
5649 available; only DM-RAID devices are understood at present.
5650 (find_system_device): Add `st' argument. Pass it to
5651 convert_system_partition_to_system_disk.
5652 (grub_util_biosdisk_get_grub_dev): Pass stat result to
5653 find_system_device and convert_system_partition_to_system_disk. Use
5654 find_partition_start.
5655
5656 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
5657 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
5658 * util/deviceiter.c [__linux__]: Define MINOR.
5659 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
5660 * util/mkdevicemap.c (grub_putchar): New function.
5661 (grub_getkey): New function.
5662 (grub_refresh): New function.
5663 (main): Set debug=all if -v -v is used.
5664
355b51e9
CW
56652010-05-18 Colin Watson <cjwatson@ubuntu.com>
5666
5667 Fix build with non-GNU libcs.
5668
5669 * util/misc.c (canonicalize_file_name): Move to ...
5670 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
5671 grub_make_system_path_relative_to_its_root.
5672
7fb5c25f
CW
56732010-05-18 Colin Watson <cjwatson@ubuntu.com>
5674
5675 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
5676 we handle finding grub-mkimage. Default to finding grub-mkimage in
5677 ${bindir} with program_transform_name applied, and provide a
5678 --grub-mkimage option to override this.
5679
1d3293d6
VS
56802010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5681
5682 Remove grub-mkisofs.
5683
5684 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
5685 (grub_mkisofs_SOURCES): Removed.
5686 (grub_mkisofs_CFLAGS): Removed.
5687 * util/mkisofs/defaults.h: Removed.
5688 * util/mkisofs/eltorito.c: Likewise.
5689 * util/mkisofs/exclude.h: Likewise.
5690 * util/mkisofs/hash.c: Likewise.
5691 * util/mkisofs/include/: Likewise.
5692 * util/mkisofs/include/fctldefs.h: Likewise.
5693 * util/mkisofs/include/mconfig.h: Likewise.
5694 * util/mkisofs/include/prototyp.h: Likewise.
5695 * util/mkisofs/include/statdefs.h: Likewise.
5696 * util/mkisofs/iso9660.h: Likewise.
5697 * util/mkisofs/joliet.c: Likewise.
5698 * util/mkisofs/match.c: Likewise.
5699 * util/mkisofs/match.h: Likewise.
5700 * util/mkisofs/mkisofs.c: Likewise.
5701 * util/mkisofs/mkisofs.h: Likewise.
5702 * util/mkisofs/msdos_partition.h: Likewise.
5703 * util/mkisofs/multi.c: Likewise.
5704 * util/mkisofs/name.c: Likewise.
5705 * util/mkisofs/rock.c: Likewise.
5706 * util/mkisofs/tree.c: Likewise.
5707 * util/mkisofs/write.c: Likewise.
5708
5dde9afe
VS
57092010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 Unify grub-mkimage accross platforms.
5712
5713 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
5714 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
5715 (grub_mkelfimage_SOURCES): Removed.
5716 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
5717 (util/grub-mkimage.c_DEPENDENCIES): .. this.
5718 (bin_UTILITIES): Add grub-mkimage.
5719 (grub_mkimage_SOURCES): New variable.
5720 (kernel_img_HEADERS): Remove machine/kernel.h.
5721 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
5722 (pkglib_PROGRAMS): Add kernel.img.
5723 (kernel_img_HEADERS): Add machine/kernel.h.
5724 (kernel_img_FORMAT): Removed.
5725 (bin_UTILITIES): Remove grub-mkimage.
5726 (grub_mkimage_SOURCES): Removed.
5727 (grub_mkimage_CFLAGS): Likewise.
5728 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5729 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
5730 (pkglib_PROGRAMS): Add kernel.img.
5731 (bin_UTILITIES): Remove grub-mkimage.
5732 (grub_mkimage_SOURCES): Removed.
5733 (grub_mkimage_CFLAGS): Likewise.
5734 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5735 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
5736 (pkglib_PROGRAMS): Add kernel.img.
5737 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
5738 (pkglib_PROGRAMS): Add kernel.img.
5739 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
5740 (grub_mkimage_SOURCES): Removed.
5741 (grub_mkimage_CFLAGS): Likewise.
5742 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5743 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
5744 (pkglib_PROGRAMS): Add kernel.img.
5745 (bin_UTILITIES): Remove grub-mkimage.
5746 (grub_mkimage_SOURCES): Removed.
5747 (grub_mkimage_CFLAGS): Likewise.
5748 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5749 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
5750 (grub_mkimage_SOURCES): Removed.
5751 (grub_mkimage_CFLAGS): Likewise.
5752 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
5753 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
5754 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
5755 (grub_pe32_optional_header): ... this.
5756 (grub_pe64_optional_header): ... and this. All users updated.
5757 (GRUB_PE32_PE32_MAGIC): Split into ..
5758 (GRUB_PE32_PE32_MAGIC): .. this.
5759 (GRUB_PE32_PE64_MAGIC): .. and this.
5760 (GRUB_PE32_SIGNATURE_SIZE): New definition.
5761 * include/grub/elf.h (PT_GNU_STACK): New definition.
5762 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
5763 * include/grub/i386/efi/kernel.h: Likewise.
5764 * include/grub/i386/kernel.h: Likewise.
5765 * include/grub/i386/pc/kernel.h: Likewise.
5766 * include/grub/i386/qemu/boot.h: Likewise.
5767 * include/grub/mips/kernel.h: Likewise.
5768 * include/grub/mips/qemu-mips/kernel.h: Likewise.
5769 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
5770 * include/grub/powerpc/kernel.h: Likewise.
5771 * include/grub/sparc64/ieee1275/boot.h: Likewise.
5772 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
5773 * include/grub/sparc64/kernel.h: Likewise.
5774 * include/grub/x86_64/efi/kernel.h: Likewise.
5775 * include/grub/x86_64/kernel.h: Likewise.
5776 * include/grub/offsets.h: New file.
5777 * include/grub/kernel.h (grub_module_info): Split into ...
5778 (grub_module_info32): ... this.
5779 (grub_module_info64): ... and this.
5780 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
5781 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
5782 (grub_boot_blocklist): Moved from here ...
5783 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
5784 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
5785 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
5786 * include/grub/types.h (grub_target_to_host16): Removed.
5787 (grub_target_to_host32): Likewise.
5788 (grub_target_to_host64): Likewise.
5789 (grub_host_to_target16): Likewise.
5790 (grub_host_to_target32): Likewise.
5791 (grub_host_to_target64): Likewise.
5792 (grub_host_to_target_addr): Likewise.
5793
5794 Support grub-mkrescue for efi, coreboot and qemu.
5795
5796 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
5797 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
5798 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
5799 * util/grub-mkrawimage.c: Moved from here ...
5800 * util/grub-mkimage.c: ... here. All users updated.
5801 (ALIGN_ADDR): Use image_target.
5802 (TARGET_NO_FIELD): New const.
5803 (image_target_desc): New type.
5804 (image_targets): New array.
5805 (grub_target_to_host64): Use image_target.
5806 (grub_target_to_host32): Likewise.
5807 (grub_target_to_host16): Likewise.
5808 (grub_host_to_target64): Likewise.
5809 (grub_host_to_target32): Likewise.
5810 (grub_host_to_target16): Likewise.
5811 (grub_host_to_target_addr): Likewise.
5812 (generate_image): Handle multiimage.
5813 (main): Require -O parameter. All users updated.
5814 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
5815 util/efi/grub-mkimage.c
5816 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
5817 New option --rom-directory.
5818 Use xorriso.
5819 * util/i386/efi/grub-mkimage.c: Removed.
5820 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
5821 (grub_target_to_host32): Likewise.
5822 (grub_target_to_host64): Likewise.
5823 (grub_host_to_target16): Likewise.
5824 (grub_host_to_target32): Likewise.
5825 (grub_host_to_target64): Likewise.
5826 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
5827 (grub_target_to_host32): Likewise.
5828 (grub_target_to_host64): Likewise.
5829 (grub_host_to_target16): Likewise.
5830 (grub_host_to_target32): Likewise.
5831 (grub_host_to_target64): Likewise.
5832
f4fc97d0
BC
58332010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
5834
5835 Source tree is reorganized for emu build.
5836
5837 * include/grub/util/console.h: Move from here...
5838 * include/grub/emu/console.h: ...to here.
5839 * include/grub/util/getroot.h: Move from here...
5840 * include/grub/emu/getroot.h: ...to here.
5841 * include/grub/util/hostdisk.h: Move from here...
5842 * include/grub/emu/hostdisk.h: ...to here.
5843 * util/console.c: Move from here...
5844 * kern/emu/console.c: ...to here.
5845 * util/getroot.c: Move from here...
5846 * kern/emu/getroot.c: ...to here.
5847 * util/grub-emu.c: Move from here...
5848 * kern/emu/main.c: ...to here.
5849 * util/hostdisk.c: Move from here...
5850 * kern/emu/hostdisk.c: ...to here.
5851 * util/hostfs.c: Move from here...
5852 * kern/emu/hostfs.c: ...to here.
5853 * util/mm.c: Move from here...
5854 * kern/emu/mm.c: ...to here.
5855 * util/pci.c: Move from here...
5856 * bus/emu/pci.c: ...to here.
5857 * util/sdl.c: Move from here...
5858 * video/emu/sdl.c: ...to here.
5859 * util/time.c: Move from here...
5860 * kern/emu/time.c: ...to here.
5861 * util/usb.c: Move from here...
5862 * bus/usb/emu/usb.c: ...to here.
5863
5864 * include/grub/emu/misc.h: New header for grub-emu functions.
5865 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
5866
5867 * conf/any-emu.rmk: Rule updates for above renames.
5868 * conf/common.rmk: Likewise.
5869 * conf/i386-pc.rmk: Likewise.
5870 * conf/i386-qemu.rmk: Likewise.
5871 * conf/mips.rmk: Likewise.
5872 * conf/sparc64-ieee1275.rmk: Likewise.
5873 * conf/x86-efi.rmk: Likewise.
5874
5875 * disk/lvm.h: #include updates for above renames.
5876 * util/grub-mkrelpath.c: Likewise.
5877 * util/grub-probe.c: Likewise.
5878 * util/i386/pc/grub-setup.c: Likewise.
5879 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5880 * kern/emu/console.c: Likewise.
5881 * kern/emu/getroot.c: Likewise.
5882 * kern/emu/hostdisk.c: Likewise.
5883 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
5884
5885 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
5886 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
5887 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
5888 * util/misc.c: Remove grub-emu functions.
5889
cced9145
VS
58902010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 Fix gfxmenu crash.
5893 Reported by: Thorsten Grützmacher.
5894
5895 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
5896 timeout hook.
5897 (circprog_set_property): Register and unregister timeout hook.
5898 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
5899 (label_destroy): Free template. and unregister hook.
5900 (label_set_state): New function.
5901 (label_set_property): Handle templates and hooks.
5902 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
5903 timeout hook.
5904 (progress_bar_set_property): Register and unregister timeout hook.
5905 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
5906 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
5907 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
5908 (update_timeout_visit): Removed.
5909 (update_timeouts): New function.
5910 (redraw_timeouts): Likewise.
5911 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
5912 (grub_gfxmenu_clear_timeout): Likewise.
5913 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
5914 (grub_gfxmenu_timeout_notify): Likewise.
5915 (grub_gfxmenu_timeout_notifications): New external variable.
5916 (grub_gfxmenu_timeout_register): New function.
5917 (grub_gfxmenu_timeout_unregister): Likewise.
5918
c6e5caab
VS
59192010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 Transform (broken) vga terminal into (working) vga video driver.
5922
5923 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
5924 video/i386/pc/vga.c.
5925 * include/grub/video.h (grub_video_driver_id):
5926 Add GRUB_VIDEO_DRIVER_VGA.
5927 * term/i386/pc/vga.c: Renamed to ...
5928 * video/i386/pc/vga.c: ...this
5929 (DEBUG_VGA): Removed.
5930 (CHAR_WIDTH): Likewise.
5931 (CHAR_HEIGHT): Likewise.
5932 (TEXT_WIDTH): Likewise.
5933 (TEXT_HEIGHT): Likewise.
5934 (DEFAULT_FG_COLOR): Likewise.
5935 (DEFAULT_BG_COLOR): Likewise.
5936 (colored_char): Likewise.
5937 (xpos): Likewise.
5938 (ypos): Likewise.
5939 (cursor_state): Likewise.
5940 (fg_color): Likewise.
5941 (bg_color): Likewise.
5942 (text_buf): Likewise.
5943 (page): Likewise.
5944 (font): Likewise.
5945 (framebuffer): New variable.
5946 (set_read_map): Disabled.
5947 (setup): New variable.
5948 (is_target): Likewise.
5949 (grub_vga_mod_init): Likewise.
5950 (grub_vga_mod_fini): Likewise.
5951 (check_vga_mem): Likewise.
5952 (write_char): Likewise.
5953 (write_cursor): Likewise.
5954 (scroll_up): Likewise.
5955 (grub_vga_putchar): Likewise.
5956 (grub_vga_getcharwidth): Likewise.
5957 (grub_vga_getwh): Likewise.
5958 (grub_vga_getxy): Likewise.
5959 (grub_vga_gotoxy): Likewise.
5960 (grub_vga_cls): Likewise.
5961 (grub_vga_setcolorstate): Likewise.
5962 (grub_vga_setcursor): Likewise.
5963 (grub_video_vga_init): New function.
5964 (grub_video_vga_setup): Likewise.
5965 (grub_video_vga_fini): Likewise.
5966 (update_target): Likewise.
5967 (grub_video_vga_blit_bitmap): Likewise.
5968 (grub_video_vga_blit_render_target): Likewise.
5969 (grub_video_vga_set_active_render_target): Likewise.
5970 (grub_video_vga_get_active_render_target): Likewise.
5971 (grub_video_vga_swap_buffers): Likewise.
5972 (grub_video_vga_set_palette): Likewise.
5973 (grub_video_vga_get_info_and_fini): Likewise.
5974 (grub_vga_term): Removed.
5975 (grub_video_vga_adapter): New variable.
5976 (GRUB_MOD_INIT): Register a video driver instead of terminal.
5977 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
5978
2bf61a98
VS
59792010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * video/readers/jpeg.c: Indented.
5982
09ddcd11
VS
59832010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 Various jpeg cleanups.
5986
5987 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
5988 (grub_jpeg_decode_quan_table): Use sizeof.
5989 (grub_jpeg_decode_du): Use ARRAY_SIZE.
5990
e5507505
PH
59912010-05-05 Peter Hurley <No e-mail available> (tiny change)
5992
5993 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
5994 tables. Ignore non-last ac bit.
5995 (grub_jpeg_decode_quan_table): Likewise.
5996
7e720a9b
VS
59972010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
6000 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
6001 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6002 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
6003 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
6004 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
6005
a7fc080b
VS
60062010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
6009 error.
6010
2bf6012d
VS
60112010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
6014
265d68cd
VS
60152010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
6018 condition.
6019
60202010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
6021
6022 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
6023 part.
6024
265d68cd 60252010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
6026
6027 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
6028 pointers.
6029
265d68cd 60302010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
6031
6032 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
6033
d1b61374
CF
60342010-05-01 Christian Franke <franke@computer.org>
6035
6036 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
6037 Remove broken Cygwin path conversion.
6038 * util/misc.c: [__CYGWIN__] Add include and define.
6039 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
6040 for Cygwin 1.7.
6041 (make_system_path_relative_to_its_root): Simplify loop, replace early
6042 return by break.
6043 [__CYGWIN__] Add conversion to win32 path.
6044 Include "/" case in trailing slash removal.
6045
3558c6e9
VS
60462010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * kern/main.c (grub_load_config): Fix copy-pasted comment.
6049 Reported by: Seth Goldberg
6050
f5f3ff93
VS
60512010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * commands/help.c (grub_cmd_help): Fix a typo.
6054 Reported by: Seth Goldberg
6055
d8b5cd40
VS
60562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
6059 name and add N_.
6060 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
6061 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
6062 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
6063 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
6064 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
6065 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
6066 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6067 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6068 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6069 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6070 * normal/context.c (GRUB_MOD_INIT): Likewise.
6071 * normal/main.c (GRUB_MOD_INIT): Likewise.
6072 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6073 * term/serial.c (GRUB_MOD_INIT): Likewise.
6074 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6075
88c14915
VS
60762010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6077
6078 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
6079 extra == 0.
6080
165134bc
VS
60812010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6082
6083 * commands/iorw.c: New file.
6084 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
6085 (iorw_mod_SOURCES): New variable.
6086 (iorw_mod_CFLAGS): Likewise.
6087 (iorw_mod_LDFLAGS): Likewise.
6088
c5ac9b32
VS
60892010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 Hotkey support
6092
6093 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
6094 * normal/main.c (hotkey_aliases): New variable.
6095 (grub_normal_add_menu_entry): Parse "--hotkey".
6096 * normal/menu_text.c (run_menu): Handle hotkeys.
6097
ce60689c
VS
60982010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * kern/i386/coreboot/init.c (grub_machine_init): Call
6101 grub_machine_mmap_init on qemu.
6102
0359d006
VS
61032010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * boot/i386/qemu/boot.S: Add a missing .code16.
6106
7819a456
VS
61072010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 Use LBIO on coreboot.
6110
6111 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
6112 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
6113 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
6114 New declaration.
6115 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
6116 grub_machine_mmap_init on coreboot.
6117 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
6118 GRUB_LINUXBIOS_MEMBER_LINK.
6119 (grub_machine_mmap_iterate): Fix declaration.
6120 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
6121
7210dca9
VS
61222010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6123
6124 Split coreboot and multiboot ports.
6125
6126 * conf/i386-multiboot.rmk: New file.
6127 * configure.ac: Add multiboot port.
6128 * include/grub/i386/multiboot/boot.h: New file.
6129 * include/grub/i386/multiboot/console.h: Likewise.
6130 * include/grub/i386/multiboot/init.h: Likewise.
6131 * include/grub/i386/multiboot/kernel.h: Likewise.
6132 * include/grub/i386/multiboot/loader.h: Likewise.
6133 * include/grub/i386/multiboot/memory.h: Likewise.
6134 * include/grub/i386/multiboot/serial.h: Likewise.
6135 * include/grub/i386/multiboot/time.h: Likewise.
6136 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
6137 * loader/multiboot.c: Likewise.
6138 * loader/multiboot_mbi2.c: Likewise.
6139 * util/grub-mkrescue.in: Generate multiboot rescue.
6140
6f8aaf68
VS
61412010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6142
3080f7a7
VS
6143 * kern/parser.c (grub_parser_execute): Cope with read-only config.
6144
61452010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
6148
6149 * commands/terminal.c (abstract_terminal): New struct.
6150 (handle_command): New function. Based on grub_cmd_terminal_input.
6151 (grub_cmd_terminal_input): Use handle_command.
6152 (grub_cmd_terminal_output): Use handle_command.
6153
a8ebb841
BC
61542010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
6155
6156 Fix comment handling.
6157
6158 * tests/grub_script_comments.in: New testcase.
6159 * conf/tests.rmk: Rules for new testcase.
6160 * script/yylex.l: Updated flex rules.
6161
bb06ba08
ST
61622010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
6163
6164 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
6165 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
6166 if argc is 1.
bb06ba08 6167
cc9d2425
VS
61682010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
6171 autogen issues.
6172
460d8402
CF
61732010-04-26 Christian Franke <franke@computer.org>
6174
6175 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
6176 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
6177 (grub_get_prefix): Remove function.
6178 * util/grub-emu.c (main): Replace grub_get_prefix () call by
6179 make_system_path_relative_to_its_root ().
6180 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
6181
553c01f9
CF
61822010-04-24 Christian Franke <franke@computer.org>
6183
6184 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
6185 (kernel_img_LDFLAGS): Remove -static-libgcc.
6186
2aec1692
CF
61872010-04-24 Christian Franke <franke@computer.org>
6188
6189 * configure.ac: Do not CHECK_BSS_START_SYMBOL
6190 and CHECK_END_SYMBOL if grub-emu is built.
6191 Unset TARGET_OBJ2ELF if grub-emu is built
6192 without module support.
6193
f67dc308
JS
61942010-04-24 Jiro SEKIBA <jir@unicus.jp>
6195
6196 Nilfs2 support.
6197
6198 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
6199 (grub_fstest_SOURCES): Likewise.
6200 (pkglib_MODULES): Add nilfs2.mod.
6201 (nilfs2_mod_SOURCES): New variable.
6202 (nilfs2_mod_CFLAGS): Likewise.
6203 (nilfs2_mod_LDFLAGS): Likewise.
6204 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
6205 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
6206 * fs/nilfs2.c: New file.
6207
4ba8d354
VS
62082010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
6211 is not supported.
6212
0d2c20c6
GS
62132010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
6214
6215 Add grub-mkconfig support for NetBSD.
6216
6217 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
6218 * util/grub-mkconfig.in: export new NetBSD specific variables.
6219 * po/POTFILES-shell: added 10_netbsd.in.
6220 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
6221
bc4a2d83
BC
62222010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
6223
6224 Fix emu build with grub-emu-pci and grub-emu-modules.
6225
6226 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
6227 functions.
6228 * include/grub/libpciaccess.h: New file.
6229 * conf/any-emu.rmk: Update kernel headers for emu build.
6230
f48c87aa
VS
62312010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
6234
18959385
VS
62352010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
6238
0037de3f
VS
62392010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
6242 Retrieve chosen/bootpath if bootpath isn't hardcoded.
6243 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
6244 util/ieee1275/ofpath.c.
6245 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
6246 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
6247 * include/grub/sparc64/ieee1275/boot.h
6248 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
6249 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
6250 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
6251 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
6252 const char *.
6253 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
6254 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
6255 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
6256 install.
6257
38e55e90
GS
62582010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
6259
6260 * util/grub-mkconfig.in: Corrected two == equality tests.
6261 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
6262 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
6263 expect a number appended to it.
6264 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
6265 expects a number appended to it.
6266
a9e6ff28
VS
62672010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
6270
0b830b8f
VS
62712010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * util/hostdisk.c (make_device_name): Change to new partition naming.
6274
0973daeb
VS
62752010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
6278
460d8402 62792010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
6280
6281 * Makefile.in: Add missing localedir setting.
6282
0b456309
CW
62832010-04-14 Colin Watson <cjwatson@ubuntu.com>
6284
6285 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
6286 mistake in r2156. Noticed by Anthony Fok.
6287
6288 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
6289 @localedir@.
6290 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6291
08f46d62
BC
62922010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
6293
6294 Fix a spurious, uninitialized variable warning.
6295
6296 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
6297 Initialize variable, shdr.
6298 (grub_freebsd_load_elfmodule): Likewise.
6299 (grub_freebsd_load_elf_meta): Likewise.
6300
8c4a72d4
BC
63012010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
6302
6303 Fix for escaped dollar in double quoted strings.
6304
6305 * script/yylex.l: Updated flex rules.
6306 * conf/tests.rmk: Rule for new testcase.
6307 * tests/grub_script_dollar.in: New testcase.
6308
ce44826e
CPE
63092010-04-13 Carles Pina i Estany <carles@pina.cat>
63102010-04-13 Colin Watson <cjwatson@ubuntu.com>
6311
6312 Enclose all translated strings in grub.cfg in single quotes, and
6313 escape them appropriately (Ubuntu bug #552921).
6314
6315 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
6316 * util/grub.d/10_hurd.in: Use it.
6317 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6318 * util/grub.d/10_linux.in (linux_entry): Likewise.
6319
4b0cd8f8
VS
63202010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 Fix cygwin compilation.
6323
6324 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
6325 * include/grub/misc.h (__register_frame_info)
6326 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
6327 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
6328 * kern/misc.c (__register_frame_info)
6329 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
6330 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
6331
01fcf061
VS
63322010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6333
6334 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
6335
5d04b11e
VS
63362010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 Unify libgcc processing.
6339
6340 * Makefile.in (kernel_img_LDFLAGS): New variable.
6341 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
6342 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
6343 overwriting.
6344 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
6345 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
6346 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
6347 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
6348 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
6349 overwriting. Remove -lgcc and -static-libgcc
6350 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
6351 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
6352 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
6353 (kernel_img_LDFLAGS): Append instead of overwriting.
6354 Remove -lgcc and -static-libgcc
6355 * conf/sparc64-ieee1275.rmk: Likewise.
6356 * include/grub/powerpc/libgcc.h: Move to ...
6357 * include/grub/libgcc.h: .. this.
6358 * include/grub/libgcc.h: Don't export most of the function on x86.
6359 (__bswapsi2): New export.
6360 (__bswapdi2): Likewise.
6361 * include/grub/mips/libgcc.h: Removed.
6362 * include/grub/sparc64/libgcc.h: Likewise.
6363
b7f3ac29
VS
63642010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
6367 disk_info_msg (conflicts with gettexting into languages with cases).
6368
2c7031b1
GS
63692010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6370
6371 Add grub-probe support for NetBSD.
6372
6373 * util/getroot.c (find_root_device): Convert block device to
6374 character device on NetBSD.
6375 * util/probe.c (probe): Require character device on NetBSD.
6376 * util/hostdisk.c: NetBSD specific headers.
6377 (configure_device_driver): new function to tune device driver
6378 parameters (currently only for NetBSD floppy driver).
6379 (grub_util_biosdisk_open): NetBSD specific code (get disk size
6380 via disklabel ioctl).
6381 (open_device): call configure_device_driver on NetBSD.
6382 (convert_system_partition_to_system_disk): NetBSD specific code.
6383 (device_is_wholedisk): Likewise.
6384 (grub_util_biosdisk_get_grub_dev): Likewise.
6385 (make_device_name): Fixed a typo in bsd_part_str.
6386 * configure.ac: check for opendisk() and getrawpartition() on
6387 NetBSD and set LIBUTIL.
6388 * Makefile.in: add LIBUTIL to LIBS.
6389
f516290c
BC
63902010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
6391
6392 Documentation fix.
6393
6394 * util/grub-script-check.c: Better help message.
6395
d8dcc0df
BC
63962010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
6397
6398 Fix FreeBSD build.
6399
6400 * configure.ac: Flex version check.
6401 * conf/common.rmk: Add -Wno-error to sh.mod.
6402 * script/yylex.l: Remove all #pragma.
6403
6734334a
VS
64042010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 * include/grub/util/misc.h (canonicalise_file_name): Add missing
6407 prototype.
6408 Reported by: Seth Goldberg.
6409
daea6abd
VS
64102010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
6413 Rename "module" to "module2".
6414 Reported by: Seth Goldberg.
6415
f2fd9d2b
VS
64162010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
6419 EXPORT_FUNC.
6420 Reported by: Seth Goldberg.
6421
be124579
VS
64222010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 * lib/posix_wrap/locale.h: Add missing file.
6425 Reported by: Seth Goldberg.
6426
ef5da797
VS
64272010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 grub-emu module load support.
6430
6431 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
6432 NO_DYNAMIC_MODULES switched to this.
6433 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
6434 (CFLAGS): Likewise.
6435 * conf/any-emu.rmk: Generate symlist.
6436 (kernel_img_HEADERS): Add util/datetime.h.
6437 (kernel_img_HEADERS) [sdl]: Add sdl.h.
6438 (kernel_img_HEADERS) [libusb]: Add libusb.h.
6439 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
6440 kern/$(target_cpu)/cache.S.
6441 * configure.ac (grub-emu-modules): New option.
6442 * genmk.rb: Handle multiple source lists.
6443 * include/grub/sdl.h: New file.
6444 * include/grub/libusb.h: Likewise.
6445 * util/grub-emu.c (main): Hanle (host) root.
6446 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
6447 GRUB_ERR_UNKNOWN_DEVICE.
6448 * util/misc.c: Move mm functions to ...
6449 * util/mm.c: ... here. All users updated.
6450
47822096
VS
64512010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
6454 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
6455 missing files.
6456 (maintainer-clean): Remove libgcrypt-grub.
6457
5d7e7445
VS
64582010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6459
6460 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
6461
25f4e252
EC
64622010-04-09 EFI Coder <eficoder@hotmail.com>
6463
6464 * normal/menu_text.c (print_message): Clean up the message and show
6465 the Fn information when on EFI
6466 * term/efi/console.c (grub_console_checkkey): Add F4 support.
6467
027de555
VS
64682010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
6471 All users updated.
6472 * normal/crypto.c (read_crypto_list): Likewise.
6473 * normal/dyncmd.c (read_command_list): Likewise.
6474 * normal/term.c (read_terminal_list): Likewise.
6475 * normal/main.c (read_lists): Use explicit prefix.
6476 (read_lists_hook): Use read_lists.
6477 (grub_normal_execute): Likewise.
6478
47779711
VS
64792010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
6482 Reported by: Thomas Schmitt.
6483 Add -no-emul-boot to grub-mkisofs parameters.
6484
1118c32e
VS
64852010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * font/font.c: Indented.
6488
7d652447
BC
64892010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
6490
6491 Elif support to GRUB script (by Deepak Vankadaru).
6492
6493 * tests/grub_script_if.in: New testcase.
6494 * conf/tests.rmk: Rule for new testcase.
6495 * script/parser.y: Grammar rules for elif.
6496
34bb22df
BC
64972010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
6498
6499 While and until loops support to GRUB script.
6500
6501 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
6502 (grub_script_create_cmdwhile): New function prototype.
6503 (grub_script_execute_cmdwhile): New function prototype.
6504 * script/execute.c (grub_script_execute_cmdwhile): New function.
6505 * script/parser.y (command): New commands.
6506 (whilecmd): New grammar rule.
6507 (untilcmd): New grammar rule.
6508 * script/script.c (grub_script_create_cmdwhile): New function.
6509 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
6510 function.
6511
6512 * tests/grub_script_while1.in: New testcase.
6513 * conf/tests.rmk: Rule for new testcase.
6514
e215d8e0
VS
65152010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
6518 as *.jpg.
6519
d7c43ba1
MV
65202010-04-09 Mario Vazquez <mariovazq@gmail.com>
6521
6522 GRUB_BACKGROUND support.
6523
6524 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
6525 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
6526
d64795c0
VS
65272010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 6530 Idea by: Mario Vazquez
d64795c0
VS
6531
6532 * util/grub.d/00_header.in: Load pf2 and image modules.
6533
f267f83a
VS
65342010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 grub-mkconfig multiple terminal support.
6537
6538 * util/grub-mkconfig.in: Handle multiple terminals correctly.
6539 * util/grub.d/00_header.in: Likewise.
6540
b7841ceb
VS
65412010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 * Makefile.in: Specify files explicitly instead of using $< and $@ since
6544 we use cd $(srcdir).
6545
df60998c
CW
65462010-04-08 Colin Watson <cjwatson@ubuntu.com>
6547
6548 * util/grub.d/10_linux.in: Only use the first word of
6549 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
6550 spaces in GRUB_DISTRIBUTOR.
6551 * util/grub.d/10_kfreebsd.in: Likewise.
6552 * util/grub.d/10_hurd.in: Likewise.
6553
fa09c82e
BC
65542010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
6555
14e18ae3 6556 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
6557
6558 * tests/util/grub-shell.in: Remove -serial stdio option.
6559
daf892b3
BC
65602010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 POSIX header file wrappers.
6563
6564 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
6565 equivalents.
6566 * lib/posix_wrap/ctype.h: Likewise.
6567 * lib/posix_wrap/errno.h: Likewise.
6568 * lib/posix_wrap/langinfo.h: Likewise.
6569 * lib/posix_wrap/limits.h: Likewise.
6570 * lib/posix_wrap/localcharset.h: Likewise.
6571 * lib/posix_wrap/stdint.h: Likewise.
6572 * lib/posix_wrap/stdio.h: Likewise.
6573 * lib/posix_wrap/stdlib.h: Likewise.
6574 * lib/posix_wrap/string.h: Likewise.
6575 * lib/posix_wrap/sys/types.h: Likewise.
6576 * lib/posix_wrap/unistd.h: Likewise.
6577 * lib/posix_wrap/wchar.h: Likewise.
6578 * lib/posix_wrap/wctype.h: Likewise.
6579 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
6580 (grub_script.yy.h): Likewise.
6581 * script/yylex.l: Remove POSIX emulation #defines.
6582 * Makefile.in (POSIX_CFLAGS): New variable.
6583 (GNULIB_UTIL_CFLAGS): Likewise.
6584
6585 Regexp support.
6586
6587 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
6588 (regexp_mod_SOURCES): New variable.
6589 (regexp_mod_CFLAGS): Likewise.
6590 (regexp_mod_LDFLAGS): Likewise.
6591 * commands/regexp.c: New file.
6592 * gnulib/regcomp.c: New file. Imported from gnulib.
6593 * gnulib/regex.c: Likewise.
6594 * gnulib/regex_internal.c: Likewise.
6595 * gnulib/regex_internal.h: Likewise.
6596 * gnulib/regexec.c: Likewise.
6597 * gnulib/regex.h: Likewise.
6598
974ac4f7
VS
65992010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
6602 unsupported video mode types.
6603
2622c3ff
VS
66042010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
6607
064cb524
VS
66082010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
6611 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
6612
a8c3b552
VS
66132010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 Remove unused grub_vga_get_font.
6616
6617 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
6618 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
6619
187bbe3d
GS
66202010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6621
6622 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
6623 * include/grub/misc.h: Likewise.
6624
b9396631
GS
66252010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6626
6627 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
6628 for which failure is fatal.
6629
50479feb
GS
66302010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6631
6632 * util/grub-install.in: Use mkdir -p to create grub directory.
6633 * util/i386/efi/grub-install.in: Likewise.
6634 * util/ieee1275/grub-install.in: Likewise.
6635
b1654fdf
GS
66362010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6637
6638 * Makefile.in (LEX): new variable.
6639
bd5a6415
GS
66402010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6641
6642 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
6643 `=' and added double quotes on operands of this equality test.
6644
3db3a82b
VS
66452010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * Makefile.in (uninstall): Remove a leftover debug echo.
6648 Reported by: Grégoire Sutre
6649
38023412
VS
66502010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
6651
6652 MIPS multiboot2 support.
6653
6654 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
6655 (multiboot2_mod_SOURCES): New variable.
6656 (multiboot2_mod_CFLAGS): Likewise.
6657 (multiboot2_mod_LDFLAGS): Likewise.
6658 (multiboot2_mod_ASFLAGS): Likewise.
6659 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
6660 definition.
6661 (MULTIBOOT_ENTRY_REGISTER): Likewise.
6662 (MULTIBOOT_MBI_REGISTER): Likewise.
6663 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
6664 (MULTIBOOT_ELF32_MACHINE): Likewise.
6665 (MULTIBOOT_ELF64_MACHINE): Likewise.
6666 * include/grub/mips/multiboot.h: New file.
6667 * include/grub/video.h (grub_video_driver_id): New type
6668 GRUB_VIDEO_DRIVER_SM712.
6669 (grub_video_get_info_and_fini): Export.
6670 (grub_video_get_palette): Likewise.
6671 (grub_video_get_driver_id): Likewise.
6672 * include/multiboot2.h: Resynced with spec.
6673 * loader/i386/multiboot.c: Moved from here ...
6674 * loader/multiboot.c: ... here. All users updated.
6675 (grub_multiboot_boot): Use platform-specific macros.
6676 * loader/i386/multiboot_elfxx.c: Moved from here ...
6677 * loader/multiboot_elfxx.c: ... here. All users updated.
6678 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
6679 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
6680 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
6681
47674667
VS
66822010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 Import gnulib argp module.
6685
6686 * gnulib/argp-ba.c: New file.
6687 * gnulib/argp-eexst.c: Likewise.
6688 * gnulib/argp-fmtstream.c: Likewise.
6689 * gnulib/argp-fmtstream.h: Likewise.
6690 * gnulib/argp-fs-xinl.c: Likewise.
6691 * gnulib/argp-help.c: Likewise.
6692 * gnulib/argp-namefrob.h: Likewise.
6693 * gnulib/argp-parse.c: Likewise.
6694 * gnulib/argp-pin.c: Likewise.
6695 * gnulib/argp-pv.c: Likewise.
6696 * gnulib/argp-pvh.c: Likewise.
6697 * gnulib/argp-version-etc.c: Likewise.
6698 * gnulib/argp-version-etc.h: Likewise.
6699 * gnulib/argp-xinl.c: Likewise.
6700 * gnulib/argp.h: Likewise.
6701
495442ed
VS
67022010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * kern/device.c (grub_device_iterate): Clear errors after failed
6705 opening device.
6706
f9fd65df
VS
67072010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
6710 returned by firmware.
6711
af09641e
VS
67122010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6713
6714 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
6715 compilation on coreboot and qemu
6716
016883a5
VS
67172010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 * include/multiboot2.h: Resync with spec.
6720
f97e1f7d
VS
67212010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 Multiboot2 tag support
6724
6725 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
6726 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
6727 Remove loader/multiboot_loader.c.
6728 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
6729 (grub_multiboot2_real_boot): Likewise.
6730 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
6731 (grub_get_multiboot_mmap_count): New proto.
6732 (grub_fill_multiboot_mmap): Likewise.
6733 (grub_multiboot_set_video_mode): Likewise.
6734 (grub_multiboot_set_console): Likewise.
6735 (grub_multiboot_load): Likewise.
6736 (grub_multiboot_load_elf): Likewise.
6737 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
6738 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
6739 * include/multiboot.h: Resynced with specification.
6740 * include/multiboot2.h: Resynced with specification.
6741 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
6742 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
6743 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
6744 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
6745 users updated.
6746 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
6747 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
6748 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
6749 Removed.
6750 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
6751 Moved from here...
6752 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
6753 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
6754 Moved from here...
6755 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
6756 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
6757 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
6758 All users updated.
6759 * loader/i386/multiboot_mbi2.c: New file.
6760
3506b90b
VS
67612010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 Resync with gnulib.
6764
6765 * Makefile.in (GNULIB_CFLAGS): New variable.
6766 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
6767 (grub_script_check_CFLAGS): New variable.
6768 * gnulib/alloca.h: Resync with gnulib.
6769 * gnulib/error.c: Likewise.
6770 * gnulib/error.h: Likewise.
6771 * gnulib/fnmatch.c: Likewise.
6772 * gnulib/fnmatch_loop.c: Likewise.
6773 * gnulib/getdelim.c: Likewise.
6774 * gnulib/getline.c: Likewise.
6775 * gnulib/getopt.c: Likewise.
6776 * gnulib/getopt1.c: Likewise.
6777 * gnulib/getopt_int.h: Likewise.
6778 * gnulib/gettext.h: Likewise.
6779 * gnulib/progname.c: Likewise.
6780 * gnulib/progname.h: Likewise.
6781
394a3120
GS
67822010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
6783
6784 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
6785 which is the case with --disabled-nls.
6786
6787 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
6788 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
6789 * util/misc.c: Likewise.
6790 * util/mkisofs/mkisofs.c: Likewise.
6791 * util/mkisofs/mkisofs.h: Likewise.
6792
969d1c78
VS
67932010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 Simplify Apple CC support.
6796
6797 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
6798 Add 0 byte at the end not to have a symbol with empty target.
6799 * mmap/i386/pc/mmap_helper.S: Likewise.
6800 * genmk.rb: Ignore errors 2030 and 2050.
6801 * kern/i386/pc/startup.S: Use LOCAL when possible.
6802
8d2977bb
BC
68032010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
6804
6805 Testcase and the fix for final semicolon on cmdline.
6806
6807 * tests/grub_script_final_semicolon.in: New testcase.
6808 * conf/tests.rmk: Rules for the new testcase.
6809 * script/parser.y: Grammar fix.
6810
a7bd6915
BC
68112010-03-26 BVK Chaitanya <bvk@localhost>
6812
6813 Blank lines testcase for GRUB script.
6814
6815 * tests/grub_script_blanklines.in: New testcase.
6816 * conf/tests.rmk: Rules for the new testcase.
6817
e4ff6628
VS
68182010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 Don't use __FILE__.
6821
6822 * genmk.rb: Add -DGRUB_FILE to all C targets.
6823 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
6824 * include/grub/list.h: Likewise.
6825 * include/grub/misc.h: Likewise.
6826 * include/grub/mm.h: Likewise.
6827 * include/grub/test.h: Likewise.
6828 * kern/mm.c: Likewise.
6829 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
6830
6a5cf6b6
VS
68312010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 Sunpc partitions support.
6834
6835 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
6836 (grub_fstest_SOURCES): Likewise.
6837 (pkglib_MODULES): Add part_sunpc.mod.
6838 (part_sunpc_mod_SOURCES): New variable.
6839 (part_sunpc_mod_CFLAGS): Likewise.
6840 (part_sunpc_mod_LDFLAGS): Likewise.
6841 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
6842 * partmap/sunpc.c: New file.
6843
746d9045
BC
68442010-03-26 BVK Chaitanya <bvk@localhost>
6845
6846 For loop support to GRUB script.
6847
6848 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
6849 (grub_script_create_cmdfor): New function prototype.
6850 (grub_script_execute_cmdfor): New function prototype.
6851 * script/execute.c (grub_script_execute_cmdfor): New function.
6852 * script/parser.y (command): New for command.
6853 (forcmd): New grammar rule.
6854 * script/script.c (grub_script_create_cmdfor): New function.
6855 * util/grub-script-check.c (grub_script_execute_cmdfor): New
6856 function.
6857 * tests/grub_script_for1.in: New testcase.
6858 * conf/tests.rmk: Rules for new testcase.
6859
18486b18
VS
68602010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6861
6862 Nested partitions
6863
6864 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
6865 'partition' is NULL, grub_partition_get_start already does that.
6866 * commands/loadenv.c (check_blocklists): Likewise.
6867 (write_blocklists): Likewise.
6868 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
6869 (grub_fstest_SOURCES): Likewise.
6870 (pkglib_MODULES): Add part_bsd.mod.
6871 (part_bsd_mod_SOURCES): New variable.
6872 (part_bsd_mod_CFLAGS): Likewise.
6873 (part_bsd_mod_LDFLAGS): Likewise.
6874 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
6875 (grub_emu_SOURCES): Likewise.
6876 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
6877 * include/grub/bsdlabel.h: New file.
6878 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
6879 'get_name'.
6880 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
6881 (grub_partition_map_list): New variable.
6882 (grub_partition_map_register): Inline.
6883 (grub_partition_map_unregister): Likewise.
6884 (FOR_PARTITION_MAPS): New macro.
6885 (grub_partition_map_iterate): Removed.
6886 (grub_partition_get_start): Handle nested partitions.
6887 * include/grub/msdos_partition.h: Remove bsd-related entries.
6888 (grub_pc_partition): Remove.
6889 * kern/disk.c (grub_disk_close): Free partition data.
6890 (grub_disk_adjust_range): Handle nested partitions.
6891 * kern/partition.c (grub_partition_map_probe): New function.
6892 (grub_partition_probe): Parse name to number, handle subpartitions.
6893 (get_partmap): New function.
6894 (grub_partition_iterate): Handle subpartitions.
6895 (grub_partition_get_name): Likewise.
6896 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
6897 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
6898 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
6899 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
6900 Set 'number'.
6901 (acorn_partition_map_probe): Remove.
6902 (acorn_partition_map_get_name): Likewise.
6903 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
6904 Set 'number'.
6905 Set 'index' to 0 since there can be only one partition entry per sector.
6906 (amiga_partition_map_probe): Remove.
6907 (amiga_partition_map_get_name): Likewise.
6908 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
6909 Set 'number'.
6910 Set 'offset' and 'index' to real positions of partitions.
6911 (apple_partition_map_probe): Remove.
6912 (apple_partition_map_get_name): Likewise.
6913 * partmap/bsdlabel.c: New file.
6914 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
6915 Set 'number'.
6916 Allocate 'data' so it can be correctly freed.
6917 Set 'index' to offset inside sector.
6918 (gpt_partition_map_probe): Remove.
6919 (gpt_partition_map_get_name): Likewise.
6920 * partmap/msdos.c (grub_partition_parse): Remove.
6921 (pc_partition_map_iterate): Don't force raw access.
6922 Set 'number'.
6923 Make 'ext_offset' a local variable.
6924 (pc_partition_map_probe): Remove.
6925 (pc_partition_map_get_name): Remove.
6926 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
6927 Set 'number'.
6928 (sun_partition_map_probe): Remove.
6929 (sun_partition_map_get_name): Likewise.
6930 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
6931 (grub_pcpart_type): Likewise.
6932 * util/hostdisk.c (open_device): Handle new numbering scheme.
6933 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
6934 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
6935 * util/grub-probe.c (probe_partmap): Handle nested paritions.
6936 * util/grub-install.in: Insert all subpartition modules.
6937 * util/ieee1275/grub-install.in: Likewise.
6938
a3940f88
AG
69392010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
6940
6941 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
6942 grammar.
6943
21b99926 69442010-03-24 Colin Watson <cjwatson@ubuntu.com>
6945
6946 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
6947
bed1d352
CW
69482010-03-21 Colin Watson <cjwatson@ubuntu.com>
6949
6950 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
6951 match where 'make install' puts them.
6952 * util/i386/efi/grub-install.in: Likewise.
6953
c9f58427
CW
69542010-03-19 Colin Watson <cjwatson@ubuntu.com>
6955
6956 * .bzrignore: Add gentrigtables, grub-script-check,
6957 grub_script_check_init.c, grub_script_check_init.h, and
6958 trigtables.c.
6959
f84afb27
VS
69602010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * kern/parser.c: Indented.
6963
ed0e3d30
VS
69642010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
6967
0ea81d98
VS
69682010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
6971 alpha_mask_size == 0 case.
6972
0cdc2a09
BC
69732010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
6974
6975 GRUB shell lexer and parser improvements.
6976
6977 * conf/any-emu.rmk: Build rule updates.
6978 * conf/common.rmk: Likewise.
6979 * conf/i386-coreboot.rmk: Likewise.
6980 * conf/i386-efi.rmk: Likewise.
6981 * conf/i386-ieee1275.rmk: Likewise.
6982 * conf/i386-pc.rmk: Likewise.
6983 * conf/powerpc-ieee1275.rmk: Likewise.
6984 * conf/x86_64-efi.rmk: Likewise.
6985
6986 * configure.ac: Configure check for flex.
6987
6988 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
6989 types.
6990 (grub_lexer_param): Struct member updates.
6991 (grub_parser_param): Likewise.
6992 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
6993 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
6994 (grub_script_lexer_init): Prototype update.
6995 (grub_script_lexer_record_start): Likewise.
6996 (grub_script_lexer_record_stop): Likewise.
6997 (grub_script_lexer_yywrap): New function prototype.
6998 (grub_script_lexer_fini): Likewise.
6999 (grub_script_execute_argument_to_string): Removed by...
7000 (grub_script_execute_argument_to_argv): ...better version.
7001
7002 * script/execute.c (ROUND_UPTO): New macro.
7003 (grub_script_execute_cmdline): Out of memory fixes.
7004 (grub_script_execute_menuentry): Likewise.
7005 (grub_script_execute_argument_to_string): Removed. Update all
7006 users by...
7007 (grub_script_execute_argument_to_argv): ...better version.
7008 * script/function.c (grub_script_function_create): Use
7009 grub_script_execute_argument_to_argv instead of
7010 grub_script_execute_argument_to_string.
7011
7012 * script/lexer.c (check_varstate): Removed.
7013 (check_textstate): Removed.
7014 (grub_script_lexer_record_start): Likewise.
7015 (grub_script_lexer_record_stop): Likewise.
7016 (recordchar): Replaced with...
7017 (grub_script_lexer_record): ...new function.
7018 (nextchar): Removed.
7019 (grub_script_lexer_init): Rewritten.
7020 (grub_script_yylex): Rewritten.
7021 (append_newline): New function.
7022 (grub_script_lexer_yywrap): New function.
7023 (grub_script_lexer_fini): New function.
7024 (grub_script_yyerror): Sets error flag.
7025
7026 * script/yylex.l: New file.
7027 (grub_lexer_yyfree): Wrapper for flex yyffre.
7028 (grub_lexer_yyalloc): Likewise.
7029 (grub_lexer_yyrealloc): Likewise.
7030 * script/parser.y: Refactored.
7031
7032 * script/script.c (grub_script_arg_add): Out of memory fixes.
7033 (grub_script_add_arglist): Likewise.
7034 (grub_script_create_cmdline): Likewise.
7035 (grub_script_create_cmdmenu): Likewise.
7036 (grub_script_add_cmd): Likewise.
7037 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
7038 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
7039 unnecessary code.
7040
7041 * tests/grub_script_echo1.in: New testcase.
7042 * tests/grub_script_vars1.in: New testcase.
7043 * tests/grub_script_echo_keywords.in: New testcase.
7044
1d63a066
VS
70452010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 Remove some redundancy in build system.
7048
7049 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
7050 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
7051 (TARGET_LDFLAGS): Add -nostdlib.
7052 (TARGET_IMG_LDFLAGS): Likewise.
7053 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
7054 anything since mmap isn't available.
7055 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
7056 Add util/time.c.
7057 (pkglib_MODULES): Remove reboot.mod.
7058 (reboot_mod_SOURCES): Removed.
7059 (reboot_mod_CFLAGS): Likewise.
7060 (reboot_mod_LDFLAGS): Likewise.
7061 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
7062 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
7063 (DEFSYMFILES): Add kernel_syms.lst.
7064 (kernel_img_HEADERS): Add common headers.
7065 (symlist.c): New target.
7066 (kernel_syms.lst): Likewise.
7067 (pkglib_MODULES): Add memdisk.mod.
7068 (memdisk_mod_SOURCES): New variable.
7069 (memdisk_mod_CFLAGS): Likewise.
7070 (memdisk_mod_LDFLAGS): Likewise.
7071 (pkglib_MODULES): Add reboot.mod.
7072 (reboot_mod_SOURCES): New variable.
7073 (reboot_mod_CFLAGS): Likewise.
7074 (reboot_mod_LDFLAGS): Likewise.
7075 (pkglib_MODULES): Add date.mod.
7076 (date_mod_SOURCES): New variable.
7077 (date_mod_CFLAGS): Likewise.
7078 (date_mod_LDFLAGS): Likewise.
7079 (pkglib_MODULES): Add datehook.mod.
7080 (datehook_mod_SOURCES): New variable.
7081 (datehook_mod_CFLAGS): Likewise.
7082 (datehook_mod_LDFLAGS): Likewise.
7083 (pkglib_MODULES): Add lsmmap.mod.
7084 (lsmmap_mod_SOURCES): New variable.
7085 (lsmmap_mod_CFLAGS): Likewise.
7086 (lsmmap_mod_LDFLAGS): Likewise.
7087 (pkglib_MODULES): Add boot.mod.
7088 (boot_mod_SOURCES): New variable.
7089 (boot_mod_CFLAGS): Likewise.
7090 (boot_mod_LDFLAGS): Likewise.
7091 * conf/i386-coreboot.rmk: Removed redundant parts.
7092 * conf/i386-ieee1275.rmk: Likewise.
7093 * conf/i386-pc.rmk: Likewise.
7094 * conf/mips-yeeloong.rmk: Likewise.
7095 * conf/mips.rmk: Likewise.
7096 * conf/powerpc-ieee1275.rmk: Likewise.
7097 * conf/sparc64-ieee1275.rmk: Likewise.
7098 * conf/x86_64-efi.rmk: Likewise.
7099 * conf/i386-coreboot.rmk: Moved qemu parts ..
7100 * conf/i386-qemu.rmk: ... here
7101 * conf/i386-efi.rmk: Moved common parts to...
7102 * conf/x86-efi.rmk: ... here.
7103 * conf/i386.rmk: Added modules common to all x86 variants.
7104 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
7105 * disk/memdisk.c: Remove grub/machine/kernel.h.
7106 * gensymlist.sh.in: Include symbol.h.
7107 * hook/datehook.c: Correct module name.
7108 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
7109 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
7110 * include/grub/i386/efi/serial.h: New file.
7111 * include/grub/x86_64/efi/serial.h: Likewise.
7112 * util/time.c: Likewise.
7113 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
7114
463ac55f
CK
71152010-03-14 Colin King <colin.king@ubuntu.com>
71162010-03-14 Colin Watson <cjwatson@ubuntu.com>
7117
7118 Shrink the pre-partition-table part of boot.img by eight bytes.
7119
7120 * boot/i386/pc/boot.S (ERR): New macro.
7121 (chs_mode): Use ERR.
7122 (geometry_error): Likewise.
7123 (hd_probe_error): Remove. This is only used once, so we wrwite
7124 it inline instead.
7125 (read_error): Instead of printing read_error_string, just set up
7126 %si and fall through to ...
7127 (error_message): ... this new function, also used by ERR.
7128
08e46ede
CW
71292010-03-14 Colin Watson <cjwatson@ubuntu.com>
7130
7131 Speed up consecutive hostdisk operations on the same device.
7132
7133 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
7134 (grub_util_biosdisk_open): Initialise disk->data.
7135 (struct linux_partition_cache): New structure.
7136 (linux_find_partition): Cache partition start positions; these are
7137 expensive to compute on every read and write.
7138 (open_device): Cache open file descriptor in disk->data, so that we
7139 don't have to reopen it and flush the buffer cache for consecutive
7140 operations on the same device.
7141 (grub_util_biosdisk_close): New function.
7142 (grub_util_biosdisk_dev): Set `close' member.
7143
7144 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
7145 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
7146 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7147 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
7148 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
7149
4a6d2d06
VS
71502010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7151
7152 Compile parts of grub-emu as modules.
7153
7154 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
7155 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
7156 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
7157 (all-local): Add $(GRUB_EMU).
7158 (install-local): Install $(GRUB_EMU).
7159 (uninstall): Uninstall $(GRUB_EMU).
7160 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
7161 * kern/dl.c: Likewise.
7162 * commands/sleep.c: Not include machine/time.h.
7163 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
7164 (COMMON_CFLAGS): Likewise.
7165 (sbin_UTILITIES): Remove grub-emu.
7166 (grub_emu_SOURCES): Removed.
7167 (kernel_img_RELOCATABLE): New variable.
7168 (pkglib_PROGRAMS): Add kernel.img.
7169 (kernel_img_SOURCES): New variable
7170 (kernel_img_CFLAGS): Likewise.
7171 (kernel_img_LDFLAGS): Likewise.
7172 (TARGET_NO_STRIP): Likewise.
7173 (TARGET_NO_DYNAMIC_MODULES): Likewise.
7174 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
7175 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
7176 (grub-emu): New target.
7177 (GRUB_EMU): New variable.
7178 * configure.ac: Whitelist -emu as possible x86_64 architecture.
7179 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
7180 * loader/xnu.c: Likewise.
7181 * include/grub/pci.h: Likewise.
7182 * genemuinit.sh: New file.
7183 * genemuinitheader.sh: Likewise.
7184 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
7185 Support TARGET_NO_DYNAMIC_MODULES.
7186 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
7187 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
7188 * disk/loopback.c: Likewise.
7189 * font/font_cmd.c: Likewise.
7190 * partmap/acorn.c: Likewise.
7191 * partmap/amiga.c: Likewise.
7192 * partmap/apple.c: Likewise.
7193 * partmap/gpt.c: Likewise.
7194 * partmap/msdos.c: Likewise.
7195 * partmap/sun.c: Likewise.
7196 * parttool/msdospart.c: Likewise.
7197 * term/gfxterm.c: Likewise.
7198 * video/bitmap.c: Likewise.
7199 * video/readers/jpeg.c: Likewise.
7200 * video/readers/png.c: Likewise.
7201 * video/readers/tga.c: Likewise.
7202 * video/video.c: Likewise.
7203 * util/grub-emu.c (read_command_list): Removed.
7204 (main): Don't call util_init_nls.
7205 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
7206 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
7207
91fdd2ed
VS
72082010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7209
7210 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
7211 date.mod, datehook.mod.
7212 (datetime_mod_SOURCES): New variable.
7213 (datetime_mod_CFLAGS): Likewise.
7214 (datetime_mod_LDFLAGS): Likewise.
7215 (date_mod_SOURCES): Likewise.
7216 (date_mod_CFLAGS): Likewise.
7217 (date_mod_LDFLAGS): Likewise.
7218 (datehook_mod_SOURCES): Likewise.
7219 (datehook_mod_CFLAGS): Likewise.
7220 (datehook_mod_LDFLAGS): Likewise.
7221 * conf/sparc64-ieee1275.rmk: Likewise.
7222 * lib/ieee1275/datetime.c: New file.
7223
873ccae6
VS
72242010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7225
7226 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
7227 (ieee1275_fb_mod_SOURCES): New variable.
7228 (ieee1275_fb_mod_CFLAGS): Likewise.
7229 (ieee1275_fb_mod_LDFLAGS): Likewise.
7230 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
7231 New proto.
7232 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
7233 (HEAP_MAX_ADDR): Likewise.
7234 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
7235 type.
7236 Correct stop condition.
7237 (grub_ieee1275_devices_iterate): New function.
7238 * video/ieee1275.c: New file.
7239
601c97c0
VS
72402010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
7243
7244 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
7245 as scratch.
7246 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
7247 SCRATCH_PAD_DISKBOOT as scratch.
7248 (bootit): Pass Openfirmware pointer in %o4.
7249 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
7250 of 0x200000.
7251 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
7252 with util/grub-mkrawimage.c.
7253 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
7254 * include/grub/aout.h (AOUT_MID_SUN): New definition.
7255 (grub_aout_get_type) [GRUB_UTIL]: Removed.
7256 (grub_aout_load) [GRUB_UTIL]: Likewise.
7257 * include/grub/kernel.h (grub_modules_get_end): New proto.
7258 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
7259 (SCRATCH_PAD_BOOT): New definition.
7260 (SCRATCH_PAD_DISKBOOT): Likewise.
7261 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
7262 * include/grub/sparc64/ieee1275/ieee1275.h
7263 (grub_ieee1275_original_stack): New variable
7264 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
7265 New definition
7266 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
7267 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
7268 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
7269 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
7270 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
7271 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
7272 (grub_platform_image_format_t): New type.
7273 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
7274 * kern/main.c (grub_modules_get_end)
7275 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
7276 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
7277 (codestart): Switch stacks.
7278 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
7279 variable.
7280 (grub_heap_init): Use grub_modules_get_end.
7281 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
7282 stack.
7283 * util/grub-mkrawimage.c (generate_image): Support sparc64.
7284 (main): Likewise.
7285 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
7286
d68b491e
TG
72872010-03-14 Thorsten Glaser <tg@mirbsd.org>
7288
7289 * util/grub-mkrescue.in: Base ISO UUID on UTC.
7290
4e02ed50
MK
72912010-03-08 Matt Kraai <kraai@ftbfs.org>
7292
7293 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
7294 bug #559005).
7295
1f15fc1e
VS
72962010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7297
7298 * genmoddep.awk: Output all missing symbols and not only first.
7299
fce5d8ff
VS
73002010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 * NEWS: Put the date of 1.98 release.
7303
d1e8a02f
VS
73042010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
7307 ft2build.h.
7308
696fd607
VS
73092010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
7312 completition in the middle of string.
7313
33e2e6f3
VS
73142010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7315
7316 * util/grub-mkrescue.in: Use mktemp with explicit template.
7317
b1f6d291
VS
73182010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
7321
2ac227c7
VS
73222010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
7325 right pointer.
7326
8f9a632b
VS
73272010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 Fix FreeBSD compilation.
7330
7331 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
7332 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
7333
60b03859
VS
73342010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
7337
48a5a769
VS
73382010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7339
7340 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
7341
3ab4bd77
VS
73422010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7343
7344 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
7345
d116e0d8
RM
73462010-03-04 Robert Millan <rmh.grub@aybabtu.com>
7347
7348 Support relative image path in theme file.
7349
7350 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
7351 (image_set_property): Handle theme_dir and relative path.
7352
c7ef54aa
VS
73532010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7354
7355 * configure.ac: Alias amd64 to x86_64.
7356
fcee14ed
VS
73572010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7358
7359 * NEWS: mention multiboot on EFI.
7360
d0780363
VS
73612010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7362
7363 * kern/main.c (grub_load_modules): Handle errors from init functions of
7364 embeded modules.
7365
41168ea4
VS
73662010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * normal/autofs.c (autoload_fs_module): Handle errors.
7369
b54d93ac
VS
73702010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 Disable linux.mod on qemu-mips since it's not functional and leads
7373 to compilation failure.
7374
7375 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
7376 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
7377 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
7378 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
7379 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
7380 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
7381 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
7382 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
7383 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
7384 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
7385 Reported by: BVK Chaitanya
7386
fc8345da
JU
73872010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
7388
7389 * INSTALL: Add gettext as a dependency and add qemu to a new section
7390 "Prerequisites for make-check".
7391
4760f979
CF
73922010-03-04 Christian Franke <franke@computer.org>
7393
7394 * util/grub-pe2elf.c: Add missing include "progname.h".
7395
f209b5b2
VS
73962010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * normal/crypto.c (read_crypto_list): Fix a typo.
7399 Reported by: Seth Goldberg.
7400
b4b7be98
VS
74012010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 7404 Reported by: Seth Goldberg.
b4b7be98 7405
c0ee0385
VS
74062010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
7409 ascii.bitmaps.
7410
a8efbf64
VS
74112010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 7414 Reported by: Seth Goldberg.
a8efbf64 7415
08dcd913
VS
74162010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 * util/i386/efi/grub-install.in: Copy gettext files.
7419
c4d0b332
VS
74202010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
7423
c6f2fe52
VS
74242010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 Wait for user entry basing on presence of output rather than on errors.
7427
7428 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
7429 (grub_install_newline_hook): Likewise.
7430 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
7431 * normal/menu.c (show_menu): Check line_counter to determine presence
7432 of output.
7433 * normal/term.c (grub_normal_line_counter): New variable.
7434 (grub_normal_get_line_counter): New function.
7435 (grub_install_newline_hook): Likewise.
7436
5382b1e4
VS
74372010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
7440
5519963b
VS
74412010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 * configure.ac: Update version to 1.98.
7444
72b28631
VS
74452010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 * util/grub.d/10_linux.in (linux_entry): Don't default to
7448 gfxpayload=keep if Linux doesn't support video handover.
7449
c140a180
VS
74502010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7451
7452 Don't compile video modules on yeeloong since video subsystem is part
7453 of kernel.
7454
7455 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
7456 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
7457 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
7458 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
7459 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
7460 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
7461 * include/grub/bitmap_scale.h: Likewise.
7462 * include/grub/bufio.h: Likewise.
7463 * include/grub/font.h: Likewise.
7464 * include/grub/gfxterm.h: Likewise.
7465 * include/grub/video.h: Likewise.
7466 * include/grub/vbe.h: Don't include video_fb.h.
7467 * video/i386/pc/vbe.c: Include video_fb.h.
7468 * commands/i386/pc/vbetest.c: Include video.h.
7469
a0ca21c2
CW
74702010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
7471
7472 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
7473 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
7474 default entry if GRUB_SAVEDEFAULT=true. This allows using
7475 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
7476 saving a new default on every boot.
7477
4a8a763c
VS
74782010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * normal/crypto.c (read_crypto_list): Fix a memory leak.
7481 * normal/term.c (read_terminal_list): Likewise.
7482 * normal/main.c (grub_normal_init_page): Likewise.
7483 (grub_normal_read_line_real): Likewise.
7484
607ffde2
VS
74852010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
7488 memory leak.
7489 Reported by: Seth Goldberg.
7490
2b8fa975
CW
74912010-02-24 Joey Korkames <joey+lists@kidfixit.com>
7492
7493 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
7494 duplicate declaration of `start'.
7495
618307dd
VS
74962010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
7499 filename.
7500 Reported by: Georgy Buranov
7501
7dd05b96 75022010-02-20 Carles Pina i Estany <carles@pina.cat>
7503
7504 * util/grub-mkrawimage.c (usage): Change string formatting to
7505 improve gettext.
7506
d1484a42
MRA
75072010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
7508
7509 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
7510 backspace keys.
7511
42b1d186
VS
75122010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
7515 Reported by: Michael Suchanek.
7516
75172010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
7518
7519 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
7520 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
7521
d9f31a41
VS
75222010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 Remove any reference to non-free fonts.
7525
7526 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
7527 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
7528 uses non-free components.
7529 * font/font.c (grub_font_get_name): Remove example name.
7530 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
7531 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
7532 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
7533 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
7534
2793c71e
GB
75352010-02-16 Georgy Buranov <gburanov@gmail.com>
7536
7537 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
7538
402e3779
VS
75392010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
7540
7541 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
7542 Double divisor.
7543 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
7544 features.
7545 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
7546
0dd1e0dd
VS
75472010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * gensymlist.sh.in: Use TARGET_CC instead of CC.
7550
6fa7cfce
ST
75512010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7552
7553 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
7554 * docs/grub.texi (Command-line and menu entry commands): Document play
7555 command.
7556
37c8483b
ST
75572010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7558
7559 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
7560 parse arguments as inline tempo and notes. Move code for playing notes
7561 to...
7562 (play): ... new function.
7563
14da0fb7
ST
75642010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7565
7566 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
7567 grub_uint16_t instead of short.
7568 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
7569 disk from little endian to cpu endianness.
7570
04459e70
ST
75712010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
7572
7573 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
7574 GRUB_TICKS_PER_SECOND instead of 120.
7575
a0876943
VS
75762010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
7579 escape sequence after \e.
7580
e29f95dc
VS
75812010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
7584 non-ASCII characters.
7585
d27859b2
VS
75862010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
7589 set root in single quotes to prevent \, from being unescaped.
7590
bc028f2f
VS
75912010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7592
7593 Prevent unknown commands from stopping menuentry execution.
7594
7595 * script/execute.c (grub_script_execute_cmdline): Print error after
7596 unknown command.
7597
095f5f82
VS
75982010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
7601 Reported by: Pavel Pisa.
7602
8c717950
VS
76032010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
7606
904935c3
VS
76072010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 Merge grub_ieee1275_map_physical into grub_map and rename to
7610 grub_ieee1275_map
7611
7612 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
7613 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
7614 Remove.
7615 * kern/ieee1275/openfw.c (grub_map): Rename to ...
7616 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
7617 necessary.
7618 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
7619
5b59a4e3
VS
76202010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
7623 opening and not after.
7624
69e137e8
VS
76252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
7628 constants.
7629
2c0fcc36
VS
76302010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
7633 (alloc_phys): Use ALIGN_UP instead of align_addr.
7634
8c6052ce
VS
76352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
7638
17cec782
VS
76392010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7640
7641 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
7642
e0128bbd
VS
76432010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
7646 verbose dprintf.
7647
ca62070b
VS
76482010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7649
7650 Fix over-4GiB seek on sparc64.
7651
7652 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
7653 Replace pos_i and pos_lo with pos. All users updated.
7654 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
7655 New constant.
7656 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
7657 Likewise.
7658 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
7659 and pos_lo.
7660
bdca2607
VS
76612010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * util/grub-mkrawimage.c (main): Call set_program_name.
7664
da278c4d
VS
76652010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 Properly align 64-bit targets.
7668
7669 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
7670 (generate_image): Use ALIGN_ADDR.
7671
b274d734
VS
76722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 Properly create cross-endian images.
7675
7676 * include/grub/types.h (grub_host_to_target_addr): New macro
7677 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
7678
82da2062
VS
76792010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
7680
7681 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
7682
7cae4377
VS
76832010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
7686
7687 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
7688 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
7689 (grub_linux_boot): Divide by 64K when on VESA.
7690
65a533e7
VS
76912010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 Support GRUB_GFXPAYLOAD_LINUX.
7694
7695 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
7696 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
7697
dd01d397
VS
76982010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
7701 to show messages instead of discarding them.
7702 Process errors after executing command and not before. Keep old method
7703 too as precaution.
7704
660960d6
VS
77052010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 * configure.ac: Check for ft2build.h.
7708
62509f04
VS
77092010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
7712
473df63d
VS
77132010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * genkernsyms.sh.in: Use TARGET_CC.
7716
c98d2a13
CW
77172010-02-07 Colin Watson <cjwatson@ubuntu.com>
7718
7719 * NEWS: Update.
7720
6e14234c
VS
77212010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7722
7723 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
7724 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
7725 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 7726
b255e9cf
YB
77272010-02-07 Yves Blusseau <blusseau@zetam.org>
7728
6e14234c 7729 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 7730
98e6959d
VS
77312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 Fix warnings in grub-emu when compiling with maximum warning options.
7734
7735 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
7736 (grub_arch_modules_addr): Return 0 and not NULL.
7737 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 7738 (xstrdup): Use newstr instead of dup.
f88d801b
VS
7739 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
7740 of disk to dsk to avoid shadowing.
74e4934e
VS
7741 (find_free_slot): Fix prototype.
7742 * util/getroot.c (grub_util_is_dmraid): Make static.
7743 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
7744 Add missing prototype.
7745 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 7746
74e31b5c
VS
77472010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * loader/i386/linux.c (grub_linux_setup_video): Handle error
7750 appropriately.
7751
6b2ad14b
VS
77522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
7755 code out.
7756
8f891adc
VS
77572010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7758
7759 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
7760 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
7761 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
7762 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
7763 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
7764 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
7765
74b45184
VS
77662010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 * include/grub/err.h (grub_err_printf): Don't export.
7769
a4bced77
VS
77702010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7771
7772 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
7773
007d0695
VS
77742010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7775
7776 * include/grub/i18n.h (grub_gettext_dummy): Removed.
7777 * kern/misc.c (grub_gettext_dummy): Make static.
7778
b6c0d9c2
VS
77792010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7780
7781 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
7782 by non-valid ones.
7783 * kern/term.c (grub_putchar): Likewise.
7784
f51a90d0
VS
77852010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
7788 buggy hook call and memory leak.
7789
6846cec5
VS
77902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
7793
468d69fe
VS
77942010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7795
7796 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
7797
51906b8c
VS
77982010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7799
7800 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
7801 modevar.
7802 Return grub_errno on allocation error.
7803
09706ce5
VS
78042010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7805
7806 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
7807
911df80c
YB
78082010-02-06 Yves Blusseau <blusseau@zetam.org>
7809
7810 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
7811 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
7812
3746a6bc
VS
78132010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
7816 non-pxe disk.
7817 (grub_pxefs_open): Likewise.
7818
09706ce5
VS
78192010-02-06 Robert Millan <rmh.grub@aybabtu.com>
7820
7821 * util/grub.d/10_hurd.in: Add --class information to menuentries.
7822 * util/grub.d/10_kfreebsd.in: Likewise.
7823 * util/grub.d/10_linux.in: Likewise.
7824
7cc192d9
VS
78252010-02-06 Colin D Bennett <colin@gibibit.com>
7826
7827 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
7828 (gfxmenu_mod_SOURCES): New variable.
7829 (gfxmenu_mod_CFLAGS): Likewise.
7830 (gfxmenu_mod_LDFLAGS): Likewise.
7831 * include/grub/term.h (grub_term_set_current_output): Declare
7832 argument as const.
7833 * docs/gfxmenu-theme-example.txt: New file.
7834 * gfxmenu/gfxmenu.c: Likewise.
7835 * gfxmenu/gui_box.c: Likewise.
7836 * gfxmenu/gui_canvas.c: Likewise.
7837 * gfxmenu/gui_circular_progress.c: Likewise.
7838 * gfxmenu/gui_image.c: Likewise.
7839 * gfxmenu/gui_label.c: Likewise.
7840 * gfxmenu/gui_list.c: Likewise.
7841 * gfxmenu/gui_progress_bar.c: Likewise.
7842 * gfxmenu/gui_string_util.c: Likewise.
7843 * gfxmenu/gui_util.c: Likewise.
7844 * gfxmenu/icon_manager.c: Likewise.
7845 * gfxmenu/model.c: Likewise.
7846 * gfxmenu/named_colors.c: Likewise.
7847 * gfxmenu/theme_loader.c: Likewise.
7848 * gfxmenu/view.c: Likewise.
7849 * gfxmenu/widget-box.c: Likewise.
7850 * include/grub/gfxmenu_model.h: Likewise.
7851 * include/grub/gfxmenu_view.h: Likewise.
7852 * include/grub/gfxwidgets.h: Likewise.
7853 * include/grub/gui.h: Likewise.
7854 * include/grub/gui_string_util.h: Likewise.
7855 * include/grub/icon_manager.h: Likewise.
7856
78572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 Agglomerate scrolling in gfxterm.
7860
7861 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
7862 (grub_virtual_screen_setup): Initialise 'total_screen'.
7863 (write_char): Split to ...
7864 (paint_char): ... this ...
7865 (write_char): ... and this.
7866 (paint_char): Handle delayed scrolling.
7867 (draw_cursor): Likewise.
7868 (scroll_up): Split to ...
7869 (real_scroll): ... this ...
7870 (scroll_up): ... and this.
7871 (real_scroll): Handle multi-line scroll and draw below-the-bottom
7872 characters.
7873 (grub_gfxterm_refresh): Call real_scroll.
7874
78752010-02-06 Colin D Bennett <colin@gibibit.com>
7876
7877 * include/grub/misc.h (grub_iscntrl): New inline function.
7878 (grub_isalnum): Likewise.
7879 (grub_strtol): Likewise.
7880
78812010-02-06 Colin D Bennett <colin@gibibit.com>
7882
7883 * normal/menu_text.c (get_entry_number): Move from here ...
7884 * normal/menu.c (get_entry_number): ... moved here.
7885 * include/grub/menu.h (grub_menu_get_default_entry_index):
7886 New prototype.
7887 * normal/menu.c (grub_menu_get_default_entry_index): New function.
7888 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
7889 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
7890 (grub_menu_viewer_should_return): Likewise.
7891 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
7892 * normal/menu_text.c (run_menu): Enable menu switching.
7893 * normal/menu_viewer.c (should_return): New variable.
7894 (menu_viewer_changed): Likewise.
7895 (grub_menu_viewer_show_menu): Handle menu viewer changes.
7896 (grub_menu_viewer_should_return): New function.
7897 (menuviewer_write_hook): Likewise.
7898 (grub_menu_viewer_init): Likewise.
7899
79002010-02-06 Colin D Bennet <colin@gibibit.com>
79012010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7902
7903 Support for gfxterm in a window.
7904
7905 * include/grub/gfxterm.h: New file.
7906 * include/grub/video.h (struct grub_video_rect): New declaration.
7907 (grub_video_rect_t): Likewise.
7908 * term/gfxterm.c (struct grub_gfxterm_window): New type.
7909 (refcount): New variable.
7910 (render_target): Likewise.
7911 (window): Likewise.
7912 (repaint_callback): Likewise.
7913 (grub_virtual_screen_setup): Use 'render_target'.
7914 (init_window): New function.
7915 (grub_gfxterm_init_window): Likewise.
7916 (grub_gfxterm_init): Check reference counter.
7917 Use init_window.
7918 (destroy_window): New function.
7919 (grub_gfxterm_destroy_window): Likewise.
7920 (grub_gfxterm_fini): Check reference counter.
7921 Use destroy_window.
7922 (redraw_screen_rect): Restore viewport.
7923 Use 'render_target' and 'window'.
7924 Call 'repaint_callback'.
7925 (write_char): Use 'render_target'.
7926 (draw_cursor): Likewise.
7927 (scroll_up): Restore viewport.
7928 Use 'render_target' and 'window'.
7929 Call 'repaint_callback'.
7930 (grub_gfxterm_cls): Likewise.
7931 (grub_gfxterm_refresh): Use 'window'.
7932 (grub_gfxterm_set_repaint_callback): New function.
7933 (grub_gfxterm_background_image_cmd): Use 'window'.
7934 (grub_gfxterm_get_term): New function.
7935 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
7936
79372010-02-06 Colin D Bennett <colin@gibibit.com>
7938
7939 Bitmap scaling support.
7940
7941 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
7942 (bitmap_scale_mod_SOURCES): New variable.
7943 (bitmap_scale_mod_CFLAGS): Likewise.
7944 (bitmap_scale_mod_LDFLAGS): Likewise.
7945 * include/grub/bitmap_scale.h: New file.
7946 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
7947 (background_image_cmd_options): New variable.
7948 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
7949 (cmd): Rename and change type to ...
7950 (background_image_cmd_handle): ... this. All users updated.
7951 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
7952 * video/bitmap_scale.c: New file.
7953
79542010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7955
7956 SDL support.
7957
7958 * Makefile.in (LIBSDL): New variable.
7959 (enable_grub_emu_sdl): Likewise.
7960 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
7961 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
7962 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
7963 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
7964 * util/sdl.c: New file.
7965
79662010-02-06 Colin D Bennett <colin@gibibit.com>
79672010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7968
7969 Double buffering support.
7970
7971 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
7972 * include/grub/video.h: Update comment.
7973 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
7974 New type.
7975 (grub_video_fb_doublebuf_blit_init): New prototype.
7976 * term/gfxterm.c (scroll_up): Support double buffering.
7977 (grub_gfxterm_refresh): Likewise.
7978 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
7979 (grub_video_fb_doublebuf_blit_init): Likewise.
7980 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
7981 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
7982 'displayed_page', 'render_page' and 'update_screen'.
7983 (grub_video_vbe_fini): Free offscreen buffer.
7984 (doublebuf_pageflipping_commit): New function.
7985 (doublebuf_pageflipping_update_screen): Likewise.
7986 (doublebuf_pageflipping_init): Likewise.
7987 (double_buffering_init): Likewise.
7988 (grub_video_vbe_setup): Enable doublebuffering.
7989 (grub_video_vbe_swap_buffers): Implement.
7990 (grub_video_vbe_set_active_render_target): Handle double buffering.
7991 (grub_video_vbe_get_active_render_target): Likewise.
7992 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
7993 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
7994 (grub_video_vbe_enable_double_buffering): Likewise.
7995 (grub_video_vbe_swap_buffers): Use update_screen.
7996 (grub_video_set_mode): Use double buffering.
7997
79982010-02-06 Robert Millan <rmh.grub@aybabtu.com>
7999
8000 * maintainance/gentrigtables.py: Remove.
8001 * lib/trig.c: Likewise.
8002
8003 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
8004
8005 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
8006 `trigtables.c'.
8007 (trigtables.c): New rule.
8008 (gentrigtables): Likewise.
8009 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
8010
80112010-02-06 Robert Millan <rmh.grub@aybabtu.com>
8012
8013 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
8014 integer constants.
8015
80162010-02-06 Colin D Bennet <colin@gibibit.com>
8017
8018 Trigonometry support.
8019
8020 * include/grub/trig.h: New file.
8021 * lib/trig.c: Likewise.
8022 * maintainance/gentrigtables.py: Likewise.
8023 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
8024 (trig_mod_SOURCES): New variable.
8025 (trig_mod_CFLAGS): Likewise.
8026 (trig_mod_LDFLAGS): Likewise.
8027
5562834e
VS
80282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8029
8030 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
8031 disk devices.
8032
4f8528fc
VS
80332010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8034
8035 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
8036 error.
8037
2b4068e9
VS
80382010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8039
8040 * util/hostdisk.c (open_device): Don't use partition device when reading
8041 before the partition.
8042 (grub_util_biosdisk_read): Don't read from partition and before the
8043 partition in single operation.
8044 (grub_util_biosdisk_write): Don't write to partition and before the
8045 partition in single operation.
8046
399f6e4d
TL
80472010-02-03 Torsten Landschoff <torsten@debian.org>
8048
8049 * kern/disk.c (grub_disk_read): Fix offset computation when reading
8050 last sectors.
8051
996649b0
VS
80522010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8053
8054 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
8055 CDROM reads.
8056 (grub_biosdisk_write): Refuse to write to CDROM.
8057
3b205d4d
VS
80582010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
8061
61e89d9d
VS
80622010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 * font/font.c (find_glyph): Check that bmp_idx is available before
8065 using it.
8066 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
8067 with (font == NULL).
8068
bf7fcba2
CS
80692010-01-28 Christian Schmitt <chris@ilovelinux.de>
8070
8071 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
8072
f45d2663
BC
80732010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
8074
8075 * include/grub/script_sh.h (sourcecode): Add const qualifier.
8076 * util/grub-script-check.c (getline): Fix empty lines case.
8077
ec1444e6
RM
80782010-01-28 Robert Millan <rmh.grub@aybabtu.com>
8079
8080 * Makefile.in (check): Exit with fail status when one of the tests
8081 fails.
8082 * tests/example_functional_test.c (example_test): Fix reversed assert.
8083 * tests/example_unit_test.c (example_test): Likewise.
8084
2e1cb9bb
CW
80852010-01-28 Colin Watson <cjwatson@ubuntu.com>
8086
8087 * util/grub.d/10_linux.in: This script does not use any of the
8088 contents of gettext.sh, only the external command `gettext', so stop
8089 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
8090 the same prefix as GRUB.)
8091 * util/grub.d/10_kfreebsd.in: Likewise.
8092
63533ab0
VS
80932010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
8096 of the line.
8097
989e1f93
VS
80982010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * kern/disk.c (grub_disk_read): Fix offset computation when reading
8101 last sectors.
8102
e709ebe2
VS
81032010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
8106 having a 4KiB and not 32KiB buffer size.
8107
27dea7ed
RM
81082010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8109
8110 * util/hostfs.c: Include `<errno.h>'.
8111 (grub_hostfs_read): Handle errors from fseeko() and fread().
8112
67667b9c
RM
81132010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8114
8115 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
8116 loop when using read hooks on files whose size isn't sector-aligned.
8117
c294d9d8
RM
81182010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8119
8120 Remove unused parameter.
8121
8122 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
8123 (grub_iso9660_open): Remove initialization of `data->length'.
8124
af75a9f1
RM
81252010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8126
8127 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
8128 memleak conditions.
8129
254e2ce5 81302010-01-27 Carles Pina i Estany <carles@pina.cat>
8131
8132 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
8133 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
8134
b510928c 81352010-01-26 Carles Pina i Estany <carles@pina.cat>
8136
8137 * util/bin2h.c (usage): Fix warning (space after backslash).
8138
aa2f9dd2 81392010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 8140
8141 * font/font.c: Include `grub/fontformat.h.
8142 Remove font file format constants.
8143 (grub_font_load): Use the new macros.
8144 * include/grub/fontformat.h: New file.
8145 * util/grub-mkfont.c: Include `grub/fontformat.c'.
8146 (write_font_pf2): Use the new macros.
8147
94e7e712
RM
81482010-01-26 Robert Millan <rmh.grub@aybabtu.com>
8149
8150 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
8151 does.
8152
3973a59a
RM
81532010-01-26 Robert Millan <rmh.grub@aybabtu.com>
8154
8155 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
8156
8157 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
8158 (_start): Macroify `0x7F'.
8159
8160 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
8161 (make_install_device): Use "(pxe)" as fallback prefix when booting
8162 via PXE.
8163
42e0cba3
GS
81642010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * configure.ac: Reset LIBS after check for libgcc symbols.
8167
847effd8
CW
81682010-01-25 Colin Watson <cjwatson@ubuntu.com>
8169
8170 * util/hostdisk.c (open_device): Add trailing newline to debug
8171 message.
8172
ea4a7e35
GS
81732010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8174
8175 * configure.ac: Check for `limits.h'.
8176 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
8177
67951a53
RM
81782010-01-24 Robert Millan <rmh.grub@aybabtu.com>
8179
8180 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
8181 capitalize error strings.
8182
c273d4ce
ST
81832010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
8184
8185 * util/grub.d/10_hurd.in: Add a recovery mode.
8186
69be5b74
VS
81872010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * configure.ac: Check for libgcc symbols with -nostdlib.
8190
fc9e5810
BC
81912010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
8192
8193 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
8194
4b358c0a
VS
81952010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8196
8197 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
8198 stack since heap may be unavailable at that point.
8199 (grub_ofconsole_gotoxy): Likewise.
8200
454fcd1c
VS
82012010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 * configure.ac: Check for _restgpr_14_x.
8204 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
8205 and _savegpr_* prototypes.
8206
566863ca
RM
82072010-01-22 Robert Millan <rmh.grub@aybabtu.com>
8208
8209 Use generic grub_reboot() for i386-efi.
8210
8211 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
8212 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
8213 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
8214
bf86e59a
VS
82152010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8216
8217 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
8218 presence of "prefix" variable as it breaks when normal.mod is
8219 embedded.
8220
d645e0f8
VS
82212010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
8222
8223 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
8224 stack since heap is unavailable at that point.
8225
f9ab2e25
VS
82262010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
8227
8228 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
8229 (grub_freebsd_bootinfo): Rewritten.
8230 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
8231
01fc7054
VS
82322010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
8233
8234 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
8235
caab4fd6
RM
82362010-01-21 Robert Millan <rmh.grub@aybabtu.com>
8237
8238 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
8239 domain now.
8240
67eb1427
FZ
82412010-01-20 Felix Zielcke <fzielcke@z-51.de>
8242
8243 * util/misc.c (make_system_path_relative_to_its_root): Change the work
8244 around for handling "/" to the correct fix. Fix a memory leak. Use
8245 xstrdup instead of strdup.
8246
a9ed4ff3
VS
82472010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8248
8249 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
8250
82512010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
8252
8253 Optimise glyph lookup by Basic Multilingual Plane lookup array.
8254
8255 * font/font.c (struct grub_font): New member 'bmp_idx'.
8256 (font_init): Initialise 'bmp_idx'.
8257 (load_font_index): Fill 'bmp_idx'.
8258 (find_glyph): Make inline. Use bmp_idx for BMP characters.
8259
48209f4f
VS
82602010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
8263 unnecessary calls.
8264
9f0a4bb7
VS
82652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 Move context handling out of the kernel.
8268
8269 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
8270 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
8271 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
8272 * conf/i386-efi.rmk: Likewise.
8273 * conf/i386-ieee1275.rmk: Likewise.
8274 * conf/i386-pc.rmk: Likewise.
8275 * conf/powerpc-ieee1275.rmk: Likewise.
8276 * conf/sparc64-ieee1275.rmk: Likewise.
8277 * conf/x86_64-efi.rmk: Likewise.
8278 * include/grub/env.h: Include grub/menu.h.
8279 (grub_env_var_type): Removed.
8280 (grub_env_var): Replaced field 'type' with 'global'.
8281 (grub_env_find): New prototype.
8282 (grub_env_context_open): Remove EXPORT_FUNC.
8283 (grub_env_context_close): Likewise.
8284 (grub_env_export): Likewise.
8285 (grub_env_set_data_slot): Removed.
8286 (grub_env_get_data_slot): Likewise.
8287 (grub_env_unset_data_slot): Likewise.
8288 (grub_env_unset_menu): New prototype.
8289 (grub_env_set_menu): Likewise.
8290 (grub_env_get_menu): Likewise.
8291 * include/grub/env_private.h: New file.
8292 * include/grub/normal.h (grub_context_init): New prototype.
8293 (grub_context_fini): Likewise.
8294 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
8295 * normal/context.c (grub_cmd_export): ... to here.
8296 * kern/env.c: Include env_private.h.
8297 (HASHSZ): Moved to include/grub/env_private.h.
8298 (grub_env_context): Likewise.
8299 (grub_env_sorted_var): Likewise.
8300 (current_context): Renamed from this ...
8301 (grub_current_context): ...to this. 'static' removed. All users updated.
8302 (grub_env_find): Removed 'static'.
8303 (grub_env_context_open): Moved to normal/context.c.
8304 (grub_env_context_close): Likewise.
8305 (grub_env_export): Likewise.
8306 (mangle_data_slot_name): Removed.
8307 (grub_env_set_data_slot): Likewise.
8308 (grub_env_get_data_slot): Likewise.
8309 (grub_env_unset_data_slot): Likewise.
8310 * kern/main.c (grub_set_root_dev): Don't export root.
8311 It will be done later.
8312 (grub_main): Don't export prefix.
8313 It will be done later.
8314 * normal/context.c: New file.
8315 * normal/main.c (free_menu): Use grub_env_unset_menu.
8316 (grub_normal_add_menu_entry): Use grub_env_get_menu.
8317 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
8318 (GRUB_MOD_INIT(normal)): Call grub_context_init.
8319 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
8320
8dd35b8c
VS
83212010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8322
8323 setpci support.
8324
8325 * commands/setpci.c: New file.
8326 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
8327 (setpci_mod_SOURCES): New variable.
8328 (setpci_mod_CFLAGS): Likewise.
8329 (setpci_mod_LDFLAGS): Likewise.
8330
449193d5
VS
83312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8332
8333 Byte-addressable PCI configuration space.
8334
8335 * bus/pci.c (grub_pci_make_address): Use byte address instead of
8336 dword address.
8337 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
8338 GRUB_PCI_REG_CACHELINE.
8339 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
8340 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
8341 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
8342 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
8343 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
8344 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
8345 grub_pci_make_address.
8346 (lock_rom_area): Likewise.
8347 * commands/lspci.c (grub_lspci_iter): Use macroses
8348 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
8349 of grub_pci_make_address.
8350 * disk/ata.c (grub_ata_pciinit): Likewise.
8351 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
8352 (GRUB_PCI_REG_VENDOR): Likewise.
8353 (GRUB_PCI_REG_DEVICE): Likewise.
8354 (GRUB_PCI_REG_COMMAND): Likewise.
8355 (GRUB_PCI_REG_STATUS): Likewise.
8356 (GRUB_PCI_REG_REVISION): Likewise.
8357 (GRUB_PCI_REG_CLASS): Likewise.
8358 (GRUB_PCI_REG_CACHELINE): Likewise.
8359 (GRUB_PCI_REG_LAT_TIMER): Likewise.
8360 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
8361 (GRUB_PCI_REG_BIST): Likewise.
8362 (GRUB_PCI_REG_ADDRESSES): Likewise.
8363 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8364 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8365 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8366 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8367 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8368 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
8369 (GRUB_PCI_REG_CIS_POINTER): Likewise.
8370 (GRUB_PCI_REG_SUBVENDOR): Likewise.
8371 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
8372 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
8373 (GRUB_PCI_REG_CAP_POINTER): Likewise.
8374 (GRUB_PCI_REG_IRQ_LINE): Likewise.
8375 (GRUB_PCI_REG_IRQ_PIN): Likewise.
8376 (GRUB_PCI_REG_MIN_GNT): Likewise.
8377 (GRUB_PCI_REG_MAX_LAT): Likewise.
8378 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
8379 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
8380 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 8381 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
8382 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
8383 space.
8384
96d73208
RM
83852010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8386
8387 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
8388 can be reliably determined to be supported.
8389
d4484482
RM
83902010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8391
8392 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
8393 that VESA is supported.
8394 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
8395 supported.
8396
00308ecf
VS
83972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8398
8399 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
8400
f66924a4
RM
84012010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8402
8403 * util/misc.c (make_system_path_relative_to_its_root): Work around
8404 special-casing of "/", as previous incarnation of this routine did.
8405
cbca0ada
VS
84062010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8407
8408 Fix any-emu compilation.
8409
8410 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
8411 * grub_bin2h_SOURCES: New variable.
8412
34a66d99
RM
84132010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8414
8415 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
8416
94fabf58
RM
84172010-01-20 Robert Millan <rmh.grub@aybabtu.com>
8418
8419 * util/grub.d/00_header.in: Fix handling of locale_dir.
8420
02cf98ca
VS
84212010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
8424 as possible unifont location (Gentoo).
8425 Reported by: Alexander Brüning
8426
327dbcd7
VS
84272010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 Don't try to generate lists for kernel.img.
8430
8431 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
8432 (pkglib_MODULES): Remove kernel.img.
8433 (kernel_img_EXPORTS): Removed.
8434 (kernel_img_RELOCATABLE): New variable.
8435 * conf/x86_64-efi.rmk: Likewise.
8436 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
8437
ca467290
VS
84382010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
8441 grub_xasprintf or grub_snprintf.
8442 (grub_vsprintf): Likewise.
8443 (grub_snprintf): New proto.
8444 (grub_vsnprintf): Likewise.
8445 (grub_xasprintf): Likewise.
8446 (grub_xvasprintf): Likewise.
8447 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
8448 (grub_sprintf): Removed.
8449 (grub_vsnprintf): New function.
8450 (grub_snprintf): Likewise.
8451 (grub_xvasprintf): Likewise.
8452 (grub_xasprintf): Likewise.
8453 (grub_vsprintf): Renamed to ...
8454 (grub_vsnprintf_real): ...this. New argument max_len.
8455
aca655fd
BC
84562010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
8457
8458 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
8459 fix grub-script-check warning.
8460
7ee92c32
VS
84612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 * include/grub/font.h (grub_font_load): Fix prototype.
8464
f80927ca
VS
84652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
8468
119c50ea
VS
84692010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8470
8471 * include/grub/x86_64/at_keyboard.h: New file.
8472
47d5f3c1
VS
84732010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8474
8475 * loader/mips/linux.c: Include missing grub/i18n.h.
8476
55ff5266
RM
84772009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8478
8479 * normal/menu.c (notify_execution_failure): Clarify error message.
8480
c893cc87
RM
84812009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8482
8483 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
8484 return value (and revert all return statements). Update users.
8485
917dd370
CW
84862010-01-20 Dan Merillat <debian@dan.merillat.org>
8487
8488 * kern/device.c (grub_device_iterate): Allocate new part_ent
8489 structure based on sizeof (*p) rather than sizeof (p->next), to
8490 account for structure padding.
8491
8492 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
8493 disk is NULL, which might happen for LVM physical volumes with no
8494 LVM signature.
8495
d4a4ee57
RM
84962009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8497
8498 * loader/mips/linux.c (grub_cmd_initrd)
8499 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
8500
85012009-12-20 Robert Millan <rmh.grub@aybabtu.com>
8502
8503 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
8504 (grub_video_video_init, grub_video_bitmap_init)
8505 (grub_font_manager_init, grub_term_gfxterm_init)
8506 (grub_at_keyboard_init): New extern declarations.
8507 (grub_machine_init): Initialize gfxterm and at_keyboard.
8508
8509 * kern/main.c (grub_main): Revert grub_printf delay kludge.
8510
8511 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
8512 `gfxterm.mod' into core image.
8513
8514 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
8515 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
8516 (kernel_img_FORMAT): Copy to ...
8517
8518 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
8519 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
8520 (kernel_img_FORMAT): ... here, and ...
8521
8522 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
8523 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
8524 (kernel_img_FORMAT): ... here.
8525
8526 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
8527 and input (at_keyboard) terminals in kernel.
8528 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
8529
8530 (pkglib_MODULES): Remove `pci.mod'.
8531 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
8532 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
8533 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
8534 (at_keyboard_mod_LDFLAGS): Remove variables.
8535
85362010-01-11 Felix Zielcke <fzielcke@z-51.de>
8537
8538 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
8539
85402009-12-10 Robert Millan <rmh.grub@aybabtu.com>
8541
8542 * include/grub/mips/libgcc.h: Only export symbols for functions
8543 that libgcc provides.
8544
85452009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 MIPS support.
8548
8549 * bus/bonito.c: New file.
8550 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
8551 GRUB_PCI_NUM_DEVICES.
8552 * term/i386/pc/serial.c: Move to ...
8553 * term/serial.c: ... here. All users updated.
8554 * util/i386/pc/grub-mkimage.c: Move to ...
8555 * util/grub-mkrawimage.c: ... here. All users updated.
8556 * term/i386/pc/at_keyboard.c: Move to ...
8557 * term/at_keyboard.c: ... here. All users updated.
8558 * conf/mips-qemu-mips.rmk: New file.
8559 * conf/mips-yeeloong.rmk: Likewise.
8560 * conf/mips.rmk: Likewise.
8561 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
8562 mipsel-qemu-mips.
8563 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
8564 to port addresses.
8565 (grub_ata_pciinit): Support CS5536.
8566 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
8567 * font/font_cmd.c (loadfont_command): Open file before passing it to
8568 grub_font_load.
8569 (pseudo_file_read): New function.
8570 (pseudo_file_close): Likewise.
8571 (pseudo_fs): New structure.
8572 (load_font_module): New function.
8573 (GRUB_MOD_INIT(font_manager)): Load embedded font.
8574 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
8575 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
8576 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
8577 * include/grub/i386/at_keyboard.h: Split into ...
8578 * include/grub/at_keyboard.h: ... this ...
8579 * include/grub/i386/at_keyboard.h: ... and this.
8580 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
8581 New prototype.
8582 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
8583 updated.
8584 (grub_elf64_size): Likewise.
8585 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
8586 filename.
8587 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
8588 * include/grub/i386/coreboot/serial.h: Rewritten.
8589 * include/grub/i386/ieee1275/serial.h: Include
8590 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
8591 * include/grub/i386/pc/serial.h: Moved from here ...
8592 * include/grub/serial.h: ... to here. All users updated.
8593 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
8594 (GRUB_PCI_NUM_BUS): Likewise.
8595 (GRUB_PCI_NUM_DEVICES): Likewise.
8596 (grub_pci_device_map_range): Add missing volatile keyword.
8597 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
8598 * include/grub/mips/at_keyboard.h: New file.
8599 * include/grub/mips/cache.h: Likewise.
8600 * include/grub/mips/io.h: Likewise.
8601 * include/grub/mips/kernel.h: Likewise.
8602 * include/grub/mips/libgcc.h: Likewise.
8603 * include/grub/mips/pci.h: Likewise.
8604 * include/grub/mips/qemu-mips/boot.h: Likewise.
8605 * include/grub/mips/qemu-mips/kernel.h: Likewise.
8606 * include/grub/mips/qemu-mips/loader.h: Likewise.
8607 * include/grub/mips/qemu-mips/memory.h: Likewise.
8608 * include/grub/mips/qemu-mips/serial.h: Likewise.
8609 * include/grub/mips/qemu-mips/time.h: Likewise.
8610 * include/grub/mips/relocator.h: Likewise.
8611 * include/grub/mips/time.h: Likewise.
8612 * include/grub/mips/types.h: Likewise.
8613 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
8614 * include/grub/mips/yeeloong/boot.h: Likewise.
8615 * include/grub/mips/yeeloong/kernel.h: Likewise.
8616 * include/grub/mips/yeeloong/loader.h: Likewise.
8617 * include/grub/mips/yeeloong/memory.h: Likewise.
8618 * include/grub/mips/yeeloong/pci.h: Likewise.
8619 * include/grub/mips/yeeloong/serial.h: Likewise.
8620 * include/grub/mips/yeeloong/time.h: Likewise.
8621 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
8622 * kern/elf.c (grub_elf32_size): New parameter. All users
8623 updated.
8624 (grub_elf64_size): Likewise.
8625 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
8626 Load modules before saying "Welcome to GRUB!".
8627 Call grub_refresh after saying "Welcome to GRUB!".
8628 * kern/mips/cache.S: New file.
8629 * kern/mips/cache_flush.S: Likewise.
8630 * kern/mips/dl.c: Likewise.
8631 * kern/mips/init.c: Likewise.
8632 * kern/mips/qemu-mips/init.c: Likewise.
8633 * kern/mips/startup.S: Likewise.
8634 * kern/mips/yeeloong/init.c: Likewise.
8635 * kern/term.c (grub_putcode): Handle NULL terminal.
8636 (grub_getcharwidth): Likewise.
8637 (grub_getkey): Likewise.
8638 (grub_checkkey): Likewise.
8639 (grub_getkeystatus): Likewise.
8640 (grub_getxy): Likewise.
8641 (grub_getwh): Likewise.
8642 (grub_gotoxy): Likewise.
8643 (grub_cls): Likewise.
8644 (grub_setcolorstate): Likewise.
8645 (grub_setcolor): Likewise.
8646 (grub_getcolor): Likewise.
8647 (grub_refresh): Likewise.
8648 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
8649 (write_jump): Add hatch nop.
8650 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
8651 * lib/mips/setjmp.S: New file.
8652 * loader/mips/linux.c: Likewise.
8653 * term/i386/pc/at_keyboard.c: Move from here ...
8654 * term/at_keyboard.c: ... to here.
8655 * term/i386/pc/serial.c: Moved from here ...
8656 * term/serial.c: ... to here. All users updated.
8657 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
8658 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
8659 (serial_translate_key_sequence): Avoid deadlock.
8660 (grub_serial_getkey): Handle backspace.
8661 (grub_serial_putchar): Fix newline handling.
8662 * util/i386/pc/grub-mkimage.c: Move from here ...
8663 * util/grub-mkrawimage.c: ... to here. All users updated.
8664 (generate_image): New parameters 'font_path' and 'format'.
8665 Support embedding font.
8666 Use grub_host_to_target* instead of grub_cpu_to_le*.
8667 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
8668 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
8669 (options): New option "--font".
8670 (usage): Likewise.
8671 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
8672 (main): Handle "--font".
8673 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
8674 (grub_virtual_screen_setup): Set bg_color_display.
8675 (redraw_screen_rect): Use bg_color_display instead of incorrect
8676 bg_color.
8677 (grub_gfxterm_cls): Likewise.
8678 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
8679 Support embedding config file.
8680 (add_segments): Likewise.
8681 (options): New option "--config".
8682 (main): Handle "--config".
8683 * video/sm712.c: New file.
8684
25c2b5b3
RM
86852010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8686
8687 Fix parallel builds.
8688
8689 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
8690 font.c depend on ascii.h).
8691
86922010-01-12 Carles Pina i Estany <carles@pina.cat>
8693
8694 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
8695
86962010-01-11 Carles Pina i Estany <carles@pina.cat>
8697
8698 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
8699 By default: disabled.
8700 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
8701 parameter.
8702
87032010-01-10 Carles Pina i Estany <carles@pina.cat>
8704
8705 * font/font.c: Update copyright years.
8706 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
8707
87082010-01-10 Carles Pina i Estany <carles@pina.cat>
8709
8710 * font/font.c: Include `ascii.h'.
8711 (ASCII_BITMAP_SIZE): New macro.
8712 (ascii_font_glyph): Define.
8713 (ascii_glyph_lookup): New function.
8714 (grub_font_get_string_width): Change comment. If glyph not found, use
8715 ascii_glyph_lookup.
8716 (grub_font_get_glyph_with_fallback): If glyph not available returns
8717 ascii_glyph_lookup.
8718 * util/grub-mkfont.c (file_formats): New enum.
8719 (options): Add `ascii-bitmaps' new option.
8720 (usage): Add `asii-bitmaps' new option.
8721 (write_font_ascii_bitmap): New function.
8722 (write_font): Rename to ...
8723 (write_font_p2): ... this. Remove print_glyphs call.
8724 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
8725 used. Call print_glyphs.
8726 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
8727
87282010-01-14 Robert Millan <rmh.grub@aybabtu.com>
8729
8730 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
8731 (grub_bin2h_SOURCES): New variable.
8732 * util/bin2h.c: New file.
8733
915fc1b8
VS
87342010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8735
8736 * include/multiboot.h: Resynced with spec.
8737 * include/multiboot2.h: Likewise.
8738 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
8739 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
8740
9444b678
RM
87412010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8742
8743 * include/grub/term.h (grub_term_register_input,
8744 grub_term_register_output): Check return of terminal init()
8745 routines, and abort if errors are raised.
8746
8747 * commands/terminal.c: Update copyright year.
8748
cba98e8d
RM
87492010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8750
8751 * commands/terminal.c (grub_cmd_terminal_input)
8752 (grub_cmd_terminal_output): Check return of terminal init()
8753 routines, and abort if errors are raised.
8754
6f7db5d6
VS
87552010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 * include/grub/i386/bsd.h: Fix include pathes.
8758
262bff8d
VS
87592010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 Add missing *BSD copyright headers.
8762
8763 * include/grub/aout.h: Add BSD licence.
8764 * include/grub/i386/bsd.h: Parts under different licences moved to ...
8765 * include/grub/i386/freebsd_linker.h: ... here,
8766 * include/grub/i386/freebsd_reboot.h: ... here,
8767 * include/grub/i386/netbsd_bootinfo.h: ... here,
8768 * include/grub/i386/netbsd_reboot.h: ... here,
8769 * include/grub/i386/openbsd_bootarg.h: ... here,
8770 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
8771 licence to each file.
8772
b2cab848
RM
87732010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8774
8775 * acinclude.m4: Remove `nop' assembly instruction; it's not
8776 implemented by all architectures.
8777
2cb6be4b
RM
87782010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8779
8780 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
8781 ELILO. This is no longer necessary.
8782
a2eaee15
BC
87832010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
8784
8785 Added new tool, grub-scrit-check to verify grub.cfg syntax.
8786
8787 * util/grub-script-check.c: grub-script-check tool.
8788 * conf/common.rmk: Make rules for grub-script-check.
8789
88d17012
RM
87902010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8791
8792 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
8793 spotting it back in 2008. Shame on me for forgetting he did.
8794
8795 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
8796
8040619d
RM
87972010-01-18 Robert Millan <rmh.grub@aybabtu.com>
8798
8799 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
8800 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
8801 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
8802 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
8803 (GRUB_VIDEO_TYPE_EFI): Rename to ...
8804 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
8805
a0c2a0f6
RM
88062010-01-17 Robert Millan <rmh.grub@aybabtu.com>
8807
8808 * include/grub/test.h: Add license header.
8809 * tests/example_functional_test.c: Likewise.
8810 * tests/example_unit_test.c: Likewise.
8811 * tests/lib/functional_test.c: Likewise.
8812 * tests/lib/test.c: Likewise.
8813 * tests/lib/unit_test.c: Likewise.
8814
b0b13907
VS
88152010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 Use flag-based instead of hook-based video mode selection and "auto"
8818 keyword.
8819
8820 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
8821 (grub_video_set_mode): Changed prototype. All users updated.
8822 (grub_video_check_mode_flag): New inline function.
8823 * video/video.c (parse_modespec): New function.
8824 (grub_video_set_mode): Parse flags and keywords.
8825
ea379330 88262010-01-17 Carles Pina i Estany <carles@pina.cat>
8827
8828 * util/misc.c (grub_util_info): Fix the order of the parameters in a
8829 fprintf call.
8830
e15c215e
FZ
88312010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
8832
8833 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
8834
409ae1c9 88352010-01-16 Carles Pina i Estany <carles@pina.cat>
8836
8837 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
8838 string.
8839 * util/grub-emu.c (usage): Likewise.
8840 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
8841 * util/i386/efi/grub-mkimage.c (usage): Likewise.
8842 * util/i386/pc/grub-mkimage.c (usage): Likewise.
8843 * util/i386/pc/grub-setup.c (usage): Likewise.
8844
70a14d3d 88452010-01-16 Carles Pina i Estany <carles@pina.cat>
8846
8847 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
8848 the message.
8849 (grub_util_info): Likewise.
8850 (grub_util_error): Likewise.
8851 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
8852 and/or new lines in `grub_util_warna', `grub_util_info',
8853 `grub_util_error' calls.
8854 * util/getroot.c: Likewise.
8855 * util/grub-editenv.c: Likewise.
8856 * util/grub-emu.c: Likewise.
8857 * util/grub-fstest.c: Likewise.
8858 * util/grub-mkdevicemap.c: Likewise.
8859 * util/grub-mkfont.c: Likewise.
8860 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8861 * util/grub-mkrelpath.c: Likewise.
8862 * util/grub-pe2elf.c: Likewise.
8863 * util/grub-probe.c: Likewise.
8864 * util/hostdisk.c: Likewise.
8865 * util/i386/efi/grub-mkimage.c: Likewise.
8866 * util/i386/pc/grub-mkimage.c: Likewise.
8867 * util/i386/pc/grub-setup.c: Likewise.
8868 * util/ieee1275/ofpath.c: Likewise.
8869 * util/mkisofs/eltorito.c: Likewise.
8870 * util/mkisofs/rock.c: Likewise.
8871 * util/mkisofs/write.c: Likewise.
8872 * util/raid.c: Likewise.
8873 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
8874 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8875
a0b766fc
VS
88762010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 Enable multiboot on non-pc.
8879
8880 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
8881 multiboot.mod and multiboot2.mod to ...
8882 * conf/i386.rmk (pkglib_MODULES): ... here.
8883 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
8884 Moved to ...
8885 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
8886 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
8887 Moved to ...
8888 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
8889 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
8890 Moved to ...
8891 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
8892 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
8893 Moved to ...
8894 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
8895 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
8896 relocator.mod.
8897 (ata_mod_SOURCES): Removed.
8898 (ata_mod_CFLAGS): Likewise.
8899 (ata_mod_LDFLAGS): Likewise.
8900 (relocator_mod_SOURCES): Removed.
8901 (relocator_mod_CFLAGS): Likewise.
8902 (relocator_mod_ASFLAGS): Likewise.
8903 (relocator_mod_LDFLAGS): Likewise.
8904 Include i386.mk.
8905 * include/grub/x86_64/multiboot.h: New file.
8906 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
8907 Terminate EFI.
8908
884ade56
VS
89092010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 Video multiboot support.
8912
8913 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
8914 New prototype.
8915 * include/multiboot.h: Resynced with multiboot specification.
8916 * include/multiboot2.h: Likewise.
8917 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
8918 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
8919 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
8920 (HAS_VGA_TEXT): Likewise.
8921 (accepts_video): New variable.
8922 (grub_multiboot_set_accepts_video): New function.
8923 (grub_multiboot_get_mbi_size): Account for video structures.
8924 (set_video_mode): New function.
8925 (retrieve_video_parameters): Likewise.
8926 (grub_multiboot_make_mbi): Fill video fields.
8927
0d90e8a6
VS
89282010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 Video driver ids.
8931
8932 * include/grub/video.h (grub_video_driver_id): New type.
8933 (grub_video_adapter): New member 'id'. All users updated.
8934 (grub_video_get_driver_id): New proto.
8935 * video/video.c (grub_video_get_driver_id): New function.
8936
5c71db1b 89372010-01-14 Carles Pina i Estany <carles@pina.cat>
8938
8939 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
8940 `var=val'.
8941
cca15b52 89422010-01-14 Carles Pina i Estany <carles@pina.cat>
8943
8944 * normal/cmdline.c (print_completion): Gettextizze.
8945
c586fbb2 89462001-01-14 Carles Pina i Estany <carles@pina.cat>
8947
8948 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
8949
ba2f6848 89502010-01-14 Carles Pina i Estany <carles@pina.cat>
8951
8952 * gettext/gettext.c (grub_gettext_translate): Push and pop
8953 grub_errno.
8954 (grub_gettext_delete_list): Change comment style.
8955 * kern/err.c (grub_error): Gettextizze.
8956 (grub_fatal): Gettextizze.
8957
0a46429a
RM
89582010-01-14 Robert Millan <rmh.grub@aybabtu.com>
8959
8960 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
8961 (grub_linux16_real_boot): ... this.
8962 * kern/i386/loader.S: Likewise.
8963 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
8964 (grub_linux16_boot): New function. Switches to text mode and calls
8965 grub_linux16_real_boot().
8966
8967 * loader/i386/bsd.c: Include `<grub/video.h>'.
8968 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
8969 text mode before calling grub_unix_real_boot().
8970
8971 * loader/i386/multiboot.c: Include `<grub/video.h>'.
8972 (grub_multiboot_boot): Switch to text mode before calling
8973 grub_relocator32_boot().
8974
8975 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
8976 (grub_chainloader_boot): Switch to text mode before calling
8977 grub_chainloader_real_boot().
8978
d6f93a66
RM
89792010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
89802010-01-05 Colin Watson <cjwatson@ubuntu.com>
8981
8982 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
8983 non-empty value.
8984
89852010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
89862010-01-05 Colin Watson <cjwatson@ubuntu.com>
8987
8988 * util/grub.d/00_header.in: Define a "savedefault" function for use
8989 in menu entries.
8990 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
8991
89922010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
89932010-01-05 Colin Watson <cjwatson@ubuntu.com>
8994
8995 * util/grub-mkconfig_lib.in (save_default_entry): Only set
8996 saved_entry if boot_once is unset.
8997 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
8998 previous saved entry (i.e. grub-reboot).
8999
90002009-12-08 Colin Watson <cjwatson@ubuntu.com>
9001
9002 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
9003
90042009-12-08 Colin Watson <cjwatson@ubuntu.com>
9005
9006 * util/grub.d/00_header.in: Use `set var=val' rather than plain
9007 `var=val'.
9008 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
9009
90102009-12-08 Colin Watson <cjwatson@ubuntu.com>
9011
9012 * util/grub-reboot.in: Fix --version output.
9013 * util/grub-set-default.in: Likewise.
9014
90152009-12-08 Colin Watson <cjwatson@ubuntu.com>
9016
9017 * util/grub.d/00_header.in: Silently ignore zero-sized environment
9018 blocks.
9019
90202009-12-08 Colin Watson <cjwatson@ubuntu.com>
9021
9022 * util/grub.d/00_header.in: Quote the value assigned to `default',
9023 in case it contains spaces.
9024
90252009-12-08 Colin Watson <cjwatson@ubuntu.com>
9026
9027 * util/grub.d/30_os-prober.in: Fix merge error that moved a
9028 `save_default_entry' call from the macosx case to the linux case.
9029
90302009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
90312009-10-25 Colin Watson <cjwatson@ubuntu.com>
9032
9033 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
9034 in `chosen' environment variable.
9035 * normal/menu_text.c (get_entry_number): Check if the variable
9036 matches the title of a menu entry.
9037 (run_menu): Pass menu to get_entry_number.
9038
9039 * util/grub-reboot.in: New file.
9040 * util/grub-set-default.in: New file.
9041 * conf/common.rmk (grub-reboot): New utility.
9042 (grub-set-default): New utility.
9043
9044 * util/grub-mkconfig_lib.in (save_default_entry): New function.
9045 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
9046 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
9047 move it to `saved_entry' for the next boot. Load environment on
9048 initialisation.
9049 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
9050 * util/grub.d/10_hurd.in: Likewise.
9051 * util/grub.d/10_linux.in (linux_entry): Likewise.
9052 * util/grub.d/10_windows.in: Likewise.
9053 * util/grub.d/30_os-prober.in: Likewise.
9054
9055 * util/grub-install.in: Create environment block.
9056 * util/i386/efi/grub-install.in: Likewise.
9057 * util/ieee1275/grub-install.in: Likewise.
9058 * util/sparc64/ieee1275/grub-install.in: Likewise.
9059
0934d184
BC
90602010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
9061
9062 Unit testing framework for GRUB.
9063
9064 * Makefile.in: Test framework build rules for 'make check'.
9065 * conf/tests.rmk: Build rules for individual tests and framework.
9066
9067 * include/grub/test.h: Header file for whitebox tests.
9068 * tests/lib/functional_test.c: Framework support for whitebox
9069 functional tests.
9070 * tests/lib/test.c: Common whitebox testing code for unit and
9071 functional tests.
9072 * tests/lib/unit_test.c: Framework support for whitebox unit
9073 tests.
9074
9075 * tests/util/grub-shell-tester.in: Support utility for grub-script
9076 tests.
9077 * tests/util/grub-shell.in: Utility to execute grub-script
9078 commands in a Qemu instance.
9079
9080 * tests/example_functional_test.c: Example whitebox functional
9081 test.
9082 * tests/example_grub_script_test.in: Example grub-script test.
9083 * tests/example_scripted_test.in: Example scripted test.
9084 * tests/example_unit_test.c: Example whitebox unit test.
9085
9c4ffeeb
VS
90862010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
9089 Add loader/i386/multiboot_mbi.c.
9090 (multiboot2_mod_SOURCES): Likewise.
9091 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
9092 (multiboot2_mod_SOURCES): Likewise.
9093 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
9094 (grub_multiboot_make_mbi): Likewise.
9095 (grub_multiboot_free_mbi): Likewise.
9096 (grub_multiboot_init_mbi): Likewise.
9097 (grub_multiboot_add_module): Likewise.
9098 (grub_multiboot_set_bootdev): Likewise.
9099 * loader/i386/multiboot.c (mbi): Removed.
9100 (mbi_dest): Likewise.
9101 (alloc_mbi): New variable.
9102 (grub_multiboot_payload_size): Removed. All users updated.
9103 (grub_multiboot_pure_size): New variable.
9104 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
9105 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
9106 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
9107 (grub_fill_multiboot_mmap): Likewise.
9108 (grub_multiboot_get_bootdev): Likewise.
9109 (grub_multiboot): Use multiboot_mbi functions.
9110 * loader/i386/multiboot_mbi.c: New file.
9111
17383dfe
VS
91122010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
9115 it would result in module crash.
9116
c1f28820
VS
91172010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9118
9119 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
9120 (grub_ofconsole_getwh): Split to ...
9121 (grub_ofconsole_getwh): ... this.
9122 (grub_ofconsole_dimensions): ...and this.
9123 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
9124
58655a16
RM
91252010-01-13 Robert Millan <rmh.grub@aybabtu.com>
9126
9127 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
9128
10891398
VS
91292010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9130
9131 * loader/i386/pc/multiboot2.c: Removed stalled file.
9132
0b8a223c
VS
91332010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
9136 Reported by: Grégoire Sutre
9137
92ab12b0
RM
91382010-01-11 Robert Millan <rmh.grub@aybabtu.com>
9139
9140 * util/misc.c (canonicalize_file_name): New function.
9141 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
9142 instead of realpath().
9143
a788afb6
CW
91442010-01-11 Colin Watson <cjwatson@ubuntu.com>
9145
9146 * util/grub-install.in (usage): Clarify meaning of --root-directory,
9147 and make it clearer that it's optional. Based on confusion
9148 witnessed on IRC.
9149
ffa8e3d2
VS
91502010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
9153 in premature implicit newline.
9154
e9060a9d
VS
91552010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
9156
9157 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
9158 which resulted in garbled command line at the end of screen.
9159
f0d0c0b7
RM
91602010-01-10 Robert Millan <rmh.grub@aybabtu.com>
9161
9162 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
9163 initialization with similar approach as with other Linux loaders.
9164
0e60bae7
RM
91652010-01-10 Robert Millan <rmh.grub@aybabtu.com>
9166
9167 Fix i386-ieee1275 build.
9168
9169 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
9170 and grub_term_height() for video_{width,height} initialization.
9171
91722010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
9173
9174 Fix grub-emu build.
9175
9176 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
9177
cdb3f378
RM
91782010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
91792010-01-09 Robert Millan <rmh.grub@aybabtu.com>
9180
9181 Support for multiple terminals.
9182
9183 * Makefile.in (pkglib_DATA): terminal.lst.
9184 (terminal.lst): New target.
9185 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
9186 (GRUB_MOD_INIT(handler)): Likewise.
9187 (GRUB_MOD_FINI(handler)): Likewise.
9188 * commands/help.c (grub_cmd_help): Handle multiple terminals.
9189 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
9190 * commands/sleep.c (do_print): Use grub_term_restore_pos.
9191 (grub_cmd_sleep): Use grub_term_save_pos.
9192 * commands/terminal.c: New file.
9193 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
9194 commands/terminal.c and lib/charset.c.
9195 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
9196 (pkglib_MODULES): Add terminal.mod.
9197 (terminal_mod_SOURCES): New variable.
9198 (terminal_mod_CFLAGS): Likewise.
9199 (terminal_mod_LDFLAGS): Likewise.
9200 * genhandlerlist.sh: Don't handle terminals.
9201 * genmk.rb: Generate terminal-*.lst.
9202 * genterminallist.sh: New file.
9203 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
9204 (grub_is_valid_utf8): Likewise.
9205 (grub_utf8_to_ucs4_alloc): Likewise.
9206 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
9207 (grub_menu_register_viewer): Changed argument.
9208 (grub_menu_try_text): New proto.
9209 (grub_gfxmenu_try_hook): New declaration.
9210 * include/grub/normal.h (grub_normal_exit_level): New declaration.
9211 (grub_menu_init_page): Additional argument term.
9212 (grub_normal_init_page): Likewise.
9213 (grub_cmdline_get): Arguments simplified.
9214 (grub_utf8_to_ucs4_alloc): Removed.
9215 (grub_print_ucs4): Additional argument term.
9216 (grub_getstringwidth): Likewise.
9217 (grub_print_message_indented): Likewise.
9218 (grub_menu_text_register_instances): New proto.
9219 (grub_show_menu): Likewise.
9220 (read_terminal_list): Likewise.
9221 (grub_set_more): Likewise.
9222 * include/grub/parser.h: Include handler.h.
9223 * include/grub/reader.h: Rewritten.
9224 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
9225 (GRUB_TERM_WIDTH): Changed to function.
9226 (GRUB_TERM_HEIGHT): Likewise.
9227 (GRUB_TERM_BORDER_WIDTH): Likewise.
9228 (GRUB_TERM_BORDER_HEIGHT): Likewise.
9229 (GRUB_TERM_NUM_ENTRIES): Likewise.
9230 (GRUB_TERM_ENTRY_WIDTH): Likewise.
9231 (GRUB_TERM_CURSOR_X): Likewise.
9232 (grub_term_input_class): Likewise.
9233 (grub_term_output_class): Likewise.
9234 (grub_term_outputs_disabled): New declaration.
9235 (grub_term_inputs_disabled): Likewise.
9236 (grub_term_outputs): Likewise.
9237 (grub_term_inputs): Likewise.
9238 (grub_term_register_input): Rewritten.
9239 (grub_term_register_output): Likewise.
9240 (grub_term_unregister_input): Likewise.
9241 (grub_term_unregister_output): Likewise.
9242 (FOR_ACTIVE_TERM_INPUTS): New macro.
9243 (FOR_DISABLED_TERM_INPUTS): Likewise.
9244 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
9245 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
9246 * include/grub/terminfo.h: Add oterm argument to all protypes.
9247 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
9248 Use grub_rescue_run.
9249 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
9250 All users updated.
9251 * kern/reader.c: Removed. All users updated.
9252 * kern/rescue_reader.c (grub_rescue_init): Removed.
9253 (grub_rescue_reader): Likewise.
9254 (grub_register_rescue_reader): Likewise.
9255 (grub_rescue_run): New function based on kern/reader.c.
9256 * kern/term.c: Adapted for multiterm.
9257 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
9258 (grub_is_valid_utf8): Likewise.
9259 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
9260 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
9261 right terminal.
9262 * loader/i386/linux.c (grub_linux_boot): Likewise.
9263 * normal/auth.c (grub_username_get): New function.
9264 (grub_auth_check_authentication): Use grub_username_get.
9265 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
9266 * normal/color.c: Adapt for multiterm.
9267 * normal/main.c (read_config_file): Don't use grub_reader_loop.
9268 (grub_normal_init_page): Additional argument term.
9269 (read_lists): Call read_terminal_lists.
9270 (grub_enter_normal_mode): Call grub_cmdline_run.
9271 Handle grub_normal_exit_level.
9272 (grub_cmd_normal): Make reentrant.
9273 (grub_cmd_normal_exit): New function.
9274 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
9275 * normal/menu.c: Adapt for multiterm.
9276 * normal/menu_entry.c: Likewise.
9277 * normal/menu_text.c: Likewise.
9278 * normal/menu_viewer.c: Removed. All users updated.
9279 * normal/term.c: New file.
9280 * util/console.c: Change order of includes to workaround a bug in
9281 ncurses headers.
9282 * term/terminfo.c: New argument oterm on all exported functions.
9283 All users updated.
9284 * util/grub-editenv.c (grub_term_input_class): Removed.
9285 (grub_term_output_class): Likewise.
9286
1a064917
RM
92872010-01-09 Robert Millan <rmh.grub@aybabtu.com>
9288
9289 Make loader output a bit more user-friendly.
9290
9291 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
9292 is being loaded. Likewise for the Hurd.
9293
9294 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
9295 that kernel of FreeBSD ${version} is being loaded.
9296
9297 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
9298 grub_dprintf().
9299 (grub_cmd_initrd): Likewise.
9300 * util/grub.d/10_linux.in (linux_entry): Print message indicating
9301 that Linux ${version} is being loaded. Likewise for initrd.
9302
5ce0a83a 93032010-01-09 Carles Pina i Estany <carles@pina.cat>
9304
9305 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
9306
809bbfeb 93072010-01-08 Carles Pina i Estany <carles@pina.cat>
9308
9309 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
9310 (GRUB_MOD_INIT): Gettextizze.
9311 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
9312 (GRUB_MOD_INIT): Gettextizze.
9313 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
9314 (grub_cmd_linux): Capitalise Linux.
9315 (GRUB_MOD_INIT): Gettextizze.
9316 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
9317 (grub_cmd_linux): Capitalise Linux.
9318 (GRUB_MOD_INIT): Gettextizze.
9319 * loader/i386/linux.c: Include `<grub/i18n.h>'.
9320 (grub_cmd_linux): Capitalise Linux.
9321 (GRUB_MOD_INIT): Gettextizze.
9322 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
9323 (GRUB_MOD_INIT): Gettextizze.
9324 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
9325 (grub_cmd_linux): Capitalise Linux.
9326 (GRUB_MOD_INIT): Gettextizze.
9327 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
9328 (grub_cpu_xnu_init): Gettextizze.
9329 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
9330 (GRUB_MOD_INIT): Gettextizze.
9331 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
9332 (GRUB_MOD_INIT): Gettextizze.
9333 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
9334 (grub_linux_load64): Capitalise Linux.
9335 (GRUB_MOD_INIT): Gettextizze.
9336 * loader/xnu.c: Include `<grub/i18n.h>'.
9337 (GRUB_MOD_INIT): Gettextizze.
9338 * po/POTFILES: Add `loader/efi/appleloader.c',
9339 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
9340 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
9341 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
9342 `loader/i386/xnu.c', `loader/multiboot_loader.c',
9343 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
9344 and `loader/xnu.c'.
9345
b394b2ca
RM
93462010-01-08 Robert Millan <rmh.grub@aybabtu.com>
9347
9348 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
9349
93502010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
9351
9352 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
9353 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
9354 * util/mkisofs/mkisofs.c (main): Readjust --version output.
9355
bc8b32b3
RM
93562010-01-07 Robert Millan <rmh.grub@aybabtu.com>
9357
9358 Reset Multiboot 2 support. New loader implements the draft in
9359 /branches/multiboot2 and shares as much code as possible with the
9360 production Multiboot 1 implementation.
9361
9362 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
9363 * loader/multiboot2.c: Likewise.
9364 * loader/i386/multiboot_helper.S: Likewise.
9365 * include/multiboot2.h: Replace with latest version from the draft
9366 in /branches/multiboot2.
9367
9368 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
9369 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
9370 and `loader/multiboot2.c'.
9371 (pkglib_MODULES): Add `multiboot2.mod'.
9372 (multiboot2_mod_SOURCES): New variable.
9373 (multiboot2_mod_LDFLAGS): Likewise.
9374 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
9375
9376 * conf/i386-pc.rmk: Likewise.
9377
9378 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
9379 (multiboot_mod_SOURCES): Remove variable.
9380 (multiboot_mod_LDFLAGS): Likewise.
9381 (multiboot_mod_CFLAGS): Likewise.
9382
9383 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
9384 `<multiboot2.h>' instead of `<multiboot.h>'.
9385 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
9386 (MULTIBOOT_HEADER_MAGIC): New macros.
9387
9388 * loader/multiboot_loader.c (module_version_status): Remove variable.
9389 (find_multi_boot2_header): Remove function.
9390 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
9391 logic. Always check for the Multiboot version we're compiling for.
9392 (grub_cmd_module_loader): Likewise.
9393 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
9394 command instead of `multiboot'.
9395
5d2c52b8
RM
93962010-01-07 Robert Millan <rmh.grub@aybabtu.com>
9397
9398 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
9399 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
9400 all users.
9401
53108d92
RM
94022010-01-07 Robert Millan <rmh.grub@aybabtu.com>
94032010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 Fix breakage introduced with previous commit.
9406
9407 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
9408 commands.
9409 * normal/handler.c (read_handler_list): Revert part of previous commit
9410 affecting this file.
9411 * normal/main.c (read_lists): Move read_handler_list() call back to ...
9412 (grub_normal_execute): ... here.
9413
e2e936b2
RM
94142010-01-07 Robert Millan <rmh.grub@aybabtu.com>
9415
9416 Merge prefix-redefinition-fix branch.
9417
9418 * normal/autofs.c (read_fs_list): Make function capable of being
9419 run multiple times, gracefuly replacing the previous data
9420 structures.
9421 * normal/dyncmd.c (read_command_list): Likewise.
9422 * normal/handler.c (read_handler_list): Likewise.
9423 * normal/main.c (read_lists): New function. Calls all the
9424 list reading functions.
9425 (grub_normal_execute): Use read_lists() instead of calling all
9426 list reading functions explicitly. Register read_lists() as a
9427 variable hook attached to ${prefix}.
9428
607a3701
VS
94292010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 Merge crypto branch.
9432
9433 * Makefile.in (pkglib_DATA): Add crypto.lst.
9434 (crypto.lst): New target.
9435 * commands/hashsum.c: New file.
9436 * commands/password.c (check_password): Use grub_crypto_memcmp.
9437 * commands/password_pbkdf2.c: New file.
9438 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
9439 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
9440 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
9441 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
9442 -I$(srcdir)/lib/libgcrypt_wrap.
9443 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
9444 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
9445 password_pbkdf2.mod.
9446 (crypto_mod_SOURCES): New variable.
9447 (crypto_mod_CFLAGS): Likewise.
9448 (crypto_mod_LDFLAGS): Likewise.
9449 (hashsum_mod_SOURCES): New variable.
9450 (hashsum_mod_CFLAGS): Likewise.
9451 (hashsum_mod_LDFLAGS): Likewise.
9452 (pbkdf2_mod_SOURCES): New variable.
9453 (pbkdf2_mod_CFLAGS): Likewise.
9454 (pbkdf2_mod_LDFLAGS): Likewise.
9455 (password_pbkdf2_mod_SOURCES): New variable.
9456 (password_pbkdf2_mod_CFLAGS): Likewise.
9457 (password_pbkdf2_mod_LDFLAGS): Likewise.
9458 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
9459 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
9460 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
9461 Include conf/gcry.rmk.
9462 * include/grub/auth.h: Rewritten.
9463 * include/grub/crypto.h: New file.
9464 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
9465 * include/grub/normal.h (read_crypto_list): New prototype.
9466 * lib/crypto.c: New file.
9467 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
9468 * lib/pbkdf2.c: Likewise.
9469 * normal/auth.c (grub_auth_strcmp): Removed.
9470 (grub_iswordseparator): Likewise.
9471 (grub_auth_strword): Likewise.
9472 (is_authenticated): Use grub_strword.
9473 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
9474 and grub_strword. Pass entered password to authentication callback.
9475 * normal/crypto.c: New file.
9476 * normal/main.c: Call read_crypto_list.
9477 * util/grub-mkpasswd-pbkdf2.c: New file.
9478 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
9479
42841caa
VS
94802010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 Fix descent and ascent calculation.
9483
9484 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
9485 (options): New option "asce".
9486 (usage): Likewise.
9487 (add_char): Ignore invalid glyphs for descent calculation.
9488 Calculate ascent from actual content.
9489 (print_glyphs): Use 'asce'.
9490 (write_font): Likewise. Allow ascent override.
9491 (main): Handle "asce" option.
9492
e7730de7 94932010-01-06 Carles Pina i Estany <carles@pina.cat>
9494
9495 * kern/err.c: Include `<grub/i18n.h>'.
9496 (grub_print_error): Add full stop. Gettextizze.
9497 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
9498 (grub_bsd_load_elf): Capitalise ELF.
9499 (grub_cmd_freebsd_loadenv): Add `s' in error string.
9500 (grub_cmd_freebsd_module): Likewise.
9501 (grub_cmd_freebsd_module_elf): Likewise.
9502 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
9503
40e3a41f 95042010-01-06 Carles Pina i Estany <carles@pina.cat>
9505
9506 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
9507 * commands/search_file.c (HELP_MESSAGE): New macro.
9508 * commands/search_label.c (HELP_MESSAGE): Likewise.
9509 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
9510 * po/POTFILES: Add `commands/search_file.c',
9511 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
9512 `commands/search.c'.
9513
83507e68
RM
95142010-01-05 Robert Millan <rmh.grub@aybabtu.com>
9515
9516 * config.rpath: Update from Gnulib.
9517
465c787b
YB
95182010-01-05 Yves Blusseau <blusseau@zetam.org>
9519
9520 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
9521
6581dd3a
YB
95222010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
9523
9524 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
9525
3bff18c5
CW
95262010-01-05 Colin Watson <cjwatson@ubuntu.com>
9527
9528 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
9529 arguments to fread so that we get a return value in bytes, rather
9530 than something that will normally be rounded down to 0.
9531 Adjust error handling to avoid producing garbage when size_t is not
9532 the same size as long long.
9533
a1368118
CW
95342010-01-05 Colin Watson <cjwatson@ubuntu.com>
9535
9536 * util/mkisofs/write.c (padblock_write): Check return value of
9537 fread.
9538
7c302978
RM
95392010-01-05 Robert Millan <rmh.grub@aybabtu.com>
9540
9541 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
9542 floppy images now.
9543
9544 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
9545
e33ace06
RM
95462010-01-04 Robert Millan <rmh.grub@aybabtu.com>
9547
9548 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
9549 instead of manual alignment.
9550 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
9551 verbose). Avoid attempts to read past end of the device
9552 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
9553 but GRUB_DISK_CACHE_SIZE may exceed that).
9554
4b856776
RM
95552010-01-04 Robert Millan <rmh.grub@aybabtu.com>
9556
9557 * commands/crc.c (grub_cmd_crc): Abort on read errors.
9558 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
9559 it to upper layer.
9560
52c2d97f
VS
95612010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
9564 New constant.
9565 (grub_efi_piwg_device_path): New structure
9566 (grub_efi_piwg_device_path_t): New type.
9567 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
9568 (devpath_1): Transform to a structure. All users updated.
9569 (devpath_2): Likewise.
9570 (devpath_3): Likewise.
9571 (devpath_4): Likewise.
9572 (devpath_5): Likewise.
9573
98ff6a54
VS
95742010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
9575
9576 * loader/efi/appleloader.c: Restored. Update all users.
9577
3a73dcb6
RM
95782010-01-03 Robert Millan <rmh.grub@aybabtu.com>
9579
9580 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
9581
9582 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
9583 (struct boot_blocklist): Move from here ...
9584 * include/grub/i386/pc/boot.h [ASM_FILE]
9585 (struct grub_boot_blocklist): ... to here. Update all users.
9586 (setup): Only initialize `start' member of `first_block'
9587 structure. Add assert() calls to verify the other members.
9588
9589 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
9590 (generate_image): Fix broken blocklist length initialization.
9591 Add assert() call to verify blocklist `segment' field.
9592
ab0eeb0c
RM
95932010-01-03 Robert Millan <rmh.grub@aybabtu.com>
9594
9595 * loader/efi/appleloader.c: Remove. Update all users.
9596
58bc8bd5
RM
95972010-01-03 Robert Millan <rmh.grub@aybabtu.com>
9598
9599 * boot/i386/pc/boot.S: Update copyright year.
9600 * boot/i386/pc/cdboot.S: Likewise.
9601 * boot/i386/pc/diskboot.S: Likewise.
9602 * boot/i386/pc/lnxboot.S: Likewise.
9603 * boot/i386/pc/pxeboot.S: Likewise.
9604 * bus/pci.c: Likewise.
9605 * commands/cmp.c: Likewise.
9606 * commands/help.c: Likewise.
9607 * commands/hexdump.c: Likewise.
9608 * commands/i386/pc/halt.c: Likewise.
9609 * commands/i386/pc/play.c: Likewise.
9610 * commands/i386/pc/vbeinfo.c: Likewise.
9611 * commands/ls.c: Likewise.
9612 * commands/test.c: Likewise.
9613 * disk/dmraid_nvidia.c: Likewise.
9614 * disk/i386/pc/biosdisk.c: Likewise.
9615 * disk/ieee1275/nand.c: Likewise.
9616 * disk/ieee1275/ofdisk.c: Likewise.
9617 * disk/lvm.c: Likewise.
9618 * disk/raid.c: Likewise.
9619 * disk/raid6_recover.c: Likewise.
9620 * disk/scsi.c: Likewise.
9621 * fs/affs.c: Likewise.
9622 * fs/cpio.c: Likewise.
9623 * fs/ext2.c: Likewise.
9624 * fs/hfs.c: Likewise.
9625 * fs/iso9660.c: Likewise.
9626 * fs/ntfs.c: Likewise.
9627 * fs/sfs.c: Likewise.
9628 * fs/udf.c: Likewise.
9629 * fs/ufs.c: Likewise.
9630 * fs/xfs.c: Likewise.
9631 * gencmdlist.sh: Likewise.
9632 * genmk.rb: Likewise.
9633 * include/grub/disk.h: Likewise.
9634 * include/grub/efi/api.h: Likewise.
9635 * include/grub/efi/efi.h: Likewise.
9636 * include/grub/efi/pe32.h: Likewise.
9637 * include/grub/elf.h: Likewise.
9638 * include/grub/fs.h: Likewise.
9639 * include/grub/i386/at_keyboard.h: Likewise.
9640 * include/grub/i386/pc/memory.h: Likewise.
9641 * include/grub/i386/pc/vbe.h: Likewise.
9642 * include/grub/i386/pci.h: Likewise.
9643 * include/grub/i386/tsc.h: Likewise.
9644 * include/grub/ieee1275/ieee1275.h: Likewise.
9645 * include/grub/ntfs.h: Likewise.
9646 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
9647 * include/grub/sparc64/libgcc.h: Likewise.
9648 * include/grub/symbol.h: Likewise.
9649 * include/grub/types.h: Likewise.
9650 * include/multiboot2.h: Likewise.
9651 * io/gzio.c: Likewise.
9652 * kern/device.c: Likewise.
9653 * kern/disk.c: Likewise.
9654 * kern/efi/efi.c: Likewise.
9655 * kern/efi/mm.c: Likewise.
9656 * kern/elf.c: Likewise.
9657 * kern/file.c: Likewise.
9658 * kern/i386/dl.c: Likewise.
9659 * kern/i386/pc/init.c: Likewise.
9660 * kern/i386/pc/startup.S: Likewise.
9661 * kern/ieee1275/ieee1275.c: Likewise.
9662 * kern/ieee1275/init.c: Likewise.
9663 * kern/main.c: Likewise.
9664 * kern/mm.c: Likewise.
9665 * kern/powerpc/dl.c: Likewise.
9666 * kern/sparc64/dl.c: Likewise.
9667 * kern/x86_64/dl.c: Likewise.
9668 * lib/hexdump.c: Likewise.
9669 * loader/efi/appleloader.c: Likewise.
9670 * loader/i386/ieee1275/linux.c: Likewise.
9671 * loader/i386/pc/chainloader.c: Likewise.
9672 * loader/i386/pc/linux.c: Likewise.
9673 * loader/i386/pc/multiboot2.c: Likewise.
9674 * loader/ieee1275/multiboot2.c: Likewise.
9675 * loader/multiboot2.c: Likewise.
9676 * loader/multiboot_loader.c: Likewise.
9677 * loader/powerpc/ieee1275/linux.c: Likewise.
9678 * normal/completion.c: Likewise.
9679 * normal/menu_entry.c: Likewise.
9680 * partmap/apple.c: Likewise.
9681 * util/grub.d/10_hurd.in: Likewise.
9682 * util/hostfs.c: Likewise.
9683 * video/readers/png.c: Likewise.
9684
e2d70b5c
CW
96852010-01-03 Colin Watson <cjwatson@ubuntu.com>
9686
9687 * include/grub/misc.h (GNUC_PREREQ): New macro.
9688 (ATTRIBUTE_ERROR): New macro.
9689 * include/grub/list.h (grub_bad_type_cast_real): Use
9690 ATTRIBUTE_ERROR.
9691
a173283f 96922010-01-03 Carles Pina i Estany <carles@pina.cat>
9693
9694 * normal/menu_text.c (print_message): Change messages.
9695
7fa7ff74 96962010-01-03 Carles Pina i Estany <carles@pina.cat>
9697
9698 * normal/menu_entry.c (store_completion): Gettextizze.
9699
136d24f6 97002010-01-03 Carles Pina i Estany <carles@pina.cat>
9701
9702 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
9703
f936862e 97042010-01-03 Carles Pina i Estany <carles@pina.cat>
9705
9706 * po/POTFILES: Sort correctly.
9707
29c44ad1 97082010-01-03 Carles Pina i Estany <carles@pina.cat>
9709
9710 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
9711 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
9712 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
9713 full stop.
9714 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
9715 summary. Gettextizze the strings.
9716 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
9717 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
9718 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
9719 full stop.
9720 (GRUB_MOD_INIT): Remove command name from summary.
9721 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
9722 summary.
9723 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
9724 * term/i386/pc/serial.c (options): Add full stops.
9725 (GRUB_MOD_INIT): Remove command name from the summary.
9726
77a79592 97272010-01-03 Carles Pina i Estany <carles@pina.cat>
9728
9729 * commands/acpi.c: Gettextizze help strings and/or options. Include
9730 `grub/i18n.h' if needed.
9731 * commands/blocklist.c: Likewise.
9732 * commands/boot.c: Likewise.
9733 * commands/cat.c: Likewise.
9734 * commands/cmp.c: Likewise.
9735 * commands/configfile.c: Likewise.
9736 * commands/crc.c: Likewise.
9737 * commands/date.c: Likewise.
9738 * commands/echo.c: Likewise.
9739 * commands/efi/fixvideo.c: Likewise.
9740 * commands/efi/loadbios.c: Likewise.
9741 * commands/gptsync.c: Likewise.
9742 * commands/halt.c: Likewise.
9743 * commands/handler.c: Likewise.
9744 * commands/hdparm.c: Likewise.
9745 * commands/hexdump.c: Likewise.
9746 * commands/i386/cpuid.c: Likewise.
9747 * commands/i386/pc/drivemap.c: Likewise.
9748 * commands/i386/pc/halt.c: Likewise.
9749 * commands/i386/pc/pxecmd.c: Likewise.
9750 * commands/i386/pc/vbeinfo.c: Likewise.
9751 * commands/i386/pc/vbetest.c: Likewise.
9752 * commands/ieee1275/suspend.c: Likewise.
9753 * commands/keystatus.c: Likewise.
9754 * commands/loadenv.c: Likewise.
9755 * commands/ls.c: Likewise.
9756 * commands/lsmmap.c: Likewise.
9757 * commands/lspci.c: Likewise.
9758 * commands/memrw.c: Likewise.
9759 * commands/minicmd.c: Likewise.
9760 * commands/parttool.c: Likewise.
9761 * commands/password.c: Likewise.
9762 * commands/probe.c: Likewise.
9763 * commands/read.c: Likewise.
9764 * commands/reboot.c: Likewise.
9765 * commands/search.c: Likewise.
9766 * commands/sleep.c: Likewise.
9767 * commands/test.c: Likewise.
9768 * commands/true.c: Likewise.
9769 * commands/usbtest.c: Likewise.
9770 * commands/videotest.c: Likewise.
9771 * commands/xnu_uuid.c: Likewise.
9772 * disk/loopback.c: Likewise.
9773 * hello/hello.c: Likewise.
9774 * loader/i386/bsd.c: Likewise.
9775 * term/i386/pc/serial.c: Likewise.
9776 * po/POTFILES: Add new files.
9777
da8d5c53
CW
97782010-01-02 Colin Watson <cjwatson@ubuntu.com>
9779
9780 * term/i386/pc/at_keyboard.c
9781 (keyboard_controller_wait_untill_ready): Rename to ...
9782 (keyboard_controller_wait_until_ready): ... this. Update all users.
9783
33937904 97842010-01-01 Carles Pina i Estany <carles@pina.cat>
9785
9786 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
9787 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
9788 string using string width.
9789 * normal/menu_text.c (grub_print_message_indented): Use
9790 grub_print_spaces and not print_spaces.
9791 (print_timeout): Likewise.
9792 (print_spaces): Move to...
9793 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
9794
3fd3b8d8
RM
97952010-01-01 Robert Millan <rmh.grub@aybabtu.com>
9796
9797 Import from Gnulib.
9798
9799 * gnulib/getdelim.c: New file.
9800 * gnulib/getline.c: Likewise.
9801
33433555
VS
98022009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
9803
9804 * include/grub/list.h (grub_assert_fail): Removed.
9805 (grub_bad_type_cast_real): New function.
9806 (grub_bad_type_cast): New macro.
9807 (GRUB_AS_LIST): Use grub_bad_type_cast.
9808 (GRUB_AS_LIST_P): Likewise.
e44721e8 9809 (GRUB_AS_NAMED_LIST): Likewise.
33433555 9810 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 9811 (GRUB_AS_PRIO_LIST): Likewise.
33433555 9812 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 9813 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 9814
f5a51306
VS
98152009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
9818 Fix syntax error.
9819
90d1e879
RM
98202009-12-29 Robert Millan <rmh.grub@aybabtu.com>
9821
9822 * configure.ac: Check for TARGET_CFLAGS initialization before we
9823 initialize it ourselves (sigh).
9824 Move a few modifications to TARGET_CFLAGS to be unconditional
9825 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
9826 eh_frame)
9827
9828 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
9829 * term/i386/pc/at_keyboard.c
9830 (keyboard_controller_wait_untill_ready): Likewise.
9831 (keyboard_controller_led): Rename `led_status' paramter to avoid
9832 name conflict.
9833
465b5a81 98342009-12-28 Carles Pina i Estany <carles@pina.cat>
9835
9836 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
9837 quotes.
9838
c181849b
VS
98392009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
9842
9c8739a4
VS
98432009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 * normal/menu_text.c (grub_print_message_indented): Prevent
9846 past-the-end-of-array dereference.
9847
3e74249c
VS
98482009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
9849
9850 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
9851 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
9852
64fd18ed 98532009-12-27 Carles Pina i Estany <carles@pina.cat>
9854
9855 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
9856 * normal/main.c (grub_normal_read_line): Remove a space from the
9857 default prompt.
9858
714af9b9 98592009-12-27 Carles Pina i Estany <carles@pina.cat>
9860
9861 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
9862 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9863 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
9864 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
9865 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9866 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9867 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9868
82f3e412 98692009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 9870
9871 * video/readers/jpeg.c (cmd): Declare.
9872 (grub_cmd_jpegtest): Use `grub_command_t' type.
9873 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9874 Assign to `cmd'.
9875 (GRUB_MOD_FINI): Use `cmd' to unregister.
9876 * video/readers/png.c (cmd): Declare.
9877 (grub_cmd_pngtest): Use `grub_command_t' type.
9878 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9879 Assign to `cmd'.
9880 (GRUB_MOD_FINI): Use `cmd' to unregister.
9881 * video/readers/tga.c (cmd): Declare.
9882 (grub_cmd_tgatest): Use `grub_command_t' type.
9883 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
9884 Assign to `cmd'.
9885 (GRUB_MOD_FINI): Use `cmd' to unregister.
9886
82f3e412 98872009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 9888
9889 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
9890 stops.
9891 * kern/corecmd.c (grub_register_core_commands): Likewise.
9892 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
9893 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
9894 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
9895 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9896 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
9897 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
9898 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
9899 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
9900 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9901 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
9902 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9903 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9904 * normal/handler.c (insert_handler): Likewise.
9905 * normal/main.c (GRUB_MOD_INIT): Likewise.
9906 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9907
fdcdbb66 99082009-12-26 Carles Pina i Estany <carles@pina.cat>
9909
9910 * commands/help.c (grub_cmd_help): Print the command name before the
9911 summary.
9912 (GRUB_MOD_INIT): Remove command name from the summary.
9913 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 9914 string as summary.
fdcdbb66 9915 * lib/arg.c (find_long): Print the command name before the summary.
9916 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
9917 summary.
9918 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
9919 * commands/cat.c (GRUB_MOD_INIT): Likewise.
9920 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
9921 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
9922 * commands/crc.c (GRUB_MOD_INIT): Likewise.
9923 * commands/date.c (GRUB_MOD_INIT): Likewise.
9924 * commands/echo.c (GRUB_MOD_INIT): Likewise.
9925 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
9926 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
9927 * commands/handler.c (GRUB_MOD_INIT): Likewise.
9928 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
9929 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
9930 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
9931 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
9932 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
9933 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
9934 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
9935 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
9936 * commands/ls.c (GRUB_MOD_INIT): Likewise.
9937 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
9938 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
9939 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
9940 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
9941 * commands/password.c (GRUB_MOD_INIT): Likewise.
9942 * commands/probe.c (GRUB_MOD_INIT): Likewise.
9943 * commands/read.c (GRUB_MOD_INIT): Likewise.
9944 * commands/search.c (GRUB_MOD_INIT): Likewise.
9945 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
9946 * commands/test.c (GRUB_MOD_INIT): Likewise.
9947 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
9948 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9949 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9950 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
9951 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9952 * lib/arg.c (GRUB_MOD_INIT): Likewise.
9953 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
9954 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
9955 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
9956 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9957 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9958 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
9959 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
9960 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
9961
9c288be2
VS
99622009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 Use search command for preliminar UUID search.
9965
9966 * commands/search.c: Split into ...
9967 * commands/search_wrap.c: ...this
9968 * commands/search.c: ...and this.
9969 * commands/search_file.c: New file.
9970 * commands/search_label.c: New file.
9971 * commands/search_uuid.c: New file.
9972 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
9973 Add commands/search_wrap.c, commands/search_file.c,
9974 commands/search_label.c and commands/search_uuid.c.
9975 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
9976 (search_mod_SOURCES): Set to commands/search_wrap.c.
9977 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
9978 search_label.mod.
9979 (search_fs_file_mod_SOURCES): New variable.
9980 (search_fs_file_mod_CFLAGS): Likewise.
9981 (search_fs_file_mod_LDFLAGS): Likewise.
9982 (search_label_mod_SOURCES): Likewise.
9983 (search_label_mod_CFLAGS): Likewise.
9984 (search_label_mod_LDFLAGS): Likewise.
9985 (search_fs_uuid_mod_SOURCES): New variable.
9986 (search_fs_uuid_mod_CFLAGS): Likewise.
9987 (search_fs_uuid_mod_LDFLAGS): Likewise.
9988 (fs_file_mod_SOURCES): Removed.
9989 (fs_file_mod_CFLAGS): Likewise.
9990 (fs_file_mod_LDFLAGS): Likewise.
9991 (fs_uuid_mod_SOURCES): Removed.
9992 (fs_uuid_mod_CFLAGS): Likewise.
9993 (fs_uuid_mod_LDFLAGS): Likewise.
9994 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
9995 Set to util/grub-install.in.
9996 * disk/fs_file.c: Removed.
9997 * disk/fs_uuid.c: Likewise.
9998 * include/grub/search.h: New file.
9999 * util/grub-install.in: Handle sparc64.
10000 Create and use load.cfg.
10001 * util/sparc64/ieee1275/grub-install.in: Removed.
10002
db943399
VS
100032009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
10006 Ignore return status if CF is cleared.
10007 (grub_biosdisk_get_diskinfo_standard): Likewise.
10008
3fdae612
RM
100092009-12-25 Robert Millan <rmh.grub@aybabtu.com>
10010
10011 * term/i386/pc/at_keyboard.c
10012 (keyboard_controller_wait_untill_ready): New function.
10013 (grub_keyboard_controller_write, grub_keyboard_controller_read)
10014 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
10015 for keyboard polling, rather than duplicate the same loop. This
10016 saves a few bytes in code size.
10017
7ebaa2b4
VS
100182009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 Support for (pxe[:server[:gateway]]) syntax and
10021 use environment variable for PXE.
10022
10023 * commands/i386/pc/pxecmd.c (options): Removed.
10024 (print_ip): Removed.
10025 (grub_cmd_pxe): Removed
10026 (grub_cmd_pxe_unload): New function.
10027 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
10028 (grub_pxe_your_ip): Made static.
10029 (grub_pxe_default_server_ip): Likewise.
10030 (grub_pxe_default_gateway_ip): Likewise.
10031 (grub_pxe_blksize): Likewise.
10032 (parse_ip): New function.
10033 (grub_pxe_open): Support server and gateway specification.
10034 (grub_pxe_close): Free disk->data.
10035 (grub_pxefs_open): Use disk->data.
10036 (grub_pxefs_read): Likewise.
10037 (grub_env_write_readonly): New function.
10038 (set_mac_env): Likewise.
10039 (set_env_limn_ro): Likewise.
10040 (parse_dhcp_vendor): Likewise.
10041 (grub_pxe_detect): Set the environment variables.
10042 (set_ip_env): New function.
10043 (write_ip_env): Likewise.
10044 (grub_env_write_pxe_default_server): Likewise.
10045 (grub_env_write_pxe_default_gateway): Likewise.
10046 (grub_env_write_pxe_blocksize): Likewise.
10047 (GRUB_MOD_INIT(pxe)): Set environment variables.
10048 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
10049 (grub_pxe_mac_addr_t): ... this. All users updated.
10050 (grub_pxe_your_ip): Removed.
10051 (grub_pxe_server_ip): Likewise.
10052 (grub_pxe_gateway_ip): Likewise.
10053 (grub_pxe_blksize): Likewise.
10054
ec5f98ab 100552009-12-25 Carles Pina i Estany <carles@pina.cat>
10056
10057 * commands/help.c: Include `<grub/i18n.h>'.
10058 (grub_cmd_help): Gettextizze.
10059 (GRUB_MOD_INIT): Likewise.
10060 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
10061 (GRUB_MOD_INIT): Gettextizze.
10062 * commands/search.c: Include `<grub/i18n.h>'.
10063 (options): Gettextizze.
10064 (GRUB_MOD_INIT): Gettextizze.
10065 * lib/arg.c: Include `<grub/i18n.h>'.
10066 (help_options): Gettextizze.
10067 (find_long): Likewise.
10068 (grub_arg_show_help): Likewise.
10069 * normal/dyncmd.c: Include `<grub/i18n.h>'.
10070 (read_command_list): Gettextizze.
10071 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 10072 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 10073
22815526
RM
100742009-12-25 Robert Millan <rmh.grub@aybabtu.com>
10075
10076 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
10077 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
10078 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
10079 (led_status): New variable.
10080 (keyboard_controller_led): New function.
10081 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
10082 update led status for caps lock, num lock and scroll lock.
10083
0ad46fd7
FZ
100842009-12-25 Felix Zielcke <fzielcke@z-51.de>
10085
10086 * util/hostdisk.c (open_device): Fix a comment.
10087
d0e158c2
RM
100882009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10089
10090 * util/grub-install.in (host_os): New variable.
10091 * util/i386/efi/grub-install.in (host_os): Likewise.
10092
401c0ad6
RM
100932009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10094
10095 * util/mkisofs/write.c (padblock_write): Abort when given an
10096 excedingly large embed image, instead of silently truncating it.
10097
d14d3370
RM
100982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10099
10100 * include/multiboot.h: Indentation fixes.
10101
eeed10b4
RM
101022009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10103
10104 * include/multiboot.h (struct multiboot_aout_symbol_table)
10105 (struct multiboot_elf_section_header_table): New structure
10106 declarations (stolen from GRUB Legacy).
10107 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
10108 table information.
10109
10110 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
10111 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
10112 type aliases.
10113
681c70ab
RM
101142009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10115
10116 * include/multiboot.h: Make comments src2texi-friendly.
10117
e4d47d8d
RM
101182009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10119
10120 For consistency with [multiboot]/docs/boot.S.
10121
10122 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
10123 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
10124 (MULTIBOOT_MAGIC2): Rename from this ...
10125 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
10126
a0b70bda
RM
101272009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10128
10129 * include/multiboot.h: Remove `<grub/types.h>'.
10130 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
10131 types. Update all users.
10132
61ba42be 101332009-12-25 Carles Pina i Estany <carles@pina.cat>
10134
10135 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
10136 `couldn't' and `can not' by `cannot'.
10137 * commands/i386/pc/drivemap.c: Likewise.
10138 * disk/ata.c: Likewise.
10139 * disk/ieee1275/nand.c: Likewise.
10140 * fs/affs.c: Likewise.
10141 * fs/fat.c: Likewise.
10142 * fs/hfs.c: Likewise.
10143 * fs/hfsplus.c: Likewise.
10144 * fs/iso9660.c: Likewise.
10145 * fs/jfs.c: Likewise.
10146 * fs/minix.c: Likewise.
10147 * fs/reiserfs.c: Likewise.
10148 * fs/sfs.c: Likewise.
10149 * fs/udf.c: Likewise.
10150 * fs/ufs.c: Likewise.
10151 * fs/xfs.c: Likewise.
10152 * loader/powerpc/ieee1275/linux.c: Likewise.
10153 * loader/sparc64/ieee1275/linux.c: Likewise.
10154 * util/grub-probe.c: Likewise.
10155 * util/misc.c: Likewise.
10156
7fd0baee 101572009-12-24 Carles Pina i Estany <carles@pina.cat>
10158
10159 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
10160 grub_errno calls.
10161 * commands/acpi.c: Likewise.
10162 * commands/blocklist.c: Likewise.
10163 * commands/efi/loadbios.c: Likewise.
10164 * commands/i386/pc/drivemap.c: Likewise.
10165 * commands/loadenv.c: Likewise.
10166 * commands/memrw.c: Likewise.
10167 * commands/password.c: Likewise.
10168 * commands/videotest.c: Likewise.
10169 * disk/ata.c: Likewise.
10170 * disk/ata_pthru.c: Likewise.
10171 * disk/dmraid_nvidia.c: Likewise.
10172 * disk/ieee1275/nand.c: Likewise.
10173 * disk/ieee1275/ofdisk.c: Likewise.
10174 * disk/loopback.c: Likewise.
10175 * disk/lvm.c: Likewise.
10176 * disk/mdraid_linux.c: Likewise.
10177 * disk/raid.c: Likewise.
10178 * disk/raid6_recover.c: Likewise.
10179 * disk/scsi.c: Likewise.
10180 * efiemu/main.c: Likewise.
10181 * efiemu/mm.c: Likewise.
10182 * efiemu/pnvram.c: Likewise.
10183 * efiemu/symbols.c: Likewise.
10184 * font/font.c: Likewise.
10185 * fs/cpio.c: Likewise.
10186 * fs/hfsplus.c: Likewise.
10187 * fs/iso9660.c: Likewise.
10188 * fs/jfs.c: Likewise.
10189 * fs/minix.c: Likewise.
10190 * fs/ntfs.c: Likewise.
10191 * fs/ntfscomp.c: Likewise.
10192 * fs/reiserfs.c: Likewise.
10193 * fs/ufs.c: Likewise.
10194 * fs/xfs.c: Likewise.
10195 * gettext/gettext.c: Likewise.
10196 * include/grub/auth.h: Likewise.
10197 * kern/elf.c: Likewise.
10198 * kern/file.c: Likewise.
10199 * kern/ieee1275/init.c: Likewise.
10200 * kern/ieee1275/mmap.c: Likewise.
10201 * kern/ieee1275/openfw.c: Likewise.
10202 * kern/powerpc/dl.c: Likewise.
10203 * kern/sparc64/dl.c: Likewise.
10204 * lib/arg.c: Likewise.
10205 * loader/i386/bsd.c: Likewise.
10206 * loader/i386/bsdXX.c: Likewise.
10207 * loader/i386/efi/linux.c: Likewise.
10208 * loader/i386/efi/xnu.c: Likewise.
10209 * loader/i386/ieee1275/linux.c: Likewise.
10210 * loader/i386/linux.c: Likewise.
10211 * loader/i386/multiboot.c: Likewise.
10212 * loader/i386/pc/linux.c: Likewise.
10213 * loader/i386/pc/multiboot2.c: Likewise.
10214 * loader/i386/xnu.c: Likewise.
10215 * loader/ieee1275/multiboot2.c: Likewise.
10216 * loader/macho.c: Likewise.
10217 * loader/machoXX.c: Likewise.
10218 * loader/multiboot2.c: Likewise.
10219 * loader/multiboot_loader.c: Likewise.
10220 * loader/powerpc/ieee1275/linux.c: Likewise.
10221 * loader/sparc64/ieee1275/linux.c: Likewise.
10222 * loader/xnu.c: Likewise.
10223 * loader/xnu_resume.c: Likewise.
10224 * mmap/i386/pc/mmap.c: Likewise.
10225 * normal/menu_viewer.c: Likewise.
10226 * partmap/acorn.c: Likewise.
10227 * partmap/amiga.c: Likewise.
10228 * partmap/apple.c: Likewise.
10229 * script/lexer.c: Likewise.
10230 * term/gfxterm.c: Likewise.
10231 * term/i386/pc/serial.c: Likewise.
10232 * term/i386/pc/vga.c: Likewise.
10233 * term/ieee1275/ofconsole.c: Likewise.
10234 * term/terminfo.c: Likewise.
10235 * video/bitmap.c: Likewise.
10236 * video/efi_gop.c: Likewise.
10237 * video/efi_uga.c: Likewise.
10238 * video/fb/video_fb.c: Likewise.
10239 * video/i386/pc/vbe.c: Likewise.
10240 * video/readers/tga.c: Likewise.
10241 * video/video.c: Likewise.
10242
0ad46fd7 102432009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
10244
10245 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
10246 * commands/lspci.c: Likewise.
10247 * commands/probe.c: Likewise.
10248 * commands/xnu_uuid.c: Likewise.
10249 * conf/i386-coreboot.rmk: Likewise.
10250 * conf/i386-efi.rmk: Likewise.
10251 * conf/i386-ieee1275.rmk: Likewise.
10252 * conf/i386-pc.rmk: Likewise.
10253 * conf/powerpc-ieee1275.rmk: Likewise.
10254 * conf/sparc64-ieee1275.rmk: Likewise.
10255 * conf/x86_64-efi.rmk: Likewise.
10256 * fs/i386/pc/pxe.c: Likewise.
10257 * gettext/gettext.c: Likewise.
10258 * include/grub/efi/graphics_output.h: Likewise.
10259 * include/grub/i386/pc/memory.h: Likewise.
10260 * kern/env.c: Likewise.
10261 * kern/i386/qemu/startup.S: Likewise.
10262 * lib/i386/pc/biosnum.c: Likewise.
10263 * lib/i386/relocator.c: Likewise.
10264 * lib/i386/relocator_asm.S: Likewise.
10265 * lib/relocator.c: Likewise.
10266 * loader/i386/bsd.c: Likewise.
10267 * loader/i386/multiboot.c: Likewise.
10268 * loader/i386/pc/chainloader.c: Likewise.
10269 * loader/i386/xnu.c: Likewise.
10270 * loader/xnu.c: Likewise.
10271 * normal/main.c: Likewise.
10272 * normal/menu_text.c: Likewise.
10273 * util/getroot.c: Likewise.
10274 * util/grub-mkconfig_lib.in: Likewise.
10275 * util/grub.d/00_header.in: Likewise.
10276 * util/i386/pc/grub-mkimage.c: Likewise.
10277 * util/mkisofs/eltorito.c: Likewise.
10278 * util/mkisofs/exclude.h: Likewise.
10279 * util/mkisofs/hash.c: Likewise.
10280 * util/mkisofs/iso9660.h: Likewise.
10281 * util/mkisofs/joliet.c: Likewise.
10282 * util/mkisofs/mkisofs.c: Likewise.
10283 * util/mkisofs/mkisofs.h: Likewise.
10284 * util/mkisofs/multi.c: Likewise.
10285 * util/mkisofs/name.c: Likewise.
10286 * util/mkisofs/rock.c: Likewise.
10287 * util/mkisofs/tree.c: Likewise.
10288 * util/mkisofs/write.c: Likewise.
10289 * video/efi_gop.c: Likewise.
10290
009ec743
VS
102912009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
10294 size counting.
10295
0ad46fd7 102962009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
10297
10298 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
10299 * genmk.rb (class SCRIPT): Modify the target file instead of source.
10300
d3d30ea0
VS
103012009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
10304 (GRUB_MOD_INIT(memrw)): Update help line.
10305
a34f5c70
VS
103062009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
10309 Use grub_extcmd_t. All users updated.
10310 (options): New variable.
10311 (grub_cmd_read): Restructure for readability. Support "-v" option.
10312 (grub_cmd_write): Restructure for readability.
10313
0ad46fd7 103142009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
10315
10316 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
10317
0ad46fd7 103182009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
10319
10320 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
10321 with the actual contents of the correspondending make variable.
10322 * util/grub-mkrescue.in (pkglib_DATA): New variable.
10323 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
10324 specifying `*.lst' and `efiemu??.o'
10325
0ad46fd7 103262009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
10327
10328 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
10329 after function name.
10330 Noticed by Rene Engelhard <rene@debian.org>.
10331
dc77a799
VS
103322009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
10335 (options): New variable.
10336 (iospace): Likewise.
10337 (grub_lspci_iter): List IO spaces if "-i" was given.
10338 (grub_cmd_lspci): Parse options.
10339 (GRUB_MOD_INIT(lspci)): Use extcmd.
10340 (GRUB_MOD_FINI(lspci)): Likewise.
10341
0ad46fd7 103422009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
10343
10344 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
10345 `function' keyword.
10346 Patch by Tony Mancill <tmancill@debian.org>.
10347
b5d5993b
VS
103482009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
10351 (grub_uhci_portstatus): Likewise.
10352 (grub_uhci_portstatus): Add necessary delay.
11d18281 10353 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 10354
941903f2 103552009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 10356
941903f2 10357 * commands/acpi.c (options): Fix capitalizations and/or full stops.
10358 (GRUB_MOD_INIT): Likewise.
10359 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 10360 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
10361 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 10362 * commands/efi/loadbios.c (enable_rom_area): Likewise.
10363 (enable_rom_area): Likewise.
10364 (GRUB_MOD_INIT): Likewise.
10365 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
10366 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
10367 * commands/handler.c (GRUB_MOD_INIT): Likewise.
10368 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
10369 * commands/hexdump.c (options): Likewise.
10370 * commands/i386/cpuid.c (options): Likewise.
10371 (GRUB_MOD_INIT): Likewise.
10372 * commands/i386/pc/drivemap.c (options): Likewise.
10373 (GRUB_MOD_INIT): Likewise.
10374 * commands/i386/pc/halt (options): Likewise.
10375 (GRUB_MOD_INIT): Likewise.
10376 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
10377 * commands/i386/pc/pxecmd.c (options): Likewise.
10378 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
10379 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
10380 * commands/keystatus.c (options): Likewise.
10381 (GRUB_MOD_INIT): Likewise.
10382 * commands/loadenv.c (options): Likewise.
10383 * commands/ls.c (options): Likewise.
10384 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
10385 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
10386 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
10387 * commands/parttool.c (helpmsg): Likewise.
10388 * commands/probe.c (options): Likewise.
10389 * commands/read.c (GRUB_MOD_INIT): Likewise.
10390 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
10391 * commands/search.c (options): Likewise.
10392 * commands/sleep.c (options): Likewise.
10393 * commands/test.c (GRUB_MOD_INIT): Likewise.
10394 * commands/true.c (GRUB_MOD_INIT): Likewise.
10395 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
10396 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
10397 * lib/arg.c (help_options): Likewise.
e9bbb4e7 10398 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
10399 `$(XGETTEXT)'.
98a50553 10400 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 10401
0ad46fd7 104022009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 10403
ef3c2c3a 10404 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
10405 instead of specifying them explicit.
10406
7922f68b
RM
104072009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10408
10409 * NEWS: Add grub-probe support for GNU/Hurd.
10410
537ce47f
RM
104112009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10412
10413 * NEWS: gettext was added after 1.97.
10414
9b214e3a
RM
104152009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10416
10417 * util/mkisofs/msdos_partition.h: New file (based on
10418 include/grub/msdos_partition.h).
10419 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
10420 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
10421 (ld_options, main): Recognize --protective-msdos-label.
10422 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
10423 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
10424 (padblock_write): If `use_protective_msdos_label' is set, patch a
10425 protective DOS-style label in the output image.
10426
10427 * util/grub-mkrescue.in: Use --protective-msdos-label.
10428
e9309813
RM
104292009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10430
10431 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
10432 boot.
10433
0ae56929
RM
104342009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10435
10436 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
10437 variables.
10438 (ld_options, main): Recognize `--embedded-boot'.
10439 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
10440 declarations.
10441 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
10442 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
10443 (padblock_write): Likewise. Rewrite to support embedded boot image.
10444
10445 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
10446 for BIOS-based disk boot instead of only ElTorito.
10447
b15937b1
RM
104482009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10449
10450 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
10451 build (not needed for bootstrap).
10452
52cc3ce0
RM
104532009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10454
10455 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
10456 from i386-pc build (not needed for bootstrap).
10457 Rewrite a pair of strings.
10458
36f5ff04
RM
104592009-12-21 Robert Millan <rmh.grub@aybabtu.com>
10460
10461 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
10462
973c6c85 104632009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
10464
10465 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
10466
05d21547
AB
104672009-12-21 Andreas Born <futur.andy@googlemail.com>
10468
10469 * kern/env.c (grub_env_context_open): Mark exported variable for
10470 reexport.
10471
0175d51f
AB
104722009-12-21 Andreas Born <futur.andy@googlemail.com>
10473
10474 * kern/env.c (grub_env_export): Create nonexistent variables before
10475 exporting.
10476
7f39d92f 104772009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 10478
7f39d92f 10479 * include/grub/auth.h: Include `<grub/i18n.h>'.
10480 (GRUB_GET_PASSWORD): Gettextizze string.
10481 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
10482 menu_text.c.
10483 (grub_utf8_to_ucs4_alloc): Fix indentation.
10484 (grub_print_ucs4): Likewise.
10485 (grub_getstringwidth): Likewise.
10486 (print_message_indented): New declaration.
10487 * normal/auth.c: Include `<grub/i18n.h>'.
10488 (grub_auth_check_authentication): Gettexttize string.
10489 * normal/cmdline.c: Include `<grub/i18n.h>'.
10490 (grub_cmdline_get): Gettextizze.
10491 * normal/color.c: Include `<grub/i18n.h>'.
10492 (grub_parse_color_name_pair): Gettexttize strings.
10493 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
10494 string (use `print_message_indented').
10495 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
10496 `include/grub/normal.h'.
10497 (print_message_indented): Renamed to ...
10498 (grub_print_message_indented): ... this. Remove `static' qualifer (now
10499 used in normal/main.c).
10500 (print_message): Use `grub_print_message_indented' instead of
10501 `print_message_indented'.
10502 (print_timeout): Likewise.
10503 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
10504 (grub_normal_print_device_info): Gettexttize strings.
10505 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
10506
3041d898
VS
105072009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10508
10509 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
10510 of arguments. Return number of tokens and not arguments. All users
10511 updated.
10512
de15bf8e
VS
105132009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10514
10515 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
10516 non-MSDOS paritions.
10517
e0a6ca52
VS
105182009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 * include/grub/types.h (UNUSED): Removed since it conflicts with
10521 NetBSD headers. All users changed to direct __attribute__ ((unused)).
10522 Reported by Grégoire Sutre.
10523
b99518d1 105242009-12-19 Carles Pina i Estany <carles@pina.cat>
10525
10526 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
10527 (grub_print_ucs4_alloc): Likewise.
10528 (grub_getstringwidth): Likewise.
10529 * normal/main.c (grub_normal_init_page): Gettextize version string.
10530 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
10531 (getstringwidth): Renamed to ...
10532 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
10533 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
10534 (grub_print_ucs4): Remove `static' qualifer (now used in
10535 normal/main.c).
10536 * po/POTFILES: Add normal/main.c.
10537
bfd5e52b 105382009-12-19 Carles Pina i Estany <carles@pina.cat>
10539
10540 * normal/menu_text.c (STANDARD_MARGIN): New macro.
10541 (print_message_indented): Add `margin_left' and `margin_right'
10542 parameters.
10543 (print_message): Update `print_message_indented' calls. Adds '\n' to the
10544 strings.
10545 (print_timeout): Use `print_message_indented' to print the message.
10546 Deletes `second_stage' parameter.
10547 (run_menu): Update `print_timeout' calls.
10548
5a1ad2b9
VS
105492009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 Fix console palette on OpenFirmware.
10552
10553 * term/ieee1275/ofconsole.c (MAX): Removed.
10554 (colors): Redone based on VGA palette.
10555 (grub_ofconsole_setcolor): Discard brightness bit since only 8
10556 colors are supported.
10557 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
10558
b045f00a
VS
105592009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 Fix potential EfiEmu double prepare.
10562
10563 * efiemu/main.c (prepared): New variable
10564 (grub_efiemu_unload): Set prepare to '0'.
10565 (grub_efiemu_prepare): Return if already prepared. Set prepared.
10566
10567 set_virtual_address_map support.
10568
10569 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
10570 prototype.
10571 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
10572 prototype.
10573 (grub_efiemu_crc32): Likewise.
10574 (grub_efiemu_crc64): Likewise.
10575 (grub_efiemu_set_virtual_address_map): Likewise.
10576 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
10577 New definition.
10578 (grub_autoefi_set_virtual_address_map): Likewise.
10579 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
10580 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
10581 Restructure flow to accomodate it.
10582 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
10583 (grub_efiemu_crc): Recompute CRC32.
10584 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
10585 (efiemu_ptv_relocated): ... this. Made global. All users updated.
10586 * efiemu/symbols.c (relocated_handle): New variable.
10587 (grub_efiemu_free_syms): Free relocated_handle.
10588 (grub_efiemu_alloc_syms): Allocate relocated_handle.
10589 (grub_efiemu_write_sym_markers): New function.
10590 (grub_efiemu_set_virtual_address_map): Likewise.
10591
10592 Newer XNU parameters.
10593
10594 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
10595 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
10596 (grub_xnu_fill_devicetree): New prototype.
10597 (grub_xnu_heap_real_start): New variable.
10598 * loader/xnu.c (get_name_ptr): New function.
10599 (grub_xnu_load_driver): Fill namelen and name.
10600
10601 64-bit xnu support.
10602
10603 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
10604 and 'loader/macho64.c'.
10605 * conf/i386-pc.rmk: Likewise.
10606 * conf/x86_64-efi.rmk: Likewise.
10607 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
10608 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
10609 * include/grub/macho.h (grub_macho_segment64): New structure.
10610 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
10611 (grub_macho_size32): ... to this.
10612 (grub_macho32_get_entry_point): Renamed from ...
10613 (grub_macho_get_entry_point32): ... to this.
10614 (grub_macho_contains_macho64): New prototype.
10615 (grub_macho_size64): Likewise.
10616 (grub_macho_get_entry_point64): Likewise.
10617 (grub_macho32_load): Renamed from ...
10618 (grub_macho_load32): ... to this.
10619 (grub_macho32_filesize): Renamed from ...
10620 (grub_macho_filesize32): ... to this.
10621 (grub_macho32_readfile): Renamed from ...
10622 (grub_macho_readfile32): ... to this.
10623 (grub_macho_filesize64): New prototype.
10624 (grub_macho_readfile64): Likewise.
10625 (grub_macho_parse32): Likewise.
10626 (grub_macho_parse64): Likewise.
10627 * loader/macho.c: Split into ...
10628 * loader/machoXX.c: ... and this. Replace 32 with XX.
10629 * loader/macho32.c: New file.
10630 * loader/macho64.c: Likewise.
10631 * loader/xnu.c (grub_xnu_is_64bit): New variable.
10632 (grub_cmd_xnu_kernel): Make 32-bit only.
10633 (grub_cmd_xnu_kernel64): New function.
10634 (grub_xnu_load_driver): Support Mach-O 64.
10635 (grub_cmd_xnu_mkext): Likewise.
10636 * util/grub.d/30_os-prober.in (osx_entry): New function.
10637 Generate entries for 64-bit boot too.
10638
10639 Eliminate ad-hoc tree format in XNU and EfiEmu.
10640
10641 * efiemu/main.c (grub_efiemu_prepare): Update comment.
10642 * efiemu/pnvram.c: Rewritten to use environment variables.
10643 All users updated.
10644
10645 Inline utf16_to_utf8.
10646
10647 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
10648 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
10649 All users updated.
10650 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
10651
10652 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
10653 * commands/usbtest.c (grub_usb_get_string): ... move here.
10654 (usb_print_str): Fix error handling.
10655 * include/grub/usb.h (grub_usb_get_string): Remove.
10656
10657 UTF-8 to UTF-16 transformation.
10658
10659 * conf/common.rmk (pkglib_MODULES): Add charset.mod
10660 (charset_mod_SOURCES): New variable.
10661 (charset_mod_CFLAGS): Likewise.
10662 (charset_mod_LDFLAGS): Likewise.
10663 * include/grub/utf.h: New file.
10664 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
10665
10666 Support for device properties.
10667
10668 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
10669 (grub_xnu_devprop_device_header): Likewise.
10670 (grub_xnu_devprop_device_descriptor): Likewise.
10671 (grub_xnu_devprop_add_device): New prototype.
10672 (grub_xnu_devprop_remove_device): Likewise.
10673 (grub_xnu_devprop_remove_property): Likewise.
10674 (grub_xnu_devprop_add_property_utf8): Likewise.
10675 (grub_xnu_devprop_add_property_utf16): Likewise.
10676 (grub_cpu_xnu_init): Likewise.
10677 (grub_cpu_xnu_fini): Likewise.
10678 (grub_cpu_xnu_unload): Likewise.
10679 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
10680 (property_descriptor): Likewise.
10681 (devices): New variable.
10682 (grub_xnu_devprop_remove_property): New function.
10683 (grub_xnu_devprop_add_device): Likewise.
10684 (grub_xnu_devprop_remove_device): Likewise.
10685 (grub_xnu_devprop_add_property): Likewise.
10686 (grub_xnu_devprop_add_property_utf8): Likewise.
10687 (grub_xnu_devprop_add_property_utf16): Likewise.
10688 (hextoval): Likewise.
10689 (grub_cpu_xnu_fill_devprop): Likewise.
10690 (grub_cmd_devprop_load): Likewise.
10691 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
10692 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
10693 (cmd_devprop_load): New variable.
10694 (grub_cpu_xnu_init): New function.
10695 (grub_cpu_xnu_fini): Likewise.
10696 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
10697 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
10698 (grub_cmd_xnu_devtree): Likewise.
10699 (hextoval): New function.
10700 (unescape): Likewise.
10701 (grub_xnu_fill_devicetree): Likewise.
10702
10703 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
10704 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
10705
0945f181
VS
107062009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 Workaround for broken ATI VBE.
10709
10710 * video/i386/pc/vbe.c (last_set_mode): New variable.
10711 (grub_vbe_set_video_mode): Set 'last_set_mode'.
10712 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
10713 (grub_video_vbe_setup): Don't check for reserved flag.
10714
0ad46fd7 107152009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
10716
10717 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
10718 the `find' command.
10719
c179ebe4
VS
107202009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 UUID support for HFS.
10723
10724 * fs/hfs.c (grub_hfs_uuid): New function.
10725 (grub_hfs_fs): New value .uuid.
10726 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
10727
0ad46fd7 107282009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
10729
10730 Fix a segfault with parsing unknown long options.
10731
10732 * util/grub-mkrelpath.c (options): Zero terminate it.
10733
c4a3e41a
CPE
107342009-12-13 Carles Pina i Estany <carles@pina.cat>
10735
10736 * include/grub/misc.h (grub_puts): New declaration.
10737 (grub_puts_): Likewise.
a22008a6 10738 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
10739 (grub_puts_): Likewise.
10740
2e8a7602
RM
107412009-12-13 Robert Millan <rmh.grub@aybabtu.com>
10742
10743 * util/grub-probe.c (probe): Improve error message.
10744
b50b77b9
RM
107452009-12-13 Robert Millan <rmh.grub@aybabtu.com>
10746
10747 * loader/i386/multiboot_elfxx.c
10748 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
10749 initialization.
10750
107512009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 Relocator framework
10754
10755 * loader/i386/xnu_helper.S: Removed. All users updated.
10756 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
10757 (relocator_mod_SOURCES): New variable.
10758 (relocator_mod_CFLAGS): Likewise.
10759 (relocator_mod_LDFLAGS): Likewise.
10760 (relocator_mod_ASFLAGS): Likewise.
10761 * conf/x86_64.rmk: Likewise.
10762 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
10763 (grub_multiboot_payload_entry_offset): Likewise.
10764 (grub_multiboot_forward_relocator): Likewise.
10765 (grub_multiboot_forward_relocator_end): Likewise.
10766 (grub_multiboot_backward_relocator): Likewise.
10767 (grub_multiboot_backward_relocator_end): Likewise.
10768 (grub_multiboot_payload_eip): New variable.
10769 (grub_multiboot_payload_orig): Likewise.
10770 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
10771 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
10772 * include/grub/i386/memory.h
10773 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
10774 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
10775 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
10776 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
10777 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
10778 * include/grub/i386/relocator.h: New file.
10779 * include/grub/x86_64/relocator.h: Likewise.
10780 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
10781 (XNU_RELOCATOR): New macro.
10782 (grub_xnu_launcher_start): Remove.
10783 (grub_xnu_launcher_end): Likewise.
10784 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
10785 (grub_xnu_heap_real_start): Remove.
10786 (grub_xnu_heap_start): Change to void *. All users updated.
10787 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
10788 * lib/i386/relocator.c: New file.
10789 * lib/i386/relocator_asm.S: Likewise.
10790 * lib/i386/relocator_backward.S: Likewise.
10791 * lib/mips/relocator.c: Likewise.
10792 * lib/mips/relocator_asm.S: Likewise.
10793 * lib/relocator.c: Likewise.
10794 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
10795 (entry): Removed.
10796 (playground): Likewise.
10797 (grub_multiboot_payload_orig): New variable.
10798 (grub_multiboot_payload_dest): Likewise.
10799 (grub_multiboot_payload_size): Likewise.
10800 (grub_multiboot_payload_eip): Likewise.
10801 (grub_multiboot_payload_esp): Likewise.
10802 (grub_multiboot_boot): Use grub_relocator32_boot.
10803 (grub_multiboot_unload): Free relocators.
10804 (grub_multiboot): Setup stack. Use relocators.
10805 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
10806 (grub_multiboot_load_elfXX): Use relocators.
10807 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
10808 (grub_multiboot_payload_size): Likewise.
10809 (grub_multiboot_payload_dest): Likewise.
10810 (grub_multiboot_payload_entry_offset): Likewise.
10811 (grub_multiboot_forward_relocator): Likewise.
10812 (grub_multiboot_backward_relocator): Likewise.
10813 (grub_multiboot_real_boot): Likewise.
10814 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
10815 (grub_xnu_entry_point): Likewise.
10816 (grub_xnu_arg1): Likewise.
10817 (grub_xnu_stack): Likewise.
10818 (grub_xnu_launch): Removed.
10819 (grub_xnu_boot_resume): New function.
10820 (grub_xnu_boot): Use relocators.
10821 * loader/i386/xnu_helper.S: Removed.
10822 * loader/xnu.c (grub_xnu_heap_start): New variable.
10823 (grub_xnu_heap_size): Likewise.
10824 (grub_xnu_heap_malloc): Use relocators.
10825 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
10826
29eb90c6
VS
108272009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10828
10829 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
10830 anything.
10831
31027430
CPE
108322009-12-13 Carles Pina i Estany <carles@pina.cat>
10833
10834 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
10835 GRUB_ERR_NONE before calling grub_env_set.
10836
dc0c71d9
RM
108372009-12-12 Robert Millan <rmh@aybabtu.com>
10838
10839 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
10840 * genmk.rb (video): New variable.
10841 (CLEANFILES, VIDEOFILES): Add #{video}.
10842 (#{video}): New target rule.
10843 * genvideolist.sh: New file.
10844 * Makefile.in (pkglib_DATA): Add video.lst.
10845 (video.lst): New target rule.
10846 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
10847 `video.lst'.
10848 * util/grub.d/30_os-prober.in: Replace `vbe' with
10849 ${GRUB_VIDEO_BACKEND}.
10850
2a4bfcf0
RM
108512009-12-11 Robert Millan <rmh.grub@aybabtu.com>
10852
10853 * THANKS: Add David Miller.
10854
2a3aa4d5
RM
108552009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 libpciaccess support.
10858
10859 * Makefile.in (LIBPCIACCESS): New variable.
10860 (enable_grub_emu_pci): Likewise.
10861 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
10862 util/pci.c and commands/lspci.c.
10863 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
10864 * configure.ac (grub-emu-pci): New option.
10865 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
10866 (grub_pci_device_unmap_range): Likewise.
10867 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
10868 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
10869 (grub_pci_address_t) [!GRUB_UTIL]: New type.
10870 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
10871 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
10872 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
10873 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
10874 * include/grub/pciutils.h: New file.
10875 * util/pci.c: Likewise.
10876
0ad46fd7 108772009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
10878
10879 * util/misc.c: Don't include <errno.h> twice.
10880
0ad46fd7 108812009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
10882
10883 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
10884 name in an error message.
10885 (grub_biosdisk_rw): Likewise.
10886
2e59983c
VS
108872009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10888
10889 Eliminate NTFS 4Gib barrier.
10890
10891 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
10892 (read_run_data): Likewise.
10893 (grub_ntfs_read_run_list): Likewise.
10894 (grub_ntfs_read_block): Likewise.
10895 (grub_ntfs_iterate_dir): Likewise.
10896 (read_mft): Likewise.
10897 (read_data): Likewise.
10898 Use COM_LOG_LEN.
10899 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
10900 to avoid 64-bit division
10901 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
10902 (grub_ntfs_rlst): Use grub_disk_addr_t.
10903
71ee178a
VS
109042009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10905
10906 Eliminate grub-fstest 4Gib barrier.
10907
10908 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
10909 (read_file): Fix error reporting.
10910
2520d4b8
VS
109112009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 Eliminate hexdump 4Gib barrier.
10914
10915 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
10916 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
10917
e1f27065
VS
109182009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
10921 Fixes amarsh bug.
10922
1a0f7f45
RM
109232009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
10924
10925 Remove miscellaneous files in distclean target.
10926
10927 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
10928
c631d9fb
CW
109292009-12-09 Colin Watson <cjwatson@ubuntu.com>
10930
10931 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
10932 if they're already set. This resolves the conflict between my
10933 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
10934 fixing the --grub-probe option again.
10935 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
10936 change on 2009-10-06, so that we now once again source
10937 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
10938
7c7b6106
RM
109392009-12-08 Robert Millan <rmh.grub@aybabtu.com>
10940
10941 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
10942 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
10943 `util/devicemap.c'.
10944
e3069ec1
CPE
109452009-12-08 Carles Pina i Estany <carles@pina.cat>
10946
10947 * include/grub/misc.h (grub_printf_): New declaration.
10948 * kern/misc.c (grub_printf_): New definition.
10949 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
10950 instead of `grub_printf' and `_'.
10951 * normal/menu_entry.c (store_completion): Likewise.
10952 (run): Likewise.
10953 (grub_menu_entry_run): Likewise.
10954 * normal/menu_text.c (grub_wait_after_message): Likewise.
10955 (notify_booting): Likewise.
10956 (notify_fallback): Likewise.
10957 (notify_execution_failure): Likewise.
10958
d6ceebf1
CW
109592009-12-07 Colin Watson <cjwatson@ubuntu.com>
10960
10961 * configure.ac: Check for vasprintf.
10962 * util/misc.c (asprintf): Move allocation from here ...
10963 (vasprintf): ... to here. New function.
10964 (xasprintf): New function.
10965 * include/grub/util/misc.h (vasprintf, xasprintf): Add
10966 prototypes.
10967 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
10968 * util/grub-mkfont.c (write_font): Likewise.
10969 * util/grub-probe.c (probe): Likewise.
10970 * util/hostdisk.c (make_device_name): Likewise.
10971
de6daa8b
DM
109722009-12-06 David S. Miller <davem@sunset.davemloft.net>
10973
10974 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
10975 anything even prefixed with 'cdrom' as a cdrom.
10976
0ad46fd7 109772009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
10978
10979 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
10980 mount points.
10981
98d3dc02
CPE
109822009-12-05 Carles Pina i Estany <carles@pina.cat>
10983
10984 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
10985 grub_gettext_msg_list.
10986 (grub_gettext_gettranslation_from_position): Return const char *
10987 and not char *.
a2c1332b 10988 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
10989 returns from the list if existing there.
10990 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
10991 (grub_gettext_delete_list): Delete the list.
10992 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
10993 lang environment variable is changed.
10994 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
10995
b283f108
VS
109962009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
10997
10998 Rename kernel.mod to kernel.img.
10999
11000 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
11001 (kernel_mod_EXPORTS): Rename to ...
11002 (kernel_img_EXPORTS): ... this.
11003 (kernel_mod_SOURCES): Rename to ...
11004 (kernel_img_SOURCES): ... this.
11005 (kernel_mod_HEADERS): Rename to ...
11006 (kernel_img_HEADERS): ... this. All users updated.
11007 (kernel_mod_CFLAGS): Rename to ...
11008 (kernel_img_CFLAGS): ... this.
11009 (kernel_mod_ASFLAGS): Rename to ...
11010 (kernel_img_ASFLAGS): ... this.
11011 (kernel_mod_LDFLAGS): Rename to ...
11012 (kernel_img_LDFLAGS): ... this.
11013 * conf/x86_64-efi.rmk: Likewise.
11014 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
11015 (read_kernel_image): ... this. All users updated.
11016 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
11017
69055f8a
CPE
110182009-12-05 Carles Pina i Estany <carles@pina.cat>
11019
11020 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
11021 (print_spaces): New function.
11022 (grub_print_ucs4): New function.
11023 (getstringwidth): New function.
11024 (print_message_indented): New function.
11025 (print_message): Gettexttize strings using print_message_indented.
11026 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
11027 width.
11028 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 11029 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
11030 Gettextize.
11031 * normal/menu_entry.c (store_completion): Cleanup the gettextized
11032 string.
11033 (run): Likewise.
11034 (grub_menu_entry_run): Likewise.
11035 * PO/POTFILES: Add normal/menu_entry.c.
11036
f616f51c
VS
110372009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
11040
57bbe3be
CPE
110412009-12-05 Carles Pina i Estany <carles@pina.cat>
11042
11043 * util/grub-install.in: Install gettext .mo files.
11044 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
11045
013d67a1
CPE
110462009-12-05 Carles Pina i Estany <carles@pina.cat>
11047
11048 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
11049 grub_dprintf.
11050
fb954db0
RM
110512009-12-05 Robert Millan <rmh.grub@aybabtu.com>
11052
11053 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
11054 non-firmware-dependant one in realmode.S takes precedence.
11055
6b8474f8
RM
110562009-12-04 Robert Millan <rmh.grub@aybabtu.com>
11057
11058 * commands/halt.c: Replace misc arch-specific headers with
11059 `<grub/misc.h>'.
11060 * commands/reboot.c: Likewise.
11061 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
11062 `<grub/misc.h>'.
11063 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
11064 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
11065 (kernel_img_SOURCES): ... to here.
11066
11067 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
11068 * include/grub/i386/pc/init.h: Likewise.
11069 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11070 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11071
11072 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
11073
11074 * include/grub/i386/halt.h: Remove.
11075 * include/grub/i386/reboot.h: Likewise.
11076
11077 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
11078
4b2e6ca2
DM
110792009-12-03 David S. Miller <davem@sunset.davemloft.net>
11080
11081 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
11082 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
11083 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
11084 "progname.h"
11085 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
11086 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11087 (usage): Add missing comma in printf.
11088
5239348f
RM
110892009-12-02 Robert Millan <rmh.grub@aybabtu.com>
11090
11091 Use the same reboot approach on i386 coreboot and qemu as we do on
11092 BIOS.
11093
11094 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
11095 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
11096 * kern/i386/reboot.c: Remove.
11097 * include/grub/i386/reboot.h (grub_reboot): Export function.
11098 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
11099 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
11100 0xf000:0xfff0 instead of 0xffff:0x0000.
11101 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
11102 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
11103
ef34cbd4
RM
111042009-11-30 Robert Millan <rmh.grub@aybabtu.com>
11105
11106 Fix $srcdir != $objdir build.
11107
11108 * Makefile.in (po/%.po): Rewrite as ...
11109 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
11110
dc9837ea
ST
111112009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
11112
11113 Fix GNU/Hurd grub-install crash.
11114 * util/grub-probe.c (probe): Try to access `path' only when it is not
11115 NULL.
11116
2f857f98
VS
111172009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 Correct module naming.
11120
11121 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
11122 (GRUB_MOD_INIT(efi_uga)): ... to this
11123 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
11124 (GRUB_MOD_FINI(efi_uga)): ... to this
11125 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
11126 (GRUB_MOD_INIT(efi_gop)): ... to this
11127 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
11128 (GRUB_MOD_FINI(efi_gop)): ... to this
11129
c5448046
RM
111302009-11-28 Robert Millan <rmh.grub@aybabtu.com>
11131
11132 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
11133 translatable.
11134 (usage): Translate `arg' strings using gettext().
11135 Thanks to Jordi Mallach for the suggestion.
11136
c85184ad
VS
111372009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
11138
11139 GOP support. Based on patch from Bean
11140 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
11141
11142 * video/efi_gop.c: New file.
11143 * include/grub/efi/graphics_output.h: Likewise.
11144 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
11145 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
11146 variables.
11147 * conf/x86_64-efi.rmk: Likewise.
11148
8a4c48d8
VS
111492009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 Rename efi_fb to efi_uga.
11152
11153 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
11154 'efi_uga.mod'.
11155 (efi_fb_mod_SOURCES): Rename this ...
11156 (efi_uga_mod_SOURCES): ... to this.
11157 (efi_fb_mod_CFLAGS): Rename this ...
11158 (efi_uga_mod_CFLAGS): ... to this.
11159 (efi_fb_mod_LDFLAGS): Rename this ...
11160 (efi_uga_mod_LDFLAGS): ... to this.
11161 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
11162 'efi_uga.mod'.
11163 (efi_fb_mod_SOURCES): Rename this ...
11164 (efi_uga_mod_SOURCES): ... to this.
11165 (efi_fb_mod_CFLAGS): Rename this ...
11166 (efi_uga_mod_CFLAGS): ... to this.
11167 (efi_fb_mod_LDFLAGS): Rename this ...
11168 (efi_uga_mod_LDFLAGS): ... to this.
11169 * video/efi_fb.c: Move this ...
11170 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
11171
fb6c1a7b
RM
111722009-11-27 Robert Millan <rmh.grub@aybabtu.com>
11173
11174 * po/README: New file. Explain our PO file workflow.
11175
3bc7896c
RM
111762009-11-27 Robert Millan <rmh.grub@aybabtu.com>
11177
11178 * po/ChangeLog: Remove. Move relevant entries back to ...
11179 * ChangeLog: ... here.
11180 * po/ca.po: Remove (now handled by TLP).
11181 * po/id.po: Likewise.
11182 * po/zh_CN.po: Likewise.
11183 * Makefile.in (LINGUAS): Initialize in a way that supports
11184 empty set.
11185
9ed4841d
RM
111862009-11-27 Robert Millan <rmh.grub@aybabtu.com>
11187
11188 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
11189 reliing on po/LINGUAS.
11190 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
11191 (po/%.po): ... this.
11192
0ad46fd7 111932009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
11194
11195 * util/i386/efi/grub-mkimage.c: Include "progname.h".
11196 (main): Use `program_name' instead of nonexistent `progname'.
11197
e30dd392
FZ
111982009-11-26 Felix Zielcke <fzielcke@z-51.de>
11199
11200 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
11201 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
11202
7656de4f
RM
112032009-11-26 Robert Millan <rmh.grub@aybabtu.com>
11204
11205 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
11206 commit.
11207 * conf/i386-efi.rmk: Likewise.
11208 * conf/i386-ieee1275.rmk: Likewise.
11209 * conf/powerpc-ieee1275.rmk: Likewise.
11210 * conf/sparc64-ieee1275.rmk: Likewise.
11211 * conf/x86_64-efi.rmk: Likewise.
11212
db77c4d4
FZ
112132009-11-26 Felix Zielcke <fzielcke@z-51.de>
11214
11215 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
11216
a755bb04
FZ
112172009-11-26 Felix Zielcke <fzielcke@z-51.de>
11218
11219 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
11220
8a4c07fd
RM
112212009-11-26 Robert Millan <rmh.grub@aybabtu.com>
11222
11223 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
11224 (grub_mkdevicemap_SOURCES): New variable.
11225 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
11226 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
11227 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
11228 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
11229 (grub_mkdevicemap_SOURCES): Remove.
11230 * conf/i386-efi.rmk: Likewise.
11231 * conf/i386-ieee1275.rmk: Likewise.
11232 * conf/i386-pc.rmk: Likewise.
11233 * conf/powerpc-ieee1275.rmk: Likewise.
11234 * conf/sparc64-ieee1275.rmk: Likewise.
11235 * conf/x86_64-efi.rmk: Likewise.
11236 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
11237 (usage): Fix strings to use `program_name'.
11238 (main): Initialize gettext.
11239 * util/grub-editenv.c: Likewise.
11240 * util/grub-emu.c: Likewise.
11241 * util/grub-fstest.c: Likewise.
11242 * util/grub-mkdevicemap.c: Likewise.
11243 * util/grub-mkfont.c: Likewise.
11244 * util/grub-mkrelpath.c: Likewise.
11245 * util/grub-pe2elf.c: Likewise.
11246 * util/grub-probe.c: Likewise.
11247 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
11248 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
11249 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11250
11251 * util/misc.c: Include `"progname.h"'.
11252 (progname): Remove variable.
11253 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
11254
6f61ed55
FZ
112552009-11-25 Felix Zielcke <fzielcke@z-51.de>
11256
11257 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
11258 printf and print a newline after the menuentry header line.
11259 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
11260
f022876b
FZ
112612009-11-25 Felix Zielcke <fzielcke@z-51.de>
11262
11263 autoconf >= 2.60 support $(localedir).
11264
11265 * INSTALL: Note that autoconf 2.60 is required.
11266 * configure.ac (AC_PREREQ): Bump to 2.60.
11267 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
11268 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
11269
6717926e
YB
112702009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
11271
11272 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
11273 aclocal is run.
11274
08806a54
RM
112752009-11-25 Robert Millan <rmh.grub@aybabtu.com>
11276
11277 * normal/main.c (grub_normal_read_line): Fix off-by-one
11278 buffer overflow.
11279
13b33fba
RM
112802009-11-25 Robert Millan <rmh.grub@aybabtu.com>
11281
11282 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
11283 "parser.grub" in grub_command_execute() call.
11284
4a8572e9
CPE
112852009-11-24 Carles Pina i Estany <carles@pina.cat>
11286
11287 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
11288 * conf/i386-efi.rmk: Likewise.
11289 * conf/i386-ieee1275.rmk: Likewise.
11290 * conf/i386-pc.rmk: Likewise.
11291 * conf/powerpc-ieee1275.rmk: Likewise.
11292 * conf/sparc64-ieee1275.rmk: Likewise.
11293 * conf/x86_64-efi.rmk: Likewise.
11294 * gettext/gettex.c: Include <grub/i18n.h>.
11295 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
11296 here ...
11297 * include/grub/i18n.h: ... to here
11298 * include/grub/i18n.h: ... to here.
11299 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 11300 (grub_gettext_dummy): Move above user.
4a8572e9 11301
bee48093
FZ
113022009-11-24 Felix Zielcke <fzielcke@z-51.de>
11303
11304 * util/Makefile.in (install-local): Convert a `for' into a normal
11305 shell expansion.
11306
a031e91c
RM
113072009-11-24 Robert Millan <rmh.grub@aybabtu.com>
11308
11309 * autogen.sh: Add automake call.
11310 * config.guess: Remove.
11311 * config.sub: Likewise.
11312 * install-sh: Likewise.
11313
26bec39d
FZ
113142009-11-24 Felix Zielcke <fzielcke@z-51.de>
11315
11316 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
11317
8e2532fd
FZ
113182009-11-24 Felix Zielcke <fzielcke@z-51.de>
11319
11320 * util/Makefile.in (install-local): Convert a make `$(foreach)'
11321 function to a normal shell `for'.
11322
fefa1b7d
FZ
113232009-11-24 Felix Zielcke <fzielcke@z-51.de>
11324
11325 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
11326
4501250b
FZ
113272009-11-24 Felix Zielcke <fzielcke@z-51.de>
11328
11329 * util/grub-mkrelpath.c: New file.
11330 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
11331 (grub_mkrelpath_SOURCES): New variable.
11332 * include/grub/util/misc.h: New function prototype.
11333 * util/misc.c (make_system_path_relative_to_its_root): New function.
11334
11335 * util/grub-mkconfig_lib.in (bindir): New variable.
11336 (grub_mkrelpath): Likewise.
11337 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
11338
11339 * util/probe.c (probe): Make the file path relative to its root.
11340 Change a info message to use the GRUB path. Enable again the
11341 check if we can read the file with GRUB facilities.
11342
11343 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
11344 to its root.
11345
11d9778b
FZ
113462009-11-24 Felix Zielcke <fzielcke@z-51.de>
11347
11348 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
11349 platform.
11350
4465287d
FZ
113512009-11-24 Felix Zielcke <fzielcke@z-51.de>
11352
11353 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
11354 strncmp().
11355
62b47f22
FZ
113562009-11-24 Felix Zielcke <fzielcke@z-51.de>
11357
11358 * util/getroot.c (grub_util_is_dmraid): New function.
11359 (grub_util_get_dev_abstraction): Treat dmraid and multipath
11360 devices as normal ones, not as LVM.
11361
1eafb9b9 113622009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
11363
11364 * conf/common.rmk: Add grub-gettext_lib target and updates
11365 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
11366 LDFLAGS.
11367 * gettext/gettext.c: New file. (Reads mo files).
11368 * include/grub/file.h (grub_file_pread): New prototype.
11369 * include/grub/i18n.h (_): New prototype.
11370 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
11371 prototypes.
11372 * kern/misc.c (grub_gettext_dummy): New function.
11373 * normal/menu_text.c: Include <grub/i18n.h>.
11374 * normal/menu_text.c (print_timeout): Gettexttize string.
11375 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
11376 * po/POTFILES: Add `normal/menu_text.c'.
11377 * po/ca.po: Add new translations.
c3ea6bd4
CPE
11378 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
11379 gettext module and defines locale_dir and lang in grub.cfg.
11380 * NEWS: Add gettext support.
11381
0fdb2568
RM
113822009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11383
11384 * util/hostdisk.c: Include `<grub/i18n.h>'.
11385 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
11386 (make_device_name): Rewrite using asprintf.
11387 (convert_system_partition_to_system_disk): Replace 0 with NULL.
11388 (find_system_device): If a device is not found, generate one just
11389 by reusing the OS path name.
11390 (read_device_map): Make it permissible for device.map not to exist.
11391
f515aa62
RM
113922009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11393
11394 * script/sh/execute.c: Move from here ...
11395 * script/execute.c: ... to here. Update all users.
11396 * script/sh/function.c: Move from here ...
11397 * script/function.c: ... to here. Update all users.
11398 * script/sh/lexer.c: Move from here ...
11399 * script/lexer.c: ... to here. Update all users.
11400 * script/sh/main.c: Move from here ...
11401 * script/main.c: ... to here. Update all users.
11402 * script/sh/parser.y: Move from here ...
11403 * script/parser.y: ... to here. Update all users.
11404 * script/sh/script.c: Move from here ...
11405 * script/script.c: ... to here. Update all users.
11406
f84b481b
RM
114072009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11408
11409 * configure.ac: Detect all `emu' platforms. Define
11410 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
11411 --enable-grub-emu logic. Disable include/grub/machine
11412 symlink on `emu' platforms.
11413
11414 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
11415 * gensymlist.sh.in: Likewise.
11416
11417 * include/grub/i386/coreboot/machine.h: Remove file.
11418 * include/grub/i386/efi/machine.h: Likewise.
11419 * include/grub/i386/ieee1275/machine.h: Likewise.
11420 * include/grub/i386/pc/machine.h: Likewise.
11421 * include/grub/i386/qemu/machine.h: Likewise.
11422 * include/grub/powerpc/ieee1275/machine.h: Likewise.
11423 * include/grub/sparc64/ieee1275/machine.h: Likewise.
11424 * include/grub/x86_64/efi/machine.h: Likewise.
11425
11426 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
11427 * commands/halt.c: Likewise.
11428 * commands/reboot.c: Likewise.
11429 * include/grub/autoefi.h: Likewise.
11430 * include/grub/i386/at_keyboard.h: Likewise.
11431 * include/grub/i386/kernel.h: Likewise.
11432 * include/grub/i386/loader.h: Likewise.
11433 * include/grub/i386/pc/memory.h: Likewise.
11434 * kern/dl.c: Likewise.
11435 * kern/i386/coreboot/init.c: Likewise.
11436 * loader/i386/bsd.c: Likewise.
11437 * loader/i386/linux.c: Likewise.
11438 * loader/multiboot_loader.c: Likewise.
11439 * term/i386/pc/serial.c: Likewise.
11440 * term/usb_keyboard.c: Likewise.
11441
11442 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
11443 `<grub/machine/machine.h>'
11444 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
11445 * util/misc.c: Remove `<grub/machine/machine.h>' and
11446 `<grub/machine/time.h>'.
11447
11448 * Makefile.in (enable_grub_emu): Remove variable.
11449 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
11450
11451 * conf/any-emu.rmk: New file.
11452 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
11453 (grub_emu_init.c): Move from here ...
11454 * conf/any-emu.rmk: ... to here.
11455
11456 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
11457 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
11458 * conf/any-emu.rmk: ... to here.
11459
4efeab03
RM
114602009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11461
11462 * include/grub/parser.h (grub_parser_register): Document need
11463 of `name' parameter.
11464 * normal/main.c (grub_normal_read_line): Simplify prompt string.
11465 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
11466 "sh" to "grub".
11467
ea1dd8bf
RM
114682009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11469
11470 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
11471 `$(XGETTEXT)'.
11472 * include/grub/i18n.h (N_): New macro.
11473 * util/mkisofs/mkisofs.h: Likewise.
11474 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
11475 around N_().
11476 (usage): Use gettext() to translate help strings when printing them.
11477
0c140626
RM
114782009-11-23 Robert Millan <rmh.grub@aybabtu.com>
11479
11480 Based on patch from Bean
11481 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
11482
11483 * video/efi_fb.c: New file.
11484 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
11485 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
11486 variables.
11487 * conf/x86_64-efi.rmk: Likewise.
11488
87d58298
RM
114892009-11-22 Robert Millan <rmh.grub@aybabtu.com>
11490
11491 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
11492 * util/i386/pc/grub-setup.c: Likewise.
11493
994cc3a3
ST
114942009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11495
11496 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
11497 <hurd/fs.h>
11498 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
11499 file_get_storage_info to implement grub_guess_root_device.
11500
26a61d6a
FZ
115012009-11-21 Felix Zielcke <fzielcke@z-51.de>
11502
11503 * Makefile.in (target): Use make's builtin $(shell) function
11504 instead of calling directly $(SHELL) to create the locale directories,
11505 inside the $(foreach) function.
11506
74ff1dd5
FZ
115072009-11-21 Felix Zielcke <fzielcke@z-51.de>
11508
11509 * util/grub-mkrescue.in: Print an error and usage if output option
11510 has not been given.
11511
0b787d0e
FZ
115122009-11-21 Felix Zielcke <fzielcke@z-51.de>
11513
11514 Patch from Loïc Minier <loic.minier@ubuntu.com>.
11515 * util/grub.d/30_os-prober.in: Cope with Linux entries where
11516 root and /boot are on different devices.
11517
1164b270
RM
115182009-11-21 Robert Millan <rmh.grub@aybabtu.com>
11519
11520 Fix build for srcdir != objdir.
11521
11522 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
11523 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
11524 $(srcdir).
11525 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
11526 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
11527 reference for input.
11528
13774a2f
RM
115292009-11-21 Robert Millan <rmh.grub@aybabtu.com>
11530
11531 * util/grub-mkrescue.in: Use source directory direcly (without copiing
11532 or hardlinking it). Remove -J option, Joliet is not compatible with
11533 multiple source directories.
11534
efda854e
RM
115352009-11-21 Carles Pina i Estany <carles@pina.cat>
115362009-11-21 Robert Millan <rmh.grub@aybabtu.com>
11537
11538 * util/grub-mkrescue.in: Recognize `--override-directory' option.
11539 (process_input_dir): New function. Process an arbitrary input
11540 directory.
11541 Misc adjustments to support both "override mode" and system-wide mode.
11542
6c09890c
FZ
115432009-11-20 Felix Zielcke <fzielcke@z-51.de>
11544
11545 * configure.ac (UNIFONT_BDF): Rename to ...
11546 (FONT_SOURCE): ... this. Update all users.
11547
a797824f
FZ
115482009-11-20 Felix Zielcke <fzielcke@z-51.de>
11549
11550 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
11551 to the list of unifont files to look for.
11552
cd4f42b0
RM
115532009-11-19 Robert Millan <rmh.grub@aybabtu.com>
11554
11555 Patch from Joe Auricchio <jauricchio@gmail.com>
11556 * commands/minicmd.c (grub_mini_cmd_clear): New function.
11557 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
11558 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
11559
393c783d
FZ
115602009-11-19 Felix Zielcke <fzielcke@z-51.de>
11561
11562 * Makefile.in (install-local): Add a missing backslash.
11563
b2f1e327
FZ
115642009-11-19 Felix Zielcke <fzielcke@z-51.de>
11565
11566 * include/grub/x86_64/io.h: New file.
11567
f577f7a0
RM
115682009-11-19 Robert Millan <rmh.grub@aybabtu.com>
11569
11570 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
11571 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
11572 Include `"progname.h"'.
11573 (main): Initialize gettext.
11574 * util/i386/pc/grub-setup.c: Gettexttize.
11575 * util/i386/pc/grub-mkimage.c: Likewise.
11576
11577 * Makefile.in (po/*.po): Redefine as ...
11578 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
11579
3bc7896c
RM
11580 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
11581
c37943b6
RM
115822009-11-19 Robert Millan <rmh.grub@aybabtu.com>
11583
11584 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
11585 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
11586 (program_name): Remove.
11587 (main): Initialize gettext support.
6323f705
RM
11588 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
11589 Include `<libintl.h>'.
11590 (_): New macro.
c37943b6
RM
11591
11592 * util/mkisofs/eltorito.c: Gettexttize.
11593 * util/mkisofs/joliet.c: Likewise.
11594 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
11595 * util/mkisofs/multi.c: Likewise.
11596 * util/mkisofs/rock.c: Likewise.
11597 * util/mkisofs/tree.c: Likewise.
11598 * util/mkisofs/write.c: Likewise.
11599
3bc7896c
RM
11600 * po/POTFILES: Update with new files.
11601
5ce77c6e
RM
116022009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11603
11604 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
11605 * util/mkisofs/iso9660.h: Likewise.
11606 * util/mkisofs/joliet.c: Likewise.
11607 * util/mkisofs/mkisofs.c: Likewise.
11608 * util/mkisofs/mkisofs.h: Likewise.
11609 * util/mkisofs/rock.c: Likewise.
11610 * util/mkisofs/tree.c: Likewise.
11611 * util/mkisofs/write.c: Likewise.
11612
11613 * util/mkisofs/eltorito.c (rcsid): Remove.
11614 * util/mkisofs/hash.c: Likewise.
11615 * util/mkisofs/joliet.c: Likewise.
11616 * util/mkisofs/name.c: Likewise.
11617 * util/mkisofs/rock.c: Likewise.
11618 * util/mkisofs/tree.c: Likewise.
11619 * util/mkisofs/write.c: Likewise.
11620
1dabbc77
RM
116212009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11622
11623 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
11624 instead of static allocation.
11625 * util/mkisofs/match.h: Likewise.
11626
633877cb
RM
116272009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11628
3bc7896c
RM
11629 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
11630 and `util/grub.d/10_linux.in'.
633877cb
RM
11631 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
11632 translatable Shell files.
11633
af1c0c85
RM
116342009-11-18 Robert Millan <rmh.grub@aybabtu.com>
11635
11636 * Makefile.in ($(srcdir)/aclocal.m4): New target.
11637
769ae37b
RM
116382009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11639
11640 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 11641 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
11642 * util/grub.d/10_kfreebsd.in (bindir): New variable.
11643 Add gettext initialization.
11644 (kfreebsd_entry): Make menuentry output translatable.
11645
116462009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11647
11648 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
11649 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
11650 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
11651 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
11652 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 11653 * po/LINGUAS: New file.
769ae37b
RM
11654
116552009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11656
11657 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
11658 other things).
11659 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
11660 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
11661 bindtextdomain() calls for gettext initialization.
11662
116632009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11664
11665 * gnulib/progname.c: New file (imported from Gnulib).
11666 * gnulib/progname.h: Likewise.
11667 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
11668 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
11669 (usage): Replace `progname' with `program_name'.
11670 (main): Use set_program_name() for program name initialization.
11671
116722009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11673
11674 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
11675 from here ...
11676 * Makefile.in (CPPFLAGS): ... to here.
11677
116782009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11679
11680 * aclocal.m4: Move from here ...
11681 * acinclude.m4: ... to here.
11682 * autogen.sh: Add call to `aclocal'.
11683 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
11684
116852009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11686
11687 * Makefile.in (CLEANFILES): Add `po/*.mo'.
11688 (LINGUAS): New variable.
11689 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
11690 (install-local): Install MO files.
11691 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
11692 * include/grub/i18n.h: New file.
3bc7896c
RM
11693 * po/POTFILES: New file.
11694 * po/ca.po: New file.
769ae37b
RM
11695 * util/grub.d/10_linux.in (bindir): New variable.
11696 Add gettext initialization.
11697 (linux_entry): Make menuentry output translatable.
11698 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
11699 (usage): Make --help output translatable.
11700 (main): Initialize gettext.
11701
02c0a6ad
RM
117022009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11703
11704 * import_gcry.py: New file (written by Vladimir with minor
11705 adjustments).
11706 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
11707 ciphers.
11708 * INSTALL: Document that Python is required for bootstrap.
11709
117102009-11-17 Robert Millan <rmh.grub@aybabtu.com>
11711
11712 Import ciphers from libgcrypt 1.4.4.
11713
11714 * lib/libgcrypt/cipher/ChangeLog
11715 * lib/libgcrypt/cipher/ac.c
11716 * lib/libgcrypt/cipher/arcfour.c
11717 * lib/libgcrypt/cipher/bithelp.h
11718 * lib/libgcrypt/cipher/blowfish.c
11719 * lib/libgcrypt/cipher/camellia-glue.c
11720 * lib/libgcrypt/cipher/camellia.c
11721 * lib/libgcrypt/cipher/camellia.h
11722 * lib/libgcrypt/cipher/cast5.c
11723 * lib/libgcrypt/cipher/cipher.c
11724 * lib/libgcrypt/cipher/crc.c
11725 * lib/libgcrypt/cipher/des.c
11726 * lib/libgcrypt/cipher/dsa.c
11727 * lib/libgcrypt/cipher/ecc.c
11728 * lib/libgcrypt/cipher/elgamal.c
11729 * lib/libgcrypt/cipher/hash-common.c
11730 * lib/libgcrypt/cipher/hash-common.h
11731 * lib/libgcrypt/cipher/hmac-tests.c
11732 * lib/libgcrypt/cipher/md.c
11733 * lib/libgcrypt/cipher/md4.c
11734 * lib/libgcrypt/cipher/md5.c
11735 * lib/libgcrypt/cipher/primegen.c
11736 * lib/libgcrypt/cipher/pubkey.c
11737 * lib/libgcrypt/cipher/rfc2268.c
11738 * lib/libgcrypt/cipher/rijndael-tables.h
11739 * lib/libgcrypt/cipher/rijndael.c
11740 * lib/libgcrypt/cipher/rmd.h
11741 * lib/libgcrypt/cipher/rmd160.c
11742 * lib/libgcrypt/cipher/rsa.c
11743 * lib/libgcrypt/cipher/seed.c
11744 * lib/libgcrypt/cipher/serpent.c
11745 * lib/libgcrypt/cipher/sha1.c
11746 * lib/libgcrypt/cipher/sha256.c
11747 * lib/libgcrypt/cipher/sha512.c
11748 * lib/libgcrypt/cipher/tiger.c
11749 * lib/libgcrypt/cipher/twofish.c
11750 * lib/libgcrypt/cipher/whirlpool.c
11751
af2f93ac
RM
117522009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11753
11754 Fix build for systems without error().
11755
11756 * gnulib/error.c: New file (imported from Gnulib).
11757 * gnulib/error.h: Likewise.
11758 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
11759 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
11760 (this variable is now used by error()).
11761
73fb3dd5
FZ
117622009-11-16 Felix Zielcke <fzielcke@z-51.de>
11763
814f5e96
FZ
11764 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
11765 instead of relying that char is signed.
73fb3dd5 11766
a691ca33
VS
117672009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11768
11769 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
11770 blocksize different from specified.
11771 (grub_pxefs_read): Likewise.
11772
2af8f0f4
FZ
117732009-11-16 Felix Zielcke <fzielcke@z-51.de>
11774
11775 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
11776
11777 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
11778 (grub_ata_readwrite): Likewise. Update 2 format strings.
11779 (grub_atapi_read): Likewise.
11780
11781 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
11782 * conf/i386.rmk (pkglib_MODULES): ... to here ...
11783 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
11784 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
11785 (ata_mod_LDFLAGS): Move from here ...
11786 * conf/i386.rmk: ... to here ...
11787 * conf/x86_64-efi.rmk: ... and here.
11788 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
11789 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
11790
83bdecaf
RM
117912009-11-16 Robert Millan <rmh.grub@aybabtu.com>
11792
11793 Relicense multiboot.h, with RMS' blessing.
11794
11795 * include/multiboot.h: Change to X11 license.
11796
fd6fd3d7
RM
117972009-11-15 Robert Millan <rmh.grub@aybabtu.com>
11798
11799 Support --version in grub-mkisofs.
11800
11801 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
11802 (OPTION_VERSION): New macro.
11803 (ld_options): Recognize --version.
11804 (usage): Move `program_name' from here ...
11805 (program_name): ... to here. Add `static' qualifier.
11806 (main): Recognize `OPTION_VERSION'.
11807
16a88c49
FZ
118082009-11-15 Felix Zielcke <fzielcke@z-51.de>
11809
11810 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
11811 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
11812
a4158476
RM
118132009-11-14 Robert Millan <rmh.grub@aybabtu.com>
11814
11815 Fix help2man generation for mkisofs.
11816
11817 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
11818 (usage): Send output to stdout (rather than stderr).
11819
fc2208b0
RM
118202009-11-14 Robert Millan <rmh.grub@aybabtu.com>
11821
11822 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
11823 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
11824 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
11825 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
11826 (bin_SCRIPTS): Add `grub-mkfloppy'.
11827 (grub_mkfloppy_SOURCES): New variable.
11828
11829 * util/grub-mkrescue.in: New file.
11830 * util/i386/pc/grub-mkfloppy.in: New file.
11831
11832 * util/i386/coreboot/grub-mkrescue.in: Remove.
11833 * util/i386/pc/grub-mkrescue.in: Remove.
11834
8d0edf4a
RM
118352009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11836
11837 * include/grub/multiboot.h (struct grub_multiboot_header): Move
11838 from here ...
11839 * include/multiboot.h (struct multiboot_header): ... to here. Update
11840 all users.
11841 * include/grub/multiboot.h (struct grub_multiboot_info): Move
11842 from here ...
11843 * include/multiboot.h (struct multiboot_info): ... to here. Update
11844 all users.
11845 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
11846 from here ...
11847 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
11848 Update all users.
11849 * include/grub/multiboot.h (struct grub_mod_list): Move
11850 from here ...
11851 * include/multiboot.h (struct multiboot_mod_list): ... to here.
11852 Update all users.
11853
a73f5969
RM
118542009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11855
11856 * include/multiboot2.h (multiboot_word): Rename from this ...
11857 (multiboot2_word): ... to this. Update all users.
11858 (multiboot_header): Rename from this ...
11859 (multiboot2_header): ... to this. Update all users.
11860 (multiboot_tag_header): Rename from this ...
11861 (multiboot2_tag_header): ... to this. Update all users.
11862 (multiboot_tag_start): Rename from this ...
11863 (multiboot2_tag_start): ... to this. Update all users.
11864 (multiboot_tag_name): Rename from this ...
11865 (multiboot2_tag_name): ... to this. Update all users.
11866 (multiboot_tag_module): Rename from this ...
11867 (multiboot2_tag_module): ... to this. Update all users.
11868 (multiboot_tag_memory): Rename from this ...
11869 (multiboot2_tag_memory): ... to this. Update all users.
11870 (multiboot_tag_unused): Rename from this ...
11871 (multiboot2_tag_unused): ... to this. Update all users.
11872 (multiboot_tag_end): Rename from this ...
11873 (multiboot2_tag_end): ... to this. Update all users.
11874
1c8927f0
RM
118752009-11-13 Robert Millan <rmh.grub@aybabtu.com>
11876
11877 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
11878 this platform we should support Multiboot1 first.
11879
11880 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
11881 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
11882 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
11883
6e1e0d89
RM
118842009-11-12 Robert Millan <rmh.grub@aybabtu.com>
11885
11886 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
11887 of write calls (converting them to fwrite() if they aren't already).
11888 (get_torito_desc): Likewise.
11889 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
11890
7f2b34d8
RM
118912009-11-12 Robert Millan <rmh.grub@aybabtu.com>
11892
11893 * util/i386/pc/grub-install.in: Move from here ...
11894 * util/grub-install.in: ... to here. Update all users.
11895
c0ef3311
CW
118962009-11-11 Colin Watson <cjwatson@ubuntu.com>
11897
11898 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
11899
e1f240ff
RM
119002009-11-11 Robert Millan <rmh.grub@aybabtu.com>
11901
11902 Support for El Torito without floppy emulation.
11903
11904 * util/mkisofs/eltorito.c: Include `<errno.h>'.
11905 (init_boot_catalog): Improve error handling.
11906 (get_torito_desc): Don't use floppy emulation unless requested by
11907 user. Patch boot information table when requested via
11908 `-boot-info-table'.
11909 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
11910 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
11911 (use_boot_info_table): New variables.
11912 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
11913 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
11914 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
11915 `--eltorito-emul-floppy'.
11916 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
11917 and `OPTION_ELTORITO_EMUL_FLOPPY'.
11918 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
11919 (use_boot_info_table, get_731): New prototypes.
11920 * util/mkisofs/write.c (get_731): New function.
11921
af7d4de5
FZ
119222009-11-11 Felix Zielcke <fzielcke@z-51.de>
11923
11924 Fix the generation of the man page.
11925
11926 * util/pc/i386/grub-install.in: Source
11927 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
11928
2c55dbc0
RM
119292009-11-11 Robert Millan <rmh.grub@aybabtu.com>
11930
11931 Large file support for grub-mkisofs.
11932
11933 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
11934 * util/mkisofs/mkisofs.c (next_extent, last_extent)
11935 (session_start): Upgrade type to `uint64_t'. Update all users.
11936 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
11937 (struct directory_entry): Upgrade type of `starting_block' and
11938 `size' to `uint64_t'. Update all users.
11939 (struct deferred): Remove unused structure.
11940 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
11941 Update all users.
11942 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
11943 file is larger than `UINT32_MAX'.
11944 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
11945 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
11946 return value.
11947 (struct deferred_write): Upgrade type of `extent' and `size' to
11948 `uint64_t'. Update all users.
11949 (last_extent_written): Upgrade type to `uint64_t'. Update all
11950 users.
11951 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
11952 Update all users. Upgrade type of `remain' to `int64_t' and
11953 `use' to `size_t'. Use error() to handle fread() errors.
11954 (write_files): Rely on write_one_file() rather than calling
11955 xfwrite() directly.
11956
6a9cead5
FZ
119572009-11-09 Felix Zielcke <fzielcke@z-51.de>
11958
11959 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
11960
4825d790
RM
119612009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11962
11963 * util/mkisofs/fnmatch.c: Remove.
11964 * util/mkisofs/getopt1.c: Likewise.
11965 * util/mkisofs/getopt.c: Likewise.
11966 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
11967 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
11968 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
11969 `gnulib/getopt1.c' and `gnulib/getopt.c'.
11970 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
11971
11972 * configure.ac: Detect `mingw32msvc' host_os.
11973 Check for lstat(), getuid() and getgid().
11974
11975 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
11976 instances of `u_char' with `uint8_t'.
11977
11978 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
11979 [!HAVE_GETUID] (getuid): New function (stub).
11980 [!HAVE_GETGID] (getgid): Likewise.
11981 [!HAVE_LSTAT] (lstat): Likewise.
11982 [!S_IROTH] (S_IROTH): New macro (dummy).
11983 [!S_IRGRP] (S_IRGRP): Likewise.
11984
84b860d8
RM
119852009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11986
11987 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
11988 conditional expression).
11989
66e9b712
RM
119902009-11-09 Robert Millan <rmh.grub@aybabtu.com>
11991
11992 Import from Gnulib.
11993
11994 * gnulib/fnmatch.c: New file.
11995 * gnulib/fnmatch.h: Likewise.
11996 * gnulib/fnmatch_loop.c: Likewise.
11997 * gnulib/getopt.c: Likewise.
11998 * gnulib/getopt.h: Likewise.
11999 * gnulib/getopt1.c: Likewise.
12000 * gnulib/getopt_int.h: Likewise.
12001 * gnulib/gettext.h: Likewise.
12002
34f4a5b0
RM
120032009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12004
12005 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
12006 * normal/handler.c (read_handler_list): Likewise.
12007
ac451143
RM
120082009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12009
12010 Misc cleanup.
12011
12012 * kern/command.c (grub_register_command_prio): Use
12013 grub_zalloc() instead of explicitly zeroing data.
12014 * kern/list.c: Include `<grub/mm.h>'.
12015 (grub_named_list_find): Replace `0' with `NULL'.
12016 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
12017 (fs_module_list): Change type to `grub_named_list_t'. Update all
12018 users.
12019 * normal/dyncmd.c (read_command_list): Add space between function
12020 call and parenthesis.
12021 * normal/handler.c (read_handler_list): Likewise.
12022
4089b167
RM
120232009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12024
12025 * normal/auth.c (punishment_delay): Moved from here ...
12026 (grub_auth_strcmp): ... to here (inside function).
12027
325f5037
RM
120282009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12029
12030 * include/grub/list.h (struct grub_named_list): Remove `const'
12031 qualifier from `name'.
12032 (struct grub_prio_list): Likewise.
12033
7aea29a3
RM
120342009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12035
12036 * normal/auth.c: Include `<grub/time.h>'.
12037 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
12038
3fd6f044
RM
120392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12040
12041 * normal/auth.c (punishment_delay): New variable.
12042 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
12043 (grub_auth_check_authentication): Punish failed login attempts with
12044 an incremental (2^N) delay.
12045
a4cd68e4
RM
120462009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12047
12048 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
12049 path with $(srcdir).
12050
7ad12f43
VS
120512009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12052
12053 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
12054
c1129f03
RM
120552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12056
12057 * util/i386/coreboot/grub-mkrescue.in: New file.
12058 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
12059 variables.
12060
12061 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
12062 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
12063 * configure.ac: Add header and function checks to satisfy grub-mkisofs
12064 requirements.
12065 * util/mkisofs/defaults.h: New file.
12066 * util/mkisofs/eltorito.c: Likewise.
12067 * util/mkisofs/exclude.h: Likewise.
12068 * util/mkisofs/fnmatch.c: Likewise.
12069 * util/mkisofs/getopt.c: Likewise.
12070 * util/mkisofs/getopt1.c: Likewise.
12071 * util/mkisofs/hash.c: Likewise.
12072 * util/mkisofs/include/fctldefs.h: Likewise.
12073 * util/mkisofs/include/mconfig.h: Likewise.
12074 * util/mkisofs/include/prototyp.h: Likewise.
12075 * util/mkisofs/include/statdefs.h: Likewise.
12076 * util/mkisofs/iso9660.h: Likewise.
12077 * util/mkisofs/joliet.c: Likewise.
12078 * util/mkisofs/match.c: Likewise.
12079 * util/mkisofs/match.h: Likewise.
12080 * util/mkisofs/mkisofs.c: Likewise.
12081 * util/mkisofs/mkisofs.h: Likewise.
12082 * util/mkisofs/multi.c: Likewise.
12083 * util/mkisofs/name.c: Likewise.
12084 * util/mkisofs/rock.c: Likewise.
12085 * util/mkisofs/tree.c: Likewise.
12086 * util/mkisofs/write.c: Likewise.
12087
ec8bb77d
VS
120882009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
12091 being insecure.
12092
3716b12c
RM
120932009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12094
12095 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
12096 `grub-mkimage' (and use $0 when possible).
12097
b97b7b91
RM
120982009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12099
12100 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
12101 error message for excessively large memory map.
12102
04114812
RM
121032009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12104
12105 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
12106 executable bit.
12107
e4eb2373
RM
121082009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12109
12110 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
12111 message for coreboot users.
12112
c926e1d5 121132009-11-07 Robert Millan <rmh.grub@aybabtu.com>
12114
12115 Fix build with GNU gold.
12116
12117 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
12118 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
12119 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
12120 link addresses.
12121 * aclocal.m4: Likewise.
12122
86e5b1db 121232009-11-04 Felix Zielcke <fzielcke@z-51.de>
12124
12125 * configure.ac (AC_PREREQ): Bump to 2.59d.
12126 * INSTALL: Make it more clear when Autoconf and Ruby are
12127 needed and when to run `./autogen.sh'.
12128
246cd78f 121292009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12130
12131 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
12132 OSes.
12133
4f9dfb37 121342009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12135
12136 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
12137
b82bd5e1 121382009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12139
12140 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
12141 giving it to GNU Mach.
12142
ff1a9bca 121432009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12144
12145 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
12146 GNU partition number to get internal GRUB partition number.
12147
61697d9c 121482009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12149
12150 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
12151 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
12152
a50569e1 121532009-11-01 Robert Millan <rmh.grub@aybabtu.com>
12154
12155 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
12156 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
12157 case.
12158
5b153867 121592009-11-01 Felix Zielcke <fzielcke@z-51.de>
12160
12161 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
12162
d9e2cd70 121632009-10-30 Robert Millan <rmh.grub@aybabtu.com>
12164
12165 Fix build problem.
12166
12167 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
12168 `-isystem=$(srcdir)/include'.
12169
805111a4 121702009-10-30 Robert Millan <rmh.grub@aybabtu.com>
12171
12172 * util/i386/pc/grub-install.in: Remove hint that device.map should be
12173 checked (grub-install doesn't currently rely on it).
12174
fa6e945f 121752009-10-29 Robert Millan <rmh.grub@aybabtu.com>
12176
12177 Revert SVN r2660.
12178
12179 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
12180 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
12181 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
12182 * conf/i386-ieee1275.rmk: Likewise.
12183 * conf/i386-pc.rmk: Likewise.
12184 * conf/powerpc-ieee1275.rmk: Likewise.
12185 * conf/sparc64-ieee1275.rmk: Likewise.
12186 * conf/x86_64-efi.rmk: Likewise.
12187
cee15086 121882009-10-28 Robert Millan <rmh.grub@aybabtu.com>
12189
12190 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
12191
95b9239e 121922009-10-28 Robert Millan <rmh.grub@aybabtu.com>
12193
12194 * include/grub/misc.h: Stop checking for APPLE_CC.
12195
2ed19dfd 121962009-10-28 Robert Millan <rmh.grub@aybabtu.com>
12197
12198 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
12199 doesn't cause an infinite call loop.
12200
fdcdde19 122012009-10-28 Felix Zielcke <fzielcke@z-51.de>
12202
12203 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
12204 strings.
12205
cefabfe1 122062009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12207
12208 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
12209 variable.
12210 * Makefile.in: Likewise.
12211
ed96ab6d 122122009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12213
12214 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
12215
0579b753 122162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12217
12218 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
12219
478df409 122202009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12221
12222 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
12223
083d1679 122242009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12225
12226 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
12227 from here ...
12228 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
12229
5947ae32 122302009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12231
12232 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
12233 in $(MAKEINFO) invocation. This makes it clear in output that
12234 errors are being ignored.
12235
94180ff6 122362009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12237
12238 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
12239 from here ...
12240 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
12241 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
12242 * conf/i386-ieee1275.rmk: Likewise.
12243 * conf/i386-pc.rmk: Likewise.
12244 * conf/powerpc-ieee1275.rmk: Likewise.
12245 * conf/sparc64-ieee1275.rmk: Likewise.
12246 * conf/x86_64-efi.rmk: Likewise.
12247
9031b03a 122482009-10-26 Colin Watson <cjwatson@ubuntu.com>
12249
12250 * util/grub-editenv.c (main): If only a command is given, use
12251 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
12252 (usage): FILENAME is now optional and has a default.
12253
e4f6809b 122542009-10-26 Colin Watson <cjwatson@ubuntu.com>
12255
12256 Improve grub-mkconfig performance when there are several menu
12257 entries on a single filesystem.
12258
12259 * util/grub.d/10_linux.in (linux_entry): Cache the output of
12260 prepare_grub_to_access_device.
12261 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12262 * util/grub.d/30_os-prober.in: Likewise.
12263
67937d4d 122642009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12265
12266 * util/grub.d/10_freebsd.in: Remove.
12267 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
12268 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
12269
ee3756cc 122702009-10-26 Robert Millan <rmh.grub@aybabtu.com>
12271
5c35048e 12272 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 12273
4dea1c6f 122742009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12275
12276 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
12277 grub_util_error() call.
12278
042484d7 122792009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12280
12281 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
12282 `reserved_first_sector' member.
12283 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
12284 `reserved_first_sector' to 1.
12285 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
12286 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
12287 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
12288 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
12289 filesystems which begin at first sector.
12290 (options): New option --skip-fs-probe.
12291 (main): Handle --skip-fs-probe and pass it to setup().
12292
d64448a7 122932009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12294
12295 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
12296 (memset): Fix function prototype.
12297
508d42ec 122982009-10-25 Robert Millan <rmh.grub@aybabtu.com>
122992009-10-25 Vasily Averin <vvs@parallels.com>
12300
12301 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
12302 `dirent.direntlen == 0'.
12303
b240e30c 123042009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12305
12306 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
12307 `cpio'.
12308 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
12309
346e7fbe 123102009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12311
12312 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
12313 `__trampoline_setup' and `__ucmpdi2'.
12314 * include/grub/powerpc/libgcc.h: Only export symbols for functions
12315 that libgcc provides.
12316
cdb308b0 123172009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12318
12319 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
12320 * include/grub/sparc64/libgcc.h (memset): Likewise.
12321 * include/grub/misc.h (memset, memcmp): New function prototypes.
12322
fb26abc2 123232009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12324
12325 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
12326 `cpio'.
12327 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
12328
f6693890 123292009-10-25 Robert Millan <rmh.grub@aybabtu.com>
12330
12331 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
12332 * docs/grub.cfg: Compensate for recent change in multiboot
12333 loader (since 2009-08-14 it won't pass filename to payload).
12334 * util/grub.d/10_hurd.in: Likewise.
12335
0933cdc0 123362009-10-21 Felix Zielcke <fzielcke@z-51.de>
12337
12338 * config.guess: Update to latest version from config git
12339 repository.
12340 * config.sub: Likewise.
12341
3b2fe8c2 123422009-10-20 Robert Millan <rmh.grub@aybabtu.com>
12343
12344 Fix build on sparc64.
12345
12346 * configure.ac: Perform checks for libgcc symbols before
12347 adding `-nostdlib' to LDFLAGS.
12348
46695a62 123492009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 Let user specify OpenBSD root device.
12352
12353 * loader/i386/bsd.c (openbsd_root): New variable.
12354 (openbsd_opts): New option 'root'.
12355 (OPENBSD_ROOT_ARG): New macro.
12356 (grub_openbsd_boot): Use 'openbsd_root'.
12357 (grub_cmd_openbsd): Fill 'openbsd_root'.
12358
d2b6b7fc 123592009-10-16 Robert Millan <rmh.grub@aybabtu.com>
12360
12361 * NEWS: Misc adjustments.
12362
421bd7ac 123632009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12364
12365 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
12366
f1d29d87 123672009-10-16 Robert Millan <rmh.grub@aybabtu.com>
12368
12369 * configure.ac: Bump version to 1.97.
12370
6f3cd880 123712009-10-16 Colin Watson <cjwatson@ubuntu.com>
12372
12373 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
12374 -mno-3dnow on x86 architectures. Some toolchains enable these
12375 features by default, but they rely on registers that aren't enabled
12376 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
12377
035f7122 123782009-10-15 Robert Millan <rmh.grub@aybabtu.com>
12379
12380 Make entry text a bit more readable.
12381
12382 * util/grub.d/10_linux.in: Add `with' before `Linux'.
12383
44998e58 123842009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
12387
cd2851b3 123882009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
12391 operations.
12392
c6f3b249 123932009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12394
12395 * configure.ac: Add missing dollar.
12396
6b5886ba 123972009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
12398
12399 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
12400
12401 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
12402 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
12403 exports.
12404 * include/grub/sparc64/libgcc.h: Likewise. Use
12405 preprocessor conditionals.
12406
e9d66f6d 124072009-10-14 Robert Millan <rmh.grub@aybabtu.com>
12408
12409 * conf/common.rmk (grub-dumpbios): Remove rule.
12410 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
12411 * util/grub-dumpbios.in: Remove file.
12412
9155bc17 124132009-10-14 Robert Millan <rmh.grub@aybabtu.com>
12414
12415 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
12416 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
12417
12418 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
12419 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
12420 users.
12421
12422 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
12423 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
12424 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
12425 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
12426 users.
12427
bf7f7a18 124282009-10-12 Robert Millan <rmh.grub@aybabtu.com>
12429
12430 * term/tparm.c: Switch to GPLv3.
12431
86564c26 124322009-10-09 Robert Millan <rmh.grub@aybabtu.com>
12433
12434 * include/grub/i386/cpuid.h: Add header protection.
12435
5c936493 124362009-10-09 Robert Millan <rmh.grub@aybabtu.com>
12437
12438 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
12439
12440 * include/grub/i386/cpuid.h: New file.
12441 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
12442 (has_longmode): Rename to ...
12443 (grub_cpuid_has_longmode): ... this. Update all users. Remove
12444 `static' attribute.
12445 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
12446 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
12447 on a CPU that doesn't implement AMD64 instruction set.
12448
186e7cf2 124492009-10-06 Colin Watson <cjwatson@ubuntu.com>
12450
12451 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
12452 that version.texi is rebuilt on version number changes.
12453
83b65c4a 124542009-10-06 Colin Watson <cjwatson@ubuntu.com>
12455
12456 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
12457 Fixes bug #27602.
12458
d244281c 124592009-10-06 Colin Watson <cjwatson@ubuntu.com>
12460
12461 * util/i386/pc/grub-install.in: Source
12462 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
12463 that the --grub-probe option will work.
12464 * util/sparc64/ieee1275/grub-install.in: Likewise.
12465
da25306d 124662009-10-05 Robert Millan <rmh.grub@aybabtu.com>
12467
12468 * configure.ac: Bump version to 1.97~beta4.
12469
e8ee83c0 124702009-10-03 Robert Millan <rmh.grub@aybabtu.com>
12471
12472 Resync grub-mkdevicemap in x86_64-efi.
12473
12474 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
12475 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
12476 `util/devicemap.c'.
12477
50dcabcf 124782009-10-01 Colin Watson <cjwatson@ubuntu.com>
12479
12480 * util/grub-editenv.c (create_envblk_file): Write new block with a
12481 .new suffix and then rename it into place, to ensure atomic
12482 creation.
12483
0e51c3a7 124842009-09-28 Robert Millan <rmh.grub@aybabtu.com>
12485
12486 Do not automatically install headers.
12487
12488 * Makefile.in (include_DATA): Remove. Update all users.
12489
31299a95 124902009-09-26 Robert Millan <rmh.grub@aybabtu.com>
12491
12492 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
12493 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
12494
12495 * util/osdetect.lua: Remove.
12496 * script/lua/lauxlib.c: Likewise.
12497 * script/lua/ldebug.c: Likewise.
12498 * script/lua/grub_main.c: Likewise.
12499 * script/lua/lauxlib.h: Likewise.
12500 * script/lua/ldebug.h: Likewise.
12501 * script/lua/ltablib.c: Likewise.
12502 * script/lua/liolib.c: Likewise.
12503 * script/lua/lstrlib.c: Likewise.
12504 * script/lua/lualib.h: Likewise.
12505 * script/lua/ldo.c: Likewise.
12506 * script/lua/ldump.c: Likewise.
12507 * script/lua/ldo.h: Likewise.
12508 * script/lua/loslib.c: Likewise.
12509 * script/lua/lundump.c: Likewise.
12510 * script/lua/grub_lib.c: Likewise.
12511 * script/lua/ldblib.c: Likewise.
12512 * script/lua/lundump.h: Likewise.
12513 * script/lua/lmem.c: Likewise.
12514 * script/lua/grub_lib.h: Likewise.
12515 * script/lua/lmathlib.c: Likewise.
12516 * script/lua/lstate.c: Likewise.
12517 * script/lua/ltm.c: Likewise.
12518 * script/lua/lvm.c: Likewise.
12519 * script/lua/lmem.h: Likewise.
12520 * script/lua/lstate.h: Likewise.
12521 * script/lua/ltm.h: Likewise.
12522 * script/lua/ltable.c: Likewise.
12523 * script/lua/lvm.h: Likewise.
12524 * script/lua/llex.c: Likewise.
12525 * script/lua/lgc.c: Likewise.
12526 * script/lua/grub_lua.h: Likewise.
12527 * script/lua/loadlib.c: Likewise.
12528 * script/lua/lfunc.c: Likewise.
12529 * script/lua/lopcodes.c: Likewise.
12530 * script/lua/lparser.c: Likewise.
12531 * script/lua/ltable.h: Likewise.
12532 * script/lua/llex.h: Likewise.
12533 * script/lua/lgc.h: Likewise.
12534 * script/lua/lfunc.h: Likewise.
12535 * script/lua/lbaselib.c: Likewise.
12536 * script/lua/lopcodes.h: Likewise.
12537 * script/lua/lparser.h: Likewise.
12538 * script/lua/lzio.c: Likewise.
12539 * script/lua/linit.c: Likewise.
12540 * script/lua/lobject.c: Likewise.
12541 * script/lua/llimits.h: Likewise.
12542 * script/lua/lstring.c: Likewise.
12543 * script/lua/lzio.h: Likewise.
12544 * script/lua/lapi.c: Likewise.
12545 * script/lua/lcode.c: Likewise.
12546 * script/lua/lua.h: Likewise.
12547 * script/lua/lobject.h: Likewise.
12548 * script/lua/lstring.h: Likewise.
12549 * script/lua/lapi.h: Likewise.
12550 * script/lua/lcode.h: Likewise.
12551 * script/lua/luaconf.h: Likewise.
12552
cb8a2c38 125532009-09-26 Colin Watson <cjwatson@ubuntu.com>
12554
12555 * docs/grub.texi (Command-line and menu entry commands): Document
12556 date and echo commands.
12557
6b9b6276 125582009-09-24 Pavel Roskin <proski@gnu.org>
12559
12560 * include/grub/kernel.h (struct grub_module_header): Remove
12561 `grub_module_header_types'. Make `type' unsigned. Make `size'
12562 32-bit on all platforms.
12563 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
12564 8-bit field. Use grub_host_to_target32() for `size'.
12565 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
12566 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
12567 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
12568
4e5a02a7 125692009-09-24 Robert Millan <rmh.grub@aybabtu.com>
12570
12571 Fix "lost keypress" bug in at_keyboard.
12572
12573 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
12574 Checks for readyness of input buffer (without flushing it).
12575 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
12576 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
12577
c6dcedf6 125782009-09-24 Robert Millan <rmh.grub@aybabtu.com>
12579
12580 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
12581 size check within GRUB_MACHINE_PCBIOS section.
12582
74c958b1 125832009-09-24 Robert Millan <rmh.grub@aybabtu.com>
12584
12585 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
12586 return value.
12587 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
12588 KEYBOARD_ISREADY check.
12589 (grub_at_keyboard_checkkey): Rename to ...
12590 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
12591 Remove gratuitous cast.
12592
ff420223 125932009-09-23 Colin Watson <cjwatson@ubuntu.com>
12594
12595 * configure.ac: Call AC_PROG_MKDIR_P.
12596 * Makefile.in (docs/stamp-vti): Create docs directory. Create
12597 version.texi in $(builddir) rather than $(srcdir).
12598 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
12599 to makeinfo's @include search path.
12600
d96875df 126012009-09-23 Felix Zielcke <fzielcke@z-51.de>
12602
12603 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
12604
9b3f8365 126052009-09-23 Felix Zielcke <fzielcke@z-51.de>
12606
12607 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
12608 for `*.dpkg-new'.
12609
c44c90db 126102009-09-21 Colin Watson <cjwatson@ubuntu.com>
12611
12612 Build info documentation. Some code borrowed from Automake.
12613
12614 * configure.ac: Check for makeinfo.
12615 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
12616 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
12617 docs/version.texi.
12618 (MOSTLYCLEANFILES): Add vti.tmp.
12619 (docs/version.texi, docs/stamp-vti): Update automatically.
12620 (docs/grub.info): Build info documentation. Use --force and ignore
12621 errors for now.
12622 (all-local): Add $(INFOS).
12623 (install-local): Install info files.
12624 (uninstall): Uninstall info files.
12625 * docs/version.texi: Remove from revision control. This file is
12626 automatically generated on build now.
12627 * gendistlist.sh: Add `*.info'.
12628
e0b37bb5 126292009-09-21 Felix Zielcke <fzielcke@z-51.de>
12630
12631 * kern/term.c: Fix indentation.
12632
5a78865b 126332009-09-21 Felix Zielcke <fzielcke@z-51.de>
12634
12635 * util/hostdisk.c: Fix a comment.
12636
dace7e8a 126372009-09-20 Robert Millan <rmh.grub@aybabtu.com>
12638
12639 Fix regression introduced in r2539.
12640
12641 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
12642 to 0xA1.
12643
a83d079b 126442009-09-19 Colin Watson <cjwatson@ubuntu.com>
12645
12646 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 12647 os-prober. Under normal operation, it does not print anything to
12648 stderr; if it does, we need to debug it, and throwing away stderr
12649 makes that excessively difficult.
a83d079b 12650
be94a509 126512009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
12652
12653 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
12654
63f745e8 126552009-09-16 Robert Millan <rmh.grub@aybabtu.com>
12656
12657 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
12658 AC_LANG_PROGRAM from autoconf.
12659 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
12660 prototypes (fixes warning).
12661
12662 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
12663 `--disable-werror' was used.
12664
bbb2a70f 126652009-09-16 Robert Millan <rmh.grub@aybabtu.com>
12666
12667 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
12668 uninitialized `lastaddr'.
12669
77c24f1d 126702009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
12671
0f0b8c87 12672 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 12673
07197f23 126742009-09-14 Colin Watson <cjwatson@ubuntu.com>
12675
12676 * commands/test.c (get_fileinfo): Return immediately if
12677 grub_fs_probe fails.
12678
dabf1798 126792009-09-14 José Martínez <xosemp@gmail.com>
12680
12681 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
12682
d52109a7 126832009-09-14 Colin Watson <cjwatson@ubuntu.com>
12684
12685 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
12686 output.
12687
56532179 126882009-09-13 Robert Millan <rmh.grub@aybabtu.com>
12689
12690 * configure.ac: Remove --enable-grub-pe2elf. Only build
12691 grub-pe2elf when needed by the build system itself.
12692 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
12693
8ef070f5 126942009-09-12 Robert Millan <rmh.grub@aybabtu.com>
12695
12696 * configure.ac: Bump version to 1.97~beta3.
12697 * docs/version.texi: Likewise.
12698
61229557 126992009-09-12 Robert Millan <rmh.grub@aybabtu.com>
12700
12701 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
12702 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
12703 from here ...
12704 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
12705 (grub_linux_setup_video): ... to here (with some adjustments).
12706
5c9f8d84 127072009-09-12 Robert Millan <rmh.grub@aybabtu.com>
12708
12709 Fix memory corruption issue (spotted by Colin Watson).
12710
12711 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
12712 causing returned size to be stored in an incorrect memory location.
12713 Fix use of uninitialized value when storing the returned size.
12714
e8f5d6e9 127152009-09-12 Yves Blusseau <blusseau@zetam.org>
12716
12717 Change clean rules to properly remove files
12718
12719 * genmk.rb: add new clean rules
12720 * Makefile.in (clean): add the new targets
12721 (mostlyclean): likewise
12722
cda2a409 127232009-09-11 Colin Watson <cjwatson@ubuntu.com>
12724
12725 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
12726 to grub_uint64_t.
12727 * fs/ntfs.c (init_file): Understand 64-bit sizes for
12728 non-resident files.
12729
86695375 127302009-09-11 Colin Watson <cjwatson@ubuntu.com>
12731
12732 * configure.ac: Don't look for help2man when cross-compiling. Fixes
12733 part of bug #27349.
12734
8aa1541a 127352009-09-10 Felix Zielcke <fzielcke@z-51.de>
12736
12737 * util/grub-mkconfig.in: Make the created config mode 400 and
12738 print a warning if it fails.
12739
48d9bb0a 127402009-09-10 Robert Millan <rmh.grub@aybabtu.com>
12741
12742 * util/grub.d/40_custom.in: Ask user to type custom entries below
12743 comment, rather than below 'exec tail' line.
12744
3b0521be 127452009-09-10 Colin Watson <cjwatson@ubuntu.com>
12746
12747 * util/grub.d/40_custom.in: Make sure that the explanatory text is
12748 visible in grub.cfg.
12749
50051d55 127502009-09-10 Colin Watson <cjwatson@ubuntu.com>
12751
12752 * util/grub.d/40_custom.in: Make it a little clearer how to use this
12753 file.
12754
c0d34387 127552009-09-10 Felix Zielcke <fzielcke@z-51.de>
12756
12757 * docs/grub.cfg: Add an example menu entry for memtest86+.
12758
80a608f3 127592009-09-09 Felix Zielcke <fzielcke@z-51.de>
12760
a2094832 12761 * config.guess: Update to latest version from config git.
80a608f3 12762 * config.sub: Likewise.
12763
99423078 127642009-09-08 Colin Watson <cjwatson@ubuntu.com>
12765
12766 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
12767 unknown-command case. Fixes bug #27320.
12768
44454e4c 127692009-09-08 Felix Zielcke <fzielcke@z-51.de>
12770
12771 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
12772 `help' if the command exists.
12773
e30d87ad 127742009-09-06 Robert Millan <rmh.grub@aybabtu.com>
12775
12776 * INSTALL: Require GCC 4.1.3 or later.
12777
9a86f1ec 127782009-09-06 Yves Blusseau <blusseau@zetam.org>
12779
12780 * Makefile.in (RMKFILES): add i386-qemu.rmk
12781 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
12782 $(srcdir)/stamp-h.in
12783
7f26d466 127842009-09-05 Robert Millan <rmh.grub@aybabtu.com>
12785
12786 * util/grub-probe.c (probe): Comment out buggy codepath, which
12787 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
12788 should be re-enabled after 1.97.
12789
3a613259 127902009-09-05 Felix Zielcke <fzielcke@z-51.de>
12791
12792 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
12793 find searches for.
12794
197f76c7 127952009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
12796
12797 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
12798 unnecessary calls to grub_error.
12799
70ba68ce 128002009-09-04 Colin Watson <cjwatson@ubuntu.com>
12801
12802 * NEWS: Mention `keystatus' and Unicode fonts.
12803
4ff0d7a4 128042009-09-04 Robert Millan <rmh.grub@aybabtu.com>
12805
12806 * configure.ac: Bump version to 1.97~beta2.
12807 * docs/version.texi: Likewise.
12808
77c55a87 128092009-09-03 Colin Watson <cjwatson@ubuntu.com>
12810
12811 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
12812 containing unwind information in some cases where it previously did
12813 not. Use -fno-dwarf2-cfi-asm if available to restore the old
12814 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
12815 discussion.
12816
f79572cd 128172009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
12818
12819 Embedding loadenv module into grub-emu
12820
12821 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
12822 commands/loadenv.c
12823 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
12824 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
12825 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
12826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
12827 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
12828 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
12829
93a81088 128302009-09-03 Magnus Granberg <zorry@ume.nu>
12831
12832 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
12833 include -fPIE in the default specs.
12834 * configure.ac: Check if pie_possible is yes and add -fno-PIE
12835 to TARGET_CFLAGS.
12836
160034b2 128372009-09-03 Felix Zielcke <fzielcke@z-51.de>
12838
12839 * INSTALL: Note that GNU Bison 2.3 or later is required.
12840
087c07c4 128412009-09-03 Colin Watson <cjwatson@ubuntu.com>
12842
12843 * kern/i386/pc/startup.S: Fix typo.
12844
cbf978c0 128452009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
12846
12847 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
12848 according to GCS.
12849
128502009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 12851
12852 * docs/grub.texi (Naming convention): Describe one-based partition
12853 numbering.
12854 (Device syntax): Likewise.
12855 (File name syntax): Likewise.
12856 (Block list syntax): Likewise.
12857 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
12858 menu.lst.
12859 (File name syntax): Likewise.
12860 (Command-line and menu entry commands): Document acpi, blocklist,
12861 crc, export, insmod, keystatus, ls, set, and unset commands.
12862
f3e8cdfd 128632009-09-02 Colin Watson <cjwatson@ubuntu.com>
12864
12865 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
12866 to avoid implying that only one of --shift, --ctrl, or --alt may be
12867 used.
12868
c0bc232b 128692009-09-02 Colin Watson <cjwatson@ubuntu.com>
12870
12871 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
12872 rather than comparing against S_IFREG, which will almost never work.
12873
aa0f752d 128742009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
12877 (write_blocklists): Likewise.
12878
ecb3166a 128792009-09-01 Colin Watson <cjwatson@ubuntu.com>
12880
12881 * script/lua/grub_lua.h (fputs): Supply a format string as the first
12882 argument to grub_printf.
12883
c403a125 128842009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 12885
12886 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 12887 non GNU test.
31aba781 12888
b5e7312c 128892009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12890
12891 * kern/file.c (grub_file_read): Spelling fix
12892
fe00f472 128932009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
12894
12895 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
12896 loading of headers in some cases.
12897
cc55302e 128982009-08-30 Robert Millan <rmh.grub@aybabtu.com>
12899
12900 * configure.ac: Bump version to 1.97~beta1.
12901 * docs/version.texi: Likewise.
12902
5c90cdd2 129032009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 12904
12905 * include/grub/i386/xnu.h: Add license header.
12906 include grub/err.h explicitly.
12907
c90edae4 129082009-08-29 Robert Millan <rmh.grub@aybabtu.com>
12909
12910 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
12911 to `ufs' in the vfs.root.mountfrom kernel parameter.
12912
d8888b5c 129132009-08-29 Robert Millan <rmh.grub@aybabtu.com>
12914
12915 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
12916
12917 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
12918 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
12919
12920 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
12921 `ARRAY_SIZE' macro.
12922
6f07b921 129232009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12924
12925 * kern/file.c (grub_file_read): Check offset.
12926 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
12927 * fs/jfs.c (grub_jfs_read_file): Likewise.
12928 * fs/ntfs.c (grub_ntfs_read): Likewise.
12929 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
12930 * fs/minix.c (grub_minix_read_file): Correct offset check.
12931 * fs/ufs.c (grub_ufs_read_file): Likewise.
12932
b4f34077 129332009-08-28 Colin Watson <cjwatson@ubuntu.com>
12934
12935 * term/i386/pc/console.c (bios_data_area): Cast
12936 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
12937
e7c69859 129382009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
12939
12940 1-bit optimised blitters.
12941
12942 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
12943 prototype.
12944 (grub_video_fbblit_replace_24bit_1bit): Likewise.
12945 (grub_video_fbblit_replace_16bit_1bit): Likewise.
12946 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12947 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12948 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
12949 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
12950 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
12951 function.
12952 (grub_video_fbblit_replace_24bit_1bit): Likewise.
12953 (grub_video_fbblit_replace_16bit_1bit): Likewise.
12954 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12955 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12956 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
12957 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
12958 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
12959 when possible.
12960 * video/video.c (grub_video_get_blit_format): Return
12961 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
12962
a57da43f 129632009-08-28 Colin Watson <cjwatson@ubuntu.com>
12964
12965 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
12966 the first argument to grub_printf.
12967
4cbe67e5 129682009-08-28 Colin Watson <cjwatson@ubuntu.com>
129692009-08-28 Robert Millan <rmh.grub@aybabtu.com>
12970
12971 Add `getkeystatus' terminal method. Add a new `keystatus' command
12972 to query it.
12973
12974 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
12975 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
12976 modifier key bitmasks.
12977 (struct grub_term_input): Add `getkeystatus' member.
12978 (grub_getkeystatus): Add prototype.
12979 * kern/term.c (grub_getkeystatus): New function.
12980
12981 * include/grub/i386/pc/memory.h
12982 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
12983 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
12984 Data Area layout.
12985 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
12986 (grub_console_term_input): Set `getkeystatus' member.
12987 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
12988 constants.
12989 (grub_usb_keyboard_getreport): Likewise.
12990 (grub_usb_keyboard_checkkey): Likewise.
12991 (grub_usb_keyboard_getkeystatus): New function.
12992 (grub_usb_keyboard_term): Set `getkeystatus' member.
12993
12994 * commands/keystatus.c: New file.
12995 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
12996 (keystatus_mod_SOURCES): New variable.
12997 (keystatus_mod_CFLAGS): Likewise.
12998 (keystatus_mod_LDFLAGS): Likewise.
12999 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
13000 commands/keystatus.c.
13001 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13002 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13003 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13004 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13005 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13006 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 13007
6e2a9085 130082009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13009
13010 Split befs.mod and afs.mod into *_be.mod and *.mod
13011
13012 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
13013 (grub_fstest_SOURCES): Likewise.
13014 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
13015 (afs_be_mod_SOURCES): New variable.
13016 (afs_be_mod_CFLAGS): Likewise.
13017 (afs_be_mod_LDFLAGS): Likewise.
13018 (befs_be_mod_SOURCES): Likewise.
13019 (befs_be_mod_CFLAGS): Likewise.
13020 (befs_be_mod_LDFLAGS): Likewise.
13021 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
13022 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13023 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13024 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
13025 (grub_emu_SOURCES): Likewise.
13026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13027 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13028 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13029 * fs/afs_be.c: New file.
13030 * fs/befs_be.c: New file.
13031 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
13032 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
13033 (U16): Replaced with ...
13034 (grub_afs_to_cpu16): ...this. All users updated.
13035 (U32): Replaced with ...
13036 (grub_afs_to_cpu32): ...this. All users updated.
13037 (U64): Replaced with ...
13038 (grub_afs_to_cpu64): ...this. All users updated.
13039 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
13040 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 13041 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 13042 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
13043 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
13044 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
13045 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
13046 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
13047 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
13048 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
13049 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
13050
32a71655 130512009-08-26 Bean <bean123ch@gmail.com>
13052
13053 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
13054 64-bit number.
13055 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13056 (grub_xfs_inode_block): Change return type to grub_uint64_t.
13057 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
13058
552bf6c5 130592009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13060
13061 NetBSD memory map support.
13062
13063 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
13064 (grub_netbsd_btinfo_mmap_header): New structure.
13065 (grub_netbsd_btinfo_mmap_entry): Likewise.
13066 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
13067
1ae2078c 130682009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 Enable bsd.mod on coreboot.
13071
13072 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
13073 (bsd_mod_SOURCES): New variable.
13074 (bsd_mod_CFLAGS): Likewise.
13075 (bsd_mod_LDFLAGS): Likewise.
13076 (bsd_mod_ASFLAGS): Likewise.
13077 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
13078 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
13079
beefc598 130802009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13081
13082 Cleanup NetBSD root support.
13083
13084 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
13085 grub_bsd_get_device.
13086 Fix typo.
13087
3b76e68b 130882009-08-25 Felix Zielcke <fzielcke@z-51.de>
13089
13090 * util/grub.d/00_header.in: Move check for the video backend of
13091 gfxterm from here ...
13092 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
13093 a suitable video backend.
13094
aea664ea 130952009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 Fix breakage in grub-setup.
13098
13099 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
13100 "msdos_partition_map".
13101
ff747d50 131022009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13103
13104 Fix breakage in normal/auth.c.
13105
13106 * normal/auth.c (grub_iswordseparator): New function.
13107
e7e1f93f 131082009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13109
13110 Authentication support.
13111
13112 * commands/password.c: New file.
13113 * conf/common.rmk (pkglib_MODULES): Add password.mod.
13114 (password_mod_SOURCES): New variable.
13115 (password_mod_CFLAGS): Likewise.
13116 (password_mod_LDFLAGS): Likewise.
13117 (normal_mod_SOURCES): Add normal/auth.c.
13118 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
13119 normal/auth.c.
13120 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13121 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13122 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13123 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13124 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13125 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13126 * include/grub/auth.h: New file.
13127 * include/grub/err.h (grub_err_t): New enum value
13128 GRUB_ERR_ACCESS_DENIED.
13129 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
13130 'users'.
13131 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
13132 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
13133 users updated.
13134 * normal/auth.c: New file.
13135 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
13136 (grub_cmdline_run): Don't allow to go to command line without
13137 authentication.
13138 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
13139 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
13140 menuentry without superuser rights.
13141 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
13142 user isn't a superuser.
13143
70f1161d 131442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13145
13146 Save space by inlining misc.c functions.
13147
13148 * kern/misc.c (grub_iswordseparator): Made static.
13149 * kern/misc.c (grub_strcat): Moved from here ...
13150 * include/grub/misc.h (grub_strcat): ... here. Inlined.
13151 * kern/misc.c (grub_strncat): Moved from here ...
13152 * include/grub/misc.h (grub_strncat): ... here. Inlined.
13153 * kern/misc.c (grub_strcasecmp): Moved from here ...
13154 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
13155 * kern/misc.c (grub_strncasecmp): Moved from here ...
13156 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
13157 * kern/misc.c (grub_isalpha): Moved from here ...
13158 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
13159 * kern/misc.c (grub_isdigit): Moved from here ...
13160 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
13161 * kern/misc.c (grub_isgraph): Moved from here ...
13162 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
13163 * kern/misc.c (grub_tolower): Moved from here ...
13164 * include/grub/misc.h (grub_tolower): ... here. Inlined.
13165
48e40bff 131662009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * script/sh/function.c (grub_script_function_find): Cut error message
13169 not to flood terminal.
13170 * script/sh/lexer.c (grub_script_yylex): Remove command line length
13171 limit.
13172 * script/sh/script.c (grub_script_arg_add): Duplicate string.
13173
c385bfc3 131742009-08-24 Colin Watson <cjwatson@ubuntu.com>
13175
13176 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
13177 `report' grub_uint8_t *.
13178 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
13179 Use a 50-millisecond timeout rather than just repeating
13180 grub_usb_keyboard_getreport 50 times.
13181 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
13182
2d21e3e8 131832009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13184
13185 Rename *_partition_map to part_*
13186
13187 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
13188 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
13189 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
13190 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
13191 All users updated.
13192 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
13193 All users updated.
13194 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
13195 * util/grub-probe.c (probe_partmap): Don't transform partition name
13196 to get module name.
13197
dd103c4e 131982009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13199
13200 Fix OpenBSD and NetBSD support.
13201
13202 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
13203 memory address conflict.
13204 (OPENBSD_MMAP_ACPI): New definition.
13205 (OPENBSD_MMAP_NVS): Likewise.
13206 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
13207 and OPENBSD_MMAP_NVS.
13208 Add memory map terminator
13209 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 13210 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 13211
16c84d74 132122009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13213
13214 Let user specify NetBSD root device.
13215
13216 * loader/i386/bsd.c (netbsd_root): New variable.
13217 (netbsd_opts): New option 'root'.
13218 (NETBSD_ROOT_ARG): New macro.
13219 (grub_netbsd_boot): Use 'netbsd_root'.
13220 (grub_bsd_unload): Free 'netbsd_root'.
13221 (grub_cmd_netbsd): Fill 'netbsd_root'.
13222
adb29902 132232009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 Support for 64-bit NetBSD.
13226
13227 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
13228 point when booting non-FreeBSD.
13229
f5ae9f74 132302009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
13231
13232 Support --no-smp and --no-acpi for NetBSD.
13233
13234 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
13235 (NETBSD_AB_NOACPI): Likewise.
13236 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
13237 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
13238
de74f136 132392009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
13242 errors.
13243 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
13244 errors. Call grub_error when needed.
13245
e9a925da 132462009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13247
13248 * commands/search.c (search_fs): Try searching without autoload first.
13249 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
13250 filesystem module explicitly for faster booting.
13251
5174302b 132522009-08-23 Colin Watson <cjwatson@ubuntu.com>
13253
13254 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
13255
c8c80635 132562009-08-23 Colin Watson <cjwatson@ubuntu.com>
13257
13258 * util/grub.d/30_os-prober.in: Disable os-prober if
13259 `GRUB_DISABLE_OS_PROBER' was set to true.
13260
71acf5e5 132612009-08-23 Robert Millan <rmh.grub@aybabtu.com>
13262
13263 * partmap/pc.c: Rename to ...
13264 * partmap/msdos.c: ... this. Update all users.
13265 (grub_pc_partition_map): Rename to ...
13266 (grub_msdos_partition_map): ... this. Update all users.
13267
13268 * parttool/pcpart.c: Rename to ...
13269 * parttool/msdospart.c: ... this. Update all users.
13270
13271 * include/grub/pc_partition.h: Rename to ...
13272 * include/grub/msdos_partition.h: ... this. Update all users.
13273 (grub_pc_partition_bsd_entry): Rename to ...
13274 (grub_msdos_partition_bsd_entry): ... this. Update all users.
13275 (grub_pc_partition_disk_label): Rename to ...
13276 (grub_msdos_partition_disk_label): ... this. Update all users.
13277 (grub_pc_partition_entry): Rename to ...
13278 (grub_msdos_partition_entry): ... this. Update all users.
13279 (grub_pc_partition_mbr): Rename to ...
13280 (grub_msdos_partition_mbr): ... this. Update all users.
13281 (grub_pc_partition): Rename to ...
13282 (grub_msdos_partition): ... this. Update all users.
13283 (grub_pc_partition_is_empty): Rename to ...
13284 (grub_msdos_partition_is_empty): ... this. Update all users.
13285 (grub_pc_partition_is_extended): Rename to ...
13286 (grub_msdos_partition_is_extended): ... this. Update all users.
13287 (grub_pc_partition_is_bsd): Rename to ...
13288 (grub_msdos_partition_is_bsd): ... this. Update all users.
13289
13290 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
13291 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
13292 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
13293 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
13294 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
13295 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
13296 (gpt_mod_LDFLAGS): Rename to ...
13297 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
13298 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
13299 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
13300 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
13301 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
13302 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
13303 (part_gpt_mod_LDFLAGS): ... this.
13304 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
13305 `pcpart.mod' to `msdospart.mod'.
13306 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
13307 to ...
13308 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
13309 (msdospart_mod_LDFLAGS): ... this.
13310
c11fded5 133112009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13312
13313 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
13314 (openbsd_opts): Likewise.
13315 (netbsd_opts): Likewise.
13316 (freebsd_flags): Added 0 terminator.
13317 (openbsd_flags): Likewise.
13318 (netbsd_flags): Likewise.
13319 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
13320 (grub_cmd_freebsd): Transformed into extended command.
13321 (grub_cmd_openbsd): Likewise.
13322 (grub_cmd_netbsd): Likewise.
13323 (cmd_freebsd): Changed type to grub_extcmd_t.
13324 (cmd_openbsd): Likewise.
13325 (cmd_netbsd): Likewise.
13326 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
13327 grub_cmd_openbsd as extended commands.
13328 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
13329 cmd_netbsd and cmd_openbsd
13330
11d1c769 133312009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
13332
13333 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
13334
7a9094e5 133352009-08-21 Pavel Roskin <proski@gnu.org>
13336
5496c37e 13337 * Makefile.in (install-local): When checking if a file is in the
13338 build directory, use "test -e" to detect symlinks.
13339
7a9094e5 13340 * Makefile.in (install-local): Remove all files in
13341 $(DESTDIR)$(pkglibdir) before installing new files there.
13342
e53cea11 133432009-08-18 Felix Zielcke <fzielcke@z-51.de>
13344
13345 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
13346 grub-mkelfimage.
13347
9aced544 133482009-08-18 Felix Zielcke <fzielcke@z-51.de>
13349
13350 * util/grub-mkconfig.in: Don't use gfxterm by default if not
13351 explicitly specified by the user.
13352
b7da6bab 133532009-08-18 Pavel Roskin <proski@gnu.org>
13354
13355 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
13356 grub_uint8_t pointer for data.
13357 * include/grub/fbutil.h (struct grub_video_fbblit_info):
13358 Likewise.
13359 * video/fb/fbutil.c: Remove unnecessary casts.
13360
19f1b335 133612009-08-17 Michal Suchanek <hramrach@centrum.cz>
13362
13363 VBE cleanup.
13364
13365 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
13366 (grub_vbe_set_video_mode): Save active mode info
13367 only after setting the mode.
13368 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
13369 second argument.
13370
2f467aa9 133712009-08-17 Michal Suchanek <hramrach@centrum.cz>
13372
13373 Rename variables for clarity.
13374
13375 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
13376 (active_vbe_mode_info): ... this. All users updated.
13377 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
13378 All users updated.
13379 (initial_mode): Rename to ...
13380 (initial_vbe_mode): ... this. All users updated.
13381 (mode_in_use): Rename to ..
13382 (vbe_mode_in_use): ... this. All users updated.
13383 (mode_list): Rename to ..
13384 (vbe_mode_list): ... this. All users updated.
13385 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
13386 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
13387 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
13388 'mode_list_size' to 'vbe_mode_list_size'.
13389 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
13390 'best_mode_info' to 'best_vbe_mode_info' and
13391 'best_mode' to 'best_vbe_mode'
13392
6025fcd7 133932009-08-17 Michal Suchanek <hramrach@centrum.cz>
13394
13395 Remove duplicate grub_video_fb_get_video_ptr.
13396
13397 * include/grub/fbutil.h (get_data_ptr): Rename to ...
13398 (grub_video_fb_get_video_ptr): ... this.
13399 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
13400 * video/fb/fbutil.c: Add comment about addressing.
13401 (get_data_ptr): Rename to ...
13402 (grub_video_fb_get_video_ptr): ... this. All users updated.
13403 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
13404
cc8c6faf 134052009-08-17 Robert Millan <rmh.grub@aybabtu.com>
13406
13407 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
13408 grub_dprintf() that was just added.
13409
08aa61f0 134102009-08-17 Robert Millan <rmh.grub@aybabtu.com>
13411
13412 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
13413 (DEFAULT_VIDEO_MODE): Remove macros.
13414 (grub_linux_boot): Remove assumption that Linux has FB support,
13415 and use "text" as default video mode.
13416
7cef4f75 134172009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
13418
13419 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
13420 grub_dprintf.
13421 * fs/fat.c (grub_fat_read_data): Likewise.
13422
e1f39873 134232009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
13426 payload.
13427 (grub_module): Likewise.
13428
c166d79e 134292009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13430
13431 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
13432 mbi->cmdline but free playground.
13433
c60cee8e 134342009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 Handle group offset on UFS1.
13437
13438 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
13439 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
13440
c0d8b5d4 134412009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13442
13443 Split ufs.mod into ufs1.mod and ufs2.mod.
13444
13445 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
13446 (grub_fstest_SOURCES): Likewise.
13447 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
13448 (ufs_mod_SOURCES): Remove.
13449 (ufs_mod_CFLAGS): Likewise.
13450 (ufs_mod_LDFLAGS): Likewise.
13451 (ufs1_mod_SOURCES): New variable.
13452 (ufs1_mod_CFLAGS): Likewise.
13453 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 13454 (ufs2_mod_SOURCES): New variable.
13455 (ufs2_mod_CFLAGS): Likewise.
13456 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 13457 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
13458 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
13459 Likewise.
13460 (grub_emu_SOURCES): Likewise.
13461 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13462 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13463 (grub_setup_SOURCES): Likewise.
13464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13465 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
13466 (grub_setup_SOURCES): Likewise.
13467 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
13468 Likewise.
13469 * fs/ufs2.c: New file.
13470 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
13471
d3539132 134722009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 Framebuffer split.
13475
13476 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
13477 subsystem at the end.
13478 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
13479 (video_fb_mod_SOURCES): New variable.
13480 (video_fb_mod_CFLAGS): Likewise.
13481 (video_fb_mod_LDFLAGS): Likewise.
13482 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
13483 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
13484 * video/i386/pc/vbeblit.c: Moved from here ...
13485 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
13486 * video/i386/pc/vbefill.c: Moved from here ...
13487 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
13488 * video/i386/pc/vbeutil.c: Moved from here ...
13489 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
13490 * include/grub/i386/pc/vbeblit.h: Moved from here ...
13491 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
13492 * include/grub/i386/pc/vbefill.h: Moved from here ...
13493 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
13494 * include/grub/i386/pc/vbeutil.h: Moved from here ...
13495 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
13496 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
13497 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
13498 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
13499 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
13500 (grub_video_adapter): Added 'get_info_and_fini'.
13501 (grub_video_get_info_and_fini): New prototype.
13502 (grub_video_set_mode): make modestring const char *.
13503 * loader/i386/linux.c (grub_linux_setup_video): Use
13504 grub_video_get_info_and_fini.
13505 (grub_linux_boot): Move modesetting just before booting.
13506 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
13507 grub_video_get_info_and_fini.
13508 * video/i386/pc/vbe.c: Moved framebuffer part ...
13509 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
13510 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
13511 grub_video_fbstd_colors and grub_video_fb_set_palette.
13512 (grub_video_vbe_init): Clear 'framebuffer' variable and use
13513 grub_video_fb_init.
13514 (grub_video_vbe_fini): Use grub_video_fb_fini.
13515 (grub_video_vbe_setup): Use framebuffer.render_target instead of
13516 render_target and use grub_video_fb_set_active_render_target and
13517 grub_video_fb_set_palette.
13518 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
13519 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
13520 (grub_video_vbe_adapter): Use framebuffer.
13521 * video/video.c (grub_video_get_info_and_fini): New function.
13522 (grub_video_set_mode): Make modestring const char *.
13523 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
13524 values are already initialised.
13525
d404ee56 135262009-08-14 Pavel Roskin <proski@gnu.org>
13527
13528 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
13529 ABS and APPLE_CC.
13530 * boot/i386/pc/diskboot.S: Likewise.
13531 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
13532 sectors allow compilation on MacOSX.
13533 * conf/i386-pc.rmk: Enable unconditional compilation of
13534 lnxboot.img.
13535
9a10df16 135362009-08-13 Colin Watson <cjwatson@ubuntu.com>
13537
13538 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
13539 * util/grub.d/00_header.in: Enter interruptible sleep if
13540 GRUB_HIDDEN_TIMEOUT is set.
13541
be3c9ca7 135422009-08-13 Yves Blusseau <blusseau@zetam.org>
13543
13544 * include/grub/symbol.h: Add the LOCAL macro.
13545 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
13546 starting with "L_".
13547
1f9e557e 135482009-08-13 Pavel Roskin <proski@gnu.org>
13549
9ca62843 13550 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
13551 any modern compilers we support.
13552
1f9e557e 13553 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
13554 Use local labels starting with "L_" so that Apple assembler
13555 knows they are local.
13556
81623db6 135572009-08-10 Robert Millan <rmh.grub@aybabtu.com>
13558
13559 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
13560 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
13561 (bsd_kernel_types): ... this enum.
13562
13563 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
13564 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
13565 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
13566
13567 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
13568 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
13569 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
13570 messages.
13571
f5d35e7a 135722009-08-08 Robert Millan <rmh.grub@aybabtu.com>
13573
13574 * util/grub-dumpdevtree: Moved from here ...
13575 * util/i386/efi/grub-dumpdevtree: ... to here.
13576 (hexify): New function. Converts a string to its hex version.
13577 Generate hex versions of "efi" and "device-properties" by calling
13578 hexify() on the ASCII strings rather than by hardcoding numbers.
13579
d1e1d527 135802009-08-08 Robert Millan <rmh.grub@aybabtu.com>
13581
13582 * fs/jfs.c: Update copyright year.
13583
1ebbe064 135842009-08-08 Felix Zielcke <fzielcke@z-51.de>
13585
13586 * util/grub.d/00_header.in: Fix a comment.
13587 * util/grub.d/10_linux.in: Likewise.
13588 * util/grub.d/10_windows.in: Likewise.
13589 * util/grub.d/10_hurd.in: Likewise.
13590
a78c8d24 135912009-08-08 Felix Zielcke <fzielcke@z-51.de>
13592
13593 * util/grub-mkconfig.in: Allow the user to specify the used font
13594 with GRUB_FONT.
13595
29a6b9e8 135962009-08-08 Pavel Roskin <proski@gnu.org>
13597
b5f16cc4 13598 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
13599 available, xfs.mod needs it now.
13600
2f5cb827 13601 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
13602 the "g" modifier in sed when the intention is to strip something
13603 once. This fixes comparison of kernels with multiple dashes.
13604
29a6b9e8 13605 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
13606 on it. Add missing space before closing bracket. Fix
13607 misleading formatting.
13608
892a3d98 136092009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13610
13611 * docs/grub.texi: Major overhaul. Remove all sections that are
13612 specific to GRUB Legacy, or mostly composed of Legacy-specific
13613 information.
13614
ed94253f 136152009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13616
13617 * docs/version.texi: New file. Provides version information for
13618 grub.texi.
13619
126d6628 136202009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13621
13622 * docs/grub.texi: Update CVS information to SVN.
13623 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
13624
998b5aa9 136252009-08-07 Felix Zielcke <fzielcke@z-51.de>
13626
13627 * util/grub-mkconfig.in: Remove a wrong `fi'.
13628
818e094a 136292009-08-07 Felix Zielcke <fzielcke@z-51.de>
13630
13631 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
13632 (grub_jfs_uuid): New function.
13633 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
13634
b969c52f 136352009-08-07 Felix Zielcke <fzielcke@z-51.de>
13636
13637 * util/grub-mkconfig_lib.in (font_path): Move the functionality
13638 of it to ...
13639 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
13640 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
13641
7a4894cc 136422009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13643
13644 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
13645 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
13646 Update all users.
13647
13648 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
13649 not just "vmlinu[zx]".
13650 Moved from here ...
13651 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
13652 all users.
13653
13654 * util/grub.d/10_linux.in (find_latest): Moved from here ...
13655 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
13656 all users.
13657
4e2171f8 136582009-08-07 Robert Millan <rmh.grub@aybabtu.com>
13659
13660 * util/grub.d/10_freebsd.in: Use an absolute device path for
13661 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
13662
6dcfcb32 136632009-08-06 Felix Zielcke <fzielcke@z-51.de>
13664
13665 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
13666 handling of multiple abstraction modules.
13667
f56a8756 136682009-08-04 Robert Millan <rmh.grub@aybabtu.com>
13669
13670 Fix a bug resulting in black screen when loading Linux using a
13671 packed video mode.
13672
13673 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
13674 function.
13675
13676 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
13677 (grub_vbe_bios_getset_dac_palette_width): New function.
13678 (grub_vbe_bios_get_dac_palette_width)
13679 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
13680 grub_vbe_bios_getset_dac_palette_width()).
13681
13682 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
13683 check for return status.
13684 (grub_vbe_get_video_mode_info): When getting information for a packed
13685 mode (<= 8 bpp), obtain DAC palette width using
13686 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
13687 {red,green,blue}_mark_size.
13688
222671b2 136892009-08-04 Felix Zielcke <fzielcke@z-51.de>
13690
ecb1a6d9 13691 * commands/search.c (options): Fix help output to match actual code.
222671b2 13692
f84114f5 136932009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
13696 of homegrown code.
13697
bd288a20 136982009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 13699
13700 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
13701 on XFS or ReiserFS.
13702
8aab5e25 137032009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 Support Apple partition map with sector size different from 512 bytes.
13706
13707 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
13708 (apple_partition_map_iterate): Respect 'aheader.blocksize'
13709 and 'apart.partmap_size'.
13710
6ad6258a 137112009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
137122009-08-01 Robert Millan <rmh.grub@aybabtu.com>
13713
13714 Fix cpuid command.
13715
13716 * commands/i386/cpuid.c (options): New variable.
13717 (grub_cmd_cpuid): Return real error.
13718 (GRUB_MOD_INIT(cpuid)): Declare options.
13719
67459bc6 137202009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
13721
13722 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
13723 valid.
13724
fbc6ab54 137252009-07-31 Bean <bean123ch@gmail.com>
13726
13727 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
13728 log2_inode.
13729 (grub_fshelp_node): Move inode field to the end.
13730 (grub_xfs_data): Remove inode field.
13731 (grub_xfs_inode_block): Calculate inode size using sblock.
13732 (grub_xfs_inode_offset): Likewise.
13733 (grub_xfs_read_inode): Calculate inode size using sblock.
13734 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
13735 (grub_xfs_iterate_dir): Calculate inode size using sblock.
13736 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
13737 to match inode size.
13738 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
13739 not accessible when data is null.
13740 (grub_xfs_open): Likewise.
13741
f45d6cfc 137422009-07-31 Bean <bean123ch@gmail.com>
13743
13744 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
13745 Don't change pv->disk if it's already set.
13746
13747 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
13748 (grub_raid_register): ... here.
13749 (grub_raid_rescan): Removed.
13750
13751 * include/grub/raid.h (grub_raid_rescan): Removed.
13752
13753 * util/grub-fstest.c: Remove include file <grub/raid.h>.
13754 (fstest): Replace grub_raid_rescan with module fini function followed
13755 by init function.
13756
13757 * util/grub-probe.c: Add include file <grub/raid.h>.
13758 (probe_raid_level): New function.
13759 (probe): Detect abstraction by walking the disk device, support two
13760 level of abstraction (LVM on RAID) when detecting partition map.
13761
24443b5a 137622009-07-31 Pavel Roskin <proski@gnu.org>
13763
13764 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
13765 to grub_zalloc(), it was erroneous.
13766 Reported by Bean <bean123ch@gmail.com>
13767
a275d9e7 137682009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 13771 embedding zone, not only the first one.
a275d9e7 13772
56c5a47f 137732009-07-29 Joe Auricchio <jauricchio@gmail.com>
13774
13775 * term/gfxterm.c (clear_char): New function.
13776 (grub_virtual_screen_setup): Use clear_char.
13777 (scroll_up): Likewise.
13778 (grub_virtual_screen_cls): Likewise.
13779
67bb323a 137802009-07-29 Felix Zielcke <fzielcke@z-51.de>
13781
13782 * util/deviceiter.c (get_acceleraid_disk_name): New static
13783 function.
13784 (grub_util_iterate_devices): Handle Accelraid devices.
13785 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
13786
388a7c75 137872009-07-28 Robert Millan <rmh.grub@aybabtu.com>
13788
13789 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
13790 separator for the suggested gfxpayload string (';' collides with the
13791 parser and needs escaping).
13792
3bb7abcf 137932009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
13794
13795 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
13796 Clear direction flag before jumping to OS.
13797 (grub_multiboot2_real_boot): Likewise.
13798
2ddd36d7 137992009-07-28 Felix Zielcke <fzielcke@z-51.de>
13800
13801 * util/i386/pc/grub-install: Fix parsing of --disk-module
13802 option.
13803
c521b62b 138042009-07-28 Felix Zielcke <fzielcke@z-51.de>
13805
13806 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
13807 when embedding.
13808
880e0a0c 138092009-07-26 Felix Zielcke <fzielcke@z-51.de>
13810
13811 * util/grub-mkconfig.in (package_version): New variable.
13812 Use it do display the version.
13813
2366e356 138142009-07-25 Felix Zielcke <fzielcke@z-51.de>
13815
13816 * kern/file.c (grub_file_open): Revert to previous check with
13817 grub_errno.
13818
7ad8c80e 138192009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13820
13821 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
13822 from help line. It's out of sync with code.
13823
72b9658b 138242009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
13827 entries on failed boot.
13828
77435277 138292009-07-25 Felix Zielcke <fzielcke@z-51.de>
13830
13831 * kern/file.c (grub_file_open): Fix an error check.
13832
fcaa8b21 138332009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
13834
35d16c74 13835 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
13836 partition map couldn't be identified.
fcaa8b21 13837
48904cd1 138382009-07-23 Pavel Roskin <proski@gnu.org>
13839
ef3c317f 13840 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
13841 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
13842 case of little endian words becomes just an optimization.
13843 Respect const modifier.
ad8ea1f4 13844 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 13845
48904cd1 13846 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
13847 to avoid loss of upper bits if align is unsigned and shorter
13848 than addr.
13849
260c9a89 138502009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 UUID support for UFS
13853
13854 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
13855 (grub_ufs_uuid): New function.
13856 (grub_ufs_fs): add .uuid
13857
f76ce889 138582009-07-21 Pavel Roskin <proski@gnu.org>
13859
13860 * kern/dl.c (grub_dl_check_header): Make static.
13861
6a6cbcaf 138622009-07-21 Felix Zielcke <fzielcke@z-51.de>
13863
13864 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
13865 add drivemap for Vista. It breaks Windows 7.
13866
cffcddb2 138672009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
13870 128 bytes
13871
1ef44b80 138722009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 Add BFS support
13875
13876 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
13877 (grub_fstest_SOURCES): Likewise.
13878 (pkglib_MODULES): Add befs.mod.
13879 (befs_mod_SOURCES): New variable.
13880 (befs_mod_CFLAGS): Likewise.
13881 (befs_mod_LDFLAGS): Likewise.
13882 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13883 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13884 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13885 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13886 (grub_setup_SOURCES): Likewise.
13887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13888 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13889 (grub_setup_SOURCES): Likewise.
13890 * fs/befs.c: New file.
13891 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
13892 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
13893 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
13894 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
13895 (B_KEY_INDEX_ALIGN): New declaration.
13896 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
13897 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
13898 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
13899 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
13900 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
13901 (grub_afs_mount) [MODE_BFS]: Likewise.
13902 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
13903 (grub_afs_fs): Use GRUB_AFS_FSNAME
13904 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
13905 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
13906 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
13907 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
13908
4f253044 139092009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
13910
13911 * util/getroot.c (find_root_device): Add support for MacOSX.
13912 * util/hostdisk.c: Likewise.
13913
57a55913 139142009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13915
13916 * font/font.c (find_glyph): Check whether a font is present to avoid
13917 segmentation fault.
75421ca9 13918
139192009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 13920
13921 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
13922
e98cd0c2 139232009-07-20 Pavel Roskin <proski@gnu.org>
13924
13925 * configure.ac: Trim excessively wordy excuses.
13926
1d2d169a 139272009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13928
13929 Add symlink, mtime and label support to AtheFS.
13930
13931 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
13932 (grub_afs_iterate_dir): Handle symlinks.
13933 (grub_afs_open): Use grub_afs_read_symlink.
13934 (grub_afs_dir): Likewise.
13935 Pass mtime.
13936 (grub_afs_label): New function.
13937 (grub_afs_fs): Add grub_afs_label.
13938 (grub_afs_read_symlink): New function.
13939
186f3189 139402009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 Fix AtheFS support.
13943
13944 * fs/afs.c: Fix comments style.
13945 (grub_afs_blockrun): Declare as packed.
13946 (grub_afs_datastream): Likewise.
13947 (grub_afs_bnode): Likewise.
13948 (grub_afs_btree): Likewise.
13949 (grub_afs_sblock): Likewise.
13950 Declare `name' as char.
13951 (grub_afs_inode): Declare as packed.
13952 Change void *vnode to grub_uint32_t unused.
13953 (grub_afs_iterate_dir): Check that key_size is positive.
13954 (grub_afs_mount): Don't read superblock twice.
75421ca9 13955 (grub_afs_dir): Don't free node in case of error,
186f3189 13956 grub_fshelp_find_file already handles this.
13957 (grub_afs_open): Likewise.
13958
5680109e 139592009-07-19 Pavel Roskin <proski@gnu.org>
13960
13961 * Makefile.in: Remove LIBLZO and enable_lzo.
13962 * conf/i386-pc.rmk: Remove lzo support.
13963 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
13964 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
13965 support.
13966 * kern/i386/pc/lzo1x.S: Remove.
13967 * kern/i386/pc/startup.S: Remove lzo support.
13968 * util/i386/pc/grub-mkimage.c: Likewise.
13969
ac70fa32 139702009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
13973 * fs/xfs.c (grub_xfs_dir): Likewise.
13974 * fs/afs.c (grub_afs_dir): Likewise.
13975 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13976 (grub_iso9660_open): Likewise.
13977 * fs/jfs.c (grub_jfs_open): Likewise.
13978 * fs/ext2.c (grub_ext2_dir): Likewise.
13979 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
13980 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 13981
eab58da2 139822009-07-16 Pavel Roskin <proski@gnu.org>
13983
d2838156 13984 * configure.ac: Never add "-c" to CFLAGS.
13985
55c70904 13986 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
13987
43e6200c 13988 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
13989 grub_cv_cc_efiemu should be used.
13990
ce7a733d 13991 * configure.ac: Typo fixes.
13992
eab58da2 13993 * kern/mm.c (grub_zalloc): New function.
13994 (grub_debug_zalloc): Likewise.
13995 * include/grub/mm.h: Declare grub_zalloc() and
13996 grub_debug_zalloc().
13997 * util/misc.c (grub_zalloc): New function.
13998 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
13999 instead of grub_malloc(), remove unneeded initializations.
14000 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
14001 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
14002 * commands/parttool.c (grub_cmd_parttool): Likewise.
14003 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
14004 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
14005 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
14006 * disk/usbms.c (grub_usbms_finddevs): Likewise.
14007 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
14008 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
14009 (grub_cmd_efiemu_pnvram): Likewise.
14010 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
14011 * fs/iso9660.c (grub_iso9660_mount): Likewise.
14012 (grub_iso9660_iterate_dir): Likewise.
14013 * fs/jfs.c (grub_jfs_opendir): Likewise.
14014 * fs/ntfs.c (list_file): Likewise.
14015 (grub_ntfs_mount): Likewise.
14016 * kern/disk.c (grub_disk_open): Likewise.
14017 * kern/dl.c (grub_dl_load_core): Likewise.
14018 * kern/elf.c (grub_elf_file): Likewise.
14019 * kern/env.c (grub_env_context_open): Likewise.
14020 (grub_env_set): Likewise.
14021 (grub_env_set_data_slot): Likewise.
14022 * kern/file.c (grub_file_open): Likewise.
14023 * kern/fs.c (grub_fs_blocklist_open): Likewise.
14024 * loader/i386/multiboot.c (grub_module): Likewise.
14025 * loader/xnu.c (grub_xnu_create_key): Likewise.
14026 (grub_xnu_create_value): Likewise.
14027 * normal/main.c (grub_normal_add_menu_entry): Likewise.
14028 (read_config_file): Likewise.
14029 * normal/menu_entry.c (make_screen): Likewise.
14030 * partmap/sun.c (sun_partition_map_iterate): Likewise.
14031 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
14032 * script/sh/script.c (grub_script_parse): Likewise.
14033 * video/bitmap.c (grub_video_bitmap_create): Likewise.
14034 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
14035 * video/readers/png.c (grub_png_output_byte): Likewise.
14036 (grub_video_reader_png): Likewise.
14037
830afef7 140382009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 14039
14040 Enable all targets that can be built by default
14041
830afef7 14042 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 14043 grub-mkfont and grub-fstest if they can be built
14044
ee293aee 140452009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 Fix hang and segmentation fault in grub-emu-usb
14048
14049 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
14050 * util/usb.c (grub_libusb_devices): likewise
14051 (grub_libusb_init): rename to ...
14052 (GRUB_MOD_INIT (libusb)):...this
14053 (grub_libusb_fini): rename to ..
14054 (GRUB_MOD_FINI (libusb)):...this
14055 * disk/usbms.c (grub_usbms_transfer): fix retry logic
14056 * include/grub/disk.h (grub_raid_init): removed, it's useless
14057 (grub_raid_fini): likewise
14058 (grub_lvm_init): likewise
14059 (grub_lvm_fini): likewise
14060 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
14061 by grub_init_all
14062
94414221 140632009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14064
14065 Fix libusb
14066
14067 * Makefile.in (LIBUSB): new macro
14068 * genmk.rb (Utility/print_tail): new method
14069 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
14070 (top level): call util.print_tail at the end.
14071
59ade63d 140722009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 Make FreeBSD accept zpool.cache
14075
14076 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
14077 type is /boot/zfs/zpool.cache
14078
a58da8c7 140792009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14080
14081 Fix 64-bit efiemu
14082
14083 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
14084 correct wrong typedef
14085 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
14086
20591577 140872009-07-15 Pavel Roskin <proski@gnu.org>
14088
560ca572 14089 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
14090 * kern/disk.c (struct grub_disk_cache): Likewise.
14091
e8e8e4fd 14092 * commands/probe.c (options): Typo fix.
14093
fde24e10 14094 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
14095 Increase to 0x5a to accommodate FAT32. Adjust other offsets
14096 accordingly.
14097 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
14098
379c54c1 14099 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
14100 the end of "Error" to make the message more readable.
14101
7bd8f5bf 14102 * boot/i386/pc/boot.S (kernel_segment): Remove.
14103 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
14104 for destination.
14105
40b132c5 14106 * boot/i386/pc/boot.S (boot_version): Remove.
14107 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14108 Remove.
14109
20591577 14110 * include/grub/i386/pc/boot.h: Sort all offsets.
14111 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
14112 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
14113 * boot/i386/pc/boot.S: Assert location of every offset listed in
14114 include/grub/i386/pc/boot.h.
14115
2df32b2c 141162009-07-13 Pavel Roskin <proski@gnu.org>
14117
44b5d879 14118 * include/grub/i386/coreboot/machine.h: Rename
14119 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
14120 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
14121 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
14122
17dc3751 14123 * kern/dl.c: Force native word size to suppress warnings when
14124 compiling grub-emu.
14125
2df32b2c 14126 * kern/device.c (grub_device_iterate): Change struct part_ent to
14127 hold the name, not a pointer to it. Use one grub_malloc() per
14128 partition, not two. Free partition_name if grub_malloc() fails.
14129 Set ents to NULL only before grub_partition_iterate() is called.
14130
75c59f59 141312009-07-11 Bean <bean123ch@gmail.com>
14132
14133 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
14134 childname.
14135
0ae1bf88 141362009-07-10 Bean <bean123ch@gmail.com>
141372009-07-10 Robert Millan <rmh.grub@aybabtu.com>
14138
14139 * kern/ieee1275/openfw.c (grub_children_iterate)
14140 (grub_devalias_iterate): Fix size evaluation for property or path
14141 strings, which was broken since r2132.
14142
8279cade 141432009-07-07 Pavel Roskin <proski@gnu.org>
14144
7d8a52d3 14145 * commands/search.c (search_file): Merge into ...
14146 (search_fs): ... this. Accept search type as argument.
14147 (grub_cmd_search): Pass search type to search_fs().
14148
25f9a05a 14149 * include/grub/util/console.h: New file.
14150 * util/console.c: Use it instead of grub/machine/console.h.
14151 * util/grub-emu.c: Likewise.
14152
8279cade 14153 * lib/arg.c (find_long_option): Remove.
14154 (find_long): Add `len' argument, make `s' const char *.
14155 (grub_arg_parse): Parse long options in place, not in a
14156 temporary buffer.
14157
4a11b60f 141582009-07-06 Pavel Roskin <proski@gnu.org>
14159
99f68041 14160 * commands/search.c (search_fs): Fix potential NULL pointer
14161 dereference.
14162
4a11b60f 14163 * commands/search.c (search_fs): Replace QUID macro with quid_fn
14164 function pointer.
14165
e110f4de 141662009-07-06 Daniel Mierswa <impulze@impulze.org>
14167
14168 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
14169 comparison.
14170
46eeb6a2 141712009-07-05 Pavel Roskin <proski@gnu.org>
14172
bab74958 14173 * include/grub/i386/linux.h (struct linux_kernel_params):
14174 Restore padding3, it's still needed.
14175
46eeb6a2 14176 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
14177 FreeBSD.
14178 * util/osdetect.lua: Likewise.
14179
b4a1dc79 141802009-07-05 Bean <bean123ch@gmail.com>
14181
14182 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
14183
14184 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
14185 (grub_lua_getenv): Likewise.
14186 (grub_lua_setenv): Likewise.
14187 (save_errno): New function.
14188 (push_result): Likewise.
14189 (grub_lua_enum_device): Likewise.
14190 (grub_lua_enum_file): Likewise.
14191 (grub_lua_file_open): Likewise.
14192 (grub_lua_file_close): Likewise.
14193 (grub_lua_file_seek): Likewise.
14194 (grub_lua_file_read): Likewise.
14195 (grub_lua_file_getline): Likewise.
14196 (grub_lua_file_getsize): Likewise.
14197 (grub_lua_file_getpos): Likewise.
14198 (grub_lua_file_eof): Likewise.
14199 (grub_lua_file_exist): Likewise.
14200 (grub_lua_add_menu): Likewise.
14201
14202 * script/lua/grub_lua.h (isupper): New inline function.
14203 (islower): Likewise.
14204 (ispunct): Likewise.
14205 (isxdigit): Likewise.
14206 (strcspn): Change to normal function.
14207 (strpbkr): New function declaration.
14208 (memchr): Likewise.
14209
14210 * script/lua/grub_main.c (scan_str): New function.
14211 (strcspn): Likewise.
14212 (strpbrk): Likewise.
14213 (memchr): Likewise.
14214
14215 * script/lua/linit.c (lualibs): Enable the string library.
14216
14217 * util/osdetect.lua: New file.
14218
2da92295 142192009-07-04 Robert Millan <rmh.grub@aybabtu.com>
14220
14221 * include/grub/i386/linux.h (struct linux_kernel_params): Add
14222 `capabilities' member.
14223
b2582ec9 142242009-07-02 Pavel Roskin <proski@gnu.org>
14225
14226 * genparttoollist.sh: Add missing newline at the end.
14227
32622956 142282009-07-01 Pavel Roskin <proski@gnu.org>
14229
87a7339e 14230 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
14231
d23af54e 14232 * util/hostdisk.c (open_device): Remove `const' from
14233 `sysctl_size', as sysctlbyname() can change it (in this case it
14234 doesn't actually happen).
14235
c94b18a9 14236 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
14237 using signed long int constants.
14238
c6cd3ef0 14239 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
14240 constant to avoid a warning on FreeBSD.
14241
0df63420 14242 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
14243 where it's needed.
14244
999577f1 14245 * Makefile.in: Install include/grub/machine symlink.
14246
6f41557f 14247 * Makefile.in: When installing symlinks, use "cp -fR", which
14248 works on FreeBSD and MacOSX.
14249 From Yves Blusseau <cl7m42e02@sneakemail.com>
14250
c8d22988 14251 * kern/dl.c (grub_dl_resolve_symbol): Make static.
14252 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
14253
1b96e952 14254 * util/misc.c: Move grub_reboot() and grub_halt() ...
14255 * util/grub-emu.c: ... here. Make main_env static.
14256 * include/grub/util/misc.h: Remove main_env.
14257
2ef0084d 14258 * kern/mm.c: Use correct format to print size_t.
14259
32622956 14260 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
14261 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
14262 * kern/powerpc/dl.c: Likewise.
14263 * kern/sparc64/dl.c: Likewise.
14264 * kern/x86_64/dl.c: Likewise.
14265
3f7f0cd0 142662009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14267
14268 Fix grub-emu build on sparc64-ieee1275.
14269
75421ca9 14270 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 14271 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
14272
211d06b5 142732009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14274
14275 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
14276 (grub_reboot, grub_halt): New functions.
14277
14278 * util/i386/pc/misc.c: Delete. Update all users.
14279 * util/sparc64/ieee1275/misc.c: Likewise.
14280 * util/powerpc/ieee1275/misc.c: Likewise.
14281
aaf53e3c 142822009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14283
14284 * conf/i386.rmk (setjmp_mod_SOURCES)
14285 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
14286 * conf/common.rmk (setjmp_mod_SOURCES)
14287 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
14288 to use $(target_cpu).
14289 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
14290 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
14291 * conf/powerpc-ieee1275.rmk: Likewise.
14292 * conf/sparc64-ieee1275.rmk: Likewise.
14293
14294 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
14295 $(target_cpu) for kern/$(target_cpu)/dl.c.
14296 * conf/i386-efi.rmk: Likewise.
14297 * conf/i386-ieee1275.rmk: Likewise.
14298 * conf/x86_64-efi.rmk: Likewise.
14299 * conf/i386-coreboot.rmk: Likewise.
14300 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
14301 $(target_cpu) for kern/$(target_cpu)/dl.c and for
14302 kern/$(target_cpu)/cache.S.
14303 * conf/sparc64-ieee1275.rmk: Likewise.
14304
a337130b 143052009-07-01 Robert Millan <rmh.grub@aybabtu.com>
14306
14307 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
14308 type to `grub_uint8_t', and adjust `padding9' accordingly.
14309
c6fe4d53 143102009-06-29 Robert Millan <rmh.grub@aybabtu.com>
14311
b09db61d 14312 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
14313
c6fe4d53 14314 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
14315 assembly in final jump, using register constraints.
14316
b09db61d 14317 (grub_linux_boot): For text mode, initialize `have_vga' using
14318 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
14319
14320 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
14321 right before the final jump.
14322
14323 Set `video_mode' to 0x3.
14324
14325 Document initialization of `video_page', `video_mode' and
14326 `video_ega_bx'.
14327
28333ad0 143282009-06-29 Robert Millan <rmh.grub@aybabtu.com>
14329
14330 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
14331 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 14332 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 14333
02164e1b 143342009-06-29 Robert Millan <rmh.grub@aybabtu.com>
14335
14336 Fix build on Debian / sparc.
14337
14338 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
14339
18b6c557 143402009-06-28 Pavel Roskin <proski@gnu.org>
14341
85f2aab6 14342 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
14343 fix a warning.
14344
18b6c557 14345 * util/grub.d/10_linux.in: Match SUSE style initrd names.
14346
ad760f81 143472009-06-27 Robert Millan <rmh.grub@aybabtu.com>
14348
14349 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
14350 `err'.
14351
87a4623b 143522009-06-27 Robert Millan <rmh.grub@aybabtu.com>
14353
14354 Revert r2338.
14355
14356 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
14357 file can't be opened. grub_file_open() is already supposed to set
75421ca9 14358 grub_errno / grub_errmsg appropriately.
87a4623b 14359 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14360
8231fb77 143612009-06-27 Pavel Roskin <proski@gnu.org>
143622009-06-27 Robert Millan <rmh.grub@aybabtu.com>
14363
14364 * include/grub/dl.h: Include grub/elf.h.
14365 (struct grub_dl): Add symtab field.
14366 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
14367 GRUB_MODULES_MACHINE_READONLY.
14368 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
14369 of the header for read-only modules.
14370 (grub_dl_unload): Free mod->symtab for read-only modules.
14371 * kern/i386/dl.c: Use mod->symtab.
14372 * kern/powerpc/dl.c: Likewise.
14373 * kern/sparc64/dl.c: Likewise.
14374 * kern/x86_64/dl.c: Likewise.
14375
14376 * conf/i386-qemu.rmk: New file.
14377 * kern/i386/qemu/startup.S: Likewise.
14378 * kern/i386/qemu/mmap.c: Likewise.
14379 * boot/i386/qemu/boot.S: Likewise.
14380 * include/grub/i386/qemu/time.h: Likewise.
14381 * include/grub/i386/qemu/serial.h: Likewise.
14382 * include/grub/i386/qemu/kernel.h: Likewise.
14383 * include/grub/i386/qemu/console.h: Likewise.
14384 * include/grub/i386/qemu/boot.h: Likewise.
14385 * include/grub/i386/qemu/init.h: Likewise.
14386 * include/grub/i386/qemu/machine.h: Likewise.
14387 * include/grub/i386/qemu/loader.h: Likewise.
14388 * include/grub/i386/qemu/memory.h: Likewise.
14389
14390 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
14391 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
14392 [qemu] (pkglib_IMAGES): Add `boot.img'.
14393 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
14394 [qemu] (boot_img_FORMAT): New variables.
14395 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
14396 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
14397 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
14398 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
14399 [qemu] (kernel_img_FORMAT): New variables.
14400
14401 * configure.ac: Recognise `i386-qemu'.
14402
14403 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
14404 (for no compression).
14405 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
14406 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
14407 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
14408 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
14409 ifdefs).
14410
97fe384e 144112009-06-27 Pavel Roskin <proski@gnu.org>
14412
14413 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
14414 read.
14415 * efiemu/prepare32.c: Likewise.
14416 * efiemu/prepare64.c: Likewise.
14417
c402ab17 144182009-06-26 Pavel Roskin <proski@gnu.org>
14419
14420 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
14421 * include/grub/elf.h: Define symbols without "32" or "64" based
14422 on GRUB_TARGET_WORDSIZE.
14423 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
14424 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
14425 ELF definitions.
14426 * efiemu/loadcore64.c: Likewise.
14427 * loader/i386/bsd32.c: Likewise.
14428 * loader/i386/bsd64.c: Likewise.
14429 * kern/dl.c: Remove own ELF definitions.
14430 * util/i386/efi/grub-mkimage.c: Likewise.
14431
9bbdfd4d 144322009-06-23 Robert Millan <rmh.grub@aybabtu.com>
14433
14434 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
14435 segment 0x0 unconditionally, because the reference generated by
14436 GAS is an absolute address.
14437
a42ce6e9 144382009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14439
14440 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
14441 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
14442
c952cf92 144432009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14444
14445 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
14446 indexes. Check for -f explicitly.
cc3752ad 14447 (search_file): Improve error message.
14448 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 14449
132a0a59 144502009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14451
14452 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
14453 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
14454
387a140c 144552009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14456
14457 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
14458 * conf/i386-ieee1275.rmk: Likewise.
14459 * conf/i386-coreboot.rmk: Likewise.
14460
14461 * kern/i386/pc/startup.S (grub_stop): Remove function.
14462 * kern/i386/ieee1275/startup.S: Likewise.
14463 * kern/i386/coreboot/startup.S: Likewise.
14464 * kern/i386/misc.S (grub_stop): New function.
14465
41da9665 144662009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14467
14468 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
14469 * kern/i386/realmode.S (real_to_prot): ... to here.
14470
bf337234 144712009-06-22 Robert Millan <rmh.grub@aybabtu.com>
14472
14473 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
14474 with `kernel.img'.
14475 (kernel_elf_SOURCES): Rename to ...
14476 (kernel_img_SOURCES): ... this.
14477 (kernel_elf_HEADERS): Rename to ...
14478 (kernel_img_HEADERS): ... this. Update all users.
14479 (kernel_elf_ASFLAGS): Rename to ...
14480 (kernel_img_ASFLAGS): ... this.
14481 (kernel_elf_CFLAGS): Rename to ...
14482 (kernel_img_CFLAGS): ... this.
14483 (kernel_elf_LDFLAGS): Rename to ...
14484 (kernel_img_LDFLAGS): ... this.
14485 * conf/i386-coreboot.rmk: Likewise.
14486 * conf/powerpc-ieee1275.rmk: Likewise.
14487
14488 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
14489 with "kernel.img".
14490
f52196ff 144912009-06-21 Pavel Roskin <proski@gnu.org>
14492
c3cee413 14493 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
14494 to match nested functions.
14495 * loader/sparc64/ieee1275/linux.c: Likewise.
14496
f52196ff 14497 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
14498
58750afc 144992009-06-21 Robert Millan <rmh.grub@aybabtu.com>
14500
14501 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
14502 all i386 platforms.
14503
15355c7d 145042009-06-21 Robert Millan <rmh.grub@aybabtu.com>
14505
14506 Fix asm file handling on ELF, and remove workarounds.
14507
14508 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 14509 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 14510 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
14511 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
14512
3f3ec72b 145132009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
14514
14515 Load BSD ELF modules
14516
14517 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
14518 and loader/i386/bsd64.c
14519 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
14520 (FREEBSD_MODTYPE_ELF_MODULE): New definition
14521 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
14522 (grub_freebsd_load_elfmodule32): New declaration
14523 (grub_freebsd_load_elfmoduleobj64): Likewise
14524 (grub_freebsd_load_elf_meta32): Likewise
14525 (grub_freebsd_load_elf_meta64): Likewise
14526 (grub_freebsd_add_meta): Likewise
14527 (grub_freebsd_add_meta_module): Likewise
14528 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
14529 (grub_freebsd_add_meta_module): Likewise and move module-specific
14530 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
14531 (grub_cmd_freebsd): Add elf-kernel specific parts
14532 based on grub_freebsd_add_meta_module
14533 (grub_cmd_freebsd_module): Add type parsing moved from
14534 grub_freebsd_add_meta_module
14535 (grub_cmd_freebsd_module_elf): New function
14536 (cmd_freebsd_module_elf): New variable
14537 (GRUB_MOD_INIT): Register freebsd_module_elf
14538 * loader/i386/bsd32.c: New file
14539 * loader/i386/bsd64.c: Likewise
14540 * loader/i386/bsdXX.c: Likewise
14541 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
14542 (grub_elf64_load): Likewise
14543 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
14544 All users updated
14545 (grub_elf64_load_hook_t): Likewise
14546
0db15301 145472009-06-21 Colin Watson <cjwatson@ubuntu.com>
14548
14549 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
14550 variable.
14551 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
14552 don't write a menu entry for recovery mode.
14553
546796c1 145542009-06-20 Robert Millan <rmh.grub@aybabtu.com>
14555
14556 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
14557 after it's no longer needed.
14558
cd7310d5 145592009-06-20 Robert Millan <rmh.grub@aybabtu.com>
14560
14561 * include/grub/i386/loader.h (grub_linux_prot_size)
14562 (grub_linux_tmp_addr, grub_linux_real_addr)
14563 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
14564 GRUB_MACHINE_PCBIOS.
14565 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
14566 common grub_util_info() call to ...
14567 (generate_image): ... here.
14568 Fix use of uninitialized memory, comparison of signed with
14569 unsigned integers and memory leak.
14570 Remove bogus module address message.
14571
ab32d3b5 145722009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
14573
14574 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
14575 grub_raid_register
14576 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
14577
024ef597 145782009-06-19 Pavel Roskin <proski@gnu.org>
14579
14580 * configure.ac: Remove stray AC_MSG_CHECKING.
14581
3ac72b51 145822009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
14583
14584 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 14585
e14cd814 145862009-06-18 Pavel Roskin <proski@gnu.org>
14587
14588 * conf/common.rmk: Add fs_file.mod.
14589 * disk/fs_file.c: New file.
14590 * include/grub/disk.h (enum grub_disk_dev_id): Add
14591 GRUB_DISK_DEVICE_FILE_ID.
14592
26586d98 145932009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 Fix build with Apple's toolchain. Part 2
14596
14597 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
14598 a fake start
14599
26de2bcd 146002009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
14601
14602 Fix build with Apple's toolchain. Part 1
14603
14604 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
14605 for long calls
14606 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 14607 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 14608 Apple's toolchain
14609
09b3490b 146102009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
14611
14612 Fix warnings
14613
14614 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
14615 (decomp_block): initialize ch
14616 use grub_memcpy instead of memcpy
14617
c22a006a 146182009-06-17 Pavel Roskin <proski@gnu.org>
14619
d3638678 14620 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
14621 version, use declarations needed to use vga_text as the startup
14622 console.
14623
c22a006a 14624 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
14625 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
14626 the kernel.
14627 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
14628 and grub_at_keyboard_fini(), it's done on module load and
14629 unload.
14630
05b129e0 146312009-06-17 Felix Zielcke <fzielcke@z-51.de>
14632
14633 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
14634 file can't be found.
14635 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14636
cf24ed9e 146372009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
14638
14639 Fix newline handling
14640
14641 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 14642 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 14643 (grub_script_yylex): don't segfault on unterminated script
14644 newline terminates command and variable
14645
74aa8e4b 146462009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
14647
14648 avoid double grub_adjust_range call. Bug reported by David Simner
14649
14650 * kern/disk.c (grub_disk_write): change to raw disk access before
14651 calling disk_read
14652
1bd265f3 146532009-06-17 Colin Watson <cjwatson@ubuntu.com>
14654
14655 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
14656 spaces, for the benefit of help2man.
14657 * util/i386/efi/grub-mkimage.c (usage): Likewise.
14658
a2d08c06 146592009-06-16 Pavel Roskin <proski@gnu.org>
14660
14661 * kern/i386/halt.c: Include grub/machine/init.h.
14662 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
14663
b97bcb19 146642009-06-16 Felix Zielcke <fzielcke@z-51.de>
14665
14666 * util/grub.d/30_os-prober.in: Use ${root} in the generated
14667 drivemap menuentry.
14668
0644f96c 146692009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
14670
14671 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
14672 `echo' command.
14673
3ef17a2e 146742009-06-16 Pavel Roskin <proski@gnu.org>
14675
14676 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
14677 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
14678 save %dx, we only need %dl and we never change it.
14679 * boot/i386/pc/cdboot.S: Don't set the root drive.
14680 * boot/i386/pc/pxeboot.S: Likewise.
14681 * include/grub/i386/pc/boot.h: Remove
14682 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
14683 GRUB_BOOT_MACHINE_DRIVE_CHECK.
14684 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
14685 * kern/i386/pc/init.c (make_install_device): Remove references
14686 to grub_root_drive.
14687 * kern/i386/pc/startup.S: Likewise.
14688 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
14689
693fe637 146902009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
14691
14692 xnu_uuid command
14693
14694 * commands/xnu_uuid.c: new file
14695 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
14696 (xnu_uuid_mod_SOURCES): new variable
14697 (xnu_uuid_mod_CFLAGS): likewise
14698 (xnu_uuid_mod_LDFLAGS): likewise
14699 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
14700 * conf/i386-ieee1275.rmk: likewise
14701 * conf/i386-pc.rmk: likewise
14702 * conf/powerpc-ieee1275.rmk: likewise
14703 * conf/sparc64-ieee1275.rmk: likewise
14704 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
14705
c9da87d0 147062009-06-16 Pavel Roskin <proski@gnu.org>
14707
14708 * configure.ac: Avoid '==' in test command, it's not portable.
14709
9c6f4596 147102009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
14711
14712 Probe command
14713
14714 * commands/probe.c: new file
14715 * conf/common.rmk (pkglib_MODULES): add probe.mod
14716 (probe_mod_SOURCES): new variable
14717 (probe_mod_CFLAGS): likewise
14718 (probe_mod_LDFLAGS): likewise
14719 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
14720 * conf/i386-ieee1275.rmk: likewise
14721 * conf/i386-pc.rmk: likewise
14722 * conf/powerpc-ieee1275.rmk: likewise
14723 * conf/sparc64-ieee1275.rmk: likewise
14724
70b7f9fd 147252009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 Fix handling of string like \"hello\" and "a
14728 b"
14729
14730 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
14731 (grub_script_yylex): fix parsing of quoting, escaping and newline
14732
71c79a6b 147332009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
14734
dd74360c 14735 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 14736 handling
dd74360c 14737
0644f96c 147382009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 14739
14740 * util/grub-mkconfig.in: Fix parsing of --output option.
14741
e40893c3 147422009-06-12 Pavel Roskin <proski@gnu.org>
14743
14744 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
14745 genmk.rb don't need to be generated or installed.
14746
3a1acfe2 147472009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
14748
14749 * commands/i386/pc/drivemap_int13h.S: add more comments
14750
3a4575d4 147512009-06-11 Pavel Roskin <proski@gnu.org>
14752
0658e928 14753 * Makefile.in (uninstall): Uninstall manuals.
14754
ca0388f0 14755 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
14756 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
14757 and update-grub_lib in two places.
14758 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
14759
e3b27c39 14760 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
14761 a compiler warning.
14762
3a4575d4 14763 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
14764 `entry_lo' to fix variable shadowing.
14765
af1f4f55 147662009-06-11 Christian Franke <franke@computer.org>
14767
14768 * kern/misc.c (__enable_execute_stack): Add missing return type
14769 to prevent gcc warning.
14770
5225e649 147712009-06-11 Felix Zielcke <fzielcke@z-51.de>
14772
14773 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
14774
7d83bd47 147752009-06-11 Pavel Roskin <proski@gnu.org>
14776
c1cb63ba 14777 * Makefile.in: Don't rely on any scripts being executable.
14778 Always use $(SHELL) to run shell scripts.
14779
7d83bd47 14780 * configure.ac: Always define ___main if using -nostdlib. This
14781 fixes tests on Cygwin.
14782
948f48e7 147832009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
14784
14785 UDF fix
14786
7d83bd47 14787 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 14788 is in bytes and not in blocks
7d83bd47 14789
8ada9bc1 147902009-06-11 Pavel Roskin <proski@gnu.org>
14791
14792 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
14793 warning.
14794
25ad2323 147952009-06-11 Felix Zielcke <fzielcke@z-51.de>
14796
14797 * util/grub.d/30_os-prober.in: Fix a comment. Source
14798 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
14799 to set the root device. Place drivemap command in the generated
14800 chain entry.
14801
e65acb0c 148022009-06-11 Pavel Roskin <proski@gnu.org>
14803
14804 * configure.ac: Remove host_m32. Issues with 64-bit utilities
14805 have long been resolved.
14806
f285fe2d 148072009-06-11 Colin Watson <cjwatson@ubuntu.com>
14808
bd47b0b5 14809 * util/grub.d/10_linux.in: Capitalise "Linux".
14810
f285fe2d 14811 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
14812
a0c62e4e 148132009-06-11 Pavel Roskin <proski@gnu.org>
14814
b6783cb2 14815 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
14816 fix a gcc warning and ensure that the function won't ever exit.
14817
dde032e8 14818 * kern/i386/ieee1275/init.c: Add missing prototype for
14819 grub_stop_floppy().
14820
22cd079d 14821 * loader/ieee1275/multiboot2.c [__i386__]: Include
14822 grub/cpu/multiboot.h.
14823
a0c62e4e 14824 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
14825 casts to short - they are not portable and cause warnings. Fix
14826 use of uninitialized values in input_buf. Use ARRAY_SIZE.
14827
63963d17 148282009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
14829
14830 Drivemap fixes
14831
14832 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
14833 new function
14834 (grub_get_root_biosnumber_saved): new variable
14835 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
14836 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 14837 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 14838 %dx after the call if necessary
14839 * conf/common.rmk (pkglib_MODULES): remove boot.mod
14840 (boot_mod_SOURCES): remove
14841 (boot_mod_CFLAGS): remove
14842 (boot_mod_LDFLAGS): remove
14843 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
14844 (boot_mod_SOURCES): new variable
14845 (boot_mod_CFLAGS): likewise
14846 (boot_mod_LDFLAGS): likewise
14847 * conf/i386-efi.rmk: likewise
14848 * conf/i386-ieee1275.rmk: likewise
14849 * conf/i386-pc.rmk: likewise
14850 * conf/powerpc-ieee1275.rmk: likewise
14851 * conf/sparc64-ieee1275.rmk: likewise
14852 * conf/x86_64-efi.rmk: likewise
14853 * include/grub/i386/pc/biosnum.h: new file
14854 * lib/i386/pc/biosnum.c: likewise
14855 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
14856 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
14857 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 14858
33abf7ae 148592009-06-10 Pavel Roskin <proski@gnu.org>
14860
5ac35b35 14861 * io/gzio.c (test_header): Don't reuse one buffer for all data.
14862 Use separate variables. Read only the file size at the end, but
14863 not the checksum that we don't use.
14864
5c5215d5 14865 * kern/file.c (grub_file_read): Use void pointer for the buffer.
14866 Adjust all callers.
14867
27d5fef7 14868 * kern/ieee1275/openfw.c: Remove libc includes.
14869 * kern/ieee1275/cmain.c: Likewise.
14870 * include/grub/ieee1275/ieee1275.h: Likewise.
14871
33abf7ae 14872 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
14873 compiler warnings.
14874
19d50c2b 148752009-06-10 Felix Zielcke <fzielcke@z-51.de>
14876
14877 * Makefile.in: Remove all trailing whitespace.
14878 * conf/i386-pc.rmk: Likewise.
14879 * conf/powerpc-ieee1275.rmk: Likewise.
14880 * conf/sparc64-ieee1275.rmk: Likewise.
14881 * docs/grub.texi: Likewise.
14882 * docs/texinfo.tex: Likewise.
14883 * disk/fs_uuid.c: Likewise.
14884 * disk/lvm.c: Likewise.
14885 * disk/scsi.c: Likewise.
14886 * disk/ata.c: Likewise.
14887 * disk/ieee1275/ofdisk.c: Likewise.
14888 * disk/i386/pc/biosdisk.c: Likewise.
14889 * disk/host.c: Likewise.
14890 * disk/raid.c: Likewise.
14891 * disk/efi/efidisk.c: Likewise.
14892 * disk/usbms.c: Likewise.
14893 * disk/memdisk.c: Likewise.
14894 * disk/loopback.c: Likewise.
14895 * kern/powerpc/dl.c: Likewise.
14896 * kern/device.c: Likewise.
14897 * kern/dl.c: Likewise.
14898 * kern/sparc64/dl.c: Likewise.
14899 * kern/ieee1275/ieee1275.c: Likewise.
14900 * kern/term.c: Likewise.
14901 * kern/fs.c: Likewise.
14902 * kern/i386/dl.c: Likewise.
14903 * kern/i386/pc/startup.S: Likewise.
14904 * kern/i386/pc/init.c: Likewise.
14905 * kern/i386/pc/mmap.c: Likewise.
14906 * kern/i386/pc/lzo1x.S: Likewise.
14907 * kern/i386/ieee1275/init.c: Likewise.
14908 * kern/i386/realmode.S: Likewise.
14909 * kern/i386/tsc.c: Likewise.
14910 * kern/partition.c: Likewise.
14911 * kern/corecmd.c: Likewise.
14912 * kern/file.c: Likewise.
14913 * kern/efi/efi.c: Likewise.
14914 * kern/efi/init.c: Likewise.
14915 * kern/efi/mm.c: Likewise.
14916 * kern/main.c: Likewise.
14917 * kern/err.c: Likewise.
14918 * kern/env.c: Likewise.
14919 * kern/disk.c: Likewise.
14920 * kern/generic/millisleep.c: Likewise.
14921 * kern/generic/rtc_get_time_ms.c: Likewise.
14922 * kern/misc.c: Likewise.
14923 * kern/parser.c: Likewise.
14924 * genmk.rb: Likewise.
14925 * configure.ac: Likewise.
14926 * boot/i386/pc/diskboot.S: Likewise.
14927 * boot/i386/pc/pxeboot.S: Likewise.
14928 * boot/i386/pc/boot.S: Likewise.
14929 * boot/i386/pc/lnxboot.S: Likewise.
14930 * boot/i386/pc/cdboot.S: Likewise.
14931 * parttool/pcpart.c: Likewise.
14932 * video/readers/tga.c: Likewise.
14933 * video/video.c: Likewise.
14934 * video/bitmap.c: Likewise.
14935 * lib/envblk.c: Likewise.
14936 * lib/i386/setjmp.S: Likewise.
14937 * fs/xfs.c: Likewise.
14938 * fs/afs.c: Likewise.
14939 * fs/fat.c: Likewise.
14940 * fs/ntfs.c: Likewise.
14941 * fs/udf.c: Likewise.
14942 * fs/affs.c: Likewise.
14943 * fs/iso9660.c: Likewise.
14944 * fs/hfs.c: Likewise.
14945 * fs/fshelp.c: Likewise.
14946 * fs/ext2.c: Likewise.
14947 * fs/jfs.c: Likewise.
14948 * fs/reiserfs.c: Likewise.
14949 * fs/hfsplus.c: Likewise.
14950 * fs/minix.c: Likewise.
14951 * fs/cpio.c: Likewise.
14952 * fs/sfs.c: Likewise.
14953 * fs/ufs.c: Likewise.
14954 * efiemu/prepare.c: Likewise.
14955 * efiemu/loadcore_common.c: Likewise.
14956 * efiemu/runtime/efiemu.sh: Likewise.
14957 * efiemu/runtime/efiemu.S: Likewise.
14958 * efiemu/runtime/efiemu.c: Likewise.
14959 * efiemu/pnvram.c: Likewise.
14960 * efiemu/main.c: Likewise.
14961 * efiemu/i386/pc/cfgtables.c: Likewise.
14962 * efiemu/i386/loadcore64.c: Likewise.
14963 * efiemu/i386/loadcore32.c: Likewise.
14964 * efiemu/loadcore.c: Likewise.
14965 * efiemu/symbols.c: Likewise.
14966 * efiemu/mm.c: Likewise.
14967 * include/grub/autoefi.h: Likewise.
14968 * include/grub/datetime.h: Likewise.
14969 * include/grub/term.h: Likewise.
14970 * include/grub/hfs.h: Likewise.
14971 * include/grub/lvm.h: Likewise.
14972 * include/grub/i386/tsc.h: Likewise.
14973 * include/grub/i386/linux.h: Likewise.
14974 * include/grub/i386/xnu.h: Likewise.
14975 * include/grub/i386/efiemu.h: Likewise.
14976 * include/grub/i386/pc/biosdisk.h: Likewise.
14977 * include/grub/i386/pc/memory.h: Likewise.
14978 * include/grub/i386/pc/vbe.h: Likewise.
14979 * include/grub/parttool.h: Likewise.
14980 * include/grub/video.h: Likewise.
14981 * include/grub/memory.h: Likewise.
14982 * include/grub/fs.h: Likewise.
14983 * include/grub/partition.h: Likewise.
14984 * include/grub/xnu.h: Likewise.
14985 * include/grub/efi/api.h: Likewise.
14986 * include/grub/efi/pe32.h: Likewise.
14987 * include/grub/efi/memory.h: Likewise.
14988 * include/grub/multiboot.h: Likewise.
14989 * include/grub/usbdesc.h: Likewise.
14990 * include/grub/multiboot2.h: Likewise.
14991 * include/grub/acpi.h: Likewise.
14992 * include/grub/efiemu/efiemu.h: Likewise.
14993 * include/grub/disk.h: Likewise.
14994 * include/grub/ieee1275/ieee1275.h: Likewise.
14995 * include/grub/net.h: Likewise.
14996 * include/grub/machoload.h: Likewise.
14997 * include/grub/macho.h: Likewise.
14998 * include/multiboot.h: Likewise.
14999 * genmoddep.awk: Likewise.
15000 * normal/main.c: Likewise.
15001 * normal/menu_entry.c: Likewise.
15002 * normal/menu_viewer.c: Likewise.
15003 * normal/completion.c: Likewise.
15004 * normal/cmdline.c: Likewise.
15005 * normal/misc.c: Likewise.
15006 * normal/datetime.c: Likewise.
15007 * bus/usb/usbtrans.c: Likewise.
15008 * bus/usb/ohci.c: Likewise.
15009 * bus/usb/uhci.c: Likewise.
15010 * bus/usb/usb.c: Likewise.
15011 * mmap/efi/mmap.c: Likewise.
15012 * mmap/i386/pc/mmap_helper.S: Likewise.
15013 * mmap/i386/pc/mmap.c: Likewise.
15014 * mmap/i386/mmap.c: Likewise.
15015 * mmap/i386/uppermem.c: Likewise.
15016 * mmap/mmap.c: Likewise.
15017 * commands/acpi.c: Likewise.
15018 * commands/echo.c: Likewise.
15019 * commands/blocklist.c: Likewise.
15020 * commands/loadenv.c: Likewise.
15021 * commands/usbtest.c: Likewise.
15022 * commands/boot.c: Likewise.
15023 * commands/parttool.c: Likewise.
15024 * commands/search.c: Likewise.
15025 * commands/cat.c: Likewise.
15026 * commands/i386/pc/play.c: Likewise.
15027 * commands/i386/pc/drivemap.c: Likewise.
15028 * commands/i386/pc/vbeinfo.c: Likewise.
15029 * commands/i386/pc/acpi.c: Likewise.
15030 * commands/i386/pc/vbetest.c: Likewise.
15031 * commands/ls.c: Likewise.
15032 * commands/cmp.c: Likewise.
15033 * commands/test.c: Likewise.
15034 * commands/efi/acpi.c: Likewise.
15035 * commands/gptsync.c: Likewise.
15036 * commands/help.c: Likewise.
15037 * partmap/amiga.c: Likewise.
15038 * partmap/apple.c: Likewise.
15039 * partmap/acorn.c: Likewise.
15040 * partmap/pc.c: Likewise.
15041 * partmap/sun.c: Likewise.
15042 * partmap/gpt.c: Likewise.
15043 * script/sh/lexer.c: Likewise.
15044 * script/sh/function.c: Likewise.
15045 * font/font.c: Likewise.
15046 * font/font_cmd.c: Likewise.
15047 * loader/powerpc/ieee1275/linux.c: Likewise.
15048 * loader/efi/chainloader.c: Likewise.
15049 * loader/multiboot_loader.c: Likewise.
15050 * loader/macho.c: Likewise.
15051 * loader/i386/multiboot.c: Likewise.
15052 * loader/i386/linux.c: Likewise.
15053 * loader/i386/pc/linux.c: Likewise.
15054 * loader/i386/pc/multiboot2.c: Likewise.
15055 * loader/i386/pc/chainloader.c: Likewise.
15056 * loader/i386/pc/xnu.c: Likewise.
15057 * loader/i386/bsd_trampoline.S: Likewise.
15058 * loader/i386/efi/linux.c: Likewise.
15059 * loader/i386/multiboot_elfxx.c: Likewise.
15060 * loader/i386/bsd_helper.S: Likewise.
15061 * loader/i386/bsd.c: Likewise.
15062 * loader/i386/linux_trampoline.S: Likewise.
15063 * loader/i386/xnu_helper.S: Likewise.
15064 * loader/i386/xnu.c: Likewise.
15065 * loader/i386/bsd_pagetable.c: Likewise.
15066 * loader/i386/multiboot_helper.S: Likewise.
15067 * loader/xnu.c: Likewise.
15068 * loader/xnu_resume.c: Likewise.
15069 * io/gzio.c: Likewise.
15070 * term/efi/console.c: Likewise.
15071 * term/terminfo.c: Likewise.
15072 * term/ieee1275/ofconsole.c: Likewise.
15073 * term/i386/pc/serial.c: Likewise.
15074 * term/i386/pc/vesafb.c: Likewise.
15075 * term/i386/pc/vga.c: Likewise.
15076 * term/usb_keyboard.c: Likewise.
15077 * term/gfxterm.c: Likewise.
15078 * aclocal.m4: Likewise.
15079 * util/lvm.c: Likewise.
15080 * util/grub.d/30_os-prober.in: Likewise.
15081 * util/grub.d/10_hurd.in: Likewise.
15082 * util/console.c: Likewise.
15083 * util/grub-macho2img.c: Likewise.
15084 * util/grub-probe.c: Likewise.
15085 * util/hostfs.c: Likewise.
15086 * util/i386/pc/grub-mkimage.c: Likewise.
15087 * util/i386/pc/grub-setup.c: Likewise.
15088 * util/i386/efi/grub-mkimage.c: Likewise.
15089 * util/grub-mkconfig.in: Likewise.
15090 * util/raid.c: Likewise.
15091 * util/resolve.c: Likewise.
15092 * util/grub-mkdevicemap.c: Likewise.
15093 * util/grub-emu.c: Likewise.
15094 * util/getroot.c: Likewise.
15095 * util/hostdisk.c: Likewise.
15096 * util/usb.c: Likewise.
15097 * util/grub-editenv.c: Likewise.
15098 * util/misc.c: Likewise.
15099
d2d49665 151002009-06-10 Felix Zielcke <fzielcke@z-51.de>
15101
15102 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
15103 `genparttoollist.sh'.
15104 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
15105 Add `*.sh' to the list find searches for and change `mdate.sh'
15106 to `mdate-sh'.
15107
fe052e37 151082009-06-10 Pavel Roskin <proski@gnu.org>
15109
2763ac18 15110 * include/grub/multiboot2.h: Provide compatibility defines for
15111 multiboot2.h.
15112 * include/multiboot2.h: Include stdint.h only if needed, using
15113 angle brackets.
15114 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
15115 grub/multiboot2.h.
15116 * loader/ieee1275/multiboot2.c: Likewise.
15117 * loader/multiboot2.c: Likewise.
15118 * loader/multiboot_loader.c: Likewise.
15119
437e6adc 15120 * configure.ac: Use -nostdlib when probing for the target. It
15121 should not be required to have libc for the target.
15122
06a6836c 15123 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
15124 they fail without libc headers for the target.
15125 * include/grub/powerpc/libgcc.h: Use weak attribute for all
15126 exports.
15127 * include/grub/sparc64/libgcc.h: Likewise. Don't use
15128 preprocessor conditionals.
15129
fe052e37 15130 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
15131 build system doesn't need to be aware of the tar.c internals.
15132
afd22553 151332009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 15134
afd22553 15135 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 15136
6b787c4f 151372009-06-09 Robert Millan <rmh.grub@aybabtu.com>
15138
15139 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
15140 disk limit to 26 for IDE, Virtio, Xen and SCSI.
15141
151422009-06-09 Felix Zielcke <fzielcke@z-51.de>
15143
15144 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 15145 aren't available if ata.mod gets used.
6b787c4f 15146
473d1e45 151472009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 15148
473d1e45 15149 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 15150 initialising controller.
473d1e45 15151 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 15152
255a27d4 151532009-06-08 Felix Zielcke <fzielcke@z-51.de>
15154
15155 * util/i386/pc/grub-install.in: Add a parameter --disk-module
15156 to choose between ata and biosdisk module on i386-pc.
15157
473d1e45 151582009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 15159
d55842d8 15160 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
15161 Subclass and Programming Interface fields in terms of the 3 byte
15162 Class Code register.
15163 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
15164
fa5db0b1 15165 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
15166 interface is OHCI. Add grub_dprintf for symmetry with
15167 bus/usb/uhci.c.
15168 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
15169 interface is UHCI. Add interf variable for programming
15170 interface. Print interface with class/subclass.
15171
c0947beb 15172 * bus/usb/ohci.c: Set interf with correct field.
15173
69da8877 15174 * bus/usb/uhci.c: Remove unneeded doubled lines.
15175 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
15176 Remove whitespace inside comment.
15177
9e172e30 151782009-06-08 Robert Millan <rmh.grub@aybabtu.com>
15179
15180 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
15181 as fallback an equivalent option without depth.
15182
de65ee2b 151832009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
15184
15185 Not fail if unable to retrieve C/H/S on LBA disks
15186
473d1e45 15187 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 15188 if unable to retrieve C/H/S on LBA disks
15189
b57ea2c9 151902009-06-08 Pavel Roskin <proski@gnu.org>
15191
15192 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
15193 about aliasing.
15194
af361263 151952009-06-08 Felix Zielcke <fzielcke@z-51.de>
15196
15197 * Makefile.in (uninstall): Remove all $lib_DATA files.
15198
4c9ec6b3 151992009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
15200
15201 Bugfix: install on partitionless device
15202
15203 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
15204 is a whole disk
15205
e76fc924 152062009-06-08 Felix Zielcke <fzielcke@z-51.de>
15207
15208 * Makefile.in (uninstall): Remove all $include_DATA files.
15209
ba5a0d05 152102009-06-08 Felix Zielcke <fzielcke@z-51.de>
15211
15212 * commands/true.c: New file. Implement the true and false commands.
15213 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
15214 (true_mod_SOURCES): New variable.
15215 (true_mod_CFLAGS): Likewise.
15216 (true_mod_LDFLAGS): Likewise.
15217
c8048e32 152182009-06-05 Colin D Bennett <colin@gibibit.com>
15219
15220 Optimized font character lookup using binary search instead of linear
15221 search. Fonts now are required to have the character index ordered by
15222 code point.
15223
15224 * font/font.c (load_font_index): Verify that fonts have ordered
15225 character indices.
15226 (find_glyph): Use binary search instead of linear search to find a
15227 character in a font.
15228
408305be 152292009-06-05 Michael Scherer <misc@mandriva.org>
15230
15231 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
15232 uses case sensitive btree.
15233 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
15234 only for case insensitive filesystems.
15235
8ee1e0d9 152362009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
15237
15238 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
15239 * conf/common.rmk (search_mod_CFLAGS): likewise
15240
a9966eb1 152412009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15242
473d1e45 15243 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 15244 compensate a compiler bug
15245
9e7100fb 152462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15247
473d1e45 15248 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 15249 instead of '\b'
473d1e45 15250
ede21d71 152512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 Definitions for creating asm symbols with Apple's CC
15254
15255 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
15256 [APPLE_CC] (VARIABLE): likewise
15257
9dbf7653 152582009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15259
15260 Disable lnxboot.img when compiled
15261 with Apple's CC
15262
15263 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
15264 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
15265 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
15266 [! APPLE_CC] (CODE_LENG): skip
15267 [! APPLE_CC] (setup_sects): likewise
15268 [! APPLE_CC]: skip filling
473d1e45 15269
e93cdc3d 152702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 Address in trampolines based on 32-bit registers when compiled
15273 with Apple's CC
15274
473d1e45 15275 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 15276 for addresses
15277 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
15278
6c688477 152792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15280
15281 Avoid aliases when compiling with Apple's CC for PCBIOS machine
15282
15283 * kern/misc.c [APPLE_CC] (memcpy): new function
15284 [APPLE_CC] (memmove): likewise
15285 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 15286 (memcpy): define alias conditionally on !APPLE_CC
6c688477 15287 (memset): likewise
15288 (abort): likewise
15289 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
15290 APPLE_CC are defined
15291 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
15292 (grub_assert_fail): make prototype conditional
15293
e37ffc5c 152942009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15295
15296 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
15297
473d1e45 15298 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
15299 grub-macho2img
e37ffc5c 15300 (CLEANFILES): add grub-macho2img
15301 (grub_macho2img_SOURCES): new variable
15302 * kern/i386/pc/startup.S (bss_start): new variable
15303 (bss_end): likewise
15304 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
15305 * util/grub-macho2img.c: new file
15306
cf00df31 153072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15308
15309 Use objconv when compiling with Apple's CC
15310
15311 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
15312 (efiemu64.o): likewise
15313 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
15314 when compiling with Apple's CC
15315 (efiemu64_s.o): likewise
15316 * configure.ac: check for objconv when compiling with Apple's CC
15317 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 15318
d119a20c 153192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15320
15321 Define segment as well as section when compiling with
15322 Apple's CC
15323
15324 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
15325 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
15326 (efiemu_convert_pointer): likewise
15327 (efiemu_set_virtual_address_map): likewise
15328 (efiemu_convert_pointer): likewise
15329 (efiemu_getcrc32): likewise
15330 (init_crc32_table): likewise
15331 (reflect): likewise
15332 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
15333 (GRUB_MOD_DEP): likewise
473d1e45 15334
c8600122 153352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15336
15337 Allow a compilation without -mcmodel=large
15338
15339 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
15340 when compiled without -mcmodel=large
473d1e45 15341 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 15342 without -mcmodel=large
473d1e45 15343 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 15344 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 15345
e8df1d4e 153462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15347
15348 Remove nested functions in efiemu core
15349
15350 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 15351
cc6c3ac1 153522009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15353
15354 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
15355
15356 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
15357 temporary storage
473d1e45 15358 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
15359 using Apple's CC
cc6c3ac1 15360 (grub_cpu_is_tsc_supported): likewise
15361 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 15362
3e325901 153632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15364
15365 Absolute addressing through constant with Apple's cc
15366
15367 * kern/i386/pc/startup.S: Define necessary constants
15368 and address through it when using ABS with Apple's CC
15369 * boot/i386/pc/diskboot.S: likewise
15370 * boot/i386/pc/boot.S: likewise
15371 * boot/i386/pc/lnxboot.S: likewise
15372 * boot/i386/pc/cdboot.S: likewise
15373 * mmap/i386/pc/mmap_helper.S: likewise
15374 * commands/i386/pc/drivemap_int13h.S: likewise
15375
2b167a72 153762009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 Check if compiler is apple cc
15379
15380 * Makefile.in (ASFLAGS): new variable
15381 (TARGET_ASFLAGS): likewise
15382 (TARGET_MODULE_FORMAT): likewise
15383 (TARGET_APPLE_CC): likewise
15384 (OBJCONV): likewise
15385 (TARGET_IMG_CFLAGS): likewise
15386 (TARGET_CPPFLAGS): add includedir
15387 * configure.ac: call grub_apple_cc and grub_apple_target_cc
15388 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
15389 Check for linker script only if compiler isn't Apple's CC
15390 (TARGET_MODULE_FORMAT): set
15391 (TARGET_APPLE_CC): likewise
15392 (TARGET_ASFLAGS): likewise
15393 (ASFLAGS): likewise
15394 Check for objcopy only if compiler isn't Apple's CC
15395 Check for BSS symbol only if compiler isn't Apple's CC
15396 * genmk.rb: adapt nm options if we use Apple's utils
15397 * aclocal.m4 (grub_apple_cc): new test
15398 (grub_apple_target_cc): likewise
473d1e45 15399
fb14123e 154002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15401
15402 Simplify sed expressions and improve awk
15403
15404 * Makefile.in (install-local): simplify sed expression
15405 * gencmdlist.sh: likewise
15406 * genmoddep.awk: avoid adding module as a dependency of itself
15407
5b889789 154082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 Add missing start symbols
15411
15412 * boot/i386/pc/boot.S: add start
fb14123e 15413 * boot/i386/pc/pxeboot.S: likewise
473d1e45 15414
fd2bf2e3 154152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 15418
15419 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 15420 (relocate_addresses): consider both r_addend and value at offset
15421 (make_mods_section): zerofill modinfo and header
15422 (convert_elf): write prefix here
473d1e45 15423
5389763d 154242009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15425
15426 Use .asciz instead of .string
15427
15428 * i386/pc/diskboot.S: use .asciz instead of .string
15429 * i386/pc/boot.S: likewise
15430 * include/grub/dl.h (GRUB_MOD_DEP): likewise
15431 (GRUB_MOD_NAME): likewise
473d1e45 15432
3eb5ed4e 154332009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15434
15435 gfxpayload support
15436
15437 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
15438 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
15439 (grub_video_setup): remove
15440 (grub_video_set_mode): new prototype
15441 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
15442 (vid_mode): remove
15443 (linux_vesafb_res): compile only on PCBIOS
15444 (grub_linux_boot): support gfxpayload
15445 * loader/i386/pc/xnu.c (video_hook): new function
15446 (grub_xnu_set_video): support gfxpayload
15447 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
15448 (DEFAULT_VIDEO_HEIGHT): likewise
15449 (DEFAULT_VIDEO_FLAGS): likewise
15450 (DEFAULT_VIDEO_MODE): new definition
15451 (video_hook): new function
15452 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 15453 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 15454 loading xnu
15455 * video/video.c (grub_video_setup): removed
473d1e45 15456 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 15457 grub_video_setup
15458
4b0e1143 154592009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 Avoid calling biosdisk in drivemap
15462
15463 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
15464 (revparse_biosdisk): likewise
15465 (list_mappings): derive name from id directly
15466 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 15467
fda6cb98 154682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 Script fixes
15471
15472 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
15473 (grub_lexer_param): add tokenonhold
15474 (grub_script_create_cmdline): remove cmdline. All callers updated
15475 (grub_script_function_create): make functionname
15476 grub_script_arg. All callers updated
15477 (grub_script_execute_argument_to_string): new prototype
15478 * kern/parser.c (state_transitions): reorder
15479 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 15480 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 15481 make global
15482 (grub_script_execute_cmdline): use new format
15483 * script/sh/function.c (grub_script_function_create): make functionname
15484 grub_script_arg. All callers updated
473d1e45 15485 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 15486 (grub_script_yylex): remove
15487 (grub_script_yylex2): renamed to ...
15488 (grub_script_yylex): ...renamed
15489 parse the expressions like a${b}c
15490 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
15491 (GRUB_PARSER_TOKEN_VAR): remove
15492 (GRUB_PARSER_TOKEN_NAME): likewise
15493 ("if"): declare as typeless
15494 ("while"): likewise
15495 ("function"): likewise
15496 ("else"): likewise
15497 ("then"): likewise
15498 ("fi"): likewise
15499 (text): remove
15500 (argument): likewise
15501 (script): accept empty scripts and make exit on error
15502 (arguments): use GRUB_PARSER_TOKEN_ARG
15503 (function): likewise
15504 (command): move error handling to script
15505 (menuentry): move grub_script_lexer_ref before
473d1e45 15506 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 15507 argument. All callers updated
15508
f4448a07 155092009-06-04 Robert Millan <rmh.grub@aybabtu.com>
15510
15511 Prevent GRUB from probing floppies during boot.
15512
15513 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
15514 * commands/search.c (options): Add --no-floppy.
15515 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
15516 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
15517 --no-floppy when searching for UUIDs.
15518
2bf5885a 155192009-06-04 Robert Millan <rmh.grub@aybabtu.com>
15520
15521 Simplify the code duplication in commands/search.c.
15522
15523 * commands/search.c (search_label, search_fs_uuid): Merge into ...
15524 (search_fs): ... this. Update all users.
15525
f6fd460a 155262009-06-03 Felix Zielcke <fzielcke@z-51.de>
15527
15528 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
15529
cbb3c83e 155302009-05-28 Pavel Roskin <proski@gnu.org>
15531
57788cfd 15532 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
15533 Remove the original symlink explicitly.
15534
cbb3c83e 15535 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
15536 just one slash. That's how grub_fshelp_find_file() does it.
15537
cd0d5e30 155382009-05-26 Pavel Roskin <proski@gnu.org>
15539
f0f8bbe2 15540 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
15541 to `str'.
15542
cd0d5e30 15543 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
15544 possibly unused.
15545
8c2cab51 155462009-05-25 Christian Franke <franke@computer.org>
15547
15548 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
15549 register.
15550 (grub_atapi_identify): Add wait after drive select.
15551 (grub_ata_identify): Do more strict status register check before
15552 calling grub_atapi_identify (). Suppress error message if status
15553 register is 0x00 after command failure. Add status register
15554 check after PIO read to avoid bogus identify due to stuck DRQ.
15555 Thanks to Pavel Roskin for testing.
15556 (grub_device_initialize): Remove unsafe status register check.
15557 Thanks to 'phcoder' for problem report and patch.
15558 Prevent sign extension in debug message.
15559
230c0ad6 155602009-05-23 Colin D Bennett <colin@gibibit.com>
15561
15562 Cleaned up `include/grub/normal.h'. Grouped prototypes by
15563 definition file, and functions defined in `normal/menu.c' have had
15564 their prototypes moved to `include/grub/menu.h' for consistency.
15565
15566 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
15567 from normal.h.
15568 (grub_menu_get_entry): Likewise.
15569 (grub_menu_get_timeout): Likewise.
15570 (grub_menu_set_timeout): Likewise.
15571 (grub_menu_execute_entry): Likewise.
15572 (grub_menu_execute_with_fallback): Likewise.
15573 (grub_menu_entry_run): Likewise.
15574
15575 * include/grub/normal.h: Re-ordered and grouped function
15576 prototypes by file that the function is defined in.
15577 (grub_menu_execute_callback): Removed; moved to menu.h.
15578 (grub_menu_get_entry): Likewise.
15579 (grub_menu_get_timeout): Likewise.
15580 (grub_menu_set_timeout): Likewise.
15581 (grub_menu_execute_entry): Likewise.
15582 (grub_menu_execute_with_fallback): Likewise.
15583 (grub_menu_entry_run): Likewise.
15584 (grub_menu_addentry): Renamed from this ...
15585 (grub_normal_add_menu_entry): ... to this.
15586
15587 * normal/main.c (grub_menu_addentry): Renamed from this ...
15588 (grub_normal_add_menu_entry): ... to this.
15589
15590 * script/sh/execute.c (grub_script_execute_menuentry): Update
15591 reference to renamed grub_menu_addentry function.
15592
861f03a5 155932009-05-23 Felix Zielcke <fzielcke@z-51.de>
15594
15595 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
15596
96b1619a 155972009-05-22 Pavel Roskin <proski@gnu.org>
15598
bf6a5fb2 15599 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
15600 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
15601 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
15602 compiling for the i386 targets, but not for the utilities.
15603
96b1619a 15604 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
15605 to grub_uint8_t.
15606 (grub_root_drive): Likewise.
15607 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
15608 remove alignment.
15609 (grub_root_drive): Change size to byte.
15610 (grub_start_addr): Remove.
15611 (grub_end_addr): Likewise.
15612 (grub_apm_bios_info): Likewise.
15613
b729776b 156142009-05-21 Felix Zielcke <fzielcke@z-51.de>
15615
15616 * normal/i386: Remove.
15617 * normal/powerpc: Likewise.
15618 * normal/sparc64: Likewise.
15619 * normal/x86_64: Likewise.
15620
0a15ce80 156212009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15622
15623 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 15624 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 15625 * loader/i386/xnu_helper.S: Likewise
d6da58e6 15626
33db9015 156272009-05-18 Colin D Bennett <colin@gibibit.com>
15628
d6da58e6 15629 Display error messages when parsing a Lua statement fails.
15630 Previously, executing a syntactically invalid statement like
15631 ")foo" or "bar;" would silently fail.
33db9015 15632
15633 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 15634 (grub_lua_parse_line): Improved reporting of Lua parser and
15635 execution errors.
33db9015 15636
46422c89 156372009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 Remove -Werror which causes build to fail on some systems
15640
15641 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
15642 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
15643 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 15644
22f53a96 156452009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15646
15647 trampoline for linux on 64-bit platform
15648
18f547ad 15649 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
15650 loader/i386/efi/linux_trampoline.S
15651 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 15652 declaration
d6da58e6 15653 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
15654 here
22f53a96 15655 * loader/i386/linux_trampoline.S: moved here
d6da58e6 15656 * loader/i386/efi/linux.c (allocate_pages): reserve space for
15657 trampoline
22f53a96 15658 (jumpvector): removed
15659 (grub_linux_trampoline_start): new declaration
15660 (grub_linux_trampoline_end): likewise
15661 (grub_linux_boot): use trampoline when on 64-bit platform
15662 * loader/i386/linux.c: likewise
15663
cb5a0f40 156642009-05-16 Pavel Roskin <proski@gnu.org>
15665
15666 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
15667 const to avoid a warning.
15668 (grub_lua_setenv): Likewise.
15669 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
15670 lmsg to fix a warning.
15671
334f2c28 156722009-05-16 Felix Zielcke <fzielcke@z-51.de>
15673
15674 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 15675 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
15676 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
15677 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
15678 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
15679 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
15680 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
15681 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 15682
59e5d3ec 156832009-05-16 Felix Zielcke <fzielcke@z-51.de>
15684
15685 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
15686
9d87a1ba 156872009-05-16 Bean <bean123ch@gmail.com>
15688
15689 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
15690 (lua_mod_SOURCES): New variable.
15691 (lua_mod_CFLAGS): Likewise.
15692 (lua_mod_LDFLAGS): Likewise.
15693
15694 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
15695 (setjmp_mod_SOURCES): New variable.
15696 (setjmp_mod_CFLAGS): Likewise.
15697 (setjmp_LDFLAGS): Likewise.
15698
15699 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
15700 (setjmp_mod_SOURCES): New variable.
15701 (setjmp_mod_CFLAGS): Likewise.
15702 (setjmp_LDFLAGS): Likewise.
15703
15704 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
15705 (setjmp_mod_SOURCES): New variable.
15706 (setjmp_mod_CFLAGS): Likewise.
15707 (setjmp_LDFLAGS): Likewise.
15708
15709 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
15710 (setjmp_mod_SOURCES): New variable.
15711 (setjmp_mod_CFLAGS): Likewise.
15712 (setjmp_LDFLAGS): Likewise.
15713
15714 * normal/i386/setjmp.S: Moved from here ...
15715 * lib/i386/setjmp.S: ... Moved here
15716 * normal/x86_64/setjmp.S: Moved from here ...
15717 * lib/x86_64/setjmp.S: ... Moved here
15718 * normal/powerpc/setjmp.S: Moved from here ...
15719 * lib/powerpc/setjmp.S: ... Moved here
15720 * normal/sparc64/setjmp.S: Moved from here ...
15721 * lib/sparc64/setjmp.S: ... Moved here
15722
15723 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
15724 returns_twice in mingw.
15725
15726 * script/lua/grub_lib.c: New file.
15727 * script/lua/grub_lib.h: Likewise.
15728 * script/lua/grub_lua.h: Likewise.
15729 * script/lua/grub_main.c: Likewise.
15730 * script/lua/lapi.c: Likewise.
15731 * script/lua/lapi.h: Likewise.
15732 * script/lua/lauxlib.c: Likewise.
15733 * script/lua/lauxlib.h: Likewise.
15734 * script/lua/lbaselib.c: Likewise.
15735 * script/lua/lcode.c: Likewise.
15736 * script/lua/lcode.h: Likewise.
15737 * script/lua/ldblib.c: Likewise.
15738 * script/lua/ldebug.c: Likewise.
15739 * script/lua/ldebug.h: Likewise.
15740 * script/lua/ldo.c: Likewise.
15741 * script/lua/ldo.h: Likewise.
15742 * script/lua/ldump.c: Likewise.
15743 * script/lua/lfunc.c: Likewise.
15744 * script/lua/lfunc.h: Likewise.
15745 * script/lua/lgc.c: Likewise.
15746 * script/lua/lgc.h: Likewise.
15747 * script/lua/linit.c: Likewise.
15748 * script/lua/liolib.c: Likewise.
15749 * script/lua/llex.c: Likewise.
15750 * script/lua/llex.h: Likewise.
15751 * script/lua/llimits.h: Likewise.
15752 * script/lua/lmathlib.c: Likewise.
15753 * script/lua/lmem.c: Likewise.
15754 * script/lua/lmem.h: Likewise.
15755 * script/lua/loadlib.c: Likewise.
15756 * script/lua/lobject.c: Likewise.
15757 * script/lua/lobject.h: Likewise.
15758 * script/lua/lopcodes.c: Likewise.
15759 * script/lua/lopcodes.h: Likewise.
15760 * script/lua/loslib.c: Likewise.
15761 * script/lua/lparser.c: Likewise.
15762 * script/lua/lparser.h: Likewise.
15763 * script/lua/lstate.c: Likewise.
15764 * script/lua/lstate.h: Likewise.
15765 * script/lua/lstring.c: Likewise.
15766 * script/lua/lstring.h: Likewise.
15767 * script/lua/lstrlib.c: Likewise.
15768 * script/lua/ltable.c: Likewise.
15769 * script/lua/ltable.h: Likewise.
15770 * script/lua/ltablib.c: Likewise.
15771 * script/lua/ltm.c: Likewise.
15772 * script/lua/ltm.h: Likewise.
15773 * script/lua/lua.h: Likewise.
15774 * script/lua/luaconf.h: Likewise.
15775 * script/lua/lualib.h: Likewise.
15776 * script/lua/lundump.c: Likewise.
15777 * script/lua/lundump.h: Likewise.
15778 * script/lua/lvm.c: Likewise.
15779 * script/lua/lvm.h: Likewise.
15780 * script/lua/lzio.c: Likewise.
15781 * script/lua/lzio.h: Likewise.
15782
5e898c9d 157832009-05-16 Bean <bean123ch@gmail.com>
15784
15785 * include/grub/kernel.h (grub_module_header_types): Add type
15786 OBJ_TYPE_CONFIG.
15787
15788 * kern/main.c (grub_load_config): New function.
15789 (grub_main): Call grub_load_config to read boot config.
15790
15791 * grub-mkimage (generate_image): New parameter config_path.
15792 (options): New option --config.
15793 (main): Parse --config option, and pass it to generate_image.
15794
cf353a47 157952009-05-14 Christian Franke <franke@computer.org>
15796
15797 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
15798 This fixes build on Cygwin.
15799
3834887f 158002009-05-14 Pavel Roskin <proski@gnu.org>
15801
15802 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
15803 jump. This saves two bytes, so the typical case of 2 swapped
15804 drives would fit 32 bytes.
15805
8090fc01 158062009-05-13 Pavel Roskin <proski@gnu.org>
15807
ac963883 15808 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
15809 grub_uint32_t to avoid a warning.
15810
8090fc01 15811 * loader/i386/linux.c (allocate_pages): When assigning
15812 real_mode_mem, cast through grub_size_t to fix a warning. The
15813 code already makes sure that the value would fit a pointer.
15814 (grub_linux_setup_video): Cast render_target->data to
15815 grub_size_t to fix a warning.
15816
18f547ad 158172009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 15818
15819 * commands/i386/pc/drivemap.c: New file - implement drivemap
15820 command.
15821 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
15822 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
15823
6f6a8b28 158242009-05-13 Pavel Roskin <proski@gnu.org>
15825
15826 * util/i386/pc/grub-setup.c (setup): Remove unused variable
15827 embedding_area_exists.
15828
15fbf4c4 158292009-05-13 Robert Millan <rmh.grub@aybabtu.com>
15830
15831 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
15832 it easier to understand / work with.
59978c8a 15833 Improve warning messages for cases where there's no embedding area,
15834 or when it is too small (or core.img too large).
15fbf4c4 15835
238e871f 158362009-05-13 Pavel Roskin <proski@gnu.org>
15837
0ab3a9a4 15838 * loader/i386/pc/multiboot2.c: Add necessary includes for
15839 grub_multiboot2_real_boot().
15840
a2c8c5f8 15841 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
15842 PX record is always little-endian. We only need the lower 2
15843 bytes of the mode.
15844
faec96af 15845 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
15846 facilitate code reuse.
15847 (grub_cpio_mount): Use "struct head", not a char buffer. This
15848 fixes a warning reported by gcc 4.4.
15849
238e871f 15850 * kernel/disk.c (grub_disk_read): Use void pointer for the
15851 buffer.
15852 (grub_disk_write): Use const void pointer for the buffer.
15853 Adjust all callers. Remove unnecessary casts.
15854
901d2f0c 158552009-05-10 Robert Millan <rmh.grub@aybabtu.com>
15856
15857 * util/i386/pc/grub-install.in: Update copyright year.
15858
18f547ad 158592009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 15860
15861 gptsync
15862
15863 * commands/gptsync.c: new file
15864 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
15865 (gptsync_mod_SOURCES): new variable
15866 (gptsync_mod_CFLAGS): likewise
15867 (gptsync_mod_LDFLAGS): likewise
18f547ad 15868 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 15869 new definition
15870 (GRUB_PC_PARTITION_TYPE_HFS): likewise
15871 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
15872 * conf/i386-ieee1275.rmk: likewise
15873 * conf/i386-pc.rmk: likewise
15874 * conf/powerpc-ieee1275.rmk: likewise
15875
b4ba690a 158762009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15877
15878 Fixed grub-emu
15879
15880 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
15881 (grub_dl_ref): likewise
15882
317e1a44 158832009-05-08 Robert Millan <rmh.grub@aybabtu.com>
15884
15885 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
15886 split in two functions (one for msdos and one for gpt).
15887
041b8094 158882009-05-08 Pavel Roskin <proski@gnu.org>
15889
752473c2 15890 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
15891 not modified.
15892
041b8094 15893 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
15894 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
15895 Initialize them with -1. Add sanity check for bad1. Eliminate
15896 nerr variable.
15897
172800ce 158982009-05-08 David S. Miller <davem@davemloft.net>
15899
15900 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
15901
29aa5e81 159022009-05-06 Robert Millan <rmh.grub@aybabtu.com>
15903
15904 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 15905 existence.
29aa5e81 15906
96613b62 159072009-05-05 Felix Zielcke <fzielcke@z-51.de>
15908
15909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 15910 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 15911
eef73c8a 159122009-05-05 David S. Miller <davem@davemloft.net>
15913
15914 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
15915
119494b5 159162009-05-05 Pavel Roskin <proski@gnu.org>
15917
15918 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
15919 of grub_dl_ref() and grub_dl_unref().
15920 * commands/parttool.c: Remove preprocessor conditionals around
15921 grub_dl_ref() and grub_dl_unref().
15922 * fs/affs.c: Likewise.
15923 * fs/afs.c: Likewise.
15924 * fs/cpio.c: Likewise.
15925 * fs/ext2.c: Likewise.
15926 * fs/fat.c: Likewise.
15927 * fs/hfs.c: Likewise.
15928 * fs/hfsplus.c: Likewise.
15929 * fs/iso9660.c: Likewise.
15930 * fs/jfs.c: Likewise.
15931 * fs/minix.c: Likewise.
15932 * fs/ntfs.c: Likewise.
15933 * fs/reiserfs.c: Likewise.
15934 * fs/sfs.c: Likewise.
15935 * fs/udf.c: Likewise.
15936 * fs/ufs.c: Likewise.
15937 * fs/xfs.c: Likewise.
15938 * include/grub/dl.h: Likewise.
15939 * loader/xnu.c: Likewise.
15940
de5fd76e 159412009-05-04 Pavel Roskin <proski@gnu.org>
15942
15943 * commands/acpi.c: Remove unused variable my_mod.
15944 * partmap/amiga.c: Likewise.
15945 * partmap/apple.c: Likewise.
15946 * partmap/gpt.c: Likewise.
15947 * partmap/pc.c: Likewise.
15948 * partmap/sun.c: Likewise.
15949 * term/gfxterm.c: Likewise.
15950 * term/i386/pc/vesafb.c: Likewise.
15951 * term/i386/pc/vga.c: Likewise.
15952
983598ad 159532009-05-04 David S. Miller <davem@davemloft.net>
15954
15955 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
15956 pointer args to grub_ieee1275_get_property().
15957
8aadec43 15958 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
15959
9554b15e 15960 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
15961 devices, and do not traverse down under controller nodes.
15962
67e23c90 15963 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
15964 (grub_ofdisk_open): Use it to un-escape "," characters.
15965 * kern/disk.c (find_part_sep): New.
15966 (grub_disk_open): Use it to find the first non-escaped ','
15967 character in the disk name.
15968 * util/ieee1275/devicemap.c (escape_of_path): New.
15969 (grub_util_emit_devicemap_entry): Use it.
15970 * util/sparc64/ieee1275/grub-install.in: Update script to
15971 strip partition specifiers properly by not triggering on
15972 '\' escaped ',' characters.
15973
74bfdd2f 159742009-05-04 Robert Millan <rmh.grub@aybabtu.com>
15975
15976 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
15977 to 0x300.
15978 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
15979 resolutions.
15980 (linux_vesafb_modes): Add a lot of additional modes to the list (based
15981 on documentation from Wikipedia).
15982
4241d2b1 159832009-05-04 Pavel Roskin <proski@gnu.org>
15984
15985 * disk/ata.c: Spelling fixes.
15986 * disk/raid.c: Likewise.
15987 * disk/usbms.c: Likewise.
15988 * disk/dmraid_nvidia.c: Likewise.
15989 * kern/ieee1275/openfw.c: Likewise.
15990 * kern/ieee1275/init.c: Likewise.
15991 * kern/ieee1275/cmain.c: Likewise.
15992 * boot/i386/pc/cdboot.S: Likewise.
15993 * video/readers/png.c: Likewise.
15994 * video/i386/pc/vbe.c: Likewise.
15995 * fs/udf.c: Likewise.
15996 * fs/hfs.c: Likewise.
15997 * fs/reiserfs.c: Likewise.
15998 * efiemu/runtime/efiemu.c: Likewise.
15999 * efiemu/main.c: Likewise.
16000 * efiemu/mm.c: Likewise.
16001 * include/grub/elf.h: Likewise.
16002 * include/grub/xnu.h: Likewise.
16003 * include/grub/usbdesc.h: Likewise.
16004 * include/grub/usb.h: Likewise.
16005 * include/grub/script_sh.h: Likewise.
16006 * include/grub/lib/LzmaEnc.h: Likewise.
16007 * include/grub/efiemu/efiemu.h: Likewise.
16008 * include/grub/command.h: Likewise.
16009 * normal/menu.c: Likewise.
16010 * normal/main.c: Likewise.
16011 * normal/datetime.c: Likewise.
16012 * bus/usb/uhci.c: Likewise.
16013 * mmap/i386/uppermem.c: Likewise.
16014 * mmap/mmap.c: Likewise.
16015 * commands/acpi.c: Likewise.
16016 * commands/test.c: Likewise.
16017 * partmap/apple.c: Likewise.
16018 * font/font.c: Likewise.
16019 * loader/sparc64/ieee1275/linux.c: Likewise.
16020 * loader/macho.c: Likewise.
16021 * loader/i386/bsd_trampoline.S: Likewise.
16022 * loader/i386/bsd.c: Likewise.
16023 * loader/xnu.c: Likewise.
16024 * term/i386/pc/vesafb.c: Likewise.
16025 * term/usb_keyboard.c: Likewise.
16026 * util/resolve.c: Likewise.
16027 * util/getroot.c: Likewise.
16028
0cfc0083 160292009-05-04 Felix Zielcke <fzielcke@z-51.de>
16030
16031 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
16032
7c1d00cd 160332009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16034
16035 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
16036 build error.
16037
b01f0548 160382009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16039
16040 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
16041 parameter only available on BIOS.
16042
ecc3eb22 160432009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16044
16045 Removed wrong semicolon in declaration
16046
16047 * grub/misc.h (grub_dprintf): remove semicolon
16048
112972a9 160492009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16050
16051 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
16052 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
16053 is done by grub_cmd_linux() now).
16054 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
16055 restore video to text mode.
16056 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
16057 indicates lack of "vga=" parameter. "vga=0" is mapped to
16058 `GRUB_LINUX_VID_MODE_NORMAL'.
16059
afd5c115 160602009-05-04 Felix Zielcke <fzielcke@z-51.de>
16061
16062 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
16063 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
16064 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 16065 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 16066 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
16067 `grub_script.tab.c'.
16068
16069 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16070 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16071 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16072 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16073 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16074
faa517ce 16075 * Makefile.in: Remove duplicated 2008 in Copyright line.
16076
ae0c0bdc 160772009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16078
473d1e45 16079 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 16080 unconditionally.
16081 * include/grub/util/misc.h (grub_util_warn): New declaration.
16082
16083 * util/i386/pc/grub-install.in: Understand --force and pass it down
16084 to grub-setup.
16085
16086 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
16087 down to setup().
16088 (setup): Improve error messages and add warnings when requested to
16089 install in odd layouts. Refuse to install using blocklists unless
16090 --force was set.
16091
18f547ad 160922009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 16093
16094 * disk/raid.c (grub_raid_scan_device): Improve debug message.
16095
6d260daa 160962009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16097
16098 Updated copyright year
16099
16100 * fs/hfsplus.c: updated copyright year
18f547ad 16101
69f853f8 161022009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 HFS+ UUID
16105
18f547ad 16106 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 16107 in the space previously used by unused3
16108 (grub_hfsplus_uuid): new function
16109 (grub_hfsplus_fs): added uuid field
16110
4c402e73 161112009-05-03 Pavel Roskin <proski@gnu.org>
16112
16113 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
16114 suppress warnings. It's no longer needed.
16115 * disk/host.c: Likewise.
16116 * disk/ata_pthru.c: Likewise.
16117 * disk/loopback.c: Likewise.
16118 * hook/datehook.c: Likewise.
16119 * parttool/pcpart.c: Likewise.
16120 * fs/i386/pc/pxe.c: Likewise.
16121 * fs/ntfscomp.c: Likewise.
16122 * efiemu/main.c: Likewise.
16123 * mmap/mmap.c: Likewise.
16124 * commands/crc.c: Likewise.
16125 * commands/hexdump.c: Likewise.
16126 * commands/hdparm.c: Likewise.
16127 * commands/acpi.c: Likewise.
16128 * commands/echo.c: Likewise.
16129 * commands/minicmd.c: Likewise.
16130 * commands/blocklist.c: Likewise.
16131 * commands/memrw.c: Likewise.
16132 * commands/loadenv.c: Likewise.
16133 * commands/usbtest.c: Likewise.
16134 * commands/lsmmap.c: Likewise.
16135 * commands/boot.c: Likewise.
16136 * commands/parttool.c: Likewise.
16137 * commands/configfile.c: Likewise.
16138 * commands/search.c: Likewise.
16139 * commands/ieee1275/suspend.c: Likewise.
16140 * commands/cat.c: Likewise.
16141 * commands/i386/pc/pxecmd.c: Likewise.
16142 * commands/i386/pc/play.c: Likewise.
16143 * commands/i386/pc/halt.c: Likewise.
16144 * commands/i386/pc/vbeinfo.c: Likewise.
16145 * commands/i386/pc/vbetest.c: Likewise.
16146 * commands/lspci.c: Likewise.
16147 * commands/date.c: Likewise.
16148 * commands/handler.c: Likewise.
16149 * commands/ls.c: Likewise.
16150 * commands/test.c: Likewise.
16151 * commands/cmp.c: Likewise.
16152 * commands/efi/loadbios.c: Likewise.
16153 * commands/efi/fixvideo.c: Likewise.
16154 * commands/halt.c: Likewise.
16155 * commands/help.c: Likewise.
16156 * commands/reboot.c: Likewise.
16157 * hello/hello.c: Likewise.
16158 * script/sh/main.c: Likewise.
16159 * loader/xnu.c: Likewise.
16160 * term/terminfo.c: Likewise.
16161 * term/i386/pc/serial.c: Likewise.
16162 * term/usb_keyboard.c: Likewise.
16163
515b5079 161642009-05-03 David S. Miller <davem@davemloft.net>
16165
16166 * normal/menu.c: Include grub/parser.h
16167
dfc31a22 161682009-05-03 Pavel Roskin <proski@gnu.org>
16169
2fee74f1 16170 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
16171 not char*.
16172 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
16173 Suggested by Javier Martín <lordhabbit@gmail.com>
16174
dfc31a22 16175 * util/i386/pc/grub-mkrescue.in: Allow for the case when
16176 efiemu??.o doesn't exist.
16177 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
16178 copying.
16179
18f547ad 161802009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 16181
16182 FreeBSD 64-bit support
16183
18f547ad 16184 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 16185 and loader/i386/bsd_trampoline.S
16186 (bsd_mod_ASFLAGS): new variable
16187 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
16188 (FREEBSD_MODTYPE_KERNEL64): likewise
16189 (grub_bsd64_trampoline_start): likewise
16190 (grub_bsd64_trampoline_end): likewise
16191 (grub_bsd64_trampoline_selfjump): likewise
16192 (grub_bsd64_trampoline_gdt): likewise
16193 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
16194 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
16195 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
16196 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 16197 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 16198 of "attrib" member
16199 * loader/i386/bsd_pagetable.c: new file
16200 * loader/i386/bsd_trampoline.S: likewise
16201 * loader/i386/bsd.c (ALIGN_QWORD): new macro
16202 (ALIGN_VAR): likewise
16203 (entry_hi): new variable
16204 (kern_end_mdofs): likewise
16205 (is_64bit): likewise
16206 (grub_freebsd_add_meta): use ALIGN_VAR
16207 (grub_e820_mmap): new declaration
16208 (grub_freebsd_add_mmap): new function
16209 (grub_freebsd_add_meta_module): support 64 bit kernels
16210 (grub_freebsd_list_modules): use ALIGN_VAR
16211 (gdt_descriptor): new declaration
16212 (grub_freebsd_boot): support 64 bit kernels
16213 (grub_bsd_elf64_hook): new function
16214 (grub_bsd_load_elf): support elf64
16215
038c5720 162162009-05-03 Bean <bean123ch@gmail.com>
16217
16218 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
16219 after we get the result of if statement.
16220
fc45fb58 162212009-05-03 Bean <bean123ch@gmail.com>
16222
16223 * Makefile.in (enable_efiemu): New variable.
16224
16225 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
16226 set.
16227 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
16228 path.
16229 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
16230 path, add -mno-red-zone option.
16231 (efiemu64_s.o): Likewise.
16232 (efiemu64.o): Use macro $^ for source file.
16233
16234 * configure.ac (--enable-efiemu): New option.
16235
bbee0f2b 162362009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
16237
16238 xnu support
16239
16240 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
16241 (pkglib_MODULES): add xnu.mod
16242 (xnu_mod_SOURCES): new variable
16243 (xnu_mod_CFLAGS): likewise
16244 (xnu_mod_LDFLAGS): likewise
16245 (xnu_mod_ASFLAGS): likewise
16246 * conf/i386-pc.rmk: likewise
16247 * conf/x86_64-efi.rmk: likewise
7dd4a573 16248 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 16249 new declaration
16250 * include/grub/i386/macho.h: new file
16251 * include/grub/i386/xnu.h: likewise
16252 * include/grub/macho.h: likewise
16253 * include/grub/machoload.h: likewise
16254 * include/grub/x86_64/macho.h: likewise
16255 * include/grub/x86_64/xnu.h: likewise
16256 * include/grub/xnu.h: likewise
16257 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
16258 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
16259 * loader/i386/efi/xnu.c: new file
16260 * loader/i386/pc/xnu.c: likewise
16261 * loader/i386/xnu.c: likewise
16262 * loader/i386/xnu_helper.S: likewise
16263 * loader/macho.c: likewise
16264 * loader/xnu.c: likewise
16265 * loader/xnu_resume.c: likewise
16266 * util/grub-dumpdevtree: likewise
16267 * include/grub/i386/pit.h: include grub/err.h
16268 (grub_pit_wait): export
16269 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 16270
5caf964d 162712009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
16272
16273 Efiemu
7dd4a573 16274
5caf964d 16275 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 16276 _linux_efi, linux_efi.
16277 new files in grub-emu
5caf964d 16278 new targets efiemu32.o and efiemu64.o
16279 * loader/linux_normal_efiemu.c: likewise
16280 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 16281 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 16282 files to copy
16283 * include/grub/autoefi.h: new file
7dd4a573 16284 * include/grub/i386/efiemu.h: likewise
5caf964d 16285 * include/grub/i386/pc/efiemu.h: likewise
16286 * include/grub/efi/api.h: add LL suffix when necessary
16287 new definitions relating to tables
16288 * include/grub/efiemu/efiemu.h: new file
16289 * include/grub/efiemu/runtime.h: likewise
16290 * efiemu/prepare.c: likewise
16291 * efiemu/loadcore_common.c: likewise
16292 * efiemu/loadcore64.c: likewise
16293 * efiemu/runtime/efiemu.sh: likewise
16294 * efiemu/runtime/efiemu.S: likewise
16295 * efiemu/runtime/efiemu.c: likewise
16296 * efiemu/runtime/config.h: likewise
16297 * efiemu/prepare32.c: likewise
16298 * efiemu/main.c: likewise
16299 * efiemu/modules/pnvram.c: likewise
16300 * efiemu/modules/i386: likewise
16301 * efiemu/modules/i386/pc: likewise
16302 * efiemu/modules/acpi.c: likewise
16303 * efiemu/i386/pc/cfgtables.c: likewise
16304 * efiemu/i386/loadcore64.c: likewise
16305 * efiemu/i386/loadcore32.c: likewise
16306 * efiemu/prepare64.c: likewise
16307 * efiemu/loadcore.c: likewise
16308 * efiemu/symbols.c: likewise
16309 * efiemu/mm.c: likewise
16310 * efiemu/loadcore32.c: likewise
7dd4a573 16311
163122009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 16313
16314 ACPI spoofing
16315
16316 * commands/acpi.c: new file
16317 * commands/i386/pc/acpi.c: likewise
16318 * commands/efi/acpi.c: likewise
16319 * include/grub/acpi.h: likewise
16320 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
16321 (acpi_mod_SOURCES): new variable
16322 (acpi_mod_CFLAGS): likewise
16323 (acpi_mod_LDFLAGS): likewise
16324 * conf/i386-efi.rmk: likewise
16325 * conf/x86_64-efi.rmk: likewise
16326
7dd4a573 163272009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 16328
16329 Missing part from mmap patch
16330
16331 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
16332 (grub_mmap_unregister)
16333 (grub_mmap_free_and_unregister): use grub_mmap_register
16334
7dd4a573 163352009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 16336
16337 Mmap services
16338
16339 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
16340 * loader/i386/linux.c (find_mmap_size): likewise
16341 (allocate_pages): likewise
16342 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
16343 (grub_fill_multiboot_mmap): likewise
16344 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
16345 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
16346 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
16347 (OPENBSD_MMAP_RESERVED): likewise
16348 * include/grub/i386/pc/memory.h: include grub/memory.h
16349 (grub_lower_mem): removed
16350 (grub_upper_mem): likewise
16351 (GRUB_MACHINE_MEMORY_ACPI): new definition
16352 (GRUB_MACHINE_MEMORY_NVS): likewise
16353 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
16354 (GRUB_MACHINE_MEMORY_HOLE): likewise
16355 (grub_machine_mmap_register): likewise
16356 (grub_machine_mmap_unregister): likewise
16357 (grub_machine_get_upper): likewise
16358 (grub_machine_get_lower): likewise
16359 (grub_machine_get_post64): likewise
16360 * include/grub/i386/efi/memory.h: new file
16361 * include/grub/x86_64/efi/memory.h: likewise
16362 * include/grub/efi/memory.h: likewise
16363 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
16364 (mmap_mod_SOURCES): new variable
16365 (mmap_mod_LDFLAGS): likewise
16366 (mmap_mod_ASFLAGS): likewise
16367 * conf/i386-coreboot.rmk: likewise
16368 * conf/i386-ieee1275.rmk: likewise
16369 * conf/i386-efi.rmk: likewise
16370 * conf/x86_64-efi.rmk: likewise
16371 * include/grub/types.h (UINT_TO_PTR): new macro
16372 (PTR_TO_UINT32): likewise
16373 (PTR_TO_UINT64): likewise
16374 * include/grub/memory.h: new file
16375 * mmap/i386/pc/mmap.c: likewise
16376 * mmap/i386/pc/mmap_helper.S: likewise
16377 * mmap/i386/uppermem.c: likewise
16378 * mmap/mmap.c: likewise
16379 * mmap/efi/mmap.c: likewise
7dd4a573 16380 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 16381 grub_upper_mem
16382 * kern/i386/pc/init.c (grub_lower_mem): removed variable
16383 (grub_upper_mem): likewise
16384 (grub_machine_init): don't use grub_upper_mem,
16385 make grub_lower_mem local
16386 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
16387 grub_mmap_iterate and grub_mmap_get_upper
16388 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
16389
d558e6b5 163902009-05-02 Bean <bean123ch@gmail.com>
16391
16392 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
16393 script/sh/parser.y.
16394 (pkglib_MODULES): Add normal.mod and sh.mod.
16395 (normal_SOURCES): New variable.
16396 (normal_mod_CFLAGS): Likewise.
16397 (normal_mod_LDFLAGS): Likewise.
16398 (sh_mod_SOURCES): Likewise.
16399 (sh_mod_CFLAGS): Likewise.
16400 (sh_mod_LDFLAGS): Likewise.
16401
16402 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
16403 script/sh/lexer.c_DEPENDENCIES.
16404 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
16405 kern/rescue_reader.c and kern/rescue_parser.c.
16406 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
16407 (grub_emu_SOURCES): Change source files.
16408 (pkglib_MODULES): Remove normal.mod.
16409 (normal_SOURCES): Removed.
16410 (normal_mod_CFLAGS): Likewise.
16411 (normal_mod_LDFLAGS): Likewise.
16412 * conf/i386-coreboot.rmk: Likewise.
16413 * conf/i386-efi.rmk: Likewise.
16414 * conf/i386-ieee1276.rmk: Likewise.
16415 * conf/powerpc-ieee1275.rmk: Likewise.
16416 * conf/sparc64-ieee1275.rmk: Likewise.
16417 * conf/x86_64-efi.rmk: Likewise.
16418
16419 * include/grub/command.h (grub_command_execute): New inline function.
16420
16421 * include/grub/menu.h (grub_menu_entry): Removed commands field.
16422
16423 * include/grub/normal.h: Remove <grub/setjmp.h>.
16424 (grub_fs_module_list): Moved to normal/autofs.c.
16425 (grub_exit_env): Removed.
16426 (grub_command_execute): Likewise.
16427 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
16428 parameter script.
16429 (read_command_list): New function declaration.
16430 (read_fs_list): Likewise.
16431
16432 * include/parser.h: Include <grub/reader.h>.
16433 (grub_parser_split_cmdline): Change type of getline parameter.
16434 (grub_parser): New structure.
16435 (grub_parser_class): New variable.
16436 (grub_parser_execute): New function declaration.
16437 (grub_register_rescue_parser): Likewise.
16438 (grub_parser_register): New inline function.
16439 (grub_parser_unregister): Likewise.
16440 (grub_parser_get_current): Likewise.
16441 (grub_parser_set_current): Likewise.
16442
16443 * include/grub/reader.h: New file.
16444 * kern/reader.c: Likewise.
16445 * kern/rescue_parser.c: Likewise.
16446 * kern/rescue_reader.c: Likewise.
16447 * normal/autofs.c: Likewise.
16448 * normal/dyncmd.c: Likewise.
16449
16450 * include/grub/rescue.h: Removed.
16451 * normal/command.h: Likewise.
16452
16453 * include/grub/script.h: Moved to ...
16454 * include/grub/script_sh.h: ... Moved here.
16455 * normal/execute.c: Moved to ...
16456 * script/sh/execute.c: ... Moved here.
16457 * normal/function.c: Moved to ...
16458 * script/sh/function.c: ... Moved here.
16459 * normal/lexer.c: Moved to ...
16460 * script/sh/lexer.c: ... Moved here.
16461 * normal/parser.y: Moved to ...
16462 * script/sh/parser.y: ... Moved here.
16463 * normal/script.c: Moved to ...
16464 * script/sh/script.c: ... Moved here.
16465
16466 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
16467 <grub/reader.h>.
16468 (grub_exit_env): Removed.
16469 (fs_module_list): Moved to normal/autofs.c.
16470 (grub_file_getline): Don't handle comment here.
16471 (free_menu): Skip removed field entry->commands.
16472 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
16473 script parameter.
16474 (read_config_file): Removed nested parameter, change getline function.
16475 (grub_enter_normal_mode): Removed.
16476 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
16477 (read_command_list): Likewise.
16478 (autoload_fs_module): Moved to normal/autofs.c.
16479 (read_fs_list): Likewise.
16480 (reader_nested): New variable.
16481 (grub_normal_execute): Run parser.sh to switch to sh parser.
16482 (grub_cmd_rescue): Removed.
16483 (cmd_normal): Removed.
16484 (grub_cmd_normal): Unregister itself at the beginning. Don't register
16485 rescue command.
16486 (grub_cmdline_run): New function.
16487 (grub_normal_reader_init): Likewise.
16488 (grub_normal_read_line): Likewise.
16489 (grub_env_write_pager): Likewise.
16490 (cmdline): New variable.
16491 (grub_normal_reader): Likewise.
16492 (GRUB_MOD_INIT): Register normal reader and set as current, register
16493 pager hook, register normal command with grub_register_command_prio,
16494 so that it won't show up in command.lst.
16495 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
16496 grub_fs_autoload_hook.
16497
16498 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
16499 (grub_menu_execute_entry): Replace grub_script_execute with
16500 grub_parser_execute, change parameter to grub_command_execute.
16501
16502 * normal/menu_text.c: Remove <grub/script.h>.
16503
16504 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
16505 and <grub/parser.h>.
16506 (run): Change editor_getline to use new parser interface. Change
16507 parameter to grub_command_execute.
16508
16509 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
16510 <grub/reader.h> and <grub/parser.h>.
16511 (grub_load_normal_mode): Execute normal command.
16512 (grub_main): Call grub_register_core_commands,
16513 grub_register_rescue_parser and grub_register_rescue_reader, use
16514 grub_reader_loop to enter input loop.
16515
7dd4a573 16516 * kern/parser.c (grub_parser_split_cmdline): Change type of
16517 getline parameter.
d558e6b5 16518 (grub_parser_class): New variable.
16519 (grub_parser_execute): New function.
16520
16521 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
16522 * loader/multiboot2.c: Likewise.
16523 * loader/sparc64/ieee1275/linux.c: Likewise.
16524
16525 * util/grub-emu.c (read_command_list): New dummy function.
16526
18db813d 165272009-05-02 Robert Millan <rmh.grub@aybabtu.com>
16528
16529 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
16530 count to 16 for CCISS and IDA.
16531
6c67de15 165322009-05-02 Robert Millan <rmh.grub@aybabtu.com>
16533
16534 * normal/menu_text.c (grub_wait_after_message): Print a newline
16535 after waiting for user input.
16536
16537 * loader/i386/linux.c: Include `<grub/normal.h>'.
16538 (grub_cmd_linux): Improve the error message about `ask' mode, by
16539 waiting for user input so it's not missed (we can do this, since
16540 user requested interaction).
16541
d9dc87b0 165422009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
16543
16544 Added missing lst to grub-mkrescue
16545
16546 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
16547 and ${input_dir}/parttool.lst
16548
ac8a2baa 165492009-04-30 David S. Miller <davem@davemloft.net>
16550
ad22a610 16551 * util/hostdisk.c (device_is_wholedisk): New function.
16552 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
16553 zero only if device_is_wholedisk() returns true.
16554
6966215d 16555 * util/hostdisk.c (convert_system_partition_to_system_disk):
16556 Handle virtual disk devices named /dev/vdiskX as found on sparc
16557 and powerpc.
16558
ac8a2baa 16559 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
16560 lettered partition specifier is found, convert to numbered.
16561
979b4fb4 165622009-04-29 David S. Miller <davem@davemloft.net>
16563
e2bf39b2 16564 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
16565 * include/grub/sparc64/ieee1275/memory.h: Likewise.
16566
3c64e104 16567 * normal/command.c: Add missing newline at end of file.
16568
979b4fb4 16569 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
16570 warnings.
16571 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
16572 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
16573 grub_ofdisk_read): Likewise, and deal similarly with the fact that
16574 ihandles have a 32-bit type but need to be stored in a "void *".
16575
136d9f82 165762009-04-28 Pavel Roskin <proski@gnu.org>
16577
9459c306 16578 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
16579 not disk. Adjust all dependencies.
2e08a26a 16580 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 16581 grub_disk_close().
16582
136d9f82 16583 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
16584 parent's partition, don't copy it by reference, as it gets freed
16585 on close.
16586
7dd4a573 165872009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 16588
16589 Preboot hooks support
16590
16591 * commands/boot.c (struct grub_preboot_t): new declaration
16592 (preboots_head): new variable
16593 (preboots_tail): likewise
16594 (grub_loader_register_preboot_hook): new function
16595 (grub_loader_unregister_preboot_hook): likewise
16596 (grub_loader_set): launch preboot hooks
16597 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
16598 (grub_loader_register_preboot_hook): new declaration
16599 (grub_loader_unregister_preboot_hook): likewise
16600
5af922b5 166012009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
16602
16603 Warning fix
16604
7dd4a573 16605 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 16606 calling grub_dprintf
16607
a5562c30 166082009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
16609
16610 Bug and warning fixes
16611
7dd4a573 16612 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 16613 declaration
16614 * commands/test.c (test_parse): fixed bug with file tests and corrected
16615 declaration of find_file
16616
4006f85c 166172009-04-26 Pavel Roskin <proski@gnu.org>
16618
16619 * Makefile.in: Don't install empty manual pages if help2man is
16620 missing. Use help2man option for output, not shell redirection.
16621
5c77c3de 166222009-04-26 David S. Miller <davem@davemloft.net>
16623
16624 * util/grub-mkdevicemap.c (make_device_map): Add missing
16625 NESTED_FUNC_ATTR to process_device().
16626
033b10a8 166272009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16628
16629 Test command
16630
16631 * commands/test.c: rewritten to use bash-like test
16632
e4343593 166332009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16634
16635 Parttool autoloading and improvements
16636
7dd4a573 16637 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 16638 (parttool.lst): new target
16639 * genmk.rb: generate parttool-*
16640 (CLEANFILES): add #{parttool}
16641 (PARTTOOLFILES): new variable
16642 * genparttoollist.sh: new file
7dd4a573 16643 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 16644 (grub_pcpart_type): likewise
16645 * commands/parttool.c (helpmsg): new variable
16646 (grub_cmd_parttool): output help if not enough arguments are supplied
16647 autoload modules
16648 (GRUB_MOD_INIT(parttool)): use helpmsg
16649
0d312500 166502009-04-24 David S. Miller <davem@davemloft.net>
16651
7dd4a573 16652 Avoiding opening same device multiple times in device iterator.
0d312500 16653
16654 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 16655 and use it to build a list of partitions in iterate_disk() and
0d312500 16656 iterate_partition().
16657
ac20caff 16658 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
16659 on disk->data.
16660
0dcf7495 16661 * disk/ieee1275/nand.c (grub_nand_iterate): Return
16662 grub_devalias_iterate() result instead of unconditional 0.
16663 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
16664 Also, capture hook return value, either directly or via
16665 grub_children_iterate(), and propagate to caller.
16666 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
16667 grub_children_iterate): Return value is now 'int' instead of
16668 'grub_err_t'.
16669 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
16670 like a proper iterator, stopping when hooks return non-zero.
16671 (grub_devalias_iterate): Likewise.
16672
c8c08833 166732009-04-23 David S. Miller <davem@davemloft.net>
16674
16675 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
16676
f01005a8 166772009-04-22 David S. Miller <davem@davemloft.net>
16678
16679 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
16680 is larger than address_cells, use that value for address_cells too.
16681
4e8269da 16682 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
16683 IEEE1275_MAX_PATH_LEN): Define.
16684 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
16685 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
16686 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
16687 'devtype'. Explicitly NULL terminate devalias expansion.
16688
a1447506 16689 * util/sparc64/ieee1275/misc.c: New file.
16690 * util/sparc64/ieee1275/grub-setup.c: New file.
16691 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
16692 * util/sparc64/ieee1275/grub-mkimage.c: New file.
16693 * util/sparc64/ieee1275/grub-install.in: New file.
16694 * util/ieee1275/ofpath.c: New file.
16695 * util/ieee1275/devicemap.c: New file.
16696 * util/devicemap.c: New file.
16697 * util/deviceiter.c: New file.
16698 * kern/sparc64/ieee1275/init.c: New file.
16699 * include/grub/util/ofpath.h: New file.
16700 * include/grub/util/deviceiter.h: New file.
16701 * util/grub-mkdevicemap.c: Include deviceiter.h.
16702 Implement using grub_util_emit_devicemap_entry and
16703 grub_util_iterate_devices.
16704 * conf/i386-corebook.rmk: Build util/deviceiter.c and
16705 util/devicemap.c into grub-mkdevicemap
16706 * conf/i386-efi.rmk: Likewise.
16707 * conf/i386-ieee1275.rmk: Likewise.
16708 * conf/i386-pc.rmk: Likewise.
16709 * conf/powerpc-ieee1275.rmk: Likewise.
16710 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
16711 images and installation utilities. Build kernel as image
16712 instead of as elf binary. Use common rules as much as possible.
16713
7dd4a573 167142009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 16715
16716 Correct GPT definition
16717
7dd4a573 16718 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 16719 of "attrib" member
16720
c6c5219f 167212009-04-19 Felix Zielcke <fzielcke@z-51.de>
16722
16723 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
16724
0552ff9f 167252009-04-19 David S. Miller <davem@davemloft.net>
16726
16727 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
16728 (grub_rescue_cmd_linux): Rename to...
16729 (grub_cmd_linux): and fix prototype.
16730 (grub_rescue_cmd_initrd): Rename to...
16731 (grub_cmd_initrd): and fix prototype.
16732 (cmd_linux, cmd_initrd): New.
16733 (GRUB_MOD_INIT(linux)): Use grub_register_command().
16734 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
16735
d1a282fc 167362009-04-17 Pavel Roskin <proski@gnu.org>
16737
07c5039f 16738 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
16739 format.
16740 (grub_ohci_transfer): Likewise.
16741
b012002d 16742 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
16743
1bc09c35 16744 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
16745 return without a value. Fix inconsistent indentation.
16746
e0ff9126 16747 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
16748 match struct grub_fs.
16749
d1a282fc 16750 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
16751 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
16752 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16753 * commands/lspci.c (grub_lspci_iter): Likewise.
16754
a96df3f2 167552009-04-16 Bean <bean123ch@gmail.com>
16756
16757 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
16758 value.
16759
41bb0fe9 167602009-04-15 Pavel Roskin <proski@gnu.org>
16761
16762 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
16763 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
16764 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
16765 definitions.
16766
596c6970 167672009-04-15 Felix Zielcke <fzielcke@z-51.de>
16768
16769 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 16770 that no multiple data or metadata areas are supported and `Unknown
596c6970 16771 metadata header'.
16772
7dd4a573 167732009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 16774
16775 Move loader out of the kernel
16776
16777 * kern/loader.c: moved to ...
16778 * commands/boot.c: ... moved here
16779 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
16780 * commands/boot.c (grub_cmd_boot): moved here. All users updated
16781 * include/grub/kernel.h (grub_machine_fini): export
16782 * include/grub/loader.h (grub_loader_is_loaded): update declaration
16783 (grub_loader_set): likewise
16784 (grub_loader_unset): likewise
16785 (grub_loader_boot): likewise
16786 * conf/common.rmk: new module boot.mod
16787 (pkglib_MODULES): add boot.mod
16788 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
16789 (grub_emu_SOURCES): likewise
16790 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
16791 (grub_emu_SOURCES): likewise
16792 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
16793 (grub_emu_SOURCES): likewise
16794 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
16795 (grub_emu_SOURCES): likewise
16796 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
16797 (grub_emu_SOURCES): likewise
7dd4a573 16798 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
16799 (grub_emu_SOURCES): likewise
0d5d5653 16800 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 16801 (grub_emu_SOURCES): likewise
0d5d5653 16802
7dd4a573 168032009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 16804
16805 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 16806
5999d619 16807 * kern/misc.c (grub_itoa): Removed function
16808 (grub_ltoa): likewise
16809 (grub_vsprintf): use grub_lltoa
16810
7dd4a573 168112009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 16812
16813 Restore grub-emu
16814
16815 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
16816 * conf/i386-coreboot.rmk: likewise
16817 * conf/i386-ieee1275.rmk: likewise
16818 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 16819
20318222 168202009-04-15 Felix Zielcke <fzielcke@z-51.de>
16821
16822 * INSTALL: Add that `./autogen.sh' needs to be run before
16823 `./configure.'.
16824
d05f0df3 168252009-04-14 Bean <bean123ch@gmail.com>
16826
16827 * Makefile.in (pkglib_DATA): Add handler.lst.
16828 (handler.lst): New rule.
16829
16830 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
16831 * conf/i386-coreboot.rmk: Likewise.
16832 * conf/i386-ieee1275.rmk: Likewise.
16833 * conf/i386-efi.rmk: Likewise.
16834 * conf/x86_64-efi.rmk: Likewise.
16835 * conf/powerpc-ieee1275.rmk: Likewise.
16836 * conf/sparc64-ieee1275.rmk: Likewise.
16837
16838 * genhandlerlist.sh: New file.
16839
16840 * genmk.rb: Add rules to generate handler.lst.
16841
16842 * include/grub/normal.h (grub_file_getline): New function definition.
16843 (read_handler_list): Likewise.
16844 (free_handler_list): Likewise.
16845
16846 * include/grub/term.h (grub_term_register_input): Add name parameter
16847 for auto generation of handler.lst.
16848 (grub_term_register_output): Likewise.
16849
16850 * normal/handler.c: New file.
16851
16852 * normal/main.c (get_line): Renamed to grub_file_getline.
16853 (read_config_file): Use the newly renamed grub_file_getline.
16854 (read_command_list): Likewise.
16855 (read_fs_list): Likewise.
16856 (grub_normal_execute): Call read_handler_list to parse handler.lst.
16857 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
16858
16859 * term/efi/console.c (grub_console_init): Add name parameter for auto
16860 generation of handler.lst.
16861 * term/gfxterm.c: Likewise.
16862 * term/i386/pc/at_keyboard.c: Likewise.
16863 * term/i386/pc/console.c: Likewise.
16864 * term/i386/pc/serial.c: Likewise.
16865 * term/i386/pc/vesafb.c: Likewise.
16866 * term/i386/pc/vga.c: Likewise.
16867 * term/i386/pc/vga_text.c: Likewise.
16868 * term/ieee1275/ofconsole.c: Likewise.
16869 * term/usb_keyboard.c: Likewise.
16870
33c846be 168712009-04-14 Bean <bean123ch@gmail.com>
16872
16873 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
16874 properly with null character.
16875
4484e01e 168762009-04-14 Felix Zielcke <fzielcke@z-51.de>
16877
16878 * configure: Remove.
16879 * config.h.in: Likewise.
f93d668e 16880 * stamp-h.in: Likewise.
4484e01e 16881 * DISTLIST: Likewise.
16882 * conf/common.mk: Likewise.
16883 * conf/i386-coreboot.mk: Likewise.
16884 * conf/i386-efi.mk: Likewise.
16885 * conf/i386-ieee1275.mk: Likewise.
16886 * conf/i386.mk: Likewise.
16887 * conf/i386-pc.mk: Likewise.
16888 * conf/powerpc-ieee1275.mk: Likewise.
16889 * conf/sparc64-ieee1275.mk: Likewise.
16890 * conf/x86_64-efi.mk: Likewise.
16891
16892 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
16893 develop on GRUB.
16894
7dd4a573 168952009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 16896 David S. Miller <davem@davemloft.net>
16897
16898 * util/hostdisk.c (make_device_name): Fix buffer length
16899 calculations.
16900
e25b5a8c 169012009-04-14 Felix Zielcke <fzielcke@z-51.de>
16902
16903 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
16904 <sys/param.h> and <sys/sysctl.h>.
16905 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
16906 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
16907 opening the device and reset them afterwards.
16908
1f1f580c 169092009-04-13 Pavel Roskin <proski@gnu.org>
16910
16911 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
16912 Reported by John Stanley <jpsinthemix@verizon.net>
16913
7ebc2d6b 169142009-04-13 Robert Millan <rmh@aybabtu.com>
16915
16916 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 16917 that name for menuentries when appropriate.
7ebc2d6b 16918
d8ba3667 169192009-04-13 Felix Zielcke <fzielcke@z-51.de>
16920
16921 * util/grub.d/10_freebsd.in: Add a missing `fi'.
16922
cba416eb 169232009-04-13 Robert Millan <rmh@aybabtu.com>
16924
16925 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
16926 to Linux, simply abort telling the user it's no longer supported.
16927
a547a745 169282009-04-13 Felix Zielcke <fzielcke@z-51.de>
16929
16930 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 16931 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 16932 `freebsd_loadenv' only when devices.hints exist.
16933
232a769c 169342009-04-13 Pavel Roskin <proski@gnu.org>
16935
16936 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
16937
c3012039 169382009-04-13 Felix Zielcke <fzielcke@z-51.de>
16939
16940 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
16941 partition number.
16942 (grub_drive): Likewise.
16943
234022fe 169442009-04-13 David S. Miller <davem@davemloft.net>
16945
16946 * kern/sparc64/ieee1275/ieee1275.c: New file.
16947 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
16948 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
16949 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
16950 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
16951 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
16952 grub_ieee1275_alloc_physmem): Declare new exported functions.
16953
d8e1836c 16954 * include/grub/sparc64/ieee1275/loader.h: New file.
16955 * include/grub/sparc64/ieee1275/memory.h: Likewise.
16956 * include/grub/sparc64/kernel.h: Likewise.
16957 * loader/sparc64/ieee1275/linux.c: Likewise.
16958
96bd81ec 16959 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
16960 (grub_fstest_SOURCES): Likewise.
16961
6a4737e5 16962 * util/hostdisk.c (make_device_name): Do not make any assumptions
16963 about the length of drive names.
16964
1d7a72fd 16965 * kern/dl.c (grub_dl_load_file): Close file immediately when
16966 we are done using it.
16967
56bc2471 169682009-04-12 David S. Miller <davem@davemloft.net>
16969
16970 * kern/misc.c (grub_ltoa): Fix cast when handling negative
16971 values. Noticed by Pavel Roskin.
16972
df38d0bb 16973 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
16974 target compiler.
7dd4a573 16975
e382e93a 16976 * genmk.rb: Add more flexible image type specification, also
16977 pass --strip-unneeded to objcopy.
16978 * conf/i386-pc.rmk: Use *_FORMAT.
16979 * conf/i386-pc.mk: Rebuilt.
16980
f5dbbca9 16981 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
16982 (OFDISK_HASH_SZ): Define.
16983 (ofdisk_hash): New hash table.
16984 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
16985 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
16986 instead of device phandle which is not unique.
16987
91c88b12 16988 * kern/sparc64/ieee1275/init.c: Delete, replace with...
16989 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
16990 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
16991 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
16992 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
16993 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
16994 GRUB_KERNEL_MACHINE_DATA_END): Define.
16995 (grub_kernel_image_size, grub_total_module_size): Declare.
16996
5b5d4aa5 169972009-04-12 Pavel Roskin <proski@gnu.org>
16998
7dd4a573 16999 * configure.ac: Change the logic when we check for target tools.
17000 Do it when the target is specified and it's different from the
17001 specified value of the host.
5b5d4aa5 17002
c91e1793 170032009-04-11 Felix Zielcke <fzielcke@z-51.de>
17004
17005 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
17006 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
17007 GNU/kFreeBSD. Check if a device is a character device. Use
17008 DIOCGMEDIASIZE to get the size.
17009 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
17010 support for GNU/kFreeBSD.
17011 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
17012 is a character device instead of a block device. Add support for
17013 FreeBSD device names.
17014
17015 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
17016 is a character device instead of a block device.
17017
17018 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
17019 is a character device instead of a block device.
17020
b1ac8644 170212009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
17022
17023 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
17024 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
17025 FreeBSD. Check if a device is a character device. Use
17026 DIOCGMEDIASIZE to get the size.
17027 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
17028 support for FreeBSD.
17029 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
17030 is a character device instead of a block device. Add support for
17031 FreeBSD device names.
17032
17033 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
17034 a character device instead of a block device.
17035 (grub_util_check_char_device): New function.
17036
17037 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
17038 a character device instead of a block device.
17039
17040 * include/grub/util/getroot.h (grub_util_check_char_device): New
17041 prototype.
17042
a3f7515a 170432009-04-11 David S. Miller <davem@davemloft.net>
17044
17045 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
17046 static libgcc.
17047 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
17048 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
17049 function, if present.
17050 (__bswapdi2): Likewise.
17051
0d44993d 17052 * include/grub/sparc64/ieee1275/boot.h: New file.
17053 * boot/sparc64/ieee1275/boot.S: Likewise.
17054 * boot/sparc64/ieee1275/diskboot.S: Likewise.
17055
ed3d2bc2 17056 * kern/misc.c (grub_ltoa): New function.
17057 (grub_vsprintf): Use it to format 'long' integers.
17058
d3bfb59c 170592009-04-10 David S. Miller <davem@davemloft.net>
17060
17061 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
17062 slots are of type grub_ieee1275_cell_t.
17063 (grub_nand_read): Likewise.
17064 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
17065 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
17066 macros are used to compare values in arg/ret block of the call.
17067 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
17068 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
17069 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
17070 grub_ieee1275_instance_to_path, grub_ieee1275_write,
17071 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
17072 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
17073 grub_ieee1275_close, grub_ieee1275_set_property,
17074 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
17075 grub_ieee1275_cell_t.
17076 * kern/ieee1275/openfw.c (grub_map): Likewise.
17077 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
17078 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
17079
450e2238 17080 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
17081 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
17082 (grub_devalias_iterate): Likewise.
17083
7dd4a573 170842009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 17085
17086 UFS improvements
17087
17088 * fs/ufs.c (INODE_NBLOCKS): new definition
17089 (struct grub_ufs_dirent): added fields for non-BSD dirents
17090 (grub_ufs_get_file_block): fixed double indirect handling
17091 (grub_ufs_lookup_symlink): use more robust way to determine whether
17092 symlink is inline
17093 (grub_ufs_find_file): support for non-BSD dirents
17094 (grub_ufs_dir): support for non-BSD dirents
17095
e7e6862a 170962009-04-10 Bean <bean123ch@gnail.com>
17097
17098 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
17099 attribute, otherwise the size would be wrong for i386 platform.
17100
17101 * include/grub/pci.h (grub_pci_read_word): New inline function.
17102 (grub_pci_read_byte): Likewise.
17103 (grub_pci_write): Likewise.
17104 (grub_pci_write_word): Likewise.
17105 (grub_pci_write_byte): Likewise.
17106
17107 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
17108
17109 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
17110 (find_framebuf): Scan pci to locate the frame buffer address.
17111
17112 * commands/efi/fixvideo.c: New file.
17113
17114 * commands/efi/loadbios.c: Likewise.
17115
17116 * commands/memrw.c: Likewise.
17117
17118 * util/grub-dumpbios.in: Likewise.
17119
17120 * conf/common.rmk (grub-dumpbios): New utility.
17121 (pkglib_MODULES): New module memrw.mod.
17122 (memrw_mod_SOURCE): New macro.
17123 (memrw_mod_CFLAGS): Likewise.
17124 (memrw_mod_LDFLAGS): Likewise.
17125
7dd4a573 17126 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 17127 fixvideo.mod.
17128 (loadbios_mod_SOURCE): New macro.
17129 (loadbios_mod_CFLAGS): Likewise.
17130 (loadbios_mod_LDFLAGS): Likewise.
17131 (fixvideo_mod_SOURCE): Likewise.
17132 (fixvideo_mod_CFLAGS): Likewise.
17133 (fixvideo_mod_LDFLAGS): Likewise.
17134
7dd4a573 17135 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 17136 fixvideo.mod.
17137 (loadbios_mod_SOURCE): New macro.
17138 (loadbios_mod_CFLAGS): Likewise.
17139 (loadbios_mod_LDFLAGS): Likewise.
17140 (fixvideo_mod_SOURCE): Likewise.
17141 (fixvideo_mod_CFLAGS): Likewise.
17142 (fixvideo_mod_LDFLAGS): Likewise.
17143
af63ada2 171442009-04-08 Felix Zielcke <fzielcke@z-51.de>
17145
17146 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
17147
c2cdde70 171482009-04-07 David S. Miller <davem@davemloft.net>
17149
17150 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
17151 support for R_SPARC_OLO10 relocations. Fix compile warning for
17152 R_SPARC_WDISP30 case.
ea3f72cf 17153 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 17154
761319cf 171552009-04-06 Pavel Roskin <proski@gnu.org>
17156
1007d1f5 17157 * include/grub/misc.h (ARRAY_SIZE): New macro.
17158 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
17159 New macro.
17160 * loader/i386/linux.c (allocate_pages): Use free_pages().
17161 (grub_linux_unload): Don't use free_pages().
17162 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
17163 wrong index. Treat all other modes as text modes.
17164 (grub_cmd_linux): Initialize vid_mode unconditionally to
17165 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
17166
761319cf 17167 * commands/help.c (print_command_help): Use cmd->prio, not
17168 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
17169
ea761d40 171702009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 17171
ea761d40 17172 Parttool
17173
17174 * parttool/pcpart.c: new file
17175 * commands/parttool.c: likewise
17176 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
17177 (parttool_mod_SOURCES): new variable
17178 (parttool_mod_CFLAGS): likewise
17179 (parttool_mod_LDFLAGS): likewise
17180 (pcpart_mod_SOURCES): likewise
17181 (pcpart_mod_CFLAGS): likewise
17182 (pcpart_mod_LDFLAGS): likewise
7dd4a573 17183 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 17184 and parttool/pcpart.c
17185 * conf/i386-efi.rmk: likewise
17186 * conf/i386-ieee1275.rmk: likewise
17187 * conf/i386-pc.rmk: likewise
17188 * conf/powerpc-ieee1275.rmk: likewise
17189 * conf/sparc64-ieee1275.rmk: likewise
17190 * conf/x86_64-ieee1275.rmk: likewise
17191
05aaebfb 171922009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17193
17194 Support for mtime and further expandability of dir command
17195
17196 * include/grub/lib/datetime.h: moved to ...
7dd4a573 17197 * include/grub/datetime.h: ... moved here and added
05aaebfb 17198 declaration of grub_unixtime2datetime. All users updated
7dd4a573 17199 * include/grub/fs.h: new syntax for dir and mtime functions in
17200 struct grub_fs
05aaebfb 17201 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
17202 and GRUB_FSHELP_FLAGS_MASK
17203 * commands/ls.c (grub_ls_list_files): Write mtime in long format
17204 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
17205 (grub_ext2_mtime): new function
17206 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
17207 (grub_hfsplus_mtime): new function
17208 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
17209 (GRUB_UFS_ATTR_FILE): likewise
17210 (GRUB_UFS_ATTR_LNK): likewise
17211 (struct grub_ufs_sblock): new fields mtime
17212 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
17213 all users updated
17214 (grub_ufs_dir): mtime support
17215 (grub_ufs_mtime): new function
17216 * fs/affs.c (grub_affs_dir): use new dir syntax
17217 * fs/afs.c (grub_afs_dir): likewise
17218 * fs/cpio.c (grub_cpio_dir): likewise
17219 * fs/fat.c (grub_fat_find_dir): likewise
17220 * fs/hfs.c (grub_hfs_dir): likewise
17221 * fs/iso9660.c (grub_iso9660_dir): likewise
17222 * fs/jfs.c (grub_jfs_dir): likewise
17223 * fs/minix.c (grub_minix_dir): likewise
17224 * fs/ntfs.c (grub_ntfs_dir): likewise
17225 * fs/reiserfs.c (grub_reiserfs_dir): likewise
17226 * fs/sfs.c (grub_sfs_dir): likewise
17227 * fs/xfs.c (grub_xfs_dir): likewise
17228 * util/hostfs.c (grub_hostfs_dir): likewise
17229 * lib/datetime.c: moved to ...
17230 * normal/datetime.c: ... moved here
17231 (grub_unixtime2datetime): new function
17232 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 17233 * normal/completion.c (iterate_dir): use new dir syntax
17234 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 17235 last modification time of a volume
7dd4a573 17236 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 17237 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 17238 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 17239 (normal_mod_SOURCES): likewise
17240 (datetime_mod_SOURCES): Removed lib/datetime.c
17241 * conf/i386-efi.rmk: likewise
7dd4a573 17242 * conf/i386-ieee1275.rmk: likewise
05aaebfb 17243 * conf/i386-pc.rmk: likewise
17244 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 17245 * conf/sparc64-ieee1275.rmk: likewise
17246 * conf/x86_64-efi.rmk: likewise
05aaebfb 17247
8a7e1a14 172482009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 17251
17252 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 17253 on grub_fat_find_dir
17254 (grub_fat_find_dir): use grub_fat_iterate_dir
17255 (grub_fat_label): likewise
17256
04186a9c 172572009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
17258
7dd4a573 17259 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 17260 and command.h
17261 remove extraneous kernel_elf_HEADERS
17262
da4c0bb6 172632009-04-04 Bean <bean123ch@gnail.com>
17264
17265 * include/grub/util/misc.h: Add dummy function fsync for mingw.
17266
17267 * util/misc.c: Likewise.
17268
54ad9555 172692009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
17270
17271 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
17272 instead of grub_printf.
17273
7a6bf9f2 172742009-04-03 Robert Millan <rmh@aybabtu.com>
17275
17276 * loader/i386/linux.c (grub_linux_setup_video): Fill
17277 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
17278 values from `mode info' structure instead of hardcoded
17279 values.
17280
3fcc2083 172812009-04-01 Pavel Roskin <proski@gnu.org>
17282
17283 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
17284 unused now.
17285 * genmk.rb: Likewise.
17286 * configure.ac: Likewise.
17287
5ec9740b 172882009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
17289
17290 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
17291 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
17292
5270cec8 172932009-04-01 David S. Miller <davem@davemloft.net>
17294
17295 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 17296 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 17297 (grub_setjmp): Mark with 'returns_twice' attribute.
17298 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
17299 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
17300 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
17301
9c3dd854 173022009-04-01 Robert Millan <rmh@aybabtu.com>
17303
17304 Reapply fix from 2008-07-28 which was accidentally reverted; also
17305 perform the same fix to a similar check in same function.
17306
17307 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
17308 with the same number are found, just use issue a warning with
17309 grub_dprintf(), as this error has been reported to be non-fatal.
17310
0d818b7e 173112009-03-31 Pavel Roskin <proski@gnu.org>
17312
17313 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
17314 for cross-compilation.
17315
95646d92 173162009-03-30 Robert Millan <rmh@aybabtu.com>
17317
17318 Fix i386-ieee1275 build.
17319
17320 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
17321 Remove declaration.
17322
6a003ed1 173232009-03-30 Pavel Roskin <proski@gnu.org>
17324
17325 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
17326 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
17327 zero-terminated, rely only on the strlen value. Fix comparison
17328 of strings differing in length.
17329
92f33540 173302009-03-30 Robert Millan <rmh@aybabtu.com>
17331
17332 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
17333 checking for abi version. Improve error messages on BIOS to notify
17334 user about `linux16' command.
17335
a8c48fd5 173362009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17337
f968172e 17338 Leak fixes
a8c48fd5 17339
f968172e 17340 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
17341 in case of collision
17342 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 17343
9c323f09 173442009-03-29 Robert Millan <rmh@aybabtu.com>
17345
17346 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
17347 set `vid_mode' accordingly.
17348 (grub_linux_boot): Process `vid_mode' and set video mode.
17349
ae68f423 173502009-03-29 Robert Millan <rmh@aybabtu.com>
17351
17352 * util/grub.d/10_linux.in (linux_entry): New function.
17353 Factorize generation of Linux boot entries.
17354
5709cfc4 173552009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
17356
17357 Make the format of Environment Block plain text. The boot loader
17358 part is not tested well yet.
7dd4a573 17359
5709cfc4 17360 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
17361 (buffer): Removed.
17362 (envblk): Likewise.
17363 (usage): Remove "info" and "clear". Add "unset". Update the
17364 description of "set", as this does not delete variables any
17365 longer.
17366 (create_envblk_file): Complete rewrite.
17367 (open_envblk_file): Likewise.
17368 (cmd_info): Removed.
17369 (cmd_list): Likewise.
17370 (cmd_set): Likewise.
17371 (cmd_clear): Likewise.
17372 (list_variables): New function.
17373 (write_envblk): Likewise.
17374 (set_variables): Likewise.
17375 (unset_variables): Likewise.
17376 (main): Complete rewrite.
17377
17378 * commands/loadenv.c (buffer): Removed.
17379 (envblk): Likewise.
17380 (open_envblk_file): New function.
17381 (read_envblk_file): Complete rewrite.
17382 (grub_cmd_load_env): Likewise.
17383 (grub_cmd_list_env): Likewise.
17384 (struct blocklist): New struct.
17385 (free_blocklists): New function.
17386 (check_blocklists): Likewise.
17387 (write_blocklists): Likewise.
17388 (grub_cmd_save_env): Complete rewrite.
17389
17390 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
17391 a plain text signature.
17392 (GRUB_ENVBLK_MAXLEN): Removed.
17393 (struct grub_envblk): Complete rewrite.
17394 (grub_envblk_find): Removed.
17395 (grub_envblk_insert): Likewise.
17396 (grub_envblk_open): New prototype.
17397 (grub_envblk_set): Likewise.
17398 (grub_envblk_delete): Put const to VALUE.
17399 (grub_envblk_iterate): Put const to NAME and VALUE.
17400 (grub_envblk_close): New prototype.
17401 (grub_envblk_buffer): New inline function.
17402 (grub_envblk_size): Likewise.
17403
17404 * lib/envblk.c: Include grub/mm.h.
17405 (grub_env_find): Removed.
17406 (grub_envblk_open): New function.
17407 (grub_envblk_close): Likewise.
17408 (escaped_value_len): Likewise.
17409 (find_next_line): Likewise.
17410 (grub_envblk_insert): Removed.
17411 (grub_envblk_set): New function.
17412 (grub_envblk_delete): Complete rewrite.
17413 (grub_envblk_iterate): Likewise.
17414
a9368fd3 174152009-03-28 Robert Millan <rmh@aybabtu.com>
17416
17417 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
17418 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
17419 variables. Use 16-bit loader.
17420 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
17421 loader.
17422 * kern/i386/loader.S (grub_linux_boot): Rename to ...
17423 (grub_linux16_boot): ... this. Update all users.
17424 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
17425 (grub_linux_boot): ... this. Update all users.
17426
17427 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
17428 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
17429 commands to `linux16' and `initrd16'.
17430 (GRUB_MOD_FINI(linux)): Rename to ...
17431 (GRUB_MOD_FINI(linux16)): ... this.
17432
e4dd5a7e 174332009-03-24 Pavel Roskin <proski@gnu.org>
17434
17435 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
17436 not just for compilation.
17437
c04d6e05 174382009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
17439
17440 Move multiboot helper out of kernel
17441
17442 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
17443 `loader/i386/multiboot_helper.S'.
17444 * conf/i386-coreboot.rmk: Likewise
17445 * conf/i386-ieee1275.rmk: Likewise
17446
17447 * kern/i386/loader.S: Move multiboot helpers from here...
17448 * loader/i386/multiboot_helper.S: ...moved here
17449 * include/grub/i386/loader.h: Move declarations of multiboot
17450 helpers from here...
17451 * include/grub/i386/multiboot.h: ...moved here
17452 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
17453
42a5b3fc 174542009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
17455
17456 * kern/env.c (grub_env_context_open): Added an argument to specify
17457 whether a new context inherits exported variables from current
17458 one. This is useful when making a sandbox to interpret a config
17459 file.
17460 All callers updated.
17461
17462 * include/grub/env.h (grub_env_context_open): Updated the prototype.
17463
b28bbc4e 174642009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
17465
17466 * kern/env.c (grub_env_context_close): Fix memory leaks.
17467
f04f02e4 174682009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
17469
17470 * normal/main.c (grub_normal_execute): Added an argument
17471 BATCH to specify if an interactive interface should be provided
17472 after reading a config file.
17473 All callers updated.
17474 (read_command_list): Prevent being executed twice.
17475 (read_fs_list): Likewise.
17476
42a5b3fc 17477 * include/grub/normal.h (grub_normal_execute): Updated the
17478 prototype.
f04f02e4 17479
41473ac2 174802009-03-22 Pavel Roskin <proski@gno.org>
17481
fbc00b0c 17482 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
17483 _start.
17484 * kern/i386/pc/startup.S: Likewise.
17485 * kern/i386/efi/startup.S: Likewise.
17486 * kern/i386/ieee1275/startup.S: Likewise.
17487 * kern/i386/coreboot/startup.S: Likewise.
17488 * kern/x86_64/efi/startup.S: Likewise.
17489
41473ac2 17490 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
17491 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
17492 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
17493
2274cc8f 174942009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
17495
17496 Bugfixes in multiboot for bugs uncovered by solaris kernel.
17497
17498 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
17499 limit detection.
17500 Use vaddr of correct segment for entry_point.
17501
b1b797cb 175022009-03-21 Bean <bean123ch@gmail.com>
17503
17504 * commands/blocklist.c: Add include file <grub/command.h>, remove
17505 <grub/normal.h> and <grub/arg.h>.
17506 (grub_cmd_blocklist): Use the new command interface.
17507 (GRUB_MOD_INIT): Likewise.
17508 (GRUB_MOD_FINI): Likewise.
17509 * commands/boot.c: Likewise.
17510 * commands/cat.c: Likewise.
17511 * commands/cmp.c: Likewise.
17512 * commands/configfile.c: Likewise.
17513 * commands/crc.c: Likewise.
17514 * commands/echo.c: Likewise.
17515 * commands/halt.c: Likewise.
17516 * commands/handler.c: Likewise.
17517 * commands/hdparm.c: Likewise.
17518 * commands/help.c: Likewise.
17519 * commands/hexdump.c: Likewise.
17520 * commands/loadenv.c: Likewise.
17521 * commands/ls.c: Likewise.
17522 * commands/lsmmap.c: Likewise.
17523 * commands/lspci.c: Likewise.
17524 * commands/loadenv.c: Likewise.
17525 * commands/read.c: Likewise.
17526 * commands/reboot.c: Likewise.
17527 * commands/search.c: Likewise.
17528 * commands/sleep.c: Likewise.
17529 * commands/test.c: Likewise.
17530 * commands/usbtest.c: Likewise.
17531 * commands/videotest.c: Likewise.
17532 * commands/i386/cpuid.c: Likewise.
17533 * commands/i386/pc/halt.c: Likewise.
17534 * commands/i386/pc/play.c: Likewise.
17535 * commands/i386/pc/pxecmd.c: Likewise.
17536 * commands/i386/pc/vbeinfo.c: Likewise.
17537 * commands/i386/pc/vbetest.c: Likewise.
17538 * commands/ieee1275/suspend.c: Likewise.
17539 * disk/loopback.c: Likewise.
17540 * font/font_cmd.c: Likewise.
17541 * hello/hello.c: Likewise.
17542 * loader/efi/appleloader.c: Likewise.
17543 * loader/efi/chainloader.c: Likewise.
17544 * loader/i386/bsd.c: Likewise.
17545 * loader/i386/efi/linux.c: Likewise.
17546 * loader/i386/ieee1275/linux.c: Likewise.
17547 * loader/i386/linux.c: Likewise.
17548 * loader/i386/pc/chainloader.c: Likewise.
17549 * loader/i386/pc/linux.c: Likewise.
17550 * loader/powerpc/ieee1275/linux.c: Likewise.
17551 * loader/multiboot_loader.c: Likewise.
17552 * term/gfxterm.c: Likewise.
17553 * term/i386/pc/serial.c: Likewise.
17554 * term/terminfo.c: Likewise.
17555
17556 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
17557 * term/i386/pc/vga.c: Likewise.
17558 * video/readers/jpeg.c: Likewise.
17559 * video/readers/png.c: Likewise.
17560 * video/readers/tga.c: Likewise.
17561
17562 * util/grub-fstest (cmd_loopback): Removed.
17563 (cmd_blocklist): Likewise.
17564 (cmd_ls): Likewise.
17565 (grub_register_command): Likewise.
17566 (grub_unregister_command): Likewise.
17567 (execute_command): Use grub_command_find to locate command and execute
17568 it.
17569
17570 * include/grub/efi/chainloader.h: Removed.
17571 * loader/efi/chainloader_normal.c: Likewise.
17572 * loader/i386/bsd_normal.c: Likewise.
17573 * loader/i386/pc/chainloader_normal.c: Likewise.
17574 * loader/i386/pc/multiboot_normal.c: Likewise.
17575 * loader/linux_normal.c: Likewise.
17576 * loader/multiboot_loader_normal.c: Likewise.
17577 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
17578
17579 * gencmdlist.sh: Scan new registration command grub_register_extcmd
17580 and grub_register_command_p1.
17581
17582 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
17583 kern/command.c, lib/arg.c and commands/extcmd.c.
17584 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
17585 (minicmd_mod_SOURCES): New variable.
17586 (minicmd_mod_CFLAGS): Likewise.
17587 (minicmd_mod_LDFLAGS): Likewise.
17588 (extcmd_mod_SOURCES): Likewise.
17589 (extcmd_mod_CFLAGS): Likewise.
17590 (extcmd_mod_LDFLAGS): Likewise.
17591 (boot_mod_SOURCES): Removed.
17592 (boot_mod_CFLAGS): Likewise.
17593 (boot_mod_LDFLAGS): Likewise.
17594
17595 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
17596 kern/corecmd.c.
17597 (kernel_img_HEADERS): Add command.h.
17598 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
17599 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
17600 and lib/arg.c.
17601 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
17602 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
17603 remove the corresponding normal mode command.
17604 (normal_mod_SOURCES): Remove normal/arg.c.
17605 * conf/i386-coreboot.rmk: Likewise.
17606 * conf/i386-efi.rmk: Likewise.
17607 * conf/i386-ieee1275.rmk: Likewise.
17608 * conf/powerpc-ieee1275.rmk: Likewise.
17609 * conf/x86_64-efi.rmk: Likewise.
17610
17611 * include/grub/arg.h: Move from here ...
17612 * include/grub/lib/arg.h: ... to here.
17613
17614 * normal/arg.c: Move from here ...
17615 * lib/arg.c: ... to here.
17616
17617 * commands/extcmd.c: New file.
17618 * commands/minicmd.c: Likewise.
17619 * include/grub/command.h: Likewise.
17620 * include/grub/extcmd.h: Likewise.
17621 * kern/command.c: Likewise.
17622 * kern/corecmd.c: Likewise.
17623
17624 * kern/list.c (grub_list_iterate): Return int instead of void.
17625 (grub_list_insert): New function.
17626 (grub_prio_list_insert): Likewise.
17627
17628 * kern/rescue.c (grub_rescue_command): Removed.
17629 (grub_rescue_command_list): Likewise.
17630 (grub_rescue_register_command): Likewise.
17631 (grub_rescue_unregister_command): Likewise.
17632 (grub_rescue_cmd_boot): Move to minicmd.c
17633 (grub_rescue_cmd_help): Likewise.
17634 (grub_rescue_cmd_info): Likewise.
17635 (grub_rescue_cmd_boot): Likewise.
17636 (grub_rescue_cmd_testload): Likewise.
17637 (grub_rescue_cmd_dump): Likewise.
17638 (grub_rescue_cmd_rmmod): Likewise.
17639 (grub_rescue_cmd_lsmod): Likewise.
17640 (grub_rescue_cmd_exit): Likewise.
17641 (grub_rescue_print_devices): Moved to corecmd.c.
17642 (grub_rescue_print_files): Likewise.
17643 (grub_rescue_cmd_ls): Likewise.
17644 (grub_rescue_cmd_insmod): Likewise.
17645 (grub_rescue_cmd_set): Likewise.
17646 (grub_rescue_cmd_unset): Likewise.
7d074e3c 17647 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 17648 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 17649 commands, remove grub_rescue_register_command calls.
b1b797cb 17650
7d074e3c 17651 * normal/command.c (grub_register_command): Removed.
b1b797cb 17652 (grub_unregister_command): Likewise.
17653 (grub_command_find): Likewise.
17654 (grub_iterate_commands): Likewise.
17655 (rescue_command): Likewise.
17656 (export_command): Moved to corecmd.c.
17657 (set_command): Removed.
17658 (unset_command): Likewise.
17659 (insmod_command): Likewise.
17660 (rmmod_command): Likewise.
17661 (lsmod_command): Likewise.
17662 (grub_command_init): Likewise.
17663
17664 * normal/completion.c (iterate_command): Use cmd->prio to check for
17665 active command.
17666 (complete_arguments): Use grub_extcmd_t structure to find options.
17667 (grub_normal_do_completion): Change function grub_iterate_commands to
17668 grub_command_iterate.
17669
17670 * normal/execute.c (grub_script_execute_cmd): No need to parse
17671 argument here.
17672
17673 * normal/main.c (grub_dyncmd_dispatcher): New function.
17674 (read_command_list): Register unload commands as dyncmd.
17675 (grub_cmd_normal): Use new command interface, register rescue,
17676 unregister normal at entry, register normal, unregister rescue at exit.
17677
17678 * include/grub/list.h (grub_list_test_t): New type.
17679 (grub_list_iterate): Return int instead of void.
17680 (grub_list_insert): New function.
17681 (GRUB_AS_NAMED_LIST_P): New macro.
17682 (GRUB_AS_PRIO_LIST): Likewise.
17683 (GRUB_AS_PRIO_LIST_P): Likewise.
17684 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
17685 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
17686 (grub_prio_list): New structure.
17687 (grub_prio_list_insert): New function.
17688 (grub_prio_list_remove): New inline function.
17689
17690 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
17691 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
17692 (GRUB_COMMAND_FLAG_MENU): Likewise.
17693 (GRUB_COMMAND_FLAG_BOTH): Likewise.
17694 (GRUB_COMMAND_FLAG_TITLE): Likewise.
17695 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
17696 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
17697 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
17698 (grub_command): Likewise.
17699 (grub_register_command): Likewise.
17700 (grub_command_find): Likewise.
17701 (grub_iterate_commands): Likewise.
17702 (grub_command_init): Likewise.
17703 (grub_arg_parse): Likewise.
17704 (grub_arg_show_help): Likewise.
17705
17706 * include/grub/rescue.h (grub_rescue_register_command): Removed.
17707 (grub_rescue_unregister_command): Likewise.
17708
17709 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
17710 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
17711 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
17712
17713 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
17714 grub_rescue_cmd_initrd.
17715 * include/grub/i386/loader.h: Likewise.
17716 * include/grub/x86_64/loader.h: Likewise.
17717
17718 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
17719
1f4147aa 177202009-03-21 Bean <bean123ch@gmail.com>
17721
17722 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
17723 instead of stat in mingw environment.
17724
17725 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
17726
17727 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
17728
17729 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
17730 AC_CONFIG_LINKS.
17731
2156d5ba 177322009-03-21 Bean <bean123ch@gmail.com>
17733
17734 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
17735 out of range error.
17736
177b82ca 177372009-03-18 Michel Dänzer <michel@daenzer.net>
17738
17739 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
17740 checking inode flags for EXT4_EXTENTS_FLAG.
17741
14aad807 177422009-03-18 Robert Millan <rmh@aybabtu.com>
17743
17744 * loader/i386/linux.c: Include `<grub/video.h>' and
17745 `<grub/i386/pc/vbe.h>'..
17746 (grub_linux_setup_video): New function. Loosely based on the EFI one.
17747 (grub_linux32_boot): Attempt to configure video settings with
17748 grub_linux_setup_video().
17749 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
17750 to avoid grub_console_fini() which would step out of graphical mode
17751 unconditionally.
17752
8cf83a27 177532009-03-14 Robert Millan <rmh@aybabtu.com>
17754
17755 Fix build on powerpc.
17756 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
17757
40164e75 177582009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
17759
17760 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
17761 background image command.
17762
c58bc32a 177632009-03-12 Colin D Bennett <colin@gibibit.com>
17764
17765 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
17766 (grub_gfxterm_putchar): Extract pairs of identical calls to
17767 draw_cursor out of conditional blocks.
17768
5415144a 177692009-03-11 Pavel Roskin <proski@gnu.org>
17770
17771 * fs/hfs.c (grub_hfs_strncasecmp): New function.
17772 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
17773
6394042e 177742009-03-11 Robert Millan <rmh@aybabtu.com>
17775
17776 * loader/i386/multiboot_elfxx.c
17777 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
17778
b7b50e5f 177792009-03-11 Felix Zielcke <fzielcke@z-51.de>
17780
17781 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
17782 `kern/handler.c'.
17783
1ca7fc96 177842009-03-11 Robert Millan <rmh@aybabtu.com>
17785
17786 * loader/i386/multiboot.c (code_size): New variable.
17787 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 17788 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 17789 4-byte alignment to MBI and others by increasing
7d074e3c 17790 `boot_loader_name_length' appropriately.
1ca7fc96 17791
17792 * loader/i386/multiboot_elfxx.c
17793 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
17794
a83ea1d2 177952009-03-09 Felix Zielcke <fzielcke@z-51.de>
17796
17797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
17798 `fs/ext2.c'.
17799
aa9f3bff 178002009-03-08 Robert Millan <rmh@aybabtu.com>
17801
17802 Make loader/i386/linux.c usable on i386-pc again.
17803
17804 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
17805 memory to heap.
17806 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
17807 `#error' stanza.
17808
d8b3b60e 178092009-03-07 Bean <bean123ch@gmail.com>
17810
17811 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
17812 allocation.
17813
b362c9e9 178142009-03-06 Robert Millan <rmh@aybabtu.com>
17815
17816 Fix display issue on terminals with screen size other than 80x25
17817 (e.g. gfxterm with resolution higher than 640x480).
17818
17819 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 17820 position relative to the center of the terminal instead of relying
b362c9e9 17821 on a hardcoded offset.
17822
9304eef1 178232009-03-04 Robert Millan <rmh@aybabtu.com>
17824
17825 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
17826 installed.
17827
17828 * Makefile.in (host_kernel): New variable.
17829 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
17830 scripts instead of just the windows one.
17831 * configure.ac: Initialize and AC_SUBST `host_kernel'.
17832
eabc95fb 178332009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 17834
17835 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
17836 `kern/handler.c'.
17837 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17838 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17839 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17841 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17842 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17843
ceb1223c 178442009-03-04 Felix Zielcke <fzielcke@z-51.de>
17845
17846 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
17847 or if there's no space for the disk label and print the partition number on a
17848 invalid magic.
17849
4910684a 178502009-03-04 Felix Zielcke <fzielcke@z-51.de>
17851
17852 * util/misc.c: Include <time.h>.
17853 (grub_millisleep): New function.
17854
7e9ca17a 178552009-03-04 Bean <bean123ch@gmail.com>
17856
17857 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
17858 another option -mno-red-zone.
17859
17860 * commands/handler.c: Change module description.
17861
17862 * kern/handler.c: Add missing space at the end of description line.
17863
17864 * kern/list.c: Likewise.
17865
f501677c 178662009-03-03 Robert Millan <rmh@aybabtu.com>
17867
17868 Move more components to the relocation area, and fix mbi pointer
17869 handling to use the destination rather than the origin (thanks to
17870 Vladimir Serbinenko for spotting).
17871
17872 * loader/i386/multiboot.c (mbi_dest): New variable.
17873 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
17874 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
17875 relocation area.
17876
9902d047 178772009-03-01 Bean <bean123ch@gmail.com>
17878
50fb7002 17879 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 17880 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
17881 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
17882 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
17883
17884 * loader/i386/efi/linux.c (acpi_guid): New variable.
17885 (acpi_guid): Likewise.
17886 (EBDA_SEG_ADDR): New constant.
17887 (LOW_MEM_ADDR): Likewise.
17888 (FAKE_EBDA_SEG): Likewise.
17889 (fake_bios_data): New function.
17890 (grub_linux_boot): Call fake_bios_data.
17891
71b9f361 178922009-03-01 Bean <bean123ch@gmail.com>
17893
17894 * commands/terminal.c: Removed.
17895
17896 * commands/handler.c: New file.
17897
17898 * include/grub/list.h: Likewise.
17899
17900 * include/grub/handler.h: Likewise.
17901
17902 * kern/list.c: Likewise.
17903
17904 * kern/handler.c: Likewise.
17905
17906 * kern/term.h: Include header file <grub/handler.h>.
17907 (grub_term_input): Move next field to the beginning.
17908 (grub_term_output): Likewise.
17909 (grub_term_input_class): New variable.
17910 (grub_term_output_class): Likewise.
17911 (grub_term_register_input): Changed to inline function.
17912 (grub_term_register_output): Likewise.
17913 (grub_term_unregister_input): Likewise.
17914 (grub_term_unregister_output): Likewise.
17915 (grub_term_set_current_input): Likewise.
17916 (grub_term_set_current_output): Likewise.
17917 (grub_term_get_current_input): Likewise.
17918 (grub_term_get_current_output): Likewise.
17919 (grub_term_iterate_input): Removed.
17920 (grub_term_iterate_output): Likewise.
17921
17922 * kern/term.c (grub_term_list_input): Removed.
17923 (grub_term_list_output): Likewise.
17924 (grub_term_input_class): New variable.
17925 (grub_term_output_class): Likewise.
50fb7002 17926 (grub_cur_term_input): Change variable as macro.
71b9f361 17927 (grub_cur_term_output): Likewise.
17928 (grub_term_register_input): Removed.
17929 (grub_term_register_output): Likewise.
17930 (grub_term_unregister_input): Likewise.
17931 (grub_term_unregister_output): Likewise.
17932 (grub_term_set_current_input): Likewise.
17933 (grub_term_set_current_output): Likewise.
17934 (grub_term_iterate_input): Likewise.
17935 (grub_term_iterate_output): Likewise.
17936 (grub_term_get_current_input): Likewise.
17937 (grub_term_get_current_output): Likewise.
17938
17939 * util/grub-editenv.c: Include header file <grub/handler.h>.
17940 (grub_term_get_current_input): Removed.
17941 (grub_term_get_current_output): Likewise.
17942 (grub_term_input_class): New variable.
50fb7002 17943 (grub_term_output_class): Likewise.
71b9f361 17944
17945 * util/grub-fstest.c (grub_term_get_current_input): Removed.
17946 (grub_term_get_current_output): Likewise.
17947 (grub_term_input_class): New variable.
50fb7002 17948 (grub_term_output_class): Likewise.
71b9f361 17949
17950 * util/grub-probe.c (grub_term_get_current_input): Removed.
17951 (grub_term_get_current_output): Likewise.
17952 (grub_term_input_class): New variable.
50fb7002 17953 (grub_term_output_class): Likewise.
71b9f361 17954
17955 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
17956 (grub_term_get_current_output): Likewise.
17957 (grub_term_input_class): New variable.
50fb7002 17958 (grub_term_output_class): Likewise.
71b9f361 17959
17960 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
17961 (terminal_mod_SOURCES): Likewise.
17962 (terminal_mod_CFLAGS): Likewise.
17963 (terminal_mod_LDFLAGS): Likewise.
17964
17965 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
17966 handler.c.
17967 (kernel_img_SOURCES): Add list.c and handler.c.
17968 (kernel_img_HEADERS): Add list.h and handler.h.
17969
17970 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
17971 handler.c.
17972 (kernel_mod_SOURCES): Add list.c and handler.c.
17973 (kernel_mod_HEADERS): Add list.h and handler.h.
17974
17975 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
17976 handler.c.
17977 (kernel_elf_SOURCES): Add list.c and handler.c.
17978 (kernel_elf_HEADERS): Add list.h and handler.h.
17979
17980 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
17981 handler.c.
17982 (kernel_elf_SOURCES): Add list.c and handler.c.
17983 (kernel_elf_HEADERS): Add list.h and handler.h.
17984
17985 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
17986 handler.c.
17987 (kernel_mod_SOURCES): Add list.c and handler.c.
17988 (kernel_mod_HEADERS): Add list.h and handler.h.
17989
17990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
17991 handler.c.
17992 (kernel_elf_SOURCES): Add list.c and handler.c.
17993 (kernel_elf_HEADERS): Add list.h and handler.h.
17994
8a31787f 179952009-02-27 Robert Millan <rmh@aybabtu.com>
17996
17997 Factorize elf32 / elf64 code in Multiboot loader. This will
17998 prevent it from getting out of sync again.
17999
18000 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
18001 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
18002 grub_multiboot_load_elf64): Move from here ...
18003 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
18004 grub_multiboot_load_elf): ... to here (new file).
18005
51cd3dfc 180062009-02-27 Robert Millan <rmh@aybabtu.com>
18007
18008 * util/grub.d/10_linux.in: Rename "single-user mode" to
18009 "recovery mode".
18010
6e8c9c3a 180112009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
18012
18013 Don't leak in SCSI code.
18014 * disk/scsi.c (grub_scsi_close): free `scsi'.
18015
4b6bf4f9 180162009-02-27 Robert Millan <rmh@aybabtu.com>
18017
18018 * loader/i386/pc/multiboot.c: Move from here ...
18019 * loader/i386/multiboot.c: ... to here. Update all users.
18020
b9413424 180212009-02-27 Robert Millan <rmh@aybabtu.com>
18022
18023 Patch from Alexandre Bique <bique.alexandre@gmail.com>
18024 * util/i386/pc/grub-setup.c (setup): Fix directory path.
18025
50fb7002 180262009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 18027
18028 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
18029 b-tree.
18030
8cc50345 180312009-02-27 Robert Millan <rmh@aybabtu.com>
18032
18033 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
18034 `0x' qualifier as 0 when base is specified as parameter).
18035
6e09b8b7 180362009-02-24 Bean <bean123ch@gmail.com>
18037
18038 * configure.ac: Check for -mcmodel=large in x86_64 target.
18039
18040 * include/grub/efi/api.h (efi_call_10): New macro.
18041 (efi_wrap_10): New function.
18042
18043 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
18044 (GRUB_PE32_REL_BASED_HIGH): Likewise.
18045 (GRUB_PE32_REL_BASED_LOW): Likewise.
18046 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
18047 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
18048 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
18049 (GRUB_PE32_REL_BASED_SECTION): Likewise.
18050 (GRUB_PE32_REL_BASED_REL): Likewise.
18051 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
18052 (GRUB_PE32_REL_BASED_DIR64): Likewise.
18053 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
18054
18055 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
18056 issue.
18057
18058 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
18059 (efi_wrap_10): New function.
18060
18061 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
18062
18063 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
18064 MB/MBP model (NV chipset).
18065 (devdata_devs): Add devpath_5 to the list.
18066
18067 * load/i386/efi/linux.c (video_base): Remove variable.
18068 (RGB_MASK): New macro.
18069 (RGB_MAGIC): Likewise.
18070 (LINE_MIN): Likewise.
18071 (LINE_MAX): Likewise.
18072 (FBTEST_STEP): Likewise.
18073 (FBTEST_COUNT): Likewise.
18074 (fb_list): New variable.
18075 (grub_find_video_card): Remove function.
18076 (find_framebuf): New function.
18077 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
18078 line length.
18079
18080 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
18081 problem for x86_64.
18082
74b21bee 180832009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
18084
18085 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
18086
18087 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
18088 coding tool name.
18089
a455f472 180902009-02-22 Robert Millan <rmh@aybabtu.com>
18091
18092 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
18093 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
18094 in our relocation, instead of using it directly from heap. Also
18095 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
18096
6374daf3 180972009-02-21 Robert Millan <rmh@aybabtu.com>
18098
18099 Implement USB keyboard support (based on patch by Marco Gerards)
18100
18101 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
18102 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
18103 (usb_keyboard_mod_LDFLAGS): New variables.
18104
18105 * term/usb_keyboard.c: New file.
18106
8fa4ea70 181072009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18108
18109 Corrected wrong declaration
18110
18111 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
18112
353976ac 181132009-02-14 Christian Franke <franke@computer.org>
18114
18115 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
18116 (grub_lspci_iter): Print class code and programming interface byte.
18117
6aa1169b 181182009-02-14 Christian Franke <franke@computer.org>
18119
18120 * gendistlist.sh: Ignore `.svn' directories.
18121
265372ca 181222009-02-14 Felix Zielcke <fzielcke@z-51.de>
18123
18124 * fs/fat.c: Add 2009 to Copyright line.
18125
9ff516f3 181262009-02-14 Christian Franke <franke@computer.org>
18127
18128 * commands/hdparm.c: New file. Provides `hdparm' command
18129 which sends ATA commands via grub_disk_ata_pass_through ().
18130
18131 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
18132
18133 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
18134 and <grub/cpu/io.h> to include/grub/ata.h.
18135 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
18136 (GRUB_CDROM_SECTOR_SIZE): Remove.
18137 (GRUB_ATA_*): Move to include/grub/ata.h.
18138 (GRUB_ATAPI_*): Likewise.
18139 (enum grub_ata_commands): Likewise.
18140 (enum grub_ata_timeout_milliseconds): Likewise.
18141 (struct grub_ata_device): Likewise.
18142 (grub_ata_regset): Likewise.
18143 (grub_ata_regget): Likewise.
18144 (grub_ata_regset2): Likewise.
18145 (grub_ata_regget2): Likewise.
18146 (grub_ata_check_ready): Likewise.
18147 (grub_ata_wait_not_busy): Remove static, exported in
18148 include/grub/ata.h.
18149 (grub_ata_wait_drq): Likewise.
18150 (grub_ata_pio_read): Likewise.
18151
18152 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
18153 function for hdparm.mod.
18154
18155 * include/grub/ata.h: New file, contains declarations from
18156 disk/ata.c.
18157 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
18158
18159 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
18160 (grub_disk_ata_pass_through): New exported variable.
18161
18162 * kern/disk.c (grub_disk_ata_pass_through): New variable.
18163
772e23da 181642009-02-13 Colin D Bennett <colin@gibibit.com>
18165
18166 Support multiple fallback entries, and provide an API to support
18167 executing default+fallback menu entries. Renamed the `terminal' menu
18168 viewer to `text'.
18169
18170 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
18171 variable declaration.
18172 (grub_menu_execute_callback): New structure declaration.
18173 (grub_menu_execute_callback_t): New typedef.
18174 (grub_menu_execute_with_fallback): New function declaration.
18175 (grub_menu_get_entry): Likewise.
18176 (grub_menu_get_timeout): Likewise.
18177 (grub_menu_set_timeout): Likewise.
18178
18179 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
18180
18181 * normal/menu.c (grub_wait_after_message): Moved to
18182 `normal/menu_text.c'.
18183 (draw_border): Likewise.
18184 (print_message): Likewise.
18185 (print_entry): Likewise.
18186 (print_entries): Likewise.
18187 (grub_menu_init_page): Likewise.
18188 (get_entry_number): Likewise.
18189 (print_timeout): Likewise.
18190 (run_menu): Likewise.
18191 (grub_menu_execute_entry): Likewise.
18192 (show_text_menu): Likewise.
18193 (get_and_remove_first_entry_number): New function.
18194 (grub_menu_execute_with_fallback): Likewise.
18195 (get_entry): Renamed to ...
18196 (grub_menu_get_entry): .. this and made it global.
18197 (get_timeout): Renamed to ...
18198 (grub_menu_get_timeout): ... this and made it global.
18199 (set_timeout): Renamed to ...
18200 (grub_menu_set_timeout): ... this and made it global.
18201 (grub_normal_terminal_menu_viewer): Renamed to ...
18202 (grub_normal_text_menu_viewer): ... this.
18203
18204 * normal/menu_text.c: New file. Extracted text-menu-specific code
18205 from normal/menu.c.
18206
18207 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
18208 (normal_mod_SOURCES): Likewise.
18209
18210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18211 (normal_mod_SOURCES): Likewise.
18212
18213 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18214 (normal_mod_SOURCES): Likewise.
18215
18216 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
18217 (normal_mod_SOURCES): Likewise.
18218
18219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18220 (normal_mod_SOURCES): Likewise.
18221
18222 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18223 (normal_mod_SOURCES): Likewise.
18224
18225 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18226 (normal_mod_SOURCES): Likewise.
18227
16ac430e 182282009-02-11 Robert Millan <rmh@aybabtu.com>
18229
18230 * util/grub.d/00_header.in: Update old reference to `font' command.
18231
06ff20fc 182322009-02-10 Felix Zielcke <fzielcke@z-51.de>
18233
18234 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
18235
18236 Based on patch from Javier Martín.
18237
96da9407 182382009-02-09 Felix Zielcke <fzielcke@z-51.de>
18239
18240 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 18241 to avoid false positives with FAT.
96da9407 18242 (grub_fstest_SOURCES): Likewise.
18243 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18244 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18246 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18247 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18248 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18249
6dca6fe4 182502009-02-09 Felix Zielcke <fzielcke@z-51.de>
18251
06ff20fc 18252 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 18253 bpb.version_specific.fat12_or_fat16.fstype and
18254 bpb.version_specific.fat32.fstype.
18255
2550c62f 182562009-02-08 Robert Millan <rmh@aybabtu.com>
18257
be110b30 18258 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 18259
56978920 182602009-02-08 Robert Millan <rmh@aybabtu.com>
18261
18262 * Makefile.in (host_os, host_cpu): New variables.
18263 (target_os): Remove. Update all users.
18264
d64399b5 182652009-02-08 Marco Gerards <marco@gnu.org>
18266
18267 * Makefile.in (enable_grub_emu_usb): New variable.
18268 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
18269 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
18270 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
18271 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
18272 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
18273 `usbtest.mod' and `usbms.mod'.
18274 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
18275 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
18276 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
18277 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
18278 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
18279 variables.
18280
18281 * disk/usbms.c: New file.
18282
18283 * include/grub/usb.h: Likewise.
18284
18285 * include/grub/usbtrans.h: Likewise.
18286
18287 * include/grub/usbdesc.h: Likewise.
18288
18289 * bus/usb/usbtrans.c: Likewise.
18290
18291 * bus/usb/ohci.c: Likewise.
18292
18293 * bus/usb/uhci.c: Likewise.
18294
18295 * bus/usb/usbhub.c: Likewise.
18296
18297 * bus/usb/usb.c: Likewise.
18298
18299 * commands/usbtest.c: Likewise.
18300
18301 * util/usb.c: Likewise.
50fb7002 18302
d64399b5 18303 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
18304
18305 * configure.ac: Test for libusb presence.
50fb7002 18306
d64399b5 18307 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
18308
2b40d6bb 183092009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
18310
18311 * kern/mm.c: Add more comments.
18312
73a4ce81 183132009-02-08 Robert Millan <rmh@aybabtu.com>
18314
18315 Patch from Javier Martín.
18316 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
18317 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
18318
f821ce59 183192009-02-08 Robert Millan <rmh@aybabtu.com>
18320
18321 * fs/cpio.c: Split tar functionality to ...
18322 * fs/tar.c: ... here (new file). Update all users.
18323
aebfc4b0 183242009-02-07 Robert Millan <rmh@aybabtu.com>
18325
18326 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
18327 backward-incompatible features.
18328
18329 Based on patch from Javier Martín, with some adjustments.
18330
50fb7002 183312009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 18332
18333 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
18334
0bb5115e 183352009-02-07 Robert Millan <rmh@aybabtu.com>
18336
18337 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
18338 position of `disk/lvm.c' to ensure grub_init_all() always picks it
18339 after the RAID stuff.
18340
38a0f8e7 183412009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
18342
50fb7002 18343 Fixes problem when running vbetest command as reported by
38a0f8e7 18344 Vladimir Serbinenko <phcoder@gmail.com>.
18345
18346 * (grub_vbe_set_video_mode): Fixed problem with text modes.
18347
3143cc1c 183482009-02-04 Felix Zielcke <fzielcke@z-51.de>
18349
18350 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
18351 /dev/md/NpN style mdraid devices.
18352
9cba6fce 183532009-02-03 Felix Zielcke <fzielcke@z-51.de>
18354
18355 * util/unifont2pff.rb: Remove.
18356
e507a2c1 183572009-02-03 Felix Zielcke <fzielcke@z-51.de>
18358
18359 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
18360 `#'.
18361
d2c2b4cd 183622009-02-03 Felix Zielcke <fzielcke@z-51.de>
18363
18364 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
18365 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18366 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18368 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18369 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18370 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18371
b4315fb0 183722009-02-02 Christian Franke <franke@computer.org>
18373
18374 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
18375
de3aa260 183762009-02-01 Felix Zielcke <fzielcke@z-51.de>
18377
7c3ff286 18378 * INSTALL: Note that we now require at least autoconf 2.59 and
18379 that LZO is optional.
de3aa260 18380
825a182b 183812009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
18382
18383 Base on patch on bug #24154 created by Tomas Tintera
18384 <trosos@seznam.cz>.
18385
18386 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
18387
a69ef770 183882009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
18389
7c3ff286 18390 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 18391 <bero@arklinux.org>.
18392
18393 * normal/parser.y (script_init): Add missing semicolon.
18394
6fa42fa6 183952009-01-31 Colin D Bennett <colin@gibibit.com>
18396
7c3ff286 18397 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 18398 (free_menu_entry_classes): Added.
18399 (grub_normal_menu_addentry): Added class property handling.
18400 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
18401 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
18402
18403 * normal/menu_viewer.c: New file.
18404
18405 * normal/menu.c (run_menu_entry): Renamed to ...
18406 (grub_menu_execute_entry): ... this and made it as global.
18407 (grub_menu_run): Renamed to ...
18408 (show_text_menu): ... this and made it local.
18409 (show_text_menu): Adapt to new function names.
18410 (grub_normal_terminal_menu_viewer): New global variable.
18411
18412 * include/grub/menu.h: New file.
18413
18414 * include/grub/menu_viewer.h: New file.
18415
18416 * include/grub/normal.h: Added include to grub/menu.h.
18417 (grub_menu_entry): Moved to include/grub/menu.h.
18418 (grub_menu_entry_t): Likewise.
18419 (grub_menu): Likewise.
18420 (grub_menu_t): Likewise.
18421 (grub_normal_terminal_menu_viewer): Added.
18422 (grub_menu_execute_entry): Likewise.
18423 (grub_menu_run): Removed.
18424
18425 * DISTLIST: Added include/grub/menu.h.
18426 Added include/grub/menu_viewer.h.
18427 Added normal/menu_viewer.c.
18428
184292009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
18430
18431 * normal/execute.c (grub_script_execute_menuentry): Changed to use
18432 arglist for menutitle arguments.
18433
18434 * normal/main.c (grub_normal_menu_addentry): Likewise.
18435
18436 * normal/parser.y (menuentry): Likewise.
18437
18438 * normal/script.c (grub_script_create_cmdmenu): Likewise.
18439
18440 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
18441 (grub_script_create_cmdmenu): Likewise.
18442
18443 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
18444
18445 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
18446 changes.
18447
18448 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
18449
18450 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
18451
18452 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
18453
18454 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
18455
18456 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
18457
18458 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
18459
56192c23 184602009-01-30 Christian Franke <franke@computer.org>
18461
18462 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
18463 in option help text.
18464
d72521b3 184652009-01-27 Pavel Roskin <proski@gnu.org>
18466
18467 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
18468
994b5e84 184692009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
18470
18471 * commands/lsmmap.c: Add include to grub/machine/memory.h.
18472
18473 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
18474
18475 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
18476 unregister function.
18477
6a7eab2c 184782009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
18479
18480 * disk/scsi.c (grub_scsi_read): Fix sign problem.
18481
18482 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
18483
18484 * util/grub-mkfont.c (usage): Fix typo.
18485
18486 * util/elf/grub-mkimage.c (load_modules): Fix warning.
18487
1806b56e 184882009-01-26 Daniel Mierswa <impulze@impulze.org>
18489
3fb18f09 18490 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
18491
336e1fb9 18492 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
18493
1806b56e 18494 * kern/misc.c (grub_strcasecmp): New function.
18495 (grub_strcasecmp): Use grub_size_t instead of int for length.
18496 Fix return value.
18497 * include/grub/misc.h: Update function prototypes.
18498
580b2a0f 184992009-01-26 Robert Millan <rmh@aybabtu.com>
18500
18501 * configure.ac: Fix cross-compilation check.
ef257b36 18502
d31c24f1 185032009-01-22 Christian Franke <franke@computer.org>
18504
18505 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
18506 (precision) digit string. Allow `.format2' without `format1' (width).
18507 Limit input chars for `%s' output to `format2' if specified. This is
18508 compatible with standard printf ().
18509
3138b44c 185102009-01-22 Christian Franke <franke@computer.org>
18511
18512 * disk/ata.c (grub_ata_wait_status): Replace by ...
18513 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
18514 other status bits may be invalid while BSY is asserted.
18515 (grub_ata_check_ready): New function.
18516 (grub_ata_cmd): Removed.
18517 (grub_ata_wait_drq): New function.
18518 (grub_ata_strncpy): Remove inline.
18519 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
18520 and error check now done by grub_ata_wait_drq ().
18521 (grub_ata_pio_write): Likewise.
18522 (grub_atapi_identify): Set DEV before check for !BSY. Use
18523 grub_ata_wait_drq () to wait for data.
18524 (grub_ata_device_initialize): Add status register check to
18525 detect missing SATA slave devices. Add debug messages.
18526 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
18527 (grub_atapi_packet): Set DEV before check for !BSY. Replace
18528 transfer loop by grub_ata_pio_write ().
18529 (grub_ata_identify): Set DEV before check for !BSY. Use
18530 grub_ata_wait_drq () to wait for data.
ef257b36 18531 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 18532 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
18533 read/write in one loop. Fix invalid command on write. Fix incomplete
18534 command on (size % batch) == 0. Add missing error check after write of
18535 last block. Add debug messages.
18536 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
18537
59a64ef6 185382009-01-19 Christian Franke <franke@computer.org>
18539
18540 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
18541 (GRUB_ATAPI_IREASON_*): Likewise.
18542 (grub_ata_pio_write): Fix timeout error return.
18543 (grub_atapi_identify): Add grub_ata_wait () after cmd.
18544 (grub_atapi_wait_drq): New function.
18545 (grub_atapi_packet): New parameter `size'.
18546 Use grub_atapi_wait_drq () and direct write instead of
18547 grub_ata_pio_write ().
18548 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
18549 reads the number of bytes requested by the device for each DRQ
18550 assertion.
18551 (grub_atapi_write): Remove old implementation, return not
18552 implemented instead.
18553
1cfe20b3 185542009-01-19 Christian Franke <franke@computer.org>
18555
18556 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
18557 of 512 to calculate data size.
18558 (grub_scsi_read12): Likewise.
18559 (grub_scsi_write10): Likewise.
18560 (grub_scsi_write12): Likewise.
18561 (grub_scsi_read): Adjust size according to blocksize.
18562 Add checks for invalid blocksize and unaligned transfer.
18563
bee5fe5d 185642009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
18565
18566 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
18567
ef257b36 18568 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 18569 width glyphs.
18570
3e643f8c 185712009-01-19 Robert Millan <rmh@aybabtu.com>
18572
18573 * config.guess: Update to latest version from config git.
18574 * config.sub: Likewise.
18575
4fa80998 185762009-01-17 Felix Zielcke <fzielcke@z-51.de>
18577
18578 * Makefile.in: Change font compilation to use new grub-mkfont instead
18579 of java version.
18580
18581 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
18582 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
18583 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
18584 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
18585 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
18586 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
18587 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
18588 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
18589 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
18590
7086085b 185912009-01-16 Christian Franke <franke@computer.org>
18592
18593 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
18594 (enum grub_ata_timeout_milliseconds): New enum.
18595 (grub_ata_wait_status): Add parameter milliseconds.
18596 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
18597 recovery from timed-out commands.
18598 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
18599 return grub_errno instead of REG_ERROR.
18600 (grub_ata_pio_write): Add parameter milliseconds.
18601 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
18602 Pass milliseconds to grub_ata_wait_status () and
18603 grub_ata_pio_read ().
18604 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
18605 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
18606 grub_ata_wait_status (). Fix IDENTIFY timeout check.
18607 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
18608 It is not suitable for device detection, because DEV bit is ignored,
18609 the command may run too long, and not all devices set the signature
18610 properly.
18611 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
18612 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
18613 Fix device selection, DEV bit must be set first to address the registers
18614 of the correct device.
18615 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
18616 grub_ata_pio_read/write ().
18617 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
18618 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
18619
4a412913 186202009-01-13 Carles Pina i Estany <carles@pina.cat>
18621
18622 * util/grub-editenv.c (main): Use fseeko(), not fseek().
18623
7795c55e 186242009-01-13 Bean <bean123ch@gmail.com>
d913988c 18625
18626 * util/grub-mkfont.c (write_font): forget to remove some debug code.
18627
7795c55e 186282009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 18629
18630 * Makefile.in: (enable_grub_mkfont): New variable.
18631 (freetype_cflags): Likewise.
18632 (freetype_libs): Likewise.
18633
18634 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
18635 (grub_mkfont_SOURCES): New variable.
18636 (grub_mkfont_CFLAGS): Likewise.
18637 (grub_mkfont_LDFLAGS): Likewise.
18638
18639 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
18640 library if `--enable-grub-mkfont' is requested.
18641 (enable_grub_mkfont): New variable.
18642 (freetype_cflags): Likewise.
18643 (freetype_libs): Likewise.
18644
18645 * util/grub-mkfont.c: New file.
18646
093af1fe 186472009-01-12 Christian Franke <franke@computer.org>
18648
18649 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
18650 mode check. Fix setting of compat_use[].
18651
f36cc108 186522009-01-10 Robert Millan <rmh@aybabtu.com>
18653
18654 Update a few copyright years which we forgot to do in 2008 (only for
18655 files whose changes made in 2008 were copyright-significant)
18656
18657 * Makefile.in: Add 2008 to Copyright line.
18658 * disk/ieee1275/ofdisk.c: Likewise.
18659 * disk/efi/efidisk.c: Likewise.
18660 * kern/dl.c: Likewise.
18661 * kern/sparc64/ieee1275/init.c: Likewise.
18662 * kern/mm.c: Likewise.
18663 * kern/efi/mm.c: Likewise.
18664 * boot/i386/pc/boot.S: Likewise.
18665 * genfslist.sh: Likewise.
18666 * fs/iso9660.c: Likewise.
18667 * fs/hfs.c: Likewise.
18668 * fs/jfs.c: Likewise.
18669 * fs/minix.c: Likewise.
18670 * fs/ufs.c: Likewise.
18671 * gensymlist.sh.in: Likewise.
18672 * genkernsyms.sh.in: Likewise.
18673 * include/grub/misc.h: Likewise.
18674 * include/grub/types.h: Likewise.
18675 * include/grub/symbol.h: Likewise.
18676 * include/grub/elf.h: Likewise.
18677 * include/grub/kernel.h: Likewise.
18678 * include/grub/disk.h: Likewise.
18679 * include/grub/dl.h: Likewise.
18680 * include/grub/i386/linux.h: Likewise.
18681 * include/grub/i386/pc/biosdisk.h: Likewise.
18682 * include/grub/efi/api.h: Likewise.
18683 * include/grub/efi/pe32.h: Likewise.
18684 * include/grub/util/misc.h: Likewise.
18685 * normal/execute.c: Likewise.
18686 * normal/arg.c: Likewise.
18687 * normal/completion.c: Likewise.
18688 * normal/lexer.c: Likewise.
18689 * normal/parser.y: Likewise.
18690 * normal/misc.c: Likewise.
18691 * commands/i386/pc/vbeinfo.c: Likewise.
18692 * commands/hexdump.c: Likewise.
18693 * commands/terminal.c: Likewise.
18694 * commands/ls.c: Likewise.
18695 * commands/help.c: Likewise.
18696 * partmap/pc.c: Likewise.
18697 * loader/efi/chainloader.c: Likewise.
18698 * loader/multiboot_loader.c: Likewise.
18699 * loader/i386/pc/multiboot2.c: Likewise.
18700 * term/efi/console.c: Likewise.
18701 * term/i386/pc/serial.c: Likewise.
18702 * util/lvm.c: Likewise.
18703 * util/console.c: Likewise.
18704 * util/i386/efi/grub-mkimage.c: Likewise.
18705 * util/raid.c: Likewise.
18706
7f02114b 187072009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
18708
18709 * commands/videotest.c: Removed include to grub/machine/memory.h.
18710
18711 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
18712 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
18713 (video_mod_SOURCES): Removed.
18714 (video_mod_CFLAGS): Likewise.
18715 (video_mod_LDFLAGS): Likewise.
18716 (gfxterm_mod_SOURCES): Likewise.
18717 (gfxterm_mod_CFLAGS): Likewise.
18718 (gfxterm_mod_LDFLAGS): Likewise.
18719 (videotest_mod_SOURCES): Likewise.
18720 (videotest_mod_CFLAGS): Likewise.
18721 (videotest_mod_LDFLAGS): Likewise.
18722 (bitmap_mod_SOURCES): Likewise.
18723 (bitmap_mod_CFLAGS): Likewise.
18724 (bitmap_mod_LDFLAGS): Likewise.
18725 (tga_mod_SOURCES): Likewise.
18726 (tga_mod_CFLAGS): Likewise.
18727 (tga_mod_LDFLAGS): Likewise.
18728 (jpeg_mod_SOURCES): Likewise.
18729 (jpeg_mod_CFLAGS): Likewise.
18730 (jpeg_mod_LDFLAGS): Likewise.
18731 (png_mod_SOURCES): Likewise.
18732 (png_mod_CFLAGS): Likewise.
18733 (png_mod_LDFLAGS): Likewise.
18734
18735 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
18736 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
18737 (video_mod_SOURCES): Added.
18738 (video_mod_CFLAGS): Likewise.
18739 (video_mod_LDFLAGS): Likewise.
18740 (videotest_mod_SOURCES): Likewise.
18741 (videotest_mod_CFLAGS): Likewise.
18742 (videotest_mod_LDFLAGS): Likewise.
18743 (bitmap_mod_SOURCES): Likewise.
18744 (bitmap_mod_CFLAGS): Likewise.
18745 (bitmap_mod_LDFLAGS): Likewise.
18746 (tga_mod_SOURCES): Likewise.
18747 (tga_mod_CFLAGS): Likewise.
18748 (tga_mod_LDFLAGS): Likewise.
18749 (jpeg_mod_SOURCES): Likewise.
18750 (jpeg_mod_CFLAGS): Likewise.
18751 (jpeg_mod_LDFLAGS): Likewise.
18752 (png_mod_SOURCES): Likewise.
18753 (png_mod_CFLAGS): Likewise.
18754 (png_mod_LDFLAGS): Likewise.
18755 (gfxterm_mod_SOURCES): Likewise.
18756 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 18757 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 18758
18759 * term/gfxterm.c: Removed include to grub/machine/memory.h,
18760 grub/machine/console.h.
18761
644fff97 187622009-01-04 Jerone Young <jerone@gmail.com>
18763
18764 Make on screen instructions clearer
18765
18766 Based on patch created by Jidanni <jidanni@jidanni.org>
18767
18768 * normal/menu.c: print clearer instructions on the screen
18769
1e901a75 187702009-01-02 Colin D Bennett <colin@gibibit.com>
18771
18772 New font engine.
34c44600 18773
1e901a75 18774 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
18775 build system and fixed gfxterm.c to work with different sized fonts.
18776
18777 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 18778
1e901a75 18779 * configure: Re-generated.
34c44600 18780
1e901a75 18781 * DISTLIST: Removed font/manager.c.
18782 Added font/font.c.
18783 Added font/font_cmd.c.
34c44600 18784
1e901a75 18785 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
18786 compilation.
34c44600 18787
1e901a75 18788 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 18789
18790 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 18791
18792 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 18793
1e901a75 18794 * normal/menu.c: Likewise.
34c44600 18795
1e901a75 18796 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
18797 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 18798
1e901a75 18799 * include/grub/font.h: Replaced with new file.
34c44600 18800
1e901a75 18801 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
18802 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
18803 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
18804 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
18805 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 18806 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 18807 fg_red, fg_green, fg_blue, fg_alpha.
18808 (grub_video_adapter): Removed blit_glyph.
34c44600 18809 (grub_video_blit_glyph): Removed.
18810
1e901a75 18811 * font/manager.c: Removed file.
34c44600 18812
18813 * font/font.c: New file.
18814
1e901a75 18815 * font/font_cmd.c: Likewise.
34c44600 18816
1e901a75 18817 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 18818
1e901a75 18819 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
18820 (grub_video_vbe_map_rgba): Likewise.
18821 (grub_video_vbe_unmap_color_int): Likewise.
18822 (grub_video_vbe_blit_glyph): Removed.
18823 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 18824
1e901a75 18825 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
18826 (get_pixel): Likewise.
34c44600 18827 (set_pixel): Likewise.
18828
1e901a75 18829 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 18830
1e901a75 18831 * term/gfxterm.c: Adapted to new font engine.
34c44600 18832
1e901a75 18833 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 18834
1e901a75 18835 * term/i386/pc/vga.c: Likewise.
34c44600 18836
1e901a75 18837 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 18838
1e901a75 18839 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 18840
1e901a75 18841 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 18842
1e901a75 18843 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 18844
1e901a75 18845 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 18846
1e901a75 18847 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 18848
1e901a75 18849 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 18850
1e901a75 18851 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 18852
1e901a75 18853 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
18854
18855 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 18856
1e901a75 18857 * util/grub-mkconfig_lib.in: Changed font extension.
18858
278922e8 188592008-12-28 Felix Zielcke <fzielcke@z-51.de>
18860
18861 * util/getroot.c (grub_util_get_grub_dev): Add support for
18862 /dev/md/dNNpNN style partitionable mdraid devices.
18863
3ced05cf 188642008-12-12 Alex Smith <alex@alex-smith.me.uk>
18865
18866 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
18867 at a time limit of the PXE TFTP API correctly.
18868 (grub_pxefs_close): Likewise.
18869
7fd0ee30 188702008-11-29 Robert Millan <rmh@aybabtu.com>
18871
34c44600 18872 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 18873 grub_ata_device_initialize() calls.
18874
34c44600 188752008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 18876
18877 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
18878 iteration failed.
18879 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
18880
89313780 188812008-11-28 Robert Millan <rmh@aybabtu.com>
18882
18883 Fix build on powerpc-ieee1275. Based on patch created by
18884 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
18885 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
18886 `kern/ieee1275/mmap.c'.
18887 * include/grub/powerpc/ieee1275/memory.h: New file.
18888
15257703 18889 Provide grub-install on coreboot.
18890 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
18891 (grub_install_SOURCES): New variable.
18892 * util/i386/pc/grub-install.in: Add a few condition checks to make it
18893 usable on coreboot.
18894
9fc5388a 188952008-11-25 Felix Zielcke <fzielcke@z-51.de>
18896
18897 * util/grub-fstest.c (grub_term_get_current_input): Change return type
18898 to `grub_term_input_t'.
18899 (grub_term_get_current_output): Change return type to
18900 `grub_term_output_t'.
18901
bc3a2f31 189022008-11-22 Robert Millan <rmh@aybabtu.com>
18903
34c44600 18904 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 18905 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
18906 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
18907 grub_vga_text_cls().
18908
80fc88f2 18909 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 18910 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 18911
cbf36fd3 18912 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
18913 to 0x200000 (avoids trouble with some OFW implementations, and matches
18914 with the one in Yaboot).
18915 Reported by Manoel Abranches
18916
73e8e268 189172008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 18918
18919 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
18920 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
18921
73e8e268 18922 * util/grub-mkconfig_lib.in (grub_warn): New function.
18923 (convert_system_path_to_grub_path): Use grub_warn() when issuing
18924 warnings, to obtain consistent formatting.
18925 * util/grub.d/00_header.in: Likewise.
18926 * util/update-grub_lib.in: Likewise.
18927
e94045a1 18928 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 18929 Move comment text to `#error' stanza.
e94045a1 18930
79d29fd7 18931 Harmonize ieee1275's grub_available_iterate() with the generic
18932 grub_machine_mmap_iterate() interface (fixes a recently-introduced
18933 build problem on i386-ieee1275):
18934 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
18935 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
18936 parameter `type'. Update all users of this function.
18937 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18938 `kern/ieee1275/mmap.c'.
18939 * kern/ieee1275/init.c
18940 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
18941 with ...
18942 (grub_machine_mmap_iterate): ... this.
18943 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
18944 return type to `grub_err_t'. Update all implementations of this
18945 function prototype.
18946 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
18947 Likewise.
18948
60d6b16e 18949 Add `lsmmap' command (lists firmware-provided memory map):
18950 * commands/lsmmap.c: New file.
18951 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
18952 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
18953 variables.
18954 * conf/powerpc-ieee1275.rmk: Likewise.
18955 * conf/i386-coreboot.rmk: Likewise.
18956 * conf/i386-ieee1275.rmk: Likewise.
18957
ebaaf49b 189582008-11-19 Robert Millan <rmh@aybabtu.com>
18959
18960 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 18961 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
18962 constraints to initrd allocation (based on code from
18963 loader/i386/pc/linux.c). Without them, initrd was allocated too high
18964 for Linux to find it.
ebaaf49b 18965
dfab719f 189662008-11-14 Robert Millan <rmh@aybabtu.com>
18967
18968 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
18969 order to cope with duplicate slashes.
18970
10fc3eb9 189712008-11-14 Robert Millan <rmh@aybabtu.com>
18972
18973 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
18974 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
18975 don't want to mess with lower memory, because it is used in the Linux
18976 loader.
18977
18978 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 18979 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 18980 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
18981 is in our heap (probably as a result of it being corrupted during
2f2a3442 18982 decompression). Add #error instance with comment to explain why this
18983 loader isn't currently usable on PC/BIOS.
10fc3eb9 18984
e2e07847 189852008-11-14 Robert Millan <rmh@aybabtu.com>
18986
18987 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 18988 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 18989
fe8e8d69 189902008-11-12 Robert Millan <rmh@aybabtu.com>
18991
18992 Make loader/i386/linux.c buildable on i386-pc (although disabled).
18993
18994 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
18995 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
18996 from here ...
18997 * include/grub/i386/pc/memory.h: ... to here.
18998
976b07d0 189992008-11-12 Robert Millan <rmh@aybabtu.com>
19000
19001 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
19002 split).
19003
19004 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
19005 (grub_console_cur_color, grub_console_real_putchar)
19006 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
19007 (grub_console_setcolorstate, grub_console_setcolor)
19008 (grub_console_getcolor): Move from here ...
19009 * include/grub/i386/vga_common.h: ... to here (new file).
19010
19011 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
19012 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
19013 `<grub/i386/io.h>'.
19014 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
19015 `<grub/i386/vga_common.h>'.
19016
76679cd3 190172008-11-12 Robert Millan <rmh@aybabtu.com>
19018
19019 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
19020 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
19021 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
19022 variables.
19023 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
19024 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
19025
19026 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
19027 grub_console_init() with call to grub_vga_text_init().
19028 (grub_machine_fini): Replace call to
19029 grub_console_fini() with call to grub_vga_text_fini() and
19030 grub_at_keyboard_fini().
19031
19032 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
19033 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
19034 (grub_console_setcolorstate, grub_console_setcolor)
19035 (grub_console_getcolor): New function prototypes.
19036
19037 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
19038 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
19039 (grub_vga_text_setcursor): Static-ize.
19040 (grub_vga_text_term): New structure.
19041 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
19042
19043 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
19044 (grub_console_cur_color, grub_console_standard_color)
19045 (grub_console_normal_color, grub_console_highlight_color)
19046 (map_char, grub_console_putchar, grub_console_getcharwidth)
19047 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
19048 (grub_console_getcolor): Move from here ...
19049 * term/i386/vga_common.c: ... to here (same function names).
19050
95b841d3 190512008-11-12 Robert Millan <rmh@aybabtu.com>
19052
19053 Use newly-added Multiboot support in coreboot.
19054
19055 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
19056 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
19057
19058 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
19059 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
19060 (codestart): Store the MBI in `startup_multiboot_info' when we're
19061 being loaded using Multiboot.
19062
19063 * kern/i386/coreboot/init.c (grub_machine_init): Move
19064 grub_at_keyboard_init() call to beginning of function (useful for
19065 debugging). Call grub_machine_mmap_init() before attempting to use
19066 grub_machine_mmap_iterate().
19067 (grub_lower_mem, grub_upper_mem): Move from here ...
19068 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
19069 here (new file).
19070
19071 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
19072 function prototype.
19073
761ca975 190742008-11-12 Robert Millan <rmh@aybabtu.com>
19075
19076 Fix a regression introduced by the at_keyboard.mod split. Because
19077 some terminals are default on some platforms and non-default on
19078 others, the first terminal being registered determines which is
19079 going to be default.
19080
19081 * kern/term.c (grub_term_register_input): If this is the first
19082 terminal being registered, set it as the current one.
19083 (grub_term_register_output): Likewise.
19084
19085 * term/efi/console.c (grub_console_init): Do not call
19086 grub_term_set_current_output() or grub_term_set_current_input().
19087 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
19088 * term/i386/pc/console.c (grub_console_init): Likewise.
19089 (grub_console_fini): Do not call grub_term_set_current_input()
19090 (but leave grub_term_set_current_output() to restore text mode).
19091
6c529df7 190922008-11-10 Robert Millan <rmh@aybabtu.com>
19093
19094 * util/grub.d/00_header.in: Add backward compatibility check for
19095 versions of terminal.mod that don't understand `terminal_input' or
19096 `terminal_output'.
19097
132e4113 190982008-11-09 Robert Millan <rmh@aybabtu.com>
19099
19100 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
19101 `terminal_input' / `terminal_output', not `terminal'.
19102
ac293d50 191032008-11-08 Robert Millan <rmh@aybabtu.com>
19104
19105 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 19106 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 19107
0025933a 191082008-11-08 Robert Millan <rmh@aybabtu.com>
19109
19110 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 19111 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 19112 members. Update all users.
19113 * util/console.c (grub_ncurses_term): Split in ...
19114 (grub_ncurses_term_input): ... this, and ...
19115 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 19116 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 19117
37c86336 191182008-11-08 Robert Millan <rmh@aybabtu.com>
19119
19120 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
19121 (PKGDATA): Add $(pkgdata_SRCDIR).
19122 (pkglib_BUILDDIR): New variable.
19123 (pkgdata_SRCDIR): New variable.
19124 (build_env.mk): New target.
19125 (include_DATA): New variable.
19126 (install-local): Install $(include_DATA) files in $(includedir).
19127
b6c15a2d 191282008-11-07 Pavel Roskin <proski@gnu.org>
19129
d99d46f1 19130 * gendistlist.sh: Use C locale for sorting to ensure consistent
19131 output on all systems.
19132
b6c15a2d 19133 * util/grub.d/00_header.in: Remove incorrect space before
19134 "serial".
19135
c32ee8c9 191362008-11-07 Robert Millan <rmh@aybabtu.com>
19137
19138 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
19139 per specification.
19140 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
19141 * loader/multiboot_loader.c (find_multi_boot2_header): New function
19142 (based on find_multi_boot1_header).
19143 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
19144 using find_multi_boot2_header(), and abort if neither Multiboot or
19145 Multiboot headers were found.
19146
651c29b7 191472008-11-07 Robert Millan <rmh@aybabtu.com>
19148
19149 Modularize at_keyboard.mod:
19150
19151 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
19152 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
19153 (at_keyboard_mod_LDFLAGS): New variables.
19154
19155 Actual terminal split:
19156
19157 * include/grub/term.h (struct grub_term): Split in ...
19158 (struct grub_term_input): ... this, and ...
19159 (struct grub_term_output): ... this. Update all users.
19160 (grub_term_set_current): Split in ...
19161 (grub_term_set_current_input): ... this, and ...
19162 (grub_term_set_current_output): ... this.
19163 (grub_term_get_current): Split in ...
19164 (grub_term_get_current_input): ... this, and ...
19165 (grub_term_get_current_output): ... this.
19166 (grub_term_register): Split in ...
19167 (grub_term_register_input): ... this, and ...
19168 (grub_term_register_output): ... this.
19169 (grub_term_unregister): Split in ...
19170 (grub_term_unregister_input): ... this, and ...
19171 (grub_term_unregister_output): ... this.
19172 (grub_term_iterate): Split in ...
19173 (grub_term_iterate_input): ... this, and ...
19174 (grub_term_iterate_output): ... this.
19175
19176 * kern/term.c (grub_term_list): Split in ...
19177 (grub_term_list_input): ... this, and ...
19178 (grub_term_list_output): ... this. Update all users.
19179 (grub_cur_term): Split in ...
19180 (grub_cur_term_input): ... this, and ...
19181 (grub_cur_term_output): ... this. Update all users.
19182 (grub_term_set_current): Split in ...
19183 (grub_term_set_current_input): ... this, and ...
19184 (grub_term_set_current_output): ... this.
19185 (grub_term_get_current): Split in ...
19186 (grub_term_get_current_input): ... this, and ...
19187 (grub_term_get_current_output): ... this.
19188 (grub_term_register): Split in ...
19189 (grub_term_register_input): ... this, and ...
19190 (grub_term_register_output): ... this.
19191 (grub_term_unregister): Split in ...
19192 (grub_term_unregister_input): ... this, and ...
19193 (grub_term_unregister_output): ... this.
19194 (grub_term_iterate): Split in ...
19195 (grub_term_iterate_input): ... this, and ...
19196 (grub_term_iterate_output): ... this.
19197
19198 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
19199 a check for input and one for output (and only attempt to get keys
19200 from user when input works).
19201
19202 * util/grub-probe.c (grub_term_get_current): Split in ...
19203 (grub_term_get_current_input): ... this, and ...
19204 (grub_term_get_current_output): ... this.
19205 * util/grub-fstest.c: Likewise.
19206 * util/i386/pc/grub-setup.c: Likewise.
19207 * util/grub-editenv.c: Likewise.
19208
19209 Portability adjustments:
19210
19211 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
19212 `term/i386/pc/at_keyboard.c'.
19213 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
19214 grub_keyboard_controller_init() (now handled by terminal .init).
19215 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
19216 grub_at_keyboard_init().
19217 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
19218 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
19219 at_keyboard.mod via input terminal interface).
19220 * include/grub/i386/coreboot/console.h: Convert into a stub for
19221 `<grub/i386/pc/console.h>'.
19222
19223 Migrate full terminals to new API:
19224
19225 * term/efi/console.c (grub_console_term): Split into ...
19226 (grub_console_term_input): ... this, and ...
19227 (grub_console_term_output): ... this. Update all users.
19228 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
19229 (grub_ofconsole_init): Split into ...
19230 (grub_ofconsole_init_input): ... this, and ...
19231 (grub_ofconsole_init_output): ... this.
19232 (grub_ofconsole_term): Split into ...
19233 (grub_ofconsole_term_input): ... this, and ...
19234 (grub_ofconsole_term_output): ... this. Update all users.
19235 * term/i386/pc/serial.c (grub_serial_term): Split into ...
19236 (grub_serial_term_input): ... this, and ...
19237 (grub_serial_term_output): ... this. Update all users.
19238 * term/i386/pc/console.c (grub_console_term): Split into ...
19239 (grub_console_term_input): ... this, and ...
19240 (grub_console_term_output): ... this. Update all users.
19241 (grub_console_term_input): Only enable it on PC/BIOS platform.
19242 (grub_console_init): Remove grub_keyboard_controller_init() call.
19243
19244 Migrate input terminals to new API:
19245
19246 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
19247 `i386' and `i386/pc' to enable build on x86_64 (this driver is
19248 i386-specific anyway).
19249 (grub_console_checkkey): Rename to ...
19250 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
19251 users.
19252 (grub_keyboard_controller_orig): New variable.
19253 (grub_console_getkey): Rename to ...
19254 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
19255 users.
19256 (grub_keyboard_controller_init): Static-ize. Save original
19257 controller value so that it can be restored ...
19258 (grub_keyboard_controller_fini): ... here (new function).
19259 (grub_at_keyboard_term): New structure.
19260 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
19261 functions.
19262
19263 Migrate output terminals to new API:
19264
19265 * term/i386/pc/vga.c (grub_vga_term): Change type to
19266 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
19267 members. Update all users.
19268 * term/gfxterm.c (grub_video_term): Change type to
19269 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
19270 members. Update all users.
19271 * include/grub/i386/pc/console.h (grub_console_checkkey)
19272 (grub_console_getkey): Do not export (no longer needed by gfxterm,
19273 etc).
19274
19275 Migrate `terminal' command and userland tools to new API:
19276
19277 * commands/terminal.c (grub_cmd_terminal): Split into ...
19278 (grub_cmd_terminal_input): ... this, and ...
19279 (grub_cmd_terminal_output): ... this.
19280 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
19281 `terminal_input' and `terminal_output'.
19282 * util/grub.d/00_header.in: Adjust `terminal' calls to new
19283 `terminal_input' / `terminal_output' API.
19284 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
19285 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
19286 provided ${GRUB_TERMINAL}, convert it).
19287
96e5d876 192882008-11-04 Robert Millan <rmh@aybabtu.com>
19289
19290 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
19291 for FreeBSD.
19292 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
19293
556f3775 192942008-11-03 Bean <bean123ch@gmail.com>
19295
19296 * kern/elf.c (grub_elf32_load): Revert to previous code.
19297 (grub_elf64_load): Likewise.
19298
19299 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
19300
926b9823 193012008-11-01 Robert Millan <rmh@aybabtu.com>
19302
19303 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
19304 (TARGET_CPPFLAGS): Likewise.
19305 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
19306
1432e958 193072008-11-01 Carles Pina i Estany <carles@pina.cat>
19308
19309 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
19310
dba3f844 193112008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 19312
19313 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
19314 addition of objects until the code is not going to be able to fail.
19315
dba3f844 193162008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 19317
19318 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
19319 (add a missing NULL check, and correct them by moving the pointer
19320 operations after the actual check).
19321
7ab28c21 193222008-10-29 Robert Millan <rmh@aybabtu.com>
19323
19324 * util/i386/pc/grub-install.in: Handle empty string as output from
19325 make_system_path_relative_to_its_root().
19326
1b7748eb 193272008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
19328
19329 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
19330 circular metadata worst case scenario. If the metadata is circular
19331 then copy the wrap in place.
19332 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
19333 project lib/format_text/layout.h
19334 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
19335
c9618ab2 193362008-10-03 Felix Zielcke <fzielcke@z-51.de>
19337
7a36edca 19338 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 19339
bf981c62 193402008-10-03 Felix Zielcke <fzielcke@z-51.de>
19341
19342 * util/update-grub_lib.in: Mention filename in warning message.
19343
6d994591 193442008-09-29 Felix Zielcke <fzielcke@z-51.de>
19345
19346 * NEWS: Update for rename of update-grub to grub-mkconfig.
19347
18ade780 193482008-09-29 Felix Zielcke <fzielcke@z-51.de>
19349
19350 * util/update-grub_lib.in: Copy to ...
19351 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 19352 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 19353 * util/update-grub.in: Rename to ...
19354 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
19355 option. Add `--output' option to allow users to specify the generated
19356 configuration file. Default to stdout.
19357 (update_grub_dir): Rename to ...
19358 (grub_mkconfig_dir): ... this.
19359 (grub_cfg): Default to an empty string.
19360 * conf/common.rmk (update-grub): Rename to ...
19361 (grub-mkconfig): ... this.
19362 (update-grub_lib): Copy to ...
19363 (grub-mkconfig_lib): ... this.
19364 (update-grub_SCRIPTS): Copy to ...
19365 (grub-mkconfig_SCRIPTS): ... this. Update all users.
19366 (update-grub_DATA): Rename to ...
19367 (grub-mkconfig_DATA): ... this.
19368
556ce6ac 193692008-09-28 Robert Millan <rmh@aybabtu.com>
19370
19371 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
19372 to `modified'. Add the real `created' field.
19373 (grub_iso9660_uuid): Use `modified' rather than `created' for
19374 constructing the UUID.
19375
193762008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 19377
19378 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
19379 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
19380
92274e85 193812008-09-28 Bean <bean123ch@gmail.com>
19382
19383 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
19384 Thanks to Christian Franke for finding this bug.
19385
add6f17a 193862008-09-25 Robert Millan <rmh@aybabtu.com>
19387
19388 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
19389 instances of grub_util_get_disk_name() (see previous commit).
19390
d2a367b8 193912008-09-25 Robert Millan <rmh@aybabtu.com>
19392
19393 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
19394 `util/i386/get_disk_name.c'.
19395 * conf/i386-efi.rmk: Likewise.
19396 * conf/x86_64-efi.rmk: Likewise.
19397 * conf/i386-coreboot.rmk: Likewise.
19398 * conf/i386-ieee1275.rmk: Likewise.
19399 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
19400 `util/ieee1275/get_disk_name.c'.
19401 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
19402 * util/ieee1275/get_disk_name.c: Remove file.
19403 * util/i386/get_disk_name.c: Remove file.
19404 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
19405 "hd%d" for device.map entries, rather than using
19406 grub_util_get_disk_name().
19407
81a06771 194082008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 19409
19410 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
19411 warning.
19412 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
19413
5a004279 194142008-09-24 Carles Pina i Estany <carles@pina.cat>
19415
19416 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
19417 Changed to 0x5100.
19418 (GRUB_TERM_PPAGE): Changed to 0x4900.
19419
397093d3 194202008-09-24 Robert Millan <rmh@aybabtu.com>
19421
19422 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
19423 macros (they were i386-pc specific).
19424 * include/grub/sparc64/ieee1275/console.h: Likewise.
19425 * include/grub/efi/console.h: Likewise.
19426
a91b6c7c 194272008-09-22 Bean <bean123ch@gmail.com>
19428
19429 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
19430 resident and in attribute list.
19431
19432 * include/grub/ntfs.h (BMP_LEN): Removed.
19433
c40fd116 194342008-09-22 Bean <bean123ch@gmail.com>
19435
81a06771 19436 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 19437 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
19438
19439 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
19440 error occurs, as grub_disk_open will call grub_disk_close, which will
19441 call p->close (scsi).
19442
81a06771 194432008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 19444
19445 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
19446 (AC_PREREQ): Bumped to 2.59.
19447 (AC_TRY_COMPILE): Replace obsolete macro with ...
19448 (AC_COMPILE_IFELSE): ... this.
19449 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
19450 (AC_LINK_IFELSE): ... this.
19451
5dc43410 194522008-09-21 Felix Zielcke <fzielcke@z-51.de>
19453
19454 * autogen.sh: Add a call to `gendistlist.sh'.
19455
9035dce4 194562008-09-19 Christian Franke <franke@computer.org>
19457
19458 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
19459 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
19460 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
19461 Export __enable_execute_stack() to modules.
19462 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
19463 New function.
19464
7fd75377 194652008-09-09 Felix Zielcke <fzielcke@z-51.de>
19466
040030b3 19467 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
19468 Sort the list.
19469
194702008-09-09 Felix Zielcke <fzielcke@z-51.de>
19471
19472 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 19473 #include <grub/util/hostdisk.h>.
19474
89d5ffcf 194752008-09-08 Robert Millan <rmh@aybabtu.com>
19476
19477 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
19478 segments when their filesz is zero (grub_file_read() interprets
81a06771 19479 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 19480 Use `lowest_segment' rather than 0 for calculating the current
19481 segment load address.
19482
40da438f 194832008-09-08 Robert Millan <rmh@aybabtu.com>
19484
19485 * util/hostdisk.c (open_device): Replace a grub_util_info() call
19486 with grub_dprintf("hostdisk", ...), as it was so verbose that it
19487 clobbered useful information.
19488
ddbf5556 194892008-09-08 Robert Millan <rmh@aybabtu.com>
19490
19491 * include/grub/util/biosdisk.h: Move to ...
19492 * include/grub/util/hostdisk.h: ... here. Update all users.
19493 * util/biosdisk.c: Move to ...
19494 * util/hostdisk.c: ... here. Update all users.
19495
783d0f48 194962008-09-07 Robert Millan <rmh@aybabtu.com>
19497
19498 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
19499 variables.
19500 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
19501 and length can be stored directly in the `mbi->mmap_addr' and
19502 `mbi->mmap_length' struct fields.
19503
548e2ea5 195042008-09-07 Robert Millan <rmh@aybabtu.com>
19505
19506 * conf/i386.rmk: New file. Provides declaration for building
19507 `cpuid.mod'.
19508 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
19509 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
19510 variables.
19511 Include `conf/i386.mk'.
19512 * conf/i386-efi.rmk: Likewise.
19513 * conf/x86_64-efi.rmk: Likewise.
19514 * conf/i386-coreboot.rmk: Likewise.
19515 * conf/i386-ieee1275.rmk: Likewise.
19516
0ea85a37 195172008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
19518
19519 Based on patch created by Colin D Bennett <colin@gibibit.com>.
19520 Adds optimization support for BGR based modes.
19521
19522 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
19523 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
19524 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
19525 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
19526 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
19527 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
19528 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
19529 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
19530 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
19531 (grub_video_i386_vbeblit_index_index): Likewise.
19532 (grub_video_i386_vbeblit_replace_directN): Added.
19533 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
19534 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
19535 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
19536 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
19537 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
19538 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 19539 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 19540 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
19541 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
19542 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
19543 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
19544 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
19545 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
19546
19547 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
19548 (grub_video_i386_vbefill_R8G8B8): Likewise.
19549 (grub_video_i386_vbefill_index): Likewise.
19550 (grub_video_i386_vbefill_direct32): Added.
19551 (grub_video_i386_vbefill_direct24): Likewise.
19552 (grub_video_i386_vbefill_direct16): Likewise.
19553 (grub_video_i386_vbefill_direct8): Likewise.
19554
81a06771 19555 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 19556 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
19557 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
19558 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
19559 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
19560 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 19561
0ea85a37 19562 * video/video.c (grub_video_get_blit_format): Updated to use new
19563 blit formats. Added handling for 16 bit color modes.
81a06771 19564
19565 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 19566 fillers.
19567 (common_blitter): Updated to use new blitters.
19568
19569 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
19570 Removed.
19571 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
19572 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
19573 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
19574 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
19575 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
19576 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
19577 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
19578 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
19579 (grub_video_i386_vbeblit_index_index): Likewise.
19580 (grub_video_i386_vbeblit_replace_directN): Added.
19581 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
19582 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
19583 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
19584 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
19585 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
19586 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
19587 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
19588 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
19589 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
19590 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
19591 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
19592 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
19593 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 19594
0ea85a37 19595 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
19596 (grub_video_i386_vbefill_R8G8B8): Likewise.
19597 (grub_video_i386_vbefill_index): Likewise.
19598 (grub_video_i386_vbefill_direct32): Added.
19599 (grub_video_i386_vbefill_direct24): Likewise.
19600 (grub_video_i386_vbefill_direct16): Likewise.
19601 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 19602
0ea85a37 19603 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
19604 types.
81a06771 19605
0ea85a37 19606 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
19607 types.
81a06771 19608
0ea85a37 19609 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
19610 blitter types.
81a06771 19611
0ea85a37 19612 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
19613 types.
19614
e8a83df6 196152008-09-06 Felix Zielcke <fzielcke@z-51.de>
19616
19617 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
19618 RAID level 1.
19619
6bcd8ee5 196202008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 19621
6bcd8ee5 19622 * fs/iso9660.c (grub_iso9660_date): New structure.
19623 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
19624 (grub_iso9660_uuid): New function.
c375ae58 19625
59261157 196262008-09-05 Bean <bean123ch@gmail.com>
19627
19628 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
19629
19630 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
19631 insensitive bit for names in Win32 and Win32 & DOS namespace.
19632
19633 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
19634
19635 * include/grub/types.h (LONG_MAX): Likewise.
19636
58b6645a 196372008-09-04 Felix Zielcke <fzielcke@z-51.de>
19638
4ee55921 19639 * util/getroot.c: Include <config.h>.
19640 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
19641 add support for /dev/md/N devices and handle LVM double dash escaping.
19642
196432008-09-04 Felix Zielcke <fzielcke@z-51.de>
19644
19645 * config.guess: Update to latest version from config git.
19646 * config.sub: Likewise.
58b6645a 19647
9124f65d 196482008-09-03 Robert Millan <rmh@aybabtu.com>
19649
19650 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
19651 `disk->total_sectors'.
19652
81a06771 196532008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 19654
19655 * include/grub/normal.h: Fixed incorrect comment for
19656 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
19657
81a06771 196582008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 19659
19660 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
19661 values with defines.
19662
19663 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
19664 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
19665 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
19666 (GRUB_VBE_MODEATTR_COLOR): Likewise.
19667 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
19668 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
19669 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
19670 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
19671 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
19672 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
19673 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
19674 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
19675 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
19676 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
19677 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
19678 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
19679 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
19680 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
19681 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
19682
93d5cbf8 196832008-08-31 Robert Millan <rmh@aybabtu.com>
19684
19685 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
19686 declaration.
19687 (grub_multiboot): Fix a few warnings.
19688
21751d50 196892008-08-31 Robert Millan <rmh@aybabtu.com>
19690
19691 * loader/i386/pc/multiboot.c: Update comment not to say that
19692 boot_device support is unimplemented.
19693
e27a75c5 196942008-08-31 Robert Millan <rmh@aybabtu.com>
19695
19696 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
19697 or memory map support are unimplemented.
19698
81a06771 196992008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 19700
19701 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
19702
81a06771 197032008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 19704
19705 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
19706 total video memory in 'vbeinfo' output; show color format details for
19707 each video mode.
19708
7c5d8d95 197092008-08-30 Pavel Roskin <proski@gnu.org>
19710
19711 * util/genmoddep.c: Remove for real this time.
19712 * DISTLIST: Remove util/genmoddep.c.
19713
4cebd25a 197142008-08-30 Robert Millan <rmh@aybabtu.com>
19715
19716 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
19717 as required by Multiboot spec (it was already 4-byte aligned, but
19718 only by chance).
19719
b497a269 197202008-08-29 Pavel Roskin <proski@gnu.org>
19721
e3925185 19722 * kern/powerpc/ieee1275/crt0.S: Rename to ...
19723 * kern/powerpc/ieee1275/startup.S: ... this.
19724 * conf/powerpc-ieee1275.rmk: Adjust for the above.
19725 * DISTLIST: Likewise.
19726
b497a269 19727 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
19728 grub/cpu/kernel.h. Add start label for consistency with other
19729 platforms. Add grub_prefix immediately after start. Add jump
19730 to the code after grub_prefix.
19731 * include/grub/powerpc/kernel.h: Provide valid values for
19732 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
19733
6e5a42fe 197342008-08-29 Bean <bean123ch@gmail.com>
19735
19736 * configure.ac: Change host_os to cygwin for mingw.
19737 (asprintf): New check for function.
19738
19739 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
19740 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
19741
19742 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 19743 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 19744 sync, sleep and grub_util_get_disk_size for mingw.
19745
19746 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
19747 to get size in mingw.
19748 (open_device): Use flag O_BINARY if it's defined.
19749 (find_root_device): Add dummy code for mingw.
19750
19751 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
19752 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
19753 (get_scsi_disk_name): Return 0 for mingw.
19754
19755 * util/hostfs.c: #include <grub/util/misc.h>.
19756 (grub_hostfs_open): Use "rb" flag to open file, use
19757 grub_util_get_disk_size to get disk size for mingw.
19758
19759 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
19760 (asprintf): New function if HAVE_ASPRINTF is not set.
19761 (sync): New function for mingw.
19762 (sleep): Likewise.
19763 (grub_util_get_disk_size): Likewise.
19764
ab3f2673 197652008-08-28 Pavel Roskin <proski@gnu.org>
19766
19767 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
19768 kern/time.c.
19769
1c282483 197702008-08-28 Robert Millan <rmh@aybabtu.com>
19771
19772 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
19773
678e849c 197742008-08-28 Robert Millan <rmh@aybabtu.com>
19775
19776 Change find_grub_drive() syntax so it doesn't prevent it from
19777 detecting NULL names as errors.
19778
19779 * util/biosdisk.c (find_grub_drive): Move free slot search code
19780 from here ...
19781 (find_free_slot): ... to here.
19782 (read_device_map): Use find_free_slot() to search for free slots.
19783
965c75ca 197842008-08-27 Marco Gerards <marco@gnu.org>
19785
19786 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
19787 (scsi_mod_SOURCES): New variable.
19788 (scsi_mod_CFLAGS): Likewise
19789 (scsi_mod_LDFLAGS): Likewise.
19790
19791 * disk/scsi.c: New file.
19792
19793 * include/grub/scsi.h: Likewise.
19794
19795 * include/grub/scsicmd.h: Likewise.
19796
19797 * disk/ata.c: Include <grub/scsi.h>.
19798 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
19799 instead.
19800 (grub_ata_iterate): Skip ATAPI devices.
19801 (grub_ata_open): Only handle ATAPI devices.
19802 (struct grub_atapi_read): Removed.
19803 (grub_atapi_readsector): Likewise.
19804 (grub_ata_read): No longer handle ATAPI devices.
19805 (grub_ata_write): Likewise.
19806 (grub_atapi_iterate): New function.
19807 (grub_atapi_read): Likewise.
19808 (grub_atapi_write): Likewise.
19809 (grub_atapi_open): Likewise.
19810 (grub_atapi_close): Likewise.
19811 (grub_atapi_dev): New variable.
19812 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
19813 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
19814
19815 * include/grub/disk.h (enum grub_disk_dev_id): Add
19816 `GRUB_DISK_DEVICE_SCSI_ID'.
19817
c07ae501 198182008-08-26 Robert Millan <rmh@aybabtu.com>
19819
19820 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
19821 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
19822 descriptive.
19823
5ed20adc 198242008-08-23 Bean <bean123ch@gmail.com>
19825
19826 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
19827 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
19828 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
19829 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
19830 dm_nv.mod.
19831 (raid5rec_mod_SOURCES): New macro.
19832 (raid5rec_mod_CFLAGS): Likewise.
19833 (raid5rec_mod_LDFLAGS): Likewise.
19834 (raid6rec_mod_SOURCES): Likewise.
19835 (raid6rec_mod_CFLAGS): Likewise.
19836 (raid6rec_mod_LDFLAGS): Likewise.
19837 (mdraid_mod_SOURCES): Likewise.
19838 (mdraid_mod_CFLAGS): Likewise.
19839 (mdraid_mod_LDFLAGS): Likewise.
19840 (dm_nv_mod_SOURCES): Likewise.
19841 (dm_nv_mod_CFLAGS): Likewise.
19842 (dm_nv_mod_LDFLAGS): Likewise.
19843
19844 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
19845 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
19846 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
19847
19848 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
19849 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
19850
19851 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19852
19853 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19854
19855 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19856
19857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19858
19859 * disk/raid5_recover.c: New file.
19860
19861 * disk/raid6_recover.c: Likewise.
19862
19863 * disk/mdraid_linux.c: Likewise.
19864
19865 * disk/dmraid_nvidia.c: Likewise.
19866
19867 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
19868 ULONG_MAX.
19869
19870 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
19871 calculate the size of raid device.
19872 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
19873 different layout of raid5.
19874 (grub_raid_scan_device): Remove code specific to mdraid.
19875 (grub_raid_list): New variable.
19876 (free_array): New function.
19877 (grub_raid_register): Likewise.
19878 (grub_raid_unregister): Likewise.
19879 (grub_raid_rescan): Likewise.
19880 (GRUB_MOD_INIT): Don't iterate device here.
19881 (GRUB_MOD_FINI): Use free_array to release resource.
19882
19883 * include/grub/raid.h: Remove macro and structure specific to mdraid.
19884 (grub_raid5_recover_func_t): New function variable type.
19885 (grub_raid6_recover_func_t): Likewise.
19886 (grub_raid5_recover_func): New variable.
19887 (grub_raid6_recover_func): Likewise.
19888 (grub_raid_register): New function.
19889 (grub_raid_unregister): Likewise.
19890 (grub_raid_rescan): Likewise.
19891 (grub_raid_block_xor): Likewise.
19892
19893 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
19894 (CMD_CRC): New macro.
19895 (part): Removed.
19896 (read_file): Handle device as well as file.
19897 (cmd_crc): New function.
19898 (fstest): Handle multiple disks.
19899 (options): Remove part, raw and long, add root and diskcount.
19900 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 19901 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 19902 add handling for the new options, support multiple disks.
19903
19904 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
19905
29c18915 199062008-08-23 Bean <bean123ch@gmail.com>
19907
19908 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
19909
19910 * genfslist.sh: Ignore kernel.mod.
19911
19912 * genpartmaplist.sh: Likewise.
19913
8415f261 199142008-08-23 Robert Millan <rmh@aybabtu.com>
19915
19916 * util/getroot.c (find_root_device): Skip anything that starts with
19917 a dot, not just directories. This avoids things like /dev/.tmp.md0.
19918
d5a7dc5b 199192008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 19920
d5a7dc5b 19921 * util/update-grub.in (GRUB_GFXMODE): Export variable.
19922 * util/grub.d/00_header.in: Allow the administrator to change default
19923 gfxmode via ${GRUB_GFXMODE}.
19924
380cfbb4 199252008-08-21 Felix Zielcke <fzielcke@z-51.de>
19926
19927 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
19928
c9baafe7 199292008-08-21 Robert Millan <rmh@aybabtu.com>
19930
19931 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
19932 loader.
19933 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
19934 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
19935
e290bef2 199362008-08-20 Carles Pina i Estany <carles@pina.cat>
19937
19938 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
19939 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
19940
f9dbfc96 199412008-08-19 Robert Millan <rmh@aybabtu.com>
19942
19943 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
19944 (struct grub_virtual_screen): Remove `cursor_color'.
19945 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
19946 initialization.
19947 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
19948
dd6bd6ab 199492008-08-18 Robert Millan <rmh@aybabtu.com>
19950
19951 Unify (identical) linux_normal.c files.
19952 * loader/i386/efi/linux_normal.c: Move from here ...
19953 * loader/linux_normal.c: ... to here. Update all users.
19954 * loader/i386/pc/linux_normal.c: Delete. Update all users.
19955 * loader/i386/ieee1275/linux_normal.c: Likewise.
19956
7f42f83e 199572008-08-18 Robert Millan <rmh@aybabtu.com>
19958
19959 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
19960 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
19961 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
19962 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
19963 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
19964 New macros.
19965 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
19966 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
19967 (GRUB_LINUX_CL_END_OFFSET): ... to here.
19968 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
19969 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
19970 (GRUB_EFI_CL_END_OFFSET): Rename to ...
19971 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
19972 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
19973 Initialize `params->video_cursor_x' and `params->video_cursor_y'
19974 portably using grub_getxy().
19975 Replace `-EFI' with `-bzImage' in boot message.
19976
38487ddb 199772008-08-17 Robert Millan <rmh@aybabtu.com>
19978
19979 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
19980
deceb3ec 199812008-08-17 Robert Millan <rmh@aybabtu.com>
19982
19983 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
19984
19985 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
19986 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
19987 (grub_machine_mmap_iterate): New function declaration.
19988 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
19989 structure.
19990 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
19991 macros.
19992
19993 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
19994 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
19995 Move e820 parsing from here ...
19996 * kern/i386/pc/mmap.c: New file.
19997 (grub_machine_mmap_iterate): ... to here.
19998
19999 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
20000 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
20001 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
20002 (grub_available_iterate): Redeclare to return `void', and redeclare
20003 its hook to use grub_uint64_t as addr and size parameters, and rename
20004 to ...
20005 (grub_machine_mmap_iterate): ... this. Update all users.
20006
20007 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
20008 to make it more readable. Rename to ...
20009 (grub_machine_mmap_iterate): ... this.
20010
20011 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
20012 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
20013 (grub_multiboot): Allocate an extra region after the payload, and fill
20014 it with a Multiboot memory map. Adjust a.out loader to calculate size
20015 with the extra space.
20016 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
20017 with the extra space.
20018
f8aa0f43 200192008-08-17 Carles Pina i Estany <carles@pina.cat>
20020
9807deb9 20021 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 20022
605f5bb6 200232008-08-17 Felix Zielcke <fzielcke@z-51.de>
20024
20025 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
20026 mdate-sh to the list `find' searches for.
20027 * DISTLIST: Regenerated.
20028
210db6c6 200292008-08-16 Felix Zielcke <fzielcke@z-51.de>
20030
20031 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
20032 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 20033 genmoddep.awk, gensymlist.sh.in.
20034 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 20035 * DISTLIST: Regenerated.
48cdbfd4 20036 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 20037
1082b929 200382008-08-16 Robert Millan <rmh@aybabtu.com>
20039
20040 * disk/raid.c (grub_raid_init): Handle/report errors set by
20041 grub_device_iterate().
20042 * disk/lvm.c (grub_lvm_init): Likewise.
20043
42ce5170 200442008-08-15 Bean <bean123ch@gmail.com>
20045
20046 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20047 and datehook.mod.
20048 (datetime_mod_SOURCES): New macro.
20049 (datetime_mod_CFLAGS): Likewise.
20050 (datetime_mod_LDFLAGS): Likewise.
20051 (date_mod_SOURCES): Likewise.
20052 (date_mod_CFLAGS): Likewise.
20053 (date_mod_LDFLAGS): Likewise.
20054 (datehook_mod_SOURCES): Likewise.
20055 (datehook_mod_CFLAGS): Likewise.
20056 (datehook_mod_LDFLAGS): Likewise.
20057
20058 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20059 and datehook.mod.
20060 (datetime_mod_SOURCES): New macro.
20061 (datetime_mod_CFLAGS): Likewise.
20062 (datetime_mod_LDFLAGS): Likewise.
20063 (date_mod_SOURCES): Likewise.
20064 (date_mod_CFLAGS): Likewise.
20065 (date_mod_LDFLAGS): Likewise.
20066 (datehook_mod_SOURCES): Likewise.
20067 (datehook_mod_CFLAGS): Likewise.
20068 (datehook_mod_LDFLAGS): Likewise.
20069
20070 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20071 and datehook.mod.
20072 (datetime_mod_SOURCES): New macro.
20073 (datetime_mod_CFLAGS): Likewise.
20074 (datetime_mod_LDFLAGS): Likewise.
20075 (date_mod_SOURCES): Likewise.
20076 (date_mod_CFLAGS): Likewise.
20077 (date_mod_LDFLAGS): Likewise.
20078 (datehook_mod_SOURCES): Likewise.
20079 (datehook_mod_CFLAGS): Likewise.
20080 (datehook_mod_LDFLAGS): Likewise.
20081
20082 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20083 and datehook.mod.
20084 (datetime_mod_SOURCES): New macro.
20085 (datetime_mod_CFLAGS): Likewise.
20086 (datetime_mod_LDFLAGS): Likewise.
20087 (date_mod_SOURCES): Likewise.
20088 (date_mod_CFLAGS): Likewise.
20089 (date_mod_LDFLAGS): Likewise.
20090 (datehook_mod_SOURCES): Likewise.
20091 (datehook_mod_CFLAGS): Likewise.
20092 (datehook_mod_LDFLAGS): Likewise.
20093
20094 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20095 and datehook.mod.
20096 (datetime_mod_SOURCES): New macro.
20097 (datetime_mod_CFLAGS): Likewise.
20098 (datetime_mod_LDFLAGS): Likewise.
20099 (date_mod_SOURCES): Likewise.
20100 (date_mod_CFLAGS): Likewise.
20101 (date_mod_LDFLAGS): Likewise.
20102 (datehook_mod_SOURCES): Likewise.
20103 (datehook_mod_CFLAGS): Likewise.
20104 (datehook_mod_LDFLAGS): Likewise.
20105
20106 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
20107
20108 * commands/date.c: New file.
20109
20110 * hook/datehook.c: Likewise.
20111
20112 * include/grub/lib/datetime.h: Likewise.
20113
20114 * include/grub/i386/cmos.h: Likewise.
20115
20116 * lib/datetime.c: Likewise.
20117
20118 * lib/i386/datetime.c: Likewise.
20119
20120 * lib/efi/datetime.c: Likewise.
20121
0e9242da 201222008-08-14 Robert Millan <rmh@aybabtu.com>
20123
20124 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
20125 (grub_mkelfimage_SOURCES): New variable.
20126 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
20127
20128 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
20129 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
20130 * conf/powerpc-ieee1275.rmk: Likewise.
20131 * conf/i386-ieee1275.rmk: Likewise.
20132
20133 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
20134 * kern/i386/coreboot/init.c: Likewise.
20135
20136 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
20137 with `<grub/cpu/kernel.h>'.
20138 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
20139 to ...
20140 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
20141 * kern/i386/coreboot/startup.S: Likewise.
20142
20143 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
20144 (GRUB_MOD_GAP): Remove.
20145 * include/grub/powerpc/kernel.h: New file.
20146 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
20147 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
20148 * include/grub/i386/kernel.h: New file.
20149 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
20150 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
20151 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
20152
20153 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
20154 `grub-mkelfimage'.
20155 Use --directory when invoking grub_mkimage.
20156
20157 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
20158 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
20159 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
20160 and GRUB_KERNEL_CPU_PREFIX.
20161
b86408f8 201622008-08-14 Felix Zielcke <fzielcke@z-51.de>
20163
d5e619ca 20164 * include/grub/err.h (grub_err_printf): New function prototype.
20165 * util/misc.c (grub_err_printf): New function.
20166 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
20167 grub_printf.
20168 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 20169
7161f0e0 201702008-08-13 Robert Millan <rmh@aybabtu.com>
20171
20172 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
20173
a1967522 201742008-08-13 Robert Millan <rmh@aybabtu.com>
20175
20176 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
20177 boot entry.
20178
371458b5 201792008-08-12 Robert Millan <rmh@aybabtu.com>
20180
20181 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
20182 of the relocation code from here ...
20183 (grub_multiboot): ... to here.
20184 (forward_relocator, backward_relocator): Move from here ...
20185 * kern/i386/loader.S (grub_multiboot_forward_relocator)
20186 (grub_multiboot_backward_relocator): ... to here.
20187 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
20188 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
20189 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
20190 (grub_multiboot_forward_relocator_end)
20191 (grub_multiboot_backward_relocator)
20192 (grub_multiboot_backward_relocator_end): New variables.
20193
05f9452b 201942008-08-12 Bean <bean123ch@gmail.com>
20195
20196 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
20197
20024ab0 201982008-08-11 Robert Millan <rmh@aybabtu.com>
20199
20200 * kern/i386/linuxbios/startup.S: Move from here ...
20201 * kern/i386/coreboot/startup.S: ... to here.
20202
20203 * kern/i386/linuxbios/init.c: Move from here ...
20204 * kern/i386/coreboot/init.c: ... to here.
20205
20206 * kern/i386/linuxbios/table.c: Move from here ...
20207 * kern/i386/coreboot/mmap.c: ... to here.
20208
20209 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
20210
e352e9cd 202112008-08-11 Robert Millan <rmh@aybabtu.com>
20212
20213 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
20214 errors. Leave it to the upper layer to handle them.
20215
2d05bc6a 202162008-08-09 Christian Franke <franke@computer.org>
20217
20218 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
20219 * conf/common.rmk: Install `grub-pe2elf' only if requested.
20220 Install `grub.d/10_windows' only on Cygwin.
20221 * configure.ac: Add subst of `target_os'.
20222 Check `target_os' also before setting TARGET_OBJ2ELF.
20223 Add `--enable-grub-pe2elf'.
20224
042bd419 202252008-08-08 Robert Millan <rmh@aybabtu.com>
20226
20227 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
20228 (grub_last_time): Change type to grub_uint64_t.
20229 (grub_disk_open): Migrate code from to using grub_get_time_ms().
20230 (grub_disk_close): Likewise.
20231
20232 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
20233 (run_menu): Migrate code from to using grub_get_time_ms().
20234
20235 * util/misc.c (grub_get_time_ms): New function.
20236
7f280db5 202372008-08-08 Marco Gerards <marco@gnu.org>
20238
20239 * disk/ata.c (grub_ata_regget): Change return type to
20240 `grub_uint8_t'.
20241 (grub_ata_regget2): Likewise.
20242 (grub_ata_wait_status): New function.
20243 (grub_ata_wait_busy): Removed function, updated all users to use
20244 `grub_ata_wait_status'.
20245 (grub_ata_wait_drq): Likewise.
20246 (grub_ata_cmd): New function.
20247 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
20248 error handling.
20249 (grub_ata_pio_write): Add error handling.
20250 (grub_atapi_identify): Likewise.
20251 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
20252 handling.
20253 (grub_ata_identify): Use `grub_ata_cmd' and improve error
20254 handling. Actually use the detected registers. Reorder the
20255 detection logic such that it is easier to read.
20256 (grub_ata_pciinit): Do not assign the same ID to each controller.
20257 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
20258 handling.
20259 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
20260
20261 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
20262
1fbc5e66 202632008-08-08 Marco Gerards <marco@gnu.org>
20264
20265 * NEWS: Update.
20266
819ce6c0 202672008-08-07 Bean <bean123ch@gmail.com>
20268
20269 * include/grub/x86_64/pci.h: New file.
20270
5c41d44d 202712008-08-07 Christian Franke <franke@computer.org>
20272
20273 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
20274 (TIMER2_GATE): Likewise.
20275 (grub_pit_wait): Add enable/disable of the timer2 gate
20276 bit of port 0x61. This fixes a possible infinite loop.
20277
5ebc275d 202782008-08-07 Bean <bean123ch@gmail.com>
20279
20280 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
20281 kern/i386/tsc.c and kern/i386/pit.c.
20282
20283 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
20284 x86_64 platform.
20285
20286 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
20287 <grub/i386/tsc.h>.
20288
20289 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
20290
e383b3d0 202912008-08-07 Bean <bean123ch@gmail.com>
20292
20293 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
20294
20295 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
20296
20297 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
20298 multiple inclusion. Add #include <grub/types.h>.
20299
1cbb58ac 203002008-08-06 Christian Franke <franke@computer.org>
20301
20302 * conf/common.rmk: Build and install `10_windows'.
20303 * util/grub.d/10_windows.in: New script.
20304
337f5a1e 203052008-08-06 Pavel Roskin <proski@gnu.org>
20306
20307 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
20308
057bc4ac 203092008-08-06 Robert Millan <rmh@aybabtu.com>
20310
20311 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
20312 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
20313
2b99f123 203142008-08-06 Bean <bean123ch@gmail.com>
20315
20316 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
20317 (grub_pxefs_fs_int): Remove dummy definition.
20318 (grub_pxefs_open): Use data->block_size to store the current block
20319 size setting.
20320 (grub_pxefs_read): Use block size stored in data->block_size. As the
20321 value of grub_pxe_blksize can be changed after the file is opened.
20322
9f0234cb 203232008-08-06 Bean <bean123ch@gmail.com>
20324
20325 * fs/i386/pc/pxe.c (curr_file): new variable.
20326 (grub_pxefs_open): Simply the handling of pxe file system. Don't
20327 require the dummy internal file system anymore.
20328 (grub_pxefs_read): Removed.
20329 (grub_pxefs_close): Likewise.
20330 (grub_pxefs_fs_int): Likewise.
20331 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
20332 connection when we switch file.
20333 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
20334
a55d42e0 203352008-08-06 Robert Millan <rmh@aybabtu.com>
20336
20337 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
20338 `halt.mod'.
20339 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
20340 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
20341
20342 * kern/i386/halt.c: New file.
20343 * kern/i386/reboot.c: Likewise.
20344 * include/grub/i386/reboot.h: Likewise.
20345 * include/grub/i386/halt.h: Likewise.
20346
20347 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
20348 Include `<grub/cpu/halt.h>'.
20349 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
20350 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
20351
20352 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
20353 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
20354 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
20355 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
20356 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
20357 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
20358 from here ...
20359 * include/grub/i386/at_keyboard.h: ... to here.
20360
24371d26 203612008-08-05 Robert Millan <rmh@aybabtu.com>
20362
20363 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
20364 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
20365 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
20366 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
20367 `kern/generic/millisleep.c'.
20368
20369 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
20370 instead of grub_get_rtc().
20371 (grub_tsc_init): Initialize `tsc_boot_time'.
20372
20373 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
20374 (grub_machine_init): Use grub_tsc_init() rather than
20375 installing an RTC-based handler via grub_install_get_time_ms().
20376
20377 * kern/i386/pit.c: New file.
20378 * include/grub/i386/pit.h: Likewise.
20379
9e7007b3 203802008-08-05 Bean <bean123ch@gmail.com>
20381
20382 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
20383
20384 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
20385 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
20386 (pxe_mod_SOURCES): New macro.
20387 (pxe_mod_CFLAGS): Likewise.
20388 (pxe_mod_LDFLAGS): Likewise.
20389 (pxecmd_mod_SOURCES): Likewise.
20390 (pxecmd_mod_CFLAGS): Likewise.
20391 (pxecmd_mod_LDFLAGS): Likewise.
20392
20393 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
20394 (grub_pxe_call): Likewise.
20395
20396 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
20397
20398 * commands/i386/pc/pxecmd.c: New file.
20399
9f0234cb 20400 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 20401
20402 * include/grub/i386/pc/pxe.h: Likewise.
20403
6977d49f 204042008-08-05 Bean <bean123ch@gmail.com>
20405
20406 * util/console.c (grub_console_cur_color): New variable.
20407 (grub_console_standard_color): Likewise.
20408 (grub_console_normal_color): Likewise.
20409 (grub_console_highlight_color): Likewise.
20410 (color_map): Likewise.
20411 (use_color): Likewise.
20412 (NUM_COLORS): New macro.
20413 (grub_ncurses_setcolorstate): Handle color properly.
20414 (grub_ncurses_setcolor): Don't change color here, just remember the
20415 settings, color will be set in grub_ncurses_setcolorstate.
20416 (grub_ncurses_getcolor): New function.
20417 (grub_ncurses_init): Initialize color pairs.
20418 (grub_ncurses_term): New member grub_ncurses_getcolor.
20419
9c2ff3ee 204202008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 20421
9c2ff3ee 20422 High resolution timer support. Implemented for x86 CPUs using TSC.
20423 Extracted generic grub_millisleep() so it's linked in only as needed.
20424 This requires a Pentium compatible CPU; if the RDTSC instruction is
20425 not supported, then it falls back on the generic grub_get_time_ms()
20426 implementation that uses the machine's RTC.
20427
20428 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
20429 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
20430 `kern/generic/millisleep.c'.
20431
20432 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
20433 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
20434
20435 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
20436 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
20437
20438 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
20439
20440 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
20441 `kern/generic/millisleep.c'.
20442
20443 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
20444
20445 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
20446
20447 * kern/generic/rtc_get_time_ms.c: New file.
20448
20449 * kern/generic/millisleep.c: New file.
337f5a1e 20450
9c2ff3ee 20451 * kern/misc.c: Don't include
20452 <kern/time.h> anymore.
20453 (grub_millisleep_generic): Removed.
20454
20455 * commands/sleep.c (grub_interruptible_millisleep): Uses
20456 grub_get_time_ms() instead of grub_get_rtc().
20457
20458 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
20459 function.
20460 (grub_cpu_is_cpuid_supported): New inline function.
20461 (grub_cpu_is_tsc_supported): New inline function.
20462 (grub_tsc_init): New function prototype.
20463 (grub_tsc_get_time_ms): New function prototype.
20464
20465 * kern/i386/tsc.c (grub_get_time_ms): New file.
20466
20467 * include/grub/time.h: Include <grub/types.h.
20468 (grub_millisleep_generic): Removed.
20469 (grub_get_time_ms): New prototype.
20470 (grub_install_get_time_ms): New prototype.
20471 (grub_rtc_get_time_ms): New prototype.
20472
20473 * kern/time.c (grub_get_time_ms): New function.
20474 (grub_install_get_time_ms): New function.
20475
20476 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
20477 <grub/time.h> anymore.
20478 (grub_millisleep): Removed.
20479 (grub_machine_init): Call grub_tsc_init.
20480
20481 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
20482 get_time_ms() implementation.
20483
20484 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
20485 (ieee1275_get_time_ms): New function.
20486 (grub_machine_init): Install get_time_ms() implementation.
20487
20488 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
20489 (grub_machine_init): Call grub_tsc_init().
20490 (grub_millisleep): Removed.
bf06a93f 20491
9c2ff3ee 20492 * kern/ieee1275/init.c (grub_millisleep): Removed.
20493 (grub_machine_init): Install ieee1275_get_time_ms()
20494 implementation.
20495 (ieee1275_get_time_ms): New function.
20496 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
20497 real work.
20498
9ec92aaf 204992008-08-05 Marco Gerards <marco@gnu.org>
20500
20501 * disk/ata.c: Include <grub/pci.h>.
20502 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
20503 (grub_ata_initialize): Rewritten.
20504 (grub_ata_device_initialize): New function.
20505
8d23f507 205062008-08-04 Pavel Roskin <proski@gnu.org>
20507
20508 * kern/main.c: Include grub/mm.h.
20509
5e15ee3d 205102008-08-04 Robert Millan <rmh@aybabtu.com>
20511
20512 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
20513 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
20514 corruption problem).
20515
a9053f8f 205162008-08-04 Robert Millan <rmh@aybabtu.com>
20517
20518 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
20519 warnings introduced in my last commit.
20520
dd19c7d7 205212008-08-03 Robert Millan <rmh@aybabtu.com>
20522
20523 Make PCI available on all i386 architectures.
20524
20525 * include/grub/i386/pc/pci.h: Move from here ...
20526 * include/grub/i386/pci.h: ... to here.
20527
20528 * include/grub/i386/pc/pci.h: Remove.
20529 * include/grub/i386/efi/pci.h: Remove.
20530 * include/grub/x86_64/efi/pci.h: Remove.
20531
20532 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
20533 `<grub/cpu/pci.h>'.
20534
20535 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
20536 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
20537 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
20538
20539 * conf/i386-ieee1275.rmk: Likewise.
20540
e14a6184 205412008-08-03 Robert Millan <rmh@aybabtu.com>
20542
20543 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
20544 (grub_console_setcursor): Make it possible to set cursor off.
20545
52768e37 205462008-08-03 Robert Millan <rmh@aybabtu.com>
20547
20548 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
20549 of modules instead of assuming which platform provides what.
20550 * util/update-grub.in: Likewise.
20551
2d52f57f 205522008-08-03 Robert Millan <rmh@aybabtu.com>
20553
20554 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
20555 instead of `grub_install_dos_part' to determine whether a drive needs
20556 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 20557 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 20558
2a5cd121 205592008-08-02 Robert Millan <rmh@aybabtu.com>
20560
20561 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
20562
93808428 205632008-08-02 Robert Millan <rmh@aybabtu.com>
20564
20565 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
20566 of informational grub_dprintf() calls.
20567
3bd0a12a 205682008-08-02 Robert Millan <rmh@aybabtu.com>
20569
20570 * disk/memdisk.c (memdisk_size): Don't initialize.
20571 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
20572
20573 * include/grub/i386/pc/kernel.h
20574 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
20575 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
20576 (grub_memdisk_image_size, grub_arch_memdisk_addr)
20577 (grub_arch_memdisk_size): Remove.
20578
20579 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
20580 field (was only used to transfer a constant). Add `type' field to
20581 support multiple module types.
20582 (grub_module_iterate): New function.
20583
20584 * kern/device.c (grub_device_open): Do not hide error messages
20585 when grub_disk_open() fails. Use grub_print_error() instead.
20586
20587 * kern/i386/pc/init.c (grub_arch_modules_addr)
20588 (grub_arch_memdisk_size): Remove functions.
20589 (grub_arch_modules_addr): Return the module address in high memory
20590 (now that it isn't copied anymore).
20591
20592 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
20593 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
20594 decompression routine (grub_total_module_size already includes that
20595 now). Don't copy modules back to low memory.
20596
20597 * kern/main.c: Include `<grub/mm.h>'.
20598 (grub_load_modules): Split out (and use) ...
20599 (grub_module_iterate): ... this function, which iterates through
20600 module objects and runs a hook.
20601 Comment out grub_mm_init_region() call, as it would cause non-ELF
20602 modules to be overwritten.
20603
20604 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
20605 the memdisk image in its own region, make it part of the module list.
20606 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
20607 (main): Parse --memdisk|-m option, and pass user-provided path as
20608 parameter to generate_image().
20609 (add_segments): Pass `memdisk_path' down to load_modules().
20610 (load_modules): Embed memdisk image in module section when requested.
20611 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
20612 `header.type' instead of `header.offset'.
20613
20614 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
20615 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
20616 (memdisk_mod_LDFLAGS): New variables.
20617 * conf/i386-coreboot.rmk: Likewise.
20618 * conf/i386-ieee1275.rmk: Likewise.
20619
a927cc73 206202008-08-02 Robert Millan <rmh@aybabtu.com>
20621
20622 * loader/i386/pc/multiboot.c (playground, forward_relocator)
20623 (backward_relocator): New variables. Used to allocate and relocate
20624 the payload, respectively.
20625 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 20626 address, install the appropriate relocator code in each bound of
a927cc73 20627 the payload, and set the entry point such that
20628 grub_multiboot_real_boot() will jump to one of them.
20629
20630 * kern/i386/loader.S (grub_multiboot_payload_size)
20631 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
20632 (grub_multiboot_payload_entry_offset): New variables.
20633 (grub_multiboot_real_boot): Set cpu context to what the relocator
20634 expects, and jump to the relocator instead of the payload.
20635
20636 * include/grub/i386/loader.h (grub_multiboot_payload_size)
20637 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
20638 (grub_multiboot_payload_entry_offset): Export.
20639
b15d8a0c 206402008-08-01 Bean <bean123ch@gmail.com>
20641
20642 * normal/menu_entry.c (editor_getline): Don't return the original
20643 string as result, as it will be released by lexer once it has done
20644 using it.
20645
cdfb3d22 206462008-08-01 Robert Millan <rmh@aybabtu.com>
20647
20648 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
20649 within menuentries, not before them.
20650 util/grub.d/10_hurd.in: Likewise.
20651
9175e93d 206522008-08-01 Bean <bean123ch@gmail.com>
20653
20654 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
20655 (bufio_mod_SOURCES): New macro.
20656 (bufio_mod_CFLAGS): Likewise.
20657 (bufio_mod_LDFLAGS): Likewise.
20658
20659 * include/grub/bufio.h: New file.
20660
20661 * io/bufio.c: Likewise.
20662
20663 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
20664 (grub_video_reader_png): Use grub_buffile_open to open file.
20665
20666 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
20667 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
20668
20669 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
20670 (grub_video_reader_tga): Use grub_buffile_open to open file.
20671
20672 * font/manager.c: Include <grub/bufio.h>.
20673 (add_font): Use grub_buffile_open to open file.
20674
3d8383e7 206752008-07-31 Robert Millan <rmh@aybabtu.com>
20676
20677 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
20678 ELF segments, use a macro for arbitrarily accessing any of them instead
20679 of preparing a pointer that allows access to one at a time.
20680 (grub_multiboot_load_elf64): Likewise.
20681
16e641b6 206822008-07-31 Bean <bean123ch@gmail.com>
20683
20684 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
20685 GRUB_KERNEL_MACHINE_DATA_END.
20686
59198b72 206872008-07-30 Robert Millan <rmh@aybabtu.com>
20688
20689 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
20690 Increase from 0x50 to 0x60.
20691 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
20692 use UUIDs to identify the root drive for them. If that's not
20693 possible, abort.
20694 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
20695 check, for cross-disk installs.
20696
ae88bca3 206972008-07-30 Robert Millan <rmh@aybabtu.com>
20698
20699 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
20700 is non-empty, use it to set the `prefix' environment variable instead
20701 of the usual approach.
20702 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
20703 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
20704 environment variable instead of dummy make_install_device().
20705
20706 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
20707 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 20708 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 20709
20710 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
20711 New variable reference.
20712 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
20713 New macro. Defines offset of `grub_prefix' within startup.S (relative
20714 to `start').
20715 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
20716 section within startup.S (relative to `start').
20717 * include/grub/i386/coreboot/kernel.h: Likewise.
20718
20719 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
20720 Overwrite grub_prefix with its contents, at the beginning of the
20721 first segment.
20722 (main): Understand -p|--prefix.
20723
14f41dd1 207242008-07-30 Robert Millan <rmh@aybabtu.com>
20725
20726 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
20727
4ca049a3 207282008-07-30 Robert Millan <rmh@aybabtu.com>
20729
20730 * term/i386/pc/vga_text.c (grub_console_cls): Use
20731 grub_console_gotoxy() to go back to beginning of the screen.
20732 Found by Patrick Georgi <patrick.georgi@coresystems.de>
20733
2921d337 207342008-07-29 Christian Franke <franke@computer.org>
20735
20736 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
20737 Add conversion of emulated mount points on Cygwin.
20738
b609876d 207392008-07-29 Christian Franke <franke@computer.org>
20740
20741 * util/update-grub.in: Add a check for admin
20742 group on Cygwin.
20743 Remove old `grub.cfg.new' before creation.
20744 Add `-f' to `mv' to handle the different filesystem
20745 semantics of Windows.
20746
e93e4679 207472008-07-29 Bean <bean123ch@gmail.com>
20748
20749 * normal/main.c (get_line): Fix buffer overflow bug.
20750
41694fd0 207512008-07-28 Robert Millan <rmh@aybabtu.com>
20752
20753 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
20754 (struct grub_apple_header): New struct. Describes the layout of
20755 the partmap header.
20756 (apple_partition_map_iterate): Check the header magic as well as the
20757 partition magic (which was already being checked).
20758
cfd0b4e6 207592008-07-28 Pavel Roskin <proski@gnu.org>
20760
20761 * genmk.rb: Add a warning to the beginning of the output that
20762 it's a generated file and should not be edited.
20763
93cce016 207642008-07-28 Robert Millan <rmh@aybabtu.com>
20765
20766 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
20767 with the same number are found, just use issue a warning with
20768 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 20769
cd1df915 207702008-07-27 Robert Millan <rmh@aybabtu.com>
20771
20772 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
20773 information.
20774
b70a8427 207752008-07-27 Bean <bean123ch@gmail.com>
20776
20777 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
20778 (grub_fat_find_dir): Ignore case when comparing filename.
20779
8f5e379f 207802008-07-27 Bean <bean123ch@gmail.com>
20781
20782 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
20783 smallino, as it's more descriptive, and i8count can be confused with
20784 the other field count.
20785 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
20786 inode type.
20787
a85cd5a0 207882008-07-27 Bean <bean123ch@gmail.com>
20789
20790 * commands/crc.c: New file.
20791
20792 * lib/crc.c: Likewise.
20793
20794 * include/grub/lib/crc.h: Likewise.
20795
20796 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
20797
20798 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
20799 (hexdump): Move this function to ...
20800
20801 * lib/hexdump.c: ... here.
20802
20803 * include/grub/hexdump.h: Renamed to ...
20804
20805 * include/grub/lib/hexdump.h: ... this.
20806
20807 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
20808
20809 * util/grub-editenv.c: Likewise.
20810
20811 * include/envblk.h: Renamed to ...
20812
20813 * include/lib/envblk.h: ... this.
20814
20815 * util/envblk.c: Renamed to ...
20816
20817 * lib/envblk.c: ... this.
20818
20819 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
20820 lib/hexdump.c.
20821 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
20822 (pkglib_MODULES): Add crc.mod.
20823 (hexdump_mod_SOURCES): Add lib/hexdump.c.
20824 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
20825 (crc_mod_SOURCES): New macro.
20826 (crc_mod_CFLAGS): Likewise.
20827 (crc_mod_LDFLAGS): Likewise.
20828
20829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
20830
20831 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20832
20833 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20834
20835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20836
20837 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20838
c298def0 208392008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 20840
20841 * commands/help.c: Include <grub/term.h>.
20842 (TERM_WIDTH): Removed. Updated all users.
20843
cc349fb3 208442008-07-27 Pavel Roskin <proski@gnu.org>
20845
20846 * util/getroot.c (find_root_device): Rephrase a comment to avoid
20847 spurious warnings about a comment within a comment.
20848
9051607e 208492008-07-25 Robert Millan <rmh@aybabtu.com>
20850
20851 * util/getroot.c (find_root_device): Skip devices that match
20852 /dev/dm-[0-9]. This lets the real device be found for any type of
20853 abstraction (LVM, EVMS, RAID..).
20854 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
20855 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
20856 device is found first, find_root_device() will now skip it.
20857
01453bfc 208582008-07-24 Pavel Roskin <proski@gnu.org>
20859
20860 * include/grub/types.h: Use __builtin_bswap32() and
20861 __builtin_bswap64() with gcc 4.3 and newer.
20862
6af9849f 208632008-07-24 Christian Franke <franke@computer.org>
20864
3a0fa256 20865 * util/i386/pc/grub-install.in: If `--debug' is specified,
20866 pass `--verbose' to grub-setup.
20867 Abort script if make_system_path_relative_to_its_root() fails.
20868
7810e747 208692008-07-24 Bean <bean123ch@gmail.com>
20870
20871 * configure.ac: Fixed a bug caused by the previous cygwin patch,
20872 variable `target_platform' should be `platform'.
20873
42290e17 208742008-07-24 Bean <bean123ch@gmail.com>
20875
51cc5193 20876 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 20877 (grub_png_init_fixed_block): New function.
20878 (grub_png_decode_image_data): Handle fixed huffman code compression.
20879
2a8a80e4 208802008-07-24 Bean <bean123ch@gmail.com>
20881
20882 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
20883 (grub_pe2elf_SOURCES): New macro.
20884 (CLEANFILES): Add grub-pe2elf.
20885
20886 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
20887 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
20888 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
20889 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
20890 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
20891 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
20892 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
20893 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
20894 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
20895 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
20896 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
20897 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
20898 (GRUB_PE32_DT_FUNCTION): Likewise.
20899 (GRUB_PE32_REL_I386_DIR32): Likewise.
20900 (GRUB_PE32_REL_I386_REL32): Likewise.
20901 (grub_pe32_symbol): New structure.
20902 (grub_pe32_reloc): Likewise.
20903
20904 * util/grub-pe2elf.c: New file.
20905
20906 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
20907 start symbol in non pc platform.
20908
20909 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
20910
20911 The following patches are from Christian Franke.
20912
20913 * include/grub/dl.h: Remove .previous, gas supports this only
20914 for ELF format.
20915
20916 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
20917 Remove .type, gas supports this only for ELF format.
20918
20919 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
20920 nullbytes in symbol table. This fixes an infinite loop if table is
20921 zero filled.
20922
20923 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
20924 TARGET_IMG_LDFLAGS and EXEEXT.
20925
20926 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
20927 TARGET_IMG_LDFLAGS_AC.
20928 (grub_CHECK_STACK_ARG_PROBE): New function.
20929
20930 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
20931
20932 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
20933
20934 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
20935 to set TARGET_IMG_LD* accordingly.
20936 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
20937 Add call to grub_CHECK_STACK_ARG_PROBE.
20938 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
20939
20940 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
20941
20942 * genmk.rb: Add EXEEXT to CLEANFILES.
20943
12ccdb75 209442008-07-23 Robert Millan <rmh@aybabtu.com>
20945
20946 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
20947 define the codes for arrows and lines used for the menu).
20948 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
20949 as well.
20950
20951 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
20952 fonts, because the latter are too slow.
20953
18eeaf04 209542008-07-21 Bean <bean123ch@gmail.com>
20955
20956 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
20957 a20. Run keyboard test last, as it will cause macbook to halt.
20958
b095e2ad 209592008-07-18 Pavel Roskin <proski@gnu.org>
20960
20961 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
20962 load foreign architecture modules correctly anyway. Keep
20963 support for loading host architecture modules, whether we
20964 compile them or not.
20965
737feb35 209662008-07-17 Pavel Roskin <proski@gnu.org>
20967
3f4ce737 20968 * configure.ac: Use -m32 or -m64 regardless of whether we had to
20969 change target_cpu. The compiler default can mismatch target_cpu
20970 in any case.
20971
4ad2d049 20972 * disk/efi/efidisk.c: Fix format warnings on x86_64.
20973 * kern/efi/efi.c: Likewise.
20974
f6130a12 20975 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
20976 target compiler is functional.
20977 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
20978 are set up.
20979
58393a2d 20980 * configure.ac: Default to efi platform for x86_64-apple. Allow
20981 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
20982 adjustments from the rest, only do them if target is not
20983 explicitly given. Merge other adjustments with the final sanity
20984 check. Remove an extraneous check for supported CPU. Be
20985 specific which CPU and which platform is not supported.
20986
737feb35 20987 * configure.ac: Default to pc platform for x86_64.
20988
546f966a 209892008-07-17 Robert Millan <rmh@aybabtu.com>
20990
20991 Partial LinuxBIOS -> Coreboot rename.
20992
20993 * conf/i386-linuxbios.rmk: Renamed to ...
20994 * conf/i386-coreboot.rmk: ... this.
20995 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
20996 * configure.ac: Accept "coreboot" as input platform (but maintain
20997 compatibility with "linuxbios").
20998 * include/grub/i386/linuxbios: Renamed to ...
20999 * include/grub/i386/coreboot: ... this.
21000
20011694 210012008-07-17 Bean <bean123ch@gmail.com>
21002
21003 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 21004 (appleldr_mod_SOURCE): New variable.
20011694 21005 (appleldr_mod_CFLAGS): Likewise.
21006 (appleldr_mod_LDFLAGS): Likewise.
21007 (pci_mod_SOURCES): Likewise.
21008 (pci_mod_CFLAGS): Likewise.
21009 (pci_mod_LDFLAGS): Likewise.
21010 (lspci_mod_SOURCES): Likewise.
21011 (lspci_mod_CFLAGS): Likewise.
21012 (lspci_mod_LDFLAGS): Likewise.
21013
21014 * conf/x86_64-efi.rmk: New file.
21015
21016 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
21017 macro.
21018 (grub_efidisk_write): Likewise.
21019
21020 * include/efi/api.h (efi_call_0): New macro.
21021 (efi_call_1): Likewise.
21022 (efi_call_2): Likewise.
21023 (efi_call_3): Likewise.
21024 (efi_call_4): Likewise.
21025 (efi_call_5): Likewise.
21026 (efi_call_6): Likewise.
21027
21028 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
21029 grub_rescue_cmd_chainloader.
21030
21031 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
21032 (grub_pe32_optional_header): Change some fields based on i386 or
21033 x86_64 platform.
21034 (GRUB_PE32_PE32_MAGIC): Likewise.
21035
21036 * include/grub/efi/uga_draw.h: New file.
21037
21038 * include/grub/elf.h (STN_ABS): New constant.
21039 (R_X86_64_NONE): Relocation constant for x86_64.
21040 (R_X86_64_64): Likewise.
21041 (R_X86_64_PC32): Likewise.
21042 (R_X86_64_GOT32): Likewise.
21043 (R_X86_64_PLT32): Likewise.
21044 (R_X86_64_COPY): Likewise.
21045 (R_X86_64_GLOB_DAT): Likewise.
21046 (R_X86_64_JUMP_SLOT): Likewise.
21047 (R_X86_64_RELATIVE): Likewise.
21048 (R_X86_64_GOTPCREL): Likewise.
21049 (R_X86_64_32): Likewise.
21050 (R_X86_64_32S): Likewise.
21051 (R_X86_64_16): Likewise.
21052 (R_X86_64_PC16): Likewise.
21053 (R_X86_64_8): Likewise.
21054 (R_X86_64_PC8): Likewise.
21055
21056 * include/grub/i386/efi/pci.h: New file.
21057
21058 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
21059 Change it value based on platform.
21060 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
21061 (GRUB_E820_RAM): Likewise.
21062 (GRUB_E820_RESERVED): Likewise.
21063 (GRUB_E820_ACPI): Likewise.
21064 (GRUB_E820_NVS): Likewise.
21065 (GRUB_E820_EXEC_CODE): Likewise.
21066 (GRUB_E820_MAX_ENTRY): Likewise.
21067 (grub_e820_mmap): New structure.
21068 (linux_kernel_header): Change the efi field according to different
21069 kernel version, also field from linux_kernel_header.
21070
21071 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
21072
21073 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
21074 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
21075 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
21076 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
21077 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
21078 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
21079 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
21080 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
21081 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
21082 (GRUB_PCI_ADDR_IO_MASK): Likewise.
21083
21084 * include/grub/x86_64/efi/kernel.h: New file.
21085
21086 * include/grub/x86_64/efi/loader.h: Likewise.
21087
21088 * include/grub/x86_64/efi/machine.h: Likewise.
21089
21090 * include/grub/x86_64/efi/pci.h: Likewise.
21091
21092 * include/grub/x86_64/efi/time.h: Likewise.
21093
21094 * include/grub/x86_64/linux.h: Likewise.
21095
21096 * include/grub/x86_64/setjmp.h: Likewise.
21097
21098 * include/grub/x86_64/time.h: Likewise.
21099
21100 * include/grub/x86_64/types.h: Likewise.
21101
21102 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
21103 GRUB_TARGET_SIZEOF_VOID_P.
21104
21105 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
21106 (grub_efi_locate_handle): Likewise.
21107 (grub_efi_open_protocol): Likewise.
21108 (grub_efi_set_text_mode): Likewise.
21109 (grub_efi_stall): Likewise.
21110 (grub_exit): Likewise.
21111 (grub_reboot): Likewise.
21112 (grub_halt): Likewise.
21113 (grub_efi_exit_boot_services): Likewise.
21114 (grub_get_rtc): Likewise.
21115
21116 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
21117 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
21118 (grub_efi_allocate_pages): Wrap efi calls.
21119 (grub_efi_free_pages): Wrap efi calls.
21120 (grub_efi_get_memory_map): Wrap efi calls.
21121
21122 * kern/x86_64/dl.c: New file.
21123
21124 * kern/x86_64/efi/callwrap.S: Likewise.
21125
21126 * kern/x86_64/efi/startup.S: Likewise.
21127
21128 * loader/efi/appleloader.c: Likewise.
21129
21130 * loader/efi/chainloader.c (cmdline): New variable.
21131 (grub_chainloader_unload): Wrap efi calls.
21132 (grub_chainloader_boot): Likewise.
21133 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
21134 command line.
21135
21136 * loader/efi/chainloader_normal.c (chainloader_command):
21137 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
21138 command line.
21139
21140 * loader/i386/efi/linux.c (allocate_pages): Change allocation
21141 method.
21142 (grub_e820_add_region): New function.
21143 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
21144 booting.
21145 (grub_find_video_card): New function.
21146 (grub_linux_setup_video): New function.
21147 (grub_rescue_cmd_linux): Probe for video information.
21148
21149 * normal/x86_64/setjmp.S: New file.
21150
21151 * term/efi/console.c (map_char): New function.
21152 (grub_console_putchar): Map unicode char.
21153 (grub_console_checkkey): Wrap efi calls.
21154 (grub_console_getkey): Likewise.
21155 (grub_console_getwh): Likewise.
21156 (grub_console_gotoxy): Likewise.
21157 (grub_console_cls): Likewise.
21158 (grub_console_setcolorstate): Likewise.
21159 (grub_console_setcursor): Likewise.
21160
21161 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
21162
59652a20 211632008-07-16 Pavel Roskin <proski@gnu.org>
21164
ef294055 21165 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
21166 format strings.
21167
59652a20 21168 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
21169 pointer, not an integer. This fixes a warning and prevents
21170 precision loss on 64-bit systems.
21171 (relocate_addresses): Remove unneeded cast.
21172
afc3b5d7 211732008-07-15 Pavel Roskin <proski@gnu.org>
21174
506b2b3e 21175 * kern/i386/ieee1275/init.c: Include grub/cache.h.
21176
62ead89c 21177 * term/ieee1275/ofconsole.c: Disable code unused on i386.
21178
c4cd51d7 21179 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
21180 Fix comparison between signed and unsigned.
21181
0d3d8f28 21182 * include/grub/i386/ieee1275/console.h: Declare
21183 grub_console_init() and grub_console_fini().
21184
8804b286 21185 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
21186 It's empty and unused.
21187
ee01cf35 21188 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
21189 beginning to avoid warnings with some compilers.
21190
afc3b5d7 21191 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
21192 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
21193
e4e8eaa5 211942008-07-14 Pavel Roskin <proski@gnu.org>
21195
407aceb4 21196 * kern/env.c (grub_register_variable_hook): Don't copy empty
21197 string, it leaks memory. Pass "" to grub_env_set(), it should
21198 handle constant strings.
21199
e4e8eaa5 21200 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
21201 * commands/cmp.c (grub_cmd_cmp): Likewise.
21202 * kern/dl.c (grub_dl_flush_cache): Likewise.
21203 (grub_dl_load_core): Likewise.
21204 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
21205 (grub_elf64_load_phdrs): Likewise.
21206
d4e2dad3 212072008-07-13 Pavel Roskin <proski@gnu.org>
21208
21209 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
21210 between signed and unsigned.
21211 (LzmaEnc_Finish): Fix warning about an unused parameter.
21212
aa24b516 212132008-07-13 Bean <bean123ch@gmail.com>
21214
21215 * Makefile.in (enable_lzo): New rule.
21216
21217 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
21218
21219 * configure.ac (ENABLE_LZO): New option --enable-lzo.
21220
21221 * boot/i386/pc/lnxboot.S: #include <config.h>.
21222
21223 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 21224 its value according to the compression algorithm used, lzo or lzma.
aa24b516 21225
21226 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
21227 compression algorithm according to configure macro.
21228
21229 * kern/i386/pc/startup.S (codestart): Likewise.
21230
21231 * kern/i386/pc/lzma_decode.S: New file.
21232
21233 * include/grub/lib/LzFind.h: Likewise.
21234
21235 * include/grub/lib/LzHash.h: Likewise.
21236
21237 * include/grub/lib/LzmaDec.h: Likewise.
21238
21239 * include/grub/lib/LzmaEnc.h: Likewise.
21240
21241 * include/grub/lib/LzmaTypes.h: Likewise.
21242
21243 * lib/LzFind.c: Likewise.
21244
21245 * lib/LzmaDec.c: Likewise.
21246
21247 * lib/LzmaEnc.c: Likewise.
21248
4ae821ac 212492008-07-13 Bean <bean123ch@gmail.com>
21250
21251 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
21252 (grub_ext4_extent_header): New structure.
21253 (grub_ext4_extent): Likewise.
21254 (grub_ext4_extent_idx): Likewise.
21255 (grub_ext4_find_leaf): New function.
21256 (grub_ext2_read_block): Handle extents.
21257
9a745147 212582008-07-12 Robert Millan <rmh@aybabtu.com>
21259
21260 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
21261
d49a4cf6 212622008-07-11 Robert Millan <rmh@aybabtu.com>
21263
21264 * util/grub.d/40_custom.in: New file. Example on how to add custom
21265 entries to /etc/grub.d.
21266 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
21267 40_custom (implicitly, by merging all the grub.d rules).
21268
947414b4 212692008-07-11 Pavel Roskin <proski@gnu.org>
21270
0059cf6f 21271 * commands/read.c (grub_getline): Fix invalid memory access.
21272 Don't add newline to the variable value.
21273
947414b4 21274 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
21275 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
21276 (serial_hw_get_port): Check validity of the port number.
21277 (grub_cmd_serial): Check return value of serial_hw_get_port().
21278
62a02d00 212792008-07-07 Pavel Roskin <proski@gnu.org>
21280
21281 * boot/i386/pc/diskboot.S (notification_string): Replace
21282 "Loading kernel" with just "loading". This is shorter, less
21283 confusing and saves a few bytes for possible future changes.
21284
3e5581b0 212852008-07-05 Pavel Roskin <proski@gnu.org>
21286
ea387a48 21287 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
21288 size for ATAPI devices, they are undefined. Output sector
21289 number in decimal form.
21290
3e5581b0 21291 * disk/ata.c: Use named constants for status bits.
21292
fdecb8fd 212932008-07-04 Pavel Roskin <proski@gnu.org>
21294
bcd35b90 21295 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
21296 grub_addr_t before casting it to the void pointer to fix a
21297 warning. Non-addressable regions are discarded earlier.
21298 (grub_arch_modules_addr): Cast _end to grub_addr_t.
21299 * kern/i386/linuxbios/table.c: Include grub/misc.h.
21300 (check_signature): Don't shadow table_header.
21301 (grub_linuxbios_table_iterate): Cast numeric constants to
21302 grub_linuxbios_table_header_t.
21303 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
21304 grub_stop().
21305
af58ab3d 21306 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
21307 prevent warnings.
21308
1759aa57 21309 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
21310 pointer, which can cause warnings. Support 64-bit addresses.
21311
fdecb8fd 21312 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
21313 of sizeof(long). This fixes PowerPC image generation on x86_64.
21314
8516d2a8 213152008-07-04 Robert Millan <rmh@aybabtu.com>
21316
21317 This fixes a performance issue when pc & gpt partmap iterators
21318 didn't abort iteration even after our hook found what it was
fe987087 21319 looking for (often causing expensive probes of non-existent drives).
8516d2a8 21320
21321 Some callers relied on previous buggy behaviour, since they would
34c44600 21322 raise an error when their own hooks caused early abortion of its
8516d2a8 21323 iteration.
21324
21325 * kern/device.c (grub_device_open): Improve error message.
21326 * disk/lvm.c (grub_lvm_open): Likewise.
21327 * disk/raid.c (grub_raid_open): Likewise.
21328
21329 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
21330 when hook requests it, independently of grub_errno.
21331 (pc_partition_map_probe): Do not fail when find_func() caused
21332 early abortion of pc_partition_map_iterate().
21333
21334 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
21335 when hook requests it, independently of grub_errno.
21336 (gpt_partition_map_probe): Do not fail when find_func() caused
21337 early abortion of gpt_partition_map_iterate().
21338
21339 * kern/partition.c (grub_partition_iterate): Abort parent iteration
21340 when hook requests it, independently of grub_errno. Do not fail when
21341 part_map_iterate_hook() caused early abortion of p->iterate().
21342
21343 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
21344 when grub_partition_iterate() returned with non-zero.
21345
277d0de9 213462008-07-03 Pavel Roskin <proski@gnu.org>
21347
21348 * disk/ata.c (grub_ata_pio_write): Check status before writing,
21349 like we do in grub_ata_pio_read().
21350 (grub_ata_readwrite): Always write individual sectors. Fix the
21351 sector count for the remainder.
21352 (grub_ata_write): Enable writing to ATA devices. Correctly
21353 report error for ATAPI devices.
21354
d4c9b428 213552008-07-02 Pavel Roskin <proski@gnu.org>
21356
e43fc690 21357 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
21358 warning.
21359
f707af42 21360 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
21361 for every read sector, we already increment it for the whole
21362 batch. This fixes reading more than 256 sectors at once.
21363
11e16b15 21364 * util/grub-editenv.c (cmd_info): Cast argument to long
21365 explicitly. ptrdiff_t reduces to int on i386.
21366
cbabfdd4 21367 * util/grub-editenv.c (main): Be specific which parameter is
21368 missing.
21369
b8fbce0a 21370 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
21371 (memdisk): Make memdisk_orig_addr a pointer.
21372
c9c8e606 21373 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
21374 for file offsets, use grub_off_t instead. Fix printf format
21375 warnings.
21376
ca62e598 21377 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
21378 there. Real unexpected warnings should not drown in the noise
21379 about known problems.
21380
ce8d1766 21381 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
21382 grub_disk_addr_t for memory addresses.
21383
00c7a56a 21384 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
21385 explicitly to fix a warning.
21386
08d3ef09 21387 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
21388
cb71ba20 21389 * Makefile.in (MODULE_LDFLAGS): New variable.
21390 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
21391 the linker accepts --build-id=none.
21392 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
21393 MODULE_LDFLAGS.
21394 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
21395
d4c9b428 21396 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
21397 those in Linux XFS code. Provide a way to access 64-bit parent
21398 inode.
21399 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
21400 the end of struct grub_xfs_dir_header.
21401
d4156eee 214022008-07-02 Bean <bean123ch@gmail.com>
21403
21404 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
21405 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
21406 and GRUB_IEEE1275_FLAG_NO_ANSI.
21407
21408 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
21409 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
21410 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
21411
21412 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
21413 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
21414
21415 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
21416 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
21417
21418 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
21419 esc sequence on non ANSI terminal.
21420 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
21421
21422 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
21423 beginning of file.
21424
2270f77b 214252008-07-02 Bean <bean123ch@gmail.com>
21426
21427 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
21428 (grub_editenv_SOURCES): New variable.
21429 (pkglib_MODULES): Add loadenv.mod.
21430 (loadenv_mod_SOURCES): New variable.
21431 (loadenv_mod_CFLAGS): Likewise.
21432 (loadenv_mod_LDFLAGS): Likewise.
21433
21434 * include/grub/envblk.h: New file.
21435
21436 * util/envblk.c: New file.
21437
21438 * util/grub-editenv.c: New file.
21439
21440 * commands/loadenv.c: New file.
21441
0e9e51ec 214422008-07-01 Pavel Roskin <proski@gnu.org>
21443
d89b7634 21444 * include/multiboot2.h (struct multiboot_tag_module): Use char,
21445 not unsigned char. This fixes warnings and is consistent with
21446 other tags.
21447
bf1835b1 21448 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
21449
8222a04b 21450 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
21451
6a42d99d 21452 * term/tparm.c (analyze): Always set *popcount.
21453
10b159d1 21454 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
21455 cast to fix a warning.
21456
b8789f6c 21457 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
21458 cast to suppress a warning.
21459
29d7e38a 21460 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
21461 grub_fshelp_read_file() expects.
21462
f341f669 21463 * fs/fat.c: Fix UUID calculation on big-endian systems. We
21464 write uuid as a 32-bit value in CPU byte order, so declare and
21465 use it as such.
21466
0e9e51ec 21467 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
21468 long if the format specifier expects it.
21469 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
21470 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21471 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
21472 long to fix a warning.
21473 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
21474 grub_dprintf() arguments to fix warnings.
21475
3aefa857 214762008-06-30 Pavel Roskin <proski@gnu.org>
21477
56c7668b 21478 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
21479 install_bsd_part immediately before core.img is embedded or
21480 modified on disk. This fixes core.img verification if core.img
21481 cannot be embedded.
21482
3aefa857 21483 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
21484 core_path to calculate the blocklist.
21485 Patch from Javier Martín <lordhabbit@gmail.com>
21486
5444088d 214872008-06-29 Robert Millan <rmh@aybabtu.com>
21488
21489 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
21490 block to disk block.
21491 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
21492 Patch from Niels Böhm <bitbucket@arcor.de>
21493
674835c8 214942008-06-29 Robert Millan <rmh@aybabtu.com>
21495
21496 * util/update-grub_lib.in (font_path): Search for fonts in
21497 /boot/grub first, which is more likely to be readable (we aren't
21498 deciding where fonts live, just looking for them).
21499
f527dbc8 215002008-06-26 Pavel Roskin <proski@gnu.org>
21501
6c2d8df6 21502 * util/biosdisk.c (read_device_map): Don't leave dead map
21503 entries for devices failing stat() check.
21504
f527dbc8 21505 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
21506 core_path_dev for the core.img path on the target device.
21507
aebe3d13 215082008-06-26 Robert Millan <rmh@aybabtu.com>
21509
21510 * disk/fs_uuid.c: New file.
21511 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
21512 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
21513 (fs_uuid_mod_LDFLAGS): New variables.
21514 * include/grub/disk.h (grub_disk_dev_id): Add
21515 `GRUB_DISK_DEVICE_UUID_ID'.
21516 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
21517 implement iterate().
21518
37aaf354 215192008-06-26 Robert Millan <rmh@aybabtu.com>
21520
21521 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
21522 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
21523 Linux image includes no initrd.
21524
25ff262a 215252008-06-21 Javier Martín <lordhabbit@gmail.com>
21526
21527 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
21528 call to resolve the core image location that effectively appended the
21529 name twice.
21530
76a2bd44 215312008-06-21 Robert Millan <rmh@aybabtu.com>
21532
21533 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
21534 call from here ...
21535
21536 * util/grub.d/10_hurd.in: ... to here ...
21537 * util/grub.d/10_linux.in: ... and here.
21538
650e1c79 215392008-06-19 Robert Millan <rmh@aybabtu.com>
21540
fe987087 21541 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 21542 after it has been set by grub_machine_set_prefix().
21543
6ce63911 215442008-06-19 Robert Millan <rmh@aybabtu.com>
21545
21546 * commands/search.c (search_label, search_fs_uuid, search_file): Print
21547 search result when not saving to variable, not the other way around.
21548 When saving to variable, abort iteration as soon as a match is found.
21549
73940cec 215502008-06-19 Robert Millan <rmh@aybabtu.com>
21551
21552 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
21553 check for partition that provides /boot/grub. Its logic is flawed,
21554 as it prevents prepare_grub_to_access_device() from being called
21555 multiple times.
21556
3c62a39d 215572008-06-19 Robert Millan <rmh@aybabtu.com>
21558
21559 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
21560 "insmod" command directly when abstraction modules are needed,
fe987087 21561 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 21562 since it had already been processed).
21563
47395a42 215642008-06-19 Pavel Roskin <proski@gnu.org>
21565
21566 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
21567 changed. This is needed in case GRUB_LIBDIR changes.
21568 * conf/i386-ieee1275.rmk: Likewise.
21569 * conf/i386-linuxbios.rmk: Likewise.
21570 * conf/i386-pc.rmk: Likewise.
21571 * conf/powerpc-ieee1275.rmk: Likewise.
21572
a145ac2d 215732008-06-18 Pavel Roskin <proski@gnu.org>
21574
21575 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
21576 kernel_elf_symlist.c to symlist.c for consistency with other
21577 architectures. Update all users.
21578 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21579
7847c51e 215802008-06-18 Robert Millan <rmh@aybabtu.com>
21581
21582 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
21583 it in prefix.
21584
21585 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
21586 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
21587 a RAID device, run setup() for all members independently on whether
21588 LVM abstraction is being used.
21589 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
21590 If grub-mkimage has set `*install_dos_part == -2', don't override this
21591 value.
21592 Perform *install_dos_part adjustments independently on whether
21593 we're embedding or not.
21594 Clarify error message when image is too big for embedding.
21595 Remove duplicate *install_dos_part stanza.
21596
b23e5644 215972008-06-17 Robert Millan <rmh@aybabtu.com>
21598
21599 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
21600 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
21601 variables.
21602 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
21603 values in grub_ofconsole_normal_color and
21604 grub_ofconsole_highlight_color (they're not directly related to
21605 background and foreground).
21606 (grub_ofconsole_setcolorstate): Extract background and foreground
21607 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
21608
0aac2f79 216092008-06-17 Robert Millan <rmh@aybabtu.com>
21610
21611 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
21612 /boot/grub for the check in last commit, not /boot (they could be
21613 different partitions).
21614
3cca7ef3 216152008-06-16 Robert Millan <rmh@aybabtu.com>
21616
21617 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
21618 asked to setup access for the same partition that provides /boot,
21619 don't bother using UUIDs since our root already has the value we
21620 want.
21621
347396d8 216222008-06-16 Robert Millan <rmh@aybabtu.com>
21623
21624 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
21625 I2O devices.
21626 Patch from Sven Mueller <sven@debian.org>.
21627
991477f8 216282008-06-16 Robert Millan <rmh@aybabtu.com>
21629
21630 * util/update-grub.in: Check for $EUID instead of $UID.
21631 Reported by Vincent Zweije.
21632
d31a32a1 216332008-06-16 Bean <bean123ch@gmail.com>
21634
fe987087 21635 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 21636 (grub_ext2_read_block): Likewise.
21637 (grub_ext2_read_inode): Likewise.
21638 (grub_ext2_mount): Likewise.
21639 (grub_ext2_close): Likewise.
21640 (grub_ext3_get_journal): Removed.
21641
fe987087 21642 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 21643 (grub_reiserfs_read_symlink): Likewise.
21644 (grub_reiserfs_mount): Likewise.
21645 (grub_reiserfs_open): Likewise.
21646 (grub_reiserfs_read): Likewise.
21647 (grub_reiserfs_close): Likewise.
21648 (grub_reiserfs_get_journal): Removed.
21649
21650 * fs/fshelp.c (grub_fshelp_read): Removed.
21651 (grub_fshelp_map_block): Likewise.
21652
21653 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
21654 (grub_fshelp_journal): Likewise.
21655 (grub_fshelp_read): Likewise.
21656 (grub_fshelp_map_block): Likewise.
21657
3540a760 216582008-06-16 Pavel Roskin <proski@gnu.org>
21659
21660 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
21661 floating point anymore.
21662 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
21663
95614c84 216642008-06-15 Pavel Roskin <proski@gnu.org>
21665
21666 * commands/ls.c (grub_ls_list_files): Use integer calculations
21667 for human readable format, avoid floating point use.
21668 * kern/misc.c (grub_ftoa): Remove.
21669 (grub_vsprintf): Remove floating point support.
21670
50465dd6 216712008-06-15 Robert Millan <rmh@aybabtu.com>
21672
fe6b695a 21673 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 21674 devices.
21675 Reported by Max Vozeler.
21676
a9207284 216772008-06-15 Robert Millan <rmh@aybabtu.com>
21678
21679 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
21680 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
21681 skipped later.
21682 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
21683 the beginning of the prefix.
21684
21685 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
21686 It is assumed that if we have a memdisk, grub-mkimage has set
21687 grub_prefix to include the "(memdisk)" drive in it.
21688
a7cbd45a 216892008-06-15 Robert Millan <rmh@aybabtu.com>
21690
21691 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
21692 Initialize keyboard controller after registering the terminal, so that
21693 grub_printf() can be called from grub_keyboard_controller_init().
21694
21cf716a 216952008-06-15 Robert Millan <rmh@aybabtu.com>
21696
21697 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
21698 extent-btree which is written as big endian on disk.
21699 Reported by Alain Greppin <al@chilibi.org>.
21700
23a64d8e 217012008-06-14 Robert Millan <rmh@aybabtu.com>
21702
21703 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
21704 * util/i386/pc/grub-install.in (modules): Likewise.
21705
d687651c 217062008-06-13 Pavel Roskin <proski@gnu.org>
21707
21708 * commands/ls.c (grub_ls_list_files): Fix format warnings.
21709
dfe9ddd4 217102008-06-13 Bean <bean123ch@gmail.com>
21711
21712 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
21713
21714 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
21715
21716 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
21717 to indicate sparse block.
21718
16ae7781 217192008-06-12 Pavel Roskin <proski@gnu.org>
21720
e6d1a308 21721 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
21722 number, grub_fshelp_read() does it for us.
21723
16ae7781 21724 * fs/fshelp.c (grub_fshelp_read): New function. Implement
21725 linear disk read with journal translation.
21726 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
21727 * include/grub/fshelp.h: Declare grub_fshelp_read().
21728
40fd3a2b 217292008-06-09 Pavel Roskin <proski@gnu.org>
21730
21731 * fs/minix.c (grub_minix_mount): Handle error reading
21732 superblock.
21733
f5679726 217342008-06-08 Robert Millan <rmh@aybabtu.com>
21735
21736 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
21737 don't append the RAID prefix afterwards.
21738 Reported by Clint Adams.
21739
ce525529 217402008-06-08 Robert Millan <rmh@aybabtu.com>
21741
21742 Based on description from Pavel:
21743 * kern/disk.c (grub_disk_check_range): Rename to ...
21744 (grub_disk_adjust_range): ... this. Add a comment explaining the
21745 tasks performed by this function.
21746
ad4936a0 217472008-06-08 Robert Millan <rmh@aybabtu.com>
21748
21749 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
21750 `num_serial' (for consistency with other variables).
21751 (struct grub_ntfs_data): Add `uuid' member.
21752 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
21753 (grub_ntfs_uuid): New function.
21754 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
21755
dc20b0f9 217562008-06-07 Pavel Roskin <proski@gnu.org>
21757
21758 * util/biosdisk.c (open_device): Revert last change to the
21759 function, it broke installation. The sector needs to be
21760 different dependent on which device is opened.
21761
c5e3cfba 217622008-06-06 Robert Millan <rmh@aybabtu.com>
21763
21764 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
21765 rest of GRUB, and breakage doesn't happen if its value were modified.
21766
21767 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
21768 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
21769 a constant (same value).
21770 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
21771 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
21772
26a1f8c4 217732008-06-06 Robert Millan <rmh@aybabtu.com>
21774
21775 * util/biosdisk.c (open_device): Do not modify sector offset when
21776 accessing a partition. kern/disk.c already handles this for us.
21777
25d6b327 217782008-06-06 Robert Millan <rmh@aybabtu.com>
21779
21780 * util/grub-emu.c (grub_machine_init): Move code in this function from
21781 here ...
21782 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
21783 segfault in case grub_printf() is called).
21784
21785 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
21786 grub_probe. Update all users not to explicitly add it again.
21787 (grub_device): New variable; contains corresponding device for grubdir.
21788 (fs_module, partmap_module, devabstraction_module): Pass
21789 `--device ${grub_device}' to grub_probe to avoid traversing /dev
21790 every time.
21791
9ece62fb 217922008-06-05 Robert Millan <rmh@aybabtu.com>
21793
21794 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
21795 is found, print it (same layout as with labels).
21796
1ad36d37 217972008-06-04 Robert Millan <rmh@aybabtu.com>
21798
21799 * util/biosdisk.c (get_drive): Rename to ...
21800 (find_grub_drive): ... this. Update all users.
21801
21802 (get_os_disk): Rename to ...
21803 (convert_system_partition_to_system_disk): ... this. Update all users.
21804
21805 (find_drive): Rename to ...
21806 (find_system_device): ... this. Update all users.
21807
e6a30859 218082008-06-04 Robert Millan <rmh@aybabtu.com>
21809
21810 * util/biosdisk.c (get_os_disk): Handle IDA devices.
21811 * util/grub-mkdevicemap.c (get_mmc_disk_name)
21812 (make_device_map): Likewise.
21813
00c108a4 218142008-06-01 Robert Millan <rmh@aybabtu.com>
21815
21816 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
21817 before dereferencing it.
21818
21819 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
21820 union with fat12/fat16-specific ones. Add some new fields, including
21821 `num_serial' for both versions.
21822 (struct grub_fat_data): Add `uuid' member.
21823 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
21824 names. Initialize `data->uuid' using `num_serial'.
21825 (grub_fat_uuid): New function.
21826 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
21827
21828 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
21829 (grub_reiserfs_uuid): New function.
21830 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
21831 member.
21832
21833 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
21834 (grub_xfs_uuid): New function.
21835 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
21836
1385c5bb 218372008-06-01 Robert Millan <rmh@aybabtu.com>
21838
21839 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
21840 code that is backward compatible with pre-uuid search command.
21841
c682dfd7 218422008-05-31 Robert Millan <rmh@aybabtu.com>
21843
21844 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
21845 floppies after everything else, to ensure floppy drive isn't accessed
21846 unnecessarily (patch from Bean).
21847
b7db5d47 218482008-05-31 Robert Millan <rmh@aybabtu.com>
21849
21850 * commands/search.c (search_label, search_fs_uuid, search_file): Do
21851 not print device names when we were asked to set a variable.
21852
6e037aa9 218532008-05-31 Robert Millan <rmh@aybabtu.com>
21854
21855 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
21856 using "cursor-on" and "cursor-off" commands (understood at least by
21857 the Open Firmware flavour on OLPC).
21858
41305bc8 218592008-05-31 Michael Gorven <michael@gorven.za.net>
21860
21861 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
21862 on and off sequences.
21863
69ba137e 218642008-05-31 Robert Millan <rmh@aybabtu.com>
21865
21866 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
21867 * util/update-grub.in: Likewise.
21868
520ae21b 218692008-05-30 Pavel Roskin <proski@gnu.org>
21870
21871 * util/biosdisk.c (linux_find_partition): Simplify logic and
21872 make the code more universal. Keep special processing for
21873 devfs, but use a simple rule for all other devices. If the
21874 device ends with a number, append 'p' and the partition number.
21875 Otherwise, append only the partition number.
21876
5786569b 218772008-05-30 Robert Millan <rmh@aybabtu.com>
21878
21879 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
21880 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
21881 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
21882 the `root' parameter to Linux.
21883
51500452 218842008-05-30 Robert Millan <rmh@aybabtu.com>
21885
21886 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
21887 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
21888 --fs_uuid with --fs-uuid.
21889 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
21890 all filesystems support them).
21891
811d3878 218922008-05-30 Robert Millan <rmh@aybabtu.com>
21893
21894 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 21895 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 21896
cab63c95 218972008-05-30 Robert Millan <rmh@aybabtu.com>
21898
21899 * util/grub.d/00_header.in: Remove obsolete comment referencing
21900 convert_system_path_to_grub_path().
21901 * util/update-grub.in: Likewise.
21902 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
21903 (convert_system_path_to_grub_path): Add a warning message explaining
21904 that this function is deprecated. Rely on is_path_readable_by_grub()
21905 for the readability checks.
21906 (font_path): Use is_path_readable_by_grub() for the readability
21907 check rather than convert_system_path_to_grub_path().
21908
972e2f7a 219092008-05-30 Robert Millan <rmh@aybabtu.com>
21910
21911 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
21912 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
21913 converting it first.
21914 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
21915 grub.cfg for access to font file, and afterwards call it again to set
21916 the root device.
21917
62191274 219182008-05-30 Robert Millan <rmh@aybabtu.com>
21919
21920 * commands/search.c (options): Add --fs_uuid option.
21921 (search_fs_uuid): New function.
21922 (grub_cmd_search): Fix --set argument passing.
21923 Use search_fs_uuid() when requested via --fs_uuid.
21924 (grub_search_init): Update help message.
21925 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
21926 and redeclare it as an array of 16-bit words.
21927 (grub_ext2_uuid): New function.
21928 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
21929 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
21930 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
21931 (GRUB_DEVICE_BOOT_UUID): New variables.
21932 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
21933 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
21934 whenever possible.
21935 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
21936 just assume `root' variable has the right value.
21937 * util/grub.d/10_linux.in: Likewise.
21938 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
21939 via PRINT_FS_UUID.
21940 (main): Recognise `-t fs_uuid' argument.
21941
01b73ec8 219422008-05-30 Robert Millan <rmh@aybabtu.com>
21943
21944 * util/biosdisk.c (map): Redefine structure to hold information
21945 about GRUB drive name.
fe6b695a 21946 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 21947 drive names.
21948 (call_hook): Remove.
21949 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
21950 member. Assume drive has partitions.
21951 (grub_util_biosdisk_open): Access device names via `.device' struct
21952 member.
21953 (open_device): Likewise.
21954 (find_drive): Likewise.
21955 (read_device_map): Adjust map[] usage to match the new struct
21956 definition. Don't check for duplicates (still possible, but not cheap
21957 anymore).
21958 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
21959 (make_device_name): Remove assumption of BIOS-like drive names.
21960
22f16596 219612008-05-30 Pavel Roskin <proski@gnu.org>
21962
21963 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
21964 compiling execute.c doesn't need grub_script.tab.h anymore.
21965 (normal/command.c_DEPENDENCIES): Likewise.
21966 (normal/function.c_DEPENDENCIES): Likewise.
21967 * conf/i386-ieee1275.rmk: Likewise.
21968 * conf/i386-linuxbios.rmk: Likewise.
21969 * conf/i386-pc.rmk: Likewise.
21970 * conf/powerpc-ieee1275.rmk: Likewise.
21971 * conf/sparc64-ieee1275.rmk: Likewise.
21972
528ad8f2 219732008-05-29 Pavel Roskin <proski@gnu.org>
21974
d1dff95d 21975 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
21976 when scanning metadata for volume group name.
21977
528ad8f2 21978 * include/grub/script.h: Don't include grub_script.tab.h. It's
21979 a generated file, which may only be included from the files with
21980 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
21981 use union YYSTYPE, as the later allows forward declaration.
21982 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
21983
47248e08 219842008-05-29 Robert Millan <rmh@aybabtu.com>
21985
21986 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
21987 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
21988 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
21989 (grub_console_checkkey): Add grub_dprintf() call to report unknown
21990 scan codes.
21991
ee632529 219922008-05-29 Robert Millan <rmh@aybabtu.com>
21993
21994 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
21995 control key combinations.
21996
eee96e08 219972008-05-29 Robert Millan <rmh@aybabtu.com>
21998
21999 * util/powerpc/ieee1275/grub-install.in: Move from here ...
22000 * util/ieee1275/grub-install.in: ... to here.
22001 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
22002 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
22003 (grub_install_SOURCES): Likewise.
22004
da9a6a94 220052008-05-29 Robert Millan <rmh@aybabtu.com>
22006
22007 * fs/affs.c: Update copyright year.
22008 * fs/ext2.c: Likewise.
22009 * fs/fshelp.c: Likewise.
22010 * fs/hfsplus.c: Likewise.
22011 * fs/ntfs.c: Likewise.
22012 * fs/xfs.c: Likewise.
22013 * include/grub/fshelp.h: Likewise.
22014 * util/grub-mkdevicemap.c: Likewise.
22015
12e65f3a 220162008-05-28 Robert Millan <rmh@aybabtu.com>
22017
22018 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
22019 might need to be fatfs to support some firmware implementations
22020 (e.g. OFW or EFI).
22021
23023641 220222008-05-28 Robert Millan <rmh@aybabtu.com>
22023
22024 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
22025 devices.
22026 * util/grub-mkdevicemap.c (get_mmc_disk_name)
22027 (make_device_map): Likewise.
22028
887d2619 220292008-05-20 Bean <bean123ch@gmail.com>
22030
22031 * fs/fshelp.c (grub_fshelp_map_block): New function.
22032 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
22033 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
22034
22035 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
22036 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
22037 (grub_fshelp_journal): New structure.
22038 (grub_fshelp_map_block): New function prototype.
22039 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
22040 (grub_fshelp_map_block): Likewise.
22041
22042 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
22043 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
22044 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
22045 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
22046 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
22047 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
22048 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
22049 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
22050 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
22051 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
22052 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
22053 (grub_ext2_sblock): New members for journal support.
22054 (grub_ext3_journal_header): New structure.
22055 (grub_ext3_journal_revoke_header): Likewise.
22056 (grub_ext3_journal_block_tag): Likewise.
22057 (grub_ext3_journal_sblock): Likewise.
22058 (grub_fshelp_node): New members logfile and journal.
22059 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
22060 grub_fshelp_map_block to get real block number.
22061 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
22062 number.
22063 (grub_ext2_read_inode): Likewise.
22064 (grub_ext3_get_journal): New function.
22065 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
22066 (grub_ext2_close): Release memory used by journal.
22067
22068 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
22069 (REISERFS_MAGIC_DESC_BLOCK): New macro.
22070 (grub_reiserfs_transaction_header): Renamed to
22071 grub_reiserfs_description_block, replace field data with real_blocks.
22072 (grub_reiserfs_commit_block): New structure.
22073 (grub_reiserfs_data): New member journal.
22074 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
22075 number.
22076 (grub_reiserfs_read_symlink): Likewise.
22077 (grub_reiserfs_iterate_dir): Likewise.
22078 (grub_reiserfs_open): Likewise.
22079 (grub_reiserfs_read): Likewise.
22080 (grub_reiserfs_get_journal): New function.
22081 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
22082 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
22083 using grub_reiserfs_get_journal.
22084 (grub_reiserfs_close): Release memory used by journal.
22085
22086 * fs/affs.c (grub_affs_read_block): Change block type to
22087 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
22088
22089 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
22090
22091 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
22092
22093 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
22094
22095 * fs/udf.c (grub_udf_read_block): Change block type to
22096 grub_disk_addr_t. Use type cast to avoid warning.
22097
22098 * fs/xfs.c (grub_xfs_read_block): Likewise.
22099
b7c6bed5 221002008-05-16 Christian Franke <franke@computer.org>
22101
22102 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
22103 to ensure that break with ESC will always work.
22104 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
22105 Remove ESC from keyboard queue.
22106
eedf167f 221072008-05-16 Christian Franke <franke@computer.org>
22108
22109 * util/biosdisk.c: [__CYGWIN__] Add includes.
22110 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
22111 (get_os_disk): Move variable declarations to OS specific
22112 parts to avoid warning.
22113 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
22114 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
22115 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
22116 Cygwin.
22117 * util/getroot.c: [__CYGWIN__] Add includes.
22118 (strip_extra_slashes): Fix "/" case.
22119 [__CYGWIN__] (get_win32_path): New function.
22120 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
22121 [__CYGWIN__] (find_root_device): Disable.
22122 [__CYGWIN__] (get_bootsec_serial): New function.
22123 [__CYGWIN__] (find_cygwin_root_device): Likewise.
22124 [__linux__] (grub_guess_root_device): Add early returns to simplify
22125 structure.
22126 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
22127 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
22128 check for Linux only.
22129
a079699e 221302008-05-15 Bean <bean123ch@gmail.com>
22131
22132 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
22133 keyboard hang problem in apple's intel mac.
22134
1cf4059a 221352008-05-09 Robert Millan <rmh@aybabtu.com>
22136
22137 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
22138 devices.
22139 * util/grub-mkdevicemap.c (get_virtio_disk_name)
22140 (make_device_map): Likewise.
22141 Reported by Aurelien Jarno <aurel32@debian.org>
22142
ed759390 221432008-05-07 Ian Campbell <ijc@hellion.org.uk>
22144
22145 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
22146 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
22147 (make_device_map): Output entries for xvd type disks.
22148
b56c4eaa 221492008-05-07 Robert Millan <rmh@aybabtu.com>
22150
22151 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
22152 devices.
22153 * util/grub-mkdevicemap.c (get_cciss_disk_name)
22154 (make_device_map): Likewise.
22155 Reported by Roland Dreier <rdreier@cisco.com>
22156
7f8866ed 221572008-05-07 Robert Millan <rmh@aybabtu.com>
22158
22159 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
22160 grub_strstr() call. Correct a few mistakes in failure path handling.
22161
b0346e0f 221622008-05-06 Robert Millan <rmh@aybabtu.com>
22163
22164 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
22165 Do not print a trailing slash (therefore, the root directory is an
22166 empty string).
22167 (convert_system_path_to_grub_path): Do not remove trailing slash
22168 from make_system_path_relative_to_its_root() output.
22169
22170 * util/i386/pc/grub-install.in: Add trailing slash to output from
22171 make_system_path_relative_to_its_root().
22172
6cf12cbd 221732008-05-06 Robert Millan <rmh@aybabtu.com>
22174
22175 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
22176 ensures that output lines aren't intermangled with those sent to
22177 stderr (via grub_util_info()).
22178 * util/grub-probe.c (grub_refresh): Likewise.
22179 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
22180
0fbb3117 221812008-05-05 Christian Franke <franke@computer.org>
22182
22183 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
22184 Add Cygwin device names.
22185 (get_ide_disk_name) [__CYGWIN__]: Likewise.
22186 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
22187 (check_device): Return error instead of success on empty name.
22188 (make_device_map): Move label inside linux specific code to
22189 prevent compiler warning.
22190
8124cdb7 221912008-04-30 Robert Millan <rmh@aybabtu.com>
22192
22193 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
22194 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
22195 first boot option.
22196 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
22197
094c01d0 221982008-04-29 Robert Millan <rmh@aybabtu.com>
22199
22200 * docs/grub.cfg: New file (example GRUB configuration).
22201
f4b1fc02 222022008-04-26 Robert Millan <rmh@aybabtu.com>
22203
329ce2a5 22204 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
22205 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
22206 and `disk/ieee1275/nand.c'.
f4b1fc02 22207
25f16ec1 222082008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 22209
25f16ec1 22210 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
22211 i386-linuxbios.
22212
22213 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
22214 change the buffer size to 4096 for cdrom device.
22215
22216 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
22217 and nand.mod.
22218 (_linux_mod_SOURCES): New variable.
22219 (_linux_mod_CFLAGS): Likewise.
22220 (_linux_mod_LDFLAGS): Likewise.
22221 (linux_mod_SOURCES): Likewise.
22222 (linux_mod_CFLAGS): Likewise.
22223 (linux_mod_LDFLAGS): Likewise.
22224 (nand_mod_SOURCES): Likewise.
22225 (nand_mod_CFLAGS): Likewise.
22226 (nand_mod_LDFLAGS): Likewise.
22227
22228 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
22229 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
22230 type property. (nand device in olpc don't have this property)
22231
22232 * include/grub/disk.h (grub_disk_dev_id): New macro
22233 GRUB_DISK_DEVICE_NAND_ID.
22234
22235 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
22236 function prototype.
22237 (grub_rescue_cmd_initrd): Likewise.
22238
22239 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
22240 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
22241 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 22242
25f16ec1 22243 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
22244 GRUB_MACHINE_IEEE1275 is defined.
22245
22246 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
22247 Use NESTED_FUNC_ATTR attribute on the hook parameter.
22248
22249 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
22250 on nested function heap_init.
22251 (grub_upper_mem): New variable for i386-ieee1275.
22252 (grub_get_extended_memory): New function for i386-ieee1275.
22253 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
22254
22255 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
22256 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
22257 property.
f19dbdb7 22258
25f16ec1 22259 * loader/i386/ieee1275/linux.c: New file.
22260
22261 * loader/i386/ieee1275/linux_normal.c: New file.
22262
22263 * disk/ieee1275/nand.c: New file.
22264
e89d61e9 222652008-04-18 Thomas Schwinge <tschwinge@gnu.org>
22266
22267 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
22268 value.
22269 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
22270
602566f6 222712008-04-18 Robert Millan <rmh@aybabtu.com>
22272
22273 Restructures early code path on ieee1275 to unify grub_main() as
22274 the first C function that is executed in every platform.
22275
22276 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
22277 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
22278 cmain().
22279 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
22280 * kern/ieee1275/cmain.c (cmain): Rename to ...
22281 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
22282 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
22283 at the beginning.
22284
57490c2b 222852008-04-18 Robert Millan <rmh@aybabtu.com>
22286
22287 * util/update-grub.in: Fix syntax error when setting
22288 `GRUB_PRELOAD_MODULES'.
22289 Reported by Stephane Chazelas <stephane@artesyncp.com>
22290
1977517d 222912008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
22292
22293 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
22294 section into account, newer toolchains generate unique build ids
22295 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 22296 we want build ids to be preserved
1977517d 22297 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
22298 far from other sections don't cause the raw binary images grow
22299 size
22300
bfb1f1a2 223012008-04-15 Robert Millan <rmh@aybabtu.com>
22302
22303 * disk/lvm.c: Update copyright year.
22304 * kern/misc.c: Likewise.
22305
01979850 223062008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
22307
22308 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 22309 there is no memory left for physical volume name.
01979850 22310
0a1150e2 223112008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
22312
22313 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
22314 volume name mapping to support bigger than 9 character names properly.
22315
82ead3fe 223162008-04-13 Robert Millan <rmh@aybabtu.com>
22317
22318 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
22319 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
22320
e54a72f5 223212008-04-13 Christian Franke <franke@computer.org>
22322
22323 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
22324 to create a floppy emulation boot CD when non emulation mode
22325 does not work.
22326 Enable Joliet CD filesystem extension.
22327
9fe86034 223282008-04-13 Robert Millan <rmh@aybabtu.com>
22329
22330 * kern/misc.c (grub_strncat): Fix off-by-one error.
22331 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
22332
22333 * kern/env.c (grub_env_context_close): Clear current context, not
22334 previous one.
22335 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
22336
22337 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
22338
7ceeee39 223392008-04-13 Robert Millan <rmh@aybabtu.com>
22340
22341 Improve robustness when handling LVM.
22342
22343 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 22344 (and leave `*p' unmodified).
7ceeee39 22345 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
22346 through it.
22347 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
22348 iterating through it.
22349 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
22350 through it.
fe6b695a 22351 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 22352 when due) on each grub_lvm_getvalue() or grub_strstr() call.
22353 Don't assume `vg->pvs != NULL' when iterating through it.
22354
58cd3d85 223552008-04-13 Robert Millan <rmh@aybabtu.com>
22356
22357 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
22358 * genmk.rb (partmap): New variable.
22359 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
22360 (#{partmap}): New target rule.
22361 * genpartmaplist.sh: New file.
22362 * Makefile.in (pkglib_DATA): Add partmap.lst.
22363 (partmap.lst): New target rule.
22364 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
22365 modules (including all partition maps), instead of preloading them.
22366
78b51059 223672007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
22368
22369 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
22370 `linux-boot-prober' (if installed) to detect other operating
22371 systems which are installed on the computer and add them to
22372 the boot menu.
22373 * conf/common.rmk: Build and install 30_os-prober.
22374
a91627b4 223752008-04-12 Robert Millan <rmh@aybabtu.com>
22376
22377 * kern/powerpc/ieee1275/init.c: Move from here ...
22378 * kern/ieee1275/init.c: ... to here. Update all users.
22379
22380 * kern/powerpc/ieee1275/cmain.c: Move from here ...
22381 * kern/ieee1275/cmain.c: ... to here. Update all users.
22382
22383 * kern/powerpc/ieee1275/openfw.c: Move from here ...
22384 * kern/ieee1275/openfw.c: ... to here. Update all users.
22385
22386 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
22387 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
22388
322562ea 223892008-04-10 Pavel Roskin <proski@gnu.org>
22390
22391 * configure.ac: Always use "_cv_" in cache variables for
22392 compatibility with Autoconf 2.62.
22393
a02a73c5 223942008-04-07 Robert Millan <rmh@aybabtu.com>
22395
22396 Revert grub/machine/init.h addition by Pavel (since it breaks on
22397 i386-ieee1275 and others):
22398 * util/i386/pc/misc.c: Remove grub/machine/init.h.
22399 * util/powerpc/ieee1275/misc.c: Likewise.
22400
25c024b1 224012008-04-07 Robert Millan <rmh@aybabtu.com>
22402
22403 * util/grub-probe.c (probe): Improve error message.
22404
3cbd2f98 224052008-04-07 Robert Millan <rmh@aybabtu.com>
22406
22407 * util/biosdisk.c (read_device_map): Skip devices that don't exist
22408 (this prevents the presence of a bogus entry from ruining the whole
22409 thing).
22410
87a297bf 224112008-04-06 Pavel Roskin <proski@gnu.org>
22412
36747a62 22413 * util/biosdisk.c: Include grub/util/biosdisk.h.
22414 * util/grub-fstest.c (execute_command): Make static.
22415 * util/grub-mkdevicemap.c (check_device): Likewise.
22416 * util/i386/pc/misc.c: Include grub/machine/init.h.
22417 * util/powerpc/ieee1275/misc.c: Likewise.
22418 * util/lvm.c: Include grub/util/lvm.h.
22419 * util/misc.c: Include grub/kernel.h, grub/misc.h and
22420 grub/cache.h.
22421 * util/raid.c: Include grub/util/raid.h.
22422 (grub_util_getdiskname): Make static.
22423
87a297bf 22424 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
22425 grub_hostfs_fini(), as they are called from grub_init_all() and
22426 grub_fini_all() respectively. This fixes an infinite loop in
22427 grub-fstest due to double registration of hostfs.
22428 Reported by Christian Franke <Christian.Franke@t-online.de>
22429
f6ce7629 224302008-04-05 Pavel Roskin <proski@gnu.org>
22431
22432 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
22433 all 8 functions. Otherwise, probe function 0 only.
22434
070e49e4 224352008-04-04 Pavel Roskin <proski@gnu.org>
22436
8b088a4c 22437 * commands/lspci.c (grub_lspci_iter): Print the bus number
22438 correctly.
22439
4f657021 22440 * commands/lspci.c (grub_pci_classes): Fix typos.
22441 (grub_lspci_iter): Don't print func twice. Print vendor ID
22442 before device ID, as it's normally done.
22443
070e49e4 22444 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22445 Fix signedness warnings.
22446 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
22447 Likewise.
22448 * util/ieee1275/get_disk_name.c: Include config.h so that
22449 _GNU_SOURCE is defined and getline() is declared. Mark an
22450 unused argument as such. Fix a signedness warning.
22451
ba7328dc 224522008-04-02 Pavel Roskin <proski@gnu.org>
22453
26887f22 22454 * genkernsyms.sh.in: Use more robust assignments for CC and
22455 srcdir. Quote srcdir.
22456 * gensymlist.sh.in: Likewise. Assert at the compile time that
22457 the symbol table is not empty.
22458
ba7328dc 22459 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
22460 * fs/cpio.c (grub_cpio_read): Likewise.
22461
0f582c6b 224622008-04-01 Pavel Roskin <proski@gnu.org>
22463
4b6e1995 22464 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
22465 * disk/host.c (grub_host_open): Likewise.
22466 * disk/loopback.c (grub_loopback_open): Likewise.
22467 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
22468 disk->id as in disk/host.c, not a multi-character constant.
22469
828a2768 22470 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
22471 later is obsolete, potentially dangerous and sets a bad example.
22472 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
22473 * util/misc.c (grub_util_get_image_size): Likewise.
22474
2bb4fb47 22475 * disk/loopback.c (options): Improve help for "--partitions".
22476
0f582c6b 22477 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
22478 options to align them with the short options, e.g. "echo -e".
22479
a33224e0 224802008-03-31 Bean <bean123ch@gmail.com>
22481
22482 * video/reader/png.c (grub_png_data): New member is_16bit and
22483 image_data.
22484 (grub_png_decode_image_header): Detect 16 bit png image.
22485 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
22486 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
22487 (grub_video_reader_png): Release memory occupied by image_data.
22488
22489 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
22490 4096 bytes.
22491 (grub_nfs_mount): Skip the test for sector per cluster.
22492
22493 * include/grub/ntfs.h (MAX_SPC): Removed.
22494
86cb4f54 224952008-03-31 Bean <bean123ch@gmail.com>
22496
22497 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
22498 (grub_probe_SOURCES): Add fs/afs.c.
22499 (grub_fstest_SOURCES): Likewise.
22500 (afs_mod_SOURCES): New variable.
22501 (afs_mod_CFLAGS): Likewise.
22502 (afs_mod_LDFLAGS): Likewise.
22503
22504 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
22505 (grub_emu_SOURCES): Likewise.
22506
22507 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22508
22509 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22510
22511 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22512
22513 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22514
22515 * fs/afs.c: New file.
22516
17c74c21 225172008-03-30 Pavel Roskin <proski@gnu.org>
22518
4cb68e89 22519 * disk/host.c: Include grub/misc.h to fix a warning.
22520 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
22521 warnings about implicit declarations.
22522
8790bb04 22523 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
22524 variable.
22525 * include/grub/i386/loader.h: Change declaration of
22526 grub_linux_boot() to match what grub_loader_set() expects.
22527 * util/getroot.c (grub_guess_root_device): Return const char* to
22528 fix a warning.
22529 * util/grub-probe.c (probe): Fix a warning about uninitialized
22530 abstraction_name variable.
22531 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
22532 second argument as unused to fix a warning.
22533
9a3f3296 22534 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
22535 missing grub_error() call.
22536
0ecef90d 22537 * util/update-grub_lib.in: Define datarootdir, since Autoconf
22538 2.60 and newer uses it to define datadir.
22539
0bf6d401 22540 * commands/sleep.c: Fix warning about implicit declaration.
22541 * disk/memdisk.c: Likewise.
22542 * loader/aout.c: Likewise.
22543 * loader/i386/bsd_normal.c: Likewise.
22544 * util/grub-probe.c: Likewise.
22545
7cdacf97 22546 * commands/i386/cpuid.c (has_longmode): Make static.
22547 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
22548 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
22549
17c74c21 22550 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
22551 GDT. This is more robust, as %ds can change.
22552 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
22553 calling real_to_prot().
22554 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
22555
80a3e68b 225562008-03-28 Pavel Roskin <proski@gnu.org>
22557
22558 * kern/i386/pc/startup.S: Assert that uncompressed functions
22559 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
22560 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
22561 code, as they push parts of the code (error handlers) beyond
22562 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
22563 code as correctness and size.
22564
77bcd272 225652008-03-28 Pavel Roskin <proski@gnu.org>
22566
22567 * kern/i386/pc/startup.S
22568 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
22569 data block address to the real mode, keep offset minimal. This
22570 works around a bug in AWARD BIOS on old Athlon systems, which
22571 makes CD detection hang.
22572
c5dfd43b 225732008-03-26 Pavel Roskin <proski@gnu.org>
22574
22575 * normal/color.c (grub_parse_color_name_pair): Make `name' a
22576 const.
22577 * include/grub/normal.h: Add grub_parse_color_name_pair()
22578 declaration.
22579
bf962df2 225802008-03-24 Bean <bean123ch@gmail.com>
22581
22582 * disk/i386/pc/biosdisk.c (cd_start): Removed.
22583 (cd_count): Removed.
22584 (cd_drive): New variable.
22585 (grub_biosdisk_get_drive): Don't check for (cdN) device.
22586 (grub_biosdisk_call_hook): Likewise.
22587 (grub_biosdisk_iterate): Change cdrom detection method.
22588 (grub_biosdisk_open): Replace cd_start with cd_drive.
22589 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
22590 detect cdrom device.
22591
22592 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
22593 Removed.
22594 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
22595 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
22596 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
22597 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
22598 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
22599 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
22600 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
22601 (grub_biosdisk_cdrp): New structure.
22602 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
22603
22604 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
22605
22606 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
22607 device.
22608
22609 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
22610 New function.
22611
68e7fc7a 226122008-03-20 Robert Millan <rmh@aybabtu.com>
22613
22614 Remove 2 TiB limit in ata.mod.
22615 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
22616 (grub_ata_dumpinfo): Print sector count with 0x%llx.
22617 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
22618 grub_uint64_t instead of grub_uint32_t.
22619
38ad2cf5 226202008-03-05 Bean <bean123ch@gmail.com>
22621
22622 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
22623 (grub_multiboot): Set boot device.
22624
22625 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
22626
2b89344e 226272008-03-02 Bean <bean123ch@gmail.com>
22628
22629 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
22630 symlink_buffer.
22631
87a95d1f 226322008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
22633
22634 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
22635 texinfo.tex.
22636
22637 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
22638 modified.
22639
22640 * docs/fdl.texi: New file.
f19dbdb7 22641
87a95d1f 22642 * docs/mdate-sh: New file. Copied from gnulib.
22643 * docs/texinfo.tex: Likewise.
22644
22645 * config.guess: Updated from gnulib.
22646 * install-sh: Likewise.
22647
7dc15d8e 226482008-02-28 Robert Millan <rmh@aybabtu.com>
22649
22650 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
22651 (aout_mod_SOURCES): New variable.
22652 (aout_mod_CFLAGS): Likewise.
22653 (aout_mod_LDFLAGS): Likewise.
22654
22655 * conf/i386-ieee1275.rmk: Likewise.
22656
b00ab696 226572008-02-28 Robert Millan <rmh@aybabtu.com>
22658
22659 * util/update-grub.in: Reorganise terminal validity check. Accept
22660 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
22661 Based on suggestion by Franklin PIAT.
22662
79ca2d78 226632008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
22664
22665 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
22666 function.
22667 * util/getroot.c (grub_util_check_block_device): New function that
22668 returns the given argument if it is a block device and returns NULL else.
22669 * util/grub-probe.c (argument_is_device): New variable.
22670 (probe): Promote device_name from a variable to an argument. Receive
22671 device_name from grub_util_check_block_device() if path is NULL and from
22672 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 22673 (options): Introduce new parameter '-d, --device'.
79ca2d78 22674 (main): Add description of the new parameter to the help screen.
22675 Rename path variable to argument. Set argument_is_device if the '-d'
22676 option is given. Pass argument to probe() depending on
22677 argument_is_device.
22678
0d16e571 226792008-02-24 Bean <bean123ch@gmail.com>
22680
22681 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
22682 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
22683 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
22684 (GRUB_ISO9660_VOLDESC_PART): Likewise.
22685 (GRUB_ISO9660_VOLDESC_END): Likewise.
22686 (grub_iso9660_primary_voldesc): New member escape.
22687 (grub_iso9660_data): New member joliet.
22688 (grub_iso9660_convert_string): New function.
22689 (grub_iso9660_mount): Detect joliet extension.
22690 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
22691 (grub_iso9660_iso9660_label): Likewise.
22692
22693 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
22694 (grub_setup_SOURCES): Add fs/udf.c.
22695 (grub_fstest_SOURCES): Likewise.
22696 (udf_mod_SOURCES): New variable.
22697 (udf_mod_CFLAGS): Likewise.
22698 (udf_mod_LDFLAGS): Likewise.
22699
22700 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
22701 (grub_emu_SOURCES): Likewise.
22702
22703 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22704
22705 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22706
22707 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22708
22709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22710
22711 * fs/udf.c: New file.
22712
8a594a17 227132008-02-24 Robert Millan <rmh@aybabtu.com>
22714
22715 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
22716 (normal/lexer.c_DEPENDENCIES): New variables.
22717 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
22718 (normal/lexer.c_DEPENDENCIES): Likewise.
22719 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
22720 (normal/lexer.c_DEPENDENCIES): Likewise.
22721 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
22722 (normal/lexer.c_DEPENDENCIES): Likewise.
22723 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
22724 (normal/lexer.c_DEPENDENCIES): Likewise.
22725 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
22726 (normal/lexer.c_DEPENDENCIES): Likewise.
22727
2dc33c03 227282008-02-23 Robert Millan <rmh@aybabtu.com>
22729
22730 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
22731 since they were intended to be in hex. This didn't break previously
22732 because of a bug in gpt_partition_map_iterate() (see below).
22733
22734 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
22735 when checking the validity of GPT header.
22736 Remove `partno', since it always provides the same information as `i'.
22737
f6f4cfb0 227382008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
22739
22740 * include/grub/efi/time.h: Fix a wrong comment.
22741
79ff665f 227422008-02-19 Pavel Roskin <proski@gnu.org>
22743
22744 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
22745 message.
22746
d38e24c2 227472008-02-19 Bean <bean123ch@gmail.com>
22748
22749 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
22750 (aout_mod_SOURCES): New variable.
22751 (aout_mod_CFLAGS): Likewise.
22752 (aout_mod_LDFLAGS): Likewise.
22753 (_bsd_mod_SOURCES): New variable.
22754 (_bsd_mod_CFLAGS): Likewise.
22755 (_bsd_mod_LDFLAGS): Likewise.
22756 (bsd_mod_SOURCES): New variable.
22757 (bsd_mod_CFLAGS): Likewise.
22758 (bsd_mod_LDFLAGS): Likewise.
22759
22760 * include/grub/aout.h: New file.
22761
22762 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
22763
22764 * include/grub/i386/bsd.h: New file.
22765
22766 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
22767 to make it public.
22768
22769 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
22770 function is called, so that it's possible to change it inside the hook.
22771 (grub_elf64_load): Likewise.
22772 (grub_elf_file): Don't close the file if elf header is not found.
22773 (grub_elf_close): Close the file if grub_elf_file fails (The new
22774 grub_elf_file won't close it).
22775 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
22776 (grub_elf64_size): Likewise.
22777
22778 * kern/i386/loader.S (grub_unix_real_boot): New function.
22779
22780 * loader/aout.c: New file.
22781
22782 * loader/i386/bsd.c: New file.
22783
22784 * loader/i386/bsd_normal.c: New file.
22785
22786 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
22787
22788 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 22789 can test other formats.
d38e24c2 22790
b93bdb0f 227912008-02-19 Robert Millan <rmh@aybabtu.com>
22792
22793 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
22794 (grub_gpt_partition_type_empty): Redefine with macro from
22795 `<grub/gpt_partition.h>'.
22796 (gpt_partition_map_iterate): Adjust partition type comparison.
22797
22798 Export `entry' as partmap-specific `part.data' struct.
22799 (grub_gpt_header, grub_gpt_partentry): Move from here ...
22800
22801 * include/grub/gpt_partition.h (grub_gpt_header)
22802 (grub_gpt_partentry): ... to here (new file).
22803
22804 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
22805
22806 (grub_gpt_partition_type_bios_boot): New const variable, defined
22807 with macro from `<grub/gpt_partition.h>'.
22808
22809 (setup): Replace `first_start' with `embed_region', which keeps
22810 track of the embed region (and is partmap-agnostic).
22811
22812 Replace find_first_partition_start() with find_usable_region(),
22813 which finds a usable region for embedding using partmap-specific
22814 knowledge (supports PC/MSDOS and GPT).
22815
22816 Fix all assumptions that the embed region start at sector 1, using
22817 `embed_region.start' from now on. Similarly, use `embed_region.end'
22818 rather than `first_start' to calculate available size.
22819
22820 In grub_util_info() message, replace "into after the MBR" with an
22821 indication of the specific sector our embed region starts at.
22822
66cb40f6 228232008-02-19 Robert Millan <rmh@aybabtu.com>
22824
22825 * DISTLIST: Replace `commands/ieee1275/halt.c' and
22826 `commands/ieee1275/reboot.c' with `commands/halt.c' and
22827 `commands/reboot.c'.
22828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
22829 (halt_mod_SOURCES): Likewise.
22830 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
22831 (halt_mod_SOURCES): Likewise.
22832
b7202015 228332008-02-17 Christian Franke <franke@computer.org>
22834
22835 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
22836
32b0fc49 228372008-02-17 Robert Millan <rmh@aybabtu.com>
22838
22839 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
22840 set `first_start' to 0 for non-PC/MSDOS partition maps.
22841
aca63502 228422008-02-16 Robert Millan <rmh@aybabtu.com>
22843
22844 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
22845 do not assume partition map is PC/MSDOS before performing checks that
22846 are specific to that layout.
22847
0de8be86 228482008-02-13 Robert Millan <rmh@aybabtu.com>
22849
22850 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
22851 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
22852 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
22853
c3db8364 228542008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
22855
22856 * configure.ac: Only a cosmetic change on the handling of
22857 -fno-stack-protector.
22858
f714229e 228592008-02-12 Alexandre Boeglin <alex@boeglin.org>
22860
c3db8364 22861 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
22862 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
22863 reboot.c.
f714229e 22864 (grub_install_SOURCES): Add halt.mod and reboot.mod.
22865 (halt_mod_SOURCES): New variable.
22866 (halt_mod_CFLAGS): Likewise.
22867 (halt_mod_LDFLAGS): Likewise.
22868 (reboot_mod_SOURCES): Likewise.
22869 (reboot_mod_CFLAGS): Likewise.
22870 (reboot_mod_LDFLAGS): Likewise.
22871
c3db8364 22872 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
22873 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
22874 reboot.c.
f714229e 22875 (halt_mod_SOURCES): Likewise.
22876 (reboot_mod_SOURCES): Likewise.
22877
c3db8364 22878 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
22879 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 22880 (reboot_mod_SOURCES): Likewise.
22881
22882 * commands/i386/pc/reboot.c: merge this file ...
22883
22884 * commands/ieee1275/reboot.c: ... and this file ...
22885
22886 * commands/reboot.c: ... to this file.
c3db8364 22887 Add some precompiler directive to include the correct header for
22888 each machine.
f714229e 22889
22890 * commands/ieee1275/halt.c: move this file ...
22891
22892 * commands/halt.c: ... to here.
c3db8364 22893 Add some precompiler directive to include the correct header for
22894 each machine.
f714229e 22895
22896 * include/grub/efi/efi.h (grub_reboot): New function declaration.
22897 (grub_halt): Likewise.
22898
22899 * kern/efi/efi.c (grub_reboot): New function.
22900 (grub_halt): Likewise.
22901
c74493e0 229022008-02-12 Robert Millan <rmh@aybabtu.com>
22903
22904 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
22905 /dev (like it is done for /dev/mapper). This doesn't provide support
22906 for EVMS, but at least it is now easy to identify the problem when it
22907 arises.
22908
d0db4b04 229092008-02-11 Robert Millan <rmh@aybabtu.com>
22910
22911 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
22912 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
22913 comparing it with -1, not 0.
22914
bf748642 229152008-02-10 Robert Millan <rmh@aybabtu.com>
22916
22917 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
22918 `disk/lvm.c'.
22919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22920 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22921
22922 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
22923 `disk/lvm.c' to the end of the list.
22924 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
22925 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22926
b5db202a 229272008-02-10 Robert Millan <rmh@aybabtu.com>
22928
22929 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
22930 grub_print_error() instead. This will let user know why we're entering
22931 rescue mode.
22932 Based on suggestions from Sam Morris.
22933
83abee31 229342008-02-10 Alexandre Boeglin <alex@boeglin.org>
22935
22936 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
22937 on remaining N args, instead of "--" arg N times.
22938
78d5a08b 229392008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
22940
22941 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
22942 (fill_with_default_glyph): Changed to use unknown_glyph for fill
22943 pattern for unknown glyphs.
22944
68807e5f 229452008-02-09 Robert Millan <rmh@aybabtu.com>
22946
22947 * configure.ac: Probe for `help2man'.
22948 * Makefile.in (builddir): New variable.
22949 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
22950 or otherwise add a few flags/options to it.
22951 (install-local): For every executable utility or script that is
22952 installed, invoke $(HELP2MAN) to install a manpage based on --help
22953 output.
22954
22955 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
22956 that it doesn't prevent --help from working in build tree.
22957
22958 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
22959 with `bug-grub@gnu.org'.
22960 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
22961 * util/update-grub.in (usage): New function.
22962 Implement proper argument check, with support for --help and --version
22963 (as well as existing -y).
22964
229652008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 22966
22967 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
22968 avoid overwriting previous output.
22969 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
22970
c1962162 229712008-02-09 Robert Millan <rmh@aybabtu.com>
22972
22973 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
22974 drawing the menu.
22975
3dac2e3f 229762008-02-09 Robert Millan <rmh@aybabtu.com>
22977
22978 * commands/sleep.c: New file.
22979 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
22980 (sleep_mod_SOURCES): New variable.
22981 (sleep_mod_CFLAGS): Likewise.
22982 (sleep_mod_LDFLAGS): Likewise.
22983
7a634e08 229842008-02-09 Robert Millan <rmh@aybabtu.com>
22985
22986 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
22987 situations in which we can deduce the RAID size and the superblock
22988 doesn't match it.
22989
b92f0c18 229902008-02-09 Robert Millan <rmh@aybabtu.com>
22991
22992 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
22993 and return a grub_diskmemberlist_t composed of LVM physical volumes.
22994 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
22995
22996 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
22997 and return a grub_diskmemberlist_t composed of physical array members.
22998 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
22999
23000 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
23001 prototype.
23002 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
23003 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
23004 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
23005
23006 * util/grub-probe.c (probe): Move partmap probing code from here ...
23007 (probe_partmap): ... to here.
23008 (probe): Use probe_partmap() once for the disk we're probing, and
23009 additionally, when such disk contains a memberlist() struct member,
23010 once for each disk that is contained in the structure returned by
23011 memberlist().
23012
91a4bf68 230132008-02-09 Robert Millan <rmh@aybabtu.com>
23014
23015 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
23016 environment variable to 'all' in order to obtain debug output from
23017 non-util/ code.
23018 * util/i386/pc/grub-setup.c (main): Likewise.
23019
a96f9caa 230202008-02-08 Robert Millan <rmh@aybabtu.com>
23021
23022 * disk/raid.c (grub_raid_scan_device): Check for
23023 `array->device[sb.this_disk.number]' rather than for
23024 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 23025 guaranteed to be accessible.
a96f9caa 23026
b37a9222 230272008-02-08 Robert Millan <rmh@aybabtu.com>
23028
23029 * disk/raid.c: Update copyright.
23030 * fs/cpio.c: Likewise.
23031 * include/grub/raid.h: Likewise.
23032 * loader/i386/pc/multiboot.c: Likewise.
23033 * util/hostfs.c: Likewise.
23034
5626aee1 230352008-02-08 Robert Millan <rmh@aybabtu.com>
23036
23037 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
23038 to a grub_disk_t array.
23039 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
23040 `device[x]'.
23041 (grub_raid_scan_device): Replace `device[x].name' accesses with
23042 `device[x]->name'. Simplify initialization of `array->device[x]'.
23043
554f0187 230442008-02-08 Robert Millan <rmh@aybabtu.com>
23045
23046 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
23047 grub_dprintf() calls.
23048 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
23049 error message.
23050
1ec8425d 230512008-02-07 Christian Franke <franke@computer.org>
23052
23053 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
23054 instead of fseek and ftell to support large files.
23055 (grub_hostfs_read): Likewise.
23056
f2156fda 230572008-02-07 Robert Millan <rmh@aybabtu.com>
23058
23059 Patch from Jeroen Dekkers.
23060 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 23061 failure, since successfully reading all array members might not be
f2156fda 23062 required.
23063
9216e0e7 230642008-02-06 Robert Millan <rmh@aybabtu.com>
23065
23066 * util/grub-probe.c (probe): Simplify partmap probing (with the
23067 assumption that the first word up to the underscore equals to
23068 the module name).
23069
b0dfd29a 230702008-02-06 Christian Franke <franke@computer.org>
23071
23072 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
23073 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
23074 last block of a cpio or tar stream.
23075 Check for "TRAILER!!!" instead of any empty data
23076 block to detect last block of a cpio stream.
23077 (grub_cpio_dir): Fix constness of variable np.
23078 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
23079 cpio or tar trailer is detected. This fixes a crash
23080 on open of a non existing file.
23081
c32865bf 230822008-02-05 Bean <bean123ch@gmail.com>
23083
23084 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
23085 address of entry.
23086 (grub_multiboot_load_elf64): Likewise.
23087 (grub_multiboot): Initialize mbi structure.
23088
23089 * util/grub-fstest.c: Don't include unused header file script.h.
23090
fe6b695a 23091 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 23092 of file.
23093 (grub_fstest_SOURCES): Likewise.
23094
409480b7 230952008-02-05 Robert Millan <rmh@aybabtu.com>
23096
23097 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
23098 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
23099 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
23100 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
23101
23102 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
23103 (translation_table): Replace hardcoded values with macros
23104 provided by `<grub/term.h>'.
23105
23106 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
23107 (keyboard_map): Correct/add a few values, with macros provided
23108 by `<grub/term.h>'.
23109 (keyboard_map_shift): Zero values that don't differ from their
23110 `keyboard_map' equivalents.
23111 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
23112 Discard the second scan code that is always sent by Caps lock.
23113 Only use `keyboard_map_shift' when it provides a non-zero value,
23114 otherwise fallback to `keyboard_map'.
23115
99fadbaa 231162008-02-04 Bean <bean123ch@gmail.com>
23117
23118 * Makefile.in (enable_grub_fstest): New variable.
23119
23120 * conf/common.rmk (grub_fstest_init.lst): New rule.
23121 (grub_fstest_init.h): Likewise.
23122 (grub_fstest_init.c): Likewise.
23123 (util/grub-fstest.c_DEPENDENCIES): New variable.
23124 (grub_fstest_SOURCES): Likewise.
23125
23126 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
23127
23128 * util/grub-fstest.c: New file.
23129
bf567c50 231302008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
23131
23132 Make grub-setup handle a separate root device.
f19dbdb7 23133
bf567c50 23134 * util/i386/pc/grub-setup.c (setup): Always open the root device,
23135 so that the root device can be compared with the destination
23136 device.
23137 When embedding the core image, if the root and destination devices
23138 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
23139 0xFF.
23140 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 23141
9be6b98b 231422008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
23143
23144 Add support for having a grub directory in a different drive. This
23145 is still only the data handling part.
f19dbdb7 23146
9be6b98b 23147 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
23148 (codestart): Save %dh in GRUB_ROOT_DRIVE.
23149 (grub_root_drive): New variable.
23150
23151 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
23152 instead of GRUB_BOOT_DRIVE to construct a device name. Set
23153 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
23154 as it was.
23155
23156 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
23157
23158 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
23159 macro.
23160 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
23161
23162 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
23163 is bogus, because PXE booting does not specify any drive
23164 correctly.
23165
23166 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
23167 am not sure if this is really correct.
23168
23169 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
23170 is always identical to the boot drive when booting from a CD.
23171
23172 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
23173 longer.
23174 (root_drive): New variable.
23175 (real_start): Unconditionally set %dh to ROOT_DRIVE.
23176 (setup_sectors): Push %dx right after popping it, because %dh will
23177 be modified later.
23178 (copy_buffer): Restore %dx.
23179
e0ca0677 231802008-02-03 Robert Millan <rmh@aybabtu.com>
23181
23182 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
23183 use `cdboot.img' for cdrom images.
23184
3b3f6629 231852008-02-03 Robert Millan <rmh@aybabtu.com>
23186
23187 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
23188 only setup gfxterm when `font' command has succeeded.
23189
d42b3672 231902008-02-03 Robert Millan <rmh@aybabtu.com>
23191
23192 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
23193 (grub_rescue_cmd_multiboot_loader)
23194 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
23195
fa370ea6 231962008-02-03 Pavel Roskin <proski@gnu.org>
23197
e0c5dacb 23198 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 23199 %edx and %esi from stack only after grub_gate_a20() is called.
23200 grub_gate_a20() clobbers %edx.
23201
f2a76e1d 232022008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
23203
23204 * configure.ac (AC_INIT): Bumped to 1.96.
23205
23206 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
23207 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
23208 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
23209 video/readers/png.c.
23210
90fd32d1 232112008-02-03 Bean <bean123ch@gmail.com>
9be665dd 23212
23213 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
23214 (cdboot_img_SOURCES): New variable.
23215 (cdboot_img_ASFLAGS): New variable.
23216 (cdboot_img_LDFLAGS): New variable.
23217
23218 * boot/i386/pc/cdboot.S: New file.
23219
23220 * disk/i386/pc/biosdisk.c (cd_start): New variable.
23221 (cd_count): Likewise.
23222 (grub_biosdisk_get_drive): Add support for cd device.
23223 (grub_biosdisk_call_hook): Likewise.
23224 (grub_biosdisk_iterate): Likewise.
23225 (grub_biosdisk_open): Likewise.
23226 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
23227 (grub_biosdisk_rw): Support reading from cd device.
23228 (GRUB_MOD_INIT): Iterate cd devices.
23229
23230 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
23231 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
23232 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
23233
23234 * kern/i386/pc/init.c (make_install_device): Check for cd device.
23235
4020aa53 232362008-02-02 Robert Millan <rmh@aybabtu.com>
23237
23238 * commands/read.c: New file.
23239 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
23240 (read_mod_SOURCES): New variable.
23241 (read_mod_CFLAGS): Likewise.
23242 (read_mod_LDFLAGS): Likewise.
23243
e03a1132 232442008-02-02 Robert Millan <rmh@aybabtu.com>
23245
23246 * normal/main.c (grub_normal_execute): Check for `menu->size' when
23247 determining whether menu has to be displayed.
23248
58c69220 232492008-02-02 Marco Gerards <marco@gnu.org>
23250
23251 * bus/pci.c: New file.
23252
23253 * include/grub/pci.h: Likewise.
23254
23255 * include/grub/i386/pc/pci.h: Likewise.
23256
23257 * commands/lspci.c: Likewise.
23258
23259 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
23260 `lspci.mod'.
23261 (pci_mod_SOURCES): New variable.
23262 (pci_mod_CFLAGS): Likewise.
23263 (pci_mod_LDFLAGS): Likewise.
23264 (lspci_mod_SOURCES): Likewise.
23265 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 23266 (lspci_mod_LDFLAGS): Likewise.
58c69220 23267
c004e1b4 232682008-02-02 Bean <bean123ch@gmail.com>
23269
23270 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
23271 (grub_ufs_get_file_block): Fix indirect block calculation problem.
23272
23273 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
23274 (grub_xfs_btree_node): New structure.
23275 (grub_xfs_btree_root): New structure.
23276 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
23277 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
23278 (GRUB_XFS_EXTENT_BLOCK): Likewise.
23279 (GRUB_XFS_EXTENT_SIZE): Likewise.
23280 (grub_xfs_read_block): Support btree format type.
23281 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
23282 Use directory block as basic unit.
23283
23284 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
23285
23286 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
23287 __attribute__ ((__regparm__ (1))).
23288
f95562bf 232892008-02-01 Robert Millan <rmh@aybabtu.com>
23290
23291 Correct a mistake in previous commit.
23292
23293 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
23294 top.
23295 (normal/command.c_DEPENDENCIES): New variable.
23296
7d31f41f 232972008-02-01 Robert Millan <rmh@aybabtu.com>
23298
23299 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
23300 top.
23301 (normal/command.c_DEPENDENCIES): New variable.
23302 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
23303 * conf/i386-ieee1275.rmk: Likewise.
23304 * conf/i386-linuxbios.rmk: Likewise.
23305 * conf/i386-pc.rmk: Likewise.
23306 * conf/sparc64-ieee1275.rmk: Likewise.
23307 * conf/powerpc-ieee1275.rmk: Likewise.
23308 (grub_emu_SOURCES): Add `fs/fshelp.c'.
23309
23310 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
23311
60b6be74 233122008-02-01 Robert Millan <rmh@aybabtu.com>
23313
23314 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
23315 call at beginning of function.
23316
078522ab 233172008-01-31 Pavel Roskin <proski@gnu.org>
23318
23319 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 23320 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
23321 (grub_mkrescue_SOURCES): Likewise.
078522ab 23322 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
23323
ccaa8a5f 233242008-01-30 Robert Millan <rmh@aybabtu.com>
23325
23326 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
23327 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
23328 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
23329 (grub_probe_SOURCES): ... to here.
23330
23331 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
23332 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
23333 * conf/i386-ieee1275.rmk: Likewise.
23334 * conf/i386-linuxbios.rmk: Likewise.
23335 * conf/powerpc-ieee1275.rmk: Likewise.
23336
ae5a9cd7 233372008-01-30 Tristan Gingold <gingold@free.fr>
23338
23339 * kern/rescue.c: Silently accept empty lines.
23340
70bc2ef2 233412008-01-29 Bean <bean123ch@gmail.com>
23342
23343 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
23344 (real_code_2): Code cleanup and change comment style.
23345 (move_memory): Avoid using 32-bit address mode.
23346
6a4d50ea 233472008-01-29 Bean <bean123ch@gmail.com>
23348
23349 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
23350 (png_mod_SOURCES): New variable.
23351 (png_mod_CFLAGS): Likewise.
23352 (png_mod_LDFLAGS): Likewise.
23353
23354 * video/readers/png.c: New file.
23355
11cc30ac 233562008-01-28 Robert Millan <rmh@aybabtu.com>
23357
23358 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
23359 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
23360 `ifndef GRUB_MOD_GAP' hack.
23361 * util/elf/grub-mkimage.c (add_segments): Likewise.
23362
3abc589f 233632008-01-27 Robert Millan <rmh@aybabtu.com>
23364
23365 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
23366 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 23367 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 23368
e1907778 233692008-01-27 Robert Millan <rmh@aybabtu.com>
23370
23371 Get grub-emu to build again (including parallel builds).
23372
23373 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
23374 Split into ...
23375 (util/grub-emu.c_DEPENDENCIES): ... this, ...
23376 (normal/execute.c_DEPENDENCIES): ... this, ...
23377 (grub-emu_DEPENDENCIES): ... and this.
23378
23379 * conf/i386-efi.rmk: Likewise.
23380 * conf/i386-linuxbios.rmk: Likewise.
23381 * conf/i386-ieee1275.rmk: Likewise.
23382 * conf/powerpc-ieee1275.rmk: Likewise.
23383 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
23384
2216b101 233852008-01-27 Robert Millan <rmh@aybabtu.com>
23386
23387 * NEWS: Add a few items.
23388
f75172d9 233892008-01-27 Robert Millan <rmh@aybabtu.com>
23390
23391 Fix parallel builds with grub-emu. Based on earlier commit for
23392 grub-probe and grub-setup.
23393
23394 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23395 (util/grub-emu.c_DEPENDENCIES): ... this.
23396 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23397 (util/grub-emu.c_DEPENDENCIES): ... this.
23398 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23399 (util/grub-emu.c_DEPENDENCIES): ... this.
23400 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23401 (util/grub-emu.c_DEPENDENCIES): ... this.
23402 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
23403 (util/grub-emu.c_DEPENDENCIES): ... this.
23404
3f51de77 234052008-01-27 Pavel Roskin <proski@gnu.org>
23406
23407 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
23408 to create a gap between _end and the modules added to the image
23409 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
23410 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
23411 * util/elf/grub-mkimage.c (add_segments): Likewise.
23412
2033f53e 234132008-01-26 Pavel Roskin <proski@gnu.org>
23414
23415 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
23416 just return an error.
23417
22da1f6f 234182008-01-26 Bean <bean123ch@gmail.com>
23419
23420 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
23421 (grub_reiserfs_get_item): Save offset of the next item.
23422 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
23423
2a9525e6 234242008-01-25 Robert Millan <rmh@aybabtu.com>
23425
23426 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
23427 make all filesystem sources appear together (possibly fixing omissions
23428 while at it).
23429 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23430 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23431 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23432 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23433
23434 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
23435 add `kern/file.c'.
23436 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
23437 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
23438 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
23439 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
23440
23441 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
23442 (probe): Add a sanity check to make sure of our ability to read
23443 requested files when probing for filesystem type.
23444
23445 * genmk.rb: Update copyright year (2007).
23446
23447 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
23448 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
23449 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
23450 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
23451 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
23452 : Remove function prototypes.
23453
b95f71b5 234542008-01-25 Robert Millan <rmh@aybabtu.com>
23455
23456 Revert my previous commits (based on wrong assumption of how grub_errno
23457 works).
23458
fe6b695a 23459 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 23460 * kern/file.c (grub_file_open): Likewise.
23461
d08bbb49 234622008-01-24 Pavel Roskin <proski@gnu.org>
23463
23464 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
23465 that hang if GRUB tries to setup colors.
23466 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
23467 colors for firmwares that don't support it.
23468 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
23469 Recognize Open Hack'Ware, set flags to work around its
23470 limitations.
23471
605e36ed 234722008-01-24 Robert Millan <rmh@aybabtu.com>
23473
23474 * kern/file.c (grub_file_open): Do not account previous failures of
23475 unrelated functions when grub_errno is checked for.
23476 Reported by Oleg Strikov.
23477
bac332a1 234782008-01-24 Bean <bean123ch@gmail.com>
23479
23480 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
23481 (grub_ufs_sblock): New member volume name.
23482 (grub_ufs_find_file): Fix string copy bug.
23483 (grub_ufs_label): Implement this function properly.
23484
23485 * fs/hfs.c (grub_hfs_cnid_type): New enum.
23486 (grub_hfs_iterate_records): Use the correct file number for extents
23487 and catalog file. Fix problem in next index calculation.
23488 (grub_hfs_find_node): Replace recursive function call with loop.
23489 (grub_hfs_iterate_dir): Replace recursive function call with loop.
23490
15c80c09 234912008-01-23 Robert Millan <rmh@aybabtu.com>
23492
23493 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
23494 `<grub/symbol.h>' and `<grub/multiboot.h>'.
23495 (grub_multiboot2_real_boot): New function prototype.
23496
23497 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
23498 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
23499
23500 * kern/i386/ieee1275/init.c (grub_os_area_addr)
23501 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
23502
305338fd 235032008-01-23 Robert Millan <rmh@aybabtu.com>
23504
23505 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
23506 #ifdef'ed out grub_printf().
23507
3ea52685 235082008-01-23 Robert Millan <rmh@aybabtu.com>
23509
23510 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
23511 grub_dprintf calls, since they make "debug=all" mode unusable.
23512 (grub_console_checkkey): Likewise.
23513
5882ae4b 235142008-01-23 Robert Millan <rmh@aybabtu.com>
23515
23516 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
23517 `term/i386/pc/at_keyboard.c'.
23518 (pkglib_MODULES): Add `serial.mod'.
23519 (serial_mod_SOURCES): New variable.
23520 (serial_mod_CFLAGS): Likewise.
23521 (serial_mod_LDFLAGS): Likewise.
23522
23523 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
23524 `<grub/powerpc/ieee1275/console.h>'.
23525 (grub_keyboard_controller_init): New function prototype.
23526 (grub_console_checkkey): Likewise.
23527 (grub_console_getkey): Likewise.
23528
23529 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
23530 keyboard on i386.
23531
23532 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
23533 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
23534
06ab5303 235352008-01-23 Robert Millan <rmh@aybabtu.com>
23536
23537 * kern/i386/pc/init.c (make_install_device): When memdisk image is
23538 present, "(memdisk)/boot/grub" becomes the default prefix.
23539
23540 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
23541 a memdisk tarball with all the modules. Add --overlay=DIR option that
23542 allows users to overlay additional files into the image.
23543
dbb475a4 235442008-01-23 Robert Millan <rmh@aybabtu.com>
23545
23546 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
23547 and `machine/memory.h'.
23548 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
23549 (_multiboot_mod_SOURCES): New variable.
23550 (_multiboot_mod_CFLAGS): Likewise.
23551 (_multiboot_mod_LDFLAGS): Likewise.
23552 (multiboot_mod_SOURCES): Likewise.
23553 (multiboot_mod_CFLAGS): Likewise.
23554 (multiboot_mod_LDFLAGS): Likewise.
23555
23556 * include/grub/i386/ieee1275/loader.h: New file.
23557
23558 * include/grub/i386/ieee1275/machine.h: Likewise.
23559
23560 * include/grub/i386/ieee1275/memory.h: Likewise.
23561
23562 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
23563 variable declaration.
23564 (grub_os_area_size): Likewise.
23565
23566 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
23567 (grub_lower_mem, grub_upper_mem): New variables.
23568 (grub_stop_floppy): New function (just to make
23569 grub_multiboot2_real_boot() happy).
23570
23571 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
23572 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
23573 (grub_stop): New function.
23574 Include `"../realmode.S"' and `"../loader.S"'.
23575
23576 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
23577 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
23578
23579 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
23580 rely on grub_multiboot2_real_boot() for final boot.
23581
25638629 235822008-01-22 Robert Millan <rmh@aybabtu.com>
23583
23584 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
23585 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
23586 device that doesn't look like an SD card.
23587 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
23588 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
23589 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
23590 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
23591 found.
23592
9dad816d 235932008-01-22 Robert Millan <rmh@aybabtu.com>
23594
23595 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
23596 avoid claiming over our own code.
23597
34842f2d 235982008-01-22 Bean <bean123ch@gmail.com>
23599
23600 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
23601 (jpeg_mod_SOURCES): New variable.
23602 (jpeg_mod_CFLAGS): Likewise.
23603 (jpeg_mod_LDFLAGS): Likewise.
23604
23605 * video/readers/jpeg.c : New file.
23606
44023a28 236072008-01-22 Bean <bean123ch@gmail.com>
23608
23609 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
23610 there are no more items.
23611
bc2d8ac6 236122008-01-21 Robert Millan <rmh@aybabtu.com>
23613
23614 * kern/mm.c (grub_mm_init_region): Improve debug message.
23615
261bd4bc 236162008-01-21 Robert Millan <rmh@aybabtu.com>
23617
23618 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
23619 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
23620 address.
23621 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
23622 a C macro.
23623 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
23624 Indicates start of upper memory.
23625 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
23626 (generate_image): Abort when image size is big enough to corrupt
23627 upper memory.
23628
23629 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
23630 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
23631 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
23632 instead of hardcoding 0xA0000.
23633 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
23634 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
23635 instead of hardcoding 0xA0000.
23636
f970b55e 236372008-01-21 Robert Millan <rmh@aybabtu.com>
23638
23639 * disk/memdisk.c (memdisk_size): New variable.
23640 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
23641 `memdisk_size'.
23642 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
23643 image to dynamic memory.
23644 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
23645 `memdisk_size'. Free memdisk block.
23646
1a8b0526 236472008-01-21 Robert Millan <rmh@aybabtu.com>
23648
23649 Fix detection of very small filesystems (like tar).
23650
23651 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
23652 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
23653 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
23654 a problem with this disk).
23655
6e9b4aab 236562008-01-21 Robert Millan <rmh@aybabtu.com>
23657
23658 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
23659 on grub_biosdisk_rw_standard() error.
23660
0d8837b2 236612008-01-21 Robert Millan <rmh@aybabtu.com>
23662
23663 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
23664 recent changes.
23665 * kern/elf.c: Likewise.
23666 * kern/ieee1275/ieee1275.c: Likewise.
23667 * kern/powerpc/ieee1275/openfw.c: Likewise.
23668 * term/ieee1275/ofconsole.c: Likewise.
23669
ffd36e34 236702008-01-21 Robert Millan <rmh@aybabtu.com>
23671
23672 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
23673
3f0093d0 23674 * include/grub/kernel.h (grub_arch_memdisk_addr)
23675 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 23676
3f0093d0 23677 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
23678 (grub_arch_memdisk_size): ... to here.
ffd36e34 23679
6c391b21 236802008-01-21 Robert Millan <rmh@aybabtu.com>
23681
23682 Mostly based on bugfix from Bean.
23683
23684 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
23685 attribute with hook() parameter.
23686 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
23687 declaration.
23688 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
23689 attribute with hook() parameter.
23690 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
23691 declaration.
23692
55a581dc 236932008-01-21 Robert Millan <rmh@aybabtu.com>
23694
23695 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
23696 (pkglib_MODULES): Add `memdisk.mod'.
23697 (memdisk_mod_SOURCES): New variable.
23698 (memdisk_mod_CFLAGS): Likewise.
23699 (memdisk_mod_LDFLAGS): Likewise.
23700
23701 * disk/memdisk.c: New file.
23702
23703 * include/grub/disk.h (grub_disk_dev_id): Add
23704 `GRUB_DISK_DEVICE_MEMDISK_ID'.
23705
23706 * include/grub/i386/pc/kernel.h
23707 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
23708 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
23709 (grub_kernel_image_size): New variable declaration.
23710 (grub_total_module_size): Likewise.
23711 (grub_memdisk_image_size): Likewise.
23712
23713 * include/grub/i386/pc/memory.h
23714 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
23715
23716 * include/grub/kernel.h: Include `<grub/symbol.h>'.
23717 (grub_arch_memdisk_addr): New variable declaration.
23718 (grub_arch_memdisk_size): Likewise.
23719
23720 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
23721 (grub_arch_memdisk_size): Likewise.
23722
23723 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
23724 (codestart): Replace hardcoded `0x100000' with
23725 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
23726
23727 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
23728 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
23729 not NULL, append the contents of the file it refers to, at the end of
23730 the compressed kernel image. Initialize `grub_memdisk_image_size'
23731 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
23732 (options): Add "memdisk"|'m' option.
23733 (main): Parse --memdisk|-m option, and pass user-provided path as
23734 parameter to generate_image().
23735
3d7f54c9 237362008-01-20 Robert Millan <rmh@aybabtu.com>
23737
23738 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
23739 grub_dprintf() calls from here ...
23740 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
23741
0bf74728 237422008-01-20 Robert Millan <rmh@aybabtu.com>
23743
23744 Fix detection of "real mode" when /options/real-mode? doesn't exist.
23745
23746 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
23747 declaration.
23748 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
23749 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
23750 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 23751 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 23752 property).
23753 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
23754 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
23755
33bf70a7 237562008-01-19 Robert Millan <rmh@aybabtu.com>
23757
fe6b695a 23758 Get rid of confusing function (superseded by
33bf70a7 23759 `grub_ieee1275_get_integer_property')
23760 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
23761 prototype.
23762 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
23763 function.
23764 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
23765 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 23766 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 23767
e2da7d26 237682008-01-19 Robert Millan <rmh@aybabtu.com>
23769
23770 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
23771 command after "shut-down", since implementations differ on which
23772 the command for halt is.
23773
59f1fd8d 237742008-01-19 Robert Millan <rmh@aybabtu.com>
23775
23776 * include/grub/i386/linuxbios/console.h: Add header protection.
23777 (grub_keyboard_controller_init): New function prototype.
23778 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
23779 (KEYBOARD_COMMAND_READ): Likewise.
23780 (KEYBOARD_COMMAND_WRITE): Likewise.
23781 (KEYBOARD_SCANCODE_SET1): Likewise.
23782 (grub_keyboard_controller_write): New function.
23783 (grub_keyboard_controller_read): Likewise.
23784 (grub_keyboard_controller_init): Likewise.
23785
23786 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
23787 (grub_console_init): On coreboot/LinuxBIOS, call
23788 grub_keyboard_controller_init().
23789
5f5a7c15 237902008-01-19 Robert Millan <rmh@aybabtu.com>
23791
23792 PowerPC changes provided by Pavel Roskin.
23793
23794 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
23795 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
23796 don't rely on cmain() doing it.
23797 * kern/i386/ieee1275/startup.S (_start): Store %eax in
23798 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
23799
1210e168 238002008-01-16 Robert Millan <rmh@aybabtu.com>
23801
23802 * include/grub/i386/linuxbios/memory.h
23803 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
23804 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
23805 receive `table_header' as argument. Instead, probe for it in the
23806 known memory ranges where it can be present.
23807 (grub_available_iterate): Do not pass a fixed `table_header' address
23808 to grub_linuxbios_table_iterate().
23809
3d04eab8 238102008-01-15 Robert Millan <rmh@aybabtu.com>
23811
23812 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
23813 * conf/i386-ieee1275.rmk: New file.
23814 * include/grub/i386/ieee1275/console.h: Likewise.
23815 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
23816 * include/grub/i386/ieee1275/kernel.h: Likewise.
23817 * include/grub/i386/ieee1275/time.h: Likewise.
23818 * kern/i386/ieee1275/init.c: Likewise.
23819 * kern/i386/ieee1275/startup.S: Likewise.
23820
d1bc1b73 238212008-01-15 Robert Millan <rmh@aybabtu.com>
23822
23823 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
23824 when pointers are 32-bit (but still do set it to one when they are
23825 64-bit).
23826
66a65807 238272008-01-15 Robert Millan <rmh@aybabtu.com>
23828
23829 * include/grub/ieee1275/ieee1275.h
23830 (grub_ieee1275_get_integer_property): New function prototype.
23831
23832 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
23833 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 23834 grub_ieee1275_get_property() to handle endianness.
66a65807 23835
23836 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
23837 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 23838 where appropriate.
66a65807 23839 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
23840 (grub_map): Likewise.
23841 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
23842
a83ccafd 238432008-01-15 Bean <bean123ch@gmail.com>
23844
23845 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
23846 (grub_script_execute_cmdline): Reset grub_errno.
23847
23848 * normal/main.c (read_config_file): Reset grub_errno.
23849
23850 * normal/parse.y (script_init): New.
23851 (script): Move function and menuentry here.
23852 (delimiter): New.
23853 (command): Add delimiter at the end of command.
23854 (commands): Adjust to match the new command.
23855 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 23856 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 23857 (if): Use the new commands.
23858
23859 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
23860
df6ecfc6 238612008-01-15 Robert Millan <rmh@aybabtu.com>
23862
23863 * normal/menu.c (run_menu): Move timeout message from here ...
23864 (print_timeout): ... to here.
23865 (run_menu): Use print_timeout() once during initial draw to print
23866 the whole message, and again in every clock tick to update only
23867 the number of seconds.
23868
87ae25eb 238692008-01-15 Robert Millan <rmh@aybabtu.com>
23870
23871 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
23872 actual size of `available' from grub_ieee1275_get_property(), and
23873 restrict parsing to that bound.
23874
47bf09a4 238752008-01-15 Christian Franke <franke@computer.org>
23876
23877 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
23878 (argp_program_version): Remove variable.
23879 (argp_program_bug_address): Likewise.
23880 (options): Convert from struct argp_option to struct option.
23881 (struct arguments): Remove.
23882 (parse_opt): Remove.
23883 (usage): New function.
23884 (main): Replace struct args members by simple variables.
23885 Replace argp_parse() by getopt_long().
23886 Add switch to evaluate options.
23887 Add missing "(...)" around root_dev in prefix string.
23888
c86f1469 238892008-01-14 Robert Millan <rmh@aybabtu.com>
23890
23891 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
23892 for grub_ieee1275_exit(), in order to improve portability.
23893
e622c559 238942008-01-14 Robert Millan <rmh@aybabtu.com>
23895
23896 * util/grub.d/10_linux.in (prefix): Define.
23897 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
23898
44cb1ec8 238992008-01-13 Pavel Roskin <proski@gnu.org>
23900
23901 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
23902 grub_errno if no errors have been detected.
23903
1eb8c802 239042008-01-12 Robert Millan <rmh@aybabtu.com>
23905
23906 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
23907 (grub_util_get_dev_abstraction): New function prototype.
23908
23909 * util/getroot.c: Include `<grub/util/getroot.h>'
23910 (grub_util_get_grub_dev): Move detection of abstraction type to ...
23911 (grub_util_get_dev_abstraction): ... here (new function).
23912
23913 * util/grub-probe.c: Convert PRINT_* to an enum. Add
23914 `PRINT_ABSTRACTION'.
23915 (probe): Probe for abstraction type when requested.
23916 (main): Understand `--target=abstraction'.
23917
23918 * util/i386/efi/grub-install.in: Add abstraction module to core
23919 image when it is found to be necessary.
23920 * util/i386/pc/grub-install.in: Likewise.
23921 * util/powerpc/ieee1275/grub-install.in: Likewise.
23922
23923 * util/update-grub_lib.in (font_path): Return system path without
23924 converting to GRUB path.
23925 * util/update-grub.in: Convert system path returned by font_path()
23926 to a GRUB path. Use `grub-probe -t abstraction' to determine what
23927 abstraction module is needed for loading fonts (if any). Export
23928 that as `GRUB_PRELOAD_MODULES'.
23929 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
23930 insmod commands).
23931
52bd3de9 239322008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
23933
23934 Remove some unused code from reiserfs.
f19dbdb7 23935
52bd3de9 23936 * fs/reiserfs.c (struct grub_reiserfs_key)
23937 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
23938 (struct grub_reiserfs_node_body): Removed.
23939 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
23940 Likewise.
23941 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23942 Likewise.
23943 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23944 Likewise.
23945 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
23946 Likewise.
23947 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
23948 Likewise.
23949 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
23950 Likewise.
23951 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23952 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23953 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
23954
2f80039d 239552008-01-10 Robert Millan <rmh@aybabtu.com>
23956
23957 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
23958 Determines if a file is garbage left by packaging systems, etc.
23959 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
23960 for processing /etc/grub.d scripts.
23961 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
23962 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
23963 as a condition for processing Linux images.
23964
87888032 239652008-01-10 Pavel Roskin <proski@gnu.org>
23966
23967 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
23968 to compile reiserfs.c on PowerPC.
23969
7e54fced 239702008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 23971
23972 * kern/device.c (grub_device_iterate): Do not abort device iteration
23973 when one of the devices cannot be opened.
23974 * kern/disk.c (grub_disk_open): Do not account previous failures of
23975 unrelated functions when grub_errno is checked for.
23976
5aa541e6 239772008-01-08 Robert Millan <rmh@aybabtu.com>
23978
23979 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
23980 `! grub_linux_is_bzimage', change order of address comparison to make
23981 it more intuitive, and improve "too big zImage" error message.
23982
7076340d 239832008-01-08 Robert Millan <rmh@aybabtu.com>
23984
23985 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
23986 `$(update-grub_DATA)'.
23987 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
23988 targets.
23989
9ca70333 239902008-01-07 Robert Millan <rmh@aybabtu.com>
23991
23992 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
23993 which instruction is modified by grub-setup during installation
23994 (since it wasn't obvious by only looking at this file).
23995
38ccf575 239962008-01-07 Robert Millan <rmh@aybabtu.com>
23997
23998 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
23999 listing actual TODO items.
24000
f5db4291 240012008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24002
868967cf 24003 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
24004 correctly.
24005 (grub_reiserfs_get_key_offset): Likewise.
24006 (grub_reiserfs_set_key_offset): Likewise.
24007 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 24008 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 24009
24010 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
24011 better to remove the bitfield version completely.
f19dbdb7 24012
868967cf 240132008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 24014
f5db4291 24015 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
24016 allocated from the heap, due to the fshelp implementation.
24017 (grub_reiserfs_dir): Free NODE, due to the same reason.
24018
492e6d9d 240192008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24020
24021 Mostly from Vincent Pelletier:
f19dbdb7 24022
492e6d9d 24023 * fs/reiserfs.c: New file.
f19dbdb7 24024
492e6d9d 24025 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
24026 (reiserfs_mod_SOURCES): New variable.
24027 (reiserfs_mod_CFLAGS): Likewise.
24028 (reiserfs_mod_LDFLAGS): Likewise.
24029
24030 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
24031 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
24032 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
24033 normal/color.c.
24034
9ce3e7c1 240352008-01-06 Robert Millan <rmh@aybabtu.com>
24036
24037 * normal/color.c: Remove `<grub/env.h>'.
24038
f3b58148 240392008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
24040
24041 * include/grub/normal.h: Include <grub/env.h>.
24042
7ac3bcfa 240432008-01-05 Robert Millan <rmh@aybabtu.com>
24044
24045 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
24046 usage example with `(hd0,1)'.
fb358190 24047 Reported by Samuel Thibault.
7ac3bcfa 24048
c8ee99d7 240492008-01-05 Robert Millan <rmh@aybabtu.com>
24050
24051 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
24052 (grub_linux_boot_zimage): Rename to ...
24053 (grub_linux_boot): ... this.
24054 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
24055 (grub_linux_boot_zimage): Conditionalize zImage copy.
24056
24057 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
24058 (grub_linux_boot_bzimage): Remove prototype.
24059 (grub_linux_boot_zimage): Rename to ...
24060 (grub_linux_boot): ... this.
24061
24062 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
24063 (grub_linux_boot): Remove function.
24064
0ece25b1 240652008-01-05 Robert Millan <rmh@aybabtu.com>
24066
24067 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
24068 (grub_env_write_color_highlight): Likewise.
24069 (grub_wait_after_message): Likewise.
24070
24071 * normal/color.c: New file.
24072
24073 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24074 (normal_mod_DEPENDENCIES): Likewise.
24075
24076 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24077 (normal_mod_DEPENDENCIES): Likewise.
24078
24079 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24080 (normal_mod_DEPENDENCIES): Likewise.
24081
24082 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24083 (normal_mod_DEPENDENCIES): Likewise.
24084
24085 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
24086 for waiting after a message is printed.
24087 * normal/main.c (read_config_file): Likewise.
24088 (grub_normal_init): Register grub_env_write_color_normal() and
24089 grub_env_write_color_highlight() hooks. Mark `color_normal' and
24090 `color_highlight' variables as global.
24091
24092 * normal/menu.c (grub_wait_after_message): New function.
24093 (grub_color_menu_normal): New variable. Replaces ...
24094 (GRUB_COLOR_MENU_NORMAL): ... this macro.
24095 (grub_color_menu_highlight): New variable. Replaces ...
24096 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
24097 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
24098 `GRUB_TERM_COLOR_STANDARD'.
24099 (print_message): Use `grub_setcolorstate' to reload colors. Rename
24100 `normal_code' and `highlight_code' to `old_color_normal' and
24101 `old_color_highlight', respectively.
24102 (grub_menu_init_page): Update colors when drawing the menu, based on
24103 `menu_color_normal' and `menu_color_highlight' variables.
24104 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
24105 a message is printed.
24106
182dd4e5 241072008-01-05 Robert Millan <rmh@aybabtu.com>
24108
24109 * kern/env.c (grub_env_context_open): Propagate hooks for global
24110 variables to new context.
24111
24112 * kern/main.c (grub_set_root_dev): Export `root' variable.
24113
ddf8f6ad 241142008-01-05 Robert Millan <rmh@aybabtu.com>
24115
24116 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 24117 discs unconditionally, since udev and others have options to provide
ddf8f6ad 24118 them.
24119
d8b43d9b 241202008-01-05 Robert Millan <rmh@aybabtu.com>
24121
24122 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
24123
2bff2de3 241242008-01-04 Christian Franke <franke@computer.org>
24125
24126 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
24127 of eisa_mmap.
24128
97eab917 241292008-01-03 Pavel Roskin <proski@gnu.org>
24130
24131 * kern/i386/linuxbios/init.c: Put "void" to all function
24132 declarations with no arguments.
24133 * kern/powerpc/ieee1275/init.c: Likewise.
24134 * term/i386/pc/at_keyboard.c: Likewise.
24135 * term/i386/pc/vga_text.c: Likewise.
24136 * util/grub-mkdevicemap.c: Likewise.
24137
b9416d00 241382008-01-02 Robert Millan <rmh@aybabtu.com>
24139
24140 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
24141 message when loaded image is out of bounds.
24142 (grub_multiboot_load_elf64): Likewise.
24143
92695df9 241442008-01-02 Pavel Roskin <proski@gnu.org>
24145
24146 * util/grub.d/10_linux.in: Try version without ".old" when
24147 looking for initrd. It's better to use initrd from the newer
24148 kernel of the same version than no initrd at all.
24149
d98d9cad 241502008-01-01 Robert Millan <rmh@aybabtu.com>
24151
24152 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
24153
dbfdce36 241542008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
24155
f19dbdb7 24156 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 24157 grub_video_get_active_render_target.
24158 (grub_video_adapter): Added unmap_color and get_active_render_target.
24159
f19dbdb7 24160 * video/video.c: Added grub_video_unmap_color and
dbfdce36 24161 grub_video_get_active_render_target.
24162 (grub_video_get_info): Changed method to accept NULL pointer as an
24163 argument to allow detection of active video adapter.
24164
24165 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
24166 grub_video_vbe_unmap_color_int.
24167 Added grub_video_vbe_unmap_color and
24168 grub_video_vbe_get_active_render_target.
24169 (grub_video_vbe_adapter): Added unmap_color and
24170 get_active_render_target.
24171
f19dbdb7 24172 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 24173 with grub_video_vbe_unmap_color_int.
24174
24175 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
24176 (DEFAULT_NORMAL_COLOR): Likewise.
24177 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
24178 (DEFAULT_FG_COLOR): Removed.
24179 (DEFAULT_BG_COLOR): Likewise.
24180 (DEFAULT_CURSOR_COLOR): Changed value.
24181 (grub_virtual_screen): Added standard_color_setting,
24182 normal_color_setting, highlight_color_setting and term_color.
24183 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
24184 (bitmap_width): Added.
24185 (bitmap_height): Likewise.
24186 (bitmap): Likewise.
24187 (set_term_color): Likewise.
24188 (grub_virtual_screen_setup): Changed to use new terminal coloring
24189 settings.
24190 (grub_gfxterm_init): Added init for bitmap.
24191 (grub_gfxterm_fini): Added destroy for bitmap.
24192 (redraw_screen_rect): Updated to use background bitmap and new
24193 terminal coloring.
24194 (scroll_up): Added optimization for case when there is no bitmap.
24195 (grub_gfxterm_cls): Fixed to use correct background color.
24196 (grub_virtual_screen_setcolorstate): Changed to use new terminal
24197 coloring.
24198 (grub_virtual_screen_setcolor): Likewise.
24199 (grub_virtual_screen_getcolor): Added.
24200 (grub_gfxterm_background_image_cmd): Likewise.
24201 (grub_video_term): Added setcolor and getcolor.
24202 (MOD_INIT): Added registration of background_image command.
24203 (MOD_TERM): Added unregistration for background_image command.
24204
c3c20931 242052007-12-30 Pavel Roskin <proski@gnu.org>
24206
24207 * loader/multiboot_loader.c: Fix multiboot command
24208 unregistration. Fix all typos in the word "multiboot".
24209
df266716 242102007-12-29 Pavel Roskin <proski@gnu.org>
94239199 24211
24212 * util/grub.d/10_linux.in: Refactor search for initrd. Add
24213 support for initrd names used in Fedora.
24214
fc6e896c 242152007-12-26 Bean <bean123ch@gmail.com>
24216
24217 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
24218 (cpio_mod_SOURCES): New variable.
24219 (cpio_mod_CFLAGS): Likewise.
24220 (cpio_mod_LDFLAGS): Likewise.
24221
24222 * fs/cpio.c: New file.
24223
24224 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
24225
24226 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24227
24228 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24229
24230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24231
533110ad 242322007-12-25 Robert Millan <rmh@aybabtu.com>
24233
24234 * include/grub/term.h (struct grub_term): Add `getcolor' function.
24235 (grub_getcolor): New function.
24236
24237 * kern/term.c (grub_getcolor): New function.
24238 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
24239 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
24240 (print_entry): Set normal and highlight colors to
24241 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
24242 respectively, before printing and restore them to old
24243 values afterwards.
24244 (grub_menu_init_page): Likewise. Fill an additional colored space
24245 that would otherwise be left blank.
24246
24247 * term/efi/console.c (grub_console_getcolor): New function.
24248 (struct grub_console_term.getcolor): New variable.
24249 * term/i386/pc/console.c (grub_console_getcolor): New function.
24250 (struct grub_console_term.getcolor): New variable.
24251 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
24252 (struct grub_console_term.getcolor): New variable.
24253
24254 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
24255 (struct grub_console_term.setcolor): Remove variable.
24256 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
24257 (struct grub_console_term.setcolor): Remove variable.
24258 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
24259 (struct grub_console_term.setcolor): Remove variable.
24260 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
24261 (struct grub_console_term.setcolor): Remove variable.
24262
4931827f 242632007-12-25 Robert Millan <rmh@aybabtu.com>
24264
24265 * configure.ac: Search for possible unifont.hex locations, and
24266 define UNIFONT_HEX if found.
24267
24268 * Makefile.in (UNIFONT_HEX): Define variable.
24269 (DATA): Rename to ...
24270 (PKGLIB): ... this. Update all users.
24271 (PKGDATA): New variable.
24272 (pkgdata_IMAGES): Rename to ...
24273 (pkglib_IMAGES): ... this. Update all users.
24274 (pkgdata_MODULES): Rename to ...
24275 (pkglib_MODULES): ... this. Update all users.
24276 (pkgdata_PROGRAMS): Rename to ...
24277 (pkglib_PROGRAMS): ... this. Update all users.
24278 (pkgdata_DATA): Rename to ...
24279 (pkglib_DATA): ... this. Update all users.
24280 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
24281 (unicode.pff, ascii.pff): New rules.
24282 (all-local): Add `$(PKGDATA)' dependency.
24283 (install-local): Process `$(PKGDATA)'.
24284
24285 * util/update-grub_lib.in (font_path): Search for *.pff files in
24286 a few more locations, including `${pkgdata}'.
24287
57e57e31 242882007-12-23 Robert Millan <rmh@aybabtu.com>
24289
24290 Patch from Bean <bean123ch@gmail.com>:
24291 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
24292 `size'.
24293
4bc72aa9 242942007-12-21 Bean <bean123ch@gmail.com>
24295
24296 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
24297 (ntfscomp_mod_SOURCES): New variable.
24298 (ntfscomp_mod_CFLAGS): Likewise.
24299 (ntfscomp_mod_LDFLAGS): Likewise.
24300
24301 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
24302 (grub_probe_SOURCES): Likewise.
24303 (grub_emu_SOURCES): Likewise.
24304
24305 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
24306 (grub_emu_SOURCES): Likewise.
24307
24308 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
24309 (grub_emu_SOURCES): Likewise.
24310
24311 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
24312 (grub_emu_SOURCES): Likewise.
24313
24314 * fs/ntfs.c (grub_ntfscomp_func): New variable.
24315 (read_run_list): Renamed to grub_ntfs_read_run_list.
24316 (decomp_nextvcn): Moved to ntfscomp.c.
24317 (decomp_getch): Likewise.
24318 (decomp_get16): Likewise.
24319 (decomp_block): Likewise.
24320 (read_block): Likewise.
24321 (read_data): Partially moved to ntfscomp.c.
24322 (fixup): Change unsigned to grub_uint16_t.
24323 (read_mft): Change unsigned long to grub_uint32_t.
24324 (read_attr): Likewise.
24325 (read_data): Likewise.
24326 (read_run_data): Likewise.
24327 (read_run_list): Likewise.
24328 (read_mft): Likewise.
24329
24330 * fs/ntfscomp.c: New file.
24331
24332 * include/grub/ntfs.h: New file.
24333
af680a87 243342007-12-16 Robert Millan <rmh@aybabtu.com>
24335
24336 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
24337 IDE disk check, since Linux is known to support 20 IDE disks.
24338 Reported by Colin Watson.
24339
84be7599 243402007-12-15 Bean <bean123ch@gmail.com>
24341
24342 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
24343 (lnxboot_img_SOURCES): New variable.
24344 (lnxboot_img_ASFLAGS): Likewise.
24345 (lnxboot_img_LDFLAGS): Likewise.
24346
24347 * boot/i386/pc/lnxboot.S: New file.
24348
6af9db01 243492007-11-24 Pavel Roskin <proski@gnu.org>
24350
24351 * configure.ac: Test if '--build-id=none' is supported by the
24352 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
24353 objcopy to generate incorrect binary files (binutils
24354 2.17.50.0.18-1 as shipped by Fedora 8).
24355 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
24356 linking, so that build ID doesn't break the test.
24357
7361cfe6 243582007-11-24 Pavel Roskin <proski@gnu.org>
24359
24360 * include/grub/i386/time.h: use "void" in the argument list
24361 of grub_cpu_idle().
24362 * include/grub/powerpc/time.h: Likewise.
24363 * include/grub/sparc64/time.h: Likewise.
24364
1593e10c 243652007-11-18 Christian Franke <franke@computer.org>
24366
24367 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
24368 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
24369 This fixes the problem that function keys did not work in grub-emu.
24370
3b8db1a8 243712007-11-18 Christian Franke <franke@computer.org>
24372
24373 * disk/host.c (grub_host_open): Remove attribute unused from
24374 name parameter. Add check for "host". This fixes the problem
24375 that grub-emu does not find partitions.
24376
2e29408d 243772007-11-18 Christian Franke <franke@computer.org>
24378
24379 * util/hostfs.c (is_dir): New function.
24380 (grub_hostfs_dir): Handle missing dirent.d_type case.
24381 (grub_hostfs_read): Add missing fseek().
24382 (grub_hostfs_label): Clear label pointer. This fixes a crash
24383 of grub-emu on "ls (host)".
24384
398cd047 243852007-11-18 Christian Franke <franke@computer.org>
24386
24387 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
24388 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
24389 to 64 bit boundary by default.
24390
c405c391 243912007-11-18 Bean <bean123ch@gmail.com>
24392
24393 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
24394 (hexdump_mod_SOURCES): New variable.
24395 (hexdump_mod_CFLAGS): Likewise.
24396 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 24397
c405c391 24398 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24399
24400 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24401
24402 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24403
24404 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
24405
24406 * include/grub/hexdump.h: New file.
24407
24408 * commands/hexdump.c: New file.
24409
5cced7fd 244102007-11-10 Robert Millan <rmh@aybabtu.com>
24411
24412 * commands/i386/pc/play.c (beep_off): Switch order of arguments
24413 in grub_outb() calls.
24414 (beep_on): Likewise.
24415
8b714eb0 244162007-11-10 Christian Franke <franke@computer.org>
24417
24418 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
24419 (grub_menu_run): Likewise.
24420
ce0f1839 244212007-11-10 Robert Millan <rmh@aybabtu.com>
24422
24423 * include/grub/i386/efi/machine.h: New file.
24424 * include/grub/i386/linuxbios/machine.h: Likewise.
24425 * include/grub/i386/pc/machine.h: Likewise.
24426 * include/grub/powerpc/ieee1275/machine.h: Likewise.
24427 * include/grub/sparc64/ieee1275/machine.h: Likewise.
24428
24429 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
24430 (serial_hw_io_addr): New variable.
24431 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
24432 instead of `(unsigned short *) 0x400'.
24433
270c237d 244342007-11-10 Bean <bean123ch@gmail.com>
24435
24436 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
24437
a87783bf 244382007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
24439
24440 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
24441 (vga_mod_SOURCES): Added.
24442 (vga_mod_CFLAGS): Likewise.
24443 (vga_mod_LDFLAGS): Likewise.
24444
24445 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
24446 grub_outb() calls.
24447 (set_map_mask): Likewise.
24448 (set_read_map): Likewise.
24449 (set_read_address): Likewise.
24450 (vga_font): Removed variable.
24451 (get_vga_glyph): Removed function.
24452 (invalidate_char): Likewise.
24453 (write_char): Changed to use grub_font_get_glyph() for font
24454 information.
24455 (grub_vga_putchar): Likewise.
24456 (grub_vga_getcharwidth): Likewise.
24457
6433b448 244582007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
24459
24460 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
24461 flags.
24462 (pxeboot_img_LDFLAGS): Likewise.
24463 (diskboot_img_LDFLAGS): Likewise.
24464 (kernel_img_LDFLAGS): Likewise.
24465
49178511 244662007-11-06 Robert Millan <rmh@aybabtu.com>
24467
24468 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
24469 in grub_outb() calls.
24470 (serial_hw_init): Likewise.
24471
53b052de 244722007-11-05 Robert Millan <rmh@aybabtu.com>
24473
24474 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
24475 spaces. Skip non-regular files.
24476
5ab33bba 244772007-11-05 Robert Millan <rmh@aybabtu.com>
24478
24479 * kern/disk.c (grub_disk_firmware_fini)
24480 (grub_disk_firmware_is_tainted): New variables.
24481
24482 * include/grub/disk.h (grub_disk_firmware_fini)
24483 (grub_disk_firmware_is_tainted): Likewise.
24484
24485 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
24486 (grub_disk_biosdisk_fini): ... to here.
24487 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
24488 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
24489 is set. Register grub_disk_biosdisk_fini() in
24490 `grub_disk_firmware_fini'.
24491
24492 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
24493 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
24494 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
24495 to finish existing firmware disk interface.
24496
24497 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
24498 (ata_mod_SOURCES): New variable.
24499 (ata_mod_CFLAGS): Likewise.
24500 (ata_mod_LDFLAGS): Likewise.
24501
0149ab7c 245022007-11-05 Robert Millan <rmh@aybabtu.com>
24503
24504 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
24505 (grub_ata_wait): Reimplement using grub_millisleep().
24506
24507 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
24508 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
24509
be7ac41e 245102007-11-03 Marco Gerards <marco@gnu.org>
24511
24512 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
24513 (CRTC_ADDR_PORT): New macro.
24514 (CRTC_DATA_PORT): Likewise.
24515 (CRTC_CURSOR): Likewise.
24516 (CRTC_CURSOR_ADDR_HIGH): Likewise.
24517 (CRTC_CURSOR_ADDR_LOW): Likewise.
24518 (update_cursor): New function.
24519 (grub_console_real_putchar): Call `update_cursor'.
24520 (grub_console_gotoxy): Likewise.
24521 (grub_console_cls): Set the default color when clearing the
24522 screen.
24523 (grub_console_setcursor): Implemented.
24524
bb06ab2e 245252007-11-03 Marco Gerards <marco@gnu.org>
24526
24527 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
24528 become activate.
24529 (grub_ata_pio_write): Likewise.
24530
24531 (grub_atapi_identify): Wait after issuing an ATA command.
24532 (grub_atapi_packet): Likewise.
24533 (grub_ata_identify): Likewise.
24534 (grub_ata_readwrite): Likewise.
24535
cf8f780b 245362007-11-03 Marco Gerards <marco@gnu.org>
24537
24538 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
24539 (grub_ata_pio_write): Likewise.
24540 (grub_ata_readwrite): Use `grub_error', instead of
24541 returning `grub_errno'.
24542
ed649e54 245432007-11-03 Marco Gerards <marco@gnu.org>
24544
24545 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
24546 grub_ata_pio_write once for every single sector, instead of for
24547 multiple sectors.
24548
ca25d8f0 245492007-10-31 Robert Millan <rmh@aybabtu.com>
24550
24551 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
24552
24553 * conf/i386-linuxbios.rmk: New file.
24554
24555 * kern/i386/pc/hardware.c: Likewise.
24556 * term/i386/pc/at_keyboard.c: Likewise.
24557 * term/i386/pc/vga_text.c: Likewise.
24558
24559 * include/grub/i386/linuxbios/boot.h: Likewise.
24560 * include/grub/i386/linuxbios/console.h: Likewise.
24561 * include/grub/i386/linuxbios/init.h: Likewise.
24562 * include/grub/i386/linuxbios/kernel.h: Likewise.
24563 * include/grub/i386/linuxbios/loader.h: Likewise.
24564 * include/grub/i386/linuxbios/memory.h: Likewise.
24565 * include/grub/i386/linuxbios/serial.h: Likewise.
24566 * include/grub/i386/linuxbios/time.h: Likewise.
24567
24568 * kern/i386/linuxbios/init.c: Likewise.
24569 * kern/i386/linuxbios/startup.S: Likewise.
24570 * kern/i386/linuxbios/table.c: Likewise.
24571
e911ecc1 245722007-10-31 Marco Gerards <marco@gnu.org>
24573
24574 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
24575 (ata_mod_SOURCES): New variable.
24576 (ata_mod_CFLAGS): Likewise.
24577 (ata_mod_LDFLAGS): Likewise.
24578
24579 * disk/ata.c: New file.
24580
24581 * include/grub/disk.h (grub_disk_dev_id): Add
24582 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 24583
7f66d0e0 245842007-10-31 Robert Millan <rmh@aybabtu.com>
24585
24586 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
24587 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
24588
24589 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
24590 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
24591
24592 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
24593 `<grub/types.h>'.
24594
24595 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
24596
5cd7dd46 245972007-10-27 Robert Millan <rmh@aybabtu.com>
24598
3236ca65 24599 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 24600
2ebfc90f 246012007-10-22 Robert Millan <rmh@aybabtu.com>
24602
24603 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
24604 `"../realmode.S"'.
24605 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
24606
73fcb0f3 246072007-10-22 Robert Millan <rmh@aybabtu.com>
24608
24609 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
24610 (pkgdata_MODULES): Add `biosdisk.mod'.
24611 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
24612 variables.
24613
24614 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
24615 (grub_biosdisk_init): Replace with ...
24616 (GRUB_MOD_INIT(biosdisk)): ... this.
24617 (grub_biosdisk_fini): Replace with ...
24618 (GRUB_MOD_FINI(biosdisk)): ... this.
24619
24620 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
24621 (grub_machine_init): Remove call to grub_biosdisk_init().
24622 (grub_machine_fini): Remove call to grub_machine_fini().
24623
24624 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
24625
3381d274 246262007-10-22 Robert Millan <rmh@aybabtu.com>
24627
24628 * include/grub/time.h: New file.
24629 * include/grub/i386/time.h: Likewise.
24630 * include/grub/powerpc/time.h: Likewise.
24631 * include/grub/sparc64/time.h: Likewise.
24632
24633 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
24634 instances to ...
24635 (KERNEL_MACHINE_TIME_HEADER): ... this.
24636 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
24637 instances to ...
24638 (KERNEL_MACHINE_TIME_HEADER): ... this.
24639 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
24640 instances to ...
24641 (KERNEL_MACHINE_TIME_HEADER): ... this.
24642
24643 * kern/i386/efi/init.c: Include `<grub/time.h>'.
24644 (grub_millisleep): New function.
24645 * kern/i386/pc/init.c: Include `<grub/time.h>'.
24646 (grub_millisleep): New function.
24647 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
24648 Remove `grub/machine/time.h' include.
24649 (grub_millisleep): New function.
24650 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
24651 Remove `grub/machine/time.h' include.
24652 (grub_millisleep): New function.
24653
24654 * include/grub/misc.h (grub_div_roundup): New function.
24655
24656 * kern/misc.c: Include `<grub/time.h>'.
24657 (grub_millisleep_generic): New function.
24658
24659 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
24660 Add `time.h'.
24661 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
24662 Add `time.h'.
24663 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
24664 `machine/time.h'. Add `time.h'.
24665 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
24666
a39a0312 246672007-10-21 Robert Millan <rmh@aybabtu.com>
24668
24669 * include/grub/misc.h (grub_max): New function.
24670
2aad70e2 246712007-10-21 Robert Millan <rmh@aybabtu.com>
24672
24673 * util/misc.c (grub_util_info): Call fflush() before returning.
24674
54b71c4b 246752007-10-20 Robert Millan <rmh@aybabtu.com>
24676
24677 * genmk.rb (Image): Copy `extra_flags' from here ...
24678 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
24679
24680 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
24681 to `argc' and `args' arguments.
24682
a979f513 246832007-10-17 Robert Millan <rmh@aybabtu.com>
24684
24685 * kern/i386/loader.S: New file.
24686
24687 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
24688 * kern/i386/loader.S (grub_linux_prot_size)... to here.
24689 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
24690 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
24691 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
24692 * kern/i386/loader.S (grub_linux_real_addr)... to here.
24693 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
24694 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
24695 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
24696 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
24697 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
24698 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
24699 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
24700 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
24701
24702 * kern/i386/realmode.S: New file.
24703
24704 * kern/i386/pc/startup.S (protstack): Moved from here ...
24705 * kern/i386/realmode.S (protstack)... to here.
24706 * kern/i386/pc/startup.S (gdt): Moved from here ...
24707 * kern/i386/realmode.S (gdt)... to here.
24708 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
24709 * kern/i386/realmode.S (prot_to_real)... to here.
24710
24711 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
24712 `kern/i386/realmode.S'.
24713
825fc8fd 247142007-10-17 Robert Millan <rmh@aybabtu.com>
24715
24716 * include/grub/i386/loader.h: New file.
24717
24718 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
24719 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
24720 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
24721 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
24722 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
24723 * include/grub/i386/loader.h (grub_linux_prot_size)
24724 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
24725 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
24726 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
24727 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
24728
24729 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
24730
e179b2f4 247312007-10-15 Robert Millan <rmh@aybabtu.com>
24732
24733 * normal/misc.c (grub_normal_print_device_info): Do not probe for
24734 filesystem when dev->disk is unset.
24735 Do probe for filesystem even when dev->disk->has_partitions is set.
24736 In case a filesystem is found, always report it.
24737 In case it isn't, if dev->disk->has_partitions is set, report that
24738 a partition table was found instead of reporting that no filesystem
24739 could be identified.
24740
5db82af6 247412007-10-12 Robert Millan <rmh@aybabtu.com>
24742
24743 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
24744 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
24745
68f6ac74 24746 * include/grub/types.h (grub_host_to_target16): New macro.
24747 (grub_host_to_target32): Likewise.
24748 (grub_host_to_target64): Likewise.
24749 (grub_target_to_host16): Likewise.
24750 (grub_target_to_host32): Likewise.
24751 (grub_target_to_host64): Likewise.
5db82af6 24752
24753 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
24754 Renamed from to ...
24755 (GRUB_MOD_ALIGN): ...this. Update all users.
24756
68f6ac74 24757 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
24758 grub_host_to_target32.
24759 Replace grub_be_to_cpu32 with grub_target_to_host32.
24760 (load_modules): Likewise.
24761 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
24762 Replace grub_be_to_cpu32 with grub_target_to_host32.
24763 Replace grub_cpu_to_be16 with grub_host_to_target16.
24764 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 24765
3cf497cc 247662007-10-12 Robert Millan <rmh@aybabtu.com>
24767
24768 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
24769 * util/elf/grub-mkimage.c: ... here.
24770
24771 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
24772 `util/powerpc/ieee1275/grub-mkimage.c'.
24773
c8cc3692 247742007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 24775
c8cc3692 24776 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
24777 and make it easier to figure out.
24778 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
24779 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
24780 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
24781 leave us with less than HEAP_MIN_SIZE total heap.
24782 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 24783
5c58b791 247842007-10-03 Robert Millan <rmh@aybabtu.com>
24785
24786 * include/grub/i386/io.h: New file.
24787 * commands/i386/pc/play.c (inb): Removed.
24788 (outb): Removed.
24789 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24790 with grub_outb().
afcd2ef8 24791 * term/i386/pc/serial.c (inb): Removed.
24792 (outb): Removed.
24793 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24794 with grub_outb().
24795 * term/i386/pc/vga.c (inb): Removed.
24796 (outb): Removed.
24797 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
24798 with grub_outb().
5c58b791 24799
1a477ed6 248002007-10-02 Robert Millan <rmh@aybabtu.com>
24801
24802 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
24803 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24804 Reported by Marcin Kurek.
24805
6b5d80fa 248062007-09-07 Robert Millan <rmh@aybabtu.com>
24807
24808 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
24809 SmartFirmware version updates (as released by Sven Luther), and avoid
24810 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
24811 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
24812 known broken.
24813
5618afbf 248142007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24815
24816 From Hitoshi Ozeki:
24817 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
24818 when merging two regions.
24819
6139dcd9 248202007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24821
508e39ee 24822 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
24823 * normal/completion.c (grub_normal_do_completion): Likewise.
24824 Reported by Hitoshi Ozeki.
24825
248262007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 24827
6139dcd9 24828 Do not use devices at boot in chainloading.
f19dbdb7 24829
6139dcd9 24830 * loader/i386/pc/chainloader.c (boot_drive): New variable.
24831 (boot_part_addr): Likewise.
24832 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
24833 with BOOT_DRIVE and BOOT_PART_ADDR.
24834 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
24835 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
24836
38da6516 248372007-08-29 Robert Millan <rmh@aybabtu.com>
24838
24839 Patch from Simon Peter <dn.tlp@gmx.net>:
24840 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
24841 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
24842 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
24843 util/i386/pc/grub-setup.c_DEPENDENCIES.
24844 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
24845 util/grub-probe.c_DEPENDENCIES.
24846 * conf/powerpc-ieee1275.rmk: Likewise.
24847
29d0928c 248482007-08-28 Robert Millan <rmh@aybabtu.com>
24849
24850 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
24851 to tell grub-mkdevicemap how to name devices.
24852 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
24853 feature).
24854
24855 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
24856 util/i386/get_disk_name.c.
24857 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
24858 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
24859 util/ieee1275/get_disk_name.c.
24860
24861 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
24862
24863 * DISTLIST: Add util/i386/get_disk_name.c and
24864 util/ieee1275/get_disk_name.c.
24865
24866 * util/grub-mkdevicemap.c: Replace device naming logic with
24867 grub_util_get_disk_name() calls.
24868
5a0d3cca 248692007-08-20 Robert Millan <rmh@aybabtu.com>
24870
24871 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
24872 (so that it works for both plural and singular quantities).
24873
8b72db2f 248742007-08-05 Robert Millan <rmh@aybabtu.com>
24875
24876 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
24877 so that [xz] isn't taken into account when determining order.
24878
352466bf 248792007-08-02 Marco Gerards <marco@gnu.org>
24880
24881 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
24882 `include/multiboot2.h', `include/grub/elfload.h',
24883 `include/multiboot.h', `include/grub/multiboot.h',
24884 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
24885 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
24886 `kern/elf.c', `loader/multiboot_loader.c',
24887 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
24888 `loader/i386/pc/multiboot2.c',
24889 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
24890 `util/i386/pc/grub-mkrescue.in'. Remove
24891 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
24892 `include/grub/i386/pc/util/biosdisk.h' and
24893 `include/grub/powerpc/ieee1275/multiboot.h'.
24894
8f096014 248952007-08-02 Bean <bean123ch@gmail.com>
24896
24897 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
24898 (ntfs_mod_SOURCES): New variable.
24899 (ntfs_mod_CFLAGS): Likewise.
24900 (ntfs_mod_LDFLAGS): Likewise.
24901
24902 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
24903 (grub_probe_SOURCES): Likewise.
24904 (grub_emu_SOURCES): Likewise.
24905
24906 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
24907 (grub_emu_SOURCES): Likewise.
24908
24909 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
24910 (grub_emu_SOURCES): Likewise.
f19dbdb7 24911
8f096014 24912 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
24913
24914 * fs/ntfs.c: New file.
24915
9959f7db 249162007-08-02 Bean <bean123ch@gmail.com>
24917
24918 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
24919
24920 * file.h (grub_file): Likewise.
24921
24922 * fshelp.h (grub_fshelp_read_file): Likewise.
24923
24924 * util/i386/pc/grub-setup.c (setup): Likewise.
24925 (save_first_sector): Likewise.
24926 (save_blocklists): Likewise.
f19dbdb7 24927
9959f7db 24928 * fs/affs.c (grub_affs_read_file): Likewise.
24929
24930 * fs/ext2.c (grub_ext2_read_file): Likewise.
24931
24932 * fs/fat.c (grub_fat_read_data): Likewise.
24933
24934 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
24935
24936 * fs/hfs.c (grub_hfs_read_file): Likewise.
24937
24938 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
24939
24940 * fs/jfs.c (grub_jfs_read_file): Likewise.
24941
24942 * fs/minix.c (grub_minix_read_file): Likewise.
24943
24944 * fs/sfs.c (grub_sfs_read_file): Likewise.
24945
24946 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 24947
9959f7db 24948 * fs/xfs.c (grub_xfs_read_file): Likewise.
24949
24950 * command/blocklist.c (read_blocklist): Likewise.
24951 (print_blocklist): Likewise.
24952
0a203f83 249532007-08-02 Marco Gerards <marco@gnu.org>
24954
24955 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
24956 `util/hostfs.c'.
24957
24958 * disk/host.c: New file.
24959
24960 * util/hostfs.c: Likewise.
24961
24962 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
24963 return `GRUB_ERR_BAD_FS'.
24964 * fs/sfs.c (grub_sfs_mount): Likewise.
24965 * fs/xfs.c (grub_xfs_mount): Likewise.
24966
24967 * include/grub/disk.h (enum grub_disk_dev_id): Add
24968 `GRUB_DISK_DEVICE_HOST_ID'.
24969
24970 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
24971
e5dfe777 249722007-07-24 Jerone Young <jerone@gmail.com>
24973
f19dbdb7 24974 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 24975 modules for compilation.
24976 * conf/powerpc-ieee1275.rmk: Likewise.
24977
24978 * include/multiboot.h: Move multiboot definitions to one file. Rename
24979 many definitions to not get grub specific.
24980 * include/multiboot2.h: Create header with multiboot 2 definitions.
24981 * include/grub/multiboot.h: Header for grub specific function
24982 prototypes and definitions.
24983 * include/grub/multiboot2.h: Likewise.
24984 * include/grub/multiboot_loader.h: Likewise.
24985 * include/grub/i386/pc/multiboot.h: Removed.
24986 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
24987
24988 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
24989 and 2 to allow for one multiboot and module commands.
24990 * loader/multiboot2.c: Add multiboot2 functionality.
24991 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
24992 and definition names.
24993 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
24994 2 functions.
24995 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
24996 ieee1275 specific multiboot2 code.
24997
24998 * kern/i386/pc/startup.S: Change headers and definition names for
24999 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
25000
daf0f0ba 250012007-07-22 Robert Millan <rmh@aybabtu.com>
25002
25003 * geninitheader.sh: Process file specified in first parameter rather
25004 than hardcoding grub_modules_init.lst.
fe6b695a 25005 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 25006 than hardcoding grub_modules_init.h.
25007
25008 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
25009 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
25010 grub_probe_init.[ch] and grub_setup_init.[ch].
25011
25012 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
25013 grub_modules_init.h with grub_emu_init.h.
25014 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
25015 grub_probe_init.[ch] files.
25016 * conf/i386-efi.rmk: Likewise.
25017 * conf/i386-pc.rmk: Likewise.
25018 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
25019 grub_setup_init.[ch] files.
25020
25021 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
25022 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
25023 to initialize modules rather than a list of hardcoded functions.
25024 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
25025 grub_init_all() to initialize modules rather than a list of hardcoded
25026 functions.
25027
54cdc1cc 250282007-07-22 Robert Millan <rmh@aybabtu.com>
25029
25030 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25031 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
25032
ad0686cc 250332007-07-22 Robert Millan <rmh@aybabtu.com>
25034
25035 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
25036 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
25037 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
25038 flag when running on SmartFirmware.
25039 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
25040 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
25041 was set.
25042
25043 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
25044 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
25045 rather than decreasing it.
25046
25047 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
25048 there's not enough space to do it, fail in the same way as when it
25049 can't be done because there are no partitions.
25050
25051 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
25052 when nvsetenv failed.
25053
969c02ec 250542007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
25055
25056 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
25057 because this rule is automatically generated.
25058 (grub-mkrescue): Removed for the same reason as above.
25059
5a79f472 250602007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
25061
25062 Migrate to GNU General Public License Version 3.
f19dbdb7 25063
5a79f472 25064 * COPYING: Replaced with the plain text version of GPLv3.
25065
25066 * config.guess: Updated from gnulib.
25067 * config.sub: Likewise.
25068
25069 * geninit.sh: Output a GPLv3 copyright notice.
25070 * geninitheader.sh: Likewise.
25071 * genmodsrc.sh: Likewise.
25072 * gensymlist.sh.in: Likewise.
25073
25074 * boot/i386/pc/boot.S: Upgraded to GPLv3.
25075 * boot/i386/pc/diskboot.S: Likewise.
25076 * boot/i386/pc/pxeboot.S: Likewise.
25077 * commands/blocklist.c: Likewise.
25078 * commands/boot.c: Likewise.
25079 * commands/cat.c: Likewise.
25080 * commands/cmp.c: Likewise.
25081 * commands/configfile.c: Likewise.
25082 * commands/echo.c: Likewise.
25083 * commands/help.c: Likewise.
25084 * commands/ls.c: Likewise.
25085 * commands/search.c: Likewise.
25086 * commands/terminal.c: Likewise.
25087 * commands/test.c: Likewise.
25088 * commands/videotest.c: Likewise.
25089 * commands/i386/cpuid.c: Likewise.
25090 * commands/i386/pc/halt.c: Likewise.
25091 * commands/i386/pc/play.c: Likewise.
25092 * commands/i386/pc/reboot.c: Likewise.
25093 * commands/i386/pc/vbeinfo.c: Likewise.
25094 * commands/i386/pc/vbetest.c: Likewise.
25095 * commands/ieee1275/halt.c: Likewise.
25096 * commands/ieee1275/reboot.c: Likewise.
25097 * commands/ieee1275/suspend.c: Likewise.
25098 * disk/loopback.c: Likewise.
25099 * disk/lvm.c: Likewise.
25100 * disk/raid.c: Likewise.
25101 * disk/efi/efidisk.c: Likewise.
25102 * disk/i386/pc/biosdisk.c: Likewise.
25103 * disk/ieee1275/ofdisk.c: Likewise.
25104 * font/manager.c: Likewise.
25105 * fs/affs.c: Likewise.
25106 * fs/ext2.c: Likewise.
25107 * fs/fat.c: Likewise.
25108 * fs/fshelp.c: Likewise.
25109 * fs/hfs.c: Likewise.
25110 * fs/hfsplus.c: Likewise.
25111 * fs/iso9660.c: Likewise.
25112 * fs/jfs.c: Likewise.
25113 * fs/minix.c: Likewise.
25114 * fs/sfs.c: Likewise.
25115 * fs/ufs.c: Likewise.
25116 * fs/xfs.c: Likewise.
25117 * hello/hello.c: Likewise.
25118 * include/grub/acorn_filecore.h: Likewise.
25119 * include/grub/arg.h: Likewise.
25120 * include/grub/bitmap.h: Likewise.
25121 * include/grub/boot.h: Likewise.
25122 * include/grub/cache.h: Likewise.
25123 * include/grub/device.h: Likewise.
25124 * include/grub/disk.h: Likewise.
25125 * include/grub/dl.h: Likewise.
25126 * include/grub/elfload.h: Likewise.
25127 * include/grub/env.h: Likewise.
25128 * include/grub/err.h: Likewise.
25129 * include/grub/file.h: Likewise.
25130 * include/grub/font.h: Likewise.
25131 * include/grub/fs.h: Likewise.
25132 * include/grub/fshelp.h: Likewise.
25133 * include/grub/gzio.h: Likewise.
25134 * include/grub/hfs.h: Likewise.
25135 * include/grub/kernel.h: Likewise.
25136 * include/grub/loader.h: Likewise.
25137 * include/grub/lvm.h: Likewise.
25138 * include/grub/misc.h: Likewise.
25139 * include/grub/mm.h: Likewise.
25140 * include/grub/net.h: Likewise.
25141 * include/grub/normal.h: Likewise.
25142 * include/grub/parser.h: Likewise.
25143 * include/grub/partition.h: Likewise.
25144 * include/grub/pc_partition.h: Likewise.
25145 * include/grub/raid.h: Likewise.
25146 * include/grub/rescue.h: Likewise.
25147 * include/grub/script.h: Likewise.
25148 * include/grub/setjmp.h: Likewise.
25149 * include/grub/symbol.h: Likewise.
25150 * include/grub/term.h: Likewise.
25151 * include/grub/terminfo.h: Likewise.
25152 * include/grub/tparm.h: Likewise.
25153 * include/grub/types.h: Likewise.
25154 * include/grub/video.h: Likewise.
25155 * include/grub/efi/api.h: Likewise.
25156 * include/grub/efi/chainloader.h: Likewise.
25157 * include/grub/efi/console.h: Likewise.
25158 * include/grub/efi/console_control.h: Likewise.
25159 * include/grub/efi/disk.h: Likewise.
25160 * include/grub/efi/efi.h: Likewise.
25161 * include/grub/efi/pe32.h: Likewise.
25162 * include/grub/efi/time.h: Likewise.
25163 * include/grub/i386/linux.h: Likewise.
25164 * include/grub/i386/setjmp.h: Likewise.
25165 * include/grub/i386/types.h: Likewise.
25166 * include/grub/i386/efi/kernel.h: Likewise.
25167 * include/grub/i386/efi/loader.h: Likewise.
25168 * include/grub/i386/efi/time.h: Likewise.
25169 * include/grub/i386/pc/biosdisk.h: Likewise.
25170 * include/grub/i386/pc/boot.h: Likewise.
25171 * include/grub/i386/pc/chainloader.h: Likewise.
25172 * include/grub/i386/pc/console.h: Likewise.
25173 * include/grub/i386/pc/init.h: Likewise.
25174 * include/grub/i386/pc/kernel.h: Likewise.
25175 * include/grub/i386/pc/loader.h: Likewise.
25176 * include/grub/i386/pc/memory.h: Likewise.
25177 * include/grub/i386/pc/multiboot.h: Likewise.
25178 * include/grub/i386/pc/serial.h: Likewise.
25179 * include/grub/i386/pc/time.h: Likewise.
25180 * include/grub/i386/pc/vbe.h: Likewise.
25181 * include/grub/i386/pc/vbeblit.h: Likewise.
25182 * include/grub/i386/pc/vbefill.h: Likewise.
25183 * include/grub/i386/pc/vbeutil.h: Likewise.
25184 * include/grub/i386/pc/vga.h: Likewise.
25185 * include/grub/ieee1275/ieee1275.h: Likewise.
25186 * include/grub/ieee1275/ofdisk.h: Likewise.
25187 * include/grub/powerpc/libgcc.h: Likewise.
25188 * include/grub/powerpc/setjmp.h: Likewise.
25189 * include/grub/powerpc/types.h: Likewise.
25190 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
25191 * include/grub/powerpc/ieee1275/console.h: Likewise.
25192 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
25193 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25194 * include/grub/powerpc/ieee1275/loader.h: Likewise.
25195 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
25196 * include/grub/powerpc/ieee1275/time.h: Likewise.
25197 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
25198 * include/grub/sparc64/libgcc.h: Likewise.
25199 * include/grub/sparc64/setjmp.h: Likewise.
25200 * include/grub/sparc64/types.h: Likewise.
25201 * include/grub/sparc64/ieee1275/console.h: Likewise.
25202 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25203 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25204 * include/grub/sparc64/ieee1275/time.h: Likewise.
25205 * include/grub/util/biosdisk.h: Likewise.
25206 * include/grub/util/getroot.h: Likewise.
25207 * include/grub/util/lvm.h: Likewise.
25208 * include/grub/util/misc.h: Likewise.
25209 * include/grub/util/raid.h: Likewise.
25210 * include/grub/util/resolve.h: Likewise.
25211 * io/gzio.c: Likewise.
25212 * kern/device.c: Likewise.
25213 * kern/disk.c: Likewise.
25214 * kern/dl.c: Likewise.
25215 * kern/elf.c: Likewise.
25216 * kern/env.c: Likewise.
25217 * kern/err.c: Likewise.
25218 * kern/file.c: Likewise.
25219 * kern/fs.c: Likewise.
25220 * kern/loader.c: Likewise.
25221 * kern/main.c: Likewise.
25222 * kern/misc.c: Likewise.
25223 * kern/mm.c: Likewise.
25224 * kern/parser.c: Likewise.
25225 * kern/partition.c: Likewise.
25226 * kern/rescue.c: Likewise.
25227 * kern/term.c: Likewise.
25228 * kern/efi/efi.c: Likewise.
25229 * kern/efi/init.c: Likewise.
25230 * kern/efi/mm.c: Likewise.
25231 * kern/i386/dl.c: Likewise.
25232 * kern/i386/efi/init.c: Likewise.
25233 * kern/i386/efi/startup.S: Likewise.
25234 * kern/i386/pc/init.c: Likewise.
25235 * kern/i386/pc/lzo1x.S: Likewise.
25236 * kern/i386/pc/startup.S: Likewise.
25237 * kern/ieee1275/ieee1275.c: Likewise.
25238 * kern/powerpc/cache.S: Likewise.
25239 * kern/powerpc/dl.c: Likewise.
25240 * kern/powerpc/ieee1275/cmain.c: Likewise.
25241 * kern/powerpc/ieee1275/crt0.S: Likewise.
25242 * kern/powerpc/ieee1275/init.c: Likewise.
25243 * kern/powerpc/ieee1275/openfw.c: Likewise.
25244 * kern/sparc64/cache.S: Likewise.
25245 * kern/sparc64/dl.c: Likewise.
25246 * kern/sparc64/ieee1275/init.c: Likewise.
25247 * kern/sparc64/ieee1275/openfw.c: Likewise.
25248 * loader/efi/chainloader.c: Likewise.
25249 * loader/efi/chainloader_normal.c: Likewise.
25250 * loader/i386/efi/linux.c: Likewise.
25251 * loader/i386/efi/linux_normal.c: Likewise.
25252 * loader/i386/pc/chainloader.c: Likewise.
25253 * loader/i386/pc/chainloader_normal.c: Likewise.
25254 * loader/i386/pc/linux.c: Likewise.
25255 * loader/i386/pc/linux_normal.c: Likewise.
25256 * loader/i386/pc/multiboot.c: Likewise.
25257 * loader/i386/pc/multiboot_normal.c: Likewise.
25258 * loader/powerpc/ieee1275/linux.c: Likewise.
25259 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
25260 * normal/arg.c: Likewise.
25261 * normal/cmdline.c: Likewise.
25262 * normal/command.c: Likewise.
25263 * normal/completion.c: Likewise.
25264 * normal/execute.c: Likewise.
25265 * normal/function.c: Likewise.
25266 * normal/lexer.c: Likewise.
25267 * normal/main.c: Likewise.
25268 * normal/menu.c: Likewise.
25269 * normal/menu_entry.c: Likewise.
25270 * normal/misc.c: Likewise.
25271 * normal/parser.y: Likewise.
25272 * normal/script.c: Likewise.
25273 * normal/i386/setjmp.S: Likewise.
25274 * normal/powerpc/setjmp.S: Likewise.
25275 * normal/sparc64/setjmp.S: Likewise.
25276 * partmap/acorn.c: Likewise.
25277 * partmap/amiga.c: Likewise.
25278 * partmap/apple.c: Likewise.
25279 * partmap/gpt.c: Likewise.
25280 * partmap/pc.c: Likewise.
25281 * partmap/sun.c: Likewise.
25282 * term/gfxterm.c: Likewise.
25283 * term/terminfo.c: Likewise.
25284 * term/efi/console.c: Likewise.
25285 * term/i386/pc/console.c: Likewise.
25286 * term/i386/pc/serial.c: Likewise.
25287 * term/i386/pc/vesafb.c: Likewise.
25288 * term/i386/pc/vga.c: Likewise.
25289 * term/ieee1275/ofconsole.c: Likewise.
25290 * util/biosdisk.c: Likewise.
25291 * util/console.c: Likewise.
25292 * util/genmoddep.c: Likewise.
25293 * util/getroot.c: Likewise.
25294 * util/grub-emu.c: Likewise.
25295 * util/grub-mkdevicemap.c: Likewise.
25296 * util/grub-probe.c: Likewise.
25297 * util/lvm.c: Likewise.
25298 * util/misc.c: Likewise.
25299 * util/raid.c: Likewise.
25300 * util/resolve.c: Likewise.
25301 * util/update-grub.in: Likewise.
25302 * util/update-grub_lib.in: Likewise.
25303 * util/grub.d/00_header.in: Likewise.
25304 * util/grub.d/10_hurd.in: Likewise.
25305 * util/grub.d/10_linux.in: Likewise.
25306 * util/i386/efi/grub-install.in: Likewise.
25307 * util/i386/efi/grub-mkimage.c: Likewise.
25308 * util/i386/pc/grub-install.in: Likewise.
25309 * util/i386/pc/grub-mkimage.c: Likewise.
25310 * util/i386/pc/grub-mkrescue.in: Likewise.
25311 * util/i386/pc/grub-setup.c: Likewise.
25312 * util/i386/pc/misc.c: Likewise.
25313 * util/powerpc/ieee1275/grub-install.in: Likewise.
25314 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
25315 * util/powerpc/ieee1275/misc.c: Likewise.
25316 * video/bitmap.c: Likewise.
25317 * video/video.c: Likewise.
25318 * video/i386/pc/vbe.c: Likewise.
25319 * video/i386/pc/vbeblit.c: Likewise.
25320 * video/i386/pc/vbefill.c: Likewise.
25321 * video/i386/pc/vbeutil.c: Likewise.
25322 * video/readers/tga.c: Likewise.
25323
3572d015 253242007-07-02 Robert Millan <rmh@aybabtu.com>
25325
25326 * conf/i386-efi.rmk: Replace obsolete reference to
25327 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
25328 with util/getroot.c.
25329 * conf/powerpc-ieee1275.rmk: Likewise.
25330 * conf/sparc64-ieee1275.rmk: Likewise.
25331
25332 * util/grub-emu.c (main): Fix unchecked pointer handling.
25333
2c2a681b 253342007-07-02 Robert Millan <rmh@aybabtu.com>
25335
25336 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
25337 invocation to fail, in order to support partition-less media.
25338
25339 * util/i386/pc/grub-install.in: Likewise.
25340
25341 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
25342 which fs or partmap modules are needed (akin to its sister scripts).
25343
25344 Also use grub-probe to get rid of unportable /proc/mounts check.
25345
25346 Print the same informational message that the other scripts do, before
fe6b695a 25347 exiting.
2c2a681b 25348
6193defe 253492007-06-23 Robert Millan <rmh@aybabtu.com>
25350
fe6b695a 25351 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 25352 a font file can be found and, if so, echo the GRUB path to it.
25353
25354 * util/update-grub.in: Handle multiple terminals depending on user
25355 input, platform availability and font file presence. Propagate
25356 variables of our findings to /etc/grub.d/ children.
25357
25358 * util/grub.d/00_header.in: Handle multiple terminals, based on
25359 environment setup by update-grub.
25360
eface1dc 253612007-06-23 Robert Millan <rmh@aybabtu.com>
25362
ba50d28f 25363 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 25364
bf697e28 253652007-06-21 Robert Millan <rmh@aybabtu.com>
25366
25367 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
25368 indicate end of data section in kernel image.
25369 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
25370 GRUB_KERNEL_MACHINE_DATA_END.
25371
25372 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
25373 space for it.
25374 * kern/i386/efi/startup.S: Likewise.
25375
25376 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
25377 during image generation. Implement --prefix option to override this
25378 patch.
25379 * util/i386/efi/grub-mkimage.c: Likewise.
25380
25381 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
25382 code to make path relative to its root into a separate function.
25383
25384 * util/i386/pc/grub-install.in: Use newly provided
25385 make_system_path_relative_to_its_root() to convert ${grubdir}, then
25386 pass the result to grub-install --prefix.
25387
baa574b4 253882007-06-13 Robert Millan <rmh@aybabtu.com>
25389
25390 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
25391 DEFAULT_DEVICE_MAP.
25392 * util/grub-emu.c: Use above definitions from misc.h instead of
25393 defining them.
25394 * util/grub-mkdevicemap.c: Likewise.
25395 * util/i386/pc/grub-setup.c: Likewise.
25396 * util/grub-probe.c: Likewise.
25397 (probe): Abort with grub_util_error() when either
25398 grub_guess_root_device or grub_util_get_grub_dev fails.
25399
0215dcbf 254002007-06-12 Robert Millan <rmh@aybabtu.com>
25401
25402 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
25403 "pager" assignment.
25404 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
25405 "pcdata".
25406 * util/grub-probe.c (probe): Likewise for "drive_name".
25407
8af2ab7b 254082007-06-11 Robert Millan <rmh@aybabtu.com>
25409
25410 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
25411 not just the cdrom one.
25412
59d31694 254132007-06-11 Robert Millan <rmh@aybabtu.com>
25414
25415 * util/i386/pc/grub-mkrescue.in: Add "set -e".
25416 Add --pkglibdir=DIR option to override pkglibdir.
25417 Mention --image-type=TYPE in help output.
25418 Fix --grub-mkimage (it was a no-op).
fe6b695a 25419 Abort gracefully when no parameter is given.
59d31694 25420
7ee367e4 254212007-06-11 Robert Millan <rmh@aybabtu.com>
25422
25423 * util/i386/pc/grub-mkrescue.in: New file.
25424 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
25425 * Makefile.in: Handle bin_SCRIPTS.
25426
29b0ed46 254272007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
25428
25429 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
25430 list of video modes.
25431
c0f90770 254322007-06-06 Robert Millan <rmh@aybabtu.com>
25433
25434 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
25435 file doesn't exist, or if it is in a filesystem grub can't read.
25436
25437 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
25438 not abort if GRUB_DRIVE could not be defined. Rearrange generated
25439 header comment to fit in 80 columns when the variables are resolved.
25440
25441 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
25442 could be identified by update-grub. Remove redundant check for
fe6b695a 25443 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 25444 handles that).
25445
fb36dc26 254462007-06-04 Robert Millan <rmh@aybabtu.com>
25447
25448 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
25449
25450 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
25451
25452 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
25453
0c68c93e 254542007-06-04 Robert Millan <rmh@aybabtu.com>
25455
25456 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
25457
25458 * include/grub/partition.h: Declare grub_apple_partition_map_init and
25459 grub_apple_partition_map_fini.
25460
25461 * util/biosdisk.c
25462 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
25463 to access >2 TiB disks).
25464
25465 Print disk->total_sectors with %llu instead of %lu, since this
25466 variable is always 64-bit (prevents wrong disk size from being displayed
25467 on either >2 TiB disk or big-endian CPU).
25468
25469 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
25470 into a generic case that supports all (sane) partition maps.
25471
25472 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
25473 breaks big-endian.
25474
25475 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
25476 and grub_apple_partition_map_fini() after that.
25477
0f23eb74 254782007-06-01 Robert Millan <rmh@aybabtu.com>
25479
25480 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
25481
25482 * util/grub.d/00_header.in: Only enable gfxterm when
25483 convert_system_path_to_grub_path() succeeds.
25484
42c71976 254852007-05-20 Robert Millan <rmh@aybabtu.com>
25486
25487 * util/update-grub_lib.in: New file.
25488 * DISTLIST: Add update-grub_lib.in.
25489 * conf/common.rmk: Generate update-grub_lib and install it in
25490 $(lib_DATA).
25491 * Makefile.in: Add install routine for $(lib_DATA).
25492
25493 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
25494 function provided by update-grub_lib to support arbitrary paths of
25495 unifont.pff.
25496 * util/update-grub.in: Use convert_system_path_to_grub_path() to
25497 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
25498
5beb2291 254992007-05-19 Robert Millan <rmh@aybabtu.com>
25500
25501 * commands/i386/cpuid.c: New module.
25502 * DISTLIST: Add it.
25503 * conf/i386-efi.rmk: Enable cpuid.mod.
25504 * conf/i386-pc.rmk: Likewise.
25505
7262eca1 255062007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
25507
25508 * kern/disk.c (grub_disk_read): Check return value of
25509 grub_realloc().
25510
260ba823 255112007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
25512
25513 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
25514 arrays.
25515 * disk/raid.c (grub_raid_open): Likewise.
25516
1ecb6cf2 255172007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
25518
25519 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
25520 stack instead of on the heap.
25521
25522 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
25523 before doing a read on it.
25524
25525 * configure.ac: Only use -fno-stack-protector for the target
25526 environment.
f19dbdb7 25527
21c8cbb1 255282007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
25529
25530 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
25531 __attribute_ ((unused)) to mode_type argument.
25532
25533 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 25534
21c8cbb1 25535 * kern/misc.c (memcmp): Fix prototype.
25536
25537 * include/grub/partition.h [GRUB_UTIL]
25538 (grub_gpt_partition_map_init): Add prototype.
25539 (grub_gpt_partition_map_fini): Likewise.
25540
25541 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
25542 at the right place.
25543
25544 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
25545 (grub_fat_read_data): Likewise.
25546 (grub_fat_find_dir): Likewise.
25547
25548 * font/manager.c (find_glyph): Make table a const.
25549 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 25550
849d55d3 255512007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
25552
25553 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
25554 code, first search for device in /dev/mapper, then in /dev.
25555 (grub_util_get_grub_dev): New function.
25556 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
25557 prototype.
25558 * util/grub-probe.c (probe): Remove check for RAID, call
25559 grub_util_get_grub_dev() instead of
25560 grub_util_biosdisk_get_grub_dev().
25561 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
25562 grub_util_biosdisk_get_grub_dev().
25563 * util/i386/pc/grub-setup.c (main): Likewise.
25564
8fff7c2f 255652007-05-16 Robert Millan <rmh@aybabtu.com>
25566
25567 * DISTLIST: Update for the latest changes.
25568 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
25569 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
25570 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
25571 grub/util/biosdisk.h.
25572 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
25573 grub/util/biosdisk.h.
25574
48e12b52 255752007-05-16 Robert Millan <rmh@aybabtu.com>
25576
25577 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
25578
46b9d128 255792007-05-16 Robert Millan <rmh@aybabtu.com>
25580
25581 * util/i386/efi/grub-install.in: New.
25582 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
25583 newly added grub-install.
25584 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
25585 include.
25586 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
25587 grub/util/biosdisk.h.
25588 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
25589 grub/util/biosdisk.h.
25590
2d1a40a9 255912007-05-16 Robert Millan <rmh@aybabtu.com>
25592
25593 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
25594 * include/grub/util/biosdisk.h: ... here.
25595 * util/i386/pc/biosdisk.c: Moved to ...
25596 * util/biosdisk.c: ... here.
25597 * util/i386/pc/getroot.c: Moved to ...
25598 * util/getroot.c: ... here.
25599 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
25600 * util/grub-mkdevicemap.c: ... here.
25601 * util/i386/pc/grub-probe.c: Moved to ...
25602 * util/grub-probe.c: ... here.
25603
9e26e3bc 256042007-05-15 Robert Millan <rmh@aybabtu.com>
25605
25606 * util/update-grub.in: Remove duplicated line in grub.cfg header
25607 message.
25608
57f96397 256092007-05-13 Robert Millan <rmh@aybabtu.com>
25610
25611 * util/update-grub.in: Fix a few assumptions about the devices holding
25612 /, /boot and /boot/grub being the same.
25613 * util/grub.d/00_header.in: Likewise.
25614 * util/grub.d/10_hurd.in: Likewise.
25615 * util/grub.d/10_linux.in: Likewise.
25616
25617 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
25618 patterns. Use that to define the `.old' suffix as older than `'.
25619
25620 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
25621
25622 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
25623 the grub.cfg header message.
25624
2e610d62 256252007-05-11 Robert Millan <rmh@aybabtu.com>
25626
25627 * util/update-grub.in: Create device.map if it doesn't already exist,
25628 before attempting to run grub-probe.
25629 Check for grub-probe and grub-mkdevicemap with the same code
25630 grub-install is using.
25631 Remove test mode.
25632
3f6a10ef 256332007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
25634
25635 * Makefile.in: Add the datarootdir autoconf variable.
25636
02e7b75e 256372007-05-09 Robert Millan <rmh@aybabtu.com>
25638
25639 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 25640 fail gracefully if dev->disk->partition == NULL.
02e7b75e 25641
75f396cc 256422007-05-07 Robert Millan <rmh@aybabtu.com>
25643
25644 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
25645 determine partition map module.
25646 * util/i386/pc/grub-install.in: Use this feature to decide which
25647 partition module to load, instead of hardcoding pc and gpt.
25648
da65cb36 256492007-05-07 Robert Millan <rmh@aybabtu.com>
25650
25651 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
25652 source directory differs from build directory.
25653
b57d6a91 256542007-05-05 Robert Millan <rmh@aybabtu.com>
25655
25656 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
25657 initialisation.
25658
509d00f1 256592007-05-05 Robert Millan <rmh@aybabtu.com>
25660
25661 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
25662
c48f23ef 256632007-05-05 Robert Millan <rmh@aybabtu.com>
25664
25665 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
25666 command-line arguments via ${GRUB_CMDLINE_LINUX}.
25667
20b97658 256682007-05-05 Robert Millan <rmh@aybabtu.com>
25669
25670 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
25671 (grub_probe_SOURCES): Likewise.
25672 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
25673 GPT and initialize dos_part and bsd_part accordingly.
25674 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
25675 install_bsd_part.
25676 (main): Activate gpt module for use during partition identification,
25677 and deactivate it afterwards.
25678 * util/i386/pc/grub-install.in: Add gpt module to core.img.
25679 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
25680 partition identification, and deactivate it afterwards.
25681
99123174 256822007-05-05 Robert Millan <rmh@aybabtu.com>
25683
25684 * term/i386/pc/console.c (grub_console_fini): Call
25685 grub_term_set_current() before grub_term_unregister().
25686
ebd97f6e 256872007-05-04 Robert Millan <rmh@aybabtu.com>
25688
25689 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
25690 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
25691 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
25692 and update-grub_DATA.
25693 * conf/common.rmk: Build and install update-grub components.
25694 * conf/common.mk: Regenerate.
25695 * util/update-grub.in: New. Core of update-grub.
25696 * util/grub.d/00_header.in: New. Generates grub.cfg header.
25697 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
25698 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
25699 * util/grub.d/README: New. Document grub.d directory layout.
25700
b06a264d 257012007-05-01 Robert Millan <rmh@aybabtu.com>
25702
25703 * util/grub-emu.c: Move initialization functions
25704 grub_util_biosdisk_init() and grub_init_all() before
25705 grub_util_biosdisk_get_grub_dev(), which relies on them.
25706
41f0050e 257072007-04-19 Robert Millan <rmh@aybabtu.com>
25708
25709 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
25710 it is used later.
25711
04582bb3 257122007-04-18 Jerone Young <jerone@gmail.com>
25713
f19dbdb7 25714 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 25715 stanza.
25716
08db4632 257172007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 25718
08db4632 25719 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
25720 continue on and look for device node with real device name.
25721
801b76be 257222007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 25723
fe6b695a 25724 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 25725 ability.
25726 * Makefile.in: Add autoconf package transformation code.
25727 * util/i386/pc/grub-install.in: Likewise.
25728 * util/powerpc/ieee1275/grub-install.in: Likewise.
25729
6795c4e1 257302007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25731
25732 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
25733 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
25734 (EXT2_REVISION): Likewise.
25735 (EXT2_INODE_SIZE): Likewise.
25736 (struct grub_ext2_block_group): Added a missing member
25737 "used_dirs".
25738 (grub_ext2_read_inode): Divide by the inode size in a superblock
25739 instead of 128 to obtain INODES_PER_BLOCK.
25740 Use the macro EXT2_INODE_SIZE instead of directly using
25741 SBLOCK->INODE_SIZE.
25742
d70af616 257432007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25744
25745 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
25746 superblock instead of the structure size to compute an
25747 offset. This fixes the problem that GRUB could not read a
25748 filesystem when inode size is different from 128-byte.
25749
3b801603 257502007-03-05 Marco Gerards <marco@gnu.org>
25751
25752 * normal/main.c (read_config_file): When "menu" is not set, create
25753 an initial context.
25754
4785bfe4 257552007-02-21 Hollis Blanchard <hollis@penguinppc.org>
25756
25757 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
25758 (HEAP_LIMIT): New macro.
25759 (grub_claim_heap): Claim memory up to `heaplimit'.
25760
a0cbb023 257612007-02-21 Hollis Blanchard <hollis@penguinppc.org>
25762
25763 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
25764 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
25765 (_start): Likewise.
25766 (grub_arch_modules_addr): Return address after `_end'.
25767 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
25768 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
25769 (add_segments): Calculate `_end' from phdr size and location.
25770 (ALIGN_UP): Moved to ...
25771 * include/grub/misc.h: here.
25772 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
25773 New macro.
25774 (GRUB_IEEE1275_MODULE_BASE): Removed.
25775
fd7d8eba 257762007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25777
25778 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
25779 loop boundary.
25780
9b09e6fc 257812007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25782
25783 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
25784 All users updated.
25785 (grub_elf64_load_hook_t): Likewise.
25786 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
25787 debug output.
25788
3ce27299 257892007-02-20 Hollis Blanchard <hollis@penguinppc.org>
25790
25791 * kern/mm.c: Update copyright.
25792 (grub_mm_debug): Correct syntax error.
25793 (grub_mm_dump_free): New function.
25794 (grub_debug_free): Call `grub_free'.
25795 * include/grub/mm.h: Update copyright.
25796 (grub_mm_dump_free): Add declaration.
25797
077d5fee 257982007-02-12 Hollis Blanchard <hollis@penguinppc.org>
25799
25800 * include/grub/ieee1275/ieee1275.h: Update copyright.
25801 * kern/powerpc/ieee1275/init.c: Likewise.
25802 * kern/powerpc/ieee1275/openfw.c: Likewise.
25803
25804 * loader/powerpc/ieee1275/linux.c: Likewise.
25805 * include/grub/elfload.h: Likewise.
25806 * kern/elf.c: Likewise.
25807 (grub_elf32_load): Pass `base' and `size' parameters. Update all
25808 callers.
25809 (grub_elf64_load): Likewise.
25810 (grub_elf32_load_segment): Move to a nested function.
25811 (grub_elf64_load_segment): Likewise.
25812
dc946850 258132007-02-12 Hollis Blanchard <hollis@penguinppc.org>
25814
25815 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
25816 prototype.
25817 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
25818 (grub_heap_len): Likewise.
25819 (HEAP_SIZE): New macro.
25820 (grub_claim_heap): New function.
25821 (grub_machine_init): Don't claim heap directly. Call
25822 `grub_claim_heap'.
25823 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
25824 (grub_available_iterate): New function.
25825
baa2a121 258262007-02-03 Thomas Schwinge <tschwinge@gnu.org>
25827
25828 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
25829 * configure.ac: Use it for testing the HOST and TARGET compilers.
25830
4fe9862e 258312006-12-13 Thomas Schwinge <tschwinge@gnu.org>
25832
25833 * Makefile.in (enable_grub_emu): New variable.
25834 * configure.ac (--enable-grub-emu): New option.
25835 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
25836 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
25837 * conf/i386-pc.rmk: Likewise.
25838 * conf/powerpc-ieee1275.rmk: Likewise.
25839 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
25840
a8aa5762 258412006-12-12 Marco Gerards <marco@gnu.org>
25842
25843 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
25844
25845 * kern/env.c (grub_env_unset): Don't free the member `value' when
25846 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
25847 pointer.
25848
25849 * normal/main.c (current_menu): Removed.
25850 (free_menu): Unset the `menu' environment variable.
25851 (grub_normal_menu_addentry): Make use of the environment variable
25852 `menu', instead of using the global `current_menu'. Allocate
25853 memory for the sourcecode of this entry.
25854 (read_config_file): New argument `nested', changed all callers.
25855 Only in the case of a new context, initialize a new menu. Set the
25856 `menu' environment variable.
25857 (grub_normal_execute): Don't set and unset the environment
25858 variable `menu' here anymore. Only free the menu when leaving the
25859 context.
25860
25861 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
25862 leak.
25863
957b3a3e 258642006-12-11 Marco Gerards <marco@gnu.org>
25865
25866 * normal/menu_entry.c (run): Fix off by one bug so the last line
25867 is executed. Move the loader check to outside the loop.
25868
ef875714 258692006-12-08 Hollis Blanchard <hollis@penguinppc.org>
25870
25871 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
25872
4e739985 258732006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
25874
25875 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
25876 the number of sectors. Reported by Andrey Shuvikov
25877 <mr_hyro@yahoo.com>.
f19dbdb7 25878
790707f2 258792006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
25880
25881 * kern/disk.c (grub_disk_read): When there is a read error, always
25882 try to read only the necessary data.
f19dbdb7 25883
790707f2 25884 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
25885 disk/raid.c.
25886 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
25887 prototype.
25888 [GRUB_UTIL] (grub_raid_fini): Likewise.
25889 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 25890 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 25891 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
25892 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
25893 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
25894 and grub_raid_fini().
f19dbdb7 25895
03e58196 258962006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
25897
25898 * include/grub/types.h (__unused): Rename to UNUSED.
25899 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
25900 (grub_elf64_size): Likewise.
f19dbdb7 25901
ae4f23bf 259022006-11-03 Hollis Blanchard <hollis@penguinppc.org>
25903
25904 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
25905 grub_error_push and grub_error_pop in the error-handling path.
25906 (grub_elf32_load_segment): Only call grub_file_read with non-zero
25907 length.
25908
2166cc83 259092006-11-03 Hollis Blanchard <hollis@penguinppc.org>
25910
25911 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
25912 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25914 (kernel_elf_SOURCES): Likewise.
25915 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
25916 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
25917 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25918 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25919 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
25920 (elf_mod_SOURCES): New variable.
25921 (elf_mod_CFLAGS): Likewise.
25922 (elf_mod_LDFLAGS): Likewise.
25923 * include/grub/types.h (__unused): New macro.
25924 * include/grub/elfload.h: New file.
25925 * kern/elf.c: Likewise.
25926 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
25927 (ELF32_LOADMASK): New macro.
25928 (ELF64_LOADMASK): Likewise.
25929 (vmlinux): Removed.
25930 (grub_linux_load32): New function.
25931 (grub_linux_load64): Likewise.
25932 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
25933 Use grub_elf_t instead of grub_file_t.
25934
a09d5aa5 259352006-11-02 Hollis Blanchard <hollis@penguinppc.org>
25936
25937 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
25938 `catch_result' to struct set_color_args.
25939
d976fc51 259402006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
25941
25942 * normal/menu.c: Include grub/script.h.
25943 * normal/menu_entry.c: Likewise.
25944 * include/grub/normal.h: Do not include grub/script.h.
25945
67507549 259462006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25947
25948 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
25949
69203a99 259502006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25951
25952 * kern/disk.c (grub_disk_open): Print debug messages when opening a
25953 disk.
25954 (grub_disk_close): Print debug messages when closing a disk.
25955 (grub_disk_read): Print debug messages when disk read fails.
25956 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
25957 filesystem type.
25958 * kern/partition.c: Include misc.h.
25959 (grub_partition_iterate): Print debug messages when detecting
25960 partition type.
25961
e2b8278c 259622006-10-27 Hollis Blanchard <hollis@penguinppc.org>
25963
25964 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
25965 is negative.
25966 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
25967
97b2f2ff 259682006-10-26 Hollis Blanchard <hollis@penguinppc.org>
25969
25970 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
25971 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
25972
6555d655 259732006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
25974
25975 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
25976 instead of sizeof(lv). Patch by Michael Guntsche.
25977
4d42b77f 259782006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
25979
25980 * disk/lvm.c: Rename VGS to VG_LIST.
25981 (grub_lvm_iterate): Change VGS->LV to VG-LV.
25982 (grub_lvm_open): Likewise.
25983 Thanks to Michael Guntsche for finding this bug.
25984
5d74d927 259852006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25986
25987 * configure.ac (AC_INIT): Bumped to 1.95.
25988
a1bb27e4 259892006-10-14 Robert Millan <rmh@aybabtu.com>
25990
25991 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
25992 with "/dev/.static/dev/md".
25993
e0994b8b 259942006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
25995
25996 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
25997 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
25998 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
25999 DRIVE_NAME are always freed.
26000
26001 * util/i386/pc/biosdisk.c (make_device_name): Add one into
26002 DOS_PART, as a DOS partition is counted from one instead of zero
26003 now. Reported by Robert Millan.
26004
ddd5cee9 260052006-10-14 Robert Millan <rmh@aybabtu.com>
26006
26007 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
26008 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
26009 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
26010 string returned by grub_guess_root_device.
26011 * util/i386/pc/grub-setup.c: Likewise.
26012 * util/i386/pc/grub-probefs.c: Likewise.
26013
26014 * util/i386/pc/grub-probefs.c: Rename to ...
26015 * util/i386/pc/grub-probe.c: ... this.
26016 * DISTLIST: Remove grub-probefs, add grub-probe.
26017 * conf/i386-efi.rmk: Likewise.
26018 * conf/i386-pc.rmk: Likewise.
26019 * util/i386/pc/grub-install.in: Likewise.
26020
26021 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
26022 choose which information we want to print.
26023
2b002173 260242006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
26025
26026 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
26027 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
26028 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
26029 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
26030 video/readers/tga.c and video/i386/pc/vbeutil.c.
26031
260322006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
26033
26034 Added support for RAID and LVM.
f19dbdb7 26035
2b002173 26036 * disk/lvm.c: New file.
26037 * disk/raid.c: Likewise.
26038 * include/grub/lvm.h: Likewise.
f19dbdb7 26039 * include/grub/raid.h: Likewise.
2b002173 26040 * include/grub/util/lvm.h: Likewise.
26041 * include/grub/util/raid.h: Likewise.
26042 * util/lvm.c: Likewise.
26043 * util/raid.c: Likewise.
26044
26045 * include/grub/disk.h (grub_disk_dev_id): Add
26046 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
26047 (grub_disk_get_size): New prototype.
26048 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
26049 returns a partition.
26050 (grub_disk_get_size): New function.
f19dbdb7 26051
2b002173 26052 * kern/i386/pc/init.c (make_install_device): Copy the prefix
26053 verbatim if grub_install_dos_part is -2.
26054
26055 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
26056 and LVM devices.
26057
26058 * util/i386/pc/grub-setup.c (setup): New argument
26059 MUST_EMBED. Force embedding of GRUB when the argument is
26060 true. Close FILE before returning.
26061 (main): Add support for RAID and LVM.
f19dbdb7 26062
2b002173 26063 * conf/common.rmk: Add RAID and LVM modules.
26064 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
26065 util/lvm.c.
26066 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
26067
26068 * kern/misc.c (grub_strstr): New function.
26069 * include/grub/misc.h (grub_strstr): New prototype.
26070
050548d0 260712006-10-10 Tristan Gingold <tristan.gingold@bull.net>
26072
26073 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
26074
da849d2d 260752006-10-05 Tristan Gingold <tristan.gingold@bull.net>
26076
26077 * kern/misc.c (grub_strtoull): Guess the base only if not
26078 specified.
26079
97b2f2ff 260802006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 26081
26082 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
26083 PowerMac support.
26084
97b2f2ff 260852006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 26086
26087 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
26088
26089 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
26090 Remove `flags' argument. All callers changed.
26091 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
26092 (IEEE1275_IHANDLE_INVALID): New variable.
26093 (IEEE1275_CELL_INVALID): New variable.
26094 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
26095 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
26096 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
26097 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
26098 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
26099 codes from Open Firmware. All callers updated.
26100 (grub_ieee1275_next_property): Directly return Open Firmware return
26101 code.
26102 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26103 Standardize error checking from `grub_ieee1275_get_property'.
26104 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
26105 `devalias' to `aliases'. Correct comments. Consolidate error paths.
26106
97b2f2ff 261072006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 26108
26109 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
26110 `instance_to_package_args' to `instance_to_path_args'.
26111
26112 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
26113 `grub_ieee1275_chosen'.
26114
26115 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
26116 `grub_ieee1275_interpret'.
26117
97b2f2ff 261182006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 26119
26120 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
26121
97b2f2ff 261222006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 26123
26124 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
26125 (__cmpdi): Likewise.
26126
26127 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
26128 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
26129 `grub_ssize_t'.
26130
02bb8acc 26131 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 26132
26133 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
26134 to type `grub_ssize_t'.
26135 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
26136
7f9a8531 261372006-09-22 Marco Gerards <marco@gnu.org>
26138
26139 * normal/script.c (grub_script_create_cmdmenu): Skip leading
26140 newlines.
26141
b5ef1102 261422006-09-22 Marco Gerards <marco@gnu.org>
26143
26144 * commands/echo.c: New file.
26145
26146 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
26147
26148 * conf/common.rmk (echo_mod_SOURCES): New variable.
26149 (echo_mod_CFLAGS): Likewise.
26150 (echo_mod_LDFLAGS): Likewise.
26151
2cff3677 261522006-09-22 Marco Gerards <marco@gnu.org>
26153
26154 * normal/main.c (get_line): Malloc memory instead of using
26155 preallocated memory. Removed the arguments `cmdline' and
26156 `max_len'. Updated all callers.
26157
6ba4688b 261582006-09-22 Marco Gerards <marco@gnu.org>
26159
26160 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
26161 (normal_mod_DEPENDENCIES): Likewise.
26162
26163 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
26164 (normal_mod_DEPENDENCIES): Likewise.
26165
26166 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
26167
e02ac02c 261682006-09-22 Johan Rydberg <jrydberg@gnu.org>
26169
26170 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
26171 programs.
26172 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
26173 (normal_mod_DEPENDENCIES): Likewise.
26174 * conf/i386-pc.mk: Regenerate.
26175 * conf/i386-efi.mk: Likewise
26176 * conf/common.mk: Likewise.
26177 * conf/powerpc-ieee1275.mk: Likewise.
26178 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 26179
8d252e44 261802006-09-22 Robert Millan <rmh@aybabtu.com>
26181
26182 Sync with i386 version.
26183 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
26184 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
26185
209bf7ac 261862006-09-21 Robert Millan <rmh@aybabtu.com>
26187
26188 Import from GRUB Legacy (lib/device.c):
26189 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
26190 (init_device_map) [__linux__]: Add support for I2O devices.
26191
6b146090 261922006-09-14 Marco Gerards <marco@gnu.org>
26193
26194 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
26195 `-melf_i386'.
26196
e38600a8 261972006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 26198
26199 * util/i386/pc/grub-install.in: Skip menu.lst when removing
26200 /boot/grub/*.lst.
78fa1790 26201
2952da5d 26202 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 26203
2952da5d 26204 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
26205 before adding it to device.map.
26206
01b82a64 262072006-08-15 Johan Rydberg <jrydberg@gnu.org>
26208
fe6b695a 26209 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 26210 compiles a file; using the -MD option.
26211 * conf/common.mk: Regenerate.
26212 * conf/i386-pc.mk: Likewise.
26213 * conf/i386-efi.mk: Likewise.
26214 * conf/powerpc-ieee1275.mk: Likewise.
26215 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 26216
1064790d 262172006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
26218
26219 Move the prototypes of grub_setjmp and grub_longjmp to
26220 cpu/setjmp.h, so that each architecture may specify different
26221 attributes.
f19dbdb7 26222
1064790d 26223 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
26224 (grub_longjmp): Likewise.
26225 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
26226 (grub_longjmp): Likewise.
26227 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
26228 (grub_longjmp): Likewise.
26229
26230 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
26231 [!GRUB_UTIL] (grub_longjmp): Removed.
26232
29dda3ed 262332006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
26234
26235 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
26236 "color!" method does not return any value.
26237
ad2a06ed 262382006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
26239
26240 * include/grub/bitmap.h: New file.
26241
26242 * include/grub/i386/pc/vbeutil.h: Likewise.
26243
26244 * video/bitmap.c: Likewise.
26245
26246 * video/readers/tga.c: Likewise.
26247
26248 * video/i386/pc/vbeutil.c: Likewise.
26249
26250 * commands/videotest.c: Code cleanup and updated to reflect to new
26251 video API.
26252
26253 * term/gfxterm.c: Likewise.
26254
26255 * video/video.c: Likewise.
26256
26257 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
26258 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
26259 (bitmap_mod_SOURCES): New entry.
26260 (bitmap_mod_CFLAGS): Likewise.
26261 (bitmap_mod_LDFLAGS): Likewise.
26262 (tga_mod_SOURCES): Likewise.
26263 (tga_mod_CFLAGS): Likewise.
26264 (tga_mod_LDFLAGS): Likewise.
26265
26266 * include/grub/video.h (grub_video_blit_operators): New enum type.
26267 (grub_video_render_target): Changed as forward declaration and moved
26268 actual definition to be video driver specific.
26269 (grub_video_adapter.blit_bitmap): Added blitting operator.
26270 (grub_video_adapter.blit_render_target): Likewise.
26271 (grub_video_blit_bitmap): Likewise.
26272 (grub_video_blit_render_target): Likewise.
26273
26274 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
26275 driver specific render target definition.
26276 (grub_video_vbe_map_rgba): Added driver internal helper.
26277 (grub_video_vbe_unmap_color): Updated to use
26278 grub_video_i386_vbeblit_info.
26279 (grub_video_vbe_get_video_ptr): Likewise.
26280
26281 * include/grub/i386/pc/vbeblit.h
26282 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
26283 grub_video_i386_vbeblit_info.
26284 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
26285 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
26286 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
26287 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
26288 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
26289 (grub_video_i386_vbeblit_index_index): Likewise.
26290 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
26291 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
26292 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
26293 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
26294 operator.
26295 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
26296 operator.
26297
26298 * video/i386/pc/vbeblit.c: Updated to reflect changes on
26299 include/grub/i386/pc/vbeblit.h.
26300
26301 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
26302 Updated to use grub_video_i386_vbeblit_info.
26303 (grub_video_i386_vbefill_R8G8B8): Likewise.
26304 (grub_video_i386_vbefill_index): Likewise.
26305 (grub_video_i386_vbefill): Added generic filler.
26306
26307 * video/i386/pc/vbefill.c: Updated to reflect changes on
26308 include/grub/i386/pc/vbefill.h.
26309
26310 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
26311 grub_video_i386_vbeblit_info.
26312 (grub_video_vbe_unmap_color): Likewise.
26313 (grub_video_vbe_blit_glyph): Likewise.
26314 (grub_video_vbe_scroll): Likewise.
26315 (grub_video_vbe_draw_pixel): Removed function.
26316 (grub_video_vbe_get_pixel): Likewise.
26317 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
26318 updated code to use it.
26319 (common_blitter): Added common blitter for render target and bitmap.
26320 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
26321 (grub_video_vbe_blit_render_target): Likewise.
26322
bc8c036d 263232006-07-30 Johan Rydberg <jrydberg@gnu.org>
26324
26325 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
26326 is in text mode if there is no console control protocol instance
26327 available.
26328
684a8eff 263292006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
26330
26331 * include/grub/video.h: Code cleanup.
26332
26333 * include/grub/i386/pc/vbe.h: Likewise.
26334
26335 * video/i386/pc/vbe.c: Likewise.
26336
26337 * video/i386/pc/vbeblit.c: Likewise.
26338
26339 * video/i386/pc/vbefill.c: Likewise.
26340
26341 * video/video.c: Likewise. Also added more comments.
26342
5915059b 263432006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
26344
26345 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
26346 (struct grub_biosdisk_dap): Likewise.
26347
26348 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
26349 linkage settings for all functions.
26350
90ce5d56 263512006-07-12 Marco Gerards <marco@gnu.org>
26352
26353 * configure.ac (--enable-mm-debug): Fix typo.
26354
26355 * genkernsyms.sh.in: Use proper quoting for `CC'.
26356
43e7f879 263572006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
26358
26359 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
26360 (normal_mod_ASFLAGS): Remove "-m32".
26361
4889bdec 263622006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
26363
26364 * util/misc.c: Include config.h.
26365 [!HAVE_MEMALIGN]: Do not include malloc.h.
26366 (grub_memalign): Use posix_memalign, if present. Then, use
26367 memalign, if present. Otherwise, emit an error.
26368
26369 * util/grub-emu.c: Do not include malloc.h.
26370
26371 * include/grub/util/misc.h: Include unistd.h. This is required for
26372 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
26373 D. Eades III <hde@foobar-qux.org>.
26374
26375 * configure.ac (AC_GNU_SOURCE): Added.
26376 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
26377 type.
26378
fd39d4da 263792006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
26380
26381 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
26382 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
26383
b786f3b5 263842006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
26385
26386 * include/grub/types.h (grub_host_addr_t): Rename to
26387 grub_target_addr_t.
26388 (grub_host_off_t): Rename to grub_target_off_t.
26389 (grub_host_size_t): Rename to grub_target_size_t.
26390 (grub_host_ssize_t): Rename to grub_target_ssize_t.
26391 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
26392
26393 * include/grub/kernel.h (struct grub_module_header): Change type
26394 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
26395 (grub_module_info): Likewise.
f19dbdb7 26396
051988bb 263972006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
26398
26399 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
26400 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
26401 Velazquez <jesus.velazquez@gmail.com>.
26402
deae281b 264032006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
26404
26405 Count partitions from 1 instead of 0 in the string representation
26406 of partitions. Still use 0-based internally.
f19dbdb7 26407
deae281b 26408 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
26409 (sun_partition_map_iterate): Use grub_partition_t instead of
26410 struct grub_partition *. Cast DESC->START_CYLINDER to
26411 grub_uint64_t after converting the endian.
26412 (sun_partition_map_probe): Subtract 1 for PARTNUM.
26413 (sun_partition_map_get_name): Add 1 to P->INDEX.
26414
26415 * partmap/pc.c (grub_partition_parse): Subtract 1 for
26416 PCDATA->DOS_PART.
26417 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
26418
26419 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
26420 zero instead of one.
26421 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
26422 (gpt_partition_map_get_name): Add 1 into P->INDEX.
26423
26424 * partmap/apple.c (apple_partition_map_iterate): Change the type
26425 of POS to unsigned.
26426 (apple_partition_map_probe): Subtract 1 for PARTNUM.
26427 (apple_partition_map_get_name): Add 1 into P->INDEX.
26428
26429 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
26430 of POS to unsigned.
26431 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
26432 calculate the offset of a partition.
26433 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
26434 (amiga_partition_map_get_name): Add 1 into P->INDEX.
26435
26436 * partmap/acorn.c (acorn_partition_map_find): Change the type of
26437 SECTOR to grub_disk_addr_t.
26438 (acorn_partition_map_iterate): Likewise.
26439 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
26440 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
26441 top.
26442 (acorn_partition_map_get_name): Add 1 into P->INDEX.
26443
26444 * kern/i386/pc/init.c (make_install_device): Add 1 into
26445 GRUB_INSTALL_DOS_PART.
26446
26447 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
26448 conditional.
26449
524a1e6a 264502006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
26451
26452 Clean up the code to support 64-bit addressing in disks and
26453 files. This change is not enough for filesystems yet.
f19dbdb7 26454
524a1e6a 26455 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
26456 type of "start" to grub_uint64_t.
26457 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
26458 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
26459 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
26460 convert addresses.
26461
26462 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
26463 to grub_disk_addr_t.
26464
26465 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
26466 string.
26467
26468 * partmap/pc.c (pc_partition_map_iterate): Likewise.
26469
26470 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
26471 to char *.
26472
26473 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
26474
26475 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
26476
26477 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
26478
26479 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
26480 to grub_off_t, to detect an error from grub_file_seek.
26481 (grub_multiboot_load_elf32): Likewise.
26482
26483 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
26484 maximum unsigned long value when an overflow is detected.
26485 (grub_strtoull): New function.
26486 (grub_divmod64): Likewise.
26487 (grub_lltoa): use grub_divmod64.
26488
26489 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
26490 grub_disk_addr_t.
26491 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
26492 the pointer to next character. Use grub_strtoull instead of
26493 grub_strtoul.
26494 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
26495 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
26496 respectively.
26497
fe6b695a 26498 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 26499 return value is signed.
26500 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
26501 test if OFFSET is less than zero, as OFFSET is unsigned now.
26502
26503 * kern/disk.c (struct grub_disk_cache): Change the type of
26504 "sector" to grub_disk_addr_t.
26505 (grub_disk_cache_get_index): Change the type of SECTOR to
26506 grub_disk_addr_t. Calculate the hash with SECTOR casted to
26507 unsigned after shifting.
26508 (grub_disk_cache_invalidate): Change the type of SECTOR to
26509 grub_disk_addr_t.
26510 (grub_disk_cache_unlock): Likewise.
26511 (grub_disk_cache_store): Likewise.
26512 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
26513 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
26514 grub_disk_addr_t and grub_uint64_t, respectively.
26515 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
26516 body, as the value of OFFSET is tweaked by
26517 grub_disk_check_range. Change the types of START_SECTOR, LEN and
26518 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
26519 respectively.
26520 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
26521 body, as the value of OFFSET is tweaked by
26522 grub_disk_check_range. Change the types of LEN and N to
26523 grub_size_t.
26524
26525 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
26526 and "saved_offset" to grub_off_t.
26527 (test_header): Cast BUF to char *.
26528 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
26529 to char *.
26530 (grub_gzio_read): Change the types of OFFSET and SIZE to
26531 grub_off_t and grub_size_t, respectively.
26532
26533 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
26534 Removed.
26535 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
26536 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
26537 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
26538 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
26539 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
26540
26541 * include/grub/types.h (grub_off_t): Unconditionally set to
26542 grub_uint64_t.
26543 (grub_disk_addr_t): Changed to grub_uint64_t.
26544
26545 * include/grub/partition.h (struct grub_partition): Change the
26546 types of "start", "len" and "offset" to grub_disk_addr_t,
26547 grub_uint64_t and grub_disk_addr_t, respectively.
26548 (grub_partition_get_start): Return grub_disk_addr_t.
26549 (grub_partition_get_len): Return grub_uint64_t.
26550
26551 * include/grub/misc.h (grub_strtoull): New prototype.
26552 (grub_divmod64): Likewise.
26553
26554 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
26555 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
26556 grub_off_t, respectively.
26557 All callers and references changed.
26558
26559 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
26560 grub_size_t in "read".
26561 All callers and references changed.
26562
26563 * include/grub/file.h (struct grub_file): Change the types of
26564 "offset" and "size" to grub_off_t and grub_off_t,
26565 respectively. Change the type of SECTOR to grub_disk_addr_t in
26566 "read_hook".
26567 (grub_file_read): Change the type of LEN to grub_size_t.
26568 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
26569 grub_off_t.
26570 (grub_file_size): Return grub_off_t.
26571 (grub_file_tell): Likewise.
26572 All callers and references changed.
26573
26574 * include/grub/disk.h (struct grub_disk_dev): Change the types of
26575 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
26576 "write".
26577 (struct grub_disk): Change the type of "total_sectors" to
26578 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 26579 "read_hook".
524a1e6a 26580 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
26581 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
26582 (grub_disk_write): Likewise.
26583 All callers and references changed.
26584
26585 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
26586 char * for grub_strncmp to silence gcc.
26587 (grub_iso9660_mount): Likewise.
26588 (grub_iso9660_mount): Likewise.
26589 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
26590 return statement.
26591 (grub_iso9660_iterate_dir): Likewise.
26592 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
26593
26594 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
26595 LEN to grub_disk_addr_t and grub_size_t, respectively.
26596
26597 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
26598
26599 * fs/jfs.c (grub_jfs_read_file): Likewise.
26600
26601 * fs/minix.c (grub_jfs_read_file): Likewise.
26602
26603 * fs/sfs.c (grub_jfs_read_file): Likewise.
26604
26605 * fs/ufs.c (grub_jfs_read_file): Likewise.
26606
26607 * fs/xfs.c (grub_jfs_read_file): Likewise.
26608
26609 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
26610 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
26611 respectively.
26612
26613 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
26614 BLKNR to -1 instead of returning GRUB_ERRNO.
26615 (grub_ext2_read_file): Change the types of SECTOR and
26616 LEN to grub_disk_addr_t and grub_size_t, respectively.
26617
26618 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
26619 LEN to grub_disk_addr_t and grub_size_t, respectively.
26620
26621 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
26622 grub_file_read.
26623
26624 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
26625 string. Do not cast SECTOR explicitly.
26626
26627 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
26628 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
26629 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
26630 grub_disk_addr_t and grub_size_t, respectively. If the sector is
26631 over 2TB and LBA mode is not supported, raise an error.
26632 (get_safe_sectors): New function.
26633 (grub_biosdisk_read): Use get_safe_sectors.
26634 (grub_biosdisk_write): Likewise.
26635
26636 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
26637 (grub_efidisk_write): Likewise.
26638
26639 * disk/loopback.c (delete_loopback): Cosmetic changes.
26640 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
26641 correctly.
26642 (grub_loopback_open): Likewise.
26643 (grub_loopback_read): Likewise. Also, change the type of POS to
26644 grub_off_t, and fix the usage of grub_memset.
26645
26646 * commands/i386/pc/play.c: Include grub/machine/time.h.
26647
26648 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
26649 print FILE->SIZE.
26650
26651 * commands/configfile.c: Include grub/env.h.
26652
26653 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
26654 GRUB_ERRNO directly instead. Change the type of POS to
26655 grub_off_t. Follow the coding standard.
26656
26657 * commands/blocklist.c: Include grub/partition.h.
26658 (grub_cmd_blocklist): Return an error if the underlying device is
26659 not a disk. Take the starting sector of a partition into account,
26660 if a partition is used.
26661
26662 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
26663 a length field.
26664 (lba_mode): Support 64-bit addresses.
26665 (chs_mode): Likewise.
26666 (copy_buffer): Adapted to the new offsets of a length field and a
26667 segment field.
26668 (blocklist_default_start): Allocate 64-bit space.
26669
26670 * boot/i386/pc/boot.S (force_lba): Removed.
26671 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 26672 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 26673 space.
26674 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
26675 is useless.
26676 (lba_mode): Refactored to support a 64-bit address. More size
26677 optimization.
26678 (setup_sectors): Likewise.
26679
53af98ad 266802006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
26681
26682 * DISTLIST: Added include/grub/i386/linux.h. Removed
26683 include/grub/i386/pc/linux.h
26684
26685 * configure.ac (AC_INIT): Bumped to 1.94.
26686
26687 * config.guess: Updated from gnulib.
26688 * config.sub: Likewise.
26689 * install-sh: Likewise.
26690 * mkinstalldirs: Likewise.
26691
b4c1940a 266922006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
26693
26694 * conf/common.rmk (grub_modules_init.lst): Depended on
26695 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
26696 MODSRCFILES.
26697
26698 * genmk.rb (PModule::rule): Reverted the previous change.
26699
cfca1cfd 267002006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
26701
26702 * conf/common.rmk (grub_modules_init.lst): Depends on
26703 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
26704 that the target does not exist before producing.
26705 (grub_modules_init.h): Remove the target before generating.
26706 (grub_emu_init.c): Likewise.
26707
26708 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
26709
aa6d7826 267102006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
26711
26712 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
26713 for the target-specific tests. Make sure that we also have the
26714 up-to-date target variables for those tests.
26715
26c607b9 267162006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
26717
26718 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
26719 (PModule::rule): Likewise.
26720
0162321a 267212006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
26722
26723 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
26724 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
26725 target-specific flags should be prefixed.
26726 (PModule::rule): Likewise.
26727
6c826348 267282006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
26729
26730 * configure.ac (CMP): Check if cmp is available explicitly.
26731
b977bf01 267322006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
26733
26734 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
26735 (target_cpu): New variable.
26736 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 26737
b977bf01 26738 * util/i386/pc/grub-install.in (host_cpu): Removed.
26739 (target_cpu): New variable.
26740 (pkglibdir): Use target_cpu instead of host_cpu.
26741
26742 * util/genmoddep.c: Removed.
f19dbdb7 26743
b977bf01 26744 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
26745 instead of GRUB_HOST_SIZEOF_VOID_P.
26746 * kern/dl.c: Likewise.
26747
26748 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
26749 ...
26750 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26751 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26752 (GRUB_TARGET_SIZEOF_LONG): ... this.
26753 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26754 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26755 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
26756 to ...
26757 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26758 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26759 (GRUB_TARGET_SIZEOF_LONG): ... this.
26760 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26761 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26762 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
26763 to ...
26764 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
26765 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
26766 (GRUB_TARGET_SIZEOF_LONG): ... this.
26767 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
26768 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
26769
26770 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
26771 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
26772 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
26773 instead of GRUB_HOST_SIZEOF_LONG.
26774 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
26775 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
26776 GRUB_CPU_WORDS_BIGENDIAN.
26777 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
26778 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
26779 grub_host_ssize_t.
26780
26781 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
26782 (genmoddep_SOURCES): Likewise.
26783 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
26784 (genmoddep_SOURCES): Likewise.
26785 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
26786 (genmoddep_SOURCES): Likewise.
26787 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
26788 Likewise.
26789 (genmoddep_SOURCES): Likewise.
26790
26791 * genmoddep.awk: New file.
26792
26793 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
26794 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
26795 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
26796 (PModule::rule): Likewise.
26797 (Program::rule): Likewise.
26798 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
26799 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
26800 respectively.
26801
26802 * configure.ac: Rewritten intensively to use host and target
26803 instead of build and host, respectively.
26804
26805 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
26806 (host_cpu): Removed.
26807 (target_cpu): New variable.
26808 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
26809 (BUILD_CC): Removed.
26810 (BUILD_CFLAGS): Likewise.
26811 (BUILD_CPPFLAGS): Likewise.
26812 (TARGET_CC): New variable.
26813 (TARGET_CFLAGS): Likewise.
26814 (TARGET_CPPFLAGS): Likewise.
26815 (TARGET_LDFLAGS): Likewise.
26816 (AWK): Likewise.
26817 (include): Use target_cpu instead of host_cpu.
26818 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 26819
b977bf01 26820 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
26821
f09771a1 268222006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
26823
26824 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
26825 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
26826 field 'false' to 'exec_on_false'.
26827 (grub_script_create_cmdif): Renamed argument names to reflect above
26828 changes.
26829
26830 * normal/execute.c (grub_script_execute_cmdif): Likewise.
26831
26832 * normal/script.c (grub_script_create_cmdif): Likewise.
26833
118f4fb3 268342006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
26835
26836 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
26837 top.
26838 (grub_hfsplus_btree_recptr): Likewise.
26839 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
26840 FILEBLOCK both to pass a block number and store next block
26841 number.
26842 (grub_hfsplus_read_block): Rewritten heavily to support an extent
26843 overflow file correctly. Specify errors appropriately, because
26844 fshelp expects that GRUB_ERRNO is set when fails. Reuse
26845 grub_hfsplus_btree_recptr to get the pointer to a found key.
26846 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
26847 is found.
26848
26849 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
26850 linux.mod.
26851 (_linux_mod_SOURCES): New variable.
26852 (_linux_mod_CFLAGS): Likewise.
26853 (_linux_mod_LDFLAGS): Likewise.
26854 (linux_mod_SOURCES): Likewise.
26855 (linux_mod_CFLAGS): Likewise.
26856 (linux_mod_LDFLAGS): Likewise.
26857
26858 * DISTLIST: Added loader/i386/efi/linux.c,
26859 loader/i386/efi/linux_normal.c and
26860 include/grub/i386/efi/loader.h.
26861
26862 * loader/i386/efi/linux.c: New file.
26863 * loader/i386/efi/linux_normal.c: Likewise.
26864 * include/grub/i386/efi/loader.h: Likewise.
26865
89a7d726 268662006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
26867
26868 * commands/blocklist.c: New file.
26869
26870 * DISTLIST: Added commands/blocklist.c.
26871
26872 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 26873 color for the background, and a darker color for the foreground.
89a7d726 26874 (grub_console_checkkey): Return READ_KEY.
26875 (grub_console_cls): Set the background to
26876 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
26877
26878 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
26879
26880 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
26881 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
26882
26883 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
26884 prototype.
26885
26886 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
26887 BG. The spec is wrong again.
26888
26889 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
26890 prototype.
26891 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
26892
26893 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26894 commands/blocklist.c.
26895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 26896
89a7d726 26897 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
26898 (blocklist_mod_SOURCES): New variable.
26899 (blocklist_mod_CFLAGS): Likewise.
26900 (blocklist_mod_LDFLAGS): Likewise.
26901
75c8f258 269022006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
26903
26904 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
26905 duplication.
26906 (lba_mode): Use %eax more intensively to reduce the code size.
26907
da2eb181 269082006-05-20 Marco Gerards <marco@gnu.org>
26909
26910 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
26911
26912 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
26913 for `menuentry'.
26914 (script): Accept leading newlines.
26915 (newlines): New rule to describe 0 or more newlines.
26916 (commands): Accept `command' with trailing newline. Fixed the
26917 order in which arguments were passed to `grub_script_add_cmd'.
26918 Accept commands separated by newlines.
26919 (function): Changed to accept newlines.
26920 (menuentry) Rewritten.
26921
26922 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
26923 front of the list, instead of to the end.
26924
577b4050 269252006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
26926
26927 * util/i386/pc/grub-install.in (bindir): New variable.
26928 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
26929 Shaver <lbgwjl@gmail.com>.
26930
0d6e1189 269312006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
26932
26933 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
26934 grub/machine/linux.h
26935 * loader/i386/pc/linux.c: Likewise.
26936
26937 * include/grub/i386/pc/linux.h: Moved to ...
26938 * include/grub/i386/linux.h: ... here.
26939
26940 * include/grub/i386/linux.h (struct linux_kernel_params): New
26941 struct.
f19dbdb7 26942
31b86e9f 269432006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
26944
26945 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
26946 checking.
26947 (grub_video_vbe_blit_glyph): Likewise.
26948 (grub_video_vbe_blit_bitmap): Likewise.
26949 (grub_video_vbe_blit_render_target): Likewise.
26950
83b984de 269512006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
26952
26953 * configure.ac (--with-platform): Properly quote the square
26954 brackets.
26955
5f0413bd 269562006-05-08 Marco Gerards <marco@gnu.org>
26957
26958 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
26959 this...
26960 (kernel_elf_HEADERS): ...to this. Updated all users.
26961 (grubof_symlist.c): Renamed from this...
26962 (kernel_elf_symlist.c): ...to this. Updated all users.
26963 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
26964 (grubof_SOURCES): Renamed from this...
26965 (kernel_elf_SOURCES): ...to this.
26966 (grubof_HEADERS): Renamed from this...
26967 (kernel_elf_HEADERS): ...to this.
26968 (grubof_CFLAGS): Renamed from this...
26969 (kernel_elf_CFLAGS): ...to this.
26970 (grubof_ASFLAGS): Renamed from this...
26971 (kernel_elf_ASFLAGS): ...to this.
26972 (grubof_LDFLAGS): Renamed from this...
26973 (kernel_elf_LDFLAGS): ...to this.
26974
26975 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
26976 this...
26977 (kernel_elf_HEADERS): ...to this. Updated all users.
26978 (grubof_symlist.c): Renamed from this...
26979 (kernel_elf_symlist.c): ...to this. Updated all users.
26980 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
26981 (grubof_SOURCES): Renamed from this...
26982 (kernel_elf_SOURCES): ...to this.
26983 (grubof_HEADERS): Renamed from this...
26984 (kernel_elf_HEADERS): ...to this.
26985 (grubof_CFLAGS): Renamed from this...
26986 (kernel_elf_CFLAGS): ...to this.
26987 (grubof_ASFLAGS): Renamed from this...
26988 (kernel_elf_ASFLAGS): ...to this.
26989 (grubof_LDFLAGS): Renamed from this...
26990 (kernel_elf_LDFLAGS): ...to this.
26991
26992 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
26993 `kernel.elf' instead of `grubof'.
26994
05568c2e 269952006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
26996
26997 Add --with-platform to configure. Use pkglibdir instead of
26998 pkgdatadir. This is reported by Roger Leigh.
26999
27000 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
27001 (host_vendor): Likewise.
27002 (host_os): Likewise.
27003 (pkgdatadir): Likewise.
27004 (platform): New variable.
27005 (pkglibdir): Likewise.
27006 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 27007
05568c2e 27008 * util/i386/pc/grub-install.in (datadir): Removed.
27009 (host_vendor): Likewise.
27010 (host_os): Likewise.
27011 (pkgdatadir): Likewise.
27012 (platform): New variable.
27013 (pkglibdir): Likewise.
27014 Use PKGLIBDIR instead of PKGDATADIR.
27015
27016 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
27017 instead of GRUB_DATADIR.
27018 (main): Likewise.
27019 * util/i386/pc/grub-mkimage.c (usage): Likewise.
27020 (main): Likewise.
27021 * util/i386/efi/grub-mkimage.c (usage): Likewise.
27022 (main): Likewise.
27023
27024 * configure.ac (--with-platform): New option.
27025 Use PLATFORM instead of HOST_VENDOR to specify a platform.
27026
27027 * Makefile.in: Include a makefile based on PLATFORM instead of
27028 HOST_VENDOR.
27029 (pkgdatadir): Not appended by the machine type.
27030 (pkglibdir): Appended by the machine type.
27031 (host_vendor): Removed.
27032 (platform): New variable.
27033 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
27034 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
27035 (uninstall): Likewise.
27036
4e93851c 270372006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
27038
27039 Use the environment context in the menu. Remove the commands
27040 "default" and "timeout", and use variables instead.
f19dbdb7 27041
4e93851c 27042 * normal/menu.c: Include grub/env.h.
27043 (print_entry): Cast TITLE to silence gcc.
27044 (get_timeout): New function.
27045 (set_timeout): Likewise.
27046 (get_entry_number): Likewise.
27047 (run_menu): Use a default entry, a fallback entry and a timeout
27048 in the environment variables "default", "fallback" and
27049 "timeout". Also, tweak the default entry if it is not within the
27050 current menu entries.
27051 (grub_menu_run): Use a fallback entry in the environment variable
27052 "fallback".
27053
27054 * normal/main.c (read_config_file): Do not initialize
27055 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
27056 NEWMENU->TIMEOUT.
27057 (grub_normal_execute): Use a data slot to store the menu.
27058
27059 * include/grub/normal.h (struct grub_menu): Removed default_entry,
27060 fallback_entry and timeout.
27061 (struct grub_menu_list): Removed.
27062 (grub_menu_list_t): Likewise.
27063 (struct grub_context): Likewise.
27064 (grub_context_t): Likewise.
27065 (grub_context_get): Likewise.
27066 (grub_context_get_current_menu): Likewise.
27067 (grub_context_push_menu): Likewise.
27068 (grub_context_pop_menu): Likewise.
27069 (grub_default_init): Likewise.
27070 (grub_default_fini): Likewise.
27071 (grub_timeout_init): Likewise.
27072 (grub_timeout_fini): Likewise.
27073
27074 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
27075 and timeout.mod.
27076 (normal_mod_SOURCES): Removed normal/context.c.
27077
27078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
27079 commands/default.c, commands/timeout.c and normal/context.c.
27080 (normal_mod_SOURCES): Removed normal/context.c.
27081
27082 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
27083 commands/timeout.c and normal/context.c.
27084 (normal_mod_SOURCES): Removed normal/context.c.
27085
27086 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
27087 commands/default.c, commands/timeout.c and normal/context.c.
27088 (normal_mod_SOURCES): Removed normal/context.c.
27089
27090 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
27091 timeout.mod.
27092 (default_mod_SOURCES): Removed.
27093 (default_mod_CFLAGS): Likewise.
27094 (default_mod_LDFLAGS): Likewise.
27095 (timeout_mod_SOURCES): Removed.
27096 (timeout_mod_CFLAGS): Likewise.
27097 (timeout_mod_LDFLAGS): Likewise.
27098
27099 * DISTLIST: Removed commands/default.c, commands/timeout.c and
27100 normal/context.c.
27101
27102 * commands/default.c: Removed.
27103 * commands/timeout.c: Likewise.
27104 * normal/context.c: Likewise.
27105
1eb9cc1d 271062006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
27107
27108 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
27109
385bd9c1 271102006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
27111
27112 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
27113 "next" to "prev" for readability.
27114 (struct grub_env_sorted_var): New struct.
27115 (grub_env_context): Renamed to ...
27116 (initial_context): ... this.
27117 (grub_env_var_context): Renamed to ...
27118 (current_context): ... this.
27119 (grub_env_find): Look only at CURRENT_CONTEXT.
27120 (grub_env_context_open): Rewritten to copy exported variables from
27121 previous context.
27122 (grub_env_context_close): Rewritten according to the new
27123 scheme. Also, add an assertion to prevent the initial context from
27124 removed.
27125 (grub_env_insert): Removed the code for the sorted list.
27126 (grub_env_remove): Likewise.
27127 (grub_env_export): Simply mark the variable with
27128 GRUB_ENV_VAR_GLOBAL.
27129 (grub_env_set): A cosmetic change for naming consistency.
27130 (grub_env_get): Likewise.
27131 (grub_env_unset): Likewise.
27132 (grub_env_iterate): Rewritten to sort variables within this
27133 function.
27134 (grub_register_variable_hook): Fixed for naming consistency. Call
27135 grub_env_find again, only if NAME is not found at the first time.
27136 (mangle_data_slot_name): New function.
27137 (grub_env_set_data_slot): Likewise.
27138 (grub_env_get_data_slot): Likewise.
27139 (grub_env_unset_data_slot): Likewise.
27140
27141 * include/grub/env.h (grub_env_var_type): New enum.
27142 (GRUB_ENV_VAR_LOCAL): New constant.
27143 (GRUB_ENV_VAR_GLOBAL): Likewise.
27144 (GRUB_ENV_VAR_DATA): Likewise.
27145 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
27146 "type".
27147 (grub_env_set): Replace VAR with NAME for consistency.
27148 (grub_register_variable_hook): Likewise.
27149 (grub_env_export): Specify the name of the argument.
27150 (grub_env_set_data_slot): New prototype.
27151 (grub_env_get_data_slot): Likewise.
27152 (grub_env_unset_data_slot): Likewise.
27153
7f362539 271542006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
27155
27156 Extend the loader so that GRUB can accept a loader which comes
27157 back to GRUB when a loaded image exits. Also, this change adds
27158 support for a chainloader on EFI.
f19dbdb7 27159
7f362539 27160 * term/efi/console.c: Include grub/misc.h.
27161 (grub_console_checkkey): Display a scan code on the top for
27162 debugging. This will be removed once the EFI port gets stable.
27163 Correct the scan code mapping.
27164
27165 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
27166 allocate memory from larger regions, in order to reduce the number
27167 of allocated regions. Otherwise, the MacOSX loader panics.
27168 (filter_memory_map): Avoid less than 1MB for compatibility with
27169 other loaders.
27170 (add_memory_regions): Allocate from the tail of a region, if
27171 possible, to avoid allocating a region near to 1MB, for the MacOSX
27172 loader.
27173
27174 * kern/efi/init.c (grub_efi_set_prefix): Specify
27175 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
27176
27177 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
27178 argument IMAGE_HANDLE and specify it to get a loaded image.
27179 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
27180 grub_efi_get_loaded_image.
fe6b695a 27181 (grub_efi_get_filename): Divide the length by the size of
7f362539 27182 grub_efi_char16_t.
27183 (grub_efi_get_device_path): New function.
27184 (grub_efi_print_device_path): Print End Device Path nodes. Divide
27185 the length by the size of grub_efi_char16_t for a file path device
27186 path node.
27187
27188 * kern/loader.c (grub_loader_noreturn): New variable.
27189 (grub_loader_set): Accept a new argument NORETURN. Set
27190 GRUB_LOADER_NORETURN to NORETURN.
27191 All callers changed.
27192 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
27193 grub_machine_fini.
27194
27195 * include/grub/efi/efi.h (grub_efi_get_device_path): New
27196 prototype.
27197 (grub_efi_get_loaded_image): Take an argument to specify an image
27198 handle.
27199
27200 * include/grub/loader.h (grub_loader_set): Added one more argument
27201 NORETURN.
27202
27203 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
27204 instead of grub_efi_open_protocol.
27205 (grub_efidisk_get_device_name): Likewise.
27206 (grub_efidisk_close): Print a newline.
27207 (grub_efidisk_get_device_handle): Fixed to use
27208 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
27209 GRUB_EFI_DEVICE_PATH_TYPE.
27210
27211 * disk/efi/efidisk.c (device_path_guid): Moved to ...
27212 * kern/efi/efi.c (device_path_guid): ... here.
27213
27214 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
27215 chain.mod.
27216 (kernel_mod_HEADERS): Added efi/disk.h.
27217 (_chain_mod_SOURCES): New variable.
27218 (_chain_mod_CFLAGS): Likewise.
27219 (_chain_mod_LDFLAGS): Likewise.
27220 (chain_mod_SOURCES): Likewise.
27221 (chain_mod_CFLAGS): Likewise.
27222 (chain_mod_LDFLAGS): Likewise.
27223
27224 * DISTLIST: Added include/grub/efi/chainloader.h,
27225 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
27226
27227 * include/grub/efi/chainloader.h: New file.
27228 * loader/efi/chainloader.c: Likewise.
27229 * loader/efi/chainloader_normal.c: Likewise.
27230
c0111d6e 272312006-04-30 Marco Gerards <marco@gnu.org>
27232
27233 * commands/configfile.c (grub_cmd_source): New function.
27234 (GRUB_MOD_INIT): Register the commands `source' and `.'.
27235 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
27236
df5341da 272372006-04-30 Marco Gerards <marco@gnu.org>
27238
27239 * normal/execute.c (grub_script_execute_cmd): Change the return
27240 type to `grub_err_t'. Correctly return the error.
27241 (grub_script_execute_cmdline): In case a command line is not a
27242 command or a function, try to interpret it as an assignment.
27243
f85934bd 272442006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
27245
27246 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
27247 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
27248 skip a node whose name is obviously invalid as UTF-16,
27249 i.e. contains a NUL character. Stop the iteration when the last
27250 directory entry is found. Instead of using the return value of
27251 grub_hfsplus_btree_iterate_node, store the value in RET and use
27252 it, because the iterator can be stopped by the last directory
27253 entry.
27254
8f8a2cf8 272552006-04-30 Marco Gerards <marco@gnu.org>
27256
27257 * include/grub/env.h (grub_env_export): New prototype. Reported
27258 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
27259
a27e84ce 272602006-04-30 Marco Gerards <marco@gnu.org>
27261
27262 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
27263 size of the extents in a catalog file record.
27264
eaef0553 272652006-04-29 Marco Gerards <marco@gnu.org>
27266
27267 * commands/configfile.c (grub_cmd_configfile): Execute the
27268 configfile within its own context.
27269
27270 * include/grub/env.h (grub_env_context_open): New prototype.
27271 (grub_env_context_close): Likewise.
27272
27273 * kern/env.c (grub_env): Removed.
27274 (grub_env_sorted): Likewise.
27275 (grub_env_context): New variable.
27276 (grub_env_var_context): Likewise.
27277 (grub_env_find): Search both the active context and the global
27278 context.
27279 (grub_env_context_open): New function.
27280 (grub_env_context_close): Likewise.
27281 (grub_env_insert): Likewise.
27282 (grub_env_remove): Likewise.
27283 (grub_env_export): Likewise.
27284 (grub_env_set): Changed to use helper functions to avoid code
27285 duplication.
27286 (grub_env_iterate): Rewritten so both the current context and the
27287 global context are being used.
27288
27289 * normal/command.c (export_command): New function.
27290 (grub_command_init): Register the `export' function.
27291
7b455f4d 272922006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
27293
27294 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
27295 explicitly to suppress gcc's warnings.
27296 * fs/fat.c (grub_fat_find_dir): Likewise.
27297 (grub_fat_label): Likewise.
27298 * fs/xfs.c (grub_xfs_read_inode): Likewise.
27299 (grub_xfs_mount): Likewise.
27300 (grub_xfs_label): Likewise.
27301 * fs/affs.c (grub_affs_mount): Likewise.
27302 (grub_affs_label): Likewise.
27303 (grub_affs_iterate_dir): Likewise.
27304 * fs/sfs.c (grub_sfs_mount): Likewise.
27305 (grub_sfs_iterate_dir): Likewise.
27306 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
27307 * fs/hfs.c (grub_hfs_mount): Likewise.
27308 (grub_hfs_cmp_catkeys): Likewise.
27309 (grub_hfs_find_dir): Likewise.
27310 (grub_hfs_dir): Likewise.
27311 (grub_hfs_label): Likewise.
27312 * fs/jfs.c (grub_jfs_mount): Likewise.
27313 (grub_jfs_opendir): Likewise.
27314 (grub_jfs_getent): Likewise.
27315 (grub_jfs_lookup_symlink): Likewise.
27316 (grub_jfs_label): Likewise.
27317 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
27318 (grub_hfsplus_iterate_dir): Likewise.
27319 (grub_hfsplus_btree_iterate_node): Made static.
27320
27321 * util/grub-emu.c (prefix): New variable.
27322 (grub_machine_set_prefix): New function.
27323 (main): Do not set the environment variable "prefix" here. Only
27324 set PREFIX, which is used later by grub_machine_set_prefix.
27325
27326 * include/grub/video.h: Do not include grub/symbol.h.
27327 (grub_video_register): Not exported. This symbol is not defined in
27328 the kernel.
27329 (grub_video_unregister): Likewise.
27330 (grub_video_iterate): Likewise.
27331 (grub_video_setup): Likewise.
27332 (grub_video_restore): Likewise.
27333 (grub_video_get_info): Likewise.
27334 (grub_video_get_blit_format): Likewise.
27335 (grub_video_set_palette): Likewise.
27336 (grub_video_get_palette): Likewise.
27337 (grub_video_set_viewport): Likewise.
27338 (grub_video_get_viewport): Likewise.
27339 (grub_video_map_color): Likewise.
27340 (grub_video_map_rgb): Likewise.
27341 (grub_video_map_rgba): Likewise.
27342 (grub_video_fill_rect): Likewise.
27343 (grub_video_blit_glyph): Likewise.
27344 (grub_video_blit_bitmap): Likewise.
27345 (grub_video_blit_render_target): Likewise.
27346 (grub_video_scroll): Likewise.
27347 (grub_video_swap_buffers): Likewise.
27348 (grub_video_create_render_target): Likewise.
27349 (grub_video_delete_render_target): Likewise.
27350 (grub_video_set_active_render_target): Likewise.
27351
27352 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
27353 Undefined.
27354 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
27355
27356 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
27357 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27358 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27359 instead of $(srcdir)/genkernsyms.sh.
27360
27361 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
27362 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27363 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27364 instead of $(srcdir)/genkernsyms.sh.
27365
27366 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
27367 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27368 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27369 instead of $(srcdir)/genkernsyms.sh.
27370
27371 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
27372 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
27373 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
27374 instead of $(srcdir)/genkernsyms.sh.
27375
27376 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
27377 genkernsyms.sh.
27378
27379 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
27380 genkernsyms.sh.
27381 (gensymlist.sh): New target.
27382 (genkernsyms.sh): Likewise.
27383
27384 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
27385 genkernsyms.sh.in and gensymlist.sh.in.
27386
27387 * genkernsyms.sh: Removed.
27388 * gensymlist.sh: Likewise.
f19dbdb7 27389
7b455f4d 27390 * genkernsyms.sh.in: New file.
27391 * gensymlist.sh.in: Likewise.
27392
1885bb27 273932006-04-25 Hollis Blanchard <hollis@penguinppc.org>
27394
27395 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
27396 clobber "prefix", since we may have already set it manually.
27397
71538dff 273982006-04-25 Hollis Blanchard <hollis@penguinppc.org>
27399
27400 * kern/misc.c (abort): New alias for grub_abort.
27401
2965c7cc 274022006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
27403
27404 A new machine-specific function "grub_machine_set_prefix" is
27405 defined. This is called after loading modules, so that a prefix
27406 initialization can use modules. Also, this change adds an
27407 intensive debugging feature for the memory manager via the
27408 configure option "--enable-mm-debug".
f19dbdb7 27409
2965c7cc 27410 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
27411 PART.LEN.
27412
27413 * kern/sparc64/ieee1275/init.c (abort): Removed.
27414 (grub_stop): Likewise.
27415 (grub_exit): New function.
27416 (grub_set_prefix): Renamed to ...
27417 (grub_machine_set_prefix): ... this.
27418 (grub_machine_init): Do not call grub_set_prefix.
27419
27420 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
27421 (grub_machine_set_prefix): ... this.
27422 (grub_machine_init): Do not call grub_set_prefix.
27423
27424 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
27425 (grub_machine_init): Do not set the prefix here.
27426
27427 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
27428
27429 * kern/efi/init.c: Include grub/mm.h.
27430 (grub_efi_set_prefix): New function.
27431
27432 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
27433 (grub_efi_get_filename): New function.
27434 (grub_print_device_path): Renamed to ...
27435 (grub_efi_print_device_path): ... this.
27436
27437 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
27438 [MM_DEBUG] (grub_realloc): Likewise.
27439 [MM_DEBUG] (grub_free): Likewise.
27440 [MM_DEBUG] (grub_memalign): Likewise.
27441 [MM_DEBUG] (grub_mm_debug): New variable.
27442 [MM_DEBUG] (grub_debug_malloc): New function.
27443 [MM_DEBUG] (grub_debug_free): New function.
27444 [MM_DEBUG] (grub_debug_realloc): New function.
27445 [MM_DEBUG] (grub_debug_memalign): New function.
27446
27447 * kern/misc.c (grub_abort): Print a newline to distinguish
27448 the message.
27449
27450 * kern/main.c (grub_main): Call grub_machine_set_prefix and
27451 grub_set_root_dev after loading modules. This is necessary when
27452 setting a prefix depends on modules.
27453
27454 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
27455 (grub_efi_print_device_path): ... this.
27456 (grub_efi_get_filename): New prototype.
27457 (grub_efi_set_prefix): Likewise.
27458
27459 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
27460 and grub/disk.h.
27461 (grub_efidisk_get_device_handle): New prototype.
27462 (grub_efidisk_get_device_name): Likewise.
27463
27464 * include/grub/mm.h: Include config.h.
27465 (MM_DEBUG): Removed.
27466 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
27467 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
27468 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
27469 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
27470 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
27471 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
27472 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
27473 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
27474 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
27475
27476 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
27477
27478 * disk/efi/efidisk.c: Include grub/partition.h.
27479 (iterate_child_devices): New function.
27480 (add_device): First, compare only last device path nodes, so that
27481 devices are sorted by the types.
27482 (grub_efidisk_get_device_handle): New function.
27483 (grub_efidisk_get_device_name): Likewise.
27484
27485 * configure.ac (--enable-mm-debug): New option to enable the
27486 memory manager debugging feature. This makes the binary much
27487 bigger, so is disabled by default.
27488
9cacaa17 274892006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
27490
27491 Use grub_abort instead of grub_stop, and grub_exit must be
27492 define in each architecture now. Also, this change adds support
27493 for EFI disks.
f19dbdb7 27494
9cacaa17 27495 * util/i386/pc/grub-probefs.c: Include grub/term.h.
27496 (grub_getkey): New function.
27497 (grub_term_get_current): Likewise.
27498
27499 * util/i386/pc/grub-setup.c: Include grub/term.h.
27500 (grub_getkey): New function.
27501 (grub_term_get_current): Likewise.
27502
27503 * util/misc.c (grub_stop): Renamed to ...
27504 (grub_exit): ... this.
27505
27506 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
27507 (grub_exit): ... this.
27508 (grub_machine_init): Use grub_abort instead of abort.
27509 (grub_stop): Removed.
27510
27511 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
27512 abort.
27513
27514 * kern/i386/pc/startup.S (grub_exit): New function.
27515 (cold_reboot): New label.
27516
27517 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
27518 (grub_efi_init): Call grub_efidisk_init.
27519 (grub_efi_fini): Call grub_efidisk_fini.
27520
27521 * kern/efi/efi.c: Include grub/mm.h.
27522 (grub_efi_console_control_guid): Renamed to ...
27523 (console_control_guid): ... this.
27524 (grub_efi_loaded_image_guid): Renamed to ...
27525 (loaded_image_guid): ... this.
27526 (grub_efi_locate_handle): New function.
27527 (grub_efi_open_protocol): Likewise.
27528 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
27529 GRUB_EFI_CONSOLE_CONTROL_GUID.
27530 (grub_efi_exit): Removed.
27531 (grub_stop): Likewise.
27532 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
27533 (grub_exit): New function.
27534 (grub_print_device_path): Likewise.
27535
27536 * kern/rescue.c (grub_rescue_cmd_exit): New function.
27537 (grub_enter_rescue_mode): Register "exit".
27538
27539 * kern/misc.c (grub_real_dprintf): A cosmetic change.
27540 (grub_abort): New function.
27541
27542 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
27543
27544 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
27545
27546 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
27547
27548 * include/grub/efi/efi.h (grub_efi_exit): Removed.
27549 (grub_print_device_path): New prototype.
27550 (grub_efi_locate_handle): Likewise.
27551 (grub_efi_open_protocol): Likewise.
27552
27553 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
27554 * disk/efi/efidisk.c: Likewise.
27555
27556 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
27557
27558 * include/grub/efi/console_control.h
27559 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
27560
27561 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
27562 last 8 bytes as an array.
27563 (GRUB_EFI_DISK_IO_GUID): New macro.
27564 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
27565 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
27566 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
27567 grub_uint8_t.
27568 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
27569 (struct grub_efi_device_path): Rename the member "sub_type" to
27570 "subtype".
27571 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
27572 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
27573 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
27574 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
27575 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
27576 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
27577 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
27578 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
27579 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
27580 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
27581 (struct grub_efi_pci_device_path): New structure.
27582 (grub_efi_pci_device_path_t): New type.
27583 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
27584 (struct grub_efi_pccard_device_path): New structure.
27585 (grub_efi_pccard_device_path_t): New type.
27586 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
27587 (struct grub_efi_memory_mapped_device_path): New structure.
27588 (grub_efi_memory_mapped_device_path_t): New type.
27589 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
27590 (struct grub_efi_vendor_device_path): New structure.
27591 (grub_efi_vendor_device_path_t): New type.
27592 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
27593 (struct grub_efi_controller_device_path): New structure.
27594 (grub_efi_controller_device_path_t): New type.
27595 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
27596 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
27597 (struct grub_efi_acpi_device_path): New structure.
27598 (grub_efi_acpi_device_path_t): New type.
27599 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
27600 (struct grub_efi_expanded_acpi_device_path): New structure.
27601 (grub_efi_expanded_acpi_device_path_t): New type.
27602 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
27603 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
27604 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
27605 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
27606 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
27607 (struct grub_efi_atapi_device_path): New structure.
27608 (grub_efi_atapi_device_path_t): New type.
27609 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
27610 (struct grub_efi_fibre_channel_device_path): New structure.
27611 (grub_efi_fibre_channel_device_path_t): New type.
27612 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
27613 (struct grub_efi_1394_device_path): New structure.
27614 (grub_efi_1394_device_path_t): New type.
27615 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
27616 (struct grub_efi_usb_device_path): New structure.
27617 (grub_efi_usb_device_path_t): New type.
27618 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
27619 (struct grub_efi_usb_class_device_path): New structure.
27620 (grub_efi_usb_class_device_path_t): New type.
27621 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
27622 (struct grub_efi_i2o_device_path): New structure.
27623 (grub_efi_i2o_device_path_t): New type.
27624 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
27625 (struct grub_efi_mac_address_device_path): New structure.
27626 (grub_efi_mac_address_device_path_t): New type.
27627 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
27628 (struct grub_efi_ipv4_device_path): New structure.
27629 (grub_efi_ipv4_device_path_t): New type.
27630 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
27631 (struct grub_efi_ipv6_device_path): New structure.
27632 (grub_efi_ipv6_device_path_t): New type.
27633 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
27634 (struct grub_efi_infiniband_device_path): New structure.
27635 (grub_efi_infiniband_device_path_t): New type.
27636 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
27637 (struct grub_efi_uart_device_path): New structure.
27638 (grub_efi_uart_device_path_t): New type.
27639 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
27640 (struct grub_efi_vendor_messaging_device_path): New structure.
27641 (grub_efi_vendor_messaging_device_path_t): New type.
27642 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
27643 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
27644 (struct grub_efi_hard_drive_device_path): New structure.
27645 (grub_efi_hard_drive_device_path_t): New type.
27646 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
27647 (struct grub_efi_cdrom_device_path): New structure.
27648 (grub_efi_cdrom_device_path_t): New type.
27649 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
27650 (struct grub_efi_vendor_media_device_path): New structure.
27651 (grub_efi_vendor_media_device_path_t): New type.
27652 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
27653 (struct grub_efi_file_path_device_path): New structure.
27654 (grub_efi_file_path_device_path_t): New type.
27655 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
27656 (struct grub_efi_protocol_device_path): New structure.
27657 (grub_efi_protocol_device_path_t): New type.
27658 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
27659 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
27660 (struct grub_efi_bios_device_path): New structure.
27661 (grub_efi_bios_device_path_t): New type.
27662 (struct grub_efi_disk_io): New structure.
27663 (grub_efi_disk_io_t): New type.
27664 (struct grub_efi_block_io_media): New structure.
27665 (grub_efi_block_io_media_t): New type.
27666 (struct grub_efi_block_io): New structure.
27667 (grub_efi_block_io_t): New type.
27668
27669 * include/grub/misc.h (grub_stop): Removed.
27670 (grub_exit): New prototype.
27671 (grub_abort): Likewise.
27672
27673 * include/grub/disk.h (enum grub_disk_dev_id): Added
27674 GRUB_DISK_DEVICE_EFIDISK_ID.
27675
27676 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
27677 disk/efi/efidisk.c.
27678 (kernel_syms.lst): Remove the target if an error occurs.
27679
49986a9f 276802006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
27681
27682 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
27683 as it was simply too buggy.
27684
970d3b8a 276852006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
27686
27687 * kern/misc.c (grub_lltoa): New function.
27688 (grub_vsprintf): Added support for the long long suffix,
27689 i.e. "ll".
27690
ff04ec24 276912006-04-20 Hollis Blanchard <hollis@penguinppc.org>
27692
27693 * Makefile.in (LDFLAGS): Add variable.
27694 (LD): Remove variable.
27695 * configure.ac: Add -m32 to LDFLAGS.
27696 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
27697 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
27698 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
27699 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
27700 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
27701 variables.
27702 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
27703 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
27704 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
27705
37e5e1a4 277062006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
27707
27708 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
27709 length for unknown glyph.
27710
c352d8dd 277112006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
27712
2eab1c0d 27713 Add support for pre-loaded modules into the EFI port.
f19dbdb7 27714
2eab1c0d 27715 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
27716 completely. Accept one more argument DIR. The caller has changed.
27717
27718 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
27719
27720 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
27721 (grub_efi_loaded_image_guid): New variable.
27722 (grub_efi_get_loaded_image): New function.
27723 (grub_arch_modules_addr): Likewise.
27724
27725 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
27726 prototype.
27727
27728 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
27729 (struct grub_efi_loaded_image): New structure.
27730 (grub_efi_loaded_image_t): New type.
27731
277322006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 27733
c352d8dd 27734 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
27735 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
27736 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
27737
6d01d6b4 277382006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
27739
27740 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
27741
976a4ea0 277422006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
27743
27744 * DISTLIST: Added include/grub/efi/console.h,
27745 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
27746 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
27747
27748 * include/grub/efi/console.h: New file.
27749 * include/grub/efi/time.h: Likewise.
27750 * include/grub/i386/efi/kernel.h: Likewise.
27751 * kern/efi/init.c: Likewise.
27752 * kern/efi/mm.c: Likewise.
27753 * term/efi/console.c: Likewise.
f19dbdb7 27754
976a4ea0 27755 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
27756 (grub_stop): Removed.
27757 (grub_get_rtc): Likewise.
27758 (grub_machine_init): Simply call grub_efi_init.
27759 (grub_machine_fini): Call grub_efi_fini.
27760
27761 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
27762 (grub_efi_output_string): Removed.
27763 (grub_efi_stall): New function.
27764 (grub_stop): Likewise.
27765 (grub_get_rtc): Likewise.
27766
27767 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
27768 (grub_efi_stall): New prototype.
27769 (grub_efi_allocate_pages): Likewise.
27770 (grub_efi_free_pages): Likewise.
27771 (grub_efi_get_memory_map): Likewise.
27772 (grub_efi_mm_init): Likewise.
27773 (grub_efi_mm_fini): Likewise.
27774 (grub_efi_init): Likewise.
27775 (grub_efi_fini): Likewise.
27776
27777 * include/grub/i386/efi/time.h: Do not include
27778 grub/symbol.h. Include grub/efi/time.h.
27779 (GRUB_TICKS_PER_SECOND): Removed.
27780 (grub_get_rtc): Likewise.
27781
27782 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
27783 Added padding. The EFI spec is buggy.
27784 (GRUB_EFI_BLACK): New macro.
27785 (GRUB_EFI_BLUE): Likewise.
27786 (GRUB_EFI_GREEN): Likewise.
27787 (GRUB_EFI_CYAN): Likewise.
27788 (GRUB_EFI_RED): Likewise.
27789 (GRUB_EFI_MAGENTA): Likewise.
27790 (GRUB_EFI_BROWN): Likewise.
27791 (GRUB_EFI_LIGHTGRAY): Likewise.
27792 (GRUB_EFI_BRIGHT): Likewise.
27793 (GRUB_EFI_DARKGRAY): Likewise.
27794 (GRUB_EFI_LIGHTBLUE): Likewise.
27795 (GRUB_EFI_LIGHTGREEN): Likewise.
27796 (GRUB_EFI_LIGHTCYAN): Likewise.
27797 (GRUB_EFI_LIGHTRED): Likewise.
27798 (GRUB_EFI_LIGHTMAGENTA): Likewise.
27799 (GRUB_EFI_YELLOW): Likewise.
27800 (GRUB_EFI_WHITE): Likewise.
27801 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
27802 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
27803 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
27804 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
27805 (GRUB_EFI_BACKGROUND_RED): Likewise.
27806 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
27807 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
27808 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
27809 (GRUB_EFI_TEXT_ATTR): Likewise.
27810
27811 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
27812 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
27813 (kernel_mod_HEADERS): Added efi/time.h.
27814
83709125 278152006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
27816
27817 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
27818 include/grub/efi/api.h, include/grub/efi/console_control.h,
27819 include/grub/efi/efi.h, include/grub/efi/pe32.h,
27820 include/grub/i386/efi/time.h, kern/efi/efi.c,
27821 kern/i386/efi/init.c, kern/i386/efi/startup.S,
27822 and util/i386/efi/grub-mkimage.c.
27823
27824 * Makefile.in (RMKFILES): Added i386-efi.rmk.
27825
27826 * genmk.rb (PModule#rule): Do not export symbols if
27827 #{prefix}_EXPORTS is set to "no".
27828
27829 * conf/i386-efi.mk: New file.
27830 * conf/i386-efi.rmk: Likewise.
27831 * include/grub/efi/api.h: Likewise.
27832 * include/grub/efi/console_control.h: Likewise.
27833 * include/grub/efi/efi.h: Likewise.
27834 * include/grub/efi/pe32.h: Likewise.
27835 * include/grub/i386/efi/time.h: Likewise.
27836 * kern/efi/efi.c: Likewise.
27837 * kern/i386/efi/init.c: Likewise.
27838 * kern/i386/efi/startup.S: Likewise.
27839 * util/i386/efi/grub-mkimage.c: Likewise.
27840
278412006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 27842
27843 * include/grub/script.h: Include <grub/parser.h> and
27844 "grub_script.tab.h".
27845 (struct grub_lexer_param): New struct.
27846 (struct grub_parser_param): Likewise.
27847 (grub_script_create_arglist): Pass the state in an argument.
27848 (grub_script_add_arglist): Likewise.
27849 (grub_script_create_cmdline): Likewise.
27850 (grub_script_create_cmdblock): Likewise.
27851 (grub_script_create_cmdif): Likewise.
27852 (grub_script_create_cmdmenu): Likewise.
27853 (grub_script_add_cmd): Likewise.
27854 (grub_script_arg_add): Likewise.
27855 (grub_script_lexer_ref): Likewise.
27856 (grub_script_lexer_deref): Likewise.
27857 (grub_script_lexer_record_start): Likewise.
27858 (grub_script_lexer_record_stop): Likewise.
27859 (grub_script_mem_record): Likewise.
27860 (grub_script_mem_record_stop): Likewise.
27861 (grub_script_malloc): Likewise.
27862 (grub_script_yylex): Likewise.
27863 (grub_script_yyparse): Likewise.
27864 (grub_script_yyerror): Likewise.
27865 (grub_script_yylex): Likewise.
27866 (grub_script_lexer_init): Return the state.
27867
27868 * normal/lexer.c (grub_script_lexer_state): Removed variable.
27869 (grub_script_lexer_done): Likewise.
27870 (grub_script_lexer_getline): Likewise.
27871 (grub_script_lexer_refs): Likewise.
27872 (script): Likewise.
27873 (newscript): Likewise.
27874 (record): Likewise.
27875 (recording): Likewise.
27876 (recordpos): Likewise.
27877 (recordlen): Likewise.
27878 (grub_script_lexer_init): Return the state instead of setting
27879 global variables.
27880 (grub_script_lexer_ref): Use the newly added argument for state
27881 instead of globals.
27882 (grub_script_lexer_deref): Likewise.
27883 (grub_script_lexer_record_start): Likewise.
27884 (grub_script_lexer_record_stop): Likewise.
27885 (recordchar): Likewise.
27886 (nextchar): Likewise.
27887 (grub_script_yylex2): Likewise.
27888 (grub_script_yylex): Likewise.
27889 (grub_script_yyerror): Likewise.
27890
27891 * normal/parser.y (func_mem): Removed variable.
27892 (menu_entry): Likewise.
27893 (err): Likewise.
27894 (%lex-param): New parser option.
27895 (%parse-param): Likewise.
27896 (script): Always return the AST.
27897 (argument): Pass the state around.
27898 (arguments): Likewise.
27899 (grubcmd): Likewise.
27900 (commands): Likewise.
27901 (function): Likewise.
27902 (menuentry): Likewise.
27903 (if_statement): Likewise.
27904 (if): Likewise.
27905
27906 * normal/script.c (grub_script_memused): Removed variable.
27907 (grub_script_parsed): Likewise.
27908 (grub_script_malloc): Added a state argument. Use that instead of
27909 global variables.
27910 (grub_script_mem_record): Likewise.
27911 (grub_script_mem_record_stop): Likewise.
27912 (grub_script_arg_add): Likewise.
27913 (grub_script_add_arglist): Likewise.
27914 (grub_script_create_cmdline): Likewise.
27915 (grub_script_create_cmdif): Likewise.
27916 (grub_script_create_cmdmenu): Likewise.
27917 (grub_script_add_cmd): Likewise.
27918 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 27919
e2a8c904 279202006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 27921
27922 * normal/command.c (grub_command_init): Remove the title command.
27923
27924 * normal/lexer.c (grub_script_yylex): Renamed from this...
27925 (grub_script_yylex2): ... to this.
27926 (grub_script_yylex): New function. Temporary
27927 introduced to filter some tokens.
27928 (grub_script_yyerror): Print a newline.
27929
27930 * normal/main.c (read_config_file): Output information about the
27931 lines that contain errors. Wait for a key after all lines have
27932 been processed. Don't return an empty menu.
27933
27934 * normal/parser.y (func_mem): Don't initialize.
27935 (menu_entry): Likewise.
27936 (err): New variable.
27937 (script): Don't return anything when an error was encountered.
27938 (ws, returns): Removed rules.
27939 (argument): Disabled concatenated variable support.
27940 (arguments): Remove explicit separators.
27941 (grubcmd): Likewise.
27942 (function): Likewise.
27943 (menuentry): Likewise.
27944 (if): Likewise.
27945 (commands): Likewise. Add error handling.
27946
27947 * normal/script.c (grub_script_create_cmdline): If
27948 `grub_script_parsed' is 0, assume the parser encountered an error.
27949
c9a86192 279502006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
27951
27952 * configure.ac: Add support for EFI. Fix the typo
27953 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
27954
70f3b243 279552006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
27956
27957 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
27958 foreign multibyte characters should be shown correctly.
27959
65f201ad 279602006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
27961
27962 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
27963 calculation.
27964 (read_config_file): Made it to close file before returning.
27965
b4b93674 279662006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
27967
27968 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
27969 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
27970 video/i386/pc/vbefill.c.
27971
27972 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
27973 video/i386/pc/vbefill.c.
27974
27975 * include/grub/video.h (grub_video_blit_format): New enum.
27976 (grub_video_mode_info): Added new member blit_format.
27977 (grub_video_get_blit_format): New function prototype.
27978
27979 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
27980 function prototype.
27981 (grub_video_vbe_map_rgb): Likewise.
27982 (grub_video_vbe_unmap_color): Likewise.
27983
27984 * include/grub/i386/pc/vbeblit.h: New file.
27985
27986 * include/grub/i386/pc/vbefill.h: New file.
27987
27988 * video/video.c (grub_video_get_blit_format): New function.
27989 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
27990 (grub_video_vbe_map_rgb): Likewise.
27991 (grub_video_vbe_unmap_color): Likewise.
27992
27993 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
27994 optimized fills.
27995 (grub_video_vbe_blit_render_target): Changed to use more optimized
27996 blits.
27997 (grub_video_vbe_setup): Added detection for optimized settings.
27998 (grub_video_vbe_create_render_target): Likewise.
27999
28000 * video/i386/pc/vbeblit.c: New file.
28001
28002 * video/i386/pc/vbefill.c: New file.
28003
c2379b9c 280042006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
28005
28006 * font/manager.c (grub_font_get_glyph): Removed font fixup from
28007 here...
28008
28009 * util/unifont2pff.rb: ... and moved it to here. Improved argument
28010 parsing to support both hex and dec ranges. If filename was missing
28011 show usage information.
28012
bd0d7896 280132006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
28014
28015 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
28016 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
28017
28018 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
28019 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
28020 (video_mod_SOURCES): Added.
28021 (video_mod_CFLAGS): Likewise.
28022 (video_mod_LDFLAGS): Likewise.
28023 (gfxterm_mod_SOURCES): Likewise.
28024 (gfxterm_mod_CFLAGS): Likewise.
28025 (gfxterm_mod_LDFLAGS): Likewise.
28026 (videotest_mod_SOURCES): Likewise.
28027 (videotest_mod_CFLAGS): Likewise.
28028 (videotest_mod_LDFLAGS): Likewise.
28029 (vesafb_mod_SOURCES): Removed.
28030 (vesafb_mod_CFLAGS): Likewise.
28031 (vesafb_mod_LDFLAGS): Likewise.
28032 (vga_mod_SOURCES): Likewise.
28033 (vga_mod_CFLAGS): Likewise.
28034 (vga_mod_LDFLAGS): Likewise.
28035
28036 * commands/videotest.c: New file.
28037
28038 * font/manager.c (fill_with_default_glyph): Modified to use
28039 grub_font_glyph.
28040 (grub_font_get_glyph): Likewise.
28041 (fontmanager): Renamed from this...
28042 (font_manager): ... to this.
28043
28044 * include/grub/font.h (grub_font_glyph): Added new structure.
28045 (grub_font_get_glyph): Modified to use grub_font_glyph.
28046
28047 * include/grub/misc.h (grub_abs): Added as inline function.
28048
28049 * include/grub/video.h: New file.
28050
28051 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
28052 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
28053 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
28054 (grub_vbe_get_controller_info): Renamed from this...
28055 (grub_vbe_bios_get_controller_info): ... to this.
28056 (grub_vbe_get_mode_info): Renamed from this...
28057 (grub_vbe_bios_get_mode_info): ... to this.
28058 (grub_vbe_set_mode): Renamed from this...
28059 (grub_vbe_bios_set_mode): ... to this.
28060 (grub_vbe_get_mode): Renamed from this...
28061 (grub_vbe_bios_get_mode): ... to this.
28062 (grub_vbe_set_memory_window): Renamed from this...
28063 (grub_vbe_bios_set_memory_window): ... to this.
28064 (grub_vbe_get_memory_window): Renamed from this...
28065 (grub_vbe_bios_get_memory_window): ... to this.
28066 (grub_vbe_set_scanline_length): Renamed from this...
28067 (grub_vbe_set_scanline_length): ... to this.
28068 (grub_vbe_get_scanline_length): Renamed from this...
28069 (grub_vbe_bios_get_scanline_length): ... to this.
28070 (grub_vbe_set_display_start): Renamed from this...
28071 (grub_vbe_bios_set_display_start): ... to this.
28072 (grub_vbe_get_display_start): Renamed from this...
28073 (grub_vbe_bios_get_display_start): ... to this.
28074 (grub_vbe_set_palette_data): Renamed from this...
28075 (grub_vbe_bios_set_palette_data): ... to this.
28076 (grub_vbe_set_pixel_rgb): Removed.
28077 (grub_vbe_set_pixel_index): Likewise.
28078
28079 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
28080 from this...
28081 (grub_vbe_bios_get_controller_info): ... to this.
28082 (grub_vbe_get_mode_info): Renamed from this...
28083 (grub_vbe_bios_get_mode_info): ... to this.
28084 (grub_vbe_set_mode): Renamed from this...
28085 (grub_vbe_bios_set_mode): ... to this.
28086 (grub_vbe_get_mode): Renamed from this...
28087 (grub_vbe_bios_get_mode): ... to this.
28088 (grub_vbe_set_memory_window): Renamed from this...
28089 (grub_vbe_bios_set_memory_window): ... to this.
28090 (grub_vbe_get_memory_window): Renamed from this...
28091 (grub_vbe_bios_get_memory_window): ... to this.
28092 (grub_vbe_set_scanline_length): Renamed from this...
28093 (grub_vbe_set_scanline_length): ... to this.
28094 (grub_vbe_get_scanline_length): Renamed from this...
28095 (grub_vbe_bios_get_scanline_length): ... to this.
28096 (grub_vbe_set_display_start): Renamed from this...
28097 (grub_vbe_bios_set_display_start): ... to this.
28098 (grub_vbe_get_display_start): Renamed from this...
28099 (grub_vbe_bios_get_display_start): ... to this.
28100 (grub_vbe_set_palette_data): Renamed from this...
28101 (grub_vbe_bios_set_palette_data): ... to this.
28102 (grub_vbe_bios_get_controller_info): Fixed problem with registers
28103 getting corrupted after calling it. Added more pushes and pops.
28104 (grub_vbe_bios_set_mode): Likewise.
28105 (grub_vbe_bios_get_mode): Likewise.
28106 (grub_vbe_bios_get_memory_window): Likewise.
28107 (grub_vbe_bios_set_scanline_length): Likewise.
28108 (grub_vbe_bios_get_scanline_length): Likewise.
28109 (grub_vbe_bios_get_display_start): Likewise.
28110 (grub_vbe_bios_set_palette_data): Likewise.
28111
28112 * normal/cmdline.c (cl_set_pos): Refresh the screen.
28113 (cl_insert): Likewise.
28114 (cl_delete): Likewise.
28115
28116 * term/gfxterm.c: New file.
28117
28118 * term/i386/pc/vesafb.c: Removed file.
28119
28120 * video/video.c: New file.
28121
28122 * video/i386/pc/vbe.c (real2pm): Added new function.
28123 (grub_video_vbe_draw_pixel): Likewise.
28124 (grub_video_vbe_get_video_ptr): Likewise.
28125 (grub_video_vbe_get_pixel): Likewise
28126 (grub_video_vbe_init): Likewise.
28127 (grub_video_vbe_fini): Likewise.
28128 (grub_video_vbe_setup): Likewise.
28129 (grub_video_vbe_get_info): Likewise.
28130 (grub_video_vbe_set_palette): Likewise.
28131 (grub_video_vbe_get_palette): Likewise.
28132 (grub_video_vbe_set_viewport): Likewise.
28133 (grub_video_vbe_get_viewport): Likewise.
28134 (grub_video_vbe_map_color): Likewise.
28135 (grub_video_vbe_map_rgb): Likewise.
28136 (grub_video_vbe_map_rgba): Likewise.
28137 (grub_video_vbe_unmap_color): Likewise.
28138 (grub_video_vbe_fill_rect): Likewise.
28139 (grub_video_vbe_blit_glyph): Likewise.
28140 (grub_video_vbe_blit_bitmap): Likewise.
28141 (grub_video_vbe_blit_render_target): Likewise.
28142 (grub_video_vbe_scroll): Likewise.
28143 (grub_video_vbe_swap_buffers): Likewise.
28144 (grub_video_vbe_create_render_target): Likewise.
28145 (grub_video_vbe_delete_render_target): Likewise.
28146 (grub_video_vbe_set_active_render_target): Likewise.
28147 (grub_vbe_set_pixel_rgb): Remove function.
28148 (grub_vbe_set_pixel_index): Likewise.
28149 (index_color_mode): Remove static variable.
28150 (active_mode): Likewise.
28151 (framebuffer): Likewise.
28152 (bytes_per_scan_line): Likewise.
28153 (grub_video_vbe_adapter): Added new static variable.
28154 (framebuffer): Likewise.
28155 (render_target): Likewise.
28156 (initial_mode): Likewise.
28157 (mode_in_use): Likewise.
28158 (mode_list): Likewise.
28159
5f97350b 281602006-03-10 Marco Gerards <marco@gnu.org>
28161
28162 * configure.ac (AC_INIT): Bumped to 1.93.
28163
28164 * DISTLIST: Added `include/grub/hfs.h'.
28165
a3c5c6f8 281662006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
28167
28168 * boot/i386/pc/boot.S (general_error): Before looping, try INT
28169 18H, which might help the BIOS falling back to next boot media.
28170
6de53d26 281712006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
28172
28173 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
28174 Poe Chen <poe.poechen@gmail.com>.
28175
77c4a393 281762006-01-17 Marco Gerards <marco@gnu.org>
28177
28178 * include/grub/normal.h: Include <grub/script.h>.
28179 (grub_command_list): Removed struct.
28180 (grub_command_list_t): Removed type.
28181 (grub_menu_entry): Remove members `num' and `command_list'. Add
28182 members `commands' and `sourcecode'.
28183 * include/grub/script.h: Add inclusion guards.
28184 (grub_script_cmd_menuentry): New struct.
28185 (grub_script_execute_menuentry): New prototype.
28186 (grub_script_lexer_record_start): Likewise.
28187 (grub_script_lexer_record_stop): Likewise.
28188 * normal/execute.c (grub_script_execute_menuentry): New function.
28189 * normal/lexer.c (record, recording, recordpos, recordlen): New
28190 variables.
28191 (grub_script_lexer_record_start): New function.
28192 (grub_script_lexer_record_stop): Likewise.
28193 (recordchar): Likewise.
28194 (nextchar): Likewise.
28195 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
28196 2048 as the buffer size. Add the tokens `menuentry' and `@'.
28197 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
28198 (current_menu): New variable.
28199 (free_menu): Mainly rewritten.
28200 (grub_normal_menu_addentry): New function.
28201 (read_config_file): Rewritten.
28202 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 28203 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 28204 the menu entry.
28205 (run): Mainly rewritten.
28206 * normal/parser.y (menu_entry): New variable.
28207 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
28208 (menuentry): New rule.
28209 (command): Add `menuentry'.
28210 (if_statement): Allow additional returns before `fi'.
28211 * normal/script.c (grub_script_create_cmdmenu): New function.
28212
144f1f98 282132006-01-03 Marco Gerards <marco@gnu.org>
28214
28215 * INSTALL: GNU Bison is required.
28216 * configure.ac: Rewritten the test to detect Bison.
28217 * Makefile.in (YACC): New variable. Reported by Xun Sun
28218 <xun.sun.cn@gmail.com>.
28219
af4b2d89 282202006-01-03 Marco Gerards <marco@gnu.org>
28221
28222 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
28223 the HFS+ filesystem to filesystem blocks.
28224 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
28225 GCC warning is silenced.
28226
15643b71 282272006-01-03 Marco Gerards <marco@gnu.org>
28228
28229 * partmap/apple.c (apple_partition_map_iterate): Convert the data
28230 read from disk from big endian to host byte order.
28231
00905879 282322006-01-03 Hollis Blanchard <hollis@penguinppc.org>
28233
28234 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
28235 documentation.
28236 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
28237 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
28238 embedded HFS+ filesystem.
28239 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
28240 (grub_hfs_sblock): Move from here...
28241 * include/grub/hfs.h: To here... New file.
28242 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
28243 documentation.
28244 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
28245 New macros.
28246 (grub_hfsplus_volheader): Change type of member `magic' to
28247 `grub_uint16_t'.
28248 (grub_hfsplus_data): Add new member `embedded_offset'.
28249 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
28250 returned block.
28251 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
28252 Calculate the offset.
28253
8899bc3e 282542005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28255
28256 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
28257 Removed.
28258 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
28259
ae8c0277 282602005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28261
28262 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
28263 ENV->NAME is NULL after allocating ENV->VALUE.
28264
07084456 282652005-12-25 Marco Gerards <marco@gnu.org>
28266
28267 * kern/env.c (grub_env_set): Rewritten the error handling code.
28268
4750f5f1 282692005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28270
28271 * geninit.sh: Made more robust, and more portable.
28272
50214199 282732005-12-25 Marco Gerards <marco@gnu.org>
28274
28275 Add support for Apple HFS+ filesystems.
f19dbdb7 28276
50214199 28277 * fs/hfsplus.c: New file.
28278
28279 * DISTLIST: Added `fs/hfsplus.c'.
28280
28281 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
28282 (hfsplus_mod_SOURCES): New variable.
28283 (hfsplus_mod_CFLAGS): Likewise.
28284 (hfsplus_mod_LDFLAGS): Likewise.
28285 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
28286 (grub_setup_SOURCES): Likewise.
28287 (grub_mkdevicemap_SOURCES): Likewise.
28288 (grub_emu_SOURCES): Likewise.
28289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28290
28291 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
28292
28293 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
28294
befaed6c 282952005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
28296
28297 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
28298 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
28299 include/grub/parser.h, include/grub/script.h, kern/parser.c,
28300 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
28301 normal/lexer.c, normal/parser.y, normal/script.c, and
28302 partmap/gpt.c.
28303 Removed kern/sparc64/cache.c.
28304
28305 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
28306 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
28307 grub_emu_init.c.
28308
28309 * configure.ac (AC_INIT): Bumped to 1.92.
28310
6a124103 283112005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
28312
28313 * kern/err.c (grub_error_push): Added new function to support error
28314 stacks.
28315 (grub_error_pop): Likewise.
28316 (grub_error_stack_items): New local variable to support error stacks.
28317 (grub_error_stack_pos): Likewise.
28318 (grub_error_stack_assert): Likewise.
28319 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
28320 stack depth.
28321 (grub_print_error): Added support to print errors from error stack.
28322
28323 * include/grub/err.h (grub_error_push): Added function prototype.
28324 (grub_error_pop): Likewise.
28325
be973c1b 283262005-12-09 Hollis Blanchard <hollis@penguinppc.org>
28327
28328 * configure.ac: Accept `powerpc64' as host_cpu.
28329 (amd64): Rename to `biarch32'.
28330
28331 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
28332 non-cacheline-aligned addresses.
28333
28334 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
28335 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
28336 if `size' is non-zero.
28337
b04216ab 283382005-12-03 Marco Gerards <mgerards@xs4all.nl>
28339
28340 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
28341 and `cd' to make sure the filename is not prefixed with a
28342 directory name.
28343 (pkgdata_MODULES): Add `gpt.mod'.
28344 (gpt_mod_SOURCES): New variable.
28345 (gpt_mod_CFLAGS): Likewise.
28346 (gpt_mod_LDFLAGS): Likewise.
28347
28348 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
28349
28350 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
28351 New macro.
28352
28353 * partmap/gpt.c: New file.
28354
28355 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
28356 GPT partition map is detected.
28357
41730ed9 283582005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
28359
28360 * commands/i386/pc/play.c: New file.
28361 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
28362 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
28363 macros.
f19dbdb7 28364
95dc3643 283652005-11-27 Marco Gerards <mgerards@xs4all.nl>
28366
28367 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
28368 ((unused))' to silence gcc warning.
28369
1569ec51 283702005-11-26 Hollis Blanchard <hollis@penguinppc.org>
28371
28372 * configure.ac: Correct `AC_PROG_YACC' test.
28373
9abde152 283742005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28375
28376 * util/powerpc/ieee1275/grub-install.in: Run the mount point
28377 check before installing files.
28378
44b83271 283792005-11-22 Mike Small <smallm@panix.com>
28380
28381 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
28382 number regex so multidigit numbers are recognized correctly.
28383
283842005-11-22 Mike Small <smallm@panix.com>
28385
28386 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
28387 debugging message before attempting to claim memory.
28388 (grub_rescue_cmd_initrd): Add a claim debugging message and try
28389 multiple addresses in case of failure.
28390
9c12956b 283912005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28392
28393 * term/tparm.c (get_space): Remove empty `if' statement.
28394
28395 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
28396
28397 * kern/parser.c (check_varstate): Rename `state' to 's'.
28398
aeaf81d9 283992005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28400
28401 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
28402 variable definitions to the beginning of each function. Sort stack
28403 variables by size.
28404 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
28405 `buf' argument to `char *'.
28406
79bbb63f 284072005-11-22 Hollis Blanchard <hollis@penguinppc.org>
28408
28409 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
28410 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 28411 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 28412 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
28413 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
28414 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
28415 configfile.mod, search.mod, gzio.mod and test.mod.
28416 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
28417 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
28418 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
28419 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
28420 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
28421 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
28422 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
28423 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
28424 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
28425 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
28426 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
28427 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
28428 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
28429 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
28430 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
28431 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
28432 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
28433 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
28434 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
28435 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
28436 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
28437 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
28438 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
28439
28440 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
28441 `grep --include'.
28442 (pkgdata_MODULES): Add test.mod.
28443
233b1628 284442005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28445
28446 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
28447 appending to variables with "+=".
28448 (PModule): Use full pathname to generate *.lst filenames.
28449
28450 * Makefile.in: Fixed list rules moved from genmk.rb.
28451 (.DELETE_ON_ERROR): New special target.
28452 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
28453
28454 * conf/i386-pc.rmk: Include conf/common.mk.
28455 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 28456 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 28457 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
28458 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
28459 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
28460 configfile.mod, search.mod, gzio.mod and test.mod.
28461 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
28462 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
28463 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
28464 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
28465 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
28466 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
28467 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
28468 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
28469 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
28470 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
28471 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
28472 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
28473 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
28474 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
28475 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
28476 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
28477 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
28478 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
28479 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
28480 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
28481 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
28482 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
28483 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
28484 here...
28485 * conf/common.rmk: ... to here. New file.
28486
28487 * conf/common.mk: New file.
28488
16f820c8 284892005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
28490
28491 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
28492 (grub_script.tab.c): ... here.
28493
28494 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
28495 (grub_script.tab.c): ... here.
28496
28497 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
28498 (grub_script.tab.c): ... here.
28499
28500 * normal/command.c (grub_command_find): Fixed a memory leak of
28501 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
28502
63ba1554 285032005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28504
28505 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
28506 "@" which marks the start of a comment on ARM.
28507 (VARIABLE): Likewise.
28508
7f67dc13 285092005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28510
79bbb63f 28511 Add support for Linux/ADFS partition tables.
7f67dc13 28512
28513 * partmap/acorn.c: New file.
28514
28515 * include/grub/acorn_filecore.h: Likewise.
28516
28517 * DISTLIST: Added `partmap/acorn.c' and
28518 `include/grub/acorn_filecore.h'.
f19dbdb7 28519
7f67dc13 28520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
28521 `partmap/acorn.c'.
28522 (pkgdata_MODULES): Add `acorn.mod'.
28523 (acorn_mod_SOURCES): New variable.
28524 (acorn_mod_CFLAGS): Likewise.
28525
28526 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
28527 `partmap/acorn.c'.
28528 (pkgdata_MODULES): Add `acorn.mod'.
28529 (acorn_mod_SOURCES): New variable.
28530 (acorn_mod_CFLAGS): Likewise.
28531
28532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
28533 (pkgdata_MODULES): Add `acorn.mod'.
28534 (acorn_mod_SOURCES): New variable.
28535 (acorn_mod_CFLAGS): Likewise.
28536 (acorn_mod_LDFLAGS): Likewise.
28537
28538 * include/types.h (grub_disk_addr_t): New typedef.
28539
6d099807 285402005-11-13 Marco Gerards <mgerards@xs4all.nl>
28541
28542 * geninit.sh: New file.
28543
28544 * geninitheader.sh: Likewise.
28545
28546 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
28547 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
28548 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
28549 * commands/configfile.c (grub_configfile_init)
28550 (grub_configfile_fini): Likewise.
28551 * commands/default.c (grub_default_init, grub_default_fini):
28552 Likewise.
28553 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
28554 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
28555 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
28556 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
28557 Likewise.
28558 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
28559 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
28560 Likewise.
28561 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 28562 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 28563 Likewise.
28564 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
28565 Likewise.
fe6b695a 28566 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 28567 Likewise.
28568 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
28569 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
28570 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
28571 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
28572 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
28573 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
28574 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
28575 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
28576 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
28577 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
28578 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
28579 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
28580 * partmap/amiga.c (grub_amiga_partition_map_init)
28581 (grub_amiga_partition_map_fini): Likewise.
28582 * partmap/apple.c (grub_apple_partition_map_init)
28583 (grub_apple_partition_map_fini): Likewise.
28584 * partmap/pc.c (grub_pc_partition_map_init)
28585 (grub_pc_partition_map_fini): Likewise.
28586 * partmap/sun.c (grub_sun_partition_map_init,
28587 grub_sun_partition_map_fini): Likewise.
28588 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
28589 Likewise.
28590
28591 * util/grub-emu.c: Include <grub_modules_init.h>.
28592 (main): Don't initialize and de-initialize any modules directly,
28593 use `grub_init_all' and `grub_fini_all' instead.
28594
28595 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
28596 `grub_vesafb_mod_init'.
28597 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
28598 all users.
28599 * term/i386/pc/vga.c (grub_vga_init): Renamed to
28600 `grub_vga_mod_init'. Updated all users.
28601 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 28602
6d099807 28603 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
28604 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
28605 rules.
28606
28607 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
28608 Generate a function to initialize the module in utilities.
28609 Updated all callers.
28610 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
28611 initialize the module in utilities. Updated all callers.
28612
9046bcf0 286132005-11-09 Hollis Blanchard <hollis@penguinppc.org>
28614
28615 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
28616 escape sequence and a literal ^L to clear the screen.
28617
28618 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
28619 when returning from Open Firmware.
28620
d13ea639 286212005-11-09 Hollis Blanchard <hollis@penguinppc.org>
28622
28623 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
28624 (grub_ofconsole_height): Likewise.
28625 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
28626 manually insert a '\n'.
28627 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
28628 `grub_ofconsole_height'. Return early if these are already set.
28629
a8fcf206 286302005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
28631
28632 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
28633 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
28634 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
28635 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
28636 and `normal/script.c'.
28637 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
28638 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
28639 (test_mod_SOURCES): New variable.
28640 (test_mod_CFLAGS): Likewise.
28641 (test_mod_LDFLAGS): Likewise.
28642 (pkgdata_MODULES): Add `test.mod'.
28643 (grub_script.tab.c): New rule.
28644 (grub_script.tab.h): Likewise.
28645
b6b32745 286462005-11-07 Marco Gerards <mgerards@xs4all.nl>
28647
28648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
28649 `commands/test.c', `normal/execute.c', `normal/lexer.c',
28650 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
28651 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
28652 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
28653 (test_mod_SOURCES): New variable.
28654 (test_mod_CFLAGS): Likewise.
28655 (pkgdata_MODULES): Add `test.mod'.
28656 (grub_script.tab.c): New rule.
28657 (grub_script.tab.h): Likewise.
28658
daac212a 286592005-11-06 Marco Gerards <mgerards@xs4all.nl>
28660
28661 Add initial scripting support.
28662
28663 * commands/test.c: New file.
28664 * include/grub/script.h: Likewise.
28665 * normal/execute.c: Likewise.
28666 * normal/function.c: Likewise.
28667 * normal/lexer.c: Likewise.
28668 * normal/parser.y: Likewise.
28669 * normal/script.c: Likewise.
28670
28671 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 28672
daac212a 28673 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
28674 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
28675 `normal/function.c' and `normal/script.c'.
28676 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
28677 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 28678 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
28679 variables.
daac212a 28680 (pkgdata_MODULES): Add `test.mod'.
28681 (grub_script.tab.c): New rule.
28682 (grub_script.tab.h): Likewise.
28683
28684 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
28685
28686 * include/grub/normal.h (grub_test_init): New prototype.
28687 (grub_test_fini): Likewise.
f19dbdb7 28688
daac212a 28689 * normal/command.c: Include <grub/script.h>.
28690 (grub_command_execute): Rewritten.
f19dbdb7 28691
daac212a 28692 * util/grub-emu.c (main): Call `grub_test_init' and
28693 `grub_test_fini'.
28694
77500b2b 286952005-11-03 Hollis Blanchard <hollis@penguinppc.org>
28696
28697 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
28698 to 0.
28699 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
28700 there are no pending characters.
28701
e45deb9e 287022005-11-03 Hollis Blanchard <hollis@penguinppc.org>
28703
28704 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
28705 `grub_strndup' to drop device arguments. Replace unnecessary
28706 `grub_strndup' with `grub_strdup'.
28707
4ce32619 287082005-11-03 Hollis Blanchard <hollis@penguinppc.org>
28709
28710 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
28711 `debug' environment variable has been set.
28712
287132005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 28714
4ce32619 28715 * Makefile.in (install-local): Use $(DATA).
28716 (uninstall): Likewise.
28717 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
28718 (sbin_UTILITIES): ... to here.
28719 (sbin_SCRIPTS): New variable.
28720 (grub_install_SOURCES): New variable.
28721 * util/powerpc/ieee1275/grub-install.in: New file.
28722 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
28723 variable.
28724 (add_segments): Call `grub_util_get_path'.
28725
25fe6f03 287262005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
28727
28728 From Timothy Baldwin:
28729 * commands/ls.c (grub_ls_list_files): Close FILE with
28730 grub_file_close.
28731 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
28732
04ccf3ec 287332005-10-24 Marco Gerards <mgerards@xs4all.nl>
28734
28735 * include/grub/parser.h: New file.
28736
28737 * kern/parser.c: Likewise.
28738
28739 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
28740 (grub_setup_SOURCES): Likewise.
28741 (grub_probefs_SOURCES): Likewise.
28742 (grub_emu_SOURCES): Likewise.
28743 (kernel_img_HEADERS): Add `parser.h'.
28744
28745 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
28746 (grub_emu_SOURCES): Add `kern/parser.c'.
28747 (grubof_SOURCES): Likewise.
28748
28749 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
28750 (grubof_SOURCES): Add `kern/parser.c'.
28751
28752 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
28753
28754 * kern/misc.c (grub_split_cmdline): Removed function.
28755
28756 * kern/rescue.c: Include <grub/parser.h>.
28757 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
28758 of `grub_split_cmdline'.
28759
28760 * normal/command.c: Include <grub/parser.h>.
28761 (grub_command_execute): Use `grub_parser_split_cmdline' instead
28762 of `grub_split_cmdline'.
28763
28764 * normal/completion.c: Include <grub/parser.h>.
28765 (cmdline_state): New variable.
28766 (iterate_dir): End the filename with a quote depending on the
28767 command line state.
28768 (get_state): new function.
28769 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
28770 split the arguments and determine the current argument. When the
28771 argument string is not quoted, escape all spaces.
28772
6d8f4b0e 287732005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28774
28775 * normal/sparc64/setjmp.S: New file.
28776
15cf03ed 287772005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28778
28779 * include/grub/sparc64/libgcc.h: New file.
28780 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
28781 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
28782 normal/sparc64/setjmp.c.
28783
03e8661a 287842005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
28785
28786 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
28787 * kern/sparc64/cache.S: New file.
28788 * kern/sparc64/cache.c: Removed.
28789 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
28790 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
28791 -mtune=ultrasparc.
28792 (COMMON_LDFLAGS): Add -melf64_sparc.
28793 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
28794 (grubof_SOURCES): Use cache.S instead of cache.c.
28795 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
28796 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
28797 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
28798 commented though.
28799 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
28800 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
28801 (linux_mod_CFLAGS): Commented out.
28802 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
28803 out because module isn't built.
28804 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
28805 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
28806 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
28807 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
28808 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
28809 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
28810 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
28811 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
28812 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
28813 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
28814 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
28815 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
28816 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
28817 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
28818
34eeec8a 288192005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
28820
28821 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
28822 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
28823 longer, because HFS should not be used on PC.
28824
708367a3 288252005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
28826
28827 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
28828 consistently within the loop.
28829
6fa1251a 288302005-10-15 Marco Gerards <mgerards@xs4all.nl>
28831
28832 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
28833 directory can not be read.
28834
4801580b 288352005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28836
28837 * configure.ac (AC_INIT): Increase the version number to 1.91.
28838
28839 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
28840 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
28841 term/i386/pc/serial.c.
28842
219ad426 288432005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28844
28845 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
28846 file size must be permitted.
28847
28848 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
28849 between %ah and %al.
28850
688e5699 288512005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28852
28853 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
28854 grub_uint64_t.
28855 Call the hook with a NUL-terminated filename.
28856 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
28857 grub_cpu_to_be32.
28858
28859 * kern/term.c (cursor_state): New variable.
28860 (grub_term_set_current): Reset the cursor state on a new
28861 terminal.
28862 (grub_setcursor): Rewritten to use CURSOR_STATE.
28863 (grub_getcursor): New function.
28864
28865 * include/grub/term.h (grub_getcursor): New prototype.
28866
28867 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
28868 integers on ARM. Reported by Timothy Baldwin
28869 <T.E.Baldwin99@members.leeds.ac.uk>.
28870
bb34586c 288712005-10-11 Marco Gerards <mgerards@xs4all.nl>
28872
28873 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
28874 allocated.
28875 (grub_sfs_dir): Likewise.
28876
9a909877 288772005-10-09 Marco Gerards <mgerards@xs4all.nl>
28878
28879 Add support for the SFS filesystem.
28880
28881 * fs/sfs.c: New file.
28882
28883 * DISTLIST: Added `fs/sfs.c'.
28884
28885 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
28886 (grub_probefs_SOURCES): Likewise.
28887 (grub_emu_SOURCES): Likewise.
28888 (pkgdata_MODULES): Add `sfs.mod'.
28889 (sfs_mod_SOURCES): New variable.
28890 (sfs_mod_CFLAGS): Likewise.
28891 (sfs_mod_LDFLAGS): Likewise.
28892
28893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
28894 (pkgdata_MODULES): Add `sfs.mod'.
28895 (sfs_mod_SOURCES): New variable.
28896 (sfs_mod_CFLAGS): Likewise.
28897
28898 * util/grub-emu.c (main): Call `grub_sfs_init' and
28899 `grub_sfs_fini'.
28900
28901 * include/grub/fs.h (grub_sfs_init): New prototype.
28902 (grub_sfs_fini): Likewise.
28903
57bdbde3 289042005-10-07 Marco Gerards <mgerards@xs4all.nl>
28905
28906 Add support for the AFFS filesystem.
28907
28908 * fs/affs.c: New file.
28909
28910 * DISTLIST: Added `fs/affs.c'.
28911
28912 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
28913 (grub_probefs_SOURCES): Likewise.
28914 (grub_emu_SOURCES): Likewise.
28915 (pkgdata_MODULES): Add `affs.mod'.
28916 (affs_mod_SOURCES): New variable.
28917 (affs_mod_CFLAGS): Likewise.
28918 (affs_mod_LDFLAGS): Likewise.
28919
28920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
28921 (pkgdata_MODULES): Add `affs.mod'.
28922 (affs_mod_SOURCES): New variable.
28923 (affs_mod_CFLAGS): Likewise.
28924
28925 * util/grub-emu.c (main): Call `grub_affs_init' and
28926 `grub_affs_fini'.
28927
28928 * include/grub/fs.h (grub_affs_init): New prototype.
28929 (grub_affs_fini): Likewise.
28930
047b67e0 289312005-10-01 Marco Gerards <mgerards@xs4all.nl>
28932
28933 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
28934
59b8208a 289352005-10-01 Marco Gerards <mgerards@xs4all.nl>
28936
28937 * configure.ac: Accept `x86_64' as host_cpu. In that case add
28938 `-m32' to CFLAGS.
28939
28940 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
28941 linking.
f19dbdb7 28942
59b8208a 28943 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
28944 (COMMON_LDFLAGS): New variable.
28945 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
28946 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
28947 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
28948 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
28949 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
28950 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
28951 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
28952 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
28953 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
28954 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
28955 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
28956 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
28957 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
28958 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
28959 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
28960 variables.
28961 (normal_mod_ASFLAGS): Add `-m32'.
28962
28963 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
28964 (grub_host_size_t, grub_host_ssize_t): New types.
28965 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 28966 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 28967 `GRUB_HOST_SIZEOF_VOID_P'.
28968
28969 * include/grub/kernel.h (struct grub_module_header): Type of
28970 member offset changed to `grub_host_off_t'. Type of member size
28971 changed to `grub_host_size_t'.
28972 (struct grub_module_info): Type of member offset changed to
28973 `grub_host_off_t'. Type of member size changed to
28974 `grub_host_size_t'.
28975
b4093103 289762005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
28977
28978 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 28979
b4093103 28980 * kern/i386/pc/startup.S (multiboot_header): New label.
28981 (multiboot_entry): Likewise.
28982 (multiboot_trampoline): Likewise.
28983
28984 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
28985 Increased to 0x4A0.
28986
28987 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
28988 put parentheses after a question mark.
28989 [!GRUB_UTIL] (my_mod): New variable.
28990
28991 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
28992
b2499b29 289932005-09-28 Marco Gerards <mgerards@xs4all.nl>
28994
28995 Adds support for the XFS filesystem. Btrees are not supported
28996 yet.
28997
28998 * fs/xfs.c: New file.
28999
29000 * DISTLIST: Added `fs/xfs.c'.
29001
29002 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
29003 (grub_probefs_SOURCES): Likewise.
29004 (grub_emu_SOURCES): Likewise.
29005 (pkgdata_MODULES): Add `xfs.mod'.
29006 (xfs_mod_SOURCES): New variable.
29007 (xfs_mod_CFLAGS): Likewise.
29008
29009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
29010 (pkgdata_MODULES): Add `xfs.mod'.
29011 (xfs_mod_SOURCES): New variable.
29012 (xfs_mod_CFLAGS): Likewise.
29013
29014 * util/grub-emu.c (main): Call `grub_xfs_init' and
29015 `grub_xfs_fini'.
29016
29017 * include/grub/fs.h (grub_xfs_init): New prototype.
29018 (grub_xfs_fini): Likewise.
29019
f19dbdb7 29020
83d37a62 290212005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
29022
29023 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
29024 color modes, allow greater than 16 colors to be configured as
29025 a default palette.
29026
47d2d65e 290272005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29028
29029 * normal/completion.c (complete_arguments): Add the qualifier
29030 const into OPTIONS.
29031
29032 From Omniflux <omniflux+lists@omniflux.com>:
29033 * include/grub/terminfo.h: New file.
29034 * include/grub/tparm.h: Likewise.
29035 * include/grub/i386/pc/serial.h: Likewise.
29036 * term/terminfo.c: Likewise.
29037 * term/tparm.c: Likewise.
29038 * term/i386/pc/serial.c: Likewise.
29039 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
29040 serial.mod.
29041 (terminfo_mod_SOURCES): New variable.
29042 (terminfo_mod_CFLAGS): Likewise.
29043 (serial_mod_SOURCES): Likewise.
29044 (serial_mod_CFLAGS): Likewise.
29045
48b671ff 290462005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
29047
29048 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
29049 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
29050 and kern/powerpc/ieee1275/cmain.c, respectively.
29051
29052 * boot/powerpc/ieee1275/crt0.S: Moved to ...
29053 * kern/powerpc/ieee1275/crt0.S: ... here.
29054
29055 * boot/powerpc/ieee1275/cmain.c: Moved to ...
29056 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 29057
48b671ff 29058 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
29059 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
29060 instead of boot/powerpc/ieee1275/crt0.S and
29061 boot/powerpc/ieee1275/cmain.c, respectively.
29062
29063 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
29064 sectors. It was not used anyway.
29065
09fc77a7 290662005-08-30 Hollis Blanchard <hollis@penguinppc.org>
29067
29068 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
29069 `unused parameter' warning.
29070
003789c7 290712005-08-30 Hollis Blanchard <hollis@penguinppc.org>
29072
29073 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
29074 function.
29075 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
29076 getcharwidth.
29077
67f44c86 290782005-08-28 Marco Gerards <metgerards@student.han.nl>
29079
29080 * include/grub/normal.h (enum grub_completion_type): Added
29081 `GRUB_COMPLETION_TYPE_ARGUMENT'.
29082
29083 * normal/cmdline.c (print_completion): Handle
29084 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
29085 * normal/menu_entry.c (store_completion): Likewise.
29086
29087 * normal/completion.c (complete_arguments): New function.
29088 (grub_normal_do_completion): Call `complete_arguments' when the
29089 current words start with a dash.
29090
0b5abe02 290912005-08-27 Marco Gerards <metgerards@student.han.nl>
29092
29093 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
29094 `gzio.mod' instead of `io.mod').
29095
d9864ee1 290962005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
29097
29098 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
29099 (DISTDIRS): Added io and video.
29100 Rewrite the search routine to make an output consistently.
29101
29102 * DISTLIST: Added conf/sparc64-ieee1275.mk,
29103 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
29104 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
29105 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
29106 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
29107 util/powerpc/ieee1275/misc.c.
f19dbdb7 29108
d9864ee1 29109 * include/grub/gzio.h: New file.
29110 * io/gzio.c: Likewise.
f19dbdb7 29111
d9864ee1 29112 * kern/file.c (grub_file_close): Call grub_device_close only if
29113 FILE->DEVICE is not NULL.
29114
29115 * include/grub/mm.h [!NULL] (NULL): New macro.
29116
29117 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
29118
29119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
29120 (pkgdata_MODULES): Added gzio.mod.
29121 (gzio_mod_SOURCES): New variable.
29122 (gzio_mod_CFLAGS): Likewise.
29123
29124 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
29125 (pkgdata_MODULES): Added gzio.mod.
29126 (gzio_mod_SOURCES): New variable.
29127 (gzio_mod_CFLAGS): Likewise.
29128
29129 * commands/cat.c: Include grub/gzio.h.
29130 (grub_cmd_cat): Use grub_gzfile_open instead of
29131 grub_file_open.
f19dbdb7 29132
d9864ee1 29133 * commands/cmp.c: Include grub/gzio.h.
29134 (grub_cmd_cmp): Use grub_gzfile_open instead of
29135 grub_file_open.
29136
29137 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
29138 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
29139 grub_file_open.
29140 (grub_rescue_cmd_module): Likewise.
29141
fa46f4b5 291422005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
29143
29144 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
29145 kern/sparc64/ieee1275/init.c because it contains _start.
29146 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
29147
e9211b5d 291482005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
29149
29150 * configure.ac: Add support for sparc64 host with ieee1275
29151 firmware.
29152 * configure: Generated from configure.ac.
29153 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
29154 instead of int.
29155 (grub_ofdisk_read): Likewise.
29156 (grub_ofdisk_open): Use %p to print pointer values, and cast the
29157 pointers as (void *) to remove a warning.
29158 (grub_ofdisk_close): Likewise.
29159 (grub_ofdisk_read): Likewise.
29160 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
29161 returns, so make it return void to remove a warning.
29162 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
29163 Corresponding prototype change.
29164 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
29165 values, and cast the pointers as (void *) to remove a warning.
29166 (grub_mm_dump): Likewise.
29167 * conf/sparc64-ieee1275.mk: New file.
29168 * conf/sparc64-ieee1275.rmk: Likewise.
29169 * include/grub/sparc64/setjmp.h: Likewise.
29170 * include/grub/sparc64/types.h: Likewise.
29171 * include/grub/sparc64/ieee1275/console.h: Likewise.
29172 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29173 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29174 * include/grub/sparc64/ieee1275/time.h: Likewise.
29175 * kern/sparc64/cache.c: Likewise.
29176 * kern/sparc64/dl.c: Likewise.
29177 * kern/sparc64/ieee1275/init.c: Likewise.
29178 * kern/sparc64/ieee1275/openfw.c: Likewise.
29179
385c6a92 291802005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
29181
29182 * util/console.c (grub_ncurses_putchar): If C is greater than
29183 0x7f, set C to a question mark.
29184 (grub_ncurses_getcharwidth): New function.
29185 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
29186 getcharwidth.
29187
29188 * normal/menu.c (print_entry): Made aware of Unicode. First,
29189 convert TITLE to UCS-4, and predict the cursor position by
29190 grub_getcharwidth.
29191
29192 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
29193 const to SRC.
29194 * kern/misc.c (grub_utf16_to_utf8): Likewise.
29195
16ccb8b1 291962005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
29197
29198 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
29199 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
29200 grub_strcat.
29201
29202 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
29203 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
29204 grub_strcpy and grub_strlen. Take it into account that a space
29205 character is inserted as a delimiter.
29206
6a85ce79 292072005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
29208
29209 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 29210 invalid magic in the error.
6a85ce79 29211
29212 * commands/search.c: New file.
f19dbdb7 29213
6a85ce79 29214 * util/grub-emu.c (main): Call grub_search_init and
29215 grub_search_fini.
29216
29217 * kern/rescue.c (grub_rescue_print_disks): Removed.
29218 (grub_rescue_print_devices): New function.
29219 (grub_rescue_cmd_ls): Use grub_device_iterate with
29220 grub_rescue_print_devices instead of grub_disk_dev_iterate with
29221 grub_rescue_print_disks.
29222
29223 * kern/partition.c (grub_partition_iterate): Return the result of
29224 PARTMAP->ITERATE instead of GRUB_ERRNO.
29225
29226 * kern/device.c: Include grub/partition.h.
29227 (grub_device_iterate): New function.
29228
29229 * include/grub/partition.h (grub_partition_iterate): Return int
29230 instead of grub_err_t.
29231
29232 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
29233 prototype.
29234 [GRUB_UTIL] (grub_search_fini): Likewise.
29235
29236 * include/grub/device.h (grub_device_iterate): New prototype.
29237
29238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
29239 commands/search.c.
29240 (pkgdata_MODULES): Added search.mod.
29241 (search_mod_SOURCES): New variable.
29242 (search_mod_CFLAGS): Likewise.
29243
29244 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
29245 (pkgdata_MODULES): Added search.mod.
29246 (search_mod_SOURCES): New variable.
29247 (search_mod_CFLAGS): Likewise.
29248
29249 * commands/ls.c (grub_ls_list_disks): Renamed to ...
29250 (grub_ls_list_devices): ... this, and use grub_device_iterate.
29251 All callers changed.
29252
29253 * DISTLIST: Added commands/search.c.
29254
ef095434 292552005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
29256
29257 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
29258 conversion.
29259 (grub_getcharwidth): New function.
29260
29261 * kern/misc.c (grub_utf8_to_ucs4): New function.
29262
29263 * include/grub/term.h (struct grub_term): Added a new member
29264 "getcharwidth".
29265 (grub_getcharwidth): New prototype.
29266
29267 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
29268
29269 * term/i386/pc/console.c (map_char): New function. Segregated from
29270 grub_console_putchar.
29271 (grub_console_putchar): Use map_char.
29272 (grub_console_getcharwidth): New function.
29273 (grub_console_term): Specified grub_console_getcharwidth as
29274 getcharwidth.
29275
29276 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
29277 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
29278
29279 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
29280 GRUB_ERRNO.
29281 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
29282 on grub_strtoul completely.
29283 (write_char): Declare local variables in the beginning of the
29284 function.
29285 (grub_vesafb_getcharwidth): New function.
29286 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
29287 getcharwidth.
29288
1f0a95e4 292892005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
29290
29291 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
29292 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
29293 commands/i386/pc/vbetest.c.
29294
29295 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
29296 call grub_vbe_get_controller_info again, because the returned
29297 information is volatile.
29298 (grub_vbe_set_video_mode): Mostly rewritten.
29299 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
29300 grub_vbe_status_t correctly.
29301 (grub_vbe_get_video_mode_info): Likewise.
29302 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
29303 several if statements.
29304
29305 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
29306 * commands/i386/pc/vbeinfo.c: ... this.
29307
29308 * commands/i386/pc/vbe_test.c: Renamed to ...
29309 * commands/i386/pc/vbetest.c: ... this.
29310
29311 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
29312 ...
29313 (grub_cmd_vbeinfo): ... this. Save video modes before
29314 iterating. Skip a video mode, if it is not available, not enough
29315 information is given or it is monochrome. Show the memory
29316 model. Leave the interpretation of MODEVAR to grub_strtoul
29317 completely.
29318 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
29319 (GRUB_MOD_FINI): Likewise.
29320
29321 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
29322 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
29323 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
29324 duplicated grub_env_get. Leave the interpretation of MODEVAR to
29325 grub_strtoul completely.
29326 (real2pm): Removed.
29327 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
29328 (GRUB_MOD_FINI): Likewise.
29329
29330 * normal/misc.c: Include grub/mm.h.
29331
29332 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
29333 vbe_list_modes with vbetest.mod and vbeinfo.mod.
29334 (vbe_list_modes_mod_SOURCES): Removed.
29335 (vbe_list_modes_mod_CFLAGS): Likewise.
29336 (vbe_test_mod_SOURCES): Likewise.
29337 (vbe_test_mod_CFLAGS): Likewise.
29338 (vbeinfo_mod_SOURCES): New variable.
29339 (vbeinfo_mod_CFLAGS): Likewise.
29340 (vbetest_mod_SOURCES): Likewise.
29341 (vbetest_mod_CFLAGS): Likewise.
29342
992ffbbe 293432005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
29344
29345 * normal/misc.c: New file.
29346
29347 * DISTLIST: Added normal/misc.c.
f19dbdb7 29348
992ffbbe 29349 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
29350 DISK to HOOK. Call HOOK with DISK.
29351 * partmap/apple.c (apple_partition_map_iterate): Likewise.
29352 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29353 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29354
29355 * normal/menu_entry.c (struct screen): Added a new member
29356 "completion_shown".
29357 (completion_buffer): New global variable.
29358 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
29359 (store_completion): New function.
29360 (complete): Likewise.
29361 (clear_completions): Likewise.
29362 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
29363 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
29364 a tab, call complete.
29365
29366 * normal/completion.c (disk_dev): Removed.
29367 (print_simple_completion): Likewise.
29368 (print_partition_completion): Likewise.
29369 (print_func): New global variable.
29370 (add_completion): Do not take the arguments WHAT or PRINT any
29371 longer. Added a new argument TYPE. Instead of printing directly,
29372 call PRINT_FUNC if not NULL.
29373 All callers changed.
29374 (complete_device): Use a local variable DEV instead of
29375 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
29376 (grub_normal_do_completion): Take a new argument HOOK. Do not
29377 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
29378 empty string, return NULL instead.
29379 All callers changed.
29380
29381 * normal/cmdline.c (print_completion): New function.
29382
29383 * kern/partition.c (grub_partition_iterate): Add an argument DISK
29384 to HOOK.
29385 All callers changed.
29386
29387 * kern/disk.c (grub_print_partinfo): Removed.
29388
29389 * include/grub/partition.h (struct grub_partition_map): Add a new
29390 argument DISK into HOOK of ITERATE.
29391 (grub_partition_iterate): Add a new argument DISK to HOOK.
29392
29393 * include/grub/normal.h (enum grub_completion_type): New enum.
29394 (grub_completion_type_t): New type.
29395 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
29396 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
29397 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
29398 (GRUB_COMPLETION_TYPE_FILE): Likewise.
29399 (grub_normal_do_completion): Added a new argument HOOK.
29400 (grub_normal_print_device_info): New prototype.
29401
29402 * include/grub/disk.h (grub_print_partinfo): Removed.
29403
29404 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
29405 (normal_mod_SOURCES): Likewise.
29406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29407 (normal_mod_SOURCES): Likewise.
29408
29409 * commands/ls.c (grub_ls_list_disks): Use
29410 grub_normal_print_device_info instead of grub_print_partinfo. Free
29411 PNAME.
29412 (grub_ls_list_files): Use grub_normal_print_device_info instead of
29413 duplicating the code.
29414
0bd41162 294152005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
29416
29417 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 29418 follow GCS more precisely.
29419 * commands/i386/pc/vbe_test.c: Likewise.
29420 * include/grub/i386/pc/vbe.h: Likewise.
29421 * term/i386/pc/vesafb.c: Likewise.
29422 * video/i386/pc/vbe.c: Likewise.
0bd41162 29423
6323696a 294242005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
29425
29426 * DISTLIST: Added term/i386/pc/vesafb.c
29427 DISTLIST: Added video/i386/pc/vbe.c
29428 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
29429 DISTLIST: Added commands/i386/pc/vbe_test.c.
29430 * commands/i386/pc/vbe_list_modes.c: New file.
29431 * commands/i386/pc/vbe_test.c: Likewise.
29432 * term/i386/pc/vesafb.c: Likewise.
29433 * video/i386/pc/vbe.c: Likewise.
29434 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
29435 (grub_vbe_probe) Added prototype.
29436 (grub_vbe_set_video_mode) Likewise.
29437 (grub_vbe_get_video_mode) Likewise.
29438 (grub_vbe_get_video_mode_info) Likewise.
29439 (grub_vbe_set_pixel_rgb) Likewise.
29440 (grub_vbe_set_pixel_index) Likewise.
29441 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
29442 (pkgdata_MODULES): Added vesafb.mod.
29443 (pkgdata_MODULES): Added vbe_list_modes.mod.
29444 (pkgdata_MODULES): Added vbe_test.mod.
29445 (vbe_mod_SOURCES): Added.
29446 (vbe_mod_CFLAGS): Likewise.
29447 (vesafb_mod_SOURCES): Likewise.
29448 (vesafb_mod_CFLAGS): Likewise.
29449 (vbe_list_modes_mod_SOURCES): Likewise.
29450 (vbe_list_modes_mod_CFLAGS): Likewise.
29451 (vbe_test_mod_SOURCES): Likewise.
29452 (vbe_test_mod_CFLAGS): Likewise.
29453
0a74e62f 294542005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
29455
0a74e62f 29456 * normal/command.c (grub_command_execute): If INTERACTIVE is
29457 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
29458 CMDLINE. Disable the pager if INTERACTIVE is true.
29459 All callers are changed.
29460
29461 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
29462 before reading a config file.
29463 * normal/main.c (read_config_file): Even if a command is not
29464 found, register it if it is within an entry.
29465
29466 * util/grub-emu.c: Include sys/types.h and unistd.h.
29467 (options): Added --hold.
29468 (struct arguments): Added a new member "hold".
29469 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
29470 missing.
29471 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
29472 cleared by a debugger, if it is not zero.
29473
29474 * include/grub/normal.h (grub_command_execute): Add an argument
29475 INTERACTIVE.
29476
e51f85ae 294772005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
29478
29479 * DISTLIST: Added include/grub/i386/pc/vbe.h.
29480
e9c6f39b 294812005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
29482
29483 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
29484 program with another one, because the old one didn't detect a bug
29485 in gcc-3.4. Always use regparm 2, because the new test is still
29486 not enough for gcc-4.0. Someone must investigate a simple test
29487 case which detects a bug in gcc-4.0.
29488
8de3495c 294892005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
29490
29491 * DISTLIST: Added normal/completion.c.
29492
29493 * normal/completion.c: New file.
f19dbdb7 29494
8de3495c 29495 * term/i386/pc/console.c (grub_console_getwh): New function.
29496 (grub_console_term): Assign grub_console_getwh to getwh.
29497
29498 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
29499 function is defined in normal/completion.c as
29500 grub_normal_do_completion.
29501 (grub_cmdline_get): Use grub_normal_do_completion instead of
29502 grub_tab_complete.
29503
29504 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
29505 returns non-zero, otherwise return 0.
29506 (grub_partition_iterate): First, probe the partition map. Then,
29507 call ITERATE only for this partition map.
29508
29509 * kern/misc.c (grub_strncmp): Rewritten.
29510
29511 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
29512 returns non-zero. Otherwise return 0.
29513
29514 * include/grub/partition.h (grub_partition_map_iterate): Return
29515 int instead of void.
29516
29517 * include/grub/normal.h (grub_normal_do_completion): New prototype.
29518
29519 * include/grub/misc.h (grub_strncmp): Change the type of N to
29520 grub_size_t.
29521
29522 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
29523 of void.
29524
29525 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 29526 unsigned explicitly before comparing it with I.
8de3495c 29527
29528 * kern/main.c (grub_env_write_root): Add the attribute unused into
29529 VAR.
29530
29531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
29532 normal/completion.c.
29533 (normal_mod_SOURCES): Likewise.
29534 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29535 (normal_mod_SOURCES): Likewise.
29536
29537 * normal/command.c (grub_iterate_commands): If ITERATE returns
29538 non-zero, return one immediately.
29539
e85e144b 295402005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
29541
29542 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
29543 * kern/i386/pc/startup.S: Updated Global Descriptor table's
29544 descriptions.
29545 (grub_vbe_get_controller_info): New function.
29546 (grub_vbe_get_mode_info): Likewise.
29547 (grub_vbe_set_mode): Likewise.
29548 (grub_vbe_get_mode): Likewise.
29549 (grub_vbe_set_memory_window): Likewise.
29550 (grub_vbe_get_memory_window): Likewise.
29551 (grub_vbe_set_scanline_length): Likewise.
29552 (grub_vbe_get_scanline_length): Likewise.
29553 (grub_vbe_set_display_start): Likewise.
29554 (grub_vbe_get_display_start): Likewise.
29555 (grub_vbe_set_palette_data): Likewise.
29556 * include/grub/i386/pc/vbe.h: New file.
29557
c46153d2 295582005-08-08 Hollis Blanchard <hollis@penguinppc.org>
29559
29560 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
29561 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
29562 * DISTLIST: Likewise.
29563 * kern/ieee1275/of.c: Moved to ...
29564 * kern/ieee1275/ieee1275.c: ... here.
29565
0cb90c45 295662005-08-08 Hollis Blanchard <hollis@penguinppc.org>
29567
29568 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
29569 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
29570 Pass 0 as `end' parameter to grub_strtoul().
29571
a19fb360 295722005-08-08 Hollis Blanchard <hollis@penguinppc.org>
29573
29574 * include/grub/powerpc/ieee1275/console.h: Do not include
29575 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
29576 ifdef.
29577 (grub_console_cur_color): Remove i386-specific prototype.
29578 (grub_console_real_putchar): Likewise.
29579 (grub_console_checkkey): Likewise.
29580 (grub_console_getkey): Likewise.
29581 (grub_console_getxy): Likewise.
29582 (grub_console_gotoxy): Likewise.
29583 (grub_console_cls): Likewise.
29584 (grub_console_setcursor): Likewise.
29585 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
29586 Include <grub/machine/console.h>.
29587 * term/ieee1275/ofconsole.c: Likewise.
29588
4ac9bd04 295892005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
29590
29591 * Makefile.in (LIBLZO): New variable.
29592
29593 * configure.ac: Check for LZO version 2.
29594
29595 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
29596 lzo/lzo1x.h instead of lzo1x.h.
29597
29598 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
29599 of -llzo.
29600
29601 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
29602 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
29603
29604 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
29605 copying the data from PARTITION to P.
29606
f4917dfd 296072005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
29608
29609 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
29610 negative, unload the module.
29611
29612 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
29613 map is "pc_partition_map" but not "pc".
29614 (usage): Fix the description. The options are --boot-image and
29615 --core-image but not --boot-file or --core-file.
29616 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
29617 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
29618 DEFAULT_DIRECTORY.
29619
29620 * util/i386/pc/grub-install.in: Do not specify --boot-file or
29621 --core-file. Specify INSTALL_DEVICE as an argument.
29622
29623 * util/console.c: Include config.h.
29624 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
29625 [HAVE_NCURSES_H]: Include ncurses.h.
29626 [HAVE_CURSES_H]: Include curses.h.
29627 [!A_NORMAL] (A_NORMAL): Defined as zero.
29628 [!A_STANDOUT] (A_STANDOUT): Likewise.
29629
29630 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
29631 -lncurses.
29632 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
29633
29634 * configure.ac: Check for curses libraries and headers.
29635
29636 * Makefile.in (LIBCURSES): New variable.
29637
29638 * genmk.rb (Script::rule): Set the executable bits.
29639
29640 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
29641 name of the PC partition map is "pc_partition_map" but not "pc".
29642
0e143073 296432005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
29644
29645 * util/i386/pc/grub-install.in (grub_probefs): New variable.
29646 (modules): Likewise.
29647 (usage): Added descriptions for --modules and --grub-probefs.
29648 Handle --modules and --grub-probefs. Save the arguments in MODULES
29649 and GRUB_PROBEFS, respectively.
29650 Auto-detect a filesystem module against GRUBDIR. If the result is
29651 empty and modules are not specified explicitly, abort the
29652 installation. Add the result to MODULES.
29653
29654 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
29655 disk/powerpc/ieee1275/ofdisk.c,
29656 include/grub/powerpc/ieee1275/init.h and
29657 term/powerpc/ieee1275/ofconsole.c.
29658 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
29659 term/ieee1275/ofconsole.c.
29660
29661 * include/grub/powerpc/ieee1275/console.h: Resurrected.
29662
29663 * COPYING: Upgraded to the latest version. Only the address of the
29664 FSF office has changed.
f19dbdb7 29665
efd6e6d5 296662005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
29667
29668 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
29669 kern/ieee1275.c with kern/ieee1275/of.c.
29670
29671 * kern/ieee1275.c: Moved to ...
29672 * kern/ieee1275/of.c: ... here.
29673
8ceafda2 296742005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
29675
29676 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 29677 readability.
8ceafda2 29678
29679 * config.guess: Updated to the latest version from gnulib.
29680 * config.sub: Likewise.
29681 * install.sh: Likewise.
29682 * mkinstalldirs: Likewise.
29683
29684 * include/grub/console.h: Removed. This file is arch-specific. Do
29685 not put this in include/grub.
29686
29687 * include/grub/i386/pc/console.h: Resurrected.
29688
29689 * util/console.c: Include grub/machine/console.h instead of
29690 grub/console.h.
29691 * util/grub-emu.c: Likewise.
29692
267f6cd9 296932005-08-04 Marco Gerards <metgerards@student.han.nl>
29694
29695 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
29696 hardcoded value.
f19dbdb7 29697
267f6cd9 29698 From Vincent Pelletier <subdino2004@yahoo.fr>
29699 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
29700 Redefined to use grub_getwh.
29701 (grub_term): New member named getwh.
29702 (grub_getwh): New prototype.
29703 * kern/term.c (grub_getwh): New function.
29704 * term/i386/pc/console.c (grub_console_getwh): New function.
29705 (grub_console_term): New member `getwh'.
29706 * term/i386/pc/vga.c (grub_vga_getwh): New function.
29707 (grub_vga_term): New member `getwh'.
0b5abe02 29708 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 29709 grub_ssize_t.
29710 (grub_ofconsole_getw): New function.
29711 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
29712 (grub_ofconsole_term): New field named getwh and new initial
29713 value.
29714
3be7266d 297152005-08-03 Hollis Blanchard <hollis@penguinppc.org>
29716
29717 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
29718 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
29719 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
29720 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
29721 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
29722 of <grub/machine/ieee1275.h>.
29723 * commands/ieee1275/reboot.c: Likewise.
29724 * boot/powerpc/ieee1275/ieee1275.c: Move ...
29725 * kern/ieee1275.c: ... to here. All users updated. Change all
29726 parameter structs to use new type `grub_ieee1275_cell_t'.
29727 * term/powerpc/ieee1275/ofconsole.c: Move ...
29728 * term/ieee1275/ofconsole.c: ... to here. All users updated.
29729 * disk/powerpc/ieee1275/ofdisk.c: Move ...
29730 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
29731 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
29732 to return int.
29733 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
29734 Remove unused prototypes. All users updated.
29735 * include/grub/powerpc/ieee1275/console.h: Removed.
29736 * include/grub/powerpc/ieee1275/ieee1275.h: Define
29737 `grub_ieee1275_cell_t'.
29738 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
29739 Cast comparisons with -1 to the correct type.
29740 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
29741 type to match `grub_ieee1275_entry_fn'.
29742
8b5f3938 297432005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
29744
29745 * DISTLIST: Added util/i386/pc/grub-probefs.c.
29746
29747 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
29748 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
29749 partmap/sun.c.
29750 (grub_probefs_SOURCES): New variable.
29751
29752 * util/i386/pc/grub-probefs.c: New file.
29753
29754 * util/i386/pc/grub-setup.c (main): Call
29755 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
29756 grub_hfs_init and grub_jfs_init to initialize the system. Call
29757 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
29758 grub_pc_partition_map_fini to finish the system.
29759
ea409713 297602005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
29761
29762 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
29763 function.
29764 (grub_multiboot_load_elf32): Likewise.
29765 (grub_multiboot_is_elf64): Likewise.
29766 (grub_multiboot_load_elf64): Likewise.
29767 (grub_multiboot_load_elf): Likewise.
29768 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
29769 an ELF32 or ELF64 file.
29770 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
29771
29772 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
29773 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
29774 NULL before calling FS->LABEL.
29775 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
29776 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
29777 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
29778 before calling FS->LABEL.
29779
141a288b 297802005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
29781
29782 * util/i386/pc/grub-install.in (datadir): New variable.
29783 (libdir): Removed.
29784 (pkgdatadir): New variable.
29785 (pkglibdir): Removed.
29786
0d5f8a54 297872005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
29788
29789 * DISTLIST: Added util/i386/pc/grub-install.in.
29790
29791 * util/i386/pc/grub-install.in: New file.
29792
29793 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
29794 (grub_install_SOURCES): Likewise.
29795
29796 * genmk.rb: Added support for scripts.
29797 (Script): New class.
29798 (scripts): New variable.
29799
29800 * Makefile.in (install-local): Install sbin_SCRIPTS by
29801 INSTALL_SCRIPT.
29802 (uninstall): Remove sbin_SCRIPTS.
29803
29804 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
29805 device, try to get a GRUB device by
29806 grub_util_biosdisk_get_grub_dev.
29807 Free DEST_DEV.
29808
29809 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
29810 description for --device-map.
29811
5f968e1e 298122005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
29813
29814 Change the semantics of variable hooks. They now return strings
29815 instead of error values.
f19dbdb7 29816
5f968e1e 29817 * util/i386/pc/grub-setup.c: Include grub/env.h.
29818 (setup): Use grub_device_set_root instead of grub_env_set.
29819
29820 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
29821 grub_env_get instead of grub_device_set_root and
29822 grub_device_get_root, respectively.
29823
29824 * kern/main.c (grub_env_write_root): New function.
29825 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
29826 grub_env_set instead of grub_device_set_root.
29827
29828 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
29829 many variables.
29830 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
29831 rather than calling ENV->WRITE_HOOK afterwards.
29832 (grub_env_get): Return the result of ENV->READ_HOOK rather than
29833 passing a pointer of a pointer.
29834 (grub_register_variable_hook): Change the types of "read_hook" and
29835 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
29836 respectively.
29837 Allocate the default empty string on the heap, because this string
29838 may be freed later.
29839
29840 * kern/device.c: Include grub/env.h.
29841 (grub_device_set_root): Removed.
29842 (grub_device_get_root): Likewise.
29843 (grub_device_open): Use grub_env_get instead of
29844 grub_device_get_root.
29845
29846 * include/grub/env.h (grub_env_read_hook_t): New type.
29847 (grub_env_write_hook_t): Likewise.
29848 (grub_env_var): Change the types of "read_hook" and "write_hook"
29849 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
29850 (grub_register_variable_hook): Likewise.
29851
29852 * include/grub/device.h (grub_device_set_root): Removed.
29853 (grub_device_set_root): Likewise.
29854
29855 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
29856 make sure that DIRNAME terminates with '/', so that
29857 grub_fat_find_dir will fail if PATH is not a directory.
29858
29859 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
29860 from DIRNAME.
29861 Use the qualifier auto for print_files and print_files_long.
29862 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
29863 as a regular file.
29864 Put a newline only if there is no error.
29865 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
29866 used.
29867
896f0afd 298682005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
29869
29870 * kern/partition.c (grub_partition_probe): Initialize PART to
29871 NULL. Otherwise, when no partition map is registered, this returns
29872 a garbage.
29873
b28b81b2 298742005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
29875
29876 * partmap/apple.c (apple_partition_map_iterate): Check if POS
29877 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
29878 valid.
29879
5f3607e0 298802005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
29881
29882 * commands/ls.c (grub_ls_list_disks): Print the filesystem
29883 information on each device, if it does not have partitions. Print
29884 "Device" instead of "Disk", because this function is not specific
29885 to disk devices.
29886
29887 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
29888 static to ensure that it is put on the memory rather than a
29889 register.
29890
502c87e8 298912005-07-17 Yoshinori Okuji <okuji@enbug.org>
29892
29893 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
29894 (grub_cat_init): Likewise.
29895 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
29896 (options): Likewise.
29897 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29898 (grub_configfile_init): Likewise.
29899 * font/manager.c (GRUB_MOD_INIT): Likewise.
29900 * commands/help.c (GRUB_MOD_INIT): Likewise.
29901 (grub_help_init): Likewise.
29902 * normal/command.c (grub_command_init): Likewise.
29903 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
29904 * disk/loopback.c (grub_loop_init): Likewise.
29905 (GRUB_MOD_INIT): Likewise.
29906 * commands/ls.c (grub_ls_init): Likewise.
29907 (GRUB_MOD_INIT): Likewise.
29908 (options): Likewise.
29909 * commands/boot.c (grub_boot_init): Likewise.
29910 (GRUB_MOD_INIT): Likewise.
29911 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
29912 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
29913 (GRUB_MOD_INIT): Likewise.
29914 * commands/cmp.c (grub_cmp_init): Likewise.
29915 (GRUB_MOD_INIT): Likewise.
29916
29917 * normal/arg.c: Use <> instead of "" to include header files.
29918 (SHORT_ARG_HELP): New macro.
29919 (SHORT_ARG_USAGE): Likewise.
29920 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
29921 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
29922 descriptions.
29923 (find_short): Check if C is 'h' or 'u' explicitly.
29924 (grub_arg_show_help): Use space characters instead of tabs. Treat
29925 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
29926 are shown with --help and --usage only if they are not used for
29927 the command itself.
29928 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
29929 'h' and 'u'.
29930
29931 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
29932 const into "longarg". Change the type of "shortarg" to int.
29933
f806d18e 299342005-07-17 Yoshinori Okuji <okuji@enbug.org>
29935
29936 * boot/i386/pc/boot.S (boot_drive_check): New label.
29937
29938 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
29939 macro.
29940
29941 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
29942 which do not pass a boot drive correctly. Copied from GRUB Legacy.
29943
e293232b 299442005-07-17 Yoshinori Okuji <okuji@enbug.org>
29945
29946 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
29947 When turning off Gate A20, skip the check and return immediately,
29948 because this is not fatal usually.
29949
ebedfd00 299502005-07-17 Yoshinori Okuji <okuji@enbug.org>
29951
29952 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
29953 be 0x7C00 instead of 0x8000.
29954
29955 * boot/i386/pc/pxeboot.S: Rewritten.
29956
29957 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
29958 EXT_C.
29959 (gate_a20_check_state): Read a byte from 0x108000. Invert the
29960 result.
29961
654fc59f 299622005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
29963
29964 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
29965 robustness. This routine now supports a BIOS call and System
29966 Control Port A to modify the gate A20.
29967
29968 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29969 Increased to 0x440.
29970
09f9923f 299712005-07-12 Hollis Blanchard <hollis@penguinppc.org>
29972
29973 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
29974 device path and resulting ihandle.
29975 (grub_ofdisk_close): dprintf the ihandle being closed.
29976 (grub_ofdisk_read): dprintf function parameters.
29977 * kern/mm.c (grub_mm_init_region): Likewise.
29978 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
29979 (grub_linux_boot): dprintf the Linux entry point, initrd address and
29980 size, and boot arguments.
29981 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
29982 before loading into memory.
29983 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
29984 before loading into memory.
29985
7ef504d8 299862005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
29987
29988 * kern/mm.c: Added much documentation.
29989 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
29990 8, set to 5 instead of 8.
29991
e0f050c2 299922005-07-10 Yoshinori Okuji <okuji@enbug.org>
29993
29994 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
29995
29996 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
29997 (grub_mkdevicemap_SOURCES): New variable.
29998
29999 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
30000 lib/device.c of GRUB Legacy.
30001
7224189a 300022005-07-10 Yoshinori Okuji <okuji@enbug.org>
30003
30004 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
30005 instead of PATH is NULL.
30006
68c864eb 300072005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
30008
30009 * commands/cmp.c (BUFFER_SIZE): New macro.
30010 (grub_cmd_cmp): Close the right file at the right time. Compare
30011 only data just read. Don't report files of different size as
30012 identical. Dynamically allocate buffers. Move variable
30013 declarations at the beginning of function.
30014
e6f3e614 300152005-07-09 Yoshinori Okuji <okuji@enbug.org>
30016
30017 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
30018 reverse.
30019
f8f1559a 300202004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
30021
30022 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
30023 when backspace is pressed at beginning of line.
30024
39c9d41d 300252005-07-03 Yoshinori Okuji <okuji@enbug.org>
30026
30027 * DISTLIST: Added genfslist.sh.
30028
30029 * normal/main.c (fs_module_list): New variable.
30030 (autoload_fs_module): New function.
30031 (read_fs_list): Likewise.
30032 (grub_normal_execute): Call read_fs_list.
30033
30034 * kern/fs.c (grub_fs_autoload_hook): New variable.
30035 (grub_fs_probe): Added support for auto-loading.
30036
30037 * include/grub/normal.h (struct grub_fs_module_list): New struct.
30038 (grub_fs_module_list_t): New type.
30039
30040 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
30041 (grub_fs_autoload_hook): New prototype.
30042
30043 * genfslist.sh: New file.
f19dbdb7 30044
39c9d41d 30045 * genmk.rb: Added a rule to generate a filesystem list.
30046
121c1d83 300472005-06-30 Marco Gerards <metgerards@student.han.nl>
30048
30049 * configure.ac: Fix the test for cross-compiling.
30050
30051 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
30052 define GRUB_UTIL anymore.
30053
30054 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
30055 so this function works on other systems than just big endian.
30056 (load_modules): Likewise.
30057 (add_segments): Likewise.
30058
e75d76e1 300592005-06-23 Hollis Blanchard <hollis@penguinppc.org>
30060
30061 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
30062 contains `l' modifier, get a long from va_arg().
30063
50b5a0a7 300642005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
30065
30066 * kern/mm.c (grub_free): If the next free block which is being
30067 merged is the first free block, set the first block to the block
30068 being freed.
30069 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
30070
89371b20 300712005-05-08 Hollis Blanchard <hollis@penguinppc.org>
30072
30073 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
30074 `grub_ieee1275_chosen'.
30075
168d6e58 300762005-05-08 Hollis Blanchard <hollis@penguinppc.org>
30077
30078 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
30079 (grub_ieee1275_chosen): New variable.
30080 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
30081 `chosen'.
30082 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
30083 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
30084 Rename first argument to `phandle' for consistency.
30085 (grub_ieee1275_get_property_length): Likewise.
30086 (grub_ieee1275_next_property): Likewise. Change type of first argument
30087 to grub_ieee1275_phandle_t.
30088 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
30089 Move export next to declaration.
30090 (grub_ieee1275_chosen): New variable.
30091 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
30092 Correct cosmetic typo.
30093 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
30094 `grub_ieee1275_chosen'.
30095 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
30096 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
30097 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
30098 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
30099 `grub_ieee1275_chosen'.
30100
ca5baa3f 301012005-05-10 Hollis Blanchard <hollis@penguinppc.org>
30102
30103 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
30104 /chosen/bootargs.
30105 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
30106 /chosen/bootargs as "variable=value" pairs.
30107
708b345f 301082005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
30109
30110 * include/grub/misc.h (grub_dprintf): New macro.
30111 (grub_real_dprintf): New prototype.
30112 (grub_strword): Likewise.
30113 (grub_iswordseparator): Likewise.
30114 * kern/misc.c (grub_real_dprintf): New function.
30115 (grub_strword): Likewise.
30116 (grub_iswordseparator): Likewise.
30117
f4c5e67c 301182005-04-30 Hollis Blanchard <hollis@penguinppc.org>
30119
30120 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
30121 (roundup): Remove macro.
30122 (grub_ieee1275_flags): Make static.
30123 (grub_ieee1275_realmode): Remove.
30124 (grub_ieee1275_test_flag): New function.
30125 (grub_ieee1275_set_flag): Likewise.
30126 (find_options): Rename to `grub_ieee1275_find_options'; update
30127 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
30128 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
30129 (cmain): New prototype.
30130 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
30131 `grub_ieee1275_flags' directly.
30132 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
30133 machine/biosdisk.h.
30134 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
30135 Don't include grub/machine/init.h.
30136 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
30137 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
30138 Remove prototype.
30139 (grub_ieee1275_realmode): Likewise.
30140 (grub_ieee1275_flag): New enum.
30141 (grub_ieee1275_test_flag): New prototype.
30142 (grub_ieee1275_set_flag): New prototype.
30143 * include/grub/powerpc/ieee1275/init.h: Remove file.
30144 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
30145 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
30146 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
30147 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
30148 comment.
30149 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
30150 `grub_ieee1275_test_flag'.
30151 (grub_ieee1275_encode_devname): Likewise.
30152
ed16607e 301532005-04-21 Hollis Blanchard <hollis@penguinppc.org>
30154
30155 * include/grub/powerpc/ieee1275/ieee1275.h
30156 (grub_ieee1275_encode_devname): New prototype.
30157 (grub_ieee1275_get_filename): Likewise.
30158 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
30159 function.
30160 (grub_set_prefix): Likewise.
30161 (grub_machine_init): Call grub_set_prefix.
30162 * kern/powerpc/ieee1275/openfw.c: Fix typos.
30163 (grub_parse_type): New enum.
30164 (grub_ieee1275_get_devargs): New function.
30165 (grub_ieee1275_get_devname): Likewise.
30166 (grub_ieee1275_parse_args): Likewise.
30167 (grub_ieee1275_get_filename): Likewise.
30168 (grub_ieee1275_encode_devname): Likewise.
30169
be369920 301702005-03-30 Marco Gerards <metgerards@student.han.nl>
30171
30172 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
30173 `grub_loader_unset'.
30174
a5ce3a4a 301752005-03-26 Hollis Blanchard <hollis@penguinppc.org>
30176
30177 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
30178 instead of grub_ieee1275_interpret.
30179 (grub_halt_init): New function.
30180 (grub_halt_fini): Likewise.
30181 (GRUB_MOD_INIT): Correct message grammar.
30182 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
30183 instead of grub_ieee1275_interpret.
30184 (grub_reboot_init): New function.
30185 (grub_reboot_fini): Likewise.
30186 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
30187 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
30188 util/i386/pc/misc.c with commands/ieee1275/halt.c,
30189 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
30190 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
30191 function.
30192 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
30193 Add prototype.
30194 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
30195 prototype.
30196 (grub_halt): Likewise.
30197 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
30198 (cmain): Remove __attribute__((unused)).
30199 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
30200 (grub_heap_len): Likewise.
30201 (grub_machine_fini): New function.
30202 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
30203 (grub_halt): Likewise.
30204 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
30205 function.
30206 * util/powerpc/ieee1275/misc.c: New file.
30207
0058f771 302082005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
30209
30210 * DISTLIST: New file.
30211 * gendistlist.sh: Likewise.
f19dbdb7 30212
0058f771 30213 * Makefile.in (COMMON_DISTFILES): Removed.
30214 (BOOT_DISTFILES): Likewise.
30215 (CONF_DISTFILES): Likewise.
30216 (DISK_DISTFILES): Likewise.
30217 (FS_DISTFILES): Likewise.
30218 (INCLUDE_DISTFILES): Likewise.
30219 (KERN_DISTFILES): Likewise.
30220 (LOADER_DISTFILES): Likewise.
30221 (TERM_DISTFILES): Likewise.
30222 (UTIL_DISTFILES): Likewise.
30223 (DISTFILES): Likewise.
30224 (uninstall): Uninstall files in $(pkgdata_DATA).
30225 (DISTLIST): New target.
30226 (distdir): Use the contents of the file DISTLIST to get a list of
30227 distributed files.
30228
46b3b8a5 302292005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
30230
30231 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
30232 descriptor. This is ported from GRUB Legacy.
30233
30234 * gencmdlist.sh: Added an extra semicolon to make it work with
30235 old sed versions. Reported by Robert Bihlmeyer
30236 <robbe@orcus.priv.at>.
30237
5822ff87 302382005-03-08 Yoshinori Okuji <okuji@enbug.org>
30239
30240 Automatic loading of commands is supported.
f19dbdb7 30241
5822ff87 30242 * normal/main.c (read_command_list): New function.
30243 (grub_normal_execute): Call read_command_list.
30244
30245 * normal/command.c (grub_register_command): Return zero or CMD.
30246 Allocate CMD->NAME from the heap.
30247 Initialize CMD->MODULE_NAME to zero.
30248 Find the same name as well. If the same command is found and it is
30249 a dummy command, overwrite members. If it is not a dummy command,
30250 return zero.
30251 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
30252 (grub_command_find): If a dummy command is found, load a module
30253 and retry to find a command only once.
30254
30255 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
30256 make sure that each command is loaded.
30257
30258 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
30259 macro.
30260 (struct grub_command): Remove const from the member `name'.
30261 Add a new member `module_name'.
30262 (grub_register_command): Return grub_command_t.
30263
30264 * commands/help.c (grub_cmd_help): Call grub_command_find to make
30265 sure that each command is loaded.
30266
30267 * genmk.rb (PModule::rule): Specify a module name without the
30268 suffix ".mod" to gencmdlist.sh.
30269
7b1f4b57 302702005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
30271
30272 * gencmdlist.sh: New file.
f19dbdb7 30273
7b1f4b57 30274 * genmk.rb (PModule::rule): Generate a rule for a command list.
30275 Clean command.lst.
30276 Generate command.lst from $(COMMANDFILES).
30277
30278 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
30279 (DATA): Added $(pkgdata_DATA).
30280 (install-local): Install files in $(pkgdata_DATA).
30281
062aaf39 302822005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
30283
30284 * term/i386/pc/vga.c (debug_command): Removed.
30285 (GRUB_MOD_INIT): Do not register the command "debug".
30286
30287 From Hollis Blanchard:
30288 * commands/configfile.c: New file.
30289 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30290 commands/configfile.c.
30291 (pkgdata_MODULES): Added configfile.mod.
30292 (configfile_mod_SOURCES): New variable.
30293 (configfile_mod_CFLAGS): Likewise.
30294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30295 commands/configfile.c.
30296 (pkgdata_MODULES): Added configfile.mod.
30297 (configfile_mod_SOURCES): New variable.
30298 (configfile_mod_CFLAGS): Likewise.
30299 * util/grub-emu.c (main): Call grub_configfile_init and
30300 grub_configfile_fini.
30301 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
30302 prototype.
30303 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 30304
cee01aa6 303052005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
30306
30307 * normal/arg.c (grub_arg_show_help): Do not show the bug report
30308 address.
30309
30310 * commands/help.c (grub_cmd_help): Do not print newlines after
30311 the last command in print_command_help.
30312
93f3a1d8 303132005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
30314
30315 * commands/default.h: New file.
30316 * commands/timeout.h: Likewise.
30317 * normal/context.c: Likewise.
f19dbdb7 30318
93f3a1d8 30319 * util/misc.c: Do not include sys/times.h.
30320 Include sys/time.h and grub/machine/time.h.
30321 (grub_get_rtc): Rewritten with gettimeofday.
30322
30323 * util/grub-emu.c (main): Call grub_default_init and
30324 grub_timeout_init before grub_normal_init, and call
30325 grub_timeout_fini and grub_default_fini after grub_main.
30326
30327 * util/console.c (grub_ncurses_checkkey): Return the read
30328 character or -1.
30329
30330 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
30331 timeouts.
30332
30333 * normal/main.c (read_config_file): Push MENU. If this fails,
30334 print an error and wait for a user input.
30335 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
30336 If a menu is empty or an error occurs, pop MENU.
30337 (grub_normal_execute): Pop and free MENU after grub_menu_run
30338 returns.
30339
30340 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
30341
30342 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
30343 include time.h.
30344 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
30345 without GRUB_UTIL.
30346 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
30347 time.h.
30348 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
30349 without GRUB_UTIL.
30350
30351 * include/grub/normal.h (struct grub_menu_list): New struct.
30352 (grub_menu_list_t): New type.
30353 (struct grub_context): New struct.
30354 (grub_context_t): New type.
30355 (grub_register_command): Got rid of EXPORT_FUNC.
30356 (grub_unregister_command): Likewise.
30357 (grub_context_get): New prototype.
30358 (grub_context_get_current_menu): Likewise.
30359 (grub_context_push_menu): Likewise.
30360 (grub_context_pop_menu): Likewise.
30361 [GRUB_UTIL] (grub_default_init): Likewise.
30362 [GRUB_UTIL] (grub_default_fini): Likewise.
30363 [GRUB_UTIL] (grub_timeout_init): Likewise.
30364 [GRUB_UTIL] (grub_timeout_fini): Likewise.
30365
30366 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
30367 commands/timeout.c and normal/context.c.
30368 (pkgdata_MODULES): Added default.mod and timeout.mod.
30369 (normal_mod_SOURCES): Added normal/context.c.
30370 (default_mod_SOURCES): New variable.
30371 (default_mod_CFLAGS): Likewise.
30372 (timeout_mod_SOURCES): Likewise.
30373 (timeout_mod_CFLAGS): Likewise.
30374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
30375 conf/i386-pc.rmk.
30376 (pkgdata_MODULES): Added default.mod and timeout.mod.
30377 (normal_mod_SOURCES): Added normal/context.c.
30378 (default_mod_SOURCES): New variable.
30379 (default_mod_CFLAGS): Likewise.
30380 (timeout_mod_SOURCES): Likewise.
30381 (timeout_mod_CFLAGS): Likewise.
30382
30383 * Makefile.in (all-local): Added $(MKFILES).
30384
4ed2e1dd 303852005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
30386
30387 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
30388 (grub_emu_SOURCES): Likewise.
30389 (pkgdata_MODULES): Add `sun.mod'.
30390 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
30391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30392 `partmap/sun.c'.
30393 (pkgdata_MODULES): Add `sun.mod'.
30394 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
30395 * include/grub/partition.h (grub_sun_partition_map_init): New
30396 prototype.
30397 (grub_sun_partition_map_fini): Likewise.
30398 * partmap/sun.c: New file.
30399 * util/grub-emu.c (main): Initialize and de-initialize the sun
30400 partitionmap support.
30401
4d4e372e 304022005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
30403
30404 This implements an Emacs-like menu entry editor.
f19dbdb7 30405
4d4e372e 30406 * normal/menu_entry.c: New file.
f19dbdb7 30407
4d4e372e 30408 * util/console.c (grub_ncurses_putchar): Translate some Unicode
30409 characters to ASCII.
30410 (saved_char): New variable.
30411 (grub_ncurses_checkkey): Rewritten completely.
30412 (grub_ncurses_getkey): Likewise.
30413 (grub_ncurses_init): Call raw instead of cbreak.
30414
30415 * normal/menu.c (print_entry): Do not put a space.
30416 (init_page): Renamed to ...
30417 (grub_menu_init_page): ... this. All callers changed.
30418 (edit_menu_entry): Removed.
30419 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
30420
30421 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
30422
30423 * kern/misc.c (grub_vprintf): Call grub_refresh.
30424
30425 * normal/menu.c (DISP_LEFT): Renamed to ...
30426 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
30427 * normal/menu.c (DISP_UP): Renamed to ...
30428 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
30429 * normal/menu.c (DISP_RIGHT): Renamed to ...
30430 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
30431 * normal/menu.c (DISP_DOWN): Renamed to ...
30432 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
30433 * normal/menu.c (DISP_HLINE): Renamed to ...
30434 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
30435 * normal/menu.c (DISP_VLINE): Renamed to ...
30436 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
30437 * normal/menu.c (DISP_UL): Renamed to ...
30438 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
30439 * normal/menu.c (DISP_UR): Renamed to ...
30440 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
30441 * normal/menu.c (DISP_LL): Renamed to ...
30442 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
30443 * normal/menu.c (DISP_LR): Renamed to ...
30444 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
30445 * normal/menu.c (TERM_WIDTH): Renamed to ...
30446 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
30447 * normal/menu.c (TERM_HEIGHT): Renamed to ...
30448 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
30449 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
30450 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
30451 * normal/menu.c (TERM_MARGIN): Renamed to ...
30452 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
30453 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
30454 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
30455 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
30456 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
30457 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
30458 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
30459 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
30460 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
30461 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
30462 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
30463 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
30464 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
30465 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
30466 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
30467 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
30468 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
30469 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
30470 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
30471 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
30472 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
30473 All callers changed.
30474
30475 * include/grub/normal.h: New prototype.
30476
30477 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30478 normal/menu_entry.c.
30479 (normal_mod_SOURCES): Likewise.
30480 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30481 (normal_mod_SOURCES): Likewise.
30482
e6b92c8a 304832005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
30484
30485 * include/grub/normal.h (grub_halt_init): New prototype.
30486 (grub_halt_fini): Likewise.
30487 (grub_reboot_init): Likewise.
30488 (grub_reboot_fini): Likewise.
30489
30490 * util/grub-emu.c: Include signal.h.
30491 (main_env): New global variable.
30492 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
30493 catch C-c.
30494 (grub_machine_fini): New function.
30495 (main): Call grub_halt_init and grub_reboot_init before
30496 grub_main, and grub_reboot_fini and grub_halt_fini after it.
30497 Call setjmp with MAIN_ENV to go back afterwards.
30498 Call grub_machine_fini right before return.
30499
30500 * include/grub/util/misc.h: Include setjmp.h.
30501 (main_env): New prototype.
30502
30503 * include/grub/kernel.h (grub_machine_fini): New prototype.
30504 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
30505 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
30506
30507 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
30508 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
30509 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 30510
e6b92c8a 30511 * util/i386/pc/misc.c: New file.
f19dbdb7 30512
e6b92c8a 30513 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30514 util/i386/pc/misc.c, commands/i386/pc/halt.c and
30515 commands/i386/pc/reboot.c.
30516
c642636f 305172005-02-14 Guillem Jover <guillem@hadrons.org>
30518
30519 * include/grub/dl.h (grub_dl_check_header): New prototype.
30520 (grub_arch_dl_check_header): Change return type to grub_err_t,
30521 remove size parameter and export function. Update all callers.
30522 * kern/dl.c (grub_dl_check_header): New function.
30523 (grub_dl_load_core): Use `grub_dl_check_header' instead of
30524 `grub_arch_dl_check_header'. Check ELF type. Check if sections
30525 are inside the core.
30526 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
30527 independent ELF header checks.
30528 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
30529 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
30530 `grub_dl_check_header' instead of explicit checks. Check for the
30531 ELF type.
30532 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
30533 `grub_dl_check_header' instead of explicit checks. Remove arch
30534 specific ELF header checks.
30535
e6b92c8a 30536 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
30537 argument SIZE.
30538
5eabe94b 305392005-02-13 Hollis Blanchard <hollis@penguinppc.org>
30540
30541 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
30542 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
30543
1b14a681 305442005-02-12 Hollis Blanchard <hollis@penguinppc.org>
30545
30546 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 30547 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 30548 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 30549 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 30550 * partmap/amiga.c (amiga_partition_map_iterate): Return
30551 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
30552 * partmap/apple.c (apple_partition_map_iterate): Likewise.
30553
aca108aa 305542005-02-01 Guillem Jover <guillem@hadrons.org>
30555
30556 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
30557 help info.
30558
c9f9c556 305592005-01-31 Marco Gerards <metgerards@student.han.nl>
30560
30561 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
30562 Removed prototype.
30563 (grub_rescue_cmd_linux): New prototype.
30564 (grub_rescue_cmd_initrd): Likewise.
30565 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
30566 `bi_rec'.
30567 (grub_linux_release_mem): Release the memory for the initrd.
30568 (grub_load_linux): Renamed from this...
30569 (grub_rescue_cmd_linux): ...To this. Changed all callers.
30570 Changed `entry' not to be static. Loop over memory regions to
30571 find another one when the default fails.
30572 (grub_rescue_cmd_initrd): New function.
30573 (grub_linux_init): Remove function.
30574 (grub_linux_fini): Likewise.
30575 (GRUB_MOD_INIT): Register `initrd'.
30576 (GRUB_MOD_FINI): Unregister `initrd'.
30577 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
30578 Function removed.
30579 (grub_linux_normal_fini): Likewise.
30580 (GRUB_MOD_INIT): Register `initrd'.
30581 (GRUB_MOD_FINI): Unregister `initrd'.
30582
990cf3aa 305832005-01-31 Marco Gerards <metgerards@student.han.nl>
30584
30585 * commands/help.c: New file.
30586 * normal/arg.c (show_help): Renamed to...
30587 (grub_arg_show_help): ... this.
30588 * commands/i386/pc/halt.c: New file.
30589 * commands/i386/pc/reboot.c: Likewise.
30590 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
30591 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
30592 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
30593 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
30594 variables.
30595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30596 `commands/help.c'.
30597 (pkgdata_MODULES): Add `help.mod'.
30598 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
30599 * grub/i386/pc/init.h (grub_reboot): New prototype.
30600 (grub_halt): Likewise.
30601 * include/grub/normal.h (grub_arg_show_help): New prototype.
30602 (grub_help_init): Likewise.
30603 (grub_help_fini): Likewise.
30604 * util/grub-emu.c (main): Initialize and deinitialize the help
30605 command.
30606
30607 * normal/cmdline.c (grub_cmdline_get): Doc fix.
30608
30609 * normal/command.c (grub_command_init): Fixed the description of
30610 the `set' and `unset' commands.
30611
306122005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 30613
30614 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
30615 function.
30616 * commands/ieee1275/halt.c: New file.
30617 * commands/ieee1275/reboot.c: Likewise.
30618 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
30619 `__attribute__ ((unused))'. Some GCS related fixed.
30620 (grub_suspend_init) [GRUB_UTIL]: Function removed.
30621 (grub_suspend_fini): Likewise.
30622 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
30623 and `halt.mod'.
30624 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
30625 (halt_mod_CFLAGS): New variables.
30626 * include/grub/powerpc/ieee1275/ieee1275.h
30627 (grub_ieee1275_interpret): New prototype.
30628
1ab09cc7 306292005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
30630
30631 * include/grub/misc.h (memmove): New prototype.
30632 (memcpy): Likewise.
30633
8b8cbdb2 306342005-01-22 Hollis Blanchard <hollis@penguinppc.org>
30635
30636 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
30637 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
30638
e3741a27 306392005-01-22 Marco Gerards <metgerards@student.han.nl>
30640
30641 * kern/misc.c (grub_strndup): Function rewritten.
30642
776bd780 306432005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
30644
30645 * normal/menu.c (TERM_WIDTH): Macro redefined.
30646 (TERM_TOP_BORDER_Y): Likewise.
30647 (draw_border): Replaced while-loop by a for-loop. Make the number
30648 of lines consistent with the number of lines displayed in
30649 print_entries. Added a margin below the rectangle.
30650 (print_entry): Make the entry fit in the rectangle.
30651 (print_entries): Display the scroll arrows next to the right
30652 border.
30653
78026bce 306542005-01-21 Marco Gerards <metgerards@student.han.nl>
30655
30656 * fs/minix.c (grub_minix_find_file): Reserve more space for
30657 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
30658 `grub_strncpy' to copy `path' into it.
30659
67bbaf0f 306602005-01-21 Marco Gerards <metgerards@student.han.nl>
30661
30662 Add the loopback device, a device via which files can be accessed
30663 as devices.
f19dbdb7 30664
67bbaf0f 30665 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
30666 (pkgdata_MODULES): Add loopback.mod.
30667 (loopback_mod_SOURCES): New variable.
30668 (loopback_mod_CFLAGS): Likewise.
30669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30670 `disk/loopback.c'.
30671 (pkgdata_MODULES): Add loopback.mod.
30672 (loopback_mod_SOURCES): New variable.
30673 (loopback_mod_CFLAGS): Likewise.
30674 * disk/loopback.c: new file.
30675 * include/grub/normal.h (grub_loop_init): New prototype.
30676 (grub_loop_fini): New prototype.
30677 * util/grub-emu.c (main): Initialize and de-initialize loopback
30678 support.
30679 * include/grub/disk.h (grub_disk_dev_id): Add
30680 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
30681
6f1c18bd 306822005-01-20 Hollis Blanchard <hollis@penguinppc.org>
30683
30684 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
30685 function.
30686 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
30687 (suspend_mod_SOURCES): New variable.
30688 (suspend_mod_CFLAGS): Likewise.
30689 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
30690 New prototype.
30691 * commands/ieee1275/suspend.c: New file.
30692
b38551da 306932005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30694
30695 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 30696 ((unused))' to `__attribute__ ((used))'.
b38551da 30697 (GRUB_MOD_FINI): Likewise.
30698 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
30699 * genmk.rb (PModule): Assign space to common symbols when linking
30700 modules.
30701
777aff39 307022005-01-20 Marco Gerards <metgerards@student.han.nl>
30703
30704 * include/grub/mm.h (grub_mm_init_region): Change the type of the
30705 `unsigned' arguments to `grub_size_t'.
30706 (grub_malloc): Likewise.
30707 (grub_realloc): Likewise.
30708 (grub_memalign): Likewise.
30709 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
30710 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
30711 * util/misc.c (grub_malloc): Likewise.
30712 (grub_realloc): Likewise.
30713 * kern/mm.c (get_header_from_pointer): Change the casts to
30714 `unsigned' into a cast to `grub_size_t'.
30715
30716 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
30717 point to `currnode' when `currnode' is changed.
30718
30719 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
30720 Schottelius <nico-linux@schottelius.org>.
30721
d0ff18e1 307222005-01-09 Hollis Blanchard <hollis@penguinppc.org>
30723
30724 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
30725 (note_path): Remove variable.
30726 (GRUB_IEEE1275_NOTE_NAME): New macro.
30727 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
30728 (grub_ieee1275_note_hdr): New structure.
30729 (grub_ieee1275_note_desc): Likewise.
30730 (grub_ieee1275_note): Likewise.
30731 (load_note): Remove `dir' argument. All callers updated. Remove
30732 `note_img' and `path'. Do not load a file from `note_path'.
30733 Initialize a struct grub_ieee1275_note and write that to `out'.
30734 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
30735
4ca7004c 307362005-01-05 Marco Gerards <metgerards@student.han.nl>
30737
30738 * util/misc.c (grub_util_read_image): Revert last change. It
30739 called `grub_util_read_at', which seeks from the beginning of the
30740 file.
30741
0b412211 307422005-01-04 Hollis Blanchard <hollis@penguinppc.org>
30743
30744 * TODO: Add note about endianness in grub-mkimage.
30745 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
30746 section.
30747 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
30748 (grub_mkimage_SOURCES): New target.
30749 * include/grub/kernel.h (grub_start_addr): Remove variable.
30750 (grub_end_addr): Likewise.
30751 (grub_total_module_size): Likewise.
30752 (grub_kernel_image_size): Likewise.
30753 (GRUB_MODULE_MAGIC): New constant.
30754 (grub_module_info): New structure.
30755 (grub_arch_modules_addr): New prototype.
30756 (grub_get_end_addr): Remove prototype.
30757 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
30758 * include/grub/powerpc/ieee1275/kernel.h: New file.
30759 * include/grub/util/misc.h (grub_util_get_fp_size): New
30760 prototype.
30761 (grub_util_read_at): Likewise.
30762 (grub_util_write_image_at): Likewise.
30763 * kern/main.c (grub_get_end_addr): Remove function.
30764 (grub_load_modules): Call grub_arch_modules_addr instead of using
30765 grub_end_addr. Look for a grub_module_info struct in memory. Use
30766 the grub_module_info fields instead of calling grub_get_end_addr
30767 as loop conditions. Move grub_add_unused_region code here.
30768 (grub_add_unused_region): Remove function.
30769 * kern/i386/pc/init.c: Include grub/cache.h.
30770 (grub_machine_init): Remove call to grub_get_end_addr. Remove
30771 one call to add_mem_region.
30772 (grub_arch_modules_addr): New function.
30773 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
30774 (grub_total_module_size): Likewise.
30775 Include grub/machine/kernel.h.
30776 (grub_arch_modules_addr): New function.
30777 * util/grub-emu.c (grub_end_addr): Remove variable.
30778 (grub_total_module_size): Likewise.
30779 (grub_arch_modules_addr): New function.
30780 * util/misc.c: Include unistd.h.
30781 (grub_util_get_fp_size): New function.
30782 (grub_util_read_at): Likewise.
30783 (grub_util_write_image_at): Likewise.
30784 (grub_util_read_image): Call grub_util_read_at.
30785 (grub_util_write_image): Call grub_util_write_image_at.
30786 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
30787 additional memory in kernel_img for a struct grub_module_info.
30788 Fill in that grub_module_info.
30789 * util/powerpc/ieee1275/grub-mkimage.c: New file.
30790
458786f8 307912005-01-03 Hollis Blanchard <hollis@penguinppc.org>
30792
30793 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
30794 New function.
30795 * include/grub/powerpc/ieee1275/ieee1275.h
30796 (grub_ieee1275_milliseconds): New prototype.
30797 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
30798 Change to 1000.
30799 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
30800 grub_ieee1275_milliseconds.
30801
ac507d1b 308022005-01-03 Hollis Blanchard <hollis@penguinppc.org>
30803
30804 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
30805 variable.
30806 (find_options): New function.
30807 (cmain): Call find_options.
30808 * include/grub/powerpc/ieee1275/ieee1275.h
30809 (grub_ieee1275_realmode): New extern variable.
30810 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
30811 grub_map if grub_ieee1275_realmode is false.
30812
6b8fd1c4 308132004-12-29 Marco Gerards <metgerards@student.han.nl>
30814
30815 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
30816 lines are inserted and make it work like readline. Reported by
30817 Vincent Pelletier <subdino2004@yahoo.fr>.
30818
8514a1e0 308192004-12-28 Marco Gerards <metgerards@student.han.nl>
30820
30821 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
30822
30823 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
30824 `kern/powerpc/cache.S'.
30825
924b6140 308262004-12-27 Marco Gerards <metgerards@student.han.nl>
30827
30828 * genmk.rb: Handle the `Program' class in the main loop. Written
30829 by Johan Rydberg <jrydberg@gnu.org>.
30830 (Program): New class.
30831 (programs): New variable.
30832 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
30833 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
30834 instead of "grub/kernel.h". Include <grub/machine/init.h>.
30835 (help_arch): Function removed.
30836 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
30837 `powerpc/libgcc.h' and `loader.h'.
30838 (pkgdata_PROGRAMS): New variable.
30839 (sbin_UTILITIES): Variable removed.
30840 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
30841 (grubof_SOURCES): Variable re-defined so it only includes the
30842 core functionality.
30843 (grubof_CFLAGS): Remove `-DGRUBOF'.
30844 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
30845 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
30846 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
30847 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
30848 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
30849 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
30850 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
30851 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
30852 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
30853 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
30854 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
30855 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
30856 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
30857 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
30858 (pc_mod_CFLAGS): New variables.
30859 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
30860 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
30861 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
30862 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
30863 Moved from here...
30864 * include/grub/i386/pc/init.h (grub_os_area_addr)
30865 (rub_os_area_size): ... to here.
30866 * include/grub/powerpc/ieee1275/ieee1275.h
30867 (grub_ieee1275_entry_fn): Export symbol.
30868 * include/grub/powerpc/ieee1275/init.h: New file.
30869 * include/grub/powerpc/libgcc.h: Likewise.
30870 * include/grub/cache.h: Likewise.
30871 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
30872 <hollis@penguinppc.org>.
30873 * kern/dl.c: Include <grub/cache.h>.
30874 (grub_dl_flush_cache): New function.
30875 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
30876 for this module.
30877 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
30878 (grub_console_init): Removed prototypes.
30879 (grub_machine_init): Don't initialize the modules anymore.
30880 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
30881 static.
30882 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
30883 Macro undef removed.
30884 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
30885 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
30886 relocation `R_PPC_REL32'. Return an error when the relocation is
30887 unknown.
30888 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
30889 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
30890 * util/misc.c (grub_arch_sync_caches): Likewise.
30891
e4b47e0c 308922004-12-19 Marco Gerards <metgerards@student.han.nl>
30893
30894 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
30895 `symlist.c', add `grubof_symlist.c'.
30896 (symlist.c): Variable removed.
30897 (grubof_HEADERS): Variable added.
30898 (grubof_symlist.c): New target.
30899 (kernel_syms.lst): Use `grubof_HEADERS' instead of
30900 `kernel_img_HEADERS'.
30901 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
30902 * kern/powerpc/dl.c: New file.
30903 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
30904 Function removed.
30905 (grub_arch_dl_relocate_symbols): Likewise.
30906 (grub_register_exported_symbols): Likewise.
30907
4ceb3636 309082004-12-13 Marco Gerards <metgerards@student.han.nl>
30909
30910 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
30911 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
30912 to fail instead. Reported by Vincent Pelletier
30913 <subdino2004@yahoo.fr>.
30914
30915 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
30916 it is not allocated. Reported by Vincent Pelletier
30917 <subdino2004@yahoo.fr>.
30918
30919 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
30920 output so the output looks better.
f19dbdb7 30921
3f1578fe 309222004-12-04 Marco Gerards <metgerards@student.han.nl>
30923
30924 Modulize the partition map support and add support for the amiga
30925 partition map.
f19dbdb7 30926
3f1578fe 30927 * commands/ls.c: Include <grub/partition.h> instead of
30928 <grub/machine/partition.h>.
30929 * kern/disk.c: Likewise.
30930 * kern/rescue.c: Likewise.
30931 * loader/i386/pc/chainloader.c: Likewise.
30932 * normal/cmdline.c: Likewise.
30933 * kern/powerpc/ieee1275/init.c: Likewise.
30934 (grub_machine_init): Call `grub_pc_partition_map_init',
30935 `grub_amiga_partition_map_init' and
30936 `grub_apple_partition_map_init'.
30937 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
30938 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
30939 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
30940 `partition.h' and `pc_partition.h'.
30941 (grub_setup_SOURCES): Remove
30942 `disk/i386/pc/partition.c'. Add `kern/partition.c',
30943 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
30944 (grub_emu_SOURCES): Likewise.
30945 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
30946 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
30947 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
30948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
30949 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
30950 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
30951 (grubof_SOURCES): Likewise.
30952 * disk/i386/pc/partition.c: File removed.
30953 * disk/powerpc/ieee1275/partition.c: Likewise.
30954 * include/grub/powerpc/ieee1275/partition.h: Likewise.
30955 * include/grub/i386/pc/partition.h: Likewise.
30956 * kern/partition.c: New file.
30957 * partmap/amiga.c: Likewise.
30958 * partmap/apple.c: Likewise.
30959 * partmap/pc.c: Likewise.
30960 * include/grub/partition.h: Likewise..
30961 * include/grub/pc_partition.h: Likewise.
30962 * util/grub-emu.c: Include <grub/partition.h> instead of
30963 <grub/machine/partition.h>.
30964 (main): Call `grub_pc_partition_map_init',
30965 `grub_amiga_partition_map_init' and
30966 `grub_apple_partition_map_init' and deinitialize afterwards.
30967 * util/i386/pc/biosdisk.c: Include `#include
30968 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
30969 `<grub/machine/partition.h>'.
30970 * util/i386/pc/grub-setup.c: Likewise.
30971 * util/i386/pc/biosdisk.c: Likewise.
30972 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
30973 partition information in case of a PC partition.
30974 * util/i386/pc/grub-setup.c: Include `#include
30975 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
30976 `<grub/machine/partition.h>'.
30977 (setup): Only access the PC specific partition information in case
30978 of a PC partition.
30979
0ef4ced9 309802004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 30981
0ef4ced9 30982 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
30983 (grub_longjmp): Likewise.
30984 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
30985 20.
30986 * normal/powerpc/setjmp.S: New file.
30987 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
30988 `normal/powerpc/setjmp.S'.
30989 (grubof_CFLAGS): Add `-DGRUBOF'.
30990 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
30991 [GRUB_UTIL && !GRUBOF].
f19dbdb7 30992
19950e29 309932004-11-16 Marco Gerards <metgerards@student.han.nl>
30994
30995 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
30996 property named `name'. Correctly handle the error returned by
30997 `grub_ieee1275_finddevice' if a device can not be opened.
30998
a2fea427 309992004-11-02 Hollis Blanchard <hollis@penguinppc.org>
31000
31001 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
31002 `actual' for negativity.
31003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
31004 kern/fshelp.c.
31005
41ea0ea3 310062004-11-01 Marco Gerards <metgerards@student.han.nl>
31007
31008 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
31009 (PAGE_OFFSET): New macro.
31010 (CRTC_ADDR_PORT): Likewise.
31011 (CRTC_DATA_PORT): Likewise.
31012 (START_ADDR_HIGH_REGISTER): Likewise.
31013 (START_ADDR_LOW_REGISTER): Likewise.
31014 (GRAPHICS_ADDR_PORT): Likewise.
31015 (GRAPHICS_DATA_PORT): Likewise.
31016 (READ_MAP_REGISTER): Likewise.
31017 (INPUT_STATUS1_REGISTER): Likewise.
31018 (INPUT_STATUS1_VERTR_BIT): Likewise.
31019 (page): New variable.
31020 (wait_vretrace): New function.
31021 (set_read_map): Likewise.
31022 (set_start_address): Likewise.
31023 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
31024 the right page.
31025 (check_vga_mem): Take the page into account.
31026 (write_char): Likewise.
31027 (write_cursor): Likewise.
31028 (scroll_up): Likewise. Copy the page to the page that is not
31029 shown and switch between both pages.
31030 (grub_vga_putchar): Fix off by one error.
31031 (grub_vga_cls): Wait for the vertical retrace. Take the page into
31032 account.
31033
ad0bd20b 310342004-11-01 Marco Gerards <metgerards@student.han.nl>
31035
31036 Add support for iso9660 (including rockridge).
f19dbdb7 31037
ad0bd20b 31038 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
31039 (iso9660_mod_SOURCES): New variable.
31040 (iso9660_mod_CFLAGS): Likewise.
31041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
31042 * include/grub/fs.h (grub_iso9660_init): New prototype.
31043 * util/grub-emu.c (main): Call `grub_iso9660_init'.
31044 * fs/iso9660.c: New file.
31045
31046 * include/grub/misc.h (grub_strncat): New prototype.
31047 * kern/misc.c (grub_strncat): New function.
f19dbdb7 31048
ad0bd20b 31049 * fs/hfs.c (grub_hfs_mount): Translate the error
31050 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
31051 * fs/jfs.c (grub_jfs_mount): Likewise.
31052 * fs/ufs.c (grub_ufs_mount): Likewise.
31053
a5477a59 310542004-10-28 Hollis Blanchard <hollis@penguinppc.org>
31055
31056 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
31057 which initialized BAT registers.
31058 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
31059 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
31060 Move from here...
31061 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
31062 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
31063 ... to here.
31064 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
31065 (grub_mapclaim): Likewise.
31066 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
31067 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
31068 hand.
31069
9304c1f8 310702004-10-19 Hollis Blanchard <hollis@penguinppc.org>
31071
31072 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
31073 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
31074 -ffreestanding and -msoft-float.
31075
86f4ae25 310762004-10-15 Hollis Blanchard <hollis@penguinppc.org>
31077
31078 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
31079 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
31080 set in grub_ieee1275_flags.
31081
38912228 310822004-10-14 Hollis Blanchard <hollis@penguinppc.org>
31083
31084 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
31085 prototype.
31086 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
31087 grub_console_init first.
31088 Change the memory range used for grub_ieee1275_claim and
31089 grub_mm_init_region.
31090 Print an error message if the claim fails.
31091 Include <grub/misc.h>.
31092
d1923dc8 310932004-10-13 Hollis Blanchard <hollis@penguinppc.org>
31094
31095 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
31096 Call grub_children_iterate for device nodes of type `scsi',
31097 `ide', or `ata'.
31098 (grub_ofdisk_open): Remove manual device alias resolution.
31099 Fix memory leak when device cannot be opened.
f19dbdb7 31100 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 31101 (grub_children_iterate): New prototype.
31102 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
31103 New function.
31104 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
31105 Return -1 if args.size was -1.
31106
4512e4f3 311072004-10-11 Hollis Blanchard <hollis@penguinppc.org>
31108
31109 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
31110 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
31111 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
31112 Open Firmware's memory for it; claim memory from _start to _end.
31113 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
31114 (_end): New extern.
31115 (_start): Zero BSS from __bss_start to _end.
31116 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
31117 New extern.
31118 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
31119
4d61feb0 311202004-10-11 Hollis Blanchard <hollis@penguinppc.org>
31121
ad0bd20b 31122 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
31123 -1 if args.base was -1.
4d61feb0 31124
026fa2f9 311252004-10-08 Hollis Blanchard <hollis@penguinppc.org>
31126
31127 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
31128 escape sequence instead of a literal ^L. Also call
31129 grub_ofconsole_gotoxy.
31130
9f2220ef 311312004-10-03 Hollis Blanchard <hollis@penguinppc.org>
31132
31133 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
31134 void * arguments to grub_addr_t. All callers updated. Also make
31135 the `result' argument optional.
31136 (grub_ieee1275_release): change void * arguments to grub_addr_t.
31137 All callers updated.
31138
8a572cd7 311392004-09-22 Hollis Blanchard <hollis@penguinppc.org>
31140
31141 * commands/ls.c (grub_ls_list_files): Use the string following the
31142 initial ')', if present, as the filesystem path.
31143 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
31144
31145 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
31146
18aa81f2 311472004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
31148
31149 Make the source code of the menu interface more readable.
f19dbdb7 31150
18aa81f2 31151 * normal/menu.c: Include grub/mm.h.
31152 (TERM_WIDTH): New macro.
31153 (TERM_HEIGHT): Likewise.
31154 (TERM_INFO_HEIGHT): Likewise.
31155 (TERM_MARGIN): Likewise.
31156 (TERM_SCROLL_WIDTH): Likewise.
31157 (TERM_TOP_BORDER_Y): Likewise.
31158 (TERM_LEFT_BORDER_X): Likewise.
31159 (TERM_BORDER_WIDTH): Likewise.
31160 (TERM_MESSAGE_HEIGHT): Likewise.
31161 (TERM_BORDER_HEIGHT): Likewise.
31162 (TERM_NUM_ENTRIES): Likewise.
31163 (TERM_FIRST_ENTRY_Y): Likewise.
31164 (TERM_ENTRY_WIDTH): Likewise.
31165 (TERM_CURSOR_X): Likewise.
31166 (draw_border): Use macros instead of magic numbers.
31167 (print_entry): Likewise.
31168 (print_entries): Likewise.
31169 (run_menu): Likewise. Also, handle the key 'e'.
31170 (run_menu_entry): Ignore empty command lines.
31171 (print_message): Added a new argument EDIT. If EDIT is true,
31172 print a different message.
31173 (init_page): Likewise.
31174 (edit_menu_entry): New function. Not implemented yet.
31175
b47efe30 311762004-09-17 Marco Gerards <metgerards@student.han.nl>
31177
31178 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
31179 can be loaded from normal mode.
f19dbdb7 31180
b47efe30 31181 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
31182 `multiboot.mod'.
31183 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
31184 (multiboot_mod_CFLAGS): New variables.
31185 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 31186 * loader/i386/pc/multiboot_normal.c: Likewise.
31187
b47efe30 31188 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
31189 attribute `unused'.
f19dbdb7 31190
b47efe30 31191 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
31192 `fdiro' to read the mode information from instead of `diro'.
31193
31194 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
31195 looking up a symlink.
31196
31197 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
31198 macro.
31199 * normal/command.c (grub_command_execute): Don't parse the
31200 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
31201 flags of the command.
31202
31203 * normal/menu.c (grub_menu_run): Fix typo.
31204
da75ac71 312052004-09-14 Hollis Blanchard <hollis@penguinppc.org>
31206
31207 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
31208
31209 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
31210 `y + 1' instead of `y - 1'.
31211
31212 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 31213
062b24c2 312142004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
31215
31216 From Hollis Blanchard <hollis@penguinppc.org>:
31217 * kern/misc.c (memmove): New alias for grub_memmove.
31218 (memcmp): New alias for grub_memcmp.
31219 (memset): New alias for grub_memset.
f19dbdb7 31220 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 31221 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 31222 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 31223 (grub_ieee1275_get_property): Likewise.
f19dbdb7 31224
8ddad845 312252004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
31226
31227 Added normal mode command `chainloader' as module chain.mod, which
31228 depends on normal.mod and _chain.mod.
f19dbdb7 31229
8ddad845 31230 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
31231 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
31232 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
31233 Deleted prototype.
31234 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
31235 but arguments parsing moved to ...
31236 (grub_chainloader_cmd): ... here. New function.
31237 * include/grub/i386/pc/chainloader.h: New file.
31238 * loader/i386/pc/chainloader_normal.c: Likewise.
31239
2c1f4ce3 312402004-09-11 Marco Gerards <metgerards@student.han.nl>
31241
31242 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
31243 (grub_mkimage_LDFLAGS): Likewise.
31244 (grub_emu_SOURCES): Likewise.
31245 (kernel_img_HEADERS): Added fshelp.h.
31246 * fs/ext2.c: Include <grub/fshelp.h>.
31247 (FILETYPE_REG): New macro.
31248 (FILETYPE_INO_REG): Likewise.
31249 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
31250 Changed all users.
31251 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
31252 all users.
31253 (grub_fshelp_node): New struct.
31254 (grub_ext2_data): Added member `diropen'. Changed member `inode'
31255 to a pointer.
31256 (grub_ext2_get_file_block): Removed function.
31257 (grub_ext2_read_block): New function.
31258 (grub_ext2_read_file): Replaced parameter `data' by `node'.
31259 This function was written.
31260 (grub_ext2_mount): Read the root inode. Create a diropen struct.
31261 (grub_ext2_find_file): Removed function.
31262 (grub_ext2_read_symlink): New function.
31263 (grub_ext2_iterate_dir): Likewise.
31264 (grub_ext2_open): Rewritten.
31265 (grub_ext2_dir): Rewritten.
31266 * include/grub/fshelp.h: New file.
31267 * fs/fshelp.c: Likewise.
31268
3c52136a 312692004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
31270
31271 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
31272 (print_message): Add a missing newline.
31273 (run_menu): Added timeout support.
31274 (run_menu_entry): New local function.
31275 (grub_menu_run): Added support for booting.
31276
31277 * kern/loader.c (grub_loader_is_loaded): New function.
31278
31279 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
31280 (grub_get_rtc): Exported.
31281
31282 * include/grub/i386/pc/time.h: Include grub/symbol.h.
31283 (grub_get_rtc): Exported.
31284
31285 * include/grub/normal.h (struct grub_command_list): Remove
31286 constant from the member `command'.
31287
31288 * include/grub/loader.h (grub_loader_is_loaded): Declared.
31289
31290 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
31291
31292 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
31293
aa033560 312942004-08-28 Marco Gerards <metgerards@student.han.nl>
31295
31296 Add support for the JFS filesystem.
31297
31298 * fs/jfs.c: New file.
31299 * include/grub/fs.h (grub_jfs_init): New prototype.
31300 (grub_jfs_fini): New prototype.
31301 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
31302 (grub_emu_SOURCES): Likewise.
31303 (pkgdata_MODULES): Add jfs.mod.
31304 (jfs_mod_SOURCES): New variable.
31305 (jfs_mod_CFLAGS): Likewise.
31306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
31307 (grubof_SOURCES): Likewise.
31308 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
31309
31310 * fs/fat.c (grub_fat_find_dir): Convert the filename little
31311 endian to the host endian.
31312 (grub_fat_utf16_to_utf8): Move function from there...
31313 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 31314 the endianness of the source string anymore.
aa033560 31315 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
31316
94bc45af 313172004-08-24 Marco Gerards <metgerards@student.han.nl>
31318
31319 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
31320 (grub_boot_fini) [GRUB_UTIL]: Likewise.
31321 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
31322 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 31323
94bc45af 31324 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
31325 (grub_hfs_iterate_dir): Make the function static. Add prototypes
31326 for `node_found' and `it_dir'.
31327 (grub_hfs_dir): Add prototype for `dir_hook'.
31328
31329 * fs/minix.c (grub_minix_get_file_block): Add prototype for
31330 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
31331 and `indir32' to silence a gcc warning.
31332
31333 * include/grub/fs.h (grub_hfs_init): New prototype.
31334 (grub_hfs_fini): Likewise.
f19dbdb7 31335
31336
97543f08 313372004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
31338
31339 Each disk device has its own id now. This is useful to make use
31340 of multiple disk devices.
f19dbdb7 31341
97543f08 31342 * include/grub/disk.h (grub_disk_dev_id): New enum.
31343 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
31344 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
31345
31346 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
31347 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
31348
31349 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
31350 GRUB_DISK_DEVICE_OFDISK_ID as an id.
31351
31352 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
31353 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
31354
31355 * include/grub/disk.h (struct grub_disk_dev): Added a new member
31356 "id" which is used by the cache manager.
31357
31358 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
31359 of just "GRUB".
31360
64372eb4 313612004-08-18 Marco Gerards <metgerards@student.han.nl>
31362
31363 * fs/hfs.c: New file.
31364 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
31365 (grub_emu_SOURCES): Likewise.
31366 (pkgdata_MODULES): Add hfs.mod.
31367 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
31368 (grubof_SOURCES): Likewise.
31369 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
31370
31371 * include/grub/misc.h (grub_strncasecmp): Add prototype.
31372 * kern/misc.c (grub_strncasecmp): Add function.
31373
cc61b58f 313742004-08-14 Marco Gerards <metgerards@student.han.nl>
31375
31376 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
31377 with parentheses.
31378
31379 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
31380 (grub_ext2_dir): In case the directory entry type is unknown, read
31381 it from the inode.
31382
0ef123f6 313832004-08-02 Peter Bruin <pjbruin@dds.nl>
31384
31385 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
31386 grub_load_linux instead of grub_rescue_cmd_linux as second
31387 argument of grub_rescue_register_command.
31388
31389 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
31390
a447c5df 313912004-07-27 Marco Gerards <metgerards@student.han.nl>
31392
31393 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
31394 function.
31395 * commands/boot.c: Remove the check for `GRUB_UTIL'.
31396 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
31397 `loader/powerpc/ieee1275/linux.c',
31398 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
31399 * include/grub/powerpc/ieee1275/ieee1275.h
31400 (grub_ieee1275_release): New prototype.
31401 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
31402 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
31403 normal, boot, linux and linux_normal.
31404 * loader/powerpc/ieee1275/linux.c: New file.
31405 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
31406
5a9e3546 314072004-07-12 Marco Gerards <metgerards@student.han.nl>
31408
31409 * normal/arg.c (grub_arg_parse): Correct error handling after
31410 reallocating the argumentlist (check if `argl' is not null instead
31411 of checking if `args' is not null).
31412 * kern/mm.c (grub_realloc): Return the same pointer when using the
31413 same region, instead of returning the header address.
31414
e15199cb 314152004-07-11 Marco Gerards <metgerards@student.han.nl>
31416
31417 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
31418 one block instead of two when looking for the initial partition.
31419 (grub_partition_probe): Initialize the local variable `p' with 0.
31420 Use base 10 for the grub_strtoul call.
31421 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
31422 need for one local variable.
31423 (grub_strtoul): Don't add the new value to `num', instead of that
31424 just assign it.
31425
020616c2 314262004-07-11 Marco Gerards <metgerards@student.han.nl>
31427
31428 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
31429 (pxeboot_img_SOURCES): New variable.
31430 (pxeboot_img_ASFLAGS): Likewise.
31431 (pxeboot_img_LDFLAGS): Likewise.
31432 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
31433 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
31434 <lode_leroy@hotmail.com>.
31435
6c51eb64 314362004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
31437
31438 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
31439 there was no input.
31440
cfb12aff 314412004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
31442
31443 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
31444 the history buffer logic.
31445
6eabba74 314462004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
31447
31448 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
31449 (FILETYPE_INO_SYMLINK): New macros.
31450 (grub_ext2_find_file): Check if the node is a directory using the
31451 inode stat information instead of using the filetype in the
31452 dirent. Exclude the first character of an absolute symlink.
31453 (grub_ext2_dir): Mask out the filetype part of the mode member of
31454 the inode.
31455
66e19ef8 314562004-05-24 Marco Gerards <metgerards@student.han.nl>
31457
31458 Add support for UFS version 1 and 2. Add support for the minix
31459 filesystem version 1 and 2, both the variants with 14 and 30 long
31460 filenames.
f19dbdb7 31461
66e19ef8 31462 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
31463 fs/minix.c.
31464 (grub_emu_SOURCES): Likewise.
31465 (pkgdata_MODULES): Add ufs.mod and minix.mod.
31466 (ufs_mod_SOURCES): New variable.
31467 (ufs_mod_CFLAGS): Likewise.
31468 (minix_mod_SOURCES): Likewise.
31469 (minix_mod_CFLAGS): Likewise.
31470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
31471 fs/minix.c.
31472 (grubof_SOURCES): Likewise.
31473 * fs/ufs.c: New file.
31474 * fs/minix.c: New file.
31475 * include/grub/fs.h (grub_ufs_init): New prototype.
31476 (grub_ufs_fini): Likewise.
31477 (grub_minix_init): Likewise.
31478 (grub_minix_fini): Likewise.
31479 * util/grub-emu.c (main): Initialize and deinitialize UFS and
31480 minix fs.
31481
cc2e748a 314822004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
31483
31484 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
31485 commands/ls.c, commands/terminal.c, commands/boot.c,
31486 commands/cmp.c and commands/cat.c.
31487 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
31488
31489 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
31490 "env.h"
31491
4b13b216 314922004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31493
31494 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
31495 and grub_, respectively. Because the conversion is trivial and
31496 mechanical, I omit the details here. Please refer to the CVS
31497 if you need more information.
31498
6a142551 314992004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
31500
31501 * include/pupa: Renamed to ...
31502 * include/grub: ... this.
31503 * util/i386/pc/pupa-mkimage.c: Renamed to ...
31504 * util/i386/pc/grub-mkimage.c: ... this.
31505 * util/i386/pc/pupa-setup.c: Renamed to ...
31506 * util/i386/pc/grub-setup.c: ... this.
31507 * util/pupa-emu.c: Renamed to ...
31508 * util/grub-emu.c: ... this.
31509
e56cdf21 315102004-03-29 Marco Gerards <metgerards@student.han.nl>
31511
31512 Add support for the newworld apple macintosh (PPC). This has been
31513 tested on the powerbook 2000 only. It only adds support for
31514 generic ieee1275 functions, console and disk support. This should
31515 be easy to port to other architectures with support for Open
31516 Firmware.
f19dbdb7 31517
e56cdf21 31518 * configure.ac: Accept the powerpc as host_cpu. In the case of
31519 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
31520 specific tests are only executed while building for the i386.
31521 Inverse test for crosscompile.
31522 * genmk.rb (Utility): Allow assembler files.
31523 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
31524 * conf/powerpc-ieee1275.rmk: New file.
31525 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
31526 * disk/powerpc/ieee1275/partition.c: Likewise.
31527 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
31528 * include/pupa/powerpc/ieee1275/console.h: Likewise.
31529 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
31530 * include/pupa/powerpc/ieee1275/time.h: Likewise.
31531 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
31532 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
31533 * include/pupa/powerpc/ieee1275/loader.h
31534 * include/pupa/powerpc/setjmp.h: Likewise.
31535 * include/pupa/powerpc/types.h: Likewise.
31536 * kern/powerpc/ieee1275/init.c: Likewise.
31537 * kern/powerpc/ieee1275/openfw.c: Likewise.
31538 * term/powerpc/ieee1275/ofconsole.c: Likewise.
31539
31540 These files were written by Johan Rydberg
31541 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 31542
e56cdf21 31543 * boot/powerpc/ieee1275/cmain.c: New file.
31544 * boot/powerpc/ieee1275/crt0.S: Likewise.
31545 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
31546 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
31547
8c8cc205 315482004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
31549
31550 * Makefile.in: Update copyright.
31551 * genmodsrc.sh: Likewise.
31552 * gensymlist.sh: Likewise.
31553 * term/i386/pc/vga.c: Indent correctly.
31554
31555 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
31556 bugreporting address.
31557 * util/i386/pc/pupa-setup.c (usage): Likewise,
31558 (main): Call pupa_ext2_init and pupa_ext2_fini.
31559
f19dbdb7 31560 * fs/fat.c (log2): Renamed to ...
8c8cc205 31561 (fat_log2): ... this.
31562 All callers changed.
31563 * kern/misc.c (memcpy): Alias to pupa_memmove.
31564 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
31565 lvalue cast.
31566 * util/console.c (pupa_ncurses_fini): Return 0.
31567
31568 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
31569 Move fail label here.
31570 [__GNU__]: Don't warn when using stat.
31571 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
31572 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
31573 long int. Use strtol instead of strtoul.
f19dbdb7 31574
db1771cf 315752004-03-14 Marco Gerards <metgerards@student.han.nl>
31576
31577 * commands/boot.c: New file.
31578 * commands/cat.c: Likewise.
31579 * commands/cmp.c: Likewise.
31580 * commands/ls.c: Likewise.
31581 * commands/terminal.c: Likewise.
31582 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
31583 (pupa_register_command): Changed interface to match the new
31584 argument parser.
31585 (pupa_command_execute): Changed (almost rewritten) so it uses
31586 pupa_split_command. Added support for setting variables using the
31587 syntax `foo=bar'.
31588 (rescue_command): Changed to work with the new argument parser.
31589 (terminal_command): Moved from here to commands/terminal.c.
31590 (set_command): New function.
31591 (unset_command): New function.
31592 (insmod_command): New function.
31593 (rmmod_command): New function.
31594 (lsmod_command): New function.
31595 (pupa_command_init): Don't initialize the command terminal
31596 anymore. Initialize the commands set, unset, insmod, rmmod and
31597 lsmod.
31598 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
31599 (kernel_img_HEADERS): Add arg.h and env.h.
31600 (pupa_mkimage_LDFLAGS): Add kern/env.c.
31601 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
31602 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
31603 normal/arg.c.
31604 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
31605 terminal.mod.
31606 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
31607 (boot_mod_SOURCES): New variable.
31608 (terminal_mod_SOURCES): Likewise.
31609 (ls_mod_SOURCES): Likewise.
31610 (cmp_mod_SOURCES): Likewise.
31611 (cat_mod_SOURCES): Likewise.
31612
31613 * normal/arg.c: New file.
31614 * kern/env.c: Likewise.
31615 * include/pupa/arg.h: Likewise.
31616 * include/pupa/env.h: Likewise.
31617 * font/manager.c (font_command): Changed to match argument parsing
31618 interface changes.
31619 (PUPA_MOD_INIT): Likewise.
31620 * hello/hello.c (pupa_cmd_hello): Likewise.
31621 (PUPA_MOD_INIT): Likewise.
31622 * include/pupa/disk.h: Include <pupa/device.h>.
31623 (pupa_print_partinfo): New prototype.
31624 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
31625 (pupa_dl_get_prefix): Likewise.
31626 * include/pupa/misc.h: Include <pupa/err.h>.
31627 (pupa_isgraph): New prototype.
31628 (pupa_isdigit): Likewise.
31629 (pupa_split_cmdline): Likewise.
31630 * include/pupa/normal.h: Include <pupa/arg.h>.
31631 (pupa_command): Changed the prototype of the member `func' to
31632 match the argument parsing interface. Added member `options'.
31633 (pupa_register_command): Updated to match function.
31634 (pupa_arg_parse): New prototype.
31635 (pupa_hello_init) [PUPA_UTIL]: New prototype.
31636 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
31637 (pupa_ls_init) [PUPA_UTIL]: Likewise.
31638 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
31639 (pupa_cat_init) [PUPA_UTIL]: Likewise.
31640 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
31641 (pupa_boot_init) [PUPA_UTIL]: Likewise.
31642 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
31643 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
31644 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
31645 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
31646 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
31647 * kern/disk.c: Include <pupa/file.h>.
31648 (pupa_print_partinfo): New function.
31649 * kern/dl.c: Include <pupa/env.h>.
31650 (pupa_dl_dir): Variable removed.
31651 (pupa_dl_load): Use the environment variable `prefix' instead of
31652 the variable pupa_dl_dir.
31653 (pupa_dl_set_prefix): Function removed.
31654 (pupa_dl_get_prefix): Likewise.
31655 * kern/i386/pc/init.c: Include <pupa/env.h>.
31656 (pupa_machine_init): Use the environment variable `prefix' instead of
31657 using pupa_dl_set_prefix to set the prefix.
31658 * kern/main.c: Include <pupa/env.h>.
31659 (pupa_set_root_dev): Use the environment variable `prefix' instead of
31660 using pupa_dl_get_prefix to get the prefix.
31661 * kern/misc.c: Include <pupa/env.h>.
31662 (pupa_isdigit): New function.
31663 (pupa_isgraph): Likewise.
31664 (pupa_ftoa): Likewise.
31665 (pupa_vsprintf): Added support for printing values of the type
31666 `double'. Make it possible to format variable output when using
31667 formatting like `%1.2%f'.
31668 (pupa_split_cmdline): New function.
31669 * kern/rescue.c: Include <pupa/env.h>.
31670 (next_word): Removed function.
31671 (pupa_rescue_cmd_prefix): Likewise.
31672 (pupa_rescue_cmd_set): New function.
31673 (pupa_rescue_cmd_unset): New function.
31674 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
31675 split the command line instead of splitting it here. Added
31676 support for setting variables using the syntax `foo=bar'. Don't
31677 initialize the prefix command anymore. Initialized the set and
31678 unset commands.
31679 * normal/cmdline.c: Include <pupa/env.h>.
31680 (pupa_tab_complete): Added prototypes for print_simple_completion,
31681 print_partition_completion, add_completion, iterate_commands,
31682 iterate_dev, iterate_part and iterate_dir. Moved code to print
31683 partition information from here to kern/disk.c.
fe6b695a 31684 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 31685 * normal/main.c: Include <pupa/env.h>.
31686 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
31687 instead of using pupa_dl_get_prefix to get the prefix.
31688 * term/i386/pc/vga.c: Include <pupa/arg.h>.
31689 (check_vga_mem): Cast pointers to `void *' to silence a gcc
31690 warning.
31691 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
31692 (pupa_vga_setcolor): Declare unused variables with `__attribute__
31693 ((unused))' to silence a gcc warning.
31694 (pupa_vga_setcolor): Likewise.
31695 (debug_command): Changed to match argument parsing
31696 interface changes.
31697 * util/pupa-emu.c: Include <pupa/env.h>.
31698 (options): Added 0's for unused fields to silence a gcc warning.
31699 (argp): Likewise.
31700 (main): Use the environment variable `prefix' instead of using
31701 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
31702 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
31703 and terminal.
31704
31705 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
31706 * util/misc.c: Include <malloc.h>.
31707 (pupa_malloc): Rewritten so errors are correctly reported.
31708 (pupa_realloc): Likewise.
31709 (pupa_memalign): Likewise.
31710 (pupa_mm_init_region): Declare unused variables with
31711 `__attribute__ ((unused))' to silence a gcc warning.
31712 * normal/i386/setjmp.S: Remove tab at the end of the file to
31713 silence a gcc warning.
31714 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
31715 variables with `__attribute__ ((unused))' to silence a gcc
31716 warning.
31717 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
31718 local variable i unsigned to silence a gcc warning.
31719
31720 * kern/term.c: Include <pupa/misc.h>.
31721 (pupa_more_lines): New variable.
31722 (pupa_more): Likewise.
31723 (pupa_putcode): When the pager is active pause at the end of every
31724 screen.
31725 (pupa_set_more): New function.
31726 * include/pupa/term.h (pupa_set_more): New prototype.
31727
31728
3b1139cb 317292004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
31730
31731 Now this project is GRUB 2 rather than PUPA. The location of
31732 the CVS repository was moved to GRUB's.
f19dbdb7 31733
3b1139cb 31734 * configure.ac: Use bug-grub as the reporting address.
31735 Use GRUB instead of PUPA.
31736 Change the version number to 1.90.
31737
8367695c 317382004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
31739
31740 * genkernsyms.sh: Updated copyright information.
31741 * genmk.rb: Likewise.
31742 * genmodsrc.sh: Likewise.
31743 * gensymlist.sh: Likewise.
31744 * boot/i386/pc/boot.S: Likewise.
31745 * boot/i386/pc/diskboot.S: Likewise.
31746 * disk/i386/pc/biosdisk.c: Likewise.
31747 * disk/i386/pc/partition.c: Likewise.
31748 * font/manager.c: Likewise.
31749 * fs/ext2.c: Likewise.
31750 * fs/fat.c: Likewise.
31751 * include/pupa/boot.h: Likewise.
31752 * include/pupa/device.h: Likewise.
31753 * include/pupa/disk.h: Likewise.
31754 * include/pupa/dl.h: Likewise.
31755 * include/pupa/elf.h: Likewise.
31756 * include/pupa/err.h: Likewise.
31757 * include/pupa/file.h: Likewise.
31758 * include/pupa/font.h: Likewise.
31759 * include/pupa/fs.h: Likewise.
31760 * include/pupa/kernel.h: Likewise.
31761 * include/pupa/loader.h: Likewise.
31762 * include/pupa/misc.h: Likewise.
31763 * include/pupa/mm.h: Likewise.
31764 * include/pupa/net.h: Likewise.
31765 * include/pupa/normal.h: Likewise.
31766 * include/pupa/rescue.h: Likewise.
31767 * include/pupa/setjmp.h: Likewise.
31768 * include/pupa/symbol.h: Likewise.
31769 * include/pupa/term.h: Likewise.
31770 * include/pupa/types.h: Likewise.
31771 * include/pupa/i386/setjmp.h: Likewise.
31772 * include/pupa/i386/types.h: Likewise.
31773 * include/pupa/i386/pc/biosdisk.h: Likewise.
31774 * include/pupa/i386/pc/boot.h: Likewise.
31775 * include/pupa/i386/pc/console.h: Likewise.
31776 * include/pupa/i386/pc/init.h: Likewise.
31777 * include/pupa/i386/pc/kernel.h: Likewise.
31778 * include/pupa/i386/pc/linux.h: Likewise.
31779 * include/pupa/i386/pc/loader.h: Likewise.
31780 * include/pupa/i386/pc/memory.h: Likewise.
31781 * include/pupa/i386/pc/multiboot.h: Likewise.
31782 * include/pupa/i386/pc/partition.h: Likewise.
31783 * include/pupa/i386/pc/time.h: Likewise.
31784 * include/pupa/i386/pc/vga.h: Likewise.
31785 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
31786 * include/pupa/util/getroot.h: Likewise.
31787 * include/pupa/util/misc.h: Likewise.
31788 * include/pupa/util/resolve.h: Likewise.
31789 * kern/device.c: Likewise.
31790 * kern/disk.c: Likewise.
31791 * kern/dl.c: Likewise.
31792 * kern/err.c: Likewise.
31793 * kern/file.c: Likewise.
31794 * kern/fs.c: Likewise.
31795 * kern/loader.c: Likewise.
31796 * kern/main.c: Likewise.
31797 * kern/misc.c: Likewise.
31798 * kern/mm.c: Likewise.
31799 * kern/rescue.c: Likewise.
31800 * kern/term.c: Likewise.
31801 * kern/i386/dl.c: Likewise.
31802 * kern/i386/pc/init.c: Likewise.
31803 * kern/i386/pc/lzo1x.S: Likewise.
31804 * kern/i386/pc/startup.S: Likewise.
31805 * loader/i386/pc/chainloader.c: Likewise.
31806 * loader/i386/pc/linux.c: Likewise.
31807 * loader/i386/pc/multiboot.c: Likewise.
31808 * normal/cmdline.c: Likewise.
31809 * normal/command.c: Likewise.
31810 * normal/main.c: Likewise.
31811 * normal/menu.c: Likewise.
31812 * normal/i386/setjmp.S: Likewise.
31813 * term/i386/pc/console.c: Likewise.
31814 * term/i386/pc/vga.c: Likewise.
31815 * util/console.c: Likewise.
31816 * util/genmoddep.c: Likewise.
31817 * util/misc.c: Likewise.
31818 * util/pupa-emu.c: Likewise.
31819 * util/resolve.c: Likewise.
31820 * util/unifont2pff.rb: Likewise.
31821 * util/i386/pc/biosdisk.c: Likewise.
31822 * util/i386/pc/getroot.c: Likewise.
31823 * util/i386/pc/pupa-mkimage.c: Likewise.
31824 * util/i386/pc/pupa-setup.c: Likewise.
31825
e6eced71 318262004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
31827
31828 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
31829 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
31830 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
31831 reading and reset it after reading.
31832 (pupa_ext2_close): Return PUPA_ERR_NONE.
31833
31834 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
31835 Correct value.
31836 (struct linux_kernel_header): Add kernel_version and
31837 initrd_addr_max.
31838 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
31839 pupa_file_read succeeds.
31840 (pupa_rescue_cmd_initrd): Implement.
31841
5aded270 318422003-12-03 Marco Gerards <metgerards@student.han.nl>
31843
31844 * fs/ext2.c (pupa_ext2_label): New function.
31845 (pupa_ext2_fs): Added label.
31846 * fs/fat.c (pupa_fat_label): New function.
31847 (pupa_fat_fs): Added label.
31848 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
31849
31850 * kern/misc.c (pupa_strndup): New function.
31851 * include/pupa/misc.h (pupa_strndup): New prototype.
31852
31853 * include/pupa/normal.h: Include <pupa/err.h>.
31854 (pupa_set_history): New prototype.
31855 (pupa_iterate_commands): New prototype.
31856 * normal/cmdline.c: Include <pupa/machine/partition.h>,
31857 <pupa/disk.h>, <pupa/file.h>.
31858 (hist_size): New variable.
31859 (hist_lines): Likewise.
31860 (hist_end): Likewise.
31861 (hist_used): Likewise.
31862 (pupa_set_history): New function.
31863 (pupa_history_get): Likewise.
31864 (pupa_history_add): Likewise.
31865 (pupa_history_replace): Likewise.
31866 (pupa_tab_complete): Likewise.
31867 (pupa_cmdline_run): Added tab completion and history buffer. Tab
31868 completion shows partitionnames while completing partitions, this
31869 feature was suggested by Jeff Bailey.
31870 * normal/command.c (pupa_iterate_commands): New function.
31871 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
31872 (pupa_normal_init): Initialize history buffer.
31873 (PUPA_MOD_INIT): Likewise.
31874 (pupa_normal_fini): Free the history buffer.
31875 (PUPA_MOD_FINI): Likewise.
31876
31877 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
31878 key.
31879
31880 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
31881 * configure.ac [i386]: Check for regparam bug.
31882 (NESTED_FUNC_ATTR) [! i386]: Defined.
31883
1f7315a3 318842003-11-17 Marco Gerards <metgerards@student.han.nl>
31885
31886 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
31887 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
31888 (pupa_emu_SOURCES): New variable.
31889 (pupa_emu_LDFLAGS): Likewise.
31890 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
31891 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
31892 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
31893 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
31894 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
31895 (pupa_jmp_buf): New typedef.
31896 (pupa_setjmp) [PUPA_UTIL]: New macro.
31897 (pupa_longjmp) [PUPA_UTIL]: Likewise.
31898 * include/pupa/term.h (struct pupa_term): New member `refresh'.
31899 (pupa_refresh): New prototype.
31900 * include/pupa/util/getroot.h: New file.
31901 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
31902 it.
31903 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
31904 (pupa_rescue_cmd_cat): Likewise.
31905 (pupa_rescue_cmd_ls): Likewise.
31906 (pupa_rescue_cmd_testload): Likewise.
31907 (pupa_rescue_cmd_lsmod): Likewise.
31908 * normal/cmdline.c (pupa_cmdline_get): Likewise.
31909 * normal/menu.c (run_menu): Likewise.
31910 * kern/term.c (pupa_cls): Likewise.
31911 (pupa_refresh): New function.
31912 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
31913 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
31914 * util/console.c: New file.
f19dbdb7 31915
1f7315a3 31916 * util/i386/pc/getroot.c: New file.
31917 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
31918 (pupa_putchar): New function.
31919 (pupa_refresh): Likewise.
31920 (xgetcwd): Function moved to ...
31921 (strip_extra_slashes): Likewise.
31922 (get_prefix): Likewise.
f19dbdb7 31923 * util/i386/pc/getroot.c: ... here.
1f7315a3 31924 (find_root_device): Function moved and renamed to...
31925 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
31926 Changed all callers.
31927 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
31928 and renamed to...
31929 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
31930 Changed all callers.
31931 * util/misc.c (pupa_memalign): New function.
31932 (pupa_mm_init_region): Likewise.
31933 (pupa_register_exported_symbols): Likewise.
31934 (pupa_putchar): Function removed.
31935 * util/pupa-emu.c: New file.
31936
9a5c1ade 319372003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
31938
31939 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
31940 (_multiboot_mod_SOURCES): New variable.
31941 (_multiboot_mod_CFLAGS): Likewise.
31942 * loader/i386/pc/multiboot.c: New file.
31943 * include/pupa/i386/pc/multiboot.h: Likewise.
31944 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
31945 (pupa_multiboot_real_boot): New function.
31946 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
31947 (pupa_multiboot_real_boot): New prototype.
31948 (pupa_rescue_cmd_multiboot): Likewise
31949 (pupa_rescue_cmd_module): Likewise.
31950
31951 * kern/loader.c (pupa_loader_set): Continue when
31952 pupa_loader_unload_func() fails.
31953 (pupa_loader_unset): New function.
31954 * include/pupa/loader.h (pupa_loader_unset): New prototype.
31955
31956 * kern/misc.c (pupa_stpcpy): New function.
31957 * include/pupa/misc.h (pupa_stpcpy): New prototype.
31958
8e72a9c0 319592003-11-12 Marco Gerards <metgerards@student.han.nl>
31960
31961 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
31962 for available extensions.
31963
31964 * include/pupa/i386/pc/time.h: New file.
31965 * kern/disk.c: Include <pupa/machine/time.h>.
31966 (PUPA_CACHE_TIMEOUT): New macro.
31967 (pupa_last_time): New variable.
31968 (pupa_disk_open): Flush the cache when there was a timeout.
31969 (pupa_disk_close): Reset the timer.
31970 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
31971 pupa_currticks.
31972 * util/misc.c: Include <sys/times.h>
31973 (pupa_get_rtc): New function.
31974
c4adbd32 319752003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
31976
31977 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
31978 as blocks.
31979 (pupa_ext2_get_file_block): Use blocks member.
31980
31981 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
31982 first block. Return -1 instead of pupa_errno on error.
31983
bfd30f06 319842003-10-27 Marco Gerards <metgerards@student.han.nl>
31985
31986 * README: In the pupa-mkimage example use _chain instead of chain
31987 and ext2 instead of fat.
31988 * TODO: Replace ext2fs with jfs as an example. Add an item for
31989 adding journal playback for ext2fs.
31990 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
31991 (pkgdata_MODULES): Added ext2.mod.
31992 (ext2_mod_SOURCES): New variable.
31993 (ext2_mod_CFLAGS): Likewise.
31994 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
31995 * include/pupa/misc.h (pupa_strncpy): New prototype.
31996 (pupa_strcat): Likewise.
31997 (pupa_strncmp): Likewise.
31998 * kern/misc.c (pupa_strcat): Enable function.
31999 (pupa_strncpy): New function.
32000 (pupa_strncmp): Likewise.
32001 * fs/ext2.c: New file.
f19dbdb7 32002
bfd30f06 32003 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
32004 when the read failed before retrying.
32005 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
32006 (_FILE_OFFSET_BITS): Likewise.
32007 * configure.ac: Added AC_SYS_LARGEFILE.
32008
98d15063 320092003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
32010
32011 * genmk.rb (PModule#rule): Make sure to get only symbol names
32012 from the output of nm.
59cad637 32013 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 32014
18d9c7cd 320152003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
32016
32017 I forgot to check in these changes for a long time. This adds
32018 incomplete support for VGA console, and this is still very
32019 buggy. Also, a lot of consideration is required for I18N,
32020 UNICODE, and VGA font issues. Therefore, assume that this is
32021 such that "better than nothing".
f19dbdb7 32022
18d9c7cd 32023 * font/manager.c: New file.
32024 * include/pupa/font.h: Likewise.
32025 * include/pupa/i386/pc/vga.h: Likewise.
32026 * term/i386/pc/vga.c: Likewise.
32027 * util/unifont2pff.rb: Likewise.
32028
32029 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
32030 (pkgdata_MODULES): Added vga.mod and font.mod.
32031 (vga_mod_SOURCES): New variables.
32032 (vga_mod_CFLAGS): Likewise.
32033 (font_mod_SOURCES): Likewise.
32034 (font_mod_CFLAGS): Likewise.
32035
32036 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
32037
32038 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 32039 (struct pupa_term): Added init and fini.
18d9c7cd 32040 Changed the argument of putchar to pupa_uint32_t.
32041
32042 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
32043 (pupa_console_real_putchar): New prototype.
32044 (pupa_console_putchar): Removed.
32045 (pupa_console_checkkey): Exported.
32046 (pupa_console_getkey): Likewise.
32047
32048 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
32049 characters.
32050
32051 * kern/term.c (pupa_term_set_current): Rewritten.
32052 (pupa_putchar): Likewise.
32053 (pupa_putcode): New function.
32054
32055 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
32056 (pupa_console_real_putchar): ... this.
32057 (pupa_vga_set_mode): New function.
32058 (pupa_vga_get_font): Likewise.
32059
32060 * normal/command.c: Include pupa/term.h.
32061 (terminal_command): New function.
32062 (pupa_command_init): Register the command "terminal".
32063
32064 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
32065 (DISP_UP): Likewise.
32066 (DISP_RIGHT): Likewise.
32067 (DISP_DOWN): Likewise.
32068 (DISP_HLINE): Likewise.
32069 (DISP_VLINE): Likewise.
32070 (DISP_UL): Likewise.
32071 (DISP_UR): Likewise.
32072 (DISP_LL): Likewise.
32073 (DISP_LR): Likewise.
32074
32075 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 32076
977329f5 320772003-02-08 NIIBE Yutaka <gniibe@m17n.org>
32078
32079 * util/resolve.c (pupa_util_resolve_dependencies): BUG
32080 FIX. Reverse the path_list.
32081
32082 * include/pupa/normal.h: Export pupa_register_command and
32083 pupa_unregister_command.
32084
32085 * hello/hello.c (pupa_cmd_hello): New module.
32086 * conf/i386-pc.rmk: Added hello.mod.
32087
1f5ab428 320882003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
32089
32090 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 32091
1f5ab428 32092 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
32093 (compress_kernel): New variable.
32094 (generate_image): Heavily modified to support compressing a
32095 large part of the core image.
32096
32097 * util/misc.c (pupa_util_read_image): Fix a file descriptor
32098 leak.
32099 (pupa_util_load_image): New function.
32100
32101 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
32102 (pupa_compressed_size): New variable.
32103 (codestart): Enable Gate A20 here.
32104 Decompress the compressed part of the core image.
32105 Rearrange the code to put functions and variables which are
32106 required for initialization in the non-compressed part.
32107 Include lzo1x.S.
32108
32109 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
32110 here.
32111
32112 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
32113
f19dbdb7 32114 * include/pupa/i386/pc/kernel.h
1f5ab428 32115 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
32116 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
32117 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
32118 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
32119 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
32120
32121 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
32122
32123 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
32124 (Utility#rule): Likewise.
32125
32126 * configure.ac: Check if LZO is available.
32127
ce5bf700 321282003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
32129
32130 * include/pupa/normal.h: New file.
32131 * include/pupa/setjmp.h: Likewise.
32132 * include/pupa/i386/setjmp.h: Likewise.
32133 * normal/cmdline.c: Likewise.
32134 * normal/command.c: Likewise.
32135 * normal/main.c: Likewise.
32136 * normal/menu.c: Likewise.
32137 * normal/i386/setjmp.S: Likewise.
f19dbdb7 32138
ce5bf700 32139 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
32140 (pupa_rescue_cmd_initrd): Likewise.
32141
32142 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
32143 Likewise.
32144
32145 * kern/i386/pc/startup.S (translation_table): New variable.
32146 (translate_keycode): New function.
32147 (pupa_console_getkey): Call translate_keycode.
32148
32149 * kern/rescue.c (attempt_normal_mode): New function.
32150 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
32151 it failed, print a message.
32152
32153 * kern/mm.c (pupa_real_malloc): Print more information when a
32154 free magic is broken.
32155 (pupa_free): If the first free header is not free actually, set
32156 it to P.
32157
32158 * kern/main.c (pupa_load_normal_mode): Just load the module
32159 "normal".
32160 (pupa_main): Don't print the message
32161 "Entering into rescue mode..." here.
32162
32163 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
32164 Declared.
32165 (pupa_rescue_cmd_initrd): Likewise.
32166 (pupa_rescue_cmd_initrd): Likewise.
32167
32168 * include/pupa/symbol.h (FUNCTION): Specify the type.
32169 (VARIABLE): Likewise.
32170
32171 * include/pupa/err.h (pupa_err_t): Added
32172 PUPA_ERR_UNKNOWN_COMMAND.
32173
32174 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
32175 (pupa_dl_get_prefix): Likewise.
32176
32177 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
32178 Added _chain.mod and _linux.mod instead of chain.mod and
32179 linux.mod.
32180 (chain_mod_SOURCES): Renamed to ...
32181 (_chain_mod_SOURCES): ... this.
32182 (chain_mod_CFLAGS): Renamed to ...
32183 (_chain_mod_CFLAGS): ... this.
32184 (linux_mod_SOURCES): Renamed to ...
32185 (_linux_mod_SOURCES): ... this.
32186 (linux_mod_CFLAGS): Renamed to ...
32187 (_linux_mod_CFLAGS): ... this.
32188 (normal_mod_SOURCES): New variable.
32189 (normal_mod_CFLAGS): Likewise.
32190 (normal_mod_ASFLAGS): Likewise.
32191
321922003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
32193
32194 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
32195 possible.
32196
fe6b695a 32197 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 32198 recursively.
32199 (pupa_dl_unref): Unrefer depending modules recursively.
32200 Don't call pupa_dl_unload implicitly, because PUPA can crash if
32201 a module is unloaded before one depending on that module is
32202 unloaded.
32203 (pupa_dl_unload): Unload depending modules explicitly,
32204 if possible.
32205
c04da074 322062003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
32207
32208 * include/pupa/i386/pc/linux.h: New file.
32209 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 32210
c04da074 32211 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
32212 Removed.
32213 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
32214 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
32215 of PUPA_CHAINLOADER_BOOT_SECTOR.
32216
32217 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
32218 (pupa_linux_prot_size): New variable.
32219 (pupa_linux_tmp_addr): Likewise.
32220 (pupa_linux_real_addr): Likewise.
32221 (pupa_linux_boot_zimage): New function.
32222 (pupa_linux_boot_bzimage): Likewise.
32223
32224 * kern/i386/pc/init.c (struct mem_region): New structure.
32225 (MAX_REGIONS): New macro.
32226 (mem_regions): New variable.
32227 (num_regions): Likewise.
32228 (pupa_os_area_addr): Likewise.
32229 (pupa_os_area_size): Likewise.
32230 (pupa_lower_mem): Likewise.
32231 (pupa_upper_mem): Likewise.
32232 (add_mem_region): New function.
32233 (compact_mem_regions): Likewise.
32234 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
32235 the size of the conventional memory and that of so-called upper
32236 memory (before the first memory hole).
32237 Instead of adding each found region to free memory, use
32238 add_mem_region and add them after removing overlaps.
32239 Also, add only 1/4 of the upper memory to free memory. The rest
32240 is used for loading OS images. Maybe this is ad hoc, but this
32241 makes it much easier to relocate OS images when booting.
32242
32243 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
32244 (pupa_enter_rescue_mode): Don't register initrd and module.
32245
32246 * kern/mm.c: Include pupa/dl.h.
32247
32248 * kern/main.c: Include pupa/file.h and pupa/device.h.
32249
32250 * kern/loader.c (pupa_loader_load_module_func): Removed.
32251 (pupa_loader_load_module): Likewise.
32252
32253 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
32254 ``.o''.
32255
32256 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
32257 (pupa_linux_tmp_addr): Likewise.
32258 (pupa_linux_real_addr): Likewise.
32259 (pupa_linux_boot_zimage): Likewise.
32260 (pupa_linux_boot_bzimage): Likewise.
32261
32262 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
32263 (pupa_upper_mem): Likewise.
32264 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
32265 module is too dangerous.
32266
32267 * include/pupa/loader.h (pupa_os_area_addr): Declared.
32268 (pupa_os_area_size): Likewise.
32269 (pupa_loader_set): Remove the first argument. Loader doesn't
32270 manage modules or initrd any longer.
32271 (pupa_loader_load_module): Removed.
32272
32273 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
32274 (linux_mod_SOURCES): New variable.
32275 (linux_mod_CFLAGS): Likewise.
32276
a13f9237 322772003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
32278
32279 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
32280 the length of a blocklist correctly.
32281
32282 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
32283 Use ioctl only if the OS file is a block device.
32284 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
32285 not very useful for normal files.
32286
32287 * kern/main.c (pupa_set_root_dev): New function.
32288 (pupa_load_normal_mode): Likewise.
32289 (pupa_main): Call those above.
32290
32291 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
32292 pupa_uint16_t.
32293
32294 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
32295
a5ffe966 322962003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32297
32298 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
32299 (setup): Configure the installed partition information and the
32300 dl prefix.
32301
32302 * loader/i386/pc/chainloader.c (my_mod): New variable.
32303 (pupa_chainloader_unload): New function.
32304 (pupa_rescue_cmd_chainloader): Refer itself.
32305 (PUPA_MOD_INIT): Save its own module in MY_MOD.
32306
32307 * kern/i386/pc/startup.S (install_partition): Removed.
32308 (version_string): Likewise.
32309 (config_file): Likewise.
32310 (pupa_install_dos_part): New variable.
32311 (pupa_install_bsd_part): Likewise.
32312 (pupa_prefix): Likewise.
32313 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
32314
32315 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
32316 and pupa/misc.h.
32317 (make_install_device): New function.
32318 (pupa_machine_init): Set the dl prefix.
32319
32320 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
32321 (buf): Renamed to ...
32322 (linebuf): ... this.
32323 (pupa_rescue_cmd_prefix): New function.
32324 (pupa_rescue_cmd_insmod): Likewise.
32325 (pupa_rescue_cmd_rmmod): Likewise.
32326 (pupa_rescue_cmd_lsmod): Likewise.
32327 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
32328 rmmod and lsmod.
32329
32330 * kern/mm.c (pupa_memalign): If failed even after invalidating
32331 disk caches, unload unneeded modules and retry.
32332
32333 * kern/misc.c (pupa_memmove): New function.
32334 (pupa_memcpy): Removed.
32335 (pupa_strcpy): New function.
32336 (pupa_itoa): Made static.
32337
32338 * kern/dl.c (pupa_dl_iterate): New function.
32339 (pupa_dl_ref): Likewise.
32340 (pupa_dl_unref): Likewise.
32341 (pupa_dl_unload): Return if succeeded or not.
32342 (pupa_dl_unload_unneeded): New function.
32343 (pupa_dl_unload_all): Likewise.
32344 (pupa_dl_init): Renamed to ...
32345 (pupa_dl_set_prefix): ... this.
32346 (pupa_dl_get_prefix): New function.
32347
32348 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
32349 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
32350 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
32351 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
32352 (pupa_install_dos_part): Declared.
32353 (pupa_install_bsd_part): Likewise.
32354 (pupa_prefix): Likewise.
32355 (pupa_boot_drive): Likewise.
32356
32357 * include/pupa/types.h: Fix a typo.
32358
32359 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
32360 pupa_memmove.
32361 (pupa_memmove): Declared.
32362 (pupa_strcpy): Likewise.
32363
32364 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
32365 pupa_mod_init takes one argument, its own module.
32366 (pupa_dl_unload_unneeded): Declared.
32367 (pupa_dl_unload_all): Likewise.
32368 (pupa_dl_ref): Likewise.
32369 (pupa_dl_unref): Likewise.
32370 (pupa_dl_iterate): Likewise.
32371 (pupa_dl_init): Renamed to ...
32372 (pupa_dl_set_prefix): ... this.
32373 (pupa_dl_get_prefix): Declared.
32374
32375 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 32376 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 32377 unloaded.
32378 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
32379 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
32380
32381 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
32382 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
32383
012d7999 323842003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
32385
32386 * util/i386/pc/pupa-setup.c (setup): Define the internal
32387 function find_first_partition_start at the top level, because GCC
32388 3.0.x cannot compile internal functions in deeper scopes
32389 correctly.
32390 (find_root_device): Use lstat instead of stat.
32391 Don't follow symbolic links.
32392 Fix the path-constructing code.
32393
32394 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
32395 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
32396 by a BLKGETSIZE ioctl first, because block devices don't fill
32397 the member st_mode of the structure stat on Linux.
32398 [__linux__] (linux_find_partition): Use a temporary buffer
32399 REAL_DEV for the working space. Copy it to DEV before returning.
32400 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
32401 buffer cache consistent.
32402 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
32403 strncmp. The previous value was merely wrong.
32404 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
32405
32406 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
32407 FAT size is 12. The previous value was merely wrong.
32408
32409 * kern/main.c (pupa_main): Don't split the starting message from
32410 newlines.
32411
32412 * kern/term.c (pupa_putchar): Put CR after LF instead of before
32413 LF, because BIOS goes crazy about character attributes in this
32414 case.
32415
1cc73a62 324162003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
32417
32418 * include/i386/pc/util/biosdisk.h: New file.
32419 * util/i386/pc/biosdisk.c: Likewise.
32420 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 32421
1cc73a62 32422 * Makefile.in (INCLUDE_DISTFILES): Added
32423 include/pupa/i386/pc/util/biosdisk.h.
32424 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
32425 directory util/i386/pc.
32426 (install-local): Added a rule for sbin_UTILITIES.
32427 (uninstall): Likewise.
32428
32429 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
32430
32431 * util/misc.c (xrealloc): New function.
32432 (pupa_malloc): Likewise.
32433 (pupa_free): Likewise.
32434 (pupa_realloc): Likewise.
32435 (pupa_stop): Likewise.
32436 (pupa_putchar): Likewise.
32437
32438 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
32439
32440 * include/pupa/util/misc.h (xrealloc): Declared.
32441
32442 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
32443 macro.
32444 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
32445 (PUPA_BOOT_MACHINE_BPB_END): ... this.
32446
32447 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
32448 [PUPA_UTIL] (pupa_fat_fini): Likewise.
32449
32450 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
32451 way should be implemented.
32452 [PUPA_UTIL] (pupa_fat_fini): Likewise.
32453
32454 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
32455 the size of NAME for safety.
32456 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
32457 0x88.
32458
32459 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
32460 (pupa_setup_SOURCES): Likewise.
32461
32462 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
32463
08b70fe8 324642002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
32465
32466 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
32467 bunch of pushl's from pusha, because this destroys the return
32468 value.
32469
62ddcc8f 324702002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
32471
32472 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
32473 This means that any missing prototypes could be fatal. Also, you
32474 must take care when writing assembly code. See the comments at
32475 the beginning of startup.S, for more details.
f19dbdb7 32476
62ddcc8f 32477 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
32478 compilation mechanism.
32479 (pupa_chainloader_real_boot): Likewise.
32480 (pupa_biosdisk_rw_int13_extensions): Likewise.
32481 (pupa_biosdisk_rw_standard): Likewise.
32482 (pupa_biosdisk_check_int13_extensions): Likewise.
32483 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
32484 (pupa_biosdisk_get_diskinfo_standard): Likewise.
32485 (pupa_get_memsize): Likewise.
32486 (pupa_get_mmap_entry): Likewise.
32487 (pupa_console_putchar): Likewise.
32488 (pupa_console_setcursor): Likewise.
32489 (pupa_getrtsecs): Use pushl instead of push.
32490
32491 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
32492 memory instead of the stack for a mmap entry, because some
32493 BIOSes may ignore the maximum size and overflow.
32494
32495 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
32496
32497 * genmk.rb (PModule#rule): Compile automatically generated
32498 sources with module-specific CFLAGS as well as other sources.
32499
9962ed99 325002002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
32501
32502 * configure.ac: Check ld.
32503 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
32504 respectively, before checking endianness and sizes.
32505
32506 * Makefile.in (LD): New variable.
f19dbdb7 32507
abdfc3c5 325082002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
32509
32510 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
32511
6a161fa9 325122002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
32513
32514 * Changelog: New file.
32515